Fix man page configure check

Default to enabling the man page generation.

https://bugzilla.gnome.org/show_bug.cgi?id=743255
This commit is contained in:
David King 2015-01-20 14:24:55 +00:00
parent 2b6c02e814
commit 9498561cf6

View file

@ -88,17 +88,22 @@ AC_SUBST(GLIB_COMPILE_RESOURCES)
# Documentation # # Documentation #
################# #################
AC_ARG_ENABLE(man-pages, AC_ARG_ENABLE([man-pages],
AC_HELP_STRING([--enable-man-pages], [AS_HELP_STRING([--disable-man-pages],
[build man pages]),, [disable building man pages])])
enable_documentation=yes) AS_IF([test "x$enable_man_pages" != "xno"],
if test x$enable_man_pages = xyes; then [AC_PATH_PROG([XSLTPROC], [xsltproc])
AC_PATH_PROG([XSLTPROC], [xsltproc]) AS_IF([test "xac_cv_path_XSLTPROC" = "x"], [have_xsltproc=no],
if test x$XSLTPROC = x; then [have_xsltproc=yes])
AC_MSG_ERROR([xsltproc is required to build man pages]) dnl TODO: Also check for the required stylesheets.
fi AS_IF([test "x$have_xsltproc" = "xyes"],
fi [have_manutils=yes],
AM_CONDITIONAL(BUILD_MAN_PAGES, test x$enable_man_pages = xyes) [AS_IF([test "x$enable_man_pages" = "xyes"],
[AC_MSG_ERROR([man page requested but required utilities were not found])])
have_manutils=no])],
[have_manutils=no])
AM_CONDITIONAL([BUILD_MAN_PAGES], [test "x$have_manutils" = "xyes"])
dnl libgd dnl libgd