]> err.no Git - varnish/commitdiff
Some source files (especially in libraries) have embedded test
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 13 Feb 2008 13:05:36 +0000 (13:05 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 13 Feb 2008 13:05:36 +0000 (13:05 +0000)
programs.  Add a configure option and a corresponding automake
conditional to enable these tests.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2453 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/configure.ac

index 5197c1f01c4c0e37423e579b2b97c7d5365b3fbd..204124fb4806df94b77f1f4f013b9b425ccfb741 100644 (file)
@@ -293,6 +293,11 @@ AC_ARG_ENABLE(stack-protector,
        AS_HELP_STRING([--enable-stack-protector],[enable stack protector (default is NO)]),
        CFLAGS="${CFLAGS} -fstack-protector-all")
 
+# --enable-tests
+AC_ARG_ENABLE(tests,
+       AS_HELP_STRING([--enable-tests],[build test programs (default is NO)]))
+AM_CONDITIONAL([ENABLE_TESTS], [test x$enable_tests = xyes])
+
 # --enable-werror
 AC_ARG_ENABLE(werror,
        AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),