From c8b51a2d3bc6a6c65c29ea9f592d871b9e7a2715 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 6 Dec 2016 08:56:39 +0900 Subject: [PATCH] configury: remove some dead code perl is now mandatory to build Open MPI, so there is no need to check for it Signed-off-by: Gilles Gouaillardet --- config/opal_config_asm.m4 | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/config/opal_config_asm.m4 b/config/opal_config_asm.m4 index f55575aca9..4c10fcd94c 100644 --- a/config/opal_config_asm.m4 +++ b/config/opal_config_asm.m4 @@ -1255,27 +1255,21 @@ if test "$opal_cv_asm_arch" != "WINDOWS" && test "$opal_cv_asm_builtin" != "BUIL rm -rf conftest.* if test "$opal_cv_asm_file" = "" ; then - if test ! "$PERL" = "" ; then - # we have perl... Can we generate a file? - AC_MSG_CHECKING([whether possible to generate assembly file]) - mkdir -p opal/asm/generated - opal_cv_asm_file="atomic-local.s" - opal_try='$PERL $OPAL_TOP_SRCDIR/opal/asm/generate-asm.pl $opal_cv_asm_arch "$opal_cv_asm_format" $OPAL_TOP_SRCDIR/opal/asm/base $OPAL_TOP_BUILDDIR/opal/asm/generated/$opal_cv_asm_file >conftest.out 2>&1' - if AC_TRY_EVAL(opal_try) ; then - # save the warnings - cat conftest.out >&AC_FD_CC - AC_MSG_RESULT([yes]) - else - # save output - cat conftest.out >&AC_FD_CC - opal_cv_asm_file="" - AC_MSG_RESULT([failed]) - AC_MSG_WARN([Could not build atomic operations assembly file.]) - AC_MSG_WARN([There will be no atomic operations for this build.]) - fi + # Can we generate a file? + AC_MSG_CHECKING([whether possible to generate assembly file]) + mkdir -p opal/asm/generated + opal_cv_asm_file="atomic-local.s" + opal_try='$PERL $OPAL_TOP_SRCDIR/opal/asm/generate-asm.pl $opal_cv_asm_arch "$opal_cv_asm_format" $OPAL_TOP_SRCDIR/opal/asm/base $OPAL_TOP_BUILDDIR/opal/asm/generated/$opal_cv_asm_file >conftest.out 2>&1' + if AC_TRY_EVAL(opal_try) ; then + # save the warnings + cat conftest.out >&AC_FD_CC + AC_MSG_RESULT([yes]) else - AC_MSG_WARN([Could not find prebuilt atomic operations file and could not]) - AC_MSG_WARN([find perl to attempt to generate a custom assembly file.]) + # save output + cat conftest.out >&AC_FD_CC + opal_cv_asm_file="" + AC_MSG_RESULT([failed]) + AC_MSG_WARN([Could not build atomic operations assembly file.]) AC_MSG_WARN([There will be no atomic operations for this build.]) fi fi