aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--doc/Makefile.am4
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f64f252d..648a0801 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/doc/Makefile.am b/doc/Makefile.am
index cee802d5..584a6f85 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -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)