configure.in
changeset 780 7da6da0cb7cf
parent 777 6f4fe7f2063b
child 795 275708f2e838
--- 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