r21301 - gnucash/trunk/macros - Find the python libraries and includes even if the path to them includes a symlink.

Mike Alexander mta at code.gnucash.org
Thu Sep 22 17:02:44 EDT 2011


Author: mta
Date: 2011-09-22 17:02:44 -0400 (Thu, 22 Sep 2011)
New Revision: 21301
Trac: http://svn.gnucash.org/trac/changeset/21301

Modified:
   gnucash/trunk/macros/ac_python_devel.m4
Log:
Find the python libraries and includes even if the path to them includes a symlink.
When python is installed using MacPorts there is a symlink in the path.

Modified: gnucash/trunk/macros/ac_python_devel.m4
===================================================================
--- gnucash/trunk/macros/ac_python_devel.m4	2011-09-22 20:14:59 UTC (rev 21300)
+++ gnucash/trunk/macros/ac_python_devel.m4	2011-09-22 21:02:44 UTC (rev 21301)
@@ -22,7 +22,7 @@
 	AC_MSG_CHECKING([for Python include path])
 	python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
 	for i in "$python_path/include/python$PYTHON_VERSION/" "$python_path/include/python/" "$python_path/" ; do
-		python_path=`find $i -type f -name Python.h -print | sed "1q"`
+		python_path=`find -L $i -type f -name Python.h -print | sed "1q"`
 		if test -n "$python_path" ; then
 			break
 		fi
@@ -38,7 +38,7 @@
 	AC_MSG_CHECKING([for Python library path])
 	python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
 	for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
-		python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
+		python_path=`find -L $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
 		if test -n "$python_path" ; then
 			break
 		fi



More information about the gnucash-changes mailing list