VirtualBox

Changeset 20209 in vbox for trunk/configure


Ignore:
Timestamp:
Jun 3, 2009 7:48:35 AM (16 years ago)
Author:
vboxsync
Message:

configure: freebsd fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r20030 r20209  
    4444}
    4545
     46OS=`uname -s | sed -e 's/GNU\/Linux/Linux/g' | tr [:upper:] [:lower:]`
     47case "$OS" in
     48  linux)
     49    ;;
     50  darwin)
     51    ;;
     52  freebsd)
     53    ;;
     54  sunos)
     55    OS='solaris'
     56    ;;
     57  *)
     58    echo "Cannot determine OS!"
     59    exit 1
     60    ;;
     61esac
    4662
    4763#
     
    7086WITH_OPENGL=1
    7187WITH_HARDENING=1
     88BUILD_LIBXML2=
     89BUILD_LIBXSLT=
     90BUILD_LIBCURL=
    7291CC="gcc"
    7392CC32=""
     
    83102GENISOIMAGE="genisoimage"
    84103MKISOFS="mkisofs"
    85 BUILD_LIBXML2=
    86 BUILD_LIBXSLT=
    87 BUILD_LIBCURL=
    88104LIBCRYPTO="-lcrypto"
    89105LIBPTHREAD="-lpthread"
     
    91107GSOAP=""
    92108GSOAP_IMPORT=""
     109INCX11="/usr/local/include"
    93110LIBX11="-L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11"
    94 INCX11="/usr/local/include"
    95111LIBXCURSOR="-lXcursor"
    96112LIBXMU="-lXmu"
     
    100116INCPNG=""
    101117LIBPNG="-lpng"
    102 INCCURL=""
    103 LIBCURL="-lcurl"
     118if [ "$OS" = "freebsd" ]; then
     119  INCCURL="-I/usr/local/include"
     120  LIBCURL="-L/usr/local/lib -lcurl"
     121else
     122  INCCURL=""
     123  LIBCURL="-lcurl"
     124fi
    104125PKGCONFIG="`which_wrapper pkg-config`"
    105126PYTHONDIR="/usr /usr/local"
     
    128149
    129150# darwin /bin/sh has a builtin echo that doesn't grok -n. gotta love it.
    130 if [ "`uname`" = "Darwin" ]; then
     151if [ "$OS" = "darwin" ]; then
    131152  ECHO_N="/bin/echo -n"
    132153else
     
    290311{
    291312  test_header environment
    292   OS=`uname -s | sed -e 's/GNU\/Linux/Linux/g' | tr [:upper:] [:lower:]`
    293   case "$OS" in
    294     linux)
    295       ;;
    296     darwin)
    297       ;;
    298     freebsd)
    299       ;;
    300     sunos)
    301       OS='solaris'
    302       ;;
    303     *)
    304       log_failure "Cannot determine OS"
    305       exit 1
    306       ;;
    307   esac
    308313  BUILD_CPU=`uname -m`
    309314  [ "$OS" = "solaris" ] && BUILD_CPU=`isainfo | cut -f 1 -d ' '`
     
    378383        log_failure "gcc version $cc_ver does not match g++ version $cxx_ver"
    379384        fail really
    380       elif [ $cc_maj -eq 4 -a $cc_min -eq 0 -a "OS" = "darwin" ]; then
     385      elif [ $cc_maj -eq 4 -a $cc_min -eq 0 -a "$OS" = "darwin" ]; then
    381386        log_success "found version $cc_ver"
    382387      elif [ $cc_maj -eq 4 -a $cc_min -eq 4 ]; then
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