~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2009-01-09 05:20:49 UTC
  • mto: (779.1.2 devel)
  • mto: This revision was merged to the branch mainline in revision 784.
  • Revision ID: mordred@inaugust.com-20090109052049-bglg06jf2l7ix0a3
Updated some more build stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
482
482
# Check for libreadline or compatible (libedit on Mac OS X)
483
483
#--------------------------------------------------------------------
484
484
 
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
488
 
 
489
 
AC_LIB_HAVE_LINKFLAGS(readline,ncurses,
490
 
[
491
 
#include <stdlib.h>
492
 
#include <readline/readline.h>
493
 
],
494
 
[rl_initialize();])
495
 
AS_IF([test x$ac_cv_libreadline = xno],
496
 
      AC_MSG_ERROR([libreadline is required for Drizzle]))
497
 
 
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>
502
 
#endif
503
 
#include <readline/readline.h>
504
 
]])
505
 
AC_CHECK_DECLS([completion_matches], [], [], [AC_INCLUDES_DEFAULT[
506
 
#ifdef HAVE_READLINE_HISTORY_H
507
 
#include <readline/history.h>
508
 
#endif
509
 
#include <readline/readline.h>
510
 
]])
 
485
VL_LIB_READLINE
511
486
 
512
487
DRIZZLE_CHECK_NEW_RL_INTERFACE
513
488
 
908
883
DRIZZLE_HAVE_TIOCGWINSZ
909
884
DRIZZLE_HAVE_TIOCSTAT
910
885
DRIZZLE_TYPE_SIGHANDLER
911
 
if test "$with_named_curses" = "no"
912
 
then
913
 
  DRIZZLE_CHECK_LIB_TERMCAP
914
 
else
915
 
  TERMCAP_LIBS="$with_named_curses"
916
 
fi
917
 
AC_SUBST(TERMCAP_LIBS)
918
886
 
919
 
# End of readline/libedit stuff
920
887
#########################################################################
921
888
 
922
889
dnl Checks for library functions.