From: Tobias Oetiker Date: Thu, 26 Jun 2014 12:53:08 +0000 (+0200) Subject: do not build rrd_cgi when we have no graph support X-Git-Tag: v1.5.0-rc1~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c92e0089ef1fb9c5251f283c39e9c0c58b85cd;p=thirdparty%2Frrdtool-1.x.git do not build rrd_cgi when we have no graph support --- diff --git a/configure.ac b/configure.ac index eac4cfdb..121ffa9e 100644 --- a/configure.ac +++ b/configure.ac @@ -102,11 +102,12 @@ AC_DEFINE_UNQUOTED(RRDGRAPH_YLEGEND_ANGLE,${RRDGRAPH_YLEGEND_ANGLE:-90.0}, AC_ARG_ENABLE(rrdcgi,AS_HELP_STRING([--disable-rrdcgi],[disable building of rrdcgi]), [],[enable_rrdcgi=yes]) -AM_CONDITIONAL(BUILD_RRDCGI,[test $enable_rrdcgi != no]) - AC_ARG_ENABLE(rrd_graph,AS_HELP_STRING([--disable-rrd_graph],[disable all rrd_graph functions]), [enable_rrdcgi=no],[enable_rrd_graph=yes]) +AM_CONDITIONAL(BUILD_RRDCGI,[test $enable_rrdcgi != no]) + + if test $enable_rrd_graph != no; then AC_DEFINE([HAVE_RRD_GRAPH], [], [is rrd_graph supported by this install]) fi