about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-05-08 18:34:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-05-08 18:34:38 +0000
commit7548baf57b95f0e3083cf5074924f016dcff5f98 (patch)
tree0d83080eb91a8a956cc6d481fd22239fe299a026 /configure.in
parentb8fd7a31bdce7a6e426e661644c0be21723a2962 (diff)
downloadzsh-7548baf57b95f0e3083cf5074924f016dcff5f98.tar.gz
zsh-7548baf57b95f0e3083cf5074924f016dcff5f98.tar.xz
zsh-7548baf57b95f0e3083cf5074924f016dcff5f98.zip
Use AC_TRY_COMPILE for curses.h test because of SunOS 5.8
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 053502142..e2130d166 100644
--- a/configure.in
+++ b/configure.in
@@ -562,7 +562,12 @@ esac])dnl
 AC_SEARCH_LIBS(tgetent, [$termcap_curses_order])
 case "$LIBS" in
 *curses*)
-AC_CHECK_HEADERS(curses.h term.h)
+AC_CACHE_CHECK(for curses.h, ac_cv_header_curses_h,
+AC_TRY_COMPILE([#include <curses.h>], [],
+[ac_cv_header_curses_h=yes
+AC_DEFINE(HAVE_CURSES_H)],
+ac_cv_header_curses_h=no))
+AC_CHECK_HEADERS(term.h)
 if test x$ac_cv_header_term_h = xyes; then
 
 AC_MSG_CHECKING(if term.h needs curses.h)