summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2012-08-22 21:51:31 -0400
committerPeter Foley <pefoley2@verizon.net>2012-10-02 14:37:16 -0400
commiteacfa1b48e7e836be3a9c0f765699ad4bd23d45b (patch)
treefe12fda5a5c1db36dfa40d9fdb99b6ada387139c
parent9f55aeb262d611bf872a5056e3e5de0ae9e19024 (diff)
fix cli_ure build with Win8 SDK
Change-Id: I4842d848234a5dc21085a3fd0aa0a79c58c71e8c
-rw-r--r--configure.in36
-rwxr-xr-xoowintool13
2 files changed, 49 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 70fd6d4e4a01..f457838ba7c0 100644
--- a/configure.in
+++ b/configure.in
@@ -4686,6 +4686,38 @@ if test "$build_os" = "cygwin"; then
CSC_PATH=`cygpath -d "$CSC_PATH"`
CSC_PATH=`cygpath -u "$CSC_PATH"`
+ dnl Check al.exe
+ AC_PATH_PROG(AL_PATH, al.exe)
+ if test -n "$AL_PATH";then
+ AL_PATH=`dirname "$AL_PATH"`
+ fi
+ if test -n "$with_al_path";then
+ with_al_path=`cygpath -u "$with_al_path"`
+ fi
+ if test -x "$with_al_path/al.exe"; then
+ AL_PATH="$with_al_path"
+ fi
+ if test -z "$AL_PATH"; then
+ winsdktest=`./oowintool --windows-sdk-home`
+ if test -x "$winsdktest/Bin/al.exe"; then
+ AL_PATH="$winsdktest/Bin"
+ fi
+ fi
+ if test -z "$AL_PATH"; then
+ altest=`./oowintool --al-home`
+ if test -x "$altest/bin/al.exe"; then
+ AL_PATH="$altest/bin"
+ elif test -x "$altest/al.exe"; then
+ AL_PATH="$altest"
+ fi
+ fi
+ if test ! -x "$AL_PATH/al.exe"; then
+ AC_MSG_ERROR([al.exe not found. Make sure it's in PATH or use --with-al-path])
+ fi
+ # Convert to posix path with 8.3 filename restrictions ( No spaces )
+ AL_PATH=`cygpath -d "$AL_PATH"`
+ AL_PATH=`cygpath -u "$AL_PATH"`
+
dnl Check mscoree.lib / .NET Framework dir
AC_MSG_CHECKING(.NET Framework)
if test -n "$with_dotnet_framework_home"; then
@@ -4712,6 +4744,9 @@ if test "$build_os" = "cygwin"; then
PathFormat "$MIDL_PATH"
MIDL_PATH="$formatted_path"
+
+ PathFormat "$AL_PATH"
+ AL_PATH="$formatted_path"
PathFormat "$DOTNET_FRAMEWORK_HOME"
DOTNET_FRAMEWORK_HOME="$formatted_path"
@@ -12629,6 +12664,7 @@ else
pathmunge "$WINDOWS_SDK_HOME/bin" "before"
pathmunge "$CSC_PATH" "before"
pathmunge "$MIDL_PATH" "before"
+ pathmunge "$AL_PATH" "before"
pathmunge "$MSPDB_PATH" "before"
if test "$BITNESS_OVERRIDE" = 64; then
pathmunge "$COMPATH/bin/amd64" "before"
diff --git a/oowintool b/oowintool
index 244a3b4d7234..5f7d60321dbe 100755
--- a/oowintool
+++ b/oowintool
@@ -55,6 +55,7 @@ sub print_syntax()
print " --msvs-productdir - print productdir\n";
print " --dotnetsdk-dir - print .NET SDK path\n";
print " --csc-compilerdir - print .NET SDK compiler path\n";
+ print " --al-home - print AL.exe install dir\n";
print " --windows-sdk-home - print Windows SDK install dir\n";
print " --jdk-home - print the jdk install dir\n";
print " --help - print this message\n";
@@ -119,6 +120,16 @@ sub print_windows_sdk_home()
print cygpath ($value, 'w', $output_format);
}
+sub print_al_home()
+{
+ my ($value, $key);
+
+ $key = reg_find_key ('HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/*/WinSDK-NetFx40Tools/InstallationFolder');
+ $value = reg_get_value ($key);
+
+ print cygpath ($value, 'w', $output_format);
+}
+
my %msvs_2008 = (
'ver' => '9.0',
'key' => 'Microsoft/VisualStudio/9.0/Setup/VS/ProductDir',
@@ -373,6 +384,8 @@ while (@commands) {
print_csc_compiler_dir();
} elsif ($opt eq '--windows-sdk-home') {
print_windows_sdk_home();
+ } elsif ($opt eq '--al-home') {
+ print_al_home();
} elsif ($opt eq '--jdk-home') {
print_jdk_dir();
} elsif ($opt eq '--help' || $opt eq '/?') {