VirtualBox

Changeset 2549 in vbox


Ignore:
Timestamp:
May 9, 2007 8:54:59 AM (18 years ago)
Author:
vboxsync
Message:

configure: we are not using precompiled objects anymore; added --build-xalan to force building xalan & xerces from shipped sources; use this new option to fix the rhel4 build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r2374 r2549  
    253253        fail really
    254254      elif (($cc_maj>3)); then
    255         if [ "$MACHINE" = "x86" ]; then
    256           log_success "found version $cc_ver, using precompiled objects for recompiler"
    257           cnf_append "VBOX_USING_GCC4" "1"
    258         else
    259           log_success "found version $cc_ver"
    260         fi
     255        log_success "found version $cc_ver"
    261256      elif (($cc_maj<3 || $cc_min<2)); then
    262257        log_failure "gcc version $cc_ver found, expected at least gcc version 3.2"
     
    426421function check_xalan()
    427422{
    428   test_header xalan
    429   echo '
     423  if [ -n "$LIBXALAN" ]; then
     424    test_header xalan
     425    echo '
    430426#include <cstdio>
    431427#include <xalanc/Include/XalanVersion.hpp>
     
    443439}
    444440' > .tmp_src.cc
    445   if test_compile "$LIBXALAN ${INCXALAN:+-I$INCXALAN}" xalan xalanc; then
    446     if test_execute; then
    447       cnf_append "SDK_VBOX_XALAN_LIBS" `echo $LIBXALAN|sed 's+-l++'`
    448       cnf_append "SDK_VBOX_XALAN_INCS" "$INCXALAN"
    449     fi
     441    if test_compile "$LIBXALAN ${INCXALAN:+-I$INCXALAN}" xalan xalanc; then
     442      if test_execute; then
     443        cnf_append "SDK_VBOX_XALAN_LIBS" `echo $LIBXALAN|sed 's+-l++'`
     444        cnf_append "SDK_VBOX_XALAN_INCS" "$INCXALAN"
     445      fi
     446    fi
     447  else
     448    echo "Building xalan from shipped sources."
     449    echo -e "Building xalan from shipped sources.\n\n" >> $LOG
    450450  fi
    451451}
     
    456456function check_xerces()
    457457{
    458   test_header xerces
    459   echo '
     458  if [ -n "$LIBXERCES" ]; then
     459    test_header xerces
     460    echo '
    460461#include <cstdio>
    461462#include <xercesc/util/XercesVersion.hpp>
     
    473474}
    474475' > .tmp_src.cc
    475   if test_compile "$LIBXERCES ${INCXERCES:+-I$INCXERCES}" xerces xercesc; then
    476     if test_execute; then
    477       cnf_append "SDK_VBOX_XERCES_LIBS" `echo $LIBXERCES|sed 's+-l++'`
    478       cnf_append "SDK_VBOX_XERCES_INCS" "$INCXERCES"
    479     fi
     476    if test_compile "$LIBXERCES ${INCXERCES:+-I$INCXERCES}" xerces xercesc; then
     477      if test_execute; then
     478        cnf_append "SDK_VBOX_XERCES_LIBS" `echo $LIBXERCES|sed 's+-l++'`
     479        cnf_append "SDK_VBOX_XERCES_INCS" "$INCXERCES"
     480      fi
     481    fi
     482  else
     483    echo "Building xerces from shipped sources."
     484    echo -e "Building xerces from shipped sources.\n\n" >> $LOG
    480485  fi
    481486}
     
    10011006  --disable-xpcom         disable XPCOM and related stuff
    10021007  --disable-sdl-ttf       disable SDL_ttf detection
     1008  --build-xalan           build xalan & xerces from shipped sources
    10031009
    10041010Paths:
     
    10751081    --build-debug|-d)
    10761082      BUILD_TYPE=debug
     1083      ;;
     1084    --build-xalan)
     1085      LIBXERCES=``
     1086      LIBXALAN=``
    10771087      ;;
    10781088    --ose)
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