[Mapserver-dev] configure script problems with multiple GD

Steve Lime steve.lime at dnr.state.mn.us
Tue Oct 26 00:29:12 EDT 2004


Sean: On my mac box GD_LIBDIR does seem to be being set correctly. That
is, if I install gd someplace non-standard:

  ./configure  --with-gd=/usr/local/test

gives me:

  GD_INC=  -I/usr/local/test/include
  GD_LIB=  -L/usr/local/test/lib -lgd -ljpeg -lfreetype -lpng -lz

in the Makefile. Linking still uses whatever version of GD is found
first though. I think configure is ok. Perhaps there is a linker option
to ignore the second version, but I've never run across it. Not having
multiple versions of the same library installed doesn't seem too big a
minimum requirement to me. I know it's not idiot proof though and it
would be nice to fix.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> Sean Gillies <sgillies at frii.com> 10/25/04 12:45 PM >>>
Users continue to report problems with the configure script
not picking up their own local installations of GD.  After
looking in configure.in, I'm not sure that GD_LIBDIR is
being properly set before we use AC_CHECK_LIB to look for
gdImageSetAntialias (test for GD version > 2.0.12), or that
adding -L$GD_LIBDIR will work to push the user-configured
GD location ahead of other system GD installations.

I'm also not experienced enough with autoconf to fix this
myself.  Could we set the right person to this task before
a final 4.4.0 release?

Not every user will have the option of removing every
conflicting GD from their system, or of modifying their
linker's system search order.

Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies

_______________________________________________
Mapserver-dev mailing list
Mapserver-dev at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev




More information about the mapserver-dev mailing list