--- gimp-2.8.10/configure.ac.orig	2014-01-25 17:15:34.153800000 +0400
+++ gimp-2.8.10/configure.ac	2014-01-25 17:15:47.398200000 +0400
@@ -1660,8 +1660,8 @@
   dinput_save_CPPFLAGS="$CPPFLAGS"
   dinput_save_LDFLAGS="$LDFLAGS"
   if test "x$with_directx_sdk" != x; then
-    CPPFLAGS="-I $with_directx_sdk/Include $CPPFLAGS"
-    LDFLAGS="-L$with_directx_sdk/Lib/x86 $LDFLAGS"
+    CPPFLAGS="-I $with_directx_sdk/include $CPPFLAGS"
+    LDFLAGS="-L$with_directx_sdk/lib $LDFLAGS"
     AC_CHECK_HEADER(dinput.h,
                     [AC_CHECK_LIB(dxguid, GUID_XAxis, have_dx_dinput=yes)])
   fi
