[MOAB-dev] r4979 - MOAB/trunk/config
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Thu Jun 9 11:39:10 CDT 2011
Author: kraftche
Date: 2011-06-09 11:39:10 -0500 (Thu, 09 Jun 2011)
New Revision: 4979
Modified:
MOAB/trunk/config/compiler.m4
Log:
Fix xlc(xx) compiler flags:
- drop -qnamemangling=v5 entire
- only d -qrtti=all for versions earlier than 8.0
Modified: MOAB/trunk/config/compiler.m4
===================================================================
--- MOAB/trunk/config/compiler.m4 2011-06-09 16:20:36 UTC (rev 4978)
+++ MOAB/trunk/config/compiler.m4 2011-06-09 16:39:10 UTC (rev 4979)
@@ -267,7 +267,24 @@
[$2],[$3])
])
+#################################################################################
+# Check if the compiler defines a specific preprocessor macro with an integer
+# value greater than or equal to the passed value
+# Arguments:
+# - preprocessor define to check for
+# - numeric value to test
+# - action upon success
+# - action upon failure
+#################################################################################
+AC_DEFUN([FATHOM_TRY_COMPILER_DEFINE_GE], [
+ AC_COMPILE_IFELSE([
+ AC_LANG_PROGRAM( [[#if !defined($1) || $1 < $2
+ choke me
+ #endif]], []) ],
+ [$3],[$4])
+])
+
#######################################################################################
# Check for compiler-specific flags.
# Sets the following environmental variables:
@@ -291,7 +308,8 @@
cxx_compiler=unknown
case "$target_os" in
aix*)
- FATHOM_TRY_COMPILER_DEFINE([__IBMCPP__],[cxx_compiler=VisualAge])
+ FATHOM_TRY_COMPILER_DEFINE_GE([__IMBCPP__],[800],[cxx_compiler=VisualAge8],
+ [FATHOM_TRY_COMPILER_DEFINE([__IBMCPP__],[cxx_compiler=VisualAge])])
;;
solaris*|sunos*)
FATHOM_TRY_COMPILER_DEFINE([__SUNPRO_CC],[cxx_compiler=SunWorkshop])
@@ -363,20 +381,17 @@
VisualAge:*)
FATHOM_CXX_32BIT=-q32
FATHOM_CXX_64BIT=-q64
- # Do V5.0 namemangling for compatibility with ACIS, and enable RTTI
- case "$target_vendor" in
- bgp)
- FATHOM_CXX_SPECIAL=""
- AR="ar"
- NM="nm -B"
- ;;
- *)
More information about the moab-dev
mailing list