summaryrefslogtreecommitdiff
path: root/src/nss-myhostname/m4/zp_lynx_doc.m4
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-01-03 09:32:32 +0100
committerTom Gundersen <teg@jklm.no>2013-01-03 09:48:03 +0100
commit8e6640f0fe9eebde5a6cc9f1c0a20a289b8ad9c8 (patch)
treefb76d27619f2a25f3129606a0d1b1fbf5eb81407 /src/nss-myhostname/m4/zp_lynx_doc.m4
parent1df2a0fce427fab7754f6ac572cf68cef2e95696 (diff)
nss-myhostname: move to subdirectory
In order to merge into the systemd repos.
Diffstat (limited to 'src/nss-myhostname/m4/zp_lynx_doc.m4')
-rw-r--r--src/nss-myhostname/m4/zp_lynx_doc.m424
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nss-myhostname/m4/zp_lynx_doc.m4 b/src/nss-myhostname/m4/zp_lynx_doc.m4
new file mode 100644
index 0000000000..955a6ca0af
--- /dev/null
+++ b/src/nss-myhostname/m4/zp_lynx_doc.m4
@@ -0,0 +1,24 @@
+dnl Macro for enabling LYNX-based documentation generation
+
+AC_DEFUN([ZP_LYNX_DOC], [
+ AC_ARG_ENABLE(lynx,
+ AS_HELP_STRING([--disable-lynx],
+ [Turn off lynx usage for documentation generation]),,
+ [enable_lynx=yes])
+
+ case "${enable_lynx}" in
+ yes)
+ AC_CHECK_PROG(have_lynx, lynx, yes, no)
+
+ if test x$have_lynx = xno ; then
+ AC_MSG_WARN([*** lynx not found, plain text README will not be built ***])
+ fi
+ ;;
+ no)
+ have_lynx=no ;;
+ *)
+ AC_MSG_ERROR(bad value ${enableval} for --disable-lynx) ;;
+ esac
+
+ AM_CONDITIONAL([USE_LYNX], [test "x$have_lynx" = xyes])
+])