This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Untangle the <stdio.h> #include nest for the stdchar test,
[perl5.git] / hints / hpux.sh
index 462d74b..43d72bc 100644 (file)
@@ -105,10 +105,12 @@ EOM
     ;;
 esac
 
+cc=${cc:-cc}
+
 case `$cc -v 2>&1`"" in
 *gcc*) ccisgcc="$define" ;;
 *) ccisgcc=''
-   ccversion=`which cc | xargs what | grep Compiler | awk '{print $2}'`
+   ccversion=`which cc | xargs what | awk '/Compiler/{print $2}'`
    ;;
 esac