mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-10-02 00:41:44 +02:00
Use AC_TRY_COMPILE for curses.h test because of SunOS 5.8
This commit is contained in:
parent
b8fd7a31bd
commit
7548baf57b
@ -1,3 +1,9 @@
|
||||
2001-05-08 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* probably 14268: configure.in, acconfig.h: use TRY_COMPILE
|
||||
to check for curses.h because SunOS 5.8 produces warnings which
|
||||
cause HAVE_CURSES_H not to be defined.
|
||||
|
||||
2001-05-08 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted: Completion/Zsh/Context/_subscript: Remove unnecessary
|
||||
|
@ -318,5 +318,8 @@
|
||||
/* 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,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)
|
||||
|
Loading…
Reference in New Issue
Block a user