2011-03-11 06:43:59 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Create configure and makefile stuff...
|
|
|
|
#
|
|
|
|
|
2013-09-15 11:13:30 +04:00
|
|
|
# Git hooks should come before autoreconf.
|
|
|
|
if test -d .git; then
|
2013-09-20 21:34:29 +04:00
|
|
|
if ! test -d .git/hooks; then
|
2013-09-15 11:13:30 +04:00
|
|
|
mkdir .git/hooks
|
|
|
|
fi
|
|
|
|
ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
|
|
|
|
fi
|
|
|
|
|
2014-11-19 23:00:04 +03:00
|
|
|
# Set HAVE_FIPS_SOURCE to 1 in your .profile if you have access to the FIPS
|
|
|
|
# repository. (Hint: If you don't work for us, you don't. This will fail.)
|
2014-11-24 23:50:55 +03:00
|
|
|
if test -n "$HAVE_FIPS_SOURCE" -a ! -d ./fips; then
|
2014-11-19 23:00:04 +03:00
|
|
|
git clone git@github.com:wolfSSL/fips.git
|
|
|
|
SAVEDIR=`pwd`
|
|
|
|
cd ./ctaocrypt/src
|
|
|
|
ln -sf ../../fips/fips.c
|
|
|
|
ln -sf ../../fips/fips_test.c
|
|
|
|
cd $SAVEDIR
|
|
|
|
fi
|
|
|
|
|
2013-09-15 11:13:30 +04:00
|
|
|
# If this is a source checkout then call autoreconf with error as well
|
2012-10-26 10:06:06 +04:00
|
|
|
if test -d .git; then
|
|
|
|
WARNINGS="all,error"
|
|
|
|
else
|
|
|
|
WARNINGS="all"
|
|
|
|
fi
|
|
|
|
|
|
|
|
autoreconf --install --force --verbose
|
2013-03-13 21:06:08 +04:00
|
|
|
|