@@ -4235,28 +4235,21 @@ echo "${ECHO_T}no" >&6
42354235echo "$as_me: error: distutils module not found" >&2;}
42364236 { (exit 1); exit 1; }; }
42374237fi
4238- echo "$as_me:$LINENO: checking Pythoninstallation directories " >&5
4239- echo $ECHO_N "checking Pythoninstallation directories ... $ECHO_C" >&6
4238+ echo "$as_me:$LINENO: checking Pythonconfiguration directory " >&5
4239+ echo $ECHO_N "checking Pythonconfiguration directory ... $ECHO_C" >&6
42404240python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4241- python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4242- python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
42434241python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
42444242python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
42454243
42464244# This should be enough of a message.
4247- if test "$python_prefix" != "$python_execprefix"; then
4248- echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4249- echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4250- else
4251- echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4252- echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4253- fi
4245+ echo "$as_me:$LINENO: result: $python_configdir" >&5
4246+ echo "${ECHO_T}$python_configdir" >&6
42544247
42554248
42564249echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
42574250echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
42584251
4259- python_libspec=`${PYTHON} -c "import distutils.sysconfig,string;print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4252+ python_libspec=`${PYTHON} -c "import distutils.sysconfig,string; print'-lpython${python_version} '+ string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
42604253
42614254echo "$as_me:$LINENO: result: ${python_libspec}" >&5
42624255echo "${ECHO_T}${python_libspec}" >&6
@@ -18897,11 +18890,9 @@ s,@perl_privlibexp@,$perl_privlibexp,;t t
1889718890s,@perl_useshrplib@,$perl_useshrplib,;t t
1889818891s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
1889918892s,@PYTHON@,$PYTHON,;t t
18900- s,@python_prefix@,$python_prefix,;t t
18901- s,@python_execprefix@,$python_execprefix,;t t
18893+ s,@python_version@,$python_version,;t t
1890218894s,@python_configdir@,$python_configdir,;t t
1890318895s,@python_includespec@,$python_includespec,;t t
18904- s,@python_version@,$python_version,;t t
1890518896s,@python_libspec@,$python_libspec,;t t
1890618897s,@LIBOBJS@,$LIBOBJS,;t t
1890718898s,@HAVE_IPV6@,$HAVE_IPV6,;t t