summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kig/configure.in.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/kig/configure.in.in b/kig/configure.in.in
index 7fa197aa..99d11b95 100644
--- a/kig/configure.in.in
+++ b/kig/configure.in.in
@@ -159,13 +159,15 @@ AC_DEFUN([REGINA_LIB_BOOST_PYTHON], [
fi
LDFLAGS="$LDFLAGS -ltqt"
LIBS="-l$pylib $extralibs"
+ PYVERSHORT=${pyver#python}
+ PYVERSUFFIX=py${PYVERSHORT%.*}${PYVERSHORT#*.}
AC_TRY_LINK([
#include <Python.h>
], [
Py_Initialize(); Py_Finalize();
], [
AC_MSG_RESULT([yes])
- for bplib in "-lboost_python-mt" "-lboost_python-gcc-mt-1_32" "-lboost_python-gcc-mt-1_31" "-lboost_python-gcc-mt" "-lboost_python"; do
+ for bplib in "-lboost_python-mt-$PYVERSUFFIX" "-lboost_python-mt" "-lboost_python-gcc-mt-1_32" "-lboost_python-gcc-mt-1_31" "-lboost_python-gcc-mt" "-lboost_python-$PYVERSUFFIX" "-lboost_python"; do
AC_MSG_CHECKING([compilation of a boost.python program with $bplib])
LDFLAGS="$__regina_py_save_ldflags -L$pylibdir"
if test -z "$qt_libraries"; then