| 323 | | elif [ $cc_maj -eq 4 -a $cc_min -eq 0 ]; then |
|---|
| 324 | | if [ "$OS" = "darwin" ]; then |
|---|
| 325 | | log_success "found version $cc_ver" |
|---|
| 326 | | else |
|---|
| 327 | | log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with x>0" |
|---|
| | 338 | elif [ $cc_maj -eq 4 -a $cc_min -eq 0 -a "OS" = "darwin" ]; then |
|---|
| | 339 | log_success "found version $cc_ver" |
|---|
| | 340 | elif [ $cc_maj -eq 4 -a $cc_min -eq 3 ]; then |
|---|
| | 341 | if [ -z "$CC_COMPAT" ]; then |
|---|
| | 342 | log "" |
|---|
| | 343 | log " ** There are known problems with gcc version 4.3 when compiling the recompiler" |
|---|
| | 344 | log " ** stuff. You need to specify a compatibility compiler with version < 4.3. Look" |
|---|
| | 345 | log " ** for a package compat-gcc-34 on Fedora systems or something similar on other" |
|---|
| | 346 | log " ** distributions and call configure with parameter --with-gcc-compat=gcc34." |
|---|
| 330 | | elif [ $cc_maj -gt 3 ]; then |
|---|
| 331 | | log_success "found version $cc_ver" |
|---|
| 332 | | elif [ $cc_maj -lt 3 -o $cc_min -lt 2 ]; then |
|---|
| 333 | | log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with x>0" |
|---|
| | 349 | if check_avail "$CC_COMPAT" CC_COMPAT really; then |
|---|
| | 350 | cc_compat_ver=`$CC_COMPAT -dumpversion` 2>/dev/null |
|---|
| | 351 | if [ $? -ne 0 ]; then |
|---|
| | 352 | log_failure "cannot execute '$CC_COMPAT -dumpversion'" |
|---|
| | 353 | fail really |
|---|
| | 354 | fi |
|---|
| | 355 | cc_compat_maj=`echo $cc_compat_ver|cut -d. -f1` |
|---|
| | 356 | cc_compat_min=`echo $cc_compat_ver|cut -d. -f2` |
|---|
| | 357 | if [ $cc_compat_maj -lt 3 \ |
|---|
| | 358 | -o \( $cc_compat_maj -eq 3 -a $cc_compat_min -lt 2 \) \ |
|---|
| | 359 | -o \( $cc_compat_maj -eq 4 -a $cc_compat_min -lt 1 \) \ |
|---|
| | 360 | -o \( $cc_compat_maj -eq 4 -a $cc_compat_min -gt 2 \) \ |
|---|
| | 361 | -o $cc_compat_maj -gt 4 ]; then |
|---|
| | 362 | log "" |
|---|
| | 363 | log " ** Version $cc_compat_ver of the compatibility gcc found. Expected gcc 3.x with x>1" |
|---|
| | 364 | log " ** or gcc 4.x with 0<x<3" |
|---|
| | 365 | fail really |
|---|
| | 366 | fi |
|---|
| | 367 | cnf_append "VBOX_RECOMPILER_OP_GCC" "$CC_COMPAT" |
|---|
| | 368 | fi |
|---|
| | 369 | elif [ $cc_maj -lt 3 \ |
|---|
| | 370 | -o \( $cc_maj -eq 3 -a $cc_min -lt 2 \) \ |
|---|
| | 371 | -o \( $cc_maj -eq 4 -a $cc_min -lt 1 \) \ |
|---|
| | 372 | -o \( $cc_maj -eq 4 -a $cc_min -gt 3 \) \ |
|---|
| | 373 | -o $cc_maj -gt 4 ]; then |
|---|
| | 374 | log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<4" |
|---|