Commit 773e7e87 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 1d937d62
Loading
Loading
Loading
Loading
+23 −11
Original line number Diff line number Diff line
@@ -1093,6 +1093,9 @@ AC_PATH_PROGS( NROFF, gnroff nroff, ,
  $PATH:/usr/bin/:/usr/local/bin )
AC_SUBST(NROFF)

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`
@@ -1110,6 +1113,15 @@ else
    AC_MSG_RESULT([$MANOPT])
  fi
  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_PROG_YACC