浏览代码

Remove bashism in configure.ac

Patch courtesy of Jakub Bogusz.
main
Sam Hocevar 3 年前
父节点
当前提交
9a0ebef8d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      configure.ac

+ 1
- 1
configure.ac 查看文件

@@ -269,7 +269,6 @@ if test "${enable_cocoa}" != "no"; then
[ac_cv_my_have_cocoa="yes"])
CFLAGS="$save_CFLAGS"
if test "${ac_cv_my_have_cocoa}" = "yes"; then
[[[ "$target_os" =~ [0-9]+ ]]] && darwin_ver="${BASH_REMATCH[[0]]}"
case x${target} in
xpowerpc*darwin*)
# 10.3 needed to link with X11
@@ -297,6 +296,7 @@ if test "${enable_cocoa}" != "no"; then
esac
CC="${CC:-gcc-${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
MACOSX_SDK_FRAMEWORKS="${MACOSX_SDK_FRAMEWORKS:--F${MACOSX_SDK}/System/Library/Frameworks}"
CPPFLAGS="${CPPFLAGS} ${ARCH} ${MACOSX_SDK_FRAMEWORKS}"


正在加载...
取消
保存