summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2014-01-30 04:33:27 +0000
committerNanang Izzuddin <nanang@teluu.com>2014-01-30 04:33:27 +0000
commit263ef89954cff2ab1e15e5aac643c0f69c520afd (patch)
tree631c22da72aa3810e6d23dc9cc006e119437b3a6 /aconfigure.ac
parent29b2490f6c22ec98dfb743f34f0b5e56bcb76dc7 (diff)
Close #1730: Added srtp_deinit()/shutdown() detection for external SRTP in configure script.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4723 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 1a137b6e..c1a6ff8b 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -548,6 +548,15 @@ AC_ARG_WITH(external-srtp,
]
)
+dnl # For external SRTP, check availability of srtp_deinit() or srtp_shutdown()
+if test "x$ac_external_srtp" = "x1"; then
+ AC_SUBST(ac_srtp_deinit_present,0)
+ AC_SUBST(ac_srtp_shutdown_present,0)
+ AC_CHECK_LIB(srtp,srtp_deinit,[ac_srtp_deinit_present=1])
+ if test "x$ac_srtp_deinit_present" != "x1"; then
+ AC_CHECK_LIB(srtp,srtp_shutdown,[ac_srtp_shutdown_present=1])
+ fi
+fi
dnl # Resample implementation
AC_SUBST(ac_pjmedia_resample,libresample)