From: wolf Date: Fri, 6 Jul 2001 10:30:41 +0000 (+0000) Subject: Detect some things for Sun's WorkShop compiler. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=005e1a169925cb13d7f8bfa53d1a99060e073065;p=dealii-svn.git Detect some things for Sun's WorkShop compiler. git-svn-id: https://svn.dealii.org/trunk@4835 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/configure.in b/deal.II/configure.in index 2fff13b64a..0bd65c1778 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -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