comparison configure @ 26606:921d501d924b

Rename cc_verc_fail variable to cc_fail.
author diego
date Thu, 01 May 2008 17:25:19 +0000
parents ebdaff17896e
children 05b0039be9aa
comparison
equal deleted inserted replaced
26605:c75d2f3cf4eb 26606:921d501d924b
1420 _cc_minor=`echo $cc_version | cut -d '.' -f 2` 1420 _cc_minor=`echo $cc_version | cut -d '.' -f 2`
1421 # TODO verify older icc/ecc compatibility 1421 # TODO verify older icc/ecc compatibility
1422 case $cc_version in 1422 case $cc_version in
1423 '') 1423 '')
1424 cc_version="v. ?.??, bad" 1424 cc_version="v. ?.??, bad"
1425 cc_verc_fail=yes 1425 cc_fail=yes
1426 ;; 1426 ;;
1427 10.1) 1427 10.1)
1428 cc_version="$cc_version, ok" 1428 cc_version="$cc_version, ok"
1429 cc_verc_fail=no 1429 cc_fail=no
1430 ;; 1430 ;;
1431 *) 1431 *)
1432 cc_version="$cc_version, bad" 1432 cc_version="$cc_version, bad"
1433 cc_verc_fail=yes 1433 cc_fail=yes
1434 ;; 1434 ;;
1435 esac 1435 esac
1436 echores "$cc_version" 1436 echores "$cc_version"
1437 else 1437 else
1438 for _cc in "$_cc" gcc cc ; do 1438 for _cc in "$_cc" gcc cc ; do
1444 cc_version="not found" 1444 cc_version="not found"
1445 fi 1445 fi
1446 case $cc_version in 1446 case $cc_version in
1447 '') 1447 '')
1448 cc_version="v. ?.??, bad" 1448 cc_version="v. ?.??, bad"
1449 cc_verc_fail=yes 1449 cc_fail=yes
1450 ;; 1450 ;;
1451 2.95.[2-9]|2.95.[2-9][-.]*|[3-4].*) 1451 2.95.[2-9]|2.95.[2-9][-.]*|[3-4].*)
1452 _cc_major=`echo $cc_version | cut -d '.' -f 1` 1452 _cc_major=`echo $cc_version | cut -d '.' -f 1`
1453 _cc_minor=`echo $cc_version | cut -d '.' -f 2` 1453 _cc_minor=`echo $cc_version | cut -d '.' -f 2`
1454 _cc_mini=`echo $cc_version | cut -d '.' -f 3` 1454 _cc_mini=`echo $cc_version | cut -d '.' -f 3`
1455 cc_version="$cc_version, ok" 1455 cc_version="$cc_version, ok"
1456 cc_verc_fail=no 1456 cc_fail=no
1457 ;; 1457 ;;
1458 'not found') 1458 'not found')
1459 cc_verc_fail=yes 1459 cc_fail=yes
1460 ;; 1460 ;;
1461 *) 1461 *)
1462 cc_version="$cc_version, bad" 1462 cc_version="$cc_version, bad"
1463 cc_verc_fail=yes 1463 cc_fail=yes
1464 ;; 1464 ;;
1465 esac 1465 esac
1466 echores "$cc_version" 1466 echores "$cc_version"
1467 test "$cc_verc_fail" = "no" && break 1467 test "$cc_fail" = "no" && break
1468 done 1468 done
1469 fi # icc 1469 fi # icc
1470 if test "$cc_verc_fail" = yes ; then 1470 if test "$cc_fail" = yes ; then
1471 cat <<EOF 1471 cat <<EOF
1472 1472
1473 *** Please downgrade/upgrade C compiler to version gcc-2.95, 3.x or 4.x! *** 1473 *** Please downgrade/upgrade C compiler to version gcc-2.95, 3.x or 4.x! ***
1474 1474
1475 You are not using a supported compiler. We do not have the time to make sure 1475 You are not using a supported compiler. We do not have the time to make sure