File: configure.ac

package info (click to toggle)
glibc 2.31-13%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, bullseye-backports
  • size: 278,208 kB
  • sloc: ansic: 1,025,197; asm: 256,790; makefile: 12,091; sh: 10,575; python: 9,618; cpp: 5,233; awk: 1,956; perl: 514; yacc: 290; pascal: 182; sed: 73
file content (38 lines) | stat: -rw-r--r-- 1,120 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
sinclude(./aclocal.m4)dnl Autoconf lossage
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/unix/sysv/linux/riscv.

arch_minimum_kernel=4.15.0

libc_cv_riscv_int_abi=no
AC_EGREP_CPP(4 8 8, [__SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
  ], libc_cv_riscv_int_abi=lp64)
if test $libc_cv_riscv_int_abi = no; then
  AC_MSG_ERROR([Unable to determine integer ABI])
fi

libc_cv_riscv_float_abi=no
AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_double
		   yes
		   #endif
  ],libc_cv_riscv_float_abi=d)
AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_soft
		   yes
		   #endif
  ],libc_cv_riscv_float_abi=)
if test "$libc_cv_riscv_float_abi" = no; then
  AC_MSG_ERROR([Unable to determine floating-point ABI])
fi

LIBC_CONFIG_VAR([default-abi], [$libc_cv_riscv_int_abi$libc_cv_riscv_float_abi])

case $libc_cv_riscv_int_abi$libc_cv_riscv_float_abi-$machine in
lp64-riscv/rv64/*)
  LIBC_SLIBDIR_RTLDDIR([lib64/lp64], [lib])
  ;;
lp64d-riscv/rv64/*)
  LIBC_SLIBDIR_RTLDDIR([lib64/lp64d], [lib])
  ;;
esac

ldd_rewrite_script=sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed