VirtualBox

Changeset 19356 in vbox for trunk/configure


Ignore:
Timestamp:
May 5, 2009 9:43:35 AM (16 years ago)
Author:
vboxsync
Message:

more for integration of libcurl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r19129 r19356  
    9999INCPNG=""
    100100LIBPNG="-lpng"
     101INCCURL=""
     102LIBCURL="-lcurl"
    101103PKGCONFIG="`which_wrapper pkg-config`"
    102104PYTHONDIR="/usr /usr/local"
     
    920922      cnf_append "SDK_VBOX_LIBPNG_LIBS" "`strip_l "$LIBPNG"`"
    921923      cnf_append "SDK_VBOX_LIBPNG_INCS" "$INCPNG"
     924    fi
     925  fi
     926}
     927
     928#
     929# Check for libcurl, needed by S3
     930#
     931check_curl()
     932{
     933  test_header libcurl
     934  cat > $ODIR.tmp_src.cc << EOF
     935#include <cstdio>
     936#include <curl/curl.h>
     937extern "C" int main(void)
     938{
     939  printf("found version %s", LIBCURL_VERSION);
     940#if LIBCURL_VERSION_MAJOR >= 7 && LIBCURL_VERSION_MINOR >= 19
     941  printf(", OK.\n");
     942  return 0;
     943#else
     944  printf(", expected version 7.19.0 or higher\n");
     945  return 1;
     946#endif
     947}
     948EOF
     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"
    922956    fi
    923957  fi
     
    21332167[ "$OS" != "darwin"  ] && check_z
    21342168[ "$OS" != "darwin" -a "$OS" != "freebsd" ] && check_png
     2169[ "$OS" != "darwin" -a $OSE -eq 0 ] && check_curl
    21352170[ $OSE -eq 0 -a "$OS" = "linux" ] && check_pam
    21362171[ $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