From 27968af8a94a4f95697cdbeb89e99893725d618c Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 31 Jul 2018 18:21:44 -0400 Subject: [PATCH] Update to support IBM XLC and LLVM backend --- TestScripts/cryptest-autotools.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/TestScripts/cryptest-autotools.sh b/TestScripts/cryptest-autotools.sh index eee4de10..95e47d0f 100755 --- a/TestScripts/cryptest-autotools.sh +++ b/TestScripts/cryptest-autotools.sh @@ -48,8 +48,26 @@ fi mkdir -p m4/ -if [[ ! -z $(command -v autoupdate) ]]; then - autoupdate +if [[ -z $(command -v autoupdate) ]]; then + echo "Cannot find autoupdate. Things will probably fail." +fi + +if [[ -z $(command -v libtoolize) ]]; then + echo "Cannot find libtoolize. Things will probably fail." +fi + +if [[ -z $(command -v autoreconf) ]]; then + echo "Cannot find autoreconf. Things will probably fail." +fi + +if ! autoupdate; then + echo "autoupdate failed." + [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 +fi + +if ! libtoolize -fi; then + echo "libtoolize failed." + [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 fi if ! autoreconf -fi --warnings=all; then