Lines 223-241
Link Here
|
223 |
AC_ARG_VAR( [PYTHON], [Python Executable Path] ) |
223 |
AC_ARG_VAR( [PYTHON], [Python Executable Path] ) |
224 |
if test -n "$PYTHON" |
224 |
if test -n "$PYTHON" |
225 |
then |
225 |
then |
226 |
ax_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"` |
226 |
ax_python_prefix=`${PYTHON} -c "import sys; print (sys.prefix)"` |
227 |
if test -z "$ax_python_prefix" |
227 |
if test -z "$ax_python_prefix" |
228 |
then |
228 |
then |
229 |
AC_MSG_ERROR([Python Prefix is not known]) |
229 |
AC_MSG_ERROR([Python Prefix is not known]) |
230 |
fi |
230 |
fi |
231 |
ax_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"` |
231 |
ax_python_execprefix=`${PYTHON} -c "import sys; print (sys.exec_prefix)"` |
232 |
ax_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"` |
232 |
ax_python_version=`$PYTHON -c "import sys; print (sys.version[[:3]])"` |
233 |
ax_python_includespec="-I${ax_python_prefix}/include/python${ax_python_version}" |
233 |
ax_python_includespec="-I${ax_python_prefix}/include/python${ax_python_version}" |
234 |
if test x"$python_prefix" != x"$python_execprefix"; then |
234 |
if test x"$python_prefix" != x"$python_execprefix"; then |
235 |
ax_python_execspec="-I${ax_python_execprefix}/include/python${ax_python_version}" |
235 |
ax_python_execspec="-I${ax_python_execprefix}/include/python${ax_python_version}" |
236 |
ax_python_includespec="${ax_python_includespec} $ax_python_execspec" |
236 |
ax_python_includespec="${ax_python_includespec} $ax_python_execspec" |
237 |
fi |
237 |
fi |
238 |
ax_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"` |
238 |
ax_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print (distutils.sysconfig.get_config_var('CFLAGSFORSHARED'))"` |
239 |
ax_python_cspec="${ax_python_ccshared} ${ax_python_includespec}" |
239 |
ax_python_cspec="${ax_python_ccshared} ${ax_python_includespec}" |
240 |
AC_SUBST([PYTHON_CSPEC], [${ax_python_cspec}]) |
240 |
AC_SUBST([PYTHON_CSPEC], [${ax_python_cspec}]) |
241 |
AC_MSG_NOTICE([PYTHON_CSPEC=${ax_python_cspec}]) |
241 |
AC_MSG_NOTICE([PYTHON_CSPEC=${ax_python_cspec}]) |
Lines 305-311
Link Here
|
305 |
if strLibFW and (strLibFW != ""): |
305 |
if strLibFW and (strLibFW != ""): |
306 |
strLinkSpec += " -F%s" % (strLibFW) |
306 |
strLinkSpec += " -F%s" % (strLibFW) |
307 |
strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED')) |
307 |
strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED')) |
308 |
print strLinkSpec |
308 |
print (strLinkSpec) |
309 |
]) |
309 |
]) |
310 |
AC_SUBST([PYTHON_LSPEC], [${ax_python_output}]) |
310 |
AC_SUBST([PYTHON_LSPEC], [${ax_python_output}]) |
311 |
AC_MSG_NOTICE([PYTHON_LSPEC=${ax_python_output}]) |
311 |
AC_MSG_NOTICE([PYTHON_LSPEC=${ax_python_output}]) |
Lines 345-352
Link Here
|
345 |
then |
345 |
then |
346 |
AC_MSG_ERROR([Python Executable Path is not known]) |
346 |
AC_MSG_ERROR([Python Executable Path is not known]) |
347 |
fi |
347 |
fi |
348 |
ax_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"` |
348 |
ax_python_prefix=`${PYTHON} -c "import sys; print (sys.prefix)"` |
349 |
ax_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"` |
349 |
ax_python_execprefix=`${PYTHON} -c "import sys; print (sys.exec_prefix)"` |
350 |
AC_SUBST([PYTHON_PREFIX], ["${ax_python_prefix}"]) |
350 |
AC_SUBST([PYTHON_PREFIX], ["${ax_python_prefix}"]) |
351 |
AC_SUBST([PYTHON_EXECPREFIX], ["${ax_python_execprefix}"]) |
351 |
AC_SUBST([PYTHON_EXECPREFIX], ["${ax_python_execprefix}"]) |
352 |
]) |
352 |
]) |