Commit d4af3de224fbb4677744e9d0661a6296fca791ba

Authored by balrog
1 parent 73221b12

gcc32 may well be a 4.x version for a 32bit target, so add an additional check, …

…hopefully not too strict.
Probe also gcc-3.3.6 to make Gentoo users happy.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3087 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
configure
... ... @@ -23,7 +23,7 @@ static="no"
23 23 cross_prefix=""
24 24 cc="gcc"
25 25 gcc3_search="yes"
26   -gcc3_list="gcc-3.4 gcc34 gcc-3.3 gcc33 gcc-3.2 gcc32"
  26 +gcc3_list="gcc-3.4 gcc34 gcc-3.3.6 gcc-3.3 gcc33 gcc-3.2 gcc32"
27 27 host_cc="gcc"
28 28 ar="ar"
29 29 make="make"
... ... @@ -413,7 +413,7 @@ EOF
413 413 if test "$gcc3_search" = "yes" ; then
414 414 echo "Looking for gcc 3.x"
415 415 for compat_cc in $gcc3_list ; do
416   - if "$cross_prefix$compat_cc" --version > /dev/null 2>&1 ; then
  416 + if "$cross_prefix$compat_cc" --version 2> /dev/null | fgrep '(GCC) 3.' > /dev/null 2>&1 ; then
417 417 echo "Found \"$compat_cc\""
418 418 cc="$cross_prefix$compat_cc"
419 419 found_compat_cc="yes"
... ...