diff options
Diffstat (limited to 'sysdeps/x86_64/configure.ac')
-rw-r--r-- | sysdeps/x86_64/configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sysdeps/x86_64/configure.ac b/sysdeps/x86_64/configure.ac index c714c47351..c7b68544a2 100644 --- a/sysdeps/x86_64/configure.ac +++ b/sysdeps/x86_64/configure.ac @@ -76,5 +76,23 @@ EOF rm -rf conftest*]) LIBC_CONFIG_VAR([have-mamx-tile], [$libc_cv_x86_have_amx_tile]) +# Check if -mapxf is enabled. +AC_CACHE_CHECK(whether -mapxf is enabled, + libc_cv_x86_have_apx, [dnl +cat > conftest.c <<EOF +#ifndef __APX_F__ +# error APX isn't enabled +#endif +EOF + libc_cv_x86_have_apx=no + if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.c -o conftest.o 1>&AS_MESSAGE_LOG_FD); then + libc_cv_x86_have_apx=yes + fi + rm -rf conftest*]) +if test $libc_cv_x86_have_apx = yes; then + AC_DEFINE(HAVE_X86_APX) +fi +LIBC_CONFIG_VAR([have-x86-apx], [$libc_cv_x86_have_apx]) + test -n "$critic_missing" && AC_MSG_ERROR([ *** $critic_missing]) |