diff options
author | David Ostrovsky <david@ostrovsky.org> | 2016-02-18 00:30:16 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-02-18 19:32:50 +0000 |
commit | 1d97879bdde8f521b8b648ef070722611feb9b72 (patch) | |
tree | 8c226b0c2dc064f25ba231b7b401db40007c4d06 | |
parent | f1ee822b76cf58c93299e901224d6d6a7eae322a (diff) |
configure: Fix Windows SDK 10 retrieval
Change-Id: I800bd502c3ecd4ec1cdaa6cb3cbe1c4432d8358f
Reviewed-on: https://gerrit.libreoffice.org/22451
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
(cherry picked from commit 9218ca64957a27dfeacefd317b12edb82b405c7c)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
Reviewed-on: https://gerrit.libreoffice.org/22485
-rw-r--r-- | configure.ac | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 5099873cb7a7..299984b698a1 100644 --- a/configure.ac +++ b/configure.ac @@ -3374,10 +3374,11 @@ find_msvs() find_ucrt() { - reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows Kits/Installed Roots/KitsRoot10" + reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v10.0/InstallationFolder" if test -n "$regvalue"; then ucrttest=$regvalue - ucrtdir=10.0.10240.0 + reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v10.0/ProductVersion" + ucrtdir=$regvalue fi } @@ -3431,7 +3432,6 @@ if test "$_os" = "WINNT"; then AC_MSG_CHECKING([Visual C++]) find_msvc "$with_visual_studio" - if test -z "$vctest"; then if test -n "$with_visual_studio"; then AC_MSG_ERROR([No Visual Studio $with_visual_studio installation found]) @@ -3598,7 +3598,7 @@ if test "$_os" = "WINNT"; then ;; 140) COMEX=19 - WINDOWS_SDK_ACCEPTABLE_VERSIONS="10.0A 8.1A 8.1 8.0 7.1A" + WINDOWS_SDK_ACCEPTABLE_VERSIONS="10.0A 10.0 8.1A 8.1 8.0 7.1A" ;; esac @@ -5295,11 +5295,12 @@ find_winsdk_version() return fi ;; - 10) - reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows Kits/Installed Roots/KitsRoot10" + 10.0) + reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v${1}/InstallationFolder" if test -n "$regvalue"; then winsdktest=$regvalue - winsdklibsubdir=10.0.10056.0 + reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v${1}/ProductVersion" + winsdklibsubdir=$regvalue return fi ;; @@ -8836,7 +8837,7 @@ if test "$with_system_odbc" = "yes" -o '(' "$with_system_headers" = "yes" -a "$w save_CPPFLAGS=$CPPFLAGS find_winsdk PathFormat "$winsdktest" - CPPFLAGS="$CPPFLAGS -I$formatted_path/include/um -I$formatted_path/Include/$winsdklibsubdir/um -I$formatted_path/include -I$formatted_path/include/shared" + CPPFLAGS="$CPPFLAGS -I$formatted_path/include/um -I$formatted_path/Include/$winsdklibsubdir/um -I$formatted_path/include -I$formatted_path/include/shared -I$formatted_path/include/$winsdklibsubdir/shared" AC_CHECK_HEADER(sqlext.h, [], [AC_MSG_ERROR(odbc not found. install odbc)], [#include <windows.h>]) |