Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bootstrap 857B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh -eu
  2. #
  3. # Copyright (c) 2014-2018 The strace developers.
  4. # All rights reserved.
  5. #
  6. # SPDX-License-Identifier: LGPL-2.1-or-later
  7. ./m4/gen_bpf_attr_m4.sh
  8. ./generate_mpers_am.sh
  9. ./xlat/gen.sh
  10. ./tests/gen_pure_executables.sh
  11. ./tests/gen_tests.sh
  12. for m in m32 mx32; do
  13. tests=tests-$m
  14. rm -rf $tests
  15. mkdir $tests
  16. s='[[:space:]]*'
  17. [ "$m" = m32 ] && k="s/^\\(SIZEOF_KERNEL_LONG_T$s=\\).*/\\1 4/;" || k=
  18. sed "s/@arch@/@arch_$m@/;
  19. s/^\\(SIZEOF_LONG$s=\\).*/\\1 4/; $k
  20. s/^MPERS_NAME$s=.*/& $m/;
  21. s/^MPERS_CC_FLAGS$s=.*/& @cc_flags_$m@/;
  22. s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) \$(MPERS_CC_FLAGS)/" \
  23. tests/Makefile.am > $tests/Makefile.am
  24. for f in tests/*; do
  25. case "${f##*/}" in
  26. Makefile*) continue;;
  27. esac
  28. ln -s ../"$f" $tests/
  29. done
  30. done
  31. for f in README INSTALL; do
  32. cp "dist/$f" .
  33. done
  34. autoreconf -f -i "$@"