diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-06-27 16:35:25 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-06-28 13:45:47 +0200 |
commit | aca01d5a8b7d3de53fa34696e18c91db720a5ab6 (patch) | |
tree | 6b9b83c599cc5db58df8041ca5cf812e00bbd25e /kig/configure.in.in | |
parent | 88af19c041ad4f1139f6f0a35cd1a4fe2018425f (diff) | |
download | tdeedu-aca01d5a8b7d3de53fa34696e18c91db720a5ab6.tar.gz tdeedu-aca01d5a8b7d3de53fa34696e18c91db720a5ab6.zip |
Conversion to the cmake building system.
Add includes to UI files to resolve FTBFS.
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d4a1613e9f119ae68c695ab60f8d9856d1a54a52)
Diffstat (limited to 'kig/configure.in.in')
-rw-r--r-- | kig/configure.in.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kig/configure.in.in b/kig/configure.in.in index 99d11b95..05d5934d 100644 --- a/kig/configure.in.in +++ b/kig/configure.in.in @@ -161,6 +161,12 @@ AC_DEFUN([REGINA_LIB_BOOST_PYTHON], [ LIBS="-l$pylib $extralibs" PYVERSHORT=${pyver#python} PYVERSUFFIX=py${PYVERSHORT%.*}${PYVERSHORT#*.} + PYVERMAJOR=${PYVERSHORT%.*} + if test $PYVERMAJOR -lt 3; then + KIG_Python_init=initkig + else + KIG_Python_init=PyInit_kig + fi AC_TRY_LINK([ #include <Python.h> ], [ @@ -221,6 +227,8 @@ AC_DEFUN([REGINA_LIB_BOOST_PYTHON], [ if test "$__regina_py_ok" = "1"; then AC_DEFINE(HAVE_BOOST_PYTHON, 1, [Define to 1 if you have a usable boost.python installation.]) + AC_DEFINE_UNQUOTED(KIG_Python_init, $KIG_Python_init, + [KIG: Init function for python-boost]) else BOOST_PYTHON_INCLUDES= BOOST_PYTHON_LIBS= |