configure: enable asciidoc/xmlto automatically, if building from .git
authorMarko Kreen <markokr@gmail.com>
Fri, 3 Sep 2010 10:53:31 +0000 (13:53 +0300)
committerMarko Kreen <markokr@gmail.com>
Fri, 3 Sep 2010 10:53:31 +0000 (13:53 +0300)
configure.ac

index 6bb42eb4c5fc2a5172d107da55fd148fa6022372..91cc31fe3d9dbd21d7836474ba2bb1062ad2ccaa 100644 (file)
@@ -93,6 +93,18 @@ else
   XMLTO="no"
 fi
 
+# when in .git tree, turn asciidoc/xmlto uncondicionally on
+if test -d .git; then
+  if test "$ASCIIDOC" = "no"; then
+    echo "*** Building from GIT requires asciidoc, enabling it ***"
+    ASCIIDOC="asciidoc"
+  fi
+  if test "$XMLTO" = "no"; then
+    echo "*** Building from GIT requires xmlto, enabling it ***"
+    XMLTO="xmlto"
+  fi
+fi
+
 AC_USUAL_PORT_CHECK
 AC_USUAL_PROGRAM_CHECK
 AC_USUAL_HEADER_CHECK