|
From: m s. <mw...@us...> - 2007-01-28 23:07:10
|
> ----- Original Message -----
> From: "Timoth=E9e Lecomte" <tim...@en...>
> To: "Mike Sutton" <mw...@us...>
> Subject: Re: User specified location of GD not carried into Makefiles
> Date: Sun, 28 Jan 2007 22:58:40 +0100
> Hi Mike,
>=20
> The offending code in configure.in is:
>=20
> 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
>=20
> So what you gave to --with-gd is only used if gdlib-config cannot=20
> be 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.
OK. However, the expectation is that my --with specification would override
the default behavior. Perhaps, the test should be for $with_gd/bin/gdlib-c=
onfig
first, if fails then try in $PATH. I quickly tested the following and it
seems to work. (I'm not well versed in this configure script stuff but
I gave it a try).
if test -d "$with_gd"; then
if test -n "$with_gd/bin/gdlib-config"; then
libgd_CPPFLAGS=3D`$with_gd/bin/gdlib-config --cflags`
libgd_LDFLAGS=3D"-L$with_gd/lib "`$with_gd/bin/gdlib-config --ldflags`
else
libgd_CPPFLAGS=3D"-I$with_gd/include"
libgd_LDFLAGS=3D"-L$with_gd/lib"
fi
else
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`
fi
fi
There still is the issue of testing for the fontconfig library.=20=20
There is not a unique function that can be tested for. I see
that gdlib-config can list the libraries it requires.
Mike Sutton
=3D
Mica Heli Guides, Canada
Private Canadian helicopter skiing. Powder skiing from our remote lodge nea=
r Jasper. Great prices, availability for this season. Guaranteed fresh deep=
powder every run. All tours private.
http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=3D1666da2f83f9115bd2aa1=
90b8f0b0899
|