Change 11580 by jhi@alpha on 2001/08/05 13:56:46

        Some Tru64 C compilers have C++ components that confuse
        the ccversion parsing.

Affected files ...

... //depot/perl/hints/dec_osf.sh#36 edit

Differences ...

==== //depot/perl/hints/dec_osf.sh#36 (text) ====
Index: perl/hints/dec_osf.sh
--- perl/hints/dec_osf.sh.~1~   Sun Aug  5 08:00:05 2001
+++ perl/hints/dec_osf.sh       Sun Aug  5 08:00:05 2001
@@ -100,7 +100,7 @@
        fi
         ;;
 *)     # compile something small: taint.c is fine for this.
-       ccversion=`cc -V | awk '/(Compaq|DEC) C/ {print $3}'`
+       ccversion=`cc -V | awk '/(Compaq|DEC) C/ {print $3}' | grep '^V'`
        # 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
End of Patch.

Reply via email to