|
From: <tim...@en...> - 2007-01-28 22:02:19
|
Mike Sutton wrote:
> I was testing 4.2RC4 and noticed that my specified location for GD was =
not=20
> passed down through to the Makefile. This is on Mandrake 10.1 and I us=
e a=20
> newer version of GD that is intalled in my user area. I swear this has=
=20
> worked properly in the past.
>
> My configure line was:
> ./configure --with-gd=3D/home/mike/tmp/gnu
>
> The GD directory does not make it to the compile step:
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term=20
> -DBINDIR=3D\"/usr/local/bin\"=20
> -DX11_DRIVER_DIR=3D\"/usr/local/libexec/gnuplot/4.2\"=20
> -DGNUPLOT_PS_DIR=3D\"/usr/local/share/gnuplot/4.2/PostScript\"=20
> -DCONTACT=3D\"gnu...@li...\"=20
> -DHELPFILE=3D\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -I/usr/X11R6/=
include=20
> -I/usr/include -g -O2 -MT term.o -MD -MP -MF ".deps/term.Tpo" -c -o te=
rm.o=20
> term.c; \
> then mv -f ".deps/term.Tpo" ".deps/term.Po"; else rm -f ".deps/term.Tpo=
"; exit=20
> 1; fi
>
>
> And the link step for gnuplot was:
> g++ -g -O2 -L/usr/X11R6/lib -o gnuplot alloc.o axis.o breaders.o bit=
map.o=20
> color.o command.o contour.o datafile.o dynarray.o eval.o fit.o gadgets.=
o=20
> getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o=20
> interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o plot3d.o pm3=
d.o=20
> readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o=20
> tables.o term.o time.o unset.o util.o util3d.o variable.o version.o -=
lz=20
> -lgd -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lm
>
>
> As you can see my specification to GD was lost. I'm guessing this is s=
ome=20
> kind of problem with the=20
>
> I also noticed that GD 2.0.33 links in the fontconfig library if availa=
ble. =20
> Gnuplot does not check for fontconfig. Is this picked up when the prop=
er=20
> gdlib-config script is found?
>
> Mike Sutton
> =20
Hi Mike,
The offending code in configure.in is:
if test "$with_gd" !=3D no; then
AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config])
if test -n "$GDLIB_CONFIG"; then
libgd_CPPFLAGS=3D`gdlib-config --cflags`
libgd_LDFLAGS=3D`gdlib-config --ldflags`
elif test -d "$with_gd"; then
libgd_CPPFLAGS=3D"-I$with_gd/include"
libgd_LDFLAGS=3D"-L$with_gd/lib"
fi
(...)
fi
So what you gave to --with-gd is only used if gdlib-config cannot be=20
found in your $PATH. And then it doesn't even try to use the=20
gdlib-config in the custom path that you provided, but just appends=20
'include' and 'libs' to it. This could indeed be improved.
Best regards,
Timoth=E9e
|