Ignore:
Timestamp:
Jan 3, 2014 3:44:05 AM (10 years ago)
Author:
nanang
Message:

Close #1720:

  • Added configure flags --with-external-srtp and --disable-resample.
  • Added macro setting PJMEDIA_LIBSRTP_AUTO_INIT_DEINIT to allow application to handle libsrtp init & deinit by itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r4656 r4701  
    651651ac_external_pa 
    652652ac_pjmedia_snd 
     653ac_pjmedia_resample 
     654ac_external_srtp 
    653655ac_external_gsm 
    654656ac_external_speex 
     
    743745with_external_speex 
    744746with_external_gsm 
     747with_external_srtp 
     748enable_resample 
    745749enable_sound 
    746750with_external_pa 
     
    14101414  --enable-epoll          Use /dev/epoll ioqueue on Linux (experimental) 
    14111415  --enable-shared         Build shared libraries 
     1416  --disable-resample      Disable resampling implementations 
    14121417  --disable-sound         Exclude sound (i.e. use null sound) 
    14131418  --disable-oss           Disable OSS audio (default: not disabled) 
     
    14241429  --disable-speex-codec   Exclude Speex codecs in the build 
    14251430  --disable-ilbc-codec    Exclude iLBC codec in the build 
    1426   --enable-libsamplerate  Link with libsamplerate when available. Note that 
    1427                           PJMEDIA_RESAMPLE_IMP must also be configured 
     1431  --enable-libsamplerate  Link with libsamplerate when available. 
    14281432  --enable-resample-dll   Build libresample as shared library 
    14291433  --disable-sdl           Disable SDL (default: not disabled) 
     
    14561460                          accessible to use (hint: use CFLAGS and LDFLAGS env 
    14571461                          var to set the include/lib paths) 
     1462  --with-external-srtp    Use external SRTP development files, not the one in 
     1463                          "third_party" directory. When this option is set, 
     1464                          make sure that SRTP is accessible to use (hint: use 
     1465                          CFLAGS and LDFLAGS env var to set the include/lib 
     1466                          paths) 
    14581467  --with-external-pa      Use external PortAudio development files, not the 
    14591468                          one in "third_party" directory. When this option is 
     
    57895798 
    57905799 
     5800ac_external_srtp=0 
     5801 
     5802 
     5803# Check whether --with-external-srtp was given. 
     5804if test "${with_external_srtp+set}" = set; then : 
     5805  withval=$with_external_srtp; 
     5806        if test "x$with_external_srtp" != "xno"; then 
     5807                # Test SRTP installation 
     5808                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external SRTP devkit is installed" >&5 
     5809$as_echo_n "checking if external SRTP devkit is installed... " >&6; } 
     5810                cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     5811/* end confdefs.h.  */ 
     5812#include <srtp/srtp.h> 
     5813 
     5814int 
     5815main () 
     5816{ 
     5817srtp_init(); 
     5818  ; 
     5819  return 0; 
     5820} 
     5821_ACEOF 
     5822if ac_fn_c_try_compile "$LINENO"; then : 
     5823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 
     5824$as_echo "yes!!" >&6; } 
     5825                                   ac_external_srtp="1" 
     5826 
     5827else 
     5828  as_fn_error $? "Unable to use SRTP. If SRTP development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 
     5829fi 
     5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     5831        fi 
     5832 
     5833 
     5834fi 
     5835 
     5836 
     5837 
     5838ac_pjmedia_resample=libresample 
     5839 
     5840# Check whether --enable-resample was given. 
     5841if test "${enable_resample+set}" = set; then : 
     5842  enableval=$enable_resample; if test "$enable_resample" = "no"; then 
     5843                ac_pjmedia_resample=none 
     5844                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if resampling is disabled...yes" >&5 
     5845$as_echo "Checking if resampling is disabled...yes" >&6; } 
     5846               fi 
     5847 
     5848fi 
     5849 
    57915850 
    57925851 
     
    62586317fi 
    62596318 
     6319              ac_pjmedia_resample=libsamplerate 
    62606320else 
    62616321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5 
     
    74557515 
    74567516                ac_fn_c_check_header_mongrel "$LINENO" "vo-amrwbenc/enc_if.h" "ac_cv_header_vo_amrwbenc_enc_if_h" "$ac_includes_default" 
    7457 if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = xyes; then : 
     7517if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = x""yes; then : 
    74587518  opencore_amrwb_enc_h_present=1 
    74597519fi 
     
    74617521 
    74627522                ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default" 
    7463 if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = xyes; then : 
     7523if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = x""yes; then : 
    74647524  opencore_amrwb_dec_h_present=1 
    74657525fi 
     
    74687528                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D_IF_init in -lopencore-amrwb" >&5 
    74697529$as_echo_n "checking for D_IF_init in -lopencore-amrwb... " >&6; } 
    7470 if ${ac_cv_lib_opencore_amrwb_D_IF_init+:} false; then : 
     7530if test "${ac_cv_lib_opencore_amrwb_D_IF_init+set}" = set; then : 
    74717531  $as_echo_n "(cached) " >&6 
    74727532else 
     
    75027562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrwb_D_IF_init" >&5 
    75037563$as_echo "$ac_cv_lib_opencore_amrwb_D_IF_init" >&6; } 
    7504 if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = xyes; then : 
     7564if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = x""yes; then : 
    75057565  opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb" 
    75067566fi 
     
    75087568                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for E_IF_init in -lvo-amrwbenc" >&5 
    75097569$as_echo_n "checking for E_IF_init in -lvo-amrwbenc... " >&6; } 
    7510 if ${ac_cv_lib_vo_amrwbenc_E_IF_init+:} false; then : 
     7570if test "${ac_cv_lib_vo_amrwbenc_E_IF_init+set}" = set; then : 
    75117571  $as_echo_n "(cached) " >&6 
    75127572else 
     
    75427602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vo_amrwbenc_E_IF_init" >&5 
    75437603$as_echo "$ac_cv_lib_vo_amrwbenc_E_IF_init" >&6; } 
    7544 if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = xyes; then : 
     7604if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = x""yes; then : 
    75457605  opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc" 
    75467606fi 
     
    76017661 
    76027662                ac_fn_c_check_header_mongrel "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default" 
    7603 if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = xyes; then : 
     7663if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = x""yes; then : 
    76047664  silk_h_present=1 
    76057665fi 
     
    76087668                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK" >&5 
    76097669$as_echo_n "checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... " >&6; } 
    7610 if ${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+:} false; then : 
     7670if test "${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+set}" = set; then : 
    76117671  $as_echo_n "(cached) " >&6 
    76127672else 
     
    76427702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&5 
    76437703$as_echo "$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&6; } 
    7644 if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = xyes; then : 
     7704if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = x""yes; then : 
    76457705  silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK" 
    76467706fi 
Note: See TracChangeset for help on using the changeset viewer.