configure.ac: attempt to improve python detection by using a different m4
script
This commit is contained in:
@@ -56,14 +56,14 @@
|
||||
# exception to the GPL to apply to your modified version as well.
|
||||
|
||||
AC_DEFUN([AX_BOOST_PYTHON],
|
||||
[AC_REQUIRE([AX_PYTHON])dnl
|
||||
[AC_REQUIRE([AX_PYTHON_DEVEL])dnl
|
||||
AC_CACHE_CHECK(whether the Boost::Python library is available,
|
||||
ac_cv_boost_python,
|
||||
[AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
CPPFLAGS_SAVE=$CPPFLAGS
|
||||
if test "x$PYTHON_INCLUDE_DIR" != "x"; then
|
||||
CPPFLAGS="-I$PYTHON_INCLUDE_DIR $CPPFLAGS"
|
||||
if test "x$PYTHON_CPPFLAGS" != "x"; then
|
||||
CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
|
||||
fi
|
||||
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[
|
||||
#include <boost/python/module.hpp>
|
||||
@@ -78,8 +78,8 @@ if test "x$ac_cv_boost_python" = "xyes"; then
|
||||
AC_DEFINE(HAVE_BOOST_PYTHON,[1],[define if the Boost::Python library is available])
|
||||
dnl
|
||||
LDFLAGS_SAVE=$LDFLAGS
|
||||
if test "x$PYTHON_LIB" != "x"; then
|
||||
LDFLAGS="$LDFLAGS -l$PYTHON_LIB"
|
||||
if test "x$PYTHON_LDFLAGS" != "x"; then
|
||||
LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS"
|
||||
fi
|
||||
dnl
|
||||
ax_python_lib=boost_python
|
||||
|
Reference in New Issue
Block a user