From aca01d5a8b7d3de53fa34696e18c91db720a5ab6 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Thu, 27 Jun 2019 16:35:25 +0200 Subject: Conversion to the cmake building system. Add includes to UI files to resolve FTBFS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gregory guy Signed-off-by: Slávek Banko (cherry picked from commit d4a1613e9f119ae68c695ab60f8d9856d1a54a52) --- kig/configure.in.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kig/configure.in.in') 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 ], [ @@ -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= -- cgit v1.2.1