gnumeric r16271 - trunk



Author: mortenw
Date: Mon Jan 14 19:09:48 2008
New Revision: 16271
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16271&view=rev

Log:
2008-01-14  Morten Welinder  <terra gnome org>

	* configure.in (GNM_PY_LDFLAGS): Fix assumptions about directory
	layout.  [#509023]  [508988]



Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/configure.in

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon Jan 14 19:09:48 2008
@@ -2,6 +2,7 @@
 
 Morten:
 	* Fix NPV doc problem.  [#506160]
+	* Fix python compilation problem.  [#509023]  [508988]
 
 --------------------------------------------------------------------------
 Gnumeric 1.8.0

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Mon Jan 14 19:09:48 2008
@@ -926,7 +926,7 @@
 	if test "x$with_win32" = "xyes" ; then
 	    PY_INCLUDE_DIR="$PY_PREFIX/include"
 	else
-	    PY_INCLUDE_DIR="$PY_PREFIX/include/python$PY_VERSION"
+	    PY_INCLUDE_DIR=`$PYTHON -c 'import sys ; import distutils.sysconfig ; sys.stdout.write(distutils.sysconfig.get_python_inc())'`
 	fi
     fi
 
@@ -951,12 +951,12 @@
 	if test "x$with_win32" = "xyes" ; then
 	    PY_LIB_DIR="$PY_PREFIX/libs"
 	else
-	    PY_LIB_DIR="$PY_PREFIX/lib"
+	    PY_LIB_DIR=`$PYTHON -c 'import sys ; import distutils.sysconfig ; sys.stdout.write(distutils.sysconfig.get_config_var("LIBPL"))'`
 	fi
     fi
 
-    GNM_PY_CFLAGS="-I $PY_INCLUDE_DIR $PYGOBJECT_CFLAGS"
-    GNM_PY_LDFLAGS="-L $PY_LIB_DIR -lpython$PY_VERSION $PYGOBJECT_LDFLAGS"
+    GNM_PY_CFLAGS="-I$PY_INCLUDE_DIR $PYGOBJECT_CFLAGS"
+    GNM_PY_LDFLAGS="-L$PY_LIB_DIR -lpython$PY_VERSION $PYGOBJECT_LIBS"
     python_msg="yes (using $PYTHON)"
 fi
 AC_SUBST(GNM_PY_CFLAGS)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]