From 4751c8e0d0943ed53fb6e5c1aaf59dc467f3e027 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 26 Sep 2007 03:38:37 +0000 Subject: [PATCH] Properly recognize IBM xlC git-svn-id: https://svn.dealii.org/trunk@15242 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 2 +- deal.II/configure | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 58379b719e..9a2f9c3280 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -185,7 +185,7 @@ AC_DEFUN(DEAL_II_DETERMINE_CXX_BRAND, dnl dnl variables, moon position, and other reasons unknown to me, the dnl compiler displays different names in the first line of output, so dnl check various possibilities - is_ibm_xlc="`($CXX 2>&1) | egrep 'VisualAge C++|C Set ++|C for AIX Compiler'`" + is_ibm_xlc="`($CXX -qversion 2>&1) | grep IBM`" if test "x$is_ibm_xlc" != "x" ; then dnl Ah, this is IBM's C++ compiler. Unfortunately, we don't presently dnl know how to check the version number, so assume that is sufficiently diff --git a/deal.II/configure b/deal.II/configure index 93c3c6e1c8..8055a6edbb 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 15116 . +# From configure.in Revision: 15146 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.60 for deal.II 6.1.pre. # @@ -3677,7 +3677,7 @@ echo "${ECHO_T}C++ compiler is $GXX_VERSION (subversion $GXX_VERSION_DETAILED)" else - is_ibm_xlc="`($CXX 2>&1) | egrep 'VisualAge C++|C Set ++|C for AIX Compiler'`" + is_ibm_xlc="`($CXX -qversion 2>&1) | grep IBM`" if test "x$is_ibm_xlc" != "x" ; then { echo "$as_me:$LINENO: result: C++ compiler is IBM xlC" >&5 echo "${ECHO_T}C++ compiler is IBM xlC" >&6; } -- 2.39.5