diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-07-26 18:52:42 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-08-28 23:30:11 +0200 |
commit | 9a73a3142aebe0bfe910a8cf5455d6739d89899d (patch) | |
tree | da7e95b0c8aa878bd60bc5864e76a47f6508f7fc | |
parent | 193cef0bdcc7b4a7e06a6cf30e96684c9f454863 (diff) |
Add configure checks for libdaemon
* configure.ac: Add check for libdaemon.
* config.make.in: Make the libdaemon specific variables available.
-rw-r--r-- | config.make.in | 5 | ||||
-rw-r--r-- | configure.ac | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/config.make.in b/config.make.in index dbcf8a38..edb74c07 100644 --- a/config.make.in +++ b/config.make.in @@ -80,6 +80,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 b8275360..d40c01fb 100644 --- a/configure.ac +++ b/configure.ac @@ -297,6 +297,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 |