about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-04-12 02:49:14 +0000
committerClint Adams <clint@users.sourceforge.net>2001-04-12 02:49:14 +0000
commite05ca62a9cd33a116454bd471e33c17f9c0c8191 (patch)
treeee32b61e921a278ef58d17d1755d8597c1934488 /configure.in
parent15ff54f27aecd748204e84f7bd6eae12e5b11b7f (diff)
downloadzsh-e05ca62a9cd33a116454bd471e33c17f9c0c8191.tar.gz
zsh-e05ca62a9cd33a116454bd471e33c17f9c0c8191.tar.xz
zsh-e05ca62a9cd33a116454bd471e33c17f9c0c8191.zip
13953: use curses capability inventories instead of hardcoding and presume
that they are terminfo
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 16 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 722cd24f7..d6cd03753 100644
--- a/configure.in
+++ b/configure.in
@@ -439,7 +439,7 @@ AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \
 		 limits.h fcntl.h libc.h sys/utsname.h sys/resource.h \
 		 locale.h errno.h stdlib.h unistd.h sys/capability.h \
 		 utmp.h utmpx.h sys/types.h pwd.h grp.h poll.h sys/mman.h \
-		 linux/tasks.h netinet/in_systm.h)
+		 linux/tasks.h netinet/in_systm.h curses.h term.h)
 if test $dynamic = yes; then
   AC_CHECK_HEADERS(dlfcn.h)
   AC_CHECK_HEADERS(dl.h)
@@ -515,6 +515,21 @@ case "$host_os" in
 esac
 
 AC_SEARCH_LIBS(tgetent, [$termcap_curses_order])
+AC_MSG_CHECKING(if boolcodes is available)
+AC_TRY_COMPILE([#include <curses.h>
+#include <term.h>], [char **test = boolcodes;],
+AC_DEFINE(HAVE_BOOLCODES) boolcodes=yes, boolcodes=no)
+AC_MSG_RESULT($boolcodes)
+AC_MSG_CHECKING(if numcodes is available)
+AC_TRY_COMPILE([#include <curses.h>
+#include <term.h>], [char **test = numcodes;],
+AC_DEFINE(HAVE_NUMCODES) numcodes=yes, numcodes=no)
+AC_MSG_RESULT($numcodes)
+AC_MSG_CHECKING(if strcodes is available)
+AC_TRY_COMPILE([#include <curses.h>
+#include <term.h>], [char **test = strcodes;],
+AC_DEFINE(HAVE_STRCODES) strcodes=yes, strcodes=no)
+AC_MSG_RESULT($strcodes)
 
 dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require
 dnl libnsl (Network Services Library) to find yp_all