1 sinclude(./aclocal.m4)dnl Autoconf lossage
2 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3 # Local configure fragment for sysdeps/unix/sysv/linux/loongarch.
5 arch_minimum_kernel=5.19.0
7 libc_cv_loongarch_int_abi=no
8 AC_EGREP_CPP(4 8 8, [__SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
9 ], libc_cv_loongarch_int_abi=lp64)
10 if test $libc_cv_loongarch_int_abi = no; then
11 AC_MSG_ERROR([Unable to determine integer ABI])
14 libc_cv_loongarch_float_abi=no
15 AC_EGREP_CPP(yes, [#ifdef __loongarch_double_float
18 ],libc_cv_loongarch_float_abi=d)
19 AC_EGREP_CPP(yes, [#ifdef __loongarch_soft_float
22 ],libc_cv_loongarch_float_abi=s)
23 if test "$libc_cv_loongarch_float_abi" = no; then
24 AC_MSG_ERROR([Unable to determine floating-point ABI])
27 LIBC_CONFIG_VAR([default-abi], [$libc_cv_loongarch_int_abi$libc_cv_loongarch_float_abi])
29 case $libc_cv_loongarch_int_abi$libc_cv_loongarch_float_abi in
31 LIBC_SLIBDIR_RTLDDIR([lib64/sf], [lib64])
34 LIBC_SLIBDIR_RTLDDIR([lib64], [lib64])
38 ldd_rewrite_script=sysdeps/unix/sysv/linux/loongarch/ldd-rewrite.sed