autogen.sh 779 B

123456789101112131415161718192021222324252627282930313233
  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. fi
  12. # Set HAVE_FIPS_SOURCE to 1 in your .profile if you have access to the FIPS
  13. # repository. (Hint: If you don't work for us, you don't. This will fail.)
  14. if test -n "$HAVE_FIPS_SOURCE" -a ! -d ./fips; then
  15. git clone git@github.com:wolfSSL/fips.git
  16. SAVEDIR=`pwd`
  17. cd ./ctaocrypt/src
  18. ln -sf ../../fips/fips.c
  19. ln -sf ../../fips/fips_test.c
  20. cd $SAVEDIR
  21. fi
  22. # If this is a source checkout then call autoreconf with error as well
  23. if test -d .git; then
  24. WARNINGS="all,error"
  25. else
  26. WARNINGS="all"
  27. fi
  28. autoreconf --install --force --verbose