summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-17 02:24:28 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-17 02:24:28 -0500
commit459f1c5a36c31d8ac3d87d68a4f51c1852c1f064 (patch)
treea5116aa4705fcd86705caaa7ecba3a7436bfb30f /configure.ac
parentf93f866f0f8cbc9cc6ed2fbf295926c8a71f9534 (diff)
downloadgpsd-459f1c5a36c31d8ac3d87d68a4f51c1852c1f064.tar.gz
Factor out our implementation of daemon(3) and use it as a fallback...
...in case the local OS doesn't have it (it's not SuS/POSIX portable). >From an idea by Gleb Smirnoff. but with cleaner build-system integration.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 332fa677..37519ed8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -183,6 +183,9 @@ AC_CHECK_FUNCS(strlcpy)
AC_CHECK_FUNCS(strlcat)
AC_CHECK_FUNCS(setlocale)
AC_CHECK_FUNCS(vsnprintf)
+AC_CHECK_FUNCS(daemon)
+
+AM_CONDITIONAL([NO_DAEMON3], [test x"ac_cv_func_daemon" != xyes])
AC_HEADER_TIME
AC_STRUCT_TIMEZONE