Browse Source

Remove bashism in configure.ac

Patch courtesy of Jakub Bogusz.
main
Sam Hocevar 3 years ago
parent
commit
9a0ebef8d7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      configure.ac

+ 1
- 1
configure.ac View File

@@ -269,7 +269,6 @@ if test "${enable_cocoa}" != "no"; then
[ac_cv_my_have_cocoa="yes"]) [ac_cv_my_have_cocoa="yes"])
CFLAGS="$save_CFLAGS" CFLAGS="$save_CFLAGS"
if test "${ac_cv_my_have_cocoa}" = "yes"; then if test "${ac_cv_my_have_cocoa}" = "yes"; then
[[[ "$target_os" =~ [0-9]+ ]]] && darwin_ver="${BASH_REMATCH[[0]]}"
case x${target} in case x${target} in
xpowerpc*darwin*) xpowerpc*darwin*)
# 10.3 needed to link with X11 # 10.3 needed to link with X11
@@ -297,6 +296,7 @@ if test "${enable_cocoa}" != "no"; then
esac esac
CC="${CC:-gcc-${GCC_VERSION}}" CC="${CC:-gcc-${GCC_VERSION}}"
CXX="${CXX:-g++-${GCC_VERSION}}" CXX="${CXX:-g++-${GCC_VERSION}}"
darwin_ver="$(echo "${target_os}" | sed -ne 's/[^0-9]*\([0-9]\+\).*/\1/p')"
if [[ "$darwin_ver" -lt "13" ]]; then if [[ "$darwin_ver" -lt "13" ]]; then
MACOSX_SDK_FRAMEWORKS="${MACOSX_SDK_FRAMEWORKS:--F${MACOSX_SDK}/System/Library/Frameworks}" MACOSX_SDK_FRAMEWORKS="${MACOSX_SDK_FRAMEWORKS:--F${MACOSX_SDK}/System/Library/Frameworks}"
CPPFLAGS="${CPPFLAGS} ${ARCH} ${MACOSX_SDK_FRAMEWORKS}" CPPFLAGS="${CPPFLAGS} ${ARCH} ${MACOSX_SDK_FRAMEWORKS}"


Loading…
Cancel
Save