VirtualBox

Changeset 3328 in vbox


Ignore:
Timestamp:
Jun 28, 2007 7:57:55 PM (17 years ago)
Author:
vboxsync
Message:

configure: fixed gcc version check (deny gcc-4.0); make echo work on all environments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r3263 r3328  
    9494  if [ -n "$1" ]; then echo -n "$1, "; fi
    9595  echo "OK."
    96   echo -e "$1\n\n" >> $LOG
     96  echo "$1" >> $LOG
     97  echo >> $LOG
     98  echo >> $LOG
    9799}
    98100
    99101log_failure()
    100102{
    101   echo -e "\n  ** $1!"
    102   echo -e "** $1!\n" >> $LOG
     103  echo
     104  echo "  ** $1!"
     105  echo "** $1!" >> $LOG
     106  echo >> $LOG
    103107}
    104108
     
    174178  if [ $? -ne 0 ]; then
    175179    if [ -z "$4" ]; then
    176       echo -e "\n  $2 not found at $1 or $3 headers not found"
    177       echo      "  Check the file $LOG for detailed error information."
     180      echo
     181      echo "  $2 not found at $1 or $3 headers not found"
     182      echo "  Check the file $LOG for detailed error information."
    178183      fail
    179184    else
    180185      echo "not found."
    181       echo -e "\n" >> $LOG
     186      echo >> $LOG
     187      echo >> $LOG
    182188    fi
    183189    return 1
     
    197203    return 1
    198204  fi
    199   echo -e "\n\n" >> $LOG
     205  echo >> $LOG
     206  echo >> $LOG
    200207  return 0
    201208}
     
    267274        log_failure "gcc version $cc_ver does not match g++ version $cxx_ver"
    268275        fail really
     276      elif [ $cc_maj -eq 4 -a $cc_min -eq 0 ]; then
     277        log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with x>0"
     278        fail really
    269279      elif [ $cc_maj -gt 3 ]; then
    270280        log_success "found version $cc_ver"
    271281      elif [ $cc_maj -lt 3 -o $cc_min -lt 2 ]; then
    272         log_failure "gcc version $cc_ver found, expected at least gcc version 3.2"
     282        log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with x>0"
    273283        fail really
    274284      else
     
    466476  else
    467477    echo "Building xalan from shipped sources."
    468     echo -e "Building xalan from shipped sources.\n\n" >> $LOG
     478    echo "Building xalan from shipped sources." >> $LOG
     479    echo >> $LOG
     480    echo >> $LOG
    469481  fi
    470482}
     
    501513  else
    502514    echo "Building xerces from shipped sources."
    503     echo -e "Building xerces from shipped sources.\n\n" >> $LOG
     515    echo "Building xerces from shipped sources." >> $LOG
     516    echo >> $LOG
     517    echo >> $LOG
    504518  fi
    505519}
     
    913927  done
    914928  if [ $found_qt -ne 1 ]; then
    915     echo -e "\n  Qt not found at \"$QTDIR\" or Qt headers not found"
    916     echo      "  Check the file $LOG for detailed error information."
     929    echo
     930    echo "  Qt not found at \"$QTDIR\" or Qt headers not found"
     931    echo "  Check the file $LOG for detailed error information."
    917932    fail
    918933    return 1
     
    959974  $CC -O -Wall -o .tmp_out .tmp_src.c -nostdinc -I$LINUX/include >> $LOG 2>&1
    960975  if [ $? -ne 0 ]; then
    961     echo -e "\n  Linux kernel headers not found at $LINUX"
    962     echo      "  Check the file $LOG for detailed error information."
     976    echo
     977    echo "  Linux kernel headers not found at $LINUX"
     978    echo "  Check the file $LOG for detailed error information."
    963979    fail
    964980  else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette