autogen.sh 581 B

1234567891011121314151617181920212223242526
  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 -d .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. else
  20. WARNINGS="all"
  21. fi
  22. autoreconf --install --force --verbose