Module: ngircd.git Branch: master Commit: 1dea0d91a0547fe5c0a9cb025b205cf1d9b1d3b8 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=1dea0...
Author: Alexander Barton alex@barton.de Date: Tue Apr 24 12:08:01 2012 +0200
platformtest.sh: Detect Open64 C compiler
---
contrib/platformtest.sh | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index 6449a67..201ed41 100755 --- a/contrib/platformtest.sh +++ b/contrib/platformtest.sh @@ -96,9 +96,14 @@ if [ -r "Makefile" ]; then CC=$(grep "^CC = " Makefile | cut -d' ' -f3) $CC --version 2>&1 | grep -i "GCC" >/dev/null if [ $? -eq 0 ]; then - COMPILER=$($CC --version | head -1 \ - | cut -d')' -f2 | cut -d' ' -f2) - COMPILER="gcc $COMPILER" + $CC --version 2>&1 | grep -i "Open64" >/dev/null + if [ $? -eq 0 ]; then + COMPILER="Open64" + else + COMPILER=$($CC --version | head -1 \ + | cut -d')' -f2 | cut -d' ' -f2) + COMPILER="gcc $COMPILER" + fi else case "$CC" in gcc*)
ngircd-commits@lists.barton.de