diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2000-07-26 10:09:47 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-07-26 10:09:47 +0000 |
commit | dbf48f330a76670b80bec93e3a78292433ab6f79 (patch) | |
tree | 93c7981ff9dcc4c2f506a3b7840849bd38b316b4 | |
parent | 79208f1d016ef9e3dcba4ab158c6698bb34aeccc (diff) | |
download | zsh-dbf48f330a76670b80bec93e3a78292433ab6f79.tar.gz zsh-dbf48f330a76670b80bec93e3a78292433ab6f79.tar.xz zsh-dbf48f330a76670b80bec93e3a78292433ab6f79.zip |
Andrej/pws: 12381: tgetent accepts NULL test, cygwin, Windows 2000
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.in | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 8eba67e24..2ebb4ef20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-07-26 Peter Stephenson <pws@cambridgesiliconradio.com> + + * Andrej/pws: 12381: configure.in: cygwin on Windows 2000 is + mysteriously returning status 0 even though the test fails, so + create a file we can test to see if the test got that far. + 2000-07-26 Bart Schaefer <schaefer@zsh.org> * 12377: Completion/Core/compaudit, Completion/Core/compinit, diff --git a/configure.in b/configure.in index da63da90f..5054a63f0 100644 --- a/configure.in +++ b/configure.in @@ -579,6 +579,8 @@ fi dnl Check if tgetent accepts NULL (and will allocate its own termcap buffer) dnl Some termcaps reportedly accept a zero buffer, but then dump core dnl in tgetstr(). +dnl Under Cygwin test program crashes but exit code is still 0. So, +dnl we test for a file that porgram should create AC_CACHE_CHECK(if tgetent accepts NULL, zsh_cv_func_tgetent_accepts_null, [AC_TRY_RUN([ @@ -589,11 +591,16 @@ main() char tbuf[1024], *u; u = tbuf; tgetstr("cl", &u); + creat("conftest.tgetent", 0640); } exit(!i || i == -1); } ], - zsh_cv_func_tgetent_accepts_null=yes, + if test -f conftest.tgetent; then + zsh_cv_func_tgetent_accepts_null=yes + else + zsh_cv_func_tgetent_accepts_null=no + fi, zsh_cv_func_tgetent_accepts_null=no, zsh_cv_func_tgetent_accepts_null=no)]) if test $zsh_cv_func_tgetent_accepts_null = yes; then |