Skip to content

Commit

Permalink
xlc -qversion outputs to stdout; redirect stdout and stderr to a file…
Browse files Browse the repository at this point in the history
… to silence error when MPICC is not XL based
  • Loading branch information
wkliao committed Dec 4, 2018
1 parent 13510f0 commit 9b992b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1580,11 +1580,12 @@ dnl
AC_DEFUN([UD_CHECK_XLC],[
AC_CACHE_CHECK([if C compiler is IBM XLC], [ac_cv_cc_compiler_xlc],
[ac_cv_cc_compiler_xlc=no
ac_XLC_VER=`$MPICC -qversion`
ac_XLC_VENDOR=`echo $ac_XLC_VER | cut -d' ' -f1,2`
ac_XLC_VER=`$MPICC -qversion >& conftest.ver`
ac_XLC_VENDOR=`head -c 6 conftest.ver`
if test "x${ac_XLC_VENDOR}" = "xIBM XL" ; then
ac_cv_cc_compiler_xlc=yes
fi
${RM} -f conftest.ver
unset ac_XLC_VER
unset ac_XLC_VENDOR
])
Expand Down

0 comments on commit 9b992b8

Please sign in to comment.