VirtualBox

Changeset 22752 in vbox for trunk/configure


Ignore:
Timestamp:
Sep 3, 2009 2:05:43 PM (15 years ago)
Author:
vboxsync
Message:

configure-OSX: make it possible to turn some options off; add Cocoa define for the amd64 target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r22743 r22752  
    12381238}
    12391239
     1240#
     1241# Check for OpenGL
     1242#
     1243check_opengl()
     1244{
     1245  # On darwin this is a on/off decision only
     1246  if [ "$OS" = "darwin" ]; then
     1247    test_header "OpenGL support"
     1248    echo "enabled"
     1249    cnf_append "VBOX_WITH_CROGL"     "1"
     1250  else
     1251    check_xmu
     1252    check_mesa
     1253  fi
     1254}
     1255
    12401256
    12411257#
     
    12751291  fi
    12761292}
    1277 
    12781293
    12791294#
     
    17161731{
    17171732  test_header "python support"
     1733
     1734  # On darwin this is a on/off decision only
     1735  if [ "$OS" = "darwin" ]; then
     1736    echo "enabled"
     1737    cnf_append "VBOX_WITH_PYTHON"     "1"
     1738    return
     1739  fi
     1740
    17181741  cat > $ODIR.tmp_src.cc << EOF
    17191742#include <cstdio>
     
    18781901    10\.*)
    18791902      darwin_ver="10.6"
     1903      [ "$TARGET_MACHINE" = "amd64" ] && cnf_append "VBOX_WITH_COCOA_QT" "1"
    18801904      ;;
    18811905    9\.*)
     
    19421966  --build-libxslt          build libxslt from sources
    19431967  --build-libcurl          build libcurl from sources (PUEL only)
    1944   --setup-wine             setup a Wine directory and register the hhc hack
     1968EOF
     1969[ "$OS"   != "darwin" ] && echo "  --setup-wine             setup a Wine directory and register the hhc hack"
     1970cat << EOF
    19451971
    19461972Paths:
     
    19892015  WITH_DBUS=0
    19902016  WITH_KMODS=0
    1991   WITH_OPENGL=0
    19922017  BUILD_LIBXSLT=1
    19932018  BUILD_LIBXML2=1
     
    21312156      ;;
    21322157    --setup-wine)
    2133       SETUP_WINE=1
     2158      [ "$OS" != "darwin" ] && SETUP_WINE=1
    21342159      ;;
    21352160    *)
     
    22202245fi
    22212246
    2222 if [ $WITH_OPENGL -eq 0 ]; then
    2223   cnf_append "VBOX_WITH_CROGL" ""
    2224 fi
    2225 
    22262247# emit disable directives corresponding to any --disable-xxx options.
     2248[ $WITH_OPENGL -eq 0 ]    && cnf_append "VBOX_WITH_CROGL" ""
    22272249[ $WITH_XPCOM -eq 0 ]     && cnf_append "VBOX_WITH_MAIN" ""
    22282250[ $WITH_QT4 -eq 0   ]     && cnf_append "VBOX_WITH_QTGUI" ""
     
    22582280# TODO check for libxdamange-dev (X11/extensions/Xdamage.h, additions only)
    22592281[ $WITH_X11    -eq 1 ] && check_xcursor
    2260 [ $WITH_OPENGL -eq 1 ] && check_xmu
    2261 [ $WITH_OPENGL -eq 1 ] && check_mesa
     2282[ $WITH_OPENGL -eq 1 ] && check_opengl
    22622283[ $WITH_QT4    -eq 1 ] && check_qt4
    22632284[ $WITH_PYTHON -eq 1 ] && check_python
     
    23062327if [ "$OS" = "darwin" ]; then
    23072328  check_darwinversion
    2308 #  check_i386elfgcc
    23092329fi
    23102330
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