summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-10-24 17:10:49 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-10-24 17:10:49 (GMT)
commiteb9b1032960dd47916ea31fe77f1c993e26c69f9 (patch)
treeb7dda25c1327ba70bec1b262733c5ccb04f0bf8f /configure.in
parent861a65bc2fa83485bdc66f86cb13d4ad4798a68d (diff)
downloadcpython-eb9b1032960dd47916ea31fe77f1c993e26c69f9.zip
cpython-eb9b1032960dd47916ea31fe77f1c993e26c69f9.tar.gz
cpython-eb9b1032960dd47916ea31fe77f1c993e26c69f9.tar.bz2
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
STRICT_SYSV_CURSES when compiling curses module on HP/UX. Generalize access to _flags on systems where WINDOW is opaque. Fixes bugs #432497, #422265, and the curses parts of #467145 and #473150.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index d9fdadf..dd724ae 100644
--- a/configure.in
+++ b/configure.in
@@ -1963,6 +1963,38 @@ then
AC_DEFINE(HAVE_BROKEN_NICE)
fi
+# On HP/UX 11.0, mvwdelch is a block with a return statement
+AC_MSG_CHECKING(whether mvwdelch is an expression)
+AC_CACHE_VAL(ac_cv_mvwdelch_is_expression,
+AC_TRY_COMPILE([#include <curses.h>], [
+ int rtn;
+ rtn = mvwdelch(0,0,0);
+], ac_cv_mvwdelch_is_expression=yes,
+ ac_cv_mvwdelch_is_expression=no,
+ ac_cv_mvwdelch_is_expression=yes))
+AC_MSG_RESULT($ac_cv_mvwdelch_is_expression)
+
+if test "$ac_cv_mvwdelch_is_expression" = yes
+then
+ AC_DEFINE(MVWDELCH_IS_EXPRESSION)
+fi
+
+AC_MSG_CHECKING(whether WINDOW has _flags)
+AC_CACHE_VAL(ac_cv_window_has_flags,
+AC_TRY_COMPILE([#include <curses.h>], [
+ WINDOW *w;
+ w->_flags = 0;
+], ac_cv_window_has_flags=yes,
+ ac_cv_window_has_flags=no,
+ ac_cv_window_has_flags=no))
+AC_MSG_RESULT($ac_cv_window_has_flags)
+
+
+if test "$ac_cv_window_has_flags" = yes
+then
+ AC_DEFINE(WINDOW_HAS_FLAGS)
+fi
+
# THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
# Add sys/socket.h to confdefs.h
cat >> confdefs.h <<\EOF