[PATCH 1/5] Add configure checks for libdaemon
* configure.ac: Add check for libdaemon.
* config.make.in: Make the libdaemon specific variables available.
---
config.make.in | 5 +++++
configure.ac | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/config.make.in b/config.make.in
index b8002a1..73b54de 100644
--- a/config.make.in
+++ b/config.make.in
@@ -77,6 +77,11 @@ X11_LIBS = @X11_LIBS@
XKB_BASE = @XKB_BASE@
X11_KEYSYMDEF_H = @X11_KEYSYMDEF_H@
+# How to compile and link against libdaemon.
+HAVE_DAEMON = @HAVE_DAEMON@
+libdaemon_CFLAGS = @libdaemon_CFLAGS@
+libdaemon_LIBS = @libdaemon_LIBS@
+
# Whether Sun RPC support is available.
HAVE_SUN_RPC = @HAVE_SUN_RPC@
diff --git a/configure.ac b/configure.ac
index 31e48ef..d47e76f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -296,6 +296,12 @@ else
echo ${file}:build.mk.in; done`"
fi
+PKG_CHECK_MODULES([libdaemon], [libdaemon],
+ [AC_DEFINE([HAVE_DAEMON], [1], [Use libdaemon])],
+ [true])
+AC_SUBST([libdaemon_LIBS])
+AC_SUBST([libdaemon_CFLAGS])
+
AC_CONFIG_FILES([config.make ${makefiles}])
AC_OUTPUT
--
1.7.10.4
Reply to: