[CF-Devel] new cut 1.4.0 and realestate idea

Jacek Konieczny jajcus at bnet.pl
Tue Sep 17 01:59:37 CDT 2002


On Mon, Sep 16, 2002 at 10:29:31PM -0700, Mark Wedel wrote:
>
     
       Yeah, looking at aclocal.m4 - the first block of code:
     
     >
     
     
     >
     
                     for lib in python{,2.2,2.1,2.0} ; do
     
     >
     
                              AC_CHECK_LIB($lib, 
     
     >
     
                              PyArg_ParseTuple,[PYTHON_LIB="-l$lib"])
     
     >
     
                              if test "x$PYTHON_LIB" != "x" ; then
     
     >
     
                                      break
     
     >
     
                              fi
     
     >
     
                      done
     
     >
     
     
     >
     
       Doesn't work.  lib would just be like 2.2, 2.1, 2.0, which is not the 
     
     >
     
       actual name of the file. 
     
     The code above checks for:
libpython, libpython2.2, libpython2.1, libpython2.0
Maybe the order is wrong (it seems it doesn't match header search order
on some systems), but it works well at least for me. I have python
library installed as: /usr/lib/libpython2.2.so

Anybody knows the _proper_ way to find python headers/libraries?

Greets,
	Jacek

    
    


More information about the crossfire mailing list