fi
AC_SUBST(IPV6_CFLAGS)
+dnl enable timestamp support
+AC_ARG_ENABLE(rtp-timestamp,
+ [ --enable-rtp-timestamp Turn on RTP packet timestamp],
+ [case "${enableval}" in
+ yes) rtptimestamp=true;;
+ no) rtptimestamp=false;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-rtp-timestamp) ;;
+ esac],[rtptimestamp=false])
+
+AC_ARG_ENABLE(debug,
+ [ --enable-debug=[yes/no] enables the display of traces showing the execution of the library. [default=yes]],
+ [case "${enableval}" in
+ yes) debug_enabled=yes;;
+ no) debug_enabled=no;;
+ *) AC_MSG_ERROR("Bad value for --enable-debug");;
+ esac],
+ [debug_enabled=no])
+
dnl enable truespeech codec support
AC_ARG_ENABLE(truespeech,
[ --enable-truespeech Turn on TrueSpeech support (x86 only)],
if test x$ac_cv_c_bigendian = xyes ; then
ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_BIGENDIAN"
fi
+ if test x$rtptimestamp = xtrue ; then
+ ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_TIMESTAMP"
+ fi
ORTP_DIR=oRTP
changequote(<<, >>)
ORTP_VERSION=`grep -E ^[AC]+_INIT ${top_srcdir}/oRTP/configure.ac | sed -e 's:^.*_INIT(.*,\[\(.*\)\]):\1:g'`