[cvs] bogofilter configure.ac,1.174,1.175
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2003-10-10 09:55:19
|
Update of /cvsroot/bogofilter/bogofilter In directory sc8-pr-cvs1:/tmp/cvs-serv17469 Modified Files: configure.ac Log Message: Work around Linux ldconfig bug that strikes when different GSL versions are installed in /usr/lib and /usr/local/lib. ldconfig will try to link against /usr/lib regardless if the one in /usr/local/lib is newer. This leads to problems such as undefined symbol: gsl_cdf_chisq_Q which are VERY confusing. Index: configure.ac =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/configure.ac,v retrieving revision 1.174 retrieving revision 1.175 diff -u -d -r1.174 -r1.175 --- configure.ac 3 Oct 2003 13:49:35 -0000 1.174 +++ configure.ac 10 Oct 2003 09:55:02 -0000 1.175 @@ -480,6 +480,23 @@ ) fi +dnl work around Linux ldconfig design bug +dnl ldconfig will cache libraries in order found in library search +dnl order rather than by minor version, so it will happily link against +dnl /usr/lib/libgsl.so.0 (which is 0.4.0) when +dnl /usr/local/lib/libgsl.so.0 (which is 0.5.0) is available +dnl so try to find gsl-config in trusted system path first + +AC_MSG_NOTICE([-------------------------------------------------------------]) +AC_MSG_NOTICE([If you have multiple versions of GSL installed, this]) +AC_MSG_NOTICE([configure script will prefer the one in /lib or /usr/lib]) +AC_MSG_NOTICE([to work around a bug in Linux ldconfig.]) +AC_MSG_NOTICE([Deinstall the older GSL version if this behaviour annoys you.]) +AC_MSG_NOTICE([-------------------------------------------------------------]) + +PATH_SAVED="$PATH" +PATH=/bin:/usr/bin:$PATH + need_my_gsl=1 AM_PATH_GSL(1.4, AC_DEFINE(HAVE_GSL_14,,[Define if you have GNU Scientific Library 1.4 or newer]) need_my_gsl=0) @@ -488,6 +505,8 @@ if test "$need_my_gsl" = 1 ; then GSL_LIBS="libbf_gsl.a" fi + +PATH="$PATH_SAVED" AM_CONDITIONAL(NEED_GSL,test $need_my_gsl = 1) |