PATCH

David Relson relson at osagesoftware.com
Mon Nov 24 22:39:31 CET 2003


On Mon, 24 Nov 2003 22:26:05 +0100
Matthias Andree <matthias.andree at gmx.de> wrote:

> Torsten Veller <ml-en at veller.net> writes:
> 
> > If gsl is not installed:
> >
> > grep GSL  src/Makefile
> > GSL_CFLAGS =
> > GSL_CONFIG = no
> > GSL_LIBS = libbf_gsl.a
> > [...]
> >
> > So, as David suggested, i added -lm to GSL_LIBS and bogofilter
> > compiles fine.
> 
> How about this patch?
> 
> Index: configure.ac
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/configure.ac,v
> retrieving revision 1.194
> diff -u -r1.194 configure.ac
> --- configure.ac	24 Nov 2003 11:52:34 -0000
> +++ configure.ac	24 Nov 2003 21:25:19 -0000
> @@ -463,7 +463,7 @@
>  AM_PATH_GSL(1.0, AC_DEFINE(HAVE_GSL_10,,[Define if you have GNU
>  Scientific Library 1.0 or newer]) need_my_gsl=0)
>  if test "$need_my_gsl" = 1 ; then
> -  GSL_LIBS="libbf_gsl.a"
> +  GSL_LIBS="libbf_gsl.a -lm"
>  fi
>  
>  PATH="$PATH_SAVED"

Naahhh.  It's too simple...  Somehow, looking in configure.ac I managed
to totally overlook that line.

Actually it looks nice and straightforward.

Torsten - can you test it ???





More information about the Bogofilter mailing list