]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: Check for other variants of the -m*os*-version-min flags
authorMartin Storsjo <martin@martin.st>
Thu, 20 Oct 2016 10:16:10 +0000 (13:16 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 20 Oct 2016 10:40:17 +0000 (12:40 +0200)
In addition to -miphoneos-version-min, the same version can be set
using -mios-version-min. And for WatchOS and TvOS, there's
-mwatchos-version-min and -mtvos-version-min.

acinclude.m4

index ea97400b4d67e2d9c79143e39279283d2844def9..95a73e5ec0ea35d4b9263071f4d286d4645d432f 100644 (file)
@@ -3203,8 +3203,9 @@ TEST EINVAL TEST
 
 dnl CURL_MAC_CFLAGS
 dnl
-dnl Check if -mmacosx-version-min or -miphoneos-version-min are set manually,
-dnl otherwise do. And set -Werror=partial-availability.
+dnl Check if -mmacosx-version-min, -miphoneos-version-min or any
+dnl similar are set manually, otherwise do. And set
+dnl -Werror=partial-availability.
 dnl
 
 AC_DEFUN([CURL_MAC_CFLAGS], [
@@ -3222,8 +3223,7 @@ AC_DEFUN([CURL_MAC_CFLAGS], [
   if test "$tst_cflags" = "yes"; then
     AC_MSG_CHECKING([for *version-min in CFLAGS])
     min=""
-    if test -z "$(echo $CFLAGS | grep mmacosx-version-min)" -a
-       test -z "$(echo $CFLAGS | grep miphoneos-version-min)"; then
+    if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
       min="-mmacosx-version-min=10.5"
       CFLAGS="$CFLAGS $min"
     fi