1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2024-11-29 00:24:11 +01:00

Adds autotools option for building without documentation

- removes a2x dependency used for man page generation by configuring with:
  ./configure --disable-documentation
This commit is contained in:
Edmundo Ferreira 2019-12-05 10:57:11 +01:00
parent 04f26f7d29
commit 2a98e0ac1b
2 changed files with 11 additions and 0 deletions

View File

@ -58,6 +58,7 @@ endif
ykpamcfg_SOURCES = ykpamcfg.c
ykpamcfg_LDADD = libpam_util.la
if ENABLE_DOC
if YKPERS
dist_man1_MANS = ykpamcfg.1
endif
@ -78,6 +79,8 @@ SUFFIXES = .1.txt .1 .8.txt .8
$(A2X) -L --format=manpage -a revdate="Version $(VERSION)" $<
endif
if ENABLE_COV
AM_CFLAGS += --coverage
AM_LDFLAGS = --coverage

View File

@ -50,6 +50,14 @@ AC_CHECK_LIB([pam], [pam_start], [AC_SUBST([LIBPAM], ["-lpam"])])
AC_SEARCH_LIBS([pam_modutil_drop_priv], ["pam"], [AC_DEFINE([HAVE_PAM_MODUTIL_DROP_PRIV], [1])])
# --disable-documentation
AC_ARG_ENABLE([documentation],
[AS_HELP_STRING([--disable-documentation],
[do not build documentation])],
[enable_doc="${enableval}" ],
[enable_doc="yes"])
AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no")
AC_ARG_WITH([ldap],
[AS_HELP_STRING([--without-ldap],
[disable support for ldap])],