comparison configure.ac @ 28736:a07478d5719d

Swap the order of -L and -l so that Solaris can find the Python libraries. Patch from Paul "aab" Townsend. Closes #10869, #10716.
author Paul Aurich <paul@darkrain42.org>
date Wed, 02 Dec 2009 19:38:07 +0000
parents dbd030780f75
children d558d141aaae
comparison
equal deleted inserted replaced
28735:5695a3626c1a 28736:a07478d5719d
1468 changequote([, ])dnl 1468 changequote([, ])dnl
1469 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then 1469 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then
1470 AC_CHECK_LIB(pthread, pthread_create, ) 1470 AC_CHECK_LIB(pthread, pthread_create, )
1471 AC_CHECK_LIB(util, openpty, ) 1471 AC_CHECK_LIB(util, openpty, )
1472 AC_CHECK_LIB(db, dbopen, ) 1472 AC_CHECK_LIB(db, dbopen, )
1473 PY_LIBS="-lpython$PY_VERSION -L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config" 1473 PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION"
1474 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION" 1474 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
1475 AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.]) 1475 AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.])
1476 AC_MSG_RESULT(ok) 1476 AC_MSG_RESULT(ok)
1477 else 1477 else
1478 AC_MSG_RESULT([Can't find Python.h]) 1478 AC_MSG_RESULT([Can't find Python.h])