Skip to content

Commit 483805f

Browse files
author
Jason Parker
committed
Import pjproject-2.1
1 parent f3ab456 commit 483805f

File tree

176 files changed

+10759
-3254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+10759
-3254
lines changed

aconfigure

Lines changed: 279 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,16 @@ LIBOBJS
623623
ac_main_obj
624624
ac_host
625625
ac_linux_poll
626+
silk_present
627+
silk_h_present
628+
ac_no_silk
629+
opencore_amrwb_dec_present
630+
opencore_amrwb_dec_h_present
631+
opencore_amrwb_enc_present
632+
opencore_amrwb_enc_h_present
626633
opencore_amrnb_present
627634
opencore_amrnb_h_present
635+
ac_no_opencore_amrwb
628636
ac_no_opencore_amrnb
629637
libcrypto_present
630638
libssl_present
@@ -778,7 +786,11 @@ with_ipp_arch
778786
with_ssl
779787
enable_ssl
780788
with_opencore_amrnb
781-
enable_opencore_amrnb
789+
with_opencore_amr
790+
with_opencore_amrwbenc
791+
enable_opencore_amr
792+
with_silk
793+
enable_silk
782794
'
783795
ac_precious_vars='build_alias
784796
host_alias
@@ -1435,10 +1447,12 @@ Optional Features:
14351447
--with-ipp-samples options
14361448
--disable-ssl Exclude SSL support the build (default: autodetect)
14371449
1438-
--disable-opencore-amrnb
1439-
Exclude OpenCORE AMR-NB support from the build
1450+
--disable-opencore-amr Exclude OpenCORE AMR support from the build
14401451
(default: autodetect)
14411452
1453+
--disable-silk Exclude SILK support from the build (default:
1454+
autodetect)
1455+
14421456
14431457
Optional Packages:
14441458
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -1466,7 +1480,12 @@ Optional Packages:
14661480
"em64t. Default is blank for IA32"
14671481
--with-ssl=DIR Specify alternate libssl prefix
14681482
--with-opencore-amrnb=DIR
1469-
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
1488+
--with-silk=DIR Specify alternate SILK prefix
14701489
14711490
Some influential environment variables:
14721491
CC C compiler command
@@ -7100,38 +7119,70 @@ fi
71007119

71017120
# Check whether --with-opencore-amrnb was given.
71027121
if test "${with_opencore_amrnb+set}" = set; then :
7103-
withval=$with_opencore_amrnb;
7122+
withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5
7123+
fi
7124+
7125+
7126+
7127+
# Check whether --with-opencore-amr was given.
7128+
if test "${with_opencore_amr+set}" = set; then :
7129+
withval=$with_opencore_amr;
71047130
else
7105-
with_opencore_amrnb=no
7131+
with_opencore_amr=no
71067132

71077133
fi
71087134

71097135

7110-
if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrnb" = "xno"; then
7111-
enable_opencore_amrnb=no
7136+
if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr" = "xno"; then
7137+
enable_opencore_amr=no
7138+
fi
7139+
7140+
7141+
# Check whether --with-opencore-amrwbenc was given.
7142+
if test "${with_opencore_amrwbenc+set}" = set; then :
7143+
withval=$with_opencore_amrwbenc;
7144+
else
7145+
with_opencore_amrwbenc=no
7146+
71127147
fi
71137148

71147149

7115-
# Check whether --enable-opencore_amrnb was given.
7116-
if test "${enable_opencore_amrnb+set}" = set; then :
7117-
enableval=$enable_opencore_amrnb;
7118-
if test "$enable_opencore_amrnb" = "no"; then
7150+
if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrwbenc" = "xno"; then
7151+
enable_opencore_amrwbenc=no
7152+
fi
7153+
7154+
7155+
7156+
7157+
# Check whether --enable-opencore_amr was given.
7158+
if test "${enable_opencore_amr+set}" = set; then :
7159+
enableval=$enable_opencore_amr;
7160+
if test "$enable_opencore_amr" = "no"; then
71197161
ac_no_opencore_amrnb=1
7162+
ac_no_opencore_amrwb=1
71207163
$as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
71217164

7122-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
7123-
$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; }
71247169
fi
71257170

71267171
else
71277172

7128-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5
7129-
$as_echo "checking for OpenCORE AMR-NB installations.." >&6; }
7130-
if test "x$with_opencore_amrnb" != "xno" -a "x$with_opencore_amrnb" != "x"; then
7131-
CFLAGS="$CFLAGS -I$with_opencore_amrnb/include"
7132-
LDFLAGS="$LDFLAGS -L$with_opencore_amrnb/lib"
7133-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&5
7134-
$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; }
71357186
fi
71367187

71377188

@@ -7192,9 +7243,216 @@ $as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
71927243

71937244
fi
71947245

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"
7250+
if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = xyes; then :
7251+
opencore_amrwb_enc_h_present=1
71957252
fi
71967253

71977254

