]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: UWP and Android follow-up fixes
authorViktor Szakats <commit@vsz.me>
Fri, 17 Jan 2025 00:09:48 +0000 (01:09 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 17 Jan 2025 00:50:27 +0000 (01:50 +0100)
- limit UWP detection to native Windows.
- add missing double-quotes to variable.
- drop interlock and sync order in buildinfo flags.

Follow-up to 56a74fac47a27cfbfe2f49976938dab7a1b9b4f2 #16014
Follow-up to f7bb6c1f64049dcdaee970de6759db6f8597879e #16020

Closes #16027

acinclude.m4
configure.ac

index 21b6d0c40682bcb0ef8536b12f2444c4652ff5d8..23d641bcfaeb7b1b20d834805ad01b6cfc4028f6 100644 (file)
@@ -1524,21 +1524,14 @@ AC_DEFUN([CURL_PREPARE_BUILDINFO], [
   case $host in
     *-apple-*) curl_pflags="${curl_pflags} APPLE";;
   esac
-  if test "$curl_cv_native_windows" = 'yes'; then
-    curl_pflags="${curl_pflags} WIN32"
-  else
-    case $host in
-      *-*-*bsd*|*-*-aix*|*-*-hpux*|*-*-interix*|*-*-irix*|*-*-linux*|*-*-solaris*|*-*-sunos*|*-apple-*|*-*-cygwin*|*-*-msys*)
-        curl_pflags="${curl_pflags} UNIX";;
-    esac
-    case $host in
-      *-*-*bsd*)
-        curl_pflags="${curl_pflags} BSD";;
-    esac
-  fi
-  if test "$curl_cv_winuwp" = 'yes'; then
-    curl_pflags="${curl_pflags} UWP"
-  fi
+  case $host in
+    *-*-*bsd*|*-*-aix*|*-*-hpux*|*-*-interix*|*-*-irix*|*-*-linux*|*-*-solaris*|*-*-sunos*|*-apple-*|*-*-cygwin*|*-*-msys*)
+      curl_pflags="${curl_pflags} UNIX";;
+  esac
+  case $host in
+    *-*-*bsd*)
+      curl_pflags="${curl_pflags} BSD";;
+  esac
   case $host in
     *-*-android*)
       curl_pflags="${curl_pflags} ANDROID"
@@ -1548,6 +1541,12 @@ AC_DEFUN([CURL_PREPARE_BUILDINFO], [
       fi
       ;;
   esac
+  if test "$curl_cv_native_windows" = 'yes'; then
+    curl_pflags="${curl_pflags} WIN32"
+  fi
+  if test "$curl_cv_winuwp" = 'yes'; then
+    curl_pflags="${curl_pflags} UWP"
+  fi
   if test "$curl_cv_cygwin" = 'yes'; then
     curl_pflags="${curl_pflags} CYGWIN"
   fi
index db066937731a716333eaa71ef235c39c2844bb56..072f6f6dbb578926fc42c921ed3df9da682fdaff 100644 (file)
@@ -494,9 +494,11 @@ CURL_CHECK_COMPILER
 CURL_CHECK_NATIVE_WINDOWS
 
 curl_cv_winuwp='no'
-case $CPPFLAGS in
-  *-DWINSTORECOMPAT*) curl_cv_winuwp='yes';;
-esac
+if test "$curl_cv_native_windows" = "yes"; then
+  case "$CPPFLAGS" in
+    *-DWINSTORECOMPAT*) curl_cv_winuwp='yes';;
+  esac
+fi
 
 CURL_SET_COMPILER_BASIC_OPTS
 CURL_SET_COMPILER_DEBUG_OPTS