fix readline configure issues (obs from Paulo Moura).
This commit is contained in:
parent
755a57fdbd
commit
7a29007eb5
17
configure.in
17
configure.in
@ -610,14 +610,15 @@ fi
|
|||||||
|
|
||||||
if test "$yap_cv_readline" != "no"
|
if test "$yap_cv_readline" != "no"
|
||||||
then
|
then
|
||||||
AC_CHECK_LIB(termcap,tgetent)
|
AC_CHECK_LIB([readline], [main],[
|
||||||
case "$target_os" in
|
AC_DEFINE([HAVE_LIBREADLINE], [1],[Define if you have libreadline])
|
||||||
*darwin*)
|
LIBS="$LIBS -lreadline -lncurses"
|
||||||
;;
|
],
|
||||||
*)
|
[if test "x$with_readline" != xcheck; then
|
||||||
AC_CHECK_LIB(ncurses,main)
|
AC_MSG_FAILURE(
|
||||||
esac
|
[--with-readline was given, but test for readline failed])
|
||||||
AC_CHECK_LIB(readline,readline)
|
fi
|
||||||
|
], -lncurses)
|
||||||
fi
|
fi
|
||||||
if test "$yap_cv_gmp" != "no"
|
if test "$yap_cv_gmp" != "no"
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user