fix readline configure issues (obs from Paulo Moura).

This commit is contained in:
Vitor Santos Costa 2010-10-13 00:20:40 +01:00
parent 755a57fdbd
commit 7a29007eb5
2 changed files with 235 additions and 298 deletions

516
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -610,14 +610,15 @@ fi
if test "$yap_cv_readline" != "no"
then
AC_CHECK_LIB(termcap,tgetent)
case "$target_os" in
*darwin*)
;;
*)
AC_CHECK_LIB(ncurses,main)
esac
AC_CHECK_LIB(readline,readline)
AC_CHECK_LIB([readline], [main],[
AC_DEFINE([HAVE_LIBREADLINE], [1],[Define if you have libreadline])
LIBS="$LIBS -lreadline -lncurses"
],
[if test "x$with_readline" != xcheck; then
AC_MSG_FAILURE(
[--with-readline was given, but test for readline failed])
fi
], -lncurses)
fi
if test "$yap_cv_gmp" != "no"
then