diff aclocal.m4 @ 3824:0ee55719541a

[project @ 2001-04-26 17:07:21 by jwe]
author jwe
date Thu, 26 Apr 2001 17:07:22 +0000
parents 1a809dae77db
children 74255bd05bdd
line wrap: on
line diff
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -978,16 +978,15 @@
   AC_ARG_ENABLE(readline,
     [  --enable-readline       use readline library (default is yes)],
     [if test "$enableval" = no; then
-       USE_READLINE=false;
-     fi], [])
+       USE_READLINE=false
+     fi])
   if $USE_READLINE; then
     AC_CHECK_LIB(readline, rl_set_keyboard_input_timeout, [
       LIBS="-lreadline $LIBS"
       AC_DEFINE(USE_READLINE, 1)
     ], [
-      USE_READLINE=false
-      warn_readline="To use GNU Readline, I need version 4.2 or later"
-      AC_MSG_WARN($warn_readline)
+      AC_MSG_WARN([I need GNU Readline 4.2 or later])
+      AC_MSG_ERROR([this is fatal unless you specify --disable-readline])
     ])
   fi
 ])