Ignore:
Timestamp:
Oct 14, 2011 4:15:15 AM (8 years ago)
Author:
bennylp
Message:

Committing re #1388: Support for OpenCORE AMR-NB codec (thank you Dan Arrhenius for the contribution!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/aconfigure

    r3599 r3816  
    597597ac_linux_poll 
    598598ac_cross_compile 
     599opencore_amrnb_present 
     600opencore_amrnb_h_present 
     601ac_no_opencore_amrnb 
    599602libcrypto_present 
    600603libssl_present 
     
    722725with_ipp_arch 
    723726enable_ssl 
     727enable_opencore_amrnb 
    724728' 
    725729      ac_precious_vars='build_alias 
     
    13741378                          --with-ipp-samples options 
    13751379  --disable-ssl           Exclude SSL support the build (default: autodetect) 
     1380 
     1381  --disable-opencore-amrnb 
     1382                          Exclude OpenCORE AMR-NB support from the build 
     1383                          (default: autodetect) 
    13761384 
    13771385 
     
    62606268 
    62616269 
     6270# Check whether --enable-opencore_amrnb was given. 
     6271if test "${enable_opencore_amrnb+set}" = set; then : 
     6272  enableval=$enable_opencore_amrnb; 
     6273                if test "$enable_opencore_amrnb" = "no"; then 
     6274                 ac_no_opencore_amrnb=1 
     6275                 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h 
     6276 
     6277                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5 
     6278$as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; } 
     6279                fi 
     6280 
     6281else 
     6282 
     6283                { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5 
     6284$as_echo "checking for OpenCORE AMR-NB installations.." >&6; } 
     6285 
     6286 
     6287                ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default" 
     6288if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = x""yes; then : 
     6289  opencore_amrnb_h_present=1 
     6290fi 
     6291 
     6292 
     6293                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5 
     6294$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; } 
     6295if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then : 
     6296  $as_echo_n "(cached) " >&6 
     6297else 
     6298  ac_check_lib_save_LIBS=$LIBS 
     6299LIBS="-lopencore-amrnb  $LIBS" 
     6300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     6301/* end confdefs.h.  */ 
     6302 
     6303/* Override any GCC internal prototype to avoid an error. 
     6304   Use char because int might match the return type of a GCC 
     6305   builtin and then its argument prototype would still apply.  */ 
     6306#ifdef __cplusplus 
     6307extern "C" 
     6308#endif 
     6309char Encoder_Interface_init (); 
     6310int 
     6311main () 
     6312{ 
     6313return Encoder_Interface_init (); 
     6314  ; 
     6315  return 0; 
     6316} 
     6317_ACEOF 
     6318if ac_fn_c_try_link "$LINENO"; then : 
     6319  ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes 
     6320else 
     6321  ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no 
     6322fi 
     6323rm -f core conftest.err conftest.$ac_objext \ 
     6324    conftest$ac_exeext conftest.$ac_ext 
     6325LIBS=$ac_check_lib_save_LIBS 
     6326fi 
     6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5 
     6328$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; } 
     6329if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = x""yes; then : 
     6330  opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb" 
     6331fi 
     6332 
     6333                if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then 
     6334                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5 
     6335$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; } 
     6336                        $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h 
     6337 
     6338                else 
     6339                        ac_no_opencore_amrnb=1 
     6340                        $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h 
     6341 
     6342                fi 
     6343 
     6344fi 
     6345 
     6346 
     6347 
    62626348 
    62636349 
Note: See TracChangeset for help on using the changeset viewer.