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
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)
AC_CHECK_HEADERS(history.h readline/history.h)
fi
fi
+
])
# Do all the work for Automake. This macro actually does too much --
done<<>>dnl>>)
changequote([,]))])
-#serial 1
+# isc-posix.m4 serial 1 (gettext-0.10.40)
+dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
# This test replaces the one in autoconf.
# Currently this macro should have the same name as the autoconf macro
# because gettext's gettext.m4 (distributed in the automake package)