Ignore:
Timestamp:
Oct 24, 2011 9:28:13 AM (13 years ago)
Author:
ming
Message:

Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk

TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream.

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/aconfigure.ac

    r3827 r3841  
    5353if test "$LD" = ""; then LD="$CC"; fi 
    5454AC_SUBST(LD) 
    55 if test "$LDOUT" = ""; then LDOUT="-o"; fi 
     55if test "$LDOUT" = ""; then LDOUT="-o "; fi 
    5656AC_SUBST(LDOUT) 
    5757if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi 
     
    6363if test "$LIBEXT2" = ""; then LIBEXT2=""; fi 
    6464AC_SUBST(LIBEXT2) 
    65 if test "$CC_OUT" = ""; then CC_OUT="-o"; fi 
     65if test "$CC_OUT" = ""; then CC_OUT="-o "; fi 
    6666AC_SUBST(CC_OUT) 
    6767if test "$CC_INC" = ""; then CC_INC="-I"; fi 
     
    127127dnl 
    128128AC_C_BIGENDIAN 
     129 
     130if test "x$ac_cv_c_bigendian" = "xyes"; then 
     131  CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0" 
     132else 
     133  CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1" 
     134fi 
    129135 
    130136dnl 
     
    11791185              ]) 
    11801186 
     1187dnl # Include opencore-amrnb support 
     1188AC_SUBST(ac_no_opencore_amrnb) 
     1189AC_ARG_ENABLE(opencore_amrnb, 
     1190              AC_HELP_STRING([--disable-opencore-amrnb], 
     1191                             [Exclude OpenCORE AMR-NB support from the build (default: autodetect)]) 
     1192              , 
     1193              [ 
     1194                if test "$enable_opencore_amrnb" = "no"; then 
     1195                 [ac_no_opencore_amrnb=1] 
     1196                 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 
     1197                 AC_MSG_RESULT([Checking if OpenCORE AMR-NB support is disabled... yes]) 
     1198                fi 
     1199              ], 
     1200              [ 
     1201                AC_MSG_RESULT([checking for OpenCORE AMR-NB installations..]) 
     1202                AC_SUBST(opencore_amrnb_h_present) 
     1203                AC_SUBST(opencore_amrnb_present) 
     1204                AC_CHECK_HEADER(opencore-amrnb/interf_enc.h,[opencore_amrnb_h_present=1]) 
     1205                AC_CHECK_LIB(opencore-amrnb,Encoder_Interface_init,[opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"]) 
     1206                if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then 
     1207                        AC_MSG_RESULT([OpenCORE AMR-NB library found, AMR-NB support enabled]) 
     1208                        AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,1) 
     1209                else 
     1210                        [ac_no_opencore_amrnb=1] 
     1211                        AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 
     1212                fi 
     1213              ]) 
     1214 
    11811215 
    11821216dnl ########################################## 
Note: See TracChangeset for help on using the changeset viewer.