Ignore:
Timestamp:
Jan 23, 2013 6:18:18 AM (12 years ago)
Author:
ming
Message:

Re #1608: Add support for OpenCORE AMR-WB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r4271 r4331  
    627627silk_h_present 
    628628ac_no_silk 
     629opencore_amrwb_dec_present 
     630opencore_amrwb_dec_h_present 
     631opencore_amrwb_enc_present 
     632opencore_amrwb_enc_h_present 
    629633opencore_amrnb_present 
    630634opencore_amrnb_h_present 
     635ac_no_opencore_amrwb 
    631636ac_no_opencore_amrnb 
    632637libcrypto_present 
     
    782787enable_ssl 
    783788with_opencore_amrnb 
    784 enable_opencore_amrnb 
     789with_opencore_amr 
     790with_opencore_amrwbenc 
     791enable_opencore_amr 
    785792with_silk 
    786793enable_silk 
     
    14411448  --disable-ssl           Exclude SSL support the build (default: autodetect) 
    14421449 
    1443   --disable-opencore-amrnb 
    1444                           Exclude OpenCORE AMR-NB support from the build 
     1450  --disable-opencore-amr  Exclude OpenCORE AMR support from the build 
    14451451                          (default: autodetect) 
    14461452 
     
    14751481  --with-ssl=DIR          Specify alternate libssl prefix 
    14761482  --with-opencore-amrnb=DIR 
    1477                           Specify alternate libopencore-amrnb prefix 
     1483                          This option is obsolete and replaced by 
     1484                          --with-opencore-amr=DIR 
     1485  --with-opencore-amr=DIR Specify alternate libopencore-amr prefix 
     1486  --with-opencore-amrwbenc=DIR 
     1487                          Specify alternate libvo-amrwbenc prefix 
    14781488  --with-silk=DIR         Specify alternate SILK prefix 
    14791489 
     
    71107120# Check whether --with-opencore-amrnb was given. 
    71117121if test "${with_opencore_amrnb+set}" = set; then : 
    7112   withval=$with_opencore_amrnb; 
    7113 else 
    7114   with_opencore_amrnb=no 
    7115  
    7116 fi 
    7117  
    7118  
    7119 if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrnb" = "xno"; then 
    7120     enable_opencore_amrnb=no 
    7121 fi 
    7122  
    7123  
    7124 # Check whether --enable-opencore_amrnb was given. 
    7125 if test "${enable_opencore_amrnb+set}" = set; then : 
    7126   enableval=$enable_opencore_amrnb; 
    7127                 if test "$enable_opencore_amrnb" = "no"; then 
     7122  withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5 
     7123fi 
     7124 
     7125 
     7126 
     7127# Check whether --with-opencore-amr was given. 
     7128if test "${with_opencore_amr+set}" = set; then : 
     7129  withval=$with_opencore_amr; 
     7130else 
     7131  with_opencore_amr=no 
     7132 
     7133fi 
     7134 
     7135 
     7136if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr" = "xno"; then 
     7137    enable_opencore_amr=no 
     7138fi 
     7139 
     7140 
     7141# Check whether --with-opencore-amrwbenc was given. 
     7142if test "${with_opencore_amrwbenc+set}" = set; then : 
     7143  withval=$with_opencore_amrwbenc; 
     7144else 
     7145  with_opencore_amrwbenc=no 
     7146 
     7147fi 
     7148 
     7149 
     7150if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrwbenc" = "xno"; then 
     7151    enable_opencore_amrwbenc=no 
     7152fi 
     7153 
     7154 
     7155 
     7156 
     7157# Check whether --enable-opencore_amr was given. 
     7158if test "${enable_opencore_amr+set}" = set; then : 
     7159  enableval=$enable_opencore_amr; 
     7160                if test "$enable_opencore_amr" = "no"; then 
    71287161                 ac_no_opencore_amrnb=1 
     7162                 ac_no_opencore_amrwb=1 
    71297163                 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h 
    71307164 
    7131                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5 
    7132 $as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; } 
     7165                 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h 
     7166 
     7167                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR support is disabled... yes" >&5 
     7168$as_echo "Checking if OpenCORE AMR support is disabled... yes" >&6; } 
    71337169                fi 
    71347170 
    71357171else 
    71367172 
    7137                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5 
    7138 $as_echo "checking for OpenCORE AMR-NB installations.." >&6; } 
    7139                 if test "x$with_opencore_amrnb" != "xno" -a "x$with_opencore_amrnb" != "x"; then 
    7140                     CFLAGS="$CFLAGS -I$with_opencore_amrnb/include" 
    7141                     LDFLAGS="$LDFLAGS -L$with_opencore_amrnb/lib" 
    7142                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&5 
    7143 $as_echo "Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&6; } 
     7173                { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR installations.." >&5 
     7174$as_echo "checking for OpenCORE AMR installations.." >&6; } 
     7175                if test "x$with_opencore_amr" != "xno" -a "x$with_opencore_amr" != "x"; then 
     7176                    CFLAGS="$CFLAGS -I$with_opencore_amr/include" 
     7177                    LDFLAGS="$LDFLAGS -L$with_opencore_amr/lib" 
     7178                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR prefix... $with_opencore_amr" >&5 
     7179$as_echo "Using OpenCORE AMR prefix... $with_opencore_amr" >&6; } 
     7180                fi 
     7181                if test "x$with_opencore_amrwbenc" != "xno" -a "x$with_opencore_amrwbenc" != "x"; then 
     7182                    CFLAGS="$CFLAGS -I$with_opencore_amrwbenc/include" 
     7183                    LDFLAGS="$LDFLAGS -L$with_opencore_amrwbenc/lib" 
     7184                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&5 
     7185$as_echo "Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&6; } 
    71447186                fi 
    71457187 
     
    72017243 
    72027244                fi 
     7245 
     7246 
     7247 
     7248 
     7249                ac_fn_c_check_header_mongrel "$LINENO" "vo-amrwbenc/enc_if.h" "ac_cv_header_vo_amrwbenc_enc_if_h" "$ac_includes_default" 
     7250if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = xyes; then : 
     7251  opencore_amrwb_enc_h_present=1 
     7252fi 
     7253 
     7254 
     7255                ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default" 
     7256if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = xyes; then : 
     7257  opencore_amrwb_dec_h_present=1 
     7258fi 
     7259 
     7260 
     7261                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D_IF_init in -lopencore-amrwb" >&5 
     7262$as_echo_n "checking for D_IF_init in -lopencore-amrwb... " >&6; } 
     7263if ${ac_cv_lib_opencore_amrwb_D_IF_init+:} false; then : 
     7264  $as_echo_n "(cached) " >&6 
     7265else 
     7266  ac_check_lib_save_LIBS=$LIBS 
     7267LIBS="-lopencore-amrwb  $LIBS" 
     7268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     7269/* end confdefs.h.  */ 
     7270 
     7271/* Override any GCC internal prototype to avoid an error. 
     7272   Use char because int might match the return type of a GCC 
     7273   builtin and then its argument prototype would still apply.  */ 
     7274#ifdef __cplusplus 
     7275extern "C" 
     7276#endif 
     7277char D_IF_init (); 
     7278int 
     7279main () 
     7280{ 
     7281return D_IF_init (); 
     7282  ; 
     7283  return 0; 
     7284} 
     7285_ACEOF 
     7286if ac_fn_c_try_link "$LINENO"; then : 
     7287  ac_cv_lib_opencore_amrwb_D_IF_init=yes 
     7288else 
     7289  ac_cv_lib_opencore_amrwb_D_IF_init=no 
     7290fi 
     7291rm -f core conftest.err conftest.$ac_objext \ 
     7292    conftest$ac_exeext conftest.$ac_ext 
     7293LIBS=$ac_check_lib_save_LIBS 
     7294fi 
     7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrwb_D_IF_init" >&5 
     7296$as_echo "$ac_cv_lib_opencore_amrwb_D_IF_init" >&6; } 
     7297if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = xyes; then : 
     7298  opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb" 
     7299fi 
     7300 
     7301                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for E_IF_init in -lvo-amrwbenc" >&5 
     7302$as_echo_n "checking for E_IF_init in -lvo-amrwbenc... " >&6; } 
     7303if ${ac_cv_lib_vo_amrwbenc_E_IF_init+:} false; then : 
     7304  $as_echo_n "(cached) " >&6 
     7305else 
     7306  ac_check_lib_save_LIBS=$LIBS 
     7307LIBS="-lvo-amrwbenc  $LIBS" 
     7308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     7309/* end confdefs.h.  */ 
     7310 
     7311/* Override any GCC internal prototype to avoid an error. 
     7312   Use char because int might match the return type of a GCC 
     7313   builtin and then its argument prototype would still apply.  */ 
     7314#ifdef __cplusplus 
     7315extern "C" 
     7316#endif 
     7317char E_IF_init (); 
     7318int 
     7319main () 
     7320{ 
     7321return E_IF_init (); 
     7322  ; 
     7323  return 0; 
     7324} 
     7325_ACEOF 
     7326if ac_fn_c_try_link "$LINENO"; then : 
     7327  ac_cv_lib_vo_amrwbenc_E_IF_init=yes 
     7328else 
     7329  ac_cv_lib_vo_amrwbenc_E_IF_init=no 
     7330fi 
     7331rm -f core conftest.err conftest.$ac_objext \ 
     7332    conftest$ac_exeext conftest.$ac_ext 
     7333LIBS=$ac_check_lib_save_LIBS 
     7334fi 
     7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vo_amrwbenc_E_IF_init" >&5 
     7336$as_echo "$ac_cv_lib_vo_amrwbenc_E_IF_init" >&6; } 
     7337if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = xyes; then : 
     7338  opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc" 
     7339fi 
     7340 
     7341                if test "x$opencore_amrwb_enc_h_present" = "x1" -a "x$opencore_amrwb_dec_h_present" = "x1" -a "x$opencore_amrwb_enc_present" = "x1" -a "x$opencore_amrwb_dec_present" = "x1"; then 
     7342                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-WB library found, AMR-WB support enabled" >&5 
     7343$as_echo "OpenCORE AMR-WB library found, AMR-WB support enabled" >&6; } 
     7344                        $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 1" >>confdefs.h 
     7345 
     7346                else 
     7347                        ac_no_opencore_amrwb=1 
     7348                        $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h 
     7349 
     7350                fi 
     7351 
    72037352 
    72047353fi 
Note: See TracChangeset for help on using the changeset viewer.