466
466
# Check for libreadline or compatible (libedit on Mac OS X)
467
467
#--------------------------------------------------------------------
469
dnl First, search for readline. If that fails, search for ncurses then
470
dnl search for readline again... on some platforms *cough* solaris *cough*
471
dnl you need to link with ncurses directly to get readline to work
470
SEARCH_FOR_LIB(readline, rl_initialize, readline/readline.h,
471
AC_MSG_ERROR([libreadline is required for Drizzle]))
473
SEARCH_FOR_LIB(readline, rl_initialize, readline/readline.h,[
474
SEARCH_FOR_LIB(ncurses, tgetent, ncurses/ncurses.h, [
475
SEARCH_FOR_LIB(tinfo, tgetent, ncurses/ncurses.h,
476
AC_MSG_ERROR([Couldn't find ncurses])
480
SEARCH_FOR_LIB(readline, rl_initialize, readline/readline.h,
481
AC_MSG_ERROR([libreadline is required for Drizzle]),
473
486
save_CPPFLAGS="$CPPFLAGS"
474
487
CPPFLAGS="$CPPFLAGS $READLINE_CFLAGS"