Index: m4/compiler.m4
===================================================================
--- m4/compiler.m4	(revision 6192)
+++ m4/compiler.m4	(working copy)
@@ -112,15 +112,12 @@
   	;;
     esac
     dnl Check for Apple compilers
-    case "$GXX_VERSION_STRING" in
-      *Apple*)
+    if( test `uname` = "Darwin" ); then 
         AC_MSG_RESULT(<<< C++ compiler is built by Apple >>>)
         APPLE_GCC=true
-        ;;
-      *)
+    else
         APPLE_GCC=false
-        ;;
-    esac
+    fi 
   else
     dnl Check other (non-gcc) compilers
   
