Make building the daemon optional
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 14 Aug 2007 17:20:34 +0000 (19:20 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 14 Aug 2007 17:20:34 +0000 (19:20 +0200)
configure.in
daemon/Makefile.am
doc/man/Makefile.am

index bbeca73..6585ddd 100644 (file)
@@ -90,6 +90,10 @@ DOLDA_PKG([HAS_LIBGAIM], [PKG_CHECK_MODULES(GAIM, gaim, [], [HAS_LIBGAIM=no])],
 DOLDA_PKG([HAS_LIBPURPLE], [PKG_CHECK_MODULES(PURPLE, purple, [], [HAS_LIBPURPLE=no])],
                           [DOLDA_CHECK_HEADER(plugin.h, [], [HAS_LIBPURPLE=no], $PURPLE_CFLAGS)])
 
+# Daemon check
+DOLDA_ENABLE(daemon, [  --enable-daemon         Enable the daemon], yes, [])
+AM_CONDITIONAL(DAEMON, test "$enable_daemon" = yes)
+
 # Gtk GUI check
 DOLDA_ENABLE(gtk2ui, [  --enable-gtk2ui         Enable the GTK2 user interface], yes,
                     [HAS_GTK2 HAS_LIBXML])
@@ -260,6 +264,7 @@ autopackage/dcguile.apspec
 echo
 echo "Dolda Connect has been configured with the following settings:"
 echo
+echo "    Daemon:                  $enable_daemon"
 echo "    PAM support:             $pam_msg"
 echo "    Kerberos 5 support:      $krb_msg"
 echo "    GTK2 user interface:     $enable_gtk2ui"
index 3ff8bef..1600b31 100644 (file)
@@ -1,4 +1,6 @@
+if DAEMON
 bin_PROGRAMS=doldacond
+endif
 doldacond_SOURCES=     main.c \
                        search.c \
                        search.h \
index 813f5b3..e50bfd3 100644 (file)
@@ -1,4 +1,6 @@
+if DAEMON
 man_MANS = doldacond.conf.5 doldacond.8
+endif
 BUILT_SOURCES = doldacond.conf.5
 
 doldacond.conf.5: doldacond.conf.5.in ../../daemon/*.c mkcvman