X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=configure.ac;h=4d7ccaece38ca902af25d737637652931599779d;hp=c6710041cb5c631f50041f73f1e2f662b1dc7109;hb=0a3dd5b9b97e25156412a95bcecf25f8d75c72fc;hpb=dabdb5d3bde5d81b197dc457ad0be95450cbf9b5 diff --git a/configure.ac b/configure.ac index c671004..4d7ccae 100644 --- a/configure.ac +++ b/configure.ac @@ -446,6 +446,9 @@ if test "x$have_struct_ucred" != "xyes"; then AC_MSG_RESULT([$have_struct_ucred]) fi +dnl Only check this after potentially defining _GNU_SOURCE. +AC_FUNC_STRERROR_R + dnl Testing. PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], [unit_tests="yes"], [unit_tests="no"]) @@ -480,7 +483,7 @@ AC_ARG_WITH([libyajl], if test "x$with_libyajl" = "xyes" || test "x$with_libyajl" = "xauto"; then PKG_CHECK_MODULES([YAJL], [yajl], [have_libyajl="yes"], [have_libyajl="no"]) fi -if test "x$with_libyajl" = "xyes"; then +if test "x$have_libyajl" = "xyes"; then AC_DEFINE([HAVE_LIBYAJL], 1, [Define to 1 if you have the 'yajl' library.]) fi