From 67c1a38d490c4d712967199ab295e0e92be1ff64 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 12 Feb 2025 17:20:05 +0100 Subject: [PATCH] configure.ac: Don't use bash specific shell code. Use m4sh syntax instead. --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 2abbf445..18140e5b 100644 --- a/configure.ac +++ b/configure.ac @@ -1071,7 +1071,7 @@ AC_ARG_ENABLE([codesign], AM_CONDITIONAL([WITH_CODESIGN], [test $enable_codesign -eq 1]) # Determine the minimum macOS version we can build -if [[ $(uname) == "Darwin" ]]; then +AS_IF([test $(uname) = "Darwin"], [ AC_MSG_CHECKING([for minimum macOS version supported]) # Create a simple C program @@ -1087,14 +1087,14 @@ if [[ $(uname) == "Darwin" ]]; then rm -f t.c t # Check if min_macos_version is set - if test -z "$min_macos_version"; then + AS_IF([test -z "$min_macos_version"]; [ AC_MSG_ERROR([Could not determine minimum macOS version]) - else + ], [ # Set CFLAGS with the determined minimum macOS version CFLAGS="$CFLAGS -mmacosx-version-min=$min_macos_version" AC_MSG_RESULT([$min_macos_version]) - fi -fi + ]) +]) # ------------------------------------------------------------------------ -- 2.48.1