shift
echo $compiler "$@" >> config.log
$compiler "$@" >> config.log 2>&1 || return $?
+
# Test passed. If this is an --enable-werror build, rerun
# the test with -Werror and bail out if it fails. This
# makes warning-generating-errors in configure test code
;;
esac
echo $compiler -Werror "$@" >> config.log
- $compiler -Werror "$@" >> config.log 2>&1 && return $?
- error_exit "configure test passed without -Werror but failed with -Werror." \
- "This is probably a bug in the configure script. The failing command" \
- "will be at the bottom of config.log." \
- "You can run configure with --disable-werror to bypass this check."
+# Modified - it produces confusable result with clang.
+# We use -Werror for all platforms. So, simply, we just return result.
+ $compiler -Werror "$@" >> config.log 2>&1
+ return $?
+# $compiler -Werror "$@" >> config.log 2>&1 && return $?
+# error_exit "configure test passed without -Werror but failed with -Werror." \
+# "This is probably a bug in the configure script. The failing command" \
+# "will be at the bottom of config.log." \
+# "You can run configure with --disable-werror to bypass this check."
}
do_cc() {
Darwin*)
CONFIGURE_APPEND="
--cc=clang
- --cxx=clang
- --extra-cflags=-mmacosx-version-min=10.7
+ --cxx=clang++
+ --extra-cflags=-mmacosx-version-min=10.9
--extra-cflags=-Wno-error=deprecated-declarations
- --extra-ldflags=-lstdc++
+ --extra-cflags=-Wno-error=address-of-packed-member
--extra-ldflags=-Wl,-rpath,'@executable_path'
--audio-drv-list=coreaudio
--enable-cocoa