[MOAB-dev] r3042 - MOAB/trunk/m4

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Tue Jul 21 16:06:38 CDT 2009


Author: kraftche
Date: 2009-07-21 16:06:38 -0500 (Tue, 21 Jul 2009)
New Revision: 3042

Modified:
   MOAB/trunk/m4/compiler.m4
Log:
small (and probably unnecessary) protability fix

Modified: MOAB/trunk/m4/compiler.m4
===================================================================
--- MOAB/trunk/m4/compiler.m4	2009-07-21 20:33:38 UTC (rev 3041)
+++ MOAB/trunk/m4/compiler.m4	2009-07-21 21:06:38 UTC (rev 3042)
@@ -66,7 +66,7 @@
     F77_LIST="mpif77"
     ;;
   x*)
-    if test -z "$CC";then
+    if test "x" = "x$CC"; then
       for prog in mpicc mpcc; do
         if test -x ${WITH_MPI}/bin/$prog; then
           CC="${WITH_MPI}/bin/$prog"
@@ -76,7 +76,7 @@
     else
       CC_LIST="$CC"
     fi
-    if test -z "$CXX";then
+    if test "x" = "x$CXX"; then
       for prog in mpicxx mpiCC mpCC mpicxx; do
         if test -x ${WITH_MPI}/bin/$prog; then
           CXX="${WITH_MPI}/bin/$prog"
@@ -86,7 +86,7 @@
     else
       CXX_LIST="$CXX"
     fi
-    if test -z "$FC";then
+    if test "x" = "x$FC"; then
       for prog in mpif90; do
         if test -x ${WITH_MPI}/bin/$prog; then
           FC="${WITH_MPI}/bin/$prog"
@@ -96,7 +96,7 @@
     else
       FC_LIST="$FC"
     fi
-    if test -z "$F77";then
+    if test "x" = "x$F77";then
       for prog in mpif77; do
         if test -x ${WITH_MPI}/bin/$prog; then
           F77="${WITH_MPI}/bin/$prog"



More information about the moab-dev mailing list