Changeset 5957 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Mar 25, 2019 1:33:12 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r5924 r5957 1542 1542 dnl # SSL alt prefix 1543 1543 AC_ARG_WITH(ssl, 1544 AS_HELP_STRING([--with-ssl=DIR], 1545 [Specify alternate SSL library prefix. This option will try 1546 to find OpenSSL first, then if not found, GnuTLS. To skip 1547 OpenSSL finding, use --with-gnutls option instead.]), 1544 AS_HELP_STRING([--with-ssl=SSL_BACKEND/DIR], 1545 [Specify alternate SSL library prefix or SSL native-backend. 1546 You can specify "darwin" as the native iOS/MacOS backend 1547 using Security framework, or you can specify an alternate 1548 SSL library prefix directory. If a directory 1549 is specified, this option will try to find OpenSSL first, 1550 then if not found, GnuTLS. To skip OpenSSL finding, use 1551 --with-gnutls option instead.]), 1548 1552 [], 1549 1553 [with_ssl=no] … … 1578 1582 ], 1579 1583 [ 1580 if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then 1584 if test "x$with_ssl" = "xdarwin"; then 1585 SAVED_LIBS="$LIBS" 1586 LIBS="-framework Security" 1587 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])], 1588 [ac_ssl_backend=darwin],) 1589 LIBS="$SAVED_LIBS" 1590 if test "x$ac_ssl_backend" = "xdarwin"; then 1591 AC_DEFINE(PJ_HAS_SSL_SOCK, 1) 1592 AC_DEFINE(PJ_SSL_SOCK_IMP, PJ_SSL_SOCK_IMP_DARWIN) 1593 LIBS="$LIBS -framework Security" 1594 ac_ssl_backend="darwin" 1595 AC_MSG_RESULT([Checking if Security framework for Darwin SSL is available... yes]) 1596 else 1597 AC_MSG_RESULT([Checking if Security framework for Darwin SSL is available... no]) 1598 fi 1599 fi 1600 1601 if test "x$ac_ssl_backend" = "x" -a "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then 1581 1602 CFLAGS="$CFLAGS -I$with_ssl/include" 1582 1603 CPPFLAGS="$CPPFLAGS -I$with_ssl/include" … … 1585 1606 fi 1586 1607 1587 if test "x$ with_gnutls" = "xno"; then1608 if test "x$ac_ssl_backend" = "x" -a "x$with_gnutls" = "xno"; then 1588 1609 1589 1610 AC_MSG_RESULT([checking for OpenSSL installations..])
Note: See TracChangeset
for help on using the changeset viewer.