]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/riscv/configure.ac
sim: mips/ppc/riscv: re-add AC_CANONICAL_SYSTEM [PR sim/29439]
[thirdparty/binutils-gdb.git] / sim / riscv / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(Makefile.in)
3 AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
4
5 dnl The sim shouldn't be checking $target and changing behavior. But it is,
6 dnl and until we clean that up, we need to expand --target for use below.
7 AC_CANONICAL_SYSTEM
8
9 # Select the bitsize of the target.
10 riscv_addr_bitsize=
11 case "${target}" in
12 riscv32*) riscv_addr_bitsize=32 ;;
13 riscv*) riscv_addr_bitsize=64 ;;
14 esac
15 SIM_AC_OPTION_BITSIZE($riscv_addr_bitsize)
16
17 SIM_AC_OUTPUT