1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

Clean up after 14270.

This commit is contained in:
Bart Schaefer 2001-05-09 05:42:12 +00:00
parent 5d714728bb
commit bb7ea94766
3 changed files with 11 additions and 11 deletions

@ -1,3 +1,8 @@
2001-05-08 Bart Schaefer <schaefer@zsh.org>
* 14275: configure.in, acconfig.h: Fix 14270 so that it works
after config.cache has been loaded.
2001-05-08 Peter Stephenson <pws@csr.com>
* 14270: configure.in, acconfig.h: use TRY_COMPILE to check for

@ -318,8 +318,5 @@
/* Define if you have the terminfo strnames symbol. */
#undef HAVE_STRNAMES
/* Define if we have curses.h */
#undef HAVE_CURSES_H
/* Define if term.h chokes without curses.h */
#undef TERM_H_NEEDS_CURSES_H

@ -562,15 +562,14 @@ esac])dnl
AC_SEARCH_LIBS(tgetent, [$termcap_curses_order])
case "$LIBS" in
*curses*)
AC_CACHE_CHECK(for curses.h, ac_cv_header_curses_h,
AC_CHECK_HEADERS(curses.h, [],
AC_CACHE_CHECK(for Solaris 8 curses.h mistake, 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)
ac_cv_header_curses_h=no)))
AC_CHECK_HEADERS(term.h,
[AC_MSG_CHECKING(if term.h needs curses.h)
AC_TRY_COMPILE([#include <term.h>], [char **test = boolcodes;], boolcodes_with_only_term_h=yes,
boolcodes_with_only_term_h=no)
AC_TRY_COMPILE([#include <curses.h>
@ -620,8 +619,7 @@ AC_TRY_LINK([#include <curses.h>
#include <term.h>], [char **test = strnames; printf(*test);],
AC_DEFINE(HAVE_STRNAMES) strnames=yes, strnames=no)
AC_MSG_RESULT($strnames)
fi;;
]);;
esac
dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require