summaryrefslogtreecommitdiff
path: root/hints/aix.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-09-17 09:33:39 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-09-17 09:33:39 +0000
commit35727b84c71fa1997973466e1085cc7718896a75 (patch)
treee7e43dfad20624da26797b823f39695f519b496c /hints/aix.sh
parent68fed2afeea75342559d1bce2d459572bbdd23e4 (diff)
downloadperl-35727b84c71fa1997973466e1085cc7718896a75.tar.gz
The AIX C product potentially consists of several packages,
the main package being (hopefully) the first one. p4raw-id: //depot/perl@21261
Diffstat (limited to 'hints/aix.sh')
-rw-r--r--hints/aix.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index bf1667bd4f..dd800ae965 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -145,7 +145,7 @@ case "$cc" in
gccversion=`$cc --version | sed 's/.*(GCC) *//'`
fi
;;
-*) ccversion=`lslpp -L | grep 'C for AIX Compiler$' | grep -v '\.msg\.[A-Za-z_]*\.' | awk '{print $1,$2}'`
+*) ccversion=`lslpp -L | grep 'C for AIX Compiler$' | grep -v '\.msg\.[A-Za-z_]*\.' | head -1 | awk '{print $1,$2}'`
case "$ccversion" in
'') ccversion=`lslpp -L | grep 'IBM C and C++ Compilers LUM$'`
;;