aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 3d80940..090f710 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU General Public License 14# You should have received a copy of the GNU General Public License
15# along with vmod-binlog. If not, see <http://www.gnu.org/licenses/>. 15# along with vmod-binlog. If not, see <http://www.gnu.org/licenses/>.
16AC_PREREQ(2.69) 16AC_PREREQ(2.69)
17AC_INIT([vmod-binlog], 1.0.90, [gray@gnu.org]) 17AC_INIT([vmod-binlog], 1.0.91, [gray@gnu.org])
18AC_CONFIG_AUX_DIR([build-aux]) 18AC_CONFIG_AUX_DIR([build-aux])
19AC_CONFIG_MACRO_DIR([m4]) 19AC_CONFIG_MACRO_DIR([m4])
20AC_CONFIG_SRCDIR(src/binlog.c) 20AC_CONFIG_SRCDIR(src/binlog.c)
@@ -73,9 +73,16 @@ case "$VARNISHSRC" in
73esac 73esac
74 74
75VARNISHSRC=`cd $VARNISHSRC && pwd` 75VARNISHSRC=`cd $VARNISHSRC && pwd`
76VARNISHVERSION=
76AC_CHECK_FILE([$VARNISHSRC/include/varnishapi.h], 77AC_CHECK_FILE([$VARNISHSRC/include/varnishapi.h],
77 [], 78 [VARNISHVERSION=3],
78 [AC_MSG_FAILURE(["$VARNISHSRC" is not a Varnish source directory])]) 79 [AC_CHECK_FILE([$VARNISHSRC/include/vapi/vsm.h],
80 [VARNISHVERSION=4],
81 [AC_MSG_FAILURE(["$VARNISHSRC" is not a Varnish source directory])]) ])
82
83AC_DEFINE_UNQUOTED([VARNISHVERSION],$VARNISHVERSION,[Varnish major version number])
84AM_CONDITIONAL([VARNISH3],[test $VARNISHVERSION -eq 3])
85AM_CONDITIONAL([VARNISH4],[test $VARNISHVERSION -eq 4])
79 86
80# Check that varnishtest is built in the varnish source directory 87# Check that varnishtest is built in the varnish source directory
81AC_CHECK_FILE([$VARNISHSRC/bin/varnishtest/varnishtest], 88AC_CHECK_FILE([$VARNISHSRC/bin/varnishtest/varnishtest],

Return to:

Send suggestions and report system problems to the System administrator.