[Python-checkins] python/dist/src configure.in, 1.475,
1.475.2.1 configure, 1.462, 1.462.2.1
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Tue Nov 30 23:08:38 CET 2004
Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17211
Modified Files:
Tag: release24-maint
configure.in configure
Log Message:
Fix term.h check so that HAVE_TERM_H is actually generated.
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.475
retrieving revision 1.475.2.1
diff -u -d -r1.475 -r1.475.2.1
--- configure.in 7 Nov 2004 01:24:11 -0000 1.475
+++ configure.in 30 Nov 2004 22:08:27 -0000 1.475.2.1
@@ -974,7 +974,7 @@
AC_HEADER_MAJOR
# On Solaris, term.h requires curses.h
-AC_CHECK_HEADER(term.h,,,[
+AC_CHECK_HEADERS(term.h,,,[
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.462
retrieving revision 1.462.2.1
diff -u -d -r1.462 -r1.462.2.1
--- configure 7 Nov 2004 01:24:12 -0000 1.462
+++ configure 30 Nov 2004 22:08:28 -0000 1.462.2.1
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 1.474 .
+# From configure.in Revision: 1.475 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for python 2.4.
#
@@ -5382,9 +5382,13 @@
# On Solaris, term.h requires curses.h
-echo "$as_me:$LINENO: checking for term.h" >&5
-echo $ECHO_N "checking for term.h... $ECHO_C" >&6
-if test "${ac_cv_header_term_h+set}" = set; then
+
+for ac_header in term.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
@@ -5399,7 +5403,7 @@
#endif
-#include <term.h>
+#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
@@ -5423,18 +5427,25 @@
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_header_term_h=yes
+ eval "$as_ac_Header=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_header_term_h=no
+eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
-echo "${ECHO_T}$ac_cv_header_term_h" >&6
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+fi
+
+done
# checks for typedefs
More information about the Python-checkins
mailing list