From 1c713de0fa7d5f695264874ac2acde70cc40a3d3 Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 23 Jun 2011 06:31:08 +0000 Subject: [PATCH] fox for #302. refuse to build if troff and nroff are not around git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2188 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/configure.ac | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/program/configure.ac b/program/configure.ac index 10603bdb..0a68ceb6 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -904,8 +904,16 @@ fi AC_SUBST(COMP_PYTHON) dnl Check for nroff -AC_PATH_PROGS(NROFF, gnroff nroff) -AC_PATH_PROGS(TROFF, groff troff) +AC_ARG_VAR(NROFF, [path to the local nroff version]) +AC_PATH_PROGS(NROFF, [gnroff nroff]) +if test x$NROFF = x; then + AC_MSG_ERROR([I need a copy of *nroff to format the documentation]) +fi +AC_ARG_VAR(TROFF, [path to the local troff version]) +AC_PATH_PROGS(TROFF, [groff troff]) +if test x$TROFF = x; then + AC_MSG_ERROR([I need a copy of *troff to format the documentation]) +fi AC_ARG_VAR(RRDDOCDIR, [[DATADIR/doc/PACKAGE-VERSION] Documentation directory]) if test -z "$RRDDOCDIR"; then -- 2.30.2