X-Git-Url: https://git.deb.at/w?p=pkg%2Fabook.git;a=blobdiff_plain;f=aclocal.m4;h=24963210efb3e1dbfc4b34f0f1327aa5b692b8ea;hp=d4278687e815e65d54c572fd1f34a87a5d131cd3;hb=d7a04a4e113b3d08aa0fde66ee658b7abe02e714;hpb=e8627e2a5127283fb5930c942dbf921d3f8b73fc diff --git a/aclocal.m4 b/aclocal.m4 index d427868..2496321 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -149,7 +149,7 @@ dnl AC_DEFUN([AC_LIB_READLINE], [ AC_CACHE_CHECK([for a readline compatible library], ac_cv_lib_readline, [ - ORIG_LIBS=$LIBS + ORIG_LIBS="$LIBS" for readline_lib in readline edit editline; do for termcap_lib in "" termcap curses ncurses; do if test -z "$termcap_lib"; then @@ -169,11 +169,12 @@ AC_DEFUN([AC_LIB_READLINE], [ done if test -z "$ac_cv_lib_readline"; then ac_cv_lib_readline="no" - LIBS=$ORIG_LIBS fi + LIBS="$ORIG_LIBS" ]) if test "$ac_cv_lib_readline" != "no"; then + LIBS="$LIBS $ac_cv_lib_readline" AC_DEFINE(HAVE_LIBREADLINE, 1, [Define if you have a readline compatible library]) AC_CHECK_HEADERS(readline.h readline/readline.h) @@ -188,6 +189,7 @@ AC_DEFUN([AC_LIB_READLINE], [ AC_CHECK_HEADERS(history.h readline/history.h) fi fi + ]) # Do all the work for Automake. This macro actually does too much --