diff options
author | Jason Parker <jparker@digium.com> | 2013-02-27 14:11:39 -0600 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2013-03-11 15:43:43 -0500 |
commit | 9550ec7a68b8d072f99872d44def5004dbcc2562 (patch) | |
tree | b9e1c609e826756312b4db5541efdcc2ccabbbaa /aconfigure.ac | |
parent | 02db7e76db5d3adde402bbc2d4e88607ba9960ed (diff) |
Add support for using external libsrtp.
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac index 1e93de9..9662820 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -531,6 +531,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) |