#
# Checks for Python and tries to get the include path to 'Python.h', and
# the libpython library.
-# It provides the $(PYTHON_CFLAGS) $(PYTHON_LIBS) output variables.
+# It provides the $(PYTHON_CFLAGS) $(PYTHON_LIBS) output
+# variables.
AC_DEFUN([PYTHON_DEVEL],
[
AC_REQUIRE([AM_PATH_PYTHON])
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
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
fi
fi
done
- if test "$python_path"
+ if test "$PYLIB"
then
AC_MSG_RESULT([$PYLIB])
else