summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2013-03-11 15:51:17 -0500
committerJason Parker <jparker@digium.com>2013-03-11 15:51:17 -0500
commitaf93a26aa321d3620925e5df68574226ba6cec3c (patch)
treec73301bfef50ae9ba250285bbcc7879f5c837e04 /aconfigure.ac
parent09114052f74fe74bbf652189cedefe41b7141b86 (diff)
parent9550ec7a68b8d072f99872d44def5004dbcc2562 (diff)
Merge branch 'patch/external-srtp' of github.com:asterisk/pjproject
Conflicts: build.mak.in
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 8d184a2..f9152d3 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -525,6 +525,26 @@ AC_ARG_WITH(external-gsm,
)
+dnl # Use external SRTP installation
+AC_SUBST(ac_external_srtp,0)
+AC_ARG_WITH(external-srtp,
+ AC_HELP_STRING([--with-external-srtp],
+ [Use external SRTP development files, not the one in "third_party" directory. When this option is set, make sure that SRTP is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]),
+ [
+ if test "x$with_external_srtp" != "xno"; then
+ # Test SRTP installation
+ AC_MSG_CHECKING([if external SRTP devkit is installed])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <srtp/srtp.h>
+ ]],
+ [srtp_init();])],
+ [AC_MSG_RESULT(yes!!)
+ ac_external_srtp="1"
+ ],
+ [AC_MSG_ERROR([Unable to use SRTP. If SRTP development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths])])
+ fi
+ ]
+ )
+
dnl # Sound device backend selection
AC_SUBST(ac_pjmedia_snd)