From f82eb13f6543c5cf055ad06156a0cadc144fb9f4 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 29 Jan 2018 03:04:17 -0800 Subject: [PATCH] build: Make the manual pages creation optional --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 08b3950f..c795f9f3 100644 --- a/configure.ac +++ b/configure.ac @@ -107,7 +107,12 @@ if (test "${enable_dbusconf}" != "no" && test -z "${path_dbusconfdir}"); then fi AC_SUBST(DBUS_CONFDIR, [${path_dbusconfdir}]) -AC_PATH_PROG(A2X, [a2x], [], $PATH:/sbin:/usr/sbin) +AC_ARG_ENABLE([docs], AC_HELP_STRING([--enable-docs], + [build documentation and manual pages]), + [enable_docs=${enableval}]) +if (test "${enable_docs}" = "yes"); then + AC_PATH_PROG(A2X, [a2x], [], $PATH:/sbin:/usr/sbin) +fi AM_CONDITIONAL(BUILD_DOCS, test "$A2X" != "") AC_CONFIG_FILES(Makefile)