From 08bb813a9ddfd6377aef48bf14d1c689c8e661ce Mon Sep 17 00:00:00 2001
From: James David Berry <jberry@apache.org>
Date: Tue, 25 Feb 2003 19:37:07 +0000
Subject: [PATCH] tests/runConfigure

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174810 13f79535-47bb-0310-9956-ffa450edef68
---
 samples/runConfigure | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/samples/runConfigure b/samples/runConfigure
index 5b5aa1688..bcaf9cb28 100755
--- a/samples/runConfigure
+++ b/samples/runConfigure
@@ -418,6 +418,10 @@ case $cppcompiler in
    xlC* | xlc* | g++ | c++ | cc | CC | aCC | icc | ICC | cxx | ecc)
       ;;
 
+   '')
+   	  echo "C++ compiler not specified...we'll assume that configure will find it..."
+   	  ;;
+
    *)
       echo "I do not recognize the C++ compiler '$cppcompiler'. Continuing anyway ..."
       ;;
@@ -442,7 +446,7 @@ CFLAGS="$CFLAGS $compileroptions $debugflag $transcodingDefines $threadingDefine
 export CFLAGS
 
 # gcc crashes if optimisation is turned on in a Tru64 environment
-if [ $platform = "tru64" -a $CXX = "g++" ]; then
+if test "$platform" = "tru64" -a "$CXX" = "g++"; then
     CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]*//g'`
     CFLAGS=`echo $CFLAGS | sed -e 's/-O[0-9]*//g'`
     export CXXFLAGS CFLAGS
-- 
GitLab