Skip to content

Commit

Permalink
configure: -idirafter needs a space, -I doesn't.
Browse files Browse the repository at this point in the history
Some compilers are apparently quite cranky about the -I not having a space!
  • Loading branch information
icculus committed May 19, 2020
1 parent 475afe2 commit 72fdc80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configure
Expand Up @@ -16022,15 +16022,15 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

have_idirafter="yes"
idirafter="-idirafter"
idirafter="-idirafter "

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_idirafter" >&5
$as_echo "$have_idirafter" >&6; }
CFLAGS="$save_CFLAGS"

INCLUDE="-I$srcdir/include $idirafter $srcdir/src/video/khronos"
INCLUDE="-I$srcdir/include $idirafter$srcdir/src/video/khronos"
if test x$srcdir != x.; then
INCLUDE="-Iinclude $INCLUDE"
elif test -d .hg; then
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -79,13 +79,13 @@ AC_TRY_COMPILE([
],[
],[
have_idirafter="yes"
idirafter="-idirafter"
idirafter="-idirafter "
])
AC_MSG_RESULT($have_idirafter)
CFLAGS="$save_CFLAGS"

dnl Set up the compiler and linker flags
INCLUDE="-I$srcdir/include $idirafter $srcdir/src/video/khronos"
INCLUDE="-I$srcdir/include $idirafter$srcdir/src/video/khronos"
if test x$srcdir != x.; then
INCLUDE="-Iinclude $INCLUDE"
elif test -d .hg; then
Expand Down

0 comments on commit 72fdc80

Please sign in to comment.