From: Spider Boardman Date: Thu, 7 Sep 2000 17:54:27 +0000 (-0400) Subject: Fix the ccversion detection for 5.1 and beyond. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eaa5a4a2c0c31e24b252e23ecfd04a2a6c3d80a8;p=p5sagit%2Fp5-mst-13.2.git Fix the ccversion detection for 5.1 and beyond. Subject: [ID 20000907.007] Not OK: perl v5.7.0 +devel-7030 on alpha-dec_osf 4.0f Message-Id: <200009072154.RAA14747@leggy.zk3.dec.com> p4raw-id: //depot/perl@7031 --- diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index 86e8f94..ff8c374 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -99,7 +99,7 @@ EOF fi ;; *) # compile something small: taint.c is fine for this. - ccversion=`cc -V | grep 'DEC C' | awk '{print $3}'` + ccversion=`cc -V | grep -E '(Compaq|DEC) C' | awk '{print $3}'` # the main point is the '-v' flag of 'cc'. case "`cc -v -I. -c taint.c -o taint$$.o 2>&1`" in */gemc_cc*) # we have the new DEC GEM CC