Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Termcap saga again

On May 8, 10:36am, Peter Stephenson wrote:
} Subject: Termcap saga again
} It seems HAVE_CURSES_H isn't getting defined --- it's generating warnings
} about redefined macros, is this enough to stop configure recognising it?

Is it HAVE_CURSES_H that's not defined, or is it TERM_H_NEEDS_CURSES_H ?

It's that dang GCC overoptimization again, I'll wager.

Index: configure.in
RCS file: /extra/cvsroot/zsh/zsh-4.0/configure.in,v
retrieving revision 1.7
diff -c -r1.7 configure.in
--- configure.in	2001/05/02 16:59:00	1.7
+++ configure.in	2001/05/08 14:33:52
@@ -566,11 +566,11 @@
 if test x$ac_cv_header_term_h = xyes; then
 AC_MSG_CHECKING(if term.h needs curses.h)
-AC_TRY_COMPILE([#include <term.h>], [char **test = boolcodes;], boolcodes_with_only_term_h=yes,
+AC_TRY_COMPILE([#include <term.h>], [char **test = boolcodes; printf(*test);],
+boolcodes_with_only_term_h=yes, boolcodes_with_only_term_h=no)
 AC_TRY_COMPILE([#include <curses.h>
-#include <term.h>], [char **test = boolcodes;], boolcodes_with_curses_h_and_term_h=yes,
+#include <term.h>], [char **test = boolcodes; printf(*test);],
+boolcodes_with_curses_h_and_term_h=yes, boolcodes_with_curses_h_and_term_h=no)
 if test "x$boolcodes_with_curses_h_and_term_h" = xyes && test "x$boolcodes_with_only_term_h" = xno;

Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   

Messages sorted by: Reverse Date, Date, Thread, Author