summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/cf/krb-readline.m4
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/heimdal/cf/krb-readline.m4')
-rw-r--r--third_party/heimdal/cf/krb-readline.m428
1 files changed, 28 insertions, 0 deletions
diff --git a/third_party/heimdal/cf/krb-readline.m4 b/third_party/heimdal/cf/krb-readline.m4
new file mode 100644
index 0000000..ddb94bf
--- /dev/null
+++ b/third_party/heimdal/cf/krb-readline.m4
@@ -0,0 +1,28 @@
+dnl $Id$
+dnl
+dnl Tests for readline functions
+dnl
+
+dnl el_init
+
+AC_DEFUN([KRB_READLINE],[
+
+dnl readline
+
+ac_foo=no
+build_editline=no
+if test "$with_readline" = yes; then
+ :
+elif test "$with_libedit" = yes; then
+ LIB_readline="${LIB_libedit}"
+elif test "$ac_cv_func_readline" = yes; then
+ :
+else
+ build_libedit=yes
+ LIB_readline="\$(top_builddir)/lib/libedit/src/libheimedit.la \$(LIB_tgetent)"
+fi
+AM_CONDITIONAL(LIBEDIT, test "$build_libedit" = yes)
+AC_DEFINE(HAVE_READLINE, 1,
+ [Define if you have a readline compatible library.])dnl
+
+])