summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-09-27 17:20:44 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2018-09-28 16:19:53 +0200
commit6dd00d876e2b947e070f776f90fbb8305a237d21 (patch)
treeca02afd4c6d7984055021ed950d44759d5b3fcc7 /configure.ac
parent83c7134c7a9cbc9ef493a8c82071fb2cda24546c (diff)
osmo-config-merge: Add manual page
Change-Id: Ifaa5afe28779a805764caf76a89efb0a3169942e
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index bc3358a0..529aad1d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,6 +77,19 @@ AC_ARG_ENABLE(doxygen,
AC_PATH_PROG(DOXYGEN,doxygen,false)
AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYGEN != false && test "x$doxygen" = "xyes")
+AC_ARG_ENABLE([man-doc],
+ [AS_HELP_STRING([--disable-man-doc], [Disable man page documentation])],
+ [ BUILD_MAN=$enableval ], [ BUILD_MAN="yes" ])
+
+AS_IF([test "x$BUILD_MAN" = "xyes"], [
+ AC_CHECK_PROG(A2X, [a2x], [yes])
+ AS_IF([test "$A2X" != "yes"],
+ [AC_MSG_ERROR([a2x not found, please install asciidoc or use the
+ option --disable-man-doc])])
+])
+AM_CONDITIONAL(BUILD_MAN, test "x$BUILD_MAN" = "xyes")
+AC_SUBST(BUILD_MAN)
+
# check for syscal fallback on glibc < 2.25 - can be removed once glibc version requirement is bumped
AC_CHECK_DECLS([SYS_getrandom], [], [], [[#include <sys/syscall.h>]])
@@ -370,6 +383,7 @@ AC_OUTPUT(
libosmoctrl.pc
libosmosim.pc
include/Makefile
+ man/Makefile
src/Makefile
src/vty/Makefile
src/codec/Makefile