CURRENT configure.in patch for python linkage

Unified Meowbot meowbot at meowing.net
Mon May 21 10:18:50 UTC 2001



This change is to allow an embedded Python interpreter to load dynamic
C modules.

There is now an alternative to this hideous grepping in distutils, but
that didn't ship with Py1.5.2 which is still worth supporting.


--- configure.in.orig	Mon May 14 01:28:33 2001
+++ configure.in	Mon May 21 05:39:29 2001
@@ -723,7 +723,8 @@
     py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
     py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
     py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
-    PYTHON_LIB="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
+    py_linkforshared=`grep '^LINKFORSHARED=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
+    PYTHON_LIB="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod $py_linkforshared"
     PYTHON_LIB=`echo $PYTHON_LIB | sed -e 's/[ \\t]*/ /g'`
     AC_MSG_RESULT($py_libdir)
 else


More information about the inn-patches mailing list