+if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
+ # MS RPC utilities
+ AC_PATH_MSRPC_MINGW([0.1.0], :,
+ AC_MSG_ERROR([
+*** msrpc-mingw 0.1.0 or better is required.]))
+
+ AC_PATH_PROG([MIDL], [midl], no,
+ [/c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH])
+ 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
+*** or its default location you may set the 'MIDL' environment
+*** variable to point to its location and rerun configure.])
+ fi
+fi
+
+if test "$win32" = "yes"; then
+ # Other Windows-specific tools
+
+ # LIB.EXE from MSVC to build an MSVC-compatible import library.
+ AC_PATH_PROG([MSVC_LIB], [lib], no,
+ [/c/Program\ Files/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR$PATH])
+
+ if test "$MSVC_LIB" = "no"; then
+ AC_MSG_WARN([
+*** Could not find the Microsoft 'LIB.EXE' program. This is required
+*** to build the Visual C import library for libmoonshot. Use the
+*** MSVC_LIB environment variable to pass its location if this is
+*** outside the PATH.])
+ fi
+
+
+ # ImageMagick for the 'make icons' target. Note that
+ # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
+ AC_PATH_PROG([IMAGEMAGICK_CONVERT], [convert], no,
+ [/c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH])
+
+ if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
+ AC_MSG_WARN([
+*** Could not find ImageMagick convert.exe. This is required for the
+*** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
+*** variable to pass its location if this is outside the PATH.])
+ fi
+
+
+ # Windows Installer XML tools
+ AC_PATH_PROG([WIX_CANDLE], [candle], no,
+ [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH])
+ AC_PATH_PROG([WIX_LIGHT], [light], no,
+ [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH])
+
+ if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
+ AC_MSG_WARN([
+*** Could not find the Windows Installer XML tools. These are required
+*** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
+*** environment variables to pass their locations if they are outside
+*** the PATH.])
+ fi
+fi
+
+if test "$linux" = "yes"; then
+ AC_PATH_PROG([UPDATE_MIME_DATABASE], [update-mime-database], [no])
+ if test "$UPDATE_MIME_DATABASE" = "no"; then
+ AC_MSG_ERROR([
+*** Could not find the Freedesktop.org mime database update tool.
+*** Web provisioning files could not be automatically installed.])
+ fi
+ AC_PATH_PROG([UPDATE_DESKTOP_DATABASE], [update-desktop-database], [no])
+ if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
+ AC_MSG_ERROR([
+*** Could not find the Freedesktop.org desktop entry database update
+*** tool. Web provisioning files could not be automatically installed.])
+ fi
+fi
+
+MOONSHOT_APP="$bindir/moonshot"
+MOONSHOT_WEBP="$bindir/moonshot-webp"
+
+AC_SUBST(MIDL)
+AC_SUBST(MSVC_LIB)
+AC_SUBST(IMAGEMAGICK_CONVERT)
+AC_SUBST(WIX_CANDLE)
+AC_SUBST(WIX_LIGHT)
+AC_SUBST(UPDATE_MIME_DATABASE)
+AC_SUBST(UPDATE_DESKTOP_DATABASE)
+AC_SUBST(MOONSHOT_APP)
+AC_SUBST(MOONSHOT_WEBP)