author | rohinis |
Tue, 29 Nov 2011 17:32:55 +0000 | |
branch | s11express-2010-11 |
changeset 22234 | c23e64da3e06 |
parent 18110 | 93461edb1490 |
permissions | -rw-r--r-- |
18110 | 1 |
--- planner-0.14.2-orig/acinclude.m4 2006-11-25 07:11:10.000000000 -0800 |
2 |
+++ planner-0.14.2/acinclude.m4 2008-09-05 13:38:46.377330002 -0700 |
|
3 |
@@ -87,9 +87,11 @@ |
|
4 |
AC_MSG_CHECKING([for Python library path]) |
|
5 |
python_path=`echo $PYTHON | sed "s,/bin.*$,,"` |
|
6 |
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 |
|
7 |
- python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"` |
|
8 |
- if test -n "$python_path" ; then |
|
9 |
- break |
|
10 |
+ if test -d "$i" ; then |
|
11 |
+ python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"` |
|
12 |
+ if test -n "$python_path" ; then |
|
13 |
+ break |
|
14 |
+ fi |
|
15 |
fi |
|
16 |
done |
|
17 |
python_path=`echo $python_path | sed "s,/libpython.*$,,"` |