aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-12 15:05:38 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-12 15:05:38 +0000
commit773e7e871e322526782efe44a1b64955ac3a77b1 (patch)
tree242b0fac5ccd8cda88afe8699bbf7e6de3047d06 /configure.ac
parent1d937d62c0aa3c0ef2e500510a44a02af56bd707 (diff)
If no nroff tool is found, or if no command line switch to nroff that converts
a man page to text is found, we disable the built-in manual stuff to still be able to build.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac34
1 files changed, 23 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 5b46220bf..3518006a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1093,23 +1093,35 @@ AC_PATH_PROGS( NROFF, gnroff nroff, ,
$PATH:/usr/bin/:/usr/local/bin )
AC_SUBST(NROFF)
-AC_MSG_CHECKING([how to use *nroff to get plain text from man pages])
-MANOPT="-man"
-mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
-if test -z "$mancheck"; then
- MANOPT="-mandoc"
+if test -n "$NROFF"; then
+ dnl only check for nroff options if an nroff command was found
+
+ AC_MSG_CHECKING([how to use *nroff to get plain text from man pages])
+ MANOPT="-man"
mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
if test -z "$mancheck"; then
- MANOPT=""
- AC_MSG_RESULT([failed])
- AC_MSG_WARN([found no *nroff option to get plaintext from man pages])
+ MANOPT="-mandoc"
+ mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
+ if test -z "$mancheck"; then
+ MANOPT=""
+ AC_MSG_RESULT([failed])
+ AC_MSG_WARN([found no *nroff option to get plaintext from man pages])
+ else
+ AC_MSG_RESULT([$MANOPT])
+ fi
else
AC_MSG_RESULT([$MANOPT])
fi
-else
- AC_MSG_RESULT([$MANOPT])
+ AC_SUBST(MANOPT)
+fi
+
+if test -z "$MANOPT"
+then
+ dnl if no nroff tool was found, or no option that could convert man pages
+ dnl was found, then disable the built-in manual stuff
+ AC_MSG_WARN([disabling built-in manual])
+ USE_MANUAL="no";
fi
-AC_SUBST(MANOPT)
AC_PROG_YACC