autogen.sh 678 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. #
  3. # Create configure and makefile stuff...
  4. #
  5. # Git hooks should come before autoreconf.
  6. if test -d .git; then
  7. if ! test -d .git/hooks; then
  8. mkdir .git/hooks
  9. fi
  10. ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
  11. ln -s -f ../../pre-push.sh .git/hooks/pre-push
  12. fi
  13. # If this is a source checkout then call autoreconf with error as well
  14. if test -e .git; then
  15. WARNINGS="all,error"
  16. # touch fips files for non fips distribution
  17. touch ./ctaocrypt/src/fips.c
  18. touch ./ctaocrypt/src/fips_test.c
  19. # touch async crypt files
  20. touch ./wolfcrypt/src/async.c
  21. touch ./wolfssl/wolfcrypt/async.h
  22. else
  23. WARNINGS="all"
  24. fi
  25. autoreconf --install --force --verbose