# HG changeset patch # User Elliott Sales de Andrade # Date 1268025066 0 # Node ID 170a3bcc11b9cfeadfa0e05b04d588faeb002cf8 # Parent 0131925099448dc329d5ba41abaf288f545a6922 Make Python compile check look a little nicer. diff -r 013192509944 -r 170a3bcc11b9 configure.ac --- a/configure.ac Mon Mar 08 04:59:38 2010 +0000 +++ b/configure.ac Mon Mar 08 05:11:06 2010 +0000 @@ -1476,12 +1476,15 @@ PY_MAJOR=`$pythonpath -c 'import sys ; print sys.version[0:2]'` changequote([, ])dnl if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then + AC_MSG_RESULT() AC_CHECK_LIB(pthread, pthread_create, ) AC_CHECK_LIB(util, openpty, ) AC_CHECK_LIB(db, dbopen, ) PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION" PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION" AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.]) + dnl Because the above AC_CHECK_LIB get in the way... + AC_MSG_CHECKING(for Python compile flags) AC_MSG_RESULT(ok) else AC_MSG_RESULT([Can't find Python.h])