]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Detect some things for Sun's WorkShop compiler.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 6 Jul 2001 10:30:41 +0000 (10:30 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 6 Jul 2001 10:30:41 +0000 (10:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@4835 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure.in

index 2fff13b64a5372183e550ae501c240d83c507233..0bd65c1778ece344837dda1a5286ef0fce1a4b74 100644 (file)
@@ -140,9 +140,16 @@ else
           GXX_VERSION=compaq_cxx
         else
 
-          dnl  Aw, nothing suitable found...
-          AC_MSG_ERROR(Unrecognized compiler, sorry)
-          exit 1
+          is_sun_cc="`($CXX -V 2>&1) | grep 'Sun WorkShop'`"
+          if test "x$is_sun_cc" != "x" ; then
+            AC_MSG_RESULT(compiler is Sun Workshop compiler)
+            GXX_VERSION=sun_workshop
+          else
+
+            dnl  Aw, nothing suitable found...
+            AC_MSG_ERROR(Unrecognized compiler, sorry)
+            exit 1
+         fi
         fi
       fi
     fi
@@ -336,10 +343,17 @@ else
           dnl                -pch? -noimplicit_include?
         else
 
-          dnl Other compiler
-          AC_MSG_ERROR(No compiler options for this C++ compiler
-                       specified at present)
-          exit 1
+         if test "x$GXX_VERSION" = "xsun_workshop" ; then
+           CXXFLAGSG="$CXXFLAGS -DDEBUG"
+           CXXFLAGSO="$CXXFLAGS -fast"
+
+         else
+
+            dnl Other compiler
+            AC_MSG_ERROR(No compiler options for this C++ compiler
+                         specified at present)
+            exit 1
+         fi
         fi
       fi
     fi
@@ -448,6 +462,12 @@ if test $enableshared = yes ; then
                 LDFLAGS="$LDFLAGS -shared"
                 ;;
 
+       sun_workshop)
+               CFLAGS="$CFLAGS -KPIC"
+                CXXFLAGSG="$CXXFLAGSG -KPIC"
+                CXXFLAGSO="$CXXFLAGSO -KPIC"
+               ;;
+
         *)
                 AC_MSG_ERROR(No shared lib options for this compiler specified)
                 exit 1

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.