Ignore:
Timestamp:
May 31, 2019 5:03:21 AM (6 years ago)
Author:
ming
Message:

Re #2185: Modified the autodetection in configure script to try to compile a sample code instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r5959 r6018  
    79567956                    SAVED_LIBS="$LIBS" 
    79577957                    LIBS="-framework Security" 
    7958                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     7958                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
    79597959/* end confdefs.h.  */ 
    7960  
     7960#include <Security/SecureTransport.h> 
    79617961int 
    79627962main () 
    79637963{ 
    7964  
     7964if (__builtin_available(macOS 10.3, iOS 11.3, *)) { 
     7965                             SSLContextRef ssl_ctx; 
     7966                             SSLReHandshake(ssl_ctx); 
     7967                         } 
    79657968  ; 
    79667969  return 0; 
    79677970} 
    79687971_ACEOF 
    7969 if ac_fn_c_try_link "$LINENO"; then : 
     7972if ac_fn_c_try_compile "$LINENO"; then : 
    79707973  ac_ssl_backend=darwin 
    79717974fi 
    7972 rm -f core conftest.err conftest.$ac_objext \ 
    7973     conftest$ac_exeext conftest.$ac_ext 
     7975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    79747976                    LIBS="$SAVED_LIBS" 
    79757977                    if test "x$ac_ssl_backend" = "xdarwin"; then 
Note: See TracChangeset for help on using the changeset viewer.