-########################################################################### ortp
-have_ortp="yes"
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LD_FLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-AC_ARG_WITH(ortp_headers, [AC_HELP_STRING(--with-ortp-headers=dir,
- [look for ortp/ortp.h also in dir])])
-if test -n "$with_ortp_headers"; then
- ortp_cppflags="-I$with_ortp_headers"
- CPPFLAGS="$CPPFLAGS $ortp_cppflags"
-fi
-AC_ARG_WITH(ortp_libs, [AC_HELP_STRING(--with-ortp-libs=dir,
- [look for libortp also in dir])])
-if test -n "$with_ortp_libs"; then
- ortp_libs="-L$with_ortp_libs"
- LDFLAGS="$LDFLAGS $ortp_libs"
-fi
-AC_CHECK_HEADERS([ortp/ortp.h], [], [have_ortp="no"])
-AC_CHECK_LIB([ortp], [ortp_init], [], [have_ortp="no"])
-if test "$have_ortp" = "yes"; then
- all_errlist_objs="$all_errlist_objs ortp_recv ortp_send"
-
- recv_cmdline_objs="$recv_cmdline_objs ortp_recv.cmdline"
- recv_errlist_objs="$recv_errlist_objs ortp_recv"
-
- audiod_cmdline_objs="$audiod_cmdline_objs ortp_recv.cmdline"
- audiod_errlist_objs="$audiod_errlist_objs ortp_recv"
-
- server_errlist_objs="$server_errlist_objs ortp_send"
-
- recv_ldflags="$recv_ldflags $ortp_libs -lortp"
- server_ldflags="$server_ldflags $ortp_libs -lortp"
- audiod_ldflags="$audiod_ldflags $ortp_libs -lortp"
-
- receivers="$receivers ortp"
- senders="$senders ortp"
- AC_DEFINE(HAVE_ORTP, 1, [define to 1 to turn on ortp support])
- AC_SUBST(ortp_cppflags)
- AC_SUBST(ortp_libs)
-else
- AC_MSG_NOTICE([deactivating ortp sender/receiver])
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-