Mercurial > mplayer.hg
comparison configure @ 6318:d14ae909f855
10l fix for cpuinfo exec after G3 changes and beatify cc check.
author | atmos4 |
---|---|
date | Thu, 06 Jun 2002 22:58:18 +0000 |
parents | 459ac73266b5 |
children | 8b543b2e65f0 |
comparison
equal
deleted
inserted
replaced
6317:0ed18ccf8a84 | 6318:d14ae909f855 |
---|---|
386 if test "$_skip_cc_check" != yes ; then | 386 if test "$_skip_cc_check" != yes ; then |
387 for _cc in $_cc gcc-3.1 gcc3 gcc-3.0 cc ; do | 387 for _cc in $_cc gcc-3.1 gcc3 gcc-3.0 cc ; do |
388 echocheck "$_cc version" | 388 echocheck "$_cc version" |
389 cc_name=`( $_cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1` | 389 cc_name=`( $_cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1` |
390 cc_version=`( $_cc -dumpversion ) 2>&1` | 390 cc_version=`( $_cc -dumpversion ) 2>&1` |
391 if test "$?" -gt 0; then | |
392 cc_version="not found" | |
393 fi | |
391 case $cc_version in | 394 case $cc_version in |
392 '') | 395 '') |
393 cc_version="v. ?.??, bad" | 396 cc_version="v. ?.??, bad" |
394 cc_verc_fail=yes | 397 cc_verc_fail=yes |
395 ;; | 398 ;; |
396 2.95.[2-9]|2.95.[2-9][-.][0-9]|3.[0-9]|3.[0-9].[0-9]) | 399 2.95.[2-9]|2.95.[2-9][-.][0-9]|3.[0-9]|3.[0-9].[0-9]) |
397 cc_version="$cc_version, ok" | 400 cc_version="$cc_version, ok" |
398 cc_verc_fail=no | 401 cc_verc_fail=no |
402 ;; | |
403 'not found') | |
404 cc_verc_fail=yes | |
399 ;; | 405 ;; |
400 *) | 406 *) |
401 cc_version="$cc_version, bad" | 407 cc_version="$cc_version, bad" |
402 cc_verc_fail=yes | 408 cc_verc_fail=yes |
403 ;; | 409 ;; |
468 _cpuinfo="cat /proc/cpuinfo" | 474 _cpuinfo="cat /proc/cpuinfo" |
469 elif test -r /compat/linux/proc/cpuinfo ; then | 475 elif test -r /compat/linux/proc/cpuinfo ; then |
470 # FreeBSD with linux emulation /proc mounted, | 476 # FreeBSD with linux emulation /proc mounted, |
471 # extract cpu information from it | 477 # extract cpu information from it |
472 _cpuinfo="cat /compat/linux/proc/cpuinfo" | 478 _cpuinfo="cat /compat/linux/proc/cpuinfo" |
473 else | 479 elif x86; then |
474 # all other OS try to extract cpu information from a small helper | 480 # all other OS try to extract cpu information from a small helper |
475 # program TOOLS/cpuinfo instead | 481 # program TOOLS/cpuinfo instead |
476 $_cc -o TOOLS/cpuinfo TOOLS/cpuinfo.c | 482 $_cc -o TOOLS/cpuinfo TOOLS/cpuinfo.c |
477 _cpuinfo="TOOLS/cpuinfo" | 483 _cpuinfo="TOOLS/cpuinfo" |
478 fi | 484 fi |