Blame sysdeps/aarch64/configure.ac

Packit 6c4009
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
Packit 6c4009
# Local configure fragment for sysdeps/aarch64.
Packit 6c4009
Packit 6c4009
# We check to see if the compiler and flags are
Packit 6c4009
# selecting the big endian ABI and if they are then
Packit 6c4009
# we set libc_cv_aarch64_be to yes which causes
Packit 6c4009
# HAVE_AARCH64_BE to be defined in config.h and
Packit 6c4009
# in include/libc-symbols.h and thus available to
Packit 6c4009
# shlib-versions to select the appropriate name for
Packit 6c4009
# the dynamic linker via %ifdef.
Packit 6c4009
AC_CACHE_CHECK([for big endian],
Packit 6c4009
  [libc_cv_aarch64_be],
Packit 6c4009
  [AC_EGREP_CPP(yes,[#ifdef __AARCH64EB__
Packit 6c4009
                      yes
Packit 6c4009
                     #endif
Packit 6c4009
  ], libc_cv_aarch64_be=yes, libc_cv_aarch64_be=no)])
Packit 6c4009
if test $libc_cv_aarch64_be = yes; then
Packit 6c4009
  AC_DEFINE(HAVE_AARCH64_BE)
Packit 6c4009
  LIBC_CONFIG_VAR([default-abi], [lp64_be])
Packit 6c4009
else
Packit 6c4009
  LIBC_CONFIG_VAR([default-abi], [lp64])
Packit 6c4009
fi