[Libreoffice-commits] core.git: configure.ac

Kohei Yoshida kohei.yoshida at collabora.com
Tue Apr 25 05:20:16 UTC 2017


 configure.ac |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

New commits:
commit 53ec01b67eb3e7020800f92a63860d332e73b1dd
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Mon Apr 24 22:48:18 2017 -0400

    Get the configure.ac to detect .NET framework 4.7.
    
    Change-Id: Ic936be25c6d66dd6a73d101869d535684bf0d680
    Reviewed-on: https://gerrit.libreoffice.org/36918
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/configure.ac b/configure.ac
index f1ff14131c0e..ca5d0cd6b0b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5111,13 +5111,14 @@ find_al()
         fi
     done
 
-    # TODO(davido): We need this additional check to detect 4.6.2
-    # This should be made generic, though
-    reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/NETFXSDK/4.6.2\WinSDK-NetFx40Tools/InstallationFolder"
-    if test -n "$regvalue" -a \( -f "$regvalue/al.exe" -o -f "$regvalue/bin/al.exe" \); then
-        altest=$regvalue
-        return
-    fi
+    # We need this additional check to detect 4.6.2 or above.
+    for ver in 4.7 4.6.2; do
+        reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/NETFXSDK/$ver/WinSDK-NetFx40Tools/InstallationFolder"
+        if test -n "$regvalue" -a \( -f "$regvalue/al.exe" -o -f "$regvalue/bin/al.exe" \); then
+            altest=$regvalue
+            return
+        fi
+    done
 }
 
 find_dotnetsdk()
@@ -5139,7 +5140,7 @@ find_dotnetsdk46()
 {
     unset frametest
 
-    for ver in 4.6.2 4.6.1 4.6; do
+    for ver in 4.7 4.6.2 4.6.1 4.6; do
         reg_get_value_64 "HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/Microsoft SDKs/NETFXSDK/$ver/KitsInstallationFolder"
         if test -n "$regvalue"; then
             frametest=$regvalue


More information about the Libreoffice-commits mailing list