]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/riscv/configure.ac
d4819931ca3f770679a28b3f11632fabfec1bcd8
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / riscv / configure.ac
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/riscv.
4
5 arch_minimum_kernel=4.15.0
6
7 libc_cv_riscv_int_abi=no
8 AC_EGREP_CPP(4 8 8, [__SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
9 ], libc_cv_riscv_int_abi=lp64)
10 if test $libc_cv_riscv_int_abi = no; then
11 AC_MSG_ERROR([Unable to determine integer ABI])
12 fi
13
14 libc_cv_riscv_float_abi=no
15 AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_double
16 yes
17 #endif
18 ],libc_cv_riscv_float_abi=d)
19 AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_soft
20 yes
21 #endif
22 ],libc_cv_riscv_float_abi=)
23 if test "$libc_cv_riscv_float_abi" = no; then
24 AC_MSG_ERROR([Unable to determine floating-point ABI])
25 fi
26
27 LIBC_CONFIG_VAR([default-abi], [$libc_cv_riscv_int_abi$libc_cv_riscv_float_abi])
28
29 case $libc_cv_riscv_int_abi$libc_cv_riscv_float_abi-$machine in
30 lp64-riscv/rv64/*)
31 LIBC_SLIBDIR_RTLDDIR([lib64/lp64], [lib])
32 ;;
33 lp64d-riscv/rv64/*)
34 LIBC_SLIBDIR_RTLDDIR([lib64/lp64d], [lib])
35 ;;
36 esac
37
38 ldd_rewrite_script=sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed