VirtualBox

Changeset 6060

Show
Ignore:
Timestamp:
12/13/07 16:57:23 (1 year ago)
Author:
vboxsync
Message:

libxml2 check for the upcoming branch merge

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/configure

    r5810 r6060  
    614614 
    615615# 
     616# Check for libxml2, needed by xpcom 
     617# 
     618check_libxml2() 
     619{ 
     620  test_header libxml2 
     621 
     622  if which_wrapper pkg-config > /dev/null; then 
     623    libxml2_ver=`pkg-config libxml-2.0 --modversion 2>> $LOG` 
     624    if [ $? -ne 0 ]; then 
     625      log_failure "not found" 
     626      fail 
     627    else 
     628      log_success "found version $libxml2_ver" 
     629      cnf_append "SDK_VBOX_LIBXML2_CFLAGS" "`pkg-config libxml-2.0 --cflags`" 
     630      cnf_append "SDK_VBOX_LIBXML2_LIBS"   "`pkg-config libxml-2.0 --libs`" 
     631    fi 
     632  elif which_wrapper xml2-config; then 
     633    libxml2_ver=`xml2-config --version` 
     634    if [ $? -ne 0 ]; then 
     635      log_failure "not found" 
     636      fail 
     637    else 
     638      log_success "found version $libxml2_ver" 
     639      cnf_append "SDK_VBOX_LIBXML2_CFLAGS" "`pkg-config libxml-2.0 --cflags`" 
     640      cnf_append "SDK_VBOX_LIBXML2_LIBS"   "`pkg-config libxml-2.0 --libs`" 
     641    fi 
     642  else 
     643    log_failure "neither pkg-config nor xml2-config found" 
     644    fail 
     645  fi 
     646} 
     647 
     648# 
    616649# Check for libIDL, needed by xpcom 
    617650# 
     
    14851518[ $WITH_XPCOM  -eq 1 ] && check_xalan 
    14861519[ $WITH_XPCOM  -eq 1 ] && check_xerces 
     1520[ $WITH_XPCOM  -eq 1 ] && check_libxml2 
    14871521[ $WITH_LIBIDL -eq 1 ] && check_libidl 
    14881522[ $OSE -eq 0         ] && check_ssl 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy