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
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
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