diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-24 00:19:08 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-24 00:19:08 +0200 |
commit | cf2aaecb77099ef8d2b9f9fb8ae0d1e362643271 (patch) | |
tree | 5224758e3616aa5c9894ce9c056e44baac120c43 /configure.ac | |
parent | fac7bebe532f05b6053315a6be505e49c500f4e0 (diff) |
Add --without-daemon option to configure
* configure.ac (--without-daemon): Add option to disable libdaemon pkgconfig
test.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 175a5205..a505b1dc 100644 --- a/configure.ac +++ b/configure.ac @@ -297,9 +297,16 @@ else echo ${file}:build.mk.in; done`" fi -PKG_CHECK_MODULES([libdaemon], [libdaemon], - [AC_DEFINE([HAVE_DAEMON], [1], [Use libdaemon])], - [true]) +AC_ARG_WITH([libdaemon], + [AS_HELP_STRING([--without-libdaemon], [disable libdaemon use in console client])], + [], + [with_libdaemon=yes]) + +AS_IF([test "x$with_libdaemon" != xno], [ + PKG_CHECK_MODULES([libdaemon], [libdaemon], + [AC_DEFINE([HAVE_DAEMON], [1], [Use libdaemon])], + [true]) +]) AC_SUBST([libdaemon_LIBS]) AC_SUBST([libdaemon_CFLAGS]) |