From 475bd06fbd1c0e9dfd9daa6842c315167b90b9e4 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 6 May 2002 15:02:00 +0000 Subject: [PATCH] Detect hp aCC, and set some flags. git-svn-id: https://svn.dealii.org/trunk@5827 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 3b480676f0..e1f3b86e94 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -132,9 +132,17 @@ AC_DEFUN(DEAL_II_DETERMINE_CXX_BRAND, dnl GXX_VERSION=portland_group else - dnl Aw, nothing suitable found... - AC_MSG_ERROR(Unrecognized compiler, sorry) - exit 1 + dnl HP aCC? + is_aCC="`($CXX -V 2>&1) | grep 'aCC'`" + if test "x$is_aCC" != "x" ; then + AC_MSG_RESULT(C++ compiler is HP aCC) + GXX_VERSION=hp_aCC + else + + dnl Aw, nothing suitable found... + AC_MSG_ERROR(Unrecognized compiler, sorry) + exit 1 + fi fi fi fi @@ -334,6 +342,13 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl CXXFLAGSO="$CXXFLAGS -A -Xa" CXXFLAGSPIC="-Kpic" ;; + + hp_aCC) + CXXFLAGSG="$CXXFLAGS -g1 +p +w -z -Aa -AA" + CXXFLAGSO="$CXXFLAGS -A -Xa -z +O2 -Aa -AA" + CXXFLAGSPIC="+Z" + # for linking shared libs, -b is also necessary... + ;; *) AC_MSG_ERROR(No compiler options for this C++ compiler -- 2.39.5