7255+
ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default"
7256+
if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = xyes; then :
7257+
opencore_amrwb_dec_h_present=1
7258+
fi
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; }
7263+
if ${ac_cv_lib_opencore_amrwb_D_IF_init+:} false; then :
7264+
$as_echo_n "(cached) " >&6
7265+
else
7266+
ac_check_lib_save_LIBS=$LIBS
7267+
LIBS="-lopencore-amrwb $LIBS"
7268+
cat 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
7275+
extern "C"
7276+
#endif
7277+
char D_IF_init ();
7278+
int
7279+
main ()
7280+
{
7281+
return D_IF_init ();
7282+
;
7283+
return 0;
7284+
}
7285+
_ACEOF
7286+
if ac_fn_c_try_link "$LINENO"; then :
7287+
ac_cv_lib_opencore_amrwb_D_IF_init=yes
7288+
else
7289+
ac_cv_lib_opencore_amrwb_D_IF_init=no
7290+
fi
7291+
rm -f core conftest.err conftest.$ac_objext \
7292+
conftest$ac_exeext conftest.$ac_ext
7293+
LIBS=$ac_check_lib_save_LIBS
7294+
fi
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; }
7297+
if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = xyes; then :
7298+
opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb"
7299+
fi
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; }
7303+
if ${ac_cv_lib_vo_amrwbenc_E_IF_init+:} false; then :
7304+
$as_echo_n "(cached) " >&6
7305+
else
7306+
ac_check_lib_save_LIBS=$LIBS
7307+
LIBS="-lvo-amrwbenc $LIBS"
7308+
cat 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
7315+
extern "C"
7316+
#endif
7317+
char E_IF_init ();
7318+
int
7319+
main ()
7320+
{
7321+
return E_IF_init ();
7322+
;
7323+
return 0;
7324+
}
7325+
_ACEOF
7326+
if ac_fn_c_try_link "$LINENO"; then :
7327+
ac_cv_lib_vo_amrwbenc_E_IF_init=yes
7328+
else
7329+
ac_cv_lib_vo_amrwbenc_E_IF_init=no
7330+
fi
7331+
rm -f core conftest.err conftest.$ac_objext \
7332+
conftest$ac_exeext conftest.$ac_ext
7333+
LIBS=$ac_check_lib_save_LIBS
7334+
fi
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; }
7337+
if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = xyes; then :
7338+
opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc"
7339+
fi
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+
7352+
7353+
fi
7354+
7355+
7356+
7357+
# Check whether --with-silk was given.
7358+
if test "${with_silk+set}" = set; then :
7359+
withval=$with_silk;
7360+
else
7361+
with_silk=no
7362+
7363+
fi
7364+
7365+
7366+
if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then
7367+
enable_silk=no
7368+
fi
7369+
7370+
7371+
# Check whether --enable-silk was given.
7372+
if test "${enable_silk+set}" = set; then :
7373+
enableval=$enable_silk;
7374+
if test "$enable_silk" = "no"; then
7375+
ac_no_silk=1
7376+
$as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
7377+
7378+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SILK support is disabled... yes" >&5
7379+
$as_echo "Checking if SILK support is disabled... yes" >&6; }
7380+
fi
7381+
7382+
else
7383+
7384+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for SILK installations.." >&5
7385+
$as_echo "checking for SILK installations.." >&6; }
7386+
if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then
7387+
CFLAGS="$CFLAGS -I$with_silk/interface"
7388+
CPPFLAGS="$CPPFLAGS -I$with_silk/interface"
7389+
LDFLAGS="$LDFLAGS -L$with_silk"
7390+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SILK prefix... $with_silk" >&5
7391+
$as_echo "Using SILK prefix... $with_silk" >&6; }
7392+
fi
7393+
7394+
7395+
ac_fn_c_check_header_mongrel "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default"
7396+
if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = xyes; then :
7397+
silk_h_present=1
7398+
fi
7399+
7400+
7401+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK" >&5
7402+
$as_echo_n "checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... " >&6; }
7403+
if ${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+:} false; then :
7404+
$as_echo_n "(cached) " >&6
7405+
else
7406+
ac_check_lib_save_LIBS=$LIBS
7407+
LIBS="-lSKP_SILK_SDK $LIBS"
7408+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409+
/* end confdefs.h. */
7410+
7411+
/* Override any GCC internal prototype to avoid an error.
7412+
Use char because int might match the return type of a GCC
7413+
builtin and then its argument prototype would still apply. */
7414+
#ifdef __cplusplus
7415+
extern "C"
7416+
#endif
7417+
char SKP_Silk_SDK_get_version ();
7418+
int
7419+
main ()
7420+
{
7421+
return SKP_Silk_SDK_get_version ();
7422+
;
7423+
return 0;
7424+
}
7425+
_ACEOF
7426+
if ac_fn_c_try_link "$LINENO"; then :
7427+
ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=yes
7428+
else
7429+
ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=no
7430+
fi
7431+
rm -f core conftest.err conftest.$ac_objext \
7432+
conftest$ac_exeext conftest.$ac_ext
7433+
LIBS=$ac_check_lib_save_LIBS
7434+
fi
7435+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&5
7436+
$as_echo "$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&6; }
7437+
if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = xyes; then :
7438+
silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK"
7439+
fi
7440+
7441+
if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then
7442+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SILK library found, SILK support enabled" >&5
7443+
$as_echo "SILK library found, SILK support enabled" >&6; }
7444+
$as_echo "#define PJMEDIA_HAS_SILK_CODEC 1" >>confdefs.h
7445+
7446+
else
7447+
ac_no_silk=1
7448+
$as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
7449+
7450+
fi
7451+
7452+
fi
7453+
7454+
7455+
71987456

71997457

72007458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5

0 commit comments

Comments
 (0)