configure: Fix compilation with new libortp
Commit 0c8d9ddaea8c1afdc0e9b8c37a31c9d158e57efd in ortp broke old API:
function ortp_set_log_level_mask requires one new parameter 'domain'.
This commit fixes compilation in my Archlinux box using ortp 1.0.1.
Change-Id: I46e565f1873c7baf3c3b0aafe73951d20ce083b4
diff --git a/configure.ac b/configure.ac
index 99d83f6..43266be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,16 @@
CPPFLAGS+=" -fsanitize=address -fsanitize=undefined"
fi
+AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[#include <ortp/ortp.h>]],
+ [[ortp_set_log_level_mask(NULL, 0xffff);]]
+ )],
+ [AC_DEFINE([HAVE_ORTP_LOG_DOMAIN], [1],
+ [ortp_set_log_level_mask requires domain parameter])],
+ [AC_DEFINE([HAVE_ORTP_LOG_DOMAIN], [0],
+ [ortp_set_log_level_mask has no domain parameter])])
+
AC_OUTPUT(
libosmoabis.pc
libosmotrau.pc