diff options
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]) |