VirtualBox

Changeset 23547 in vbox for trunk


Ignore:
Timestamp:
Oct 5, 2009 10:16:37 AM (15 years ago)
Author:
vboxsync
Message:

Configure: raise OpenSSL version requirements; make OpenSSL path configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r23545 r23547  
    107107GENISOIMAGE="genisoimage"
    108108MKISOFS="mkisofs"
     109INCCRYPTO=""
    109110LIBCRYPTO="-lcrypto"
    110111LIBPTHREAD="-lpthread"
     
    818819{
    819820  printf("found version %s", OPENSSL_VERSION_TEXT);
    820 #if OPENSSL_VERSION_NUMBER >= 0x0090700
     821#if OPENSSL_VERSION_NUMBER >= 0x0090800
    821822  printf(", OK.\n");
    822823  return 0;
    823824#else
    824   printf(", expected version 0.9.7 or higher\n");
     825  printf(", expected version 0.9.8 or higher\n");
    825826  return 1;
    826827#endif
    827828}
    828829EOF
    829     if test_compile $LIBCRYPTO libcrypto openssl; then
     830    if test_compile "$INCCRYPTO $LIBCRYPTO" libcrypto openssl; then
    830831      if test_execute nofatal; then
    831         cnf_append "SDK_VBOX_OPENSSL_INCS" ""
     832        cnf_append "SDK_VBOX_OPENSSL_INCS" "`strip_I "$INCCRYPTO"`"
    832833        cnf_append "SDK_VBOX_OPENSSL_LIBS" "`strip_l "$LIBCRYPTO"`"
    833834      fi
     
    20682069      QT4DIR_PKGCONFIG=0
    20692070      ;;
     2071    --with-openssl-dir=*)
     2072      OPENSSLDIR=`echo $option | cut -d'=' -f2`
     2073      INCCRYPTO="-I${OPENSSLDIR}/include"
     2074      LIBCRYPTO="${OPENSSLDIR}/lib/libcrypto.a"
     2075      ;;
    20702076    --with-gsoap-dir=*)
    20712077      GSOAP=`echo $option | cut -d'=' -f2`
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