doc,build: Fix "make install" if yat2m isn't available
* configure.ac: Add hint for YAT2M variable. Set HAVE_YAT2M if yat2m was found. * doc/Makefile.am (myman_pages): Set to empty string if yat2m isn't available --
This commit is contained in:
parent
8e7f443045
commit
e4b04ae153
@ -105,6 +105,8 @@ AM_SILENT_RULES
|
||||
AC_ARG_VAR(SYSROOT,[locate config scripts also below that directory])
|
||||
|
||||
AC_PATH_PROG(YAT2M, [yat2m], [:])
|
||||
AC_ARG_VAR(YAT2M, [tool to convert texi to man pages])
|
||||
AM_CONDITIONAL(HAVE_YAT2M, test "$ac_cv_path_YAT2M" != ":")
|
||||
|
||||
# Enable GNU extensions on systems that have them.
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
@ -31,7 +31,11 @@ BUILT_SOURCES = defsincdate defs.inc
|
||||
YAT2M_OPTIONS = -I $(srcdir) --release "GPGME @PACKAGE_VERSION@"
|
||||
|
||||
myman_sources = gpgme-json.texi
|
||||
if HAVE_YAT2M
|
||||
myman_pages = gpgme-json.1
|
||||
else
|
||||
myman_pages =
|
||||
endif
|
||||
|
||||
man_MANS = $(myman_pages)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user