From 32e9e9ace9f34fa547b727f9929b5734a6392984 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 9 Jun 2018 00:43:40 +0200 Subject: make builds reproducible --- src/configure | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/configure') diff --git a/src/configure b/src/configure index 082e523..b8a7f3f 100755 --- a/src/configure +++ b/src/configure @@ -283,6 +283,7 @@ if [ -n "$BOOST_PREFIX" ]; then LDFLAGS="$LDFLAGS -L\"$BOOST_PREFIX/lib\"" fi +CRYPTO_LIB_NAME="" case $CRYPTO_LIB in gcrypt) CXXFLAGS=$CXXFLAGS' -DUSE_GCRYPT' @@ -291,6 +292,7 @@ case $CRYPTO_LIB in CXXFLAGS="$CXXFLAGS -I\"$GCRYPT_PREFIX/include\"" LDFLAGS="$LDFLAGS -L\"$GCRYPT_PREFIX/lib\"" fi + CRYPTO_LIB_NAME="libgcrypt" echo "using gcrypt library" ;; nettle) @@ -300,6 +302,7 @@ case $CRYPTO_LIB in CXXFLAGS="$CXXFLAGS -I\"$NETTLE_PREFIX/include\"" LDFLAGS="$LDFLAGS -L\"$NETTLE_PREFIX/lib\"" fi + CRYPTO_LIB_NAME="Nettle" echo "using nettle library" ;; ssl) @@ -309,10 +312,12 @@ case $CRYPTO_LIB in CXXFLAGS="$CXXFLAGS -I\"$OPENSSL_PREFIX/include\"" LDFLAGS="$LDFLAGS -L\"$OPENSSL_PREFIX/lib\"" fi + CRYPTO_LIB_NAME="OpenSSL" echo "using openssl crypto library" ;; none) CXXFLAGS=$CXXFLAGS' -DNO_CRYPT' + CRYPTO_LIB_NAME="none" echo "disabling crypto" ;; esac @@ -417,8 +422,6 @@ if which git >/dev/null; then VERSION="$VERSION (git $GIT_HASH)" fi fi -HOSTNAME=`hostname` -DATE=`date +"%d.%m.%Y %H:%M:%S %Z"` cat > version.h < version.h <