diff options
author | Dustin Sallings <dustin@spy.net> | 2009-03-12 09:24:30 -0700 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-03-13 10:07:30 -0700 |
commit | 20c623832163c749b4dda09822dd73b004638f7a (patch) | |
tree | 8a727c7e88abbbd7cf651870f3427c1a3ecbe7b2 | |
parent | 5e40caa44b5e1affa4e8a4d6a08481f3d5efcaee (diff) | |
download | memcached-20c623832163c749b4dda09822dd73b004638f7a.tar.gz |
Conditionally disable the generation of docs.
This toolkit requires connectivity. If you're offline, you just can't
build stuff.
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 036db60..6858ec9 100644 --- a/configure.ac +++ b/configure.ac @@ -330,9 +330,15 @@ AC_CHECK_FUNCS(setppriv, [ AM_CONDITIONAL([BUILD_SOLARIS_PRIVS],[test "$build_solaris_privs" = "yes"]) +AC_ARG_ENABLE(docs, + [AS_HELP_STRING([--disable-docs],[Disable documentation generation])]) + AC_PATH_PROG([XML2RFC], [xml2rfc], "no") AC_PATH_PROG([XSLTPROC], [xsltproc], "no") -AM_CONDITIONAL([BUILD_SPECIFICATIONS],[test "x$XML2RFC" != "xno" -a "x$XSLTPROC" != "xno"]) + +AM_CONDITIONAL([BUILD_SPECIFICATIONS], + [test "x$enable_docs" != "xno" -a "x$XML2RFC" != "xno" -a "x$XSLTPROC" != "xno"]) + dnl Let the compiler be a bit more picky. Please note that you cannot dnl specify these flags to the compiler before AC_CHECK_FUNCS, because |