Dmitry V. Levin
4b36fd69f7
* configure.ac (AC_SUBST): Add SIZEOF_LONG and SIZEOF_KERNEL_LONG_T. * tests/Makefile.am (SIZEOF_LONG, SIZEOF_KERNEL_LONG_T): New variables. (AM_TEST_LOG_FLAGS): Pass them. * bootstrap: Substitute them.
29 lines
667 B
Bash
Executable File
29 lines
667 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
./generate_mpers_am.sh
|
|
./xlat/gen.sh
|
|
./tests/gen_pure_executables.sh
|
|
./tests/gen_tests.sh
|
|
|
|
for m in m32 mx32; do
|
|
tests=tests-$m
|
|
rm -rf $tests
|
|
mkdir $tests
|
|
s='[[:space:]]*'
|
|
[ "$m" = m32 ] && k="s/^\\(SIZEOF_KERNEL_LONG_T$s=\\).*/\\1 4/;" || k=
|
|
sed "s/@arch@/@arch_$m@/;
|
|
s/^\\(SIZEOF_LONG$s=\\).*/\\1 4/; $k
|
|
s/^MPERS_NAME$s=.*/& $m/;
|
|
s/^MPERS_CC_FLAGS$s=.*/& @cc_flags_$m@/;
|
|
s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) \$(MPERS_CC_FLAGS)/" \
|
|
tests/Makefile.am > $tests/Makefile.am
|
|
for f in tests/*; do
|
|
case "${f##*/}" in
|
|
Makefile*) continue;;
|
|
esac
|
|
ln -s ../"$f" $tests/
|
|
done
|
|
done
|
|
|
|
exec autoreconf -f -i "$@"
|