diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d068bb5..0b0d887 100644 --- a/configure.ac +++ b/configure.ac @@ -573,9 +573,10 @@ AC_CHECK_PROG_VER(BISON, bison, --version, [bison (GNU Bison) \([0-9]*\.[0-9.]*\)], [2.7*|[3-9].*|[1-9][0-9]*], critic_missing="$critic_missing bison") +# Require GCC 12.1 to build. AC_CACHE_CHECK([if $CC is sufficient to build libc], libc_cv_compiler_ok, [ AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[]], [[ -#if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2) +#if !defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1) #error insufficient compiler #endif]])], [libc_cv_compiler_ok=yes], |