From ffb25fd6a94bbecee1b0fc9607afe9d8828bf7c7 Mon Sep 17 00:00:00 2001 From: John Vu Date: Fri, 24 Jul 2009 20:01:52 +0000 Subject: [PATCH] ICU-6627 Added if statements to stop if xlc_r and/or xlC_r is not found to prevent fallback to g++. X-SVN-Rev: 26434 --- icu4c/source/runConfigureICU | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/icu4c/source/runConfigureICU b/icu4c/source/runConfigureICU index 9265248f65..0e74d6f8f1 100755 --- a/icu4c/source/runConfigureICU +++ b/icu4c/source/runConfigureICU @@ -125,7 +125,13 @@ case $platform in THE_OS=AIX THE_COMP="xlC_r" CC=`which xlc_r`; export CC + if ! [-x $CC]; then + echo "ERROR: xlc_r was not found, please check the PATH to make sure it is correct."; exit 1 + fi CXX=`which xlC_r`; export CXX + if ! [-x $CXX]; then + echo "ERROR: xlC_r was not found, please check the PATH to make sure it is correct."; exit 1 + fi RELEASE_CFLAGS="-O2 -qmaxmem=-1" RELEASE_CXXFLAGS="-O2 -qmaxmem=-1" ;;