/[qemu]/qemu/configure
ViewVC logotype

Diff of /qemu/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.74 by bellard, Sun Oct 30 18:58:21 2005 UTC revision 1.75 by bellard, Wed Nov 2 22:30:45 2005 UTC
# Line 88  kqemu="no" Line 88  kqemu="no"
88  kernel_path=""  kernel_path=""
89  cocoa="no"  cocoa="no"
90  check_gfx="yes"  check_gfx="yes"
91    check_gcc="yes"
92    
93  # OS specific  # OS specific
94  targetos=`uname -s`  targetos=`uname -s`
# Line 200  for opt do Line 201  for opt do
201    ;;    ;;
202    --disable-gfx-check) check_gfx="no"    --disable-gfx-check) check_gfx="no"
203    ;;    ;;
204      --disable-gcc-check) check_gcc="no"
205      ;;
206    esac    esac
207  done  done
208    
# Line 277  if $cc -fno-reorder-blocks -fno-optimize Line 280  if $cc -fno-reorder-blocks -fno-optimize
280     have_gcc3_options="yes"     have_gcc3_options="yes"
281  fi  fi
282    
283    # Check for gcc4
284    if test "$check_gcc" = "yes" ; then
285        cat > $TMPC <<EOF
286    #if __GNUC__ >= 4
287    #error gcc4
288    #endif
289    int main(){return 0;}
290    EOF
291        if ! $cc -o $TMPO $TMPC 2>/dev/null ; then
292            echo "ERROR: \"$cc\" looks like gcc 4.x"
293            echo "QEMU is known to have problems when compiled with gcc 4.x"
294            echo "It is recommended that you use gcc 3.x to build QEMU"
295            echo "To use this compiler anyway, configure with --disable-gcc-check"
296            exit 1;
297        fi
298    fi
299    
300  ##########################################  ##########################################
301  # SDL probe  # SDL probe
302    

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26