aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-01-08 11:28:49 +0100
committerMartin Willi <martin@revosec.ch>2014-06-04 15:53:05 +0200
commitee2498e3d6c14a3b4e60ad9e155c6c3c5f07595a (patch)
tree8546b4190718219b0a9871d5cd5c579517446292 /configure.ac
parent89e46c41f1e6e818979a9aab07447a807629f179 (diff)
downloadstrongswan-ee2498e3d6c14a3b4e60ad9e155c6c3c5f07595a.tar.bz2
strongswan-ee2498e3d6c14a3b4e60ad9e155c6c3c5f07595a.tar.xz
bus: Build syslog logger depending on syslog() availability
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 633e611dc..ca5c63668 100644
--- a/configure.ac
+++ b/configure.ac
@@ -569,7 +569,13 @@ AC_CHECK_FUNC(
)
AC_CHECK_FUNCS(prctl mallinfo getpass closefrom getpwnam_r getgrnam_r getpwuid_r)
-AC_CHECK_FUNCS(fmemopen funopen mmap memrchr syslog setlinebuf)
+AC_CHECK_FUNCS(fmemopen funopen mmap memrchr setlinebuf)
+
+AC_CHECK_FUNC([syslog], [
+ AC_DEFINE([HAVE_SYSLOG], [], [have syslog(3) and friends])
+ syslog=true
+])
+AM_CONDITIONAL(USE_SYSLOG, [test "x$syslog" = xtrue])
AC_CHECK_HEADERS(sys/sockio.h glob.h net/if_tun.h linux/fib_rules.h)
AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h netinet6/ipsec.h linux/udp.h)