Search for MIDL.EXE in its default install location
authorSam Thursfield <samthursfield@codethink.co.uk>
Fri, 20 May 2011 10:18:09 +0000 (11:18 +0100)
committerSam Thursfield <samthursfield@codethink.co.uk>
Fri, 20 May 2011 14:00:11 +0000 (15:00 +0100)
I'm going to recommend installing all the MS tools in their default
Program files folders, because they seem to end up there no matter
what I tell the installer in any case.

configure.ac

index e92bb76..dde83cf 100644 (file)
@@ -36,14 +36,14 @@ case "$host" in
       AC_MSG_ERROR([
 *** msrpc-mingw 0.1.0 or better is required.]))
 
-    AC_PATH_PROG([MIDL], [midl], no)
+    AC_PATH_PROG([MIDL], [midl], no, [$PATH$PATH_SEPARATOR/c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin])
     if test "$MIDL" = "no"; then
        AC_MSG_ERROR([
 *** Could not find the Microsoft interface compiler MIDL.EXE.
 *** This program is available as part of the MS Windows SDK, in
 *** the Win32 Development Tools package. If it is not in the PATH
-*** you may set the 'MIDL' environment variable to point to its
-*** location and rerun configure.])
+*** or its default location you may set the 'MIDL' environment
+*** variable to point to its location and rerun configure.])
     fi
 
     win32=yes