summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-configure2
-rw-r--r--client/Makefile.am2
-rw-r--r--configure.ac4
3 files changed, 7 insertions, 1 deletions
diff --git a/bootstrap-configure b/bootstrap-configure
index 0714169e..5a7e4dc1 100755
--- a/bootstrap-configure
+++ b/bootstrap-configure
@@ -16,4 +16,4 @@ fi
--mandir=/usr/share/man \
--localstatedir=/var \
--sysconfdir=/etc \
- --disable-fake $*
+ --enable-client $*
diff --git a/client/Makefile.am b/client/Makefile.am
index e198c8f8..4dc16084 100644
--- a/client/Makefile.am
+++ b/client/Makefile.am
@@ -1,9 +1,11 @@
+if CLIENT
noinst_PROGRAMS = cm
cm_SOURCES = main.c
cm_LDADD = @DBUS_LIBS@
+endif
AM_CFLAGS = @DBUS_CFLAGS@
diff --git a/configure.ac b/configure.ac
index fea11302..15acdbcb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,6 +86,10 @@ AC_SUBST(POLKIT_CFLAGS)
AC_SUBST(POLKIT_LIBS)
AM_CONDITIONAL(POLKIT, test "${polkit_found}" = "yes")
+AC_ARG_ENABLE(client, AC_HELP_STRING([--enable-client],
+ [enable command line client]), [enable_client=${enableval}])
+AM_CONDITIONAL(CLIENT, test "${enable_client}" = "yes")
+
AC_ARG_ENABLE(fake, AC_HELP_STRING([--enable-fake],
[enable fake plugin]), [enable_fake=${enableval}])
AM_CONDITIONAL(FAKE, test "${enable_fake}" = "yes")