From: Ruben Kerkhof Date: Sun, 5 Oct 2014 09:50:02 +0000 (+0200) Subject: Use an automake variable for server building X-Git-Tag: rec-3.7.0-rc1~189^2~13^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ff5c0a34efbeaf33c509af9d33c9f2092ce1559;p=pdns Use an automake variable for server building Since automake knows all possible values of this variable up front, it can determine what goes into DIST_SUBDIRS automagically. --- diff --git a/Makefile.am b/Makefile.am index fb6e26378..1d25c4c5b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,10 @@ -SUBDIRS=modules codedocs @programdescend@ -DIST_SUBDIRS=modules codedocs pdns -EXTRA_DIST=README INSTALL NOTICE debian pdns.spec \ +SUBDIRS = modules codedocs + +if WITH_PDNS_SERVER + SUBDIRS += pdns +endif + +EXTRA_DIST=README INSTALL NOTICE debian pdns.spec \ codedocs/doxygen.conf contrib/powerdns.solaris.init.d \ contrib/systemd-pdns.service contrib/systemd-pdns-recursor.service \ bootstrap build-scripts/semistaticg++ pdns/docs/dnstcpbench.1 \ diff --git a/configure.ac b/configure.ac index 8240225e5..eddc99a49 100644 --- a/configure.ac +++ b/configure.ac @@ -236,12 +236,7 @@ AC_ARG_ENABLE([pdns-server], [enable_pdns_server=yes] ) AC_MSG_RESULT([$enable_pdns_server]) - -AS_IF([test "x$enable_pdns_server" = "xyes"], - [programdescend=pdns] -) - -AC_SUBST(programdescend) +AM_CONDITIONAL([WITH_PDNS_SERVER],[test "x$enable_pdns_server" != "xno"]) AC_ARG_ENABLE([gcc-skip-locking], [AS_HELP_STRING([--enable-gcc-skip-locking],[if we should forcefully skip gcc locking @<:@default=no@:>@])],