On Mon, 5 Aug 2019, Dragan Mladjenovic wrote: > diff --git a/gcc/configure.ac b/gcc/configure.ac > index c620dd2..ab080c8 100644 > --- a/gcc/configure.ac > +++ b/gcc/configure.ac > @@ -6143,6 +6143,18 @@ if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; > then > [Define if your target C Library provides the AT_HWCAP value in the > TCB]) > fi > > +# Check if the target LIBC handles PT_GNU_STACK. > +gcc_cv_libc_gnustack=unknown > +case "$target" in > + mips*-*-linux*) > + GCC_GLIBC_VERSION_GTE_IFELSE([2], [31], [gcc_cv_libc_gnustack=yes], ) > + ;; > +esac
It looks to me like this should be using AC_CACHE_VAL. Maciej