diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2014-01-06 15:16:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2014-01-06 15:16:57 +0000 |
commit | ba014c1a605f78b301b47ef922dd24a3c5c2c4c1 (patch) | |
tree | 478f55566f0c26428a95c617da47d8082e84a248 | |
parent | 886c282679678fded4fdce122a3da4d646f6670c (diff) |
NetBSD broke strnvis when they added it, check for that.
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ceb37db8..644b283d 100644 --- a/configure.ac +++ b/configure.ac @@ -312,6 +312,16 @@ AM_CONDITIONAL(NO_STRTONUM, [test "x$found_strtonum" = xno]) # Look for strnvis, compat/{vis,unvis}.c used if missing. AC_CHECK_FUNC(strnvis, found_strnvis=yes, found_strnvis=no) if test "x$found_strnvis" = xyes; then + AC_MSG_CHECKING(if strnvis is broken) + AC_EGREP_HEADER([strnvis\(char \*, const char \*, size_t, int\)], + vis.h, + AC_MSG_RESULT(no), + [found_strnvis=no]) + if test "x$found_strnvis" = xno; then + AC_MSG_RESULT(yes) + fi +fi +if test "x$found_strnvis" = xyes; then AC_DEFINE(HAVE_VIS) fi AM_CONDITIONAL(NO_VIS, [test "x$found_strnvis" = xno]) |