--- configure	2010-01-07 11:58:06.000000000 -0600
+++ configure	2010-04-26 14:13:26.000000000 -0500
@@ -122,7 +122,7 @@
 #
 export ARCH0="`uname`"
 export ARCH=${ARCH0}
-export theGcc=`g++ --version | head -n 1 | awk '{print$3}' | awk -F . '{print $1}'`
+export theGcc=`${CXX} --version | head -n 1 | awk '{print$3}' | awk -F . '{print $1}'`
 if [ ${theGcc} = 4 ]; then
   export ARCH=${ARCH}-gcc4
 fi
--- examples/configure	2010-01-07 11:58:06.000000000 -0600
+++ examples/configure	2010-04-26 14:13:08.000000000 -0500
@@ -118,7 +118,7 @@
 #
 export ARCH0="`uname`"
 export ARCH=${ARCH0}
-export theGcc=`g++ --version | head -n 1 | awk '{print$3}' | awk -F . '{print $1}'`
+export theGcc=`${CXX} --version | head -n 1 | awk '{print$3}' | awk -F . '{print $1}'`
 if [ ${theGcc} = 4 ]; then
   export ARCH=${ARCH}-gcc4
 fi
