From fb83297f030de61581fa494e86bc3388902e6aac Mon Sep 17 00:00:00 2001 From: hpa Date: Fri, 31 Jan 2003 02:17:01 +0000 Subject: [PATCH] libreadline depends on libtermcap on newer glibc releases, at least... fix autoheader problem --- configure.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 2c56170..eee5071 100644 --- a/configure.in +++ b/configure.in @@ -172,13 +172,17 @@ AH_TEMPLATE([WITH_READLINE], PA_WITH_BOOL(readline, 1, [ --without-readline disable the use of readline command-line editing], [ - USE_READLINE=true AC_CHECK_HEADER(readline/readline.h, [ + dnl readline may need libtermcap or somesuch... + AC_SEARCH_LIBS(tputs, [termcap terminfo]) + AC_SEARCH_LIBS(readline, [readline history], [ AC_DEFINE(WITH_READLINE) - ]) + ], + [], + [-ltermcap]) AC_CHECK_HEADERS(readline/history.h) ]) ],:) @@ -194,5 +198,5 @@ AC_PROG_LN_S AC_PROG_RANLIB AC_PROG_INSTALL -AC_CONFIG_HEADER(acconfig.h) +AC_CONFIG_HEADERS(acconfig.h) AC_OUTPUT(MCONFIG)