trick/autoconf/m4/tr_clang_version.m4
Scott Fennell c588520727
Autoconf Update & Refactor ()
Refactor autoconf, use best practices
2022-10-25 11:41:49 -05:00

11 lines
311 B
Plaintext

AC_DEFUN([TR_CLANG_VERSION], [
CLANG_VERSION=""
ax_cv_clang_version="`$CLANG --version | grep "version" | sed "s/.*version \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/"`"
AS_IF([test "x$ax_cv_clang_version" = "x"],[
ax_cv_clang_version=""
])
CLANG_VERSION=$ax_cv_clang_version
AC_SUBST([CLANG_VERSION])
])