Changeset 5073
- Timestamp:
- Apr 22, 2015 3:40:41 AM (10 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r5034 r5073 7758 7758 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h 7759 7759 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLv2_method in -lssl" >&57761 $as_echo_n "checking for SSLv2_method in -lssl... " >&6; }7762 if ${ac_cv_lib_ssl_SSLv2_method+:} false; then :7763 $as_echo_n "(cached) " >&67764 else7765 ac_check_lib_save_LIBS=$LIBS7766 LIBS="-lssl $LIBS"7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7768 /* end confdefs.h. */7769 7770 /* Override any GCC internal prototype to avoid an error.7771 Use char because int might match the return type of a GCC7772 builtin and then its argument prototype would still apply. */7773 #ifdef __cplusplus7774 extern "C"7775 #endif7776 char SSLv2_method ();7777 int7778 main ()7779 {7780 return SSLv2_method ();7781 ;7782 return 0;7783 }7784 _ACEOF7785 if ac_fn_c_try_link "$LINENO"; then :7786 ac_cv_lib_ssl_SSLv2_method=yes7787 else7788 ac_cv_lib_ssl_SSLv2_method=no7789 fi7790 rm -f core conftest.err conftest.$ac_objext \7791 conftest$ac_exeext conftest.$ac_ext7792 LIBS=$ac_check_lib_save_LIBS7793 fi7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSLv2_method" >&57795 $as_echo "$ac_cv_lib_ssl_SSLv2_method" >&6; }7796 if test "x$ac_cv_lib_ssl_SSLv2_method" = xyes; then :7797 libssl_no_ssl2=17798 fi7799 7800 if test "x$libssl_no_ssl2" != "x1"; then7801 CFLAGS="$CFLAGS -DOPENSSL_NO_SSL2=1"7802 fi7803 7760 else 7804 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 -
pjproject/trunk/aconfigure.ac
r5034 r5073 1541 1541 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) 1542 1542 AC_DEFINE(PJ_HAS_SSL_SOCK, 1) 1543 AC_CHECK_LIB(ssl,SSLv2_method,[libssl_no_ssl2=1])1544 if test "x$libssl_no_ssl2" != "x1"; then1545 CFLAGS="$CFLAGS -DOPENSSL_NO_SSL2=1"1546 fi1547 1543 else 1548 1544 AC_MSG_RESULT([** OpenSSL libraries not found, disabling SSL support **])
Note: See TracChangeset
for help on using the changeset viewer.