--- configure.orig	2010-03-17 14:26:46.000000000 +0100
+++ configure	2010-03-17 14:34:17.000000000 +0100
@@ -13126,9 +13126,9 @@
 	WIN32_PYTHON_VERSION=`echo $PYTHON_VERSION | sed "s,\.,,"`
 
         python_path=`dirname $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
+        for i in "$python_path/lib/ $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
 		if test -e "$i"; then
-	                python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
+	                python_path=`find $i \( -type f -or -type l \) -name libpython$PYTHON_VERSION.\* -print | sed "1q"`
         	        if test -n "$python_path" ; then
 				python_lib="python$PYTHON_VERSION"
                 	        break
