aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2003-01-31 02:17:01 +0000
committerhpa <hpa>2003-01-31 02:17:01 +0000
commitfb83297f030de61581fa494e86bc3388902e6aac (patch)
treeb48cd5328c2d5e2ffc8790aec901934eb10eddf8
parent9e952fed98d1fc81e5b9a9810b795036c585c6fb (diff)
downloadtftp-hpa-fb83297f030de61581fa494e86bc3388902e6aac.tar.gz
libreadline depends on libtermcap on newer glibc releases, at least...
fix autoheader problem
-rw-r--r--configure.in10
1 files 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)