Add to temporary includes path to find src/video/windx5/directx.h if we build SDL in a different directory
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40781
This commit is contained in:
parent
90a429e435
commit
1c5d8853a5
1 changed files with 3 additions and 0 deletions
|
@ -1423,12 +1423,15 @@ CheckDIRECTX()
|
||||||
if test x$enable_directx = xyes; then
|
if test x$enable_directx = xyes; then
|
||||||
AC_MSG_CHECKING(for DirectX headers and libraries)
|
AC_MSG_CHECKING(for DirectX headers and libraries)
|
||||||
use_directx=no
|
use_directx=no
|
||||||
|
tmp_cflags=$CFLAGS
|
||||||
|
CFLAGS="$CFLAGS -I$srcdir"
|
||||||
AC_TRY_COMPILE([
|
AC_TRY_COMPILE([
|
||||||
#include "src/video/windx5/directx.h"
|
#include "src/video/windx5/directx.h"
|
||||||
],[
|
],[
|
||||||
],[
|
],[
|
||||||
use_directx=yes
|
use_directx=yes
|
||||||
])
|
])
|
||||||
|
CFLAGS=$tmp_cflags
|
||||||
AC_MSG_RESULT($use_directx)
|
AC_MSG_RESULT($use_directx)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue