forked from strace/strace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap
executable file
·38 lines (34 loc) · 857 Bytes
/
bootstrap
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
#!/bin/sh -eu
#
# Copyright (c) 2014-2018 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: LGPL-2.1-or-later
./m4/gen_bpf_attr_m4.sh
./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
for f in README INSTALL; do
cp "dist/$f" .
done
autoreconf -f -i "$@"