Commit b31a8872 authored by Sam Lantinga's avatar Sam Lantinga

Allow adding to the INCLUDE path

Allow overriding the NASMFLAGS

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401570
parent de8aa229
...@@ -50,13 +50,14 @@ else ...@@ -50,13 +50,14 @@ else
fi fi
dnl Set up the compiler and linker flags dnl Set up the compiler and linker flags
INCLUDE="-I$srcdir/include $INCLUDE" SDL_INCLUDE="-I$srcdir/include $SDL_INCLUDE"
if test x$srcdir != x.; then if test x$srcdir != x.; then
INCLUDE="-Iinclude $INCLUDE" SDL_INCLUDE="-Iinclude $SDL_INCLUDE"
fi fi
if test -d /usr/local/include; then if test -d /usr/local/include; then
INCLUDE="$INCLUDE -I/usr/local/include" SDL_INCLUDE="$SDL_INCLUDE -I/usr/local/include"
fi 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
...@@ -589,6 +590,7 @@ AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [default=yes] ...@@ -589,6 +590,7 @@ AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [default=yes]
if test x$NASM != x -a x$NASM != x'"$NASM"'; then if test x$NASM != x -a x$NASM != x'"$NASM"'; then
AC_DEFINE(SDL_HERMES_BLITTERS) AC_DEFINE(SDL_HERMES_BLITTERS)
SOURCES="$SOURCES $srcdir/src/hermes/*.asm" SOURCES="$SOURCES $srcdir/src/hermes/*.asm"
if test x$NASMFLAGS = x; then
case $ARCH in case $ARCH in
win32) win32)
NASMFLAGS="-f win32" NASMFLAGS="-f win32"
...@@ -600,6 +602,7 @@ AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [default=yes] ...@@ -600,6 +602,7 @@ AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [default=yes]
NASMFLAGS="-f elf" NASMFLAGS="-f elf"
;; ;;
esac esac
fi
AC_SUBST(NASM) AC_SUBST(NASM)
AC_SUBST(NASMFLAGS) AC_SUBST(NASMFLAGS)
...@@ -1892,7 +1895,6 @@ CheckUSBHID() ...@@ -1892,7 +1895,6 @@ CheckUSBHID()
fi fi
} }
dnl Check for clock_gettime() dnl Check for clock_gettime()
CheckClockGettime() CheckClockGettime()
{ {
......
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