1GLIBC_PROVIDES[]dnl See aclocal.m4 in the top level source directory. 2# Local preconfigure fragment for sysdeps/loongarch 3 4case "$machine" in 5loongarch*) 6 7 abi=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define __loongarch_\(lp64\|ilp32\).*/\1/p'` 8 float_abi=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define __loongarch_\(soft\|single\|double\)_float.*/\1/p'` 9 10 with_fp_cond="!defined __loongarch_soft_float" 11 12 case "$float_abi" in 13 soft) 14 abi_flen=0 15 AC_MSG_ERROR([loongarch does not yet support soft floating-point ABI!!], 1) 16 ;; 17 single) 18 AC_MSG_ERROR([glibc does not yet support the single floating-point ABI!!], 1) 19 ;; 20 double) 21 abi_flen=64 22 ;; 23 *) 24 AC_MSG_ERROR([Unable to determine floating-point ABI!!], 1) 25 ;; 26 esac 27 28 case "$abi" in 29 ilp32) 30 AC_MSG_ERROR([loongarch does not yet support ilp32 ABI!!], 1) 31 ;; 32 lp64) 33 grlen=64 34 machine=loongarch/lp64 35 ;; 36 *) 37 AC_MSG_ERROR([Unable to determine GRLEN!!], 1) 38 ;; 39 esac 40 41 AC_DEFINE_UNQUOTED([LOONGARCH_ABI_GRLEN], [$grlen]) 42 AC_DEFINE_UNQUOTED([LOONGARCH_ABI_FRLEN], [$abi_flen]) 43 44 base_machine=loongarch 45 ;; 46esac 47 48