RISC-V: Use an autoconf template to produce `preconfigure'
authorMaciej W. Rozycki <macro@embecosm.com>
Fri, 13 May 2022 16:07:23 +0000 (17:07 +0100)
committerMaciej W. Rozycki <macro@embecosm.com>
Fri, 13 May 2022 16:07:23 +0000 (17:07 +0100)
commit7b1cfba79ee54221ffa7d7879433b7ee1728cd76
treeda85072b867dea5cc7fd8234d47cbdb75fb74c40
parent353a1220e3a4ece67216c07796cb0fd2b3d2e309
RISC-V: Use an autoconf template to produce `preconfigure'

Avoid fiddling with autoconf internals and use AC_DEFINE_UNQUOTED to
define macros in the configuration headers rather than handcoding an
equivalent shell sequence with the use of the `as_echo' undocumented
variable.

Switch to using AC_MSG_ERROR rather than `echo' and `exit' directly for
error handling.  Owing to the lack of any kind of error annotation it
makes it difficult to spot the message in the flood in a parallel build
and neither it is logged in `config.log'.

Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
sysdeps/riscv/preconfigure
sysdeps/riscv/preconfigure.ac [new file with mode: 0644]