mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Old CPPFLAGS was stored in CPPLFAGS_X.
This commit is contained in:
parent
2a6e5b27f7
commit
7ce65798be
@ -838,7 +838,6 @@ if test "$enable_python" = "yes"; then
|
||||
PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; print "-I%s -I%s" % (sysconfig.get_python_inc(), sysconfig.get_python_inc(plat_specific=True))'`"
|
||||
PYTHON_LIBS="`$PYTHON -c 'from distutils import sysconfig; var = sysconfig.get_config_var; print "%s %s %s -L%s -lpython%s" % (var("LINKFORSHARED"), var("LIBS"), var("SYSLIBS"), var("LIBPL"), var("VERSION"))'`"
|
||||
LIBS="$PYTHON_LIBS $LIBS"
|
||||
OLDCPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
|
||||
AC_TRY_LINK([#include <Python.h>],
|
||||
[Py_Initialize();],
|
||||
@ -850,7 +849,7 @@ if test "$enable_python" = "yes"; then
|
||||
EL_CONFIG(CONFIG_SCRIPTING_PYTHON, [Python])
|
||||
AC_SUBST(PYTHON_LIBS)
|
||||
AC_SUBST(PYTHON_CFLAGS)
|
||||
CPPFLAGS="$OLDCPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS_X"
|
||||
cat <<EOF
|
||||
***********************************************************************
|
||||
The Python support is incomplete and not so well integrated to ELinks
|
||||
|
Loading…
Reference in New Issue
Block a user