2
0

autogen.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 ./wolfcrypt/src/fips.c
  20. touch ./wolfcrypt/src/fips_test.c
  21. touch ./wolfcrypt/src/wolfcrypt_first.c
  22. touch ./wolfcrypt/src/wolfcrypt_last.c
  23. touch ./wolfssl/wolfcrypt/fips.h
  24. # touch CAVP selftest files for non-selftest distribution
  25. touch ./wolfcrypt/src/selftest.c
  26. # touch async crypt files
  27. touch ./wolfcrypt/src/async.c
  28. touch ./wolfssl/wolfcrypt/async.h
  29. # touch async port files
  30. touch ./wolfcrypt/src/port/intel/quickassist.c
  31. touch ./wolfcrypt/src/port/intel/quickassist_mem.c
  32. touch ./wolfcrypt/src/port/cavium/cavium_nitrox.c
  33. if [ ! -d ./wolfssl/wolfcrypt/port/intel ]; then
  34. mkdir ./wolfssl/wolfcrypt/port/intel
  35. fi
  36. touch ./wolfssl/wolfcrypt/port/intel/quickassist.h
  37. touch ./wolfssl/wolfcrypt/port/intel/quickassist_mem.h
  38. if [ ! -d ./wolfssl/wolfcrypt/port/cavium ]; then
  39. mkdir ./wolfssl/wolfcrypt/port/cavium
  40. fi
  41. touch ./wolfssl/wolfcrypt/port/cavium/cavium_nitrox.h
  42. else
  43. WARNINGS="all"
  44. fi
  45. autoreconf --install --force --verbose