diff options
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 37085d475..864eb1184 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,21 @@ fi dnl +dnl libc features +dnl + +AC_CHECK_FUNCS(syslog) +if test $ac_cv_func_syslog = no; then + # syslog is not in the default libraries. See if it's in some other. + for lib in bsd socket inet; do + AC_CHECK_LIB($lib, syslog, + [AC_DEFINE(HAVE_SYSLOG) + LIBS="$LIBS -l$lib"; break]) + done +fi + + +dnl dnl build options dnl |