comparison configure @ 3159:b8e7c71f4fcb

Use "tail -1" instead of "tail -n 1" to print the last line, the "-n" option seems to be a gnu extension and is not available with the solaris "tail".
author jkeil
date Tue, 27 Nov 2001 16:50:34 +0000
parents 59ac428ae68d
children 950496933384
comparison
equal deleted inserted replaced
3158:411ba8287a8f 3159:b8e7c71f4fcb
309 # gcc-3.0 merges optimizations coming from egcs, pgcc, agcc, ... 309 # gcc-3.0 merges optimizations coming from egcs, pgcc, agcc, ...
310 if test "$_skip_cc_check" != yes ; then 310 if test "$_skip_cc_check" != yes ; then
311 echocheck "$_cc version" 311 echocheck "$_cc version"
312 # also check for name (the version checking is only for _gcc_ up for now) 312 # also check for name (the version checking is only for _gcc_ up for now)
313 # FIXME implement this in ver. check. 313 # FIXME implement this in ver. check.
314 cc_name=`$_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1` 314 cc_name=`$_cc -v 2>&1 | tail -1 | cut -d ' ' -f 1`
315 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` 315 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
316 case $cc_version in 316 case $cc_version in
317 '') 317 '')
318 cc_version="v. ?.??, bad" 318 cc_version="v. ?.??, bad"
319 cc_verc_fail=yes 319 cc_verc_fail=yes