/[weechat]/weechat/configure.in
ViewVC logotype

Diff of /weechat/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.75 by flashcode, Tue Oct 25 17:37:14 2005 UTC revision 1.76 by kolter, Wed Oct 26 10:20:15 2005 UTC
# Line 221  if test "x$enable_python" = "xyes" ; the Line 221  if test "x$enable_python" = "xyes" ; the
221            
222      PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; print "%s" % sys.prefix'`      PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; print "%s" % sys.prefix'`
223      PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[:3]]'`      PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[:3]]'`
224      PYTHON_INCLUDE="$PYTHON_SYSPREFIX/include/python$PYTHON_VERSION"      PYTHON_INCLUDE=`$PYTHON -c "import distutils.sysconfig,string; print distutils.sysconfig.get_config_var('CONFINCLUDEPY')"`
225            
226      AC_MSG_CHECKING(for Python header files)      AC_MSG_CHECKING(for Python header files)
227      if test -r "$PYTHON_INCLUDE/Python.h"; then      if test -r "$PYTHON_INCLUDE/Python.h"; then
228          PYTHON_CFLAGS=-I`$PYTHON -c "import distutils.sysconfig,string; print distutils.sysconfig.get_config_var('CONFINCLUDEPY')"`          PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
229      else      else
230          AC_MSG_ERROR([          AC_MSG_ERROR([
231  *** Python header files couldn't be found in your system.  *** Python header files couldn't be found in your system.
# Line 233  if test "x$enable_python" = "xyes" ; the Line 233  if test "x$enable_python" = "xyes" ; the
233      fi      fi
234      AC_MSG_RESULT(found)      AC_MSG_RESULT(found)
235            
236      PYTHON_LIB="$PYTHON_SYSPREFIX/lib/python$PYTHON_VERSION/config"      PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
237            
238      AC_MSG_CHECKING(for Python library)      AC_MSG_CHECKING(for Python library)
239      if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -o -r "$PYTHON_SYSPREFIX/lib/libpython$PYTHON_VERSION.so"; then      if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -o -r "$PYTHON_SYSPREFIX/lib/libpython$PYTHON_VERSION.so"; then
240          PYTHON_LFLAGS="-lpython$PYTHON_VERSION -lpthread -lutil"         PYTHON_LFLAGS="-lpython$PYTHON_VERSION "`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBS')+' '+distutils.sysconfig.get_config_var('LINKFORSHARED')"`
241      else      else
242          AC_MSG_ERROR([          AC_MSG_ERROR([
243  *** Python library couldn't be found in your system.              *** Python library couldn't be found in your system.            

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26