1 1.1 elric dnl $Id: krb-readline.m4,v 1.1 2011/04/13 18:14:32 elric Exp $ 2 1.1 elric dnl 3 1.1 elric dnl Tests for readline functions 4 1.1 elric dnl 5 1.1 elric 6 1.1 elric dnl el_init 7 1.1 elric 8 1.1 elric AC_DEFUN([KRB_READLINE],[ 9 1.1 elric 10 1.1 elric dnl readline 11 1.1 elric 12 1.1 elric ac_foo=no 13 1.1 elric build_editline=no 14 1.1 elric if test "$with_readline" = yes; then 15 1.1 elric : 16 1.1 elric elif test "$with_libedit" = yes; then 17 1.1 elric LIB_readline="${LIB_libedit}" 18 1.1 elric elif test "$ac_cv_func_readline" = yes; then 19 1.1 elric : 20 1.1 elric else 21 1.1 elric build_libedit=yes 22 1.1 elric LIB_readline="\$(top_builddir)/lib/libedit/src/libheimedit.la \$(LIB_tgetent)" 23 1.1 elric fi 24 1.1 elric AM_CONDITIONAL(LIBEDIT, test "$build_libedit" = yes) 25 1.1 elric AC_DEFINE(HAVE_READLINE, 1, 26 1.1 elric [Define if you have a readline compatible library.])dnl 27 1.1 elric 28 1.1 elric ]) 29