# HG changeset patch # User atmos4 # Date 997395017 0 # Node ID 1a4c9a7e9b679d1b8b87182a374390d310985881 # Parent 529a65694e407aae760ded2db9781ca4d7854ac9 Applied vladimirs freebsd patch (largefile default on freebsd and misc) diff -r 529a65694e40 -r 1a4c9a7e9b67 configure --- a/configure Thu Aug 09 20:07:45 2001 +0000 +++ b/configure Thu Aug 09 22:10:17 2001 +0000 @@ -230,10 +230,10 @@ _sdlconfig=`echo $ac_option | cut -d '=' -f 2` ;; --with-extralibdir=*) - _extralibdir=-L`echo $ac_option | cut -d '=' -f 2` + _extralibdir=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` ;; --with-extraincdir=*) - _extraincdir=-I`echo $ac_option | cut -d '=' -f 2` + _extraincdir=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` ;; esac done @@ -349,10 +349,14 @@ # Lots of stuff are installed under /usr/local +if [ "$_extralibdir" = "" ]; then _extralibdir=-L/usr/local/lib +fi +if [ "$_extraincdir" = "" ]; then _extraincdir=-I/usr/local/include +fi -if [ x"$_sdlconfig" = x"" ]; then +if [ "$_sdlconfig" = "" ]; then if [ "$system_name" = "FreeBSD" ]; then _sdlconfig='sdl11-config' else @@ -1605,7 +1609,7 @@ fi # 64 bit file offsets? -if [ "$_largefiles" = "yes" ]; then +if [ "$_largefiles" = "yes" -o "$system_name" = "FreeBSD" ]; then CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" fi