VirtualBox

Changeset 19849 in vbox


Ignore:
Timestamp:
May 20, 2009 9:30:17 AM (15 years ago)
Author:
vboxsync
Message:

configure: added switch to build libcurl from sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r19452 r19849  
    8585BUILD_LIBXML2=
    8686BUILD_LIBXSLT=
     87BUILD_LIBCURL=
    8788LIBCRYPTO="-lcrypto"
    8889LIBPTHREAD="-lpthread"
     
    931932check_curl()
    932933{
    933   test_header libcurl
    934   cat > $ODIR.tmp_src.cc << EOF
     934  if [ -z "$BUILD_LIBCURL" ]; then
     935    test_header libcurl
     936    cat > $ODIR.tmp_src.cc << EOF
    935937#include <cstdio>
    936938#include <curl/curl.h>
     
    947949}
    948950EOF
    949   [ -n "$INCCURL" ] && I_INCCURL=`prefix_I "$INCCURL"`
    950 #  if test_compile "$LIBCURL $I_INCCURL" libcurl libcurl nofatal; then
    951   if test_compile "$LIBCURL $I_INCCURL" libcurl libcurl; then
    952 #    if test_execute nofatal; then
    953     if test_execute; then
    954       cnf_append "SDK_VBOX_LIBCURL_LIBS" "`strip_l "$LIBCURL"`"
    955       cnf_append "SDK_VBOX_LIBCURL_INCS" "$INCCURL"
     951    [ -n "$INCCURL" ] && I_INCCURL=`prefix_I "$INCCURL"`
     952    if test_compile "$LIBCURL $I_INCCURL" libcurl libcurl; then
     953      if test_execute; then
     954        cnf_append "SDK_VBOX_LIBCURL_LIBS" "`strip_l "$LIBCURL"`"
     955        cnf_append "SDK_VBOX_LIBCURL_INCS" "$INCCURL"
     956      fi
    956957    fi
    957958  fi
     
    18881889  --build-libxml2          build libxml2 from sources
    18891890  --build-libxslt          build libxslt from sources
     1891  --build-curl             build libcurl from sources (PUEL only)
    18901892  --setup-wine             setup a Wine directory and register the hhc hack
    18911893
     
    20112013    --build-libxslt)
    20122014      BUILD_LIBXSLT=1
     2015      ;;
     2016    --build-libcurl)
     2017      BUILD_LIBCURL=1
    20132018      ;;
    20142019    --build-headless)
     
    21482153  BUILD_LIBXSLT=1
    21492154  BUILD_LIBXML2=1
     2155  BUILD_LIBCURL=1
    21502156fi
    21512157
     
    21762182[ "$OS" != "darwin"  ] && check_z
    21772183[ "$OS" != "darwin" -a "$OS" != "freebsd" ] && check_png
    2178 [ "$OS" != "darwin" -a $OSE -eq 0 ] && check_curl
     2184[ $OSE -eq 0 ] && check_curl
    21792185[ $OSE -eq 0 -a "$OS" = "linux" ] && check_pam
    21802186[ $WITH_SDL -eq 1 ]    && check_sdl
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