[PATCH] nft: Fix configure.ac so --enable-pdf-doc actually works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove a duplicate test for a2x which always failed and fix the test for
readline in libreadline which also always failed but somehow didn't get invoked.

The PDF build only works in single-threaded make, so after a multi-threaded
build fails one needs to run single-threaded e.g.

  make -j7 || make

Signed-off-by: Duncan Roe <duncan_roe@xxxxxxxxxxxxxxx>
---
 configure.ac | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index c1c9035..8ea702d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,13 +62,6 @@ AM_COND_IF([BUILD_PDF], [
 	AS_IF([test "$DBLATEX" == "no"],
 	      [AC_MSG_ERROR([dblatex not found])])
 	AS_IF([test -z "$A2X"],
-	      [AC_MSG_ERROR([a2x not found])])
-	[need_a2x=yes]
-])
-
-AS_IF([test "$need_a2x" = "yes"], [
-       AC_CHECK_PROG(A2X, [a2x], [found], [no])
-       AS_IF([test "$A2X" != "found"],
 	     [AC_MSG_ERROR([a2x not found, please install asciidoc])])
 ])
 
@@ -88,7 +81,7 @@ AC_ARG_WITH([cli], [AS_HELP_STRING([--without-cli],
             [], [with_cli=yes])
 AS_IF([test "x$with_cli" != xno], [
 AC_CHECK_LIB([readline], [readline], ,
-	     AC_MSG_ERROR([No suitable version of libreadline found]))
+	     AC_MSG_ERROR([No suitable version of libreadline found]), [-lncurses])
 AC_DEFINE([HAVE_LIBREADLINE], [1], [])
 ])
 AC_SUBST(with_cli)
-- 
2.9.0




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux