10 June 2008

This is an approved src.alt for 483.xalancbmk in CPU2006 v1.1.

It will allow the benchmark to be built on Mac OS X systems using the PGI
compiler.

To apply the src.alt, unpack the tar file in the top level of the CPU2006
directory.  The following sequence of commands should accomplish this:

$ /bin/sh
$ cd <cpu2006 dir>
$ . ./shrc
$ go top
$ specbzip2 -dc <src.alt tarball> | spectar -xvf -

Please replace the items in angle brackets ( <> ) as appropriate.

To have the src.alt applied during compilation, please add the following
stanza to your config file:

# Enable PGI Mac OS X compatibility
483.xalancbmk:
srcalt=pgiosx

This src.alt simply adds support for the PGI Mac OS X compilers. 

The actual changes are:

diff -u ../../xercesc/util/AutoSense.hpp xercesc/util/AutoSense.hpp
--- ../../xercesc/util/AutoSense.hpp    2008-03-25 21:37:23.000000000 -0700
+++ xercesc/util/AutoSense.hpp  2008-05-29 16:03:31.000000000 -0700
@@ -261,6 +261,8 @@

 #elif defined(macintosh) || (defined(__APPLE__) && defined(__MACH__))
     #define XML_LINUX
+#elif defined(__APPLE__) && defined(__PGI)
+    #define XML_LINUX
 #if defined (__GNUC__)
     #define XML_GCC
 #else
@@ -304,7 +306,7 @@
     #endif
 #elif defined (__QNXNTO__)
     #define XML_QCC
-#elif defined (__GNUG__) || defined(__BEOS__) || defined(__linux__) || defined(__CYGWIN__)
+#elif defined (__GNUG__) || defined(__BEOS__) || defined(__linux__) || defined(__CYGWIN__) || defined(__PGI)
     #define XML_GCC
 #elif defined(XML_HPUX)
     #if defined(EXM_HPUX)

Please address any questions about this src.alt to cpu2006support@spec.org.
