482
482
# Check for libreadline or compatible (libedit on Mac OS X)
483
483
#--------------------------------------------------------------------
485
dnl First, search for readline. If that fails, search for ncurses then
486
dnl search for readline again... on some platforms *cough* solaris *cough*
487
dnl you need to link with ncurses directly to get readline to work
489
AC_LIB_HAVE_LINKFLAGS(readline,ncurses,
492
#include <readline/readline.h>
495
AS_IF([test x$ac_cv_libreadline = xno],
496
AC_MSG_ERROR([libreadline is required for Drizzle]))
498
AC_CHECK_HEADERS(readline/history.h)
499
AC_CHECK_TYPES([HIST_ENTRY], [], [], [AC_INCLUDES_DEFAULT[
500
#ifdef HAVE_READLINE_HISTORY_H
501
#include <readline/history.h>
503
#include <readline/readline.h>
505
AC_CHECK_DECLS([completion_matches], [], [], [AC_INCLUDES_DEFAULT[
506
#ifdef HAVE_READLINE_HISTORY_H
507
#include <readline/history.h>
509
#include <readline/readline.h>
512
487
DRIZZLE_CHECK_NEW_RL_INTERFACE
908
883
DRIZZLE_HAVE_TIOCGWINSZ
909
884
DRIZZLE_HAVE_TIOCSTAT
910
885
DRIZZLE_TYPE_SIGHANDLER
911
if test "$with_named_curses" = "no"
913
DRIZZLE_CHECK_LIB_TERMCAP
915
TERMCAP_LIBS="$with_named_curses"
917
AC_SUBST(TERMCAP_LIBS)
919
# End of readline/libedit stuff
920
887
#########################################################################
922
889
dnl Checks for library functions.