If we leave the default SDL_config.h in place, it'll override the one generated by configure when building from a different directory. Argh...
This commit is contained in:
parent
fc9ee0c10f
commit
a9d41506c3
2 changed files with 10 additions and 2 deletions
6
configure
vendored
6
configure
vendored
|
@ -15474,7 +15474,11 @@ done
|
|||
|
||||
INCLUDE="-I$srcdir/include"
|
||||
if test x$srcdir != x.; then
|
||||
# We want to include the generated SDL_config.h first
|
||||
# Remove SDL_config.h from the source directory, since it's the
|
||||
# default one, and we want to include the one that we generate.
|
||||
if test -f $srcdir/include/SDL_config.h; then
|
||||
rm $srcdir/include/SDL_config.h
|
||||
fi
|
||||
INCLUDE="-Iinclude $INCLUDE"
|
||||
fi
|
||||
case "$host" in
|
||||
|
|
|
@ -65,7 +65,11 @@ AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
|
|||
dnl Set up the compiler and linker flags
|
||||
INCLUDE="-I$srcdir/include"
|
||||
if test x$srcdir != x.; then
|
||||
# We want to include the generated SDL_config.h first
|
||||
# Remove SDL_config.h from the source directory, since it's the
|
||||
# default one, and we want to include the one that we generate.
|
||||
if test -f $srcdir/include/SDL_config.h; then
|
||||
rm $srcdir/include/SDL_config.h
|
||||
fi
|
||||
INCLUDE="-Iinclude $INCLUDE"
|
||||
fi
|
||||
case "$host" in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue