Commit 8aee5e26 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

build: Always include the contrib/ subdirectory

Otherwise a source tree bootstrapped --without-config would not
distribute the contrib script and test, that are needed for the
distcheck target and general redistribution.
parent 6c7cf83a
ACLOCAL_AMFLAGS = -I m4 -I .
SUBDIRS = include lib bin vmod etc doc man
if WITH_CONTRIB
SUBDIRS += contrib
endif
SUBDIRS = include lib bin vmod etc doc man contrib
TESTS = tools/magic_check.sh
......
......@@ -892,6 +892,20 @@ VMOD_TESTS="$(cd $srcdir/vmod && echo tests/*.vtc)"
AC_SUBST(VMOD_TESTS)
AM_SUBST_NOTMAKE(VMOD_TESTS)
AC_ARG_WITH([contrib],
[AS_HELP_STRING([--with-contrib],
[Build Varnish with external contributions.])])
AM_CONDITIONAL([WITH_CONTRIB], [test "$with_contrib" = yes])
CONTRIB_TESTS="$(cd $srcdir/contrib && echo tests/*.vtc)"
AC_SUBST(CONTRIB_TESTS)
AM_SUBST_NOTMAKE(CONTRIB_TESTS)
AM_COND_IF([WITH_CONTRIB], [
AC_DEFINE([WITH_CONTRIB], [1],
[Define to 1 when Varnish is built with contributions.])
])
# Make sure this include dir exists
AC_CONFIG_COMMANDS([mkdir], [$MKDIR_P doc/sphinx/include])
......@@ -907,6 +921,7 @@ AC_CONFIG_FILES([
bin/varnishhist/Makefile
bin/varnishtest/Makefile
bin/varnishncsa/Makefile
contrib/Makefile
doc/Makefile
doc/graphviz/Makefile
doc/sphinx/Makefile
......@@ -925,21 +940,4 @@ AC_CONFIG_FILES([
vmod/Makefile
])
AC_ARG_WITH([contrib],
[AS_HELP_STRING([--with-contrib],
[Build Varnish with external contributions.])])
AM_CONDITIONAL([WITH_CONTRIB], [test "$with_contrib" = yes])
AM_COND_IF([WITH_CONTRIB], [
CONTRIB_TESTS="$(cd $srcdir/contrib && echo tests/*.vtc)"
AC_SUBST(CONTRIB_TESTS)
AM_SUBST_NOTMAKE(CONTRIB_TESTS)
AC_DEFINE([WITH_CONTRIB], [1],
[Define to 1 when Varnish is built with contributions.])
AC_CONFIG_FILES([contrib/Makefile])
])
AC_OUTPUT
#
if !WITH_CONTRIB
dist_noinst_SCRIPTS = \
varnishstatdiff
else
dist_bin_SCRIPTS = \
varnishstatdiff
TESTS = @CONTRIB_TESTS@
include $(top_srcdir)/vtc.am
endif
EXTRA_DIST = $(TESTS)
EXTRA_DIST = @CONTRIB_TESTS@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment