Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-03-23 22:28:28 +0100
committerArthur de Jong <arthur@arthurdejong.org>2011-03-23 22:28:28 +0100
commit83bc01436eebc00fb646e1e494f3e42b46d5335b (patch)
treed5b7b764811b0a827545f80e505decdd9f7f4366 /configure.ac
parent0c00334599535746e09d84af484d5de3758d3e43 (diff)
provide a definition of daemon() for systems that lack it
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1403 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2a0cede..ba4b3bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -570,6 +570,7 @@ then
# replace daemon() function if it is not on the system
AC_SEARCH_LIBS(daemon,bsd)
AC_REPLACE_FUNCS(daemon)
+ AC_CHECK_DECLS([daemon],,,[#include <unistd.h>])
# replace ether_aton_r() and ether_ntoa_r() if they are not found
AC_CHECK_FUNCS(ether_aton_r ether_ntoa_r,,[AC_LIBOBJ(ether)])