mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
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.
This commit is contained in:
parent
1d937d62c0
commit
773e7e871e
34
configure.ac
34
configure.ac
@ -1093,23 +1093,35 @@ AC_PATH_PROGS( NROFF, gnroff nroff, ,
|
|||||||
$PATH:/usr/bin/:/usr/local/bin )
|
$PATH:/usr/bin/:/usr/local/bin )
|
||||||
AC_SUBST(NROFF)
|
AC_SUBST(NROFF)
|
||||||
|
|
||||||
AC_MSG_CHECKING([how to use *nroff to get plain text from man pages])
|
if test -n "$NROFF"; then
|
||||||
MANOPT="-man"
|
dnl only check for nroff options if an nroff command was found
|
||||||
mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
|
|
||||||
if test -z "$mancheck"; then
|
AC_MSG_CHECKING([how to use *nroff to get plain text from man pages])
|
||||||
MANOPT="-mandoc"
|
MANOPT="-man"
|
||||||
mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
|
mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
|
||||||
if test -z "$mancheck"; then
|
if test -z "$mancheck"; then
|
||||||
MANOPT=""
|
MANOPT="-mandoc"
|
||||||
AC_MSG_RESULT([failed])
|
mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
|
||||||
AC_MSG_WARN([found no *nroff option to get plaintext from man pages])
|
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
|
else
|
||||||
AC_MSG_RESULT([$MANOPT])
|
AC_MSG_RESULT([$MANOPT])
|
||||||
fi
|
fi
|
||||||
else
|
AC_SUBST(MANOPT)
|
||||||
AC_MSG_RESULT([$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
|
fi
|
||||||
AC_SUBST(MANOPT)
|
|
||||||
|
|
||||||
AC_PROG_YACC
|
AC_PROG_YACC
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user