From 9226bafed9e106bc036b2e11e195ec14f362b7ec Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Fri, 12 Jan 2024 12:47:57 -0800 Subject: [PATCH] Re-gen. --- configure | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 79ed20511..4def1e8da 100755 --- a/configure +++ b/configure @@ -13533,7 +13533,39 @@ fi printf "%s\n" "$ac_cv_lib_srtp2_srtp_init" >&6; } if test "x$ac_cv_lib_srtp2_srtp_init" = xyes then : - LIBS_SRTP="-lsrtp2" + + LIBS_SRTP="-lsrtp2" + # Test program to check if the srtp_protect function accepts size_t* argument + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 'srtp_protect()' last argument type" >&5 +printf %s "checking 'srtp_protect()' last argument type... " >&6; } + original_cflags="$CFLAGS" + CFLAGS="$CFLAGS -Werror" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include +int +main (void) +{ +srtp_t ctx; void* rtp_hdr; size_t len; return srtp_protect(ctx, rtp_hdr, &len); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + srtp_protect_lastarg=size_t +else $as_nop + srtp_protect_lastarg=int +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS="$original_cflags" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $srtp_protect_lastarg" >&5 +printf "%s\n" "$srtp_protect_lastarg" >&6; } + +printf "%s\n" "#define SRTP_PROTECT_LASTARG ${srtp_protect_lastarg}" >>confdefs.h + printf "%s\n" "#define ENABLE_SRTP2 1" >>confdefs.h