Commit 3cfa7e18 authored by Chyla Zbigniew's avatar Chyla Zbigniew

Checking if we can build a shared library depending on libpython and


* configure.in: Checking if we can build a shared library depending on
libpython and disabling Python support otherwise.
parent 5c7638c1
2001-03-16 Zbigniew Chyla <cyba@gnome.pl>
* configure.in: Checking if we can build a shared library depending on
libpython and disabling Python support otherwise.
2001-03-15 Jon K Hellan <hellan@acm.org>
* src/workbook-control-gui.c (verbs): Fix the build for bonobo by
......
2001-03-16 Zbigniew Chyla <cyba@gnome.pl>
* configure.in: Checking if we can build a shared library depending on
libpython and disabling Python support otherwise.
2001-03-15 Jon K Hellan <hellan@acm.org>
* src/workbook-control-gui.c (verbs): Fix the build for bonobo by
......
2001-03-16 Zbigniew Chyla <cyba@gnome.pl>
* configure.in: Checking if we can build a shared library depending on
libpython and disabling Python support otherwise.
2001-03-15 Jon K Hellan <hellan@acm.org>
* src/workbook-control-gui.c (verbs): Fix the build for bonobo by
......
2001-03-16 Zbigniew Chyla <cyba@gnome.pl>
* configure.in: Checking if we can build a shared library depending on
libpython and disabling Python support otherwise.
2001-03-15 Jon K Hellan <hellan@acm.org>
* src/workbook-control-gui.c (verbs): Fix the build for bonobo by
......
2001-03-16 Zbigniew Chyla <cyba@gnome.pl>
* configure.in: Checking if we can build a shared library depending on
libpython and disabling Python support otherwise.
2001-03-15 Jon K Hellan <hellan@acm.org>
* src/workbook-control-gui.c (verbs): Fix the build for bonobo by
......
......@@ -192,6 +192,29 @@ if $try_python; then
python_val=false
fi
fi
if $python_val; then
AC_MSG_CHECKING(if we can build a shared library depending on libpython)
rm -rf testpython
mkdir testpython
cd testpython
cat > testpython.c <<EOF
#include <Python.h>
int testpython (void)
{
Py_Exit (0);
}
EOF
if /bin/sh ../libtool --mode=compile ${CC} $PY_CFLAGS -c testpython.c 2>&1 > /dev/null && \
/bin/sh ../libtool --mode=link ${CC} -o testpython.la -rpath `pwd` -module -avoid-version $PY_LIB_LOC testpython.lo -l$PY_LIBS $PY_EXTRA_LIBS 2>&1 > /dev/null && \
grep -q 'dlname.*testpython' testpython.la; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
python_val=false
fi
cd ..
rm -rf testpython
fi
AM_CONDITIONAL(WITH_PYTHON, $python_val)
else
AM_CONDITIONAL(WITH_PYTHON, false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment