From 8588641801508b9615fa311d40480d5ae4e5fb56 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 11 Oct 2016 15:15:56 +1100 Subject: [PATCH] 4484. [bug] Failure to find readline when requested should be fatal to configure. [RT #43328] (cherry picked from commit 6caac8d9a9746ad6cdd9d2cb667244195598d849) --- CHANGES | 3 +++ configure | 8 ++++++++ configure.in | 8 ++++++++ 3 files changed, 19 insertions(+) diff --git a/CHANGES b/CHANGES index e34ee5c494..a6be45a0ea 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +4484. [bug] Failure to find readline when requested should be + fatal to configure. [RT #43328] + 4483. [func] Check prefixes in acls to make sure the address and prefix lengths are consistent. Warn only in BIND 9.11 and earlier. [RT #43367] diff --git a/configure b/configure index c8deac6fc2..8f57a6a3f1 100755 --- a/configure +++ b/configure @@ -17702,6 +17702,10 @@ done break fi done + if test "X$readline" = Xyes -a "$ac_cv_func_readline" != yes + then + as_fn_error $? "The readline library was not found." "$LINENO" 5 + fi LIBS="$saved_LIBS" ;; *) @@ -17748,6 +17752,10 @@ done fi done fi + if test "$ac_cv_func_readline" != yes + then + as_fn_error $? "The readline library was not found." "$LINENO" 5 + fi LIBS="$saved_LIBS" ;; esac diff --git a/configure.in b/configure.in index 39223311ab..47e9b7dff2 100644 --- a/configure.in +++ b/configure.in @@ -2702,6 +2702,10 @@ yes|auto) break fi done + if test "X$readline" = Xyes -a "$ac_cv_func_readline" != yes + then + AC_MSG_ERROR([The readline library was not found.]) + fi LIBS="$saved_LIBS" ;; *) @@ -2726,6 +2730,10 @@ yes|auto) fi done fi + if test "$ac_cv_func_readline" != yes + then + AC_MSG_ERROR([The readline library was not found.]) + fi LIBS="$saved_LIBS" ;; esac