mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Fix configure's gcc version check. (#593)
The existing AX_GCC_VERSION macro was deprecated. Using https://stackoverflow.com/questions/7067385/find-the-gcc-version as a template for an equivalent check.
This commit is contained in:
parent
b5127ab93a
commit
0bf5d4a928
@ -188,6 +188,21 @@ dnl look for programs we need to compile and run
|
||||
AC_PROG_AWK
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_DEFUN([AX_GCC_VERSION], [
|
||||
GCC_VERSION=""
|
||||
AS_IF([test "x$GCC" = "xyes"],[
|
||||
AS_IF([test "x$ax_gcc_version_option" != "xno"],[
|
||||
AC_CACHE_CHECK([gcc version],[ax_cv_gcc_version],[
|
||||
ax_cv_gcc_version="`$CC -dumpversion`"
|
||||
AS_IF([test "x$ax_cv_gcc_version" = "x"],[
|
||||
ax_cv_gcc_version=""
|
||||
])
|
||||
])
|
||||
GCC_VERSION=$ax_cv_gcc_version
|
||||
])
|
||||
])
|
||||
AC_SUBST([GCC_VERSION])
|
||||
])
|
||||
AX_GCC_VERSION
|
||||
dnl if the compiler is gcc, test for gcc >= 4.8
|
||||
AS_IF([test "x$GCC_VERSION" = "x"],[],
|
||||
|
Loading…
Reference in New Issue
Block a user