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