mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 15:26:41 +00:00
c588520727
Refactor autoconf, use best practices
11 lines
311 B
Plaintext
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])
|
|
]) |