Index: configure
===================================================================
--- configure	(revision 35822)
+++ configure	(working copy)
@@ -3781,7 +3781,7 @@
 
 echocheck "direct.h"
 _direct_h=no
-header_check direct.h && _direct_h=yes
+win32 && header_check direct.h && _direct_h=yes
 if [ $_direct_h = yes ]; then
   def_direct_h='#define HAVE_DIRECT_H 1'
 else
