X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=m4%2Fpython.m4;h=df8fdc2a7c7ef078ad3a71429744473c82062d84;hb=7f2ee77204b1e8aca39262f9a3ba9235539371de;hp=d00ac4785c103d78eda7dccc9c366b7668023126;hpb=346151534bc630b6458a6d5059255759c028fcb2;p=chaz%2Fopenbox diff --git a/m4/python.m4 b/m4/python.m4 index d00ac478..df8fdc2a 100644 --- a/m4/python.m4 +++ b/m4/python.m4 @@ -14,7 +14,7 @@ AC_DEFUN([PYTHON_DEVEL], for i in "$python_prefix/include/python$PYTHON_VERSION/" \ "$python_prefix/include/python/" "$python_prefix/" do - python_path=`find $i -type f -name Python.h -print` + python_path=`find $i -type f -name Python.h -print 2> /dev/null` test "$python_path" && break done for i in $python_path @@ -43,8 +43,8 @@ AC_DEFUN([PYTHON_DEVEL], PYTHON_LIBS="-L$i -lpython$PYTHON_VERSION" break else - if test -r "$i/lib$PYVERSION.a"; then - PYLIB="$i/lib$PYVERSION.a" + if test -r "$i/libpython$PYTHON_VERSION.a"; then + PYLIB="$i/libpython$PYTHON_VERSION.a" PYTHON_LIBS="-L$i -lpython$PYTHON_VERSION -lpthread -ldl -lutil -lm" break else @@ -57,7 +57,7 @@ AC_DEFUN([PYTHON_DEVEL], fi fi done - if test "$python_path" + if test "$PYLIB" then AC_MSG_RESULT([$PYLIB]) else