grep -e isn't portable.
chris@broadband.att.com [Sat, 26 Aug 2000 00:17:27 +0000 (18:17 -0600)]
Subject: [ID 20000825.027] let me (perlbug@perl.com) know how I blew it
Message-Id: <200008260617.AAA10219@lazlo.tci.com>

p4raw-id: //depot/perl@6840

hints/solaris_2.sh

index 4e5d6fa..96df529 100644 (file)
@@ -428,16 +428,17 @@ EOM
            case "$cc -v 2>/dev/null" in
            *gcc*)
                echo 'main() { return 0; }' > try.c
-               if ${cc:-cc} -mcpu=v9 -m64 -S try.c 2>&1 | grep -e \
-                   '-m64 is not supported by this configuration'; then
+               case "`${cc:-cc} -mcpu=v9 -m64 -S try.c 2>&1 | grep 'm64 is not supported by this configuration'`" in
+               *"m64 is not supported"*)
                    cat >&4 <<EOM
 
-Full 64-bit build not supported by this configuration.
+Full 64-bit build not supported by this gcc configuration.
 Cannot continue, aborting.
 
 EOM
                    exit 1
-               fi
+                   ;;
+               esac    
                ccflags="$ccflags -mcpu=v9 -m64"
                if test X`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null` != X; then
                    ccflags="$ccflags -Wa,`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"