summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-02-27 17:26:03 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:05 +0100
commit18487b02b48a57c5d331bfb417feef451501cb51 (patch)
treeaf390a00d2b9162cbe7271c1d4e9fcbd95bad799 /configure.ac
parentf5dde44eee092602bee6df746043abc6fcfec38f (diff)
next attempt to get readline interaction correct
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 91364ec..e53db83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,7 +44,7 @@ sort -u |tr '
])
dnl Phew! We now have a list of <signal.h>s. Examine each one to see
-dnl if it contains the signal names we're after. If not, that's a a
+dnl if it contains the signal names we're after. If not, that's a
dnl configure error: bomb out.
AC_CACHE_CHECK(for signal names, rc_cv_signal_h,
@@ -67,6 +67,14 @@ AC_TYPE_SIZE_T
AC_TYPE_UID_T
AC_CHECK_TYPE(ssize_t, long)
+dnl Check type of sig_atomic_t.
+AC_CACHE_CHECK(for sig_atomic_t, rc_cv_sig_atomic_t,
+ AC_EGREP_HEADER(sig_atomic_t, signal.h,
+ rc_cv_sig_atomic_t=yes, rc_cv_sig_atomic_t=no))
+case "$rc_cv_sig_atomic_t" in
+no) AC_DEFINE(sig_atomic_t, int) ;;
+esac
+
AC_CHECK_FUNCS(getgroups setpgrp setrlimit)
@@ -316,5 +324,6 @@ AC_ARG_WITH(readline, [ --with-readline Bloated GNU line editing],
AC_DEFINE(READLINE) LIBS="$LIBS -lreadline -ltermcap",
AC_MSG_WARN(readline library not found),
-ltermcap))
+AM_CONDITIONAL(READLINE, test "$ac_cv_lib_readline_readline" = yes || test "$ac_cv_lib_edit_readline" = yes)
AC_OUTPUT(Makefile)