X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Freadline.m4;h=903886dc5ce53292fc702a10b8959172b48e09ca;hb=3a9002d3cc63da7110f133b1040d2d2b0aad8305;hp=90ce3574708174ead124030c6ebe9e046369102b;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/m4/readline.m4 b/m4/readline.m4 index 90ce35747..903886dc5 100644 --- a/m4/readline.m4 +++ b/m4/readline.m4 @@ -1,5 +1,5 @@ -# readline.m4 serial 8 -dnl Copyright (C) 2005-2006, 2009-2011 Free Software Foundation, Inc. +# readline.m4 serial 10 +dnl Copyright (C) 2005-2006, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -29,7 +29,7 @@ AC_DEFUN([gl_FUNC_READLINE], am_save_LIBS="$LIBS" dnl On some systems, -lreadline doesn't link without an additional dnl -lncurses or -ltermcap. - dnl Try -lncurses before -ltermcap, because libtermcap is unsecure + dnl Try -lncurses before -ltermcap, because libtermcap is insecure dnl by design and obsolete since 1994. Try -lcurses last, because dnl libcurses is unusable on some old Unices. for extra_lib in "" ncurses termcap curses; do @@ -72,12 +72,7 @@ AC_DEFUN([gl_FUNC_READLINE], AC_SUBST([LIBREADLINE]) AC_SUBST([LTLIBREADLINE]) - AC_CHECK_HEADERS([readline/readline.h]) - - if test "$gl_cv_lib_readline" = no; then - AC_LIBOBJ([readline]) - gl_PREREQ_READLINE - fi + AC_CHECK_HEADERS([readline/readline.h readline/history.h]) ]) # Prerequisites of lib/readline.c.