diff configure.in @ 780:7da6da0cb7cf

Add to temporary includes path to find src/video/windx5/directx.h if we build SDL in a different directory
author Patrice Mandin <patmandin@gmail.com>
date Wed, 07 Jan 2004 18:24:06 +0000
parents 6f4fe7f2063b
children 275708f2e838
line wrap: on
line diff
--- a/configure.in	Wed Jan 07 15:01:51 2004 +0000
+++ b/configure.in	Wed Jan 07 18:24:06 2004 +0000
@@ -1423,12 +1423,15 @@
     if test x$enable_directx = xyes; then
         AC_MSG_CHECKING(for DirectX headers and libraries)
         use_directx=no
+        tmp_cflags=$CFLAGS
+        CFLAGS="$CFLAGS -I$srcdir"
         AC_TRY_COMPILE([
          #include "src/video/windx5/directx.h"
         ],[
         ],[
         use_directx=yes
         ])
+        CFLAGS=$tmp_cflags
         AC_MSG_RESULT($use_directx)
     fi