Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#565 closed defect (fixed)

[configure.in] Fixes for AMD64/Linux build

Reported by: dmorissette Owned by: mapserverbugs
Priority: high Milestone:
Component: Build Problems Version: 4.1
Severity: normal Keywords:
Cc: jmarca@…

Description

>>>James Marca - 02/05/04 1:56 AM >>>

Hi,

in configure and configure.in, it fails to find gd when gd is saved in
/usr/lib64 (the standard place for 64 bit libraries), due to the
following hardcoded tests.  So changes should be made as folllows.


  test -f $GD_DIR/lib/libgd.a && GD_LIBDIR="$GD_DIR/lib"
  test -f $GD_DIR/.libs/libgd.a && GD_LIBDIR="$GD_DIR/.libs"

should be
  test -f $GD_DIR/lib/libgd.a && GD_LIBDIR="$GD_DIR/lib"
  test -f $GD_DIR/lib64/libgd.a && GD_LIBDIR="$GD_DIR/lib64"
  test -f $GD_DIR/.libs/libgd.a && GD_LIBDIR="$GD_DIR/.libs"


and then 

  test -f $GD_DIR/lib/libgd.so -o -f $GD_DIR/lib/libgd.sl && 
GD_LIBDIR="$GD_DIR/lib"
  test -f $GD_DIR/.libs/libgd.so -o -f $GD_DIR/.libs/libgd.sl && 
GD_LIBDIR="$GD_DIR/.libs"

should be
  test -f $GD_DIR/lib/libgd.so -o -f $GD_DIR/lib/libgd.sl && 
GD_LIBDIR="$GD_DIR/lib"
  test -f $GD_DIR/lib64/libgd.so -o -f $GD_DIR/lib64/libgd.sl && 
GD_LIBDIR="$GD_DIR/lib64"
  test -f $GD_DIR/.libs/libgd.so -o -f $GD_DIR/.libs/libgd.sl && 
GD_LIBDIR="$GD_DIR/.libs"

then configure passes
(sorry, no patch.  not handy with patch yet)

Attachments (1)

configure.diff (4.9 KB ) - added by dmorissette 20 years ago.
Diff against 'configure' sent by James

Download all attachments as: .zip

Change History (4)

by dmorissette, 20 years ago

Attachment: configure.diff added

Diff against 'configure' sent by James

comment:1 by dmorissette, 20 years ago

Resolution: fixed
Status: newclosed
I have tried to apply your lib64 fixes to the configure.in and committed a new
configure script with those fixes in the main CVS trunk (v4.1).  I'll mark the
bug fixed, but please test it and reopen if that doesn't work for you.

Note that I also removed the obsolete OGR_STATIC stuff from the configure.in
(the large block that you had deleted in your patch) since it was old legacy
stuff that's probably not used any more, and may not even have worked any more
with the latest OGR and MapServer.

comment:2 by dmorissette, 20 years ago

FYI I committed a new version of configure and configure.in in which I added
checks for 'lib64' directory for all support libs. I had done only the GD case
in the previous version.

comment:3 by sdlime, 20 years ago

Thanks Dan.
Note: See TracTickets for help on using tickets.