Changeset 6018
- Timestamp:
- May 31, 2019 5:03:21 AM (5 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r5959 r6018 7956 7956 SAVED_LIBS="$LIBS" 7957 7957 LIBS="-framework Security" 7958 7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7959 7959 /* end confdefs.h. */ 7960 7960 #include <Security/SecureTransport.h> 7961 7961 int 7962 7962 main () 7963 7963 { 7964 7964 if (__builtin_available(macOS 10.3, iOS 11.3, *)) { 7965 SSLContextRef ssl_ctx; 7966 SSLReHandshake(ssl_ctx); 7967 } 7965 7968 ; 7966 7969 return 0; 7967 7970 } 7968 7971 _ACEOF 7969 if ac_fn_c_try_ link"$LINENO"; then :7972 if ac_fn_c_try_compile "$LINENO"; then : 7970 7973 ac_ssl_backend=darwin 7971 7974 fi 7972 rm -f core conftest.err conftest.$ac_objext \ 7973 conftest$ac_exeext conftest.$ac_ext 7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7974 7976 LIBS="$SAVED_LIBS" 7975 7977 if test "x$ac_ssl_backend" = "xdarwin"; then -
pjproject/trunk/aconfigure.ac
r5959 r6018 1579 1579 SAVED_LIBS="$LIBS" 1580 1580 LIBS="-framework Security" 1581 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])], 1582 [ac_ssl_backend=darwin],) 1581 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Security/SecureTransport.h>]], 1582 [if (__builtin_available(macOS 10.12, iOS 10.0, *)) { 1583 SSLContextRef ssl_ctx; 1584 SSLReHandshake(ssl_ctx); 1585 }])], 1586 [ac_ssl_backend=darwin],) 1583 1587 LIBS="$SAVED_LIBS" 1584 1588 if test "x$ac_ssl_backend" = "xdarwin"; then … … 1586 1590 AC_DEFINE(PJ_SSL_SOCK_IMP, PJ_SSL_SOCK_IMP_DARWIN) 1587 1591 LIBS="$LIBS -framework Security" 1588 AC_MSG_RESULT([Checking if Security framework forDarwin SSL is available... yes])1592 AC_MSG_RESULT([Checking if Darwin SSL is available... yes]) 1589 1593 else 1590 AC_MSG_RESULT([Checking if Security framework forDarwin SSL is available... no])1594 AC_MSG_RESULT([Checking if Darwin SSL is available... no]) 1591 1595 fi 1592 1596 ;;
Note: See TracChangeset
for help on using the changeset viewer.