Avoid garbled sed command in hints/solaris_2.sh
authorAndy Dougherty <doughera@lafayette.edu>
Tue, 4 Sep 2012 15:35:56 +0000 (11:35 -0400)
committerAndy Dougherty <doughera@lafayette.edu>
Tue, 4 Sep 2012 15:35:56 +0000 (11:35 -0400)
Solaris sed does not understand the GNU /i flag.

hints/solaris_2.sh

index 0574ce7..615d440 100644 (file)
@@ -327,7 +327,7 @@ EOM
        if $tryworkshopcc >/dev/null 2>&1; then
                cc_name=`./try`
                if test "$cc_name" = "workshop"; then
-                       ccversion="`${cc:-cc} -V 2>&1|sed -n -e '1s/^cc: //ip'`"
+                       ccversion="`${cc:-cc} -V 2>&1|sed -n -e '1s/^[Cc][Cc]: //p'`"
                        if test ! "$use64bitall_done"; then
                                loclibpth="/usr/lib /usr/ccs/lib `$getworkshoplibs` $loclibpth"
                        fi
@@ -341,7 +341,7 @@ EOM
                        d_attribute_warn_unused_result='undef'
                fi
                if test "$cc_name" = "workshop CC"; then
-                       ccversion="`${cc:-CC} -V 2>&1|sed -n -e '1s/^CC: //ip'`"
+                       ccversion="`${cc:-CC} -V 2>&1|sed -n -e '1s/^[Cc][C]: //p'`"
                        if test ! "$use64bitall_done"; then
                                loclibpth="/usr/lib /usr/ccs/lib `$getworkshoplibs` $loclibpth"
                        fi