From: Marcel Holtmann Date: Mon, 22 Dec 2008 12:18:53 +0000 (+0100) Subject: Make the client application optional X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~4363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee6687c3d473d45ecb77bd221f4b4dcb7172117a;p=profile%2Fivi%2Fconnman.git Make the client application optional --- diff --git a/bootstrap-configure b/bootstrap-configure index 0714169..5a7e4dc 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 e198c8f..4dc1608 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 fea1130..15acdbc 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")