]> git.ipfire.org Git - oddments/ddns.git/blobdiff - configure.ac
Add support for generating manpages.
[oddments/ddns.git] / configure.ac
index ae217ac1c987683d1a532e46b69dc85b896cc965..2d4c568f3445ce78c22bd1435293c30b22e0f494 100644 (file)
@@ -21,7 +21,7 @@
 AC_PREREQ([2.64])
 
 AC_INIT([ddns],
-       [001],
+       [003],
        [info@ipfire.org],
        [ddns],
        [http://git.ipfire.org/?p=oddments/ddns.git;a=summary])
@@ -51,6 +51,8 @@ AC_PROG_LN_S
 AC_PROG_MKDIR_P
 AC_PROG_SED
 
+AC_PATH_PROG([XSLTPROC], [xsltproc])
+
 # Python
 AM_PATH_PYTHON([2.7])
 
@@ -62,6 +64,14 @@ fi
 
 save_LIBS="$LIBS"
 
+# ------------------------------------------------------------------------------
+have_manpages=no
+AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
+AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
+AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
+
+# ------------------------------------------------------------------------------
+
 AC_CONFIG_FILES([
        Makefile
        po/Makefile.in
@@ -70,7 +80,12 @@ AC_CONFIG_FILES([
 
 AC_OUTPUT
 AC_MSG_RESULT([
-       $PACKAGE_NAME $VERSION
+       ${PACKAGE_NAME} ${VERSION}
+
+       prefix            : ${prefix}
+       sysconfdir        : ${sysconfdir}
+
+       nsupdate          : ${NSUPDATE}
 
-       nsupdate: ${NSUPDATE}
+       Generate manpages : ${have_manpages}
 ])