From 72e5680b4f3ffdb4d17923d669d25c1721fd38d3 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Wed, 5 Aug 2009 13:55:03 +0000 Subject: [PATCH] A little better behavior when standard editline library requested but not found --- configure.in | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index d82ea53a1c..95024a45f8 100644 --- a/configure.in +++ b/configure.in @@ -422,12 +422,13 @@ AC_ARG_WITH(system-editline, READLINE=edit # builtin default saveLIBS=$LIBS if test "$STD_EDITLINE" = "true"; then - AC_CHECK_LIB(edit, readline, READLINE=edit, - AC_CHECK_LIB(editline, readline, READLINE=editline, - AC_CHECK_LIB(readline, readline, READLINE=readline, STD_EDITLINE=false))) -fi -if test "$STD_EDITLINE" = "true"; then - EDITLINE_FLG=Y + AC_CHECK_LIB(edit, readline, [READLINE=edit EDITLINE_FLG=Y], + AC_CHECK_LIB(editline, readline, [READLINE=editline EDITLINE_FLG=Y], + AC_CHECK_LIB(readline, readline, [READLINE=readline EDITLINE_FLG=Y], + [STD_EDITLINE=false + if test "$EDITLINE_FLG" = "Y"; then + AC_MSG_WARN([[[--with-system-editline specified, not found. Using bundled editline]]])]))) + fi fi LIBS=$saveLIBS