Changeset 5414


Ignore:
Timestamp:
Aug 8, 2016 11:19:35 AM (8 years ago)
Author:
ming
Message:

Re #1943: Fixed incorrect configure script.

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r5412 r5414  
    79547954 
    79557955                        # Check if SRTP should be compiled with OpenSSL 
    7956                         # support, to enable cryptos such as AES GCM    AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1]) 
     7956                        # support, to enable cryptos such as AES GCM 
     7957                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lssl" >&5 
     7958$as_echo_n "checking for EVP_aes_128_gcm in -lssl... " >&6; } 
     7959if ${ac_cv_lib_ssl_EVP_aes_128_gcm+:} false; then : 
     7960  $as_echo_n "(cached) " >&6 
     7961else 
     7962  ac_check_lib_save_LIBS=$LIBS 
     7963LIBS="-lssl  $LIBS" 
     7964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     7965/* end confdefs.h.  */ 
     7966 
     7967/* Override any GCC internal prototype to avoid an error. 
     7968   Use char because int might match the return type of a GCC 
     7969   builtin and then its argument prototype would still apply.  */ 
     7970#ifdef __cplusplus 
     7971extern "C" 
     7972#endif 
     7973char EVP_aes_128_gcm (); 
     7974int 
     7975main () 
     7976{ 
     7977return EVP_aes_128_gcm (); 
     7978  ; 
     7979  return 0; 
     7980} 
     7981_ACEOF 
     7982if ac_fn_c_try_link "$LINENO"; then : 
     7983  ac_cv_lib_ssl_EVP_aes_128_gcm=yes 
     7984else 
     7985  ac_cv_lib_ssl_EVP_aes_128_gcm=no 
     7986fi 
     7987rm -f core conftest.err conftest.$ac_objext \ 
     7988    conftest$ac_exeext conftest.$ac_ext 
     7989LIBS=$ac_check_lib_save_LIBS 
     7990fi 
     7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_aes_128_gcm" >&5 
     7992$as_echo "$ac_cv_lib_ssl_EVP_aes_128_gcm" >&6; } 
     7993if test "x$ac_cv_lib_ssl_EVP_aes_128_gcm" = xyes; then : 
     7994  ac_ssl_has_aes_gcm=1 
     7995fi 
     7996 
    79577997                        if test "x$ac_ssl_has_aes_gcm" = "x1"; then 
    79587998                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL has AES GCM support, SRTP will use OpenSSl version" >&5 
  • pjproject/trunk/aconfigure.ac

    r5412 r5414  
    16041604                         
    16051605                        # Check if SRTP should be compiled with OpenSSL 
    1606                         # support, to enable cryptos such as AES GCM    AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1]) 
     1606                        # support, to enable cryptos such as AES GCM 
     1607                        AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1]) 
    16071608                        if test "x$ac_ssl_has_aes_gcm" = "x1"; then 
    16081609                                AC_MSG_RESULT([OpenSSL has AES GCM support, SRTP will use OpenSSl version]) 
Note: See TracChangeset for help on using the changeset viewer.