mkvtoolnix/ac/compiler_version.m4
Moritz Bunkus de093c2913 configure: get real version for clang(++)
`clang++ -dumpversion` always outputs 4.2.1 as it was designed to be
compatible with `g++` in that version. So parse `clang++ --version`
for `clang++` instead.
2017-11-17 21:49:36 +01:00

11 lines
291 B
Plaintext

AC_CACHE_CHECK(
[compiler version],
[ac_cv_compiler_version],
[
if test x"$ac_cv_compiler_is_clang" = xyes; then
ac_cv_compiler_version=`LC_ALL=C $CXX --version | sed -e 's/^[[^0-9]]*//' -e 's/[[^0-9.]].*//' -e '1q'`
else
ac_cv_compiler_version=`$CXX -dumpversion`
fi
])