summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e363d8721..74fb9c889 100644
--- a/configure.ac
+++ b/configure.ac
@@ -333,8 +333,8 @@ else
fi
AC_MSG_CHECKING(whether python development files are present)
-PYTHON_CONFDIR=`$PYTHON -v -c "import distutils" 2>&1 | $EGREP distutils | $EGREP directory | $SED -ne "s/^[[^\/]]*\([[^[:space:]]]*\).*/\1/p"`/../config/
-if test -e "$PYTHON_CONFDIR/Makefile"; then
+PYTHON_MAKEFILE=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_makefile_filename()" 2> /dev/null`
+if test -e "$PYTHON_MAKEFILE"; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)