Commit 1b970c31 authored by Sam Lantinga's avatar Sam Lantinga

Add /usr/local to the build paths by default

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401575
parent a4ce75ef
...@@ -50,14 +50,10 @@ else ...@@ -50,14 +50,10 @@ else
fi fi
dnl Set up the compiler and linker flags 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 if test x$srcdir != x.; then
SDL_INCLUDE="-Iinclude $SDL_INCLUDE" INCLUDE="-Iinclude $INCLUDE"
fi fi
if test -d /usr/local/include; then
SDL_INCLUDE="$SDL_INCLUDE -I/usr/local/include"
fi
INCLUDE="$SDL_INCLUDE"
case "$host" in case "$host" in
*-*-cygwin*) *-*-cygwin*)
# We build SDL on cygwin without the UNIX emulation layer # We build SDL on cygwin without the UNIX emulation layer
...@@ -73,6 +69,14 @@ BUILD_CFLAGS="$CFLAGS" ...@@ -73,6 +69,14 @@ BUILD_CFLAGS="$CFLAGS"
EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
BUILD_LDFLAGS="$LDFLAGS" BUILD_LDFLAGS="$LDFLAGS"
EXTRA_LDFLAGS="$BASE_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_CFLAGS="$BASE_CFLAGS"
SDL_LIBS="-lSDL $BASE_LDFLAGS" SDL_LIBS="-lSDL $BASE_LDFLAGS"
CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
...@@ -774,8 +778,8 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [default=yes ...@@ -774,8 +778,8 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [default=yes
;; ;;
*) *)
x11_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1/'`] x11_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1/'`]
for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib; do
do if test "x$x11_lib" = "x"; then if test "x$x11_lib" = "x"; then
x11_lib=[`ls $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`] x11_lib=[`ls $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
fi fi
if test "x$x11ext_lib" = "x"; then if test "x$x11ext_lib" = "x"; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment