blob: 7851dd4dac345b2aab7d29e33d1b63051a66b2f4 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2# Local configure fragment for sysdeps/aarch64.
3
4# We check to see if the compiler and flags are
5# selecting the big endian ABI and if they are then
6# we set libc_cv_aarch64_be to yes which causes
7# HAVE_AARCH64_BE to be defined in config.h and
8# in include/libc-symbols.h and thus available to
9# shlib-versions to select the appropriate name for
10# the dynamic linker via %ifdef.
11AC_CACHE_CHECK([for big endian],
12 [libc_cv_aarch64_be],
13 [AC_EGREP_CPP(yes,[#ifdef __AARCH64EB__
14 yes
15 #endif
16 ], libc_cv_aarch64_be=yes, libc_cv_aarch64_be=no)])
17if test $libc_cv_aarch64_be = yes; then
18 AC_DEFINE(HAVE_AARCH64_BE)
19 LIBC_CONFIG_VAR([default-abi], [lp64_be])
20else
21 LIBC_CONFIG_VAR([default-abi], [lp64])
22fi