Skip to content

Commit de7ee9e

Browse files
committed
In the configure check for the Python distutils module, use a less obscure
shell construct to hide away the stderr output. Python 3.1 actually core dumps on the current invocation (http://bugs.python.org/issue7111), but the new version also has the more general advantage of saving the error message in config.log for analysis.
1 parent ea2467d commit de7ee9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/python.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Autoconf macros for configuring the build of Python extension modules
33
#
4-
# $PostgreSQL: pgsql/config/python.m4,v 1.15 2009/01/04 00:54:15 petere Exp $
4+
# $PostgreSQL: pgsql/config/python.m4,v 1.16 2009/10/14 21:59:15 petere Exp $
55
#
66

77
# PGAC_PATH_PYTHON
@@ -22,7 +22,7 @@ fi
2222
AC_DEFUN([_PGAC_CHECK_PYTHON_DIRS],
2323
[AC_REQUIRE([PGAC_PATH_PYTHON])
2424
AC_MSG_CHECKING([for Python distutils module])
25-
if "${PYTHON}" 2>&- -c 'import distutils'
25+
if "${PYTHON}" -c 'import distutils' 2>&AS_MESSAGE_LOG_FD
2626
then
2727
AC_MSG_RESULT(yes)
2828
else

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7011,7 +7011,7 @@ fi
70117011

70127012
{ $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
70137013
$as_echo_n "checking for Python distutils module... " >&6; }
7014-
if "${PYTHON}" 2>&- -c 'import distutils'
7014+
if "${PYTHON}" -c 'import distutils' 2>&5
70157015
then
70167016
{ $as_echo "$as_me:$LINENO: result: yes" >&5
70177017
$as_echo "yes" >&6; }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy