Skip to content
Permalink
Browse files

Add /usr/local to the build paths by default

  • Loading branch information
slouken committed Mar 21, 2006
1 parent 22f6005 commit e21f4044c19ffe301a32dfe870ab7bc4fb017eb1
Showing with 17 additions and 13 deletions.
  1. +17 −13 configure.in
@@ -50,14 +50,10 @@ else
fi

dnl Set up the compiler and linker flags
SDL_INCLUDE="-I$srcdir/include $SDL_INCLUDE"
INCLUDE="-I$srcdir/include"
if test x$srcdir != x.; then
SDL_INCLUDE="-Iinclude $SDL_INCLUDE"
INCLUDE="-Iinclude $INCLUDE"
fi
if test -d /usr/local/include; then
SDL_INCLUDE="$SDL_INCLUDE -I/usr/local/include"
fi
INCLUDE="$SDL_INCLUDE"
case "$host" in
*-*-cygwin*)
# We build SDL on cygwin without the UNIX emulation layer
@@ -73,6 +69,14 @@ BUILD_CFLAGS="$CFLAGS"
EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
BUILD_LDFLAGS="$LDFLAGS"
EXTRA_LDFLAGS="$BASE_LDFLAGS"
for path in /usr/local; do
if test -d $path/include; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
fi
if test -d $path/lib; then
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
fi
done
SDL_CFLAGS="$BASE_CFLAGS"
SDL_LIBS="-lSDL $BASE_LDFLAGS"
CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
@@ -774,13 +778,13 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [default=yes
;;
*)
x11_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1/'`]
for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib
do if test "x$x11_lib" = "x"; then
x11_lib=[`ls $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
fi
if test "x$x11ext_lib" = "x"; then
x11ext_lib=[`ls $path/libXext.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
fi
for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib; do
if test "x$x11_lib" = "x"; then
x11_lib=[`ls $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
fi
if test "x$x11ext_lib" = "x"; then
x11ext_lib=[`ls $path/libXext.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
fi
done
;;
esac

0 comments on commit e21f404

Please sign in to comment.