<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16619">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BuildSystem: Check for alternate openssl packages<br><br>OpenSSL is one of those packages that often have alternatives<br>with later versions. For instance, CentOS/EL 7 has an<br>openssl package at version 1.0.2 but there's an openssl11<br>package from the epel repository that has 1.1.1. This gets<br>installed to /usr/include/openssl11 and /usr/lib64/openssl11.<br>Unfortunately, the existing --with-ssl and --with-crypto<br>./configure options expect to point to a source tree and<br>don't work in this situation. Also unfortunately, the<br>checks in ./configure don't use pkg-config.<br><br>In order to make this work with the existing situation, you'd<br>have to run...<br>./configure --with-ssl=/usr/lib64/openssl11 \<br> --with-crypto=/usr/lib64/openssl11 \<br> CFLAGS=-I/usr/include/openssl11<br><br>BUT... those options don't get passed down to bundled pjproject<br>so when you run make, you have to include the CFLAGS again<br>which is a big pain.<br><br>Oh... To make matters worse, although you can specify<br>PJPROJECT_CONFIGURE_OPTS on the ./configure command line,<br>they don't get saved so if you do a make clean, which will<br>force a re-configure of bundled pjproject, those options<br>don't get used.<br><br>So...<br><br>* In configure.ac... Since pkg-config is installed by install_prereq<br> anyway, we now use it to check for the system openssl >= 1.1.0.<br> If that works, great. If not, we check for the openssl11<br> package. If that works, great. If not, we fall back to just<br> checking for any openssl. If pkg-config isn't installed for some<br> reason, or --with-ssl=<dir> or --with-crypto=<dir> were specified<br> on the ./configure command line, we fall back to the existing<br> logic that uses AST_EXT_LIB_CHECK().<br><br>* The whole OpenSSL check process has been moved up before<br> THIRD_PARTY_CONFIGURE(), which does the initial pjproject<br> bundled configure, is run. This way the results of the above<br> checks, which may result in new include or library directories,<br> is included.<br><br>* Although not strictly needed for openssl, We now save the value of<br> PJPROJECT_CONFIGURE_OPTS in the makeopts file so it can be used<br> again if a re-configure is triggered.<br><br>ASTERISK-29693<br><br>Change-Id: I341ab7603e6b156aa15a66f43675ac5029d5fbde<br>---<br>M configure<br>M configure.ac<br>M include/asterisk/autoconfig.h.in<br>M makeopts.in<br>M third-party/pjproject/Makefile<br>M third-party/pjproject/configure.m4<br>6 files changed, 889 insertions(+), 541 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/19/16619/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure b/configure</span><br><span>index 8e60bd4..808865a 100755</span><br><span>--- a/configure</span><br><span>+++ b/configure</span><br><span>@@ -708,9 +708,6 @@</span><br><span> UUID_INCLUDE</span><br><span> LIBEDIT_LIBS</span><br><span> LIBEDIT_CFLAGS</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_LIBDIR</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG</span><br><span> ALLOCA</span><br><span> PBX_ZLIB</span><br><span> ZLIB_DIR</span><br><span>@@ -748,10 +745,6 @@</span><br><span> RT_DIR</span><br><span> RT_INCLUDE</span><br><span> RT_LIB</span><br><span style="color: hsl(0, 100%, 40%);">-PBX_OPENSSL</span><br><span style="color: hsl(0, 100%, 40%);">-OPENSSL_DIR</span><br><span style="color: hsl(0, 100%, 40%);">-OPENSSL_INCLUDE</span><br><span style="color: hsl(0, 100%, 40%);">-OPENSSL_LIB</span><br><span> PBX_SRTP_GET_VERSION</span><br><span> SRTP_GET_VERSION_DIR</span><br><span> SRTP_GET_VERSION_INCLUDE</span><br><span>@@ -1122,14 +1115,6 @@</span><br><span> DAHDI_DIR</span><br><span> DAHDI_INCLUDE</span><br><span> DAHDI_LIB</span><br><span style="color: hsl(0, 100%, 40%);">-PBX_OPENSSL_BIO_METHOD</span><br><span style="color: hsl(0, 100%, 40%);">-OPENSSL_BIO_METHOD_DIR</span><br><span style="color: hsl(0, 100%, 40%);">-OPENSSL_BIO_METHOD_INCLUDE</span><br><span style="color: hsl(0, 100%, 40%);">-OPENSSL_BIO_METHOD_LIB</span><br><span style="color: hsl(0, 100%, 40%);">-PBX_CRYPTO</span><br><span style="color: hsl(0, 100%, 40%);">-CRYPTO_DIR</span><br><span style="color: hsl(0, 100%, 40%);">-CRYPTO_INCLUDE</span><br><span style="color: hsl(0, 100%, 40%);">-CRYPTO_LIB</span><br><span> PBX_CRYPT</span><br><span> CRYPT_DIR</span><br><span> CRYPT_INCLUDE</span><br><span>@@ -1177,6 +1162,20 @@</span><br><span> PBX_JANSSON</span><br><span> JANSSON_BUNDLED</span><br><span> JANSSON_CONFIGURE_OPTS</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_CFLAGS</span><br><span style="color: hsl(120, 100%, 40%);">+PBX_OPENSSL_BIO_METHOD</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_BIO_METHOD_DIR</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_BIO_METHOD_INCLUDE</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_BIO_METHOD_LIB</span><br><span style="color: hsl(120, 100%, 40%);">+PBX_OPENSSL</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_DIR</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_INCLUDE</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_LIB</span><br><span style="color: hsl(120, 100%, 40%);">+PBX_CRYPTO</span><br><span style="color: hsl(120, 100%, 40%);">+CRYPTO_DIR</span><br><span style="color: hsl(120, 100%, 40%);">+CRYPTO_INCLUDE</span><br><span style="color: hsl(120, 100%, 40%);">+CRYPTO_LIB</span><br><span> AST_C_COMPILER_FAMILY</span><br><span> AST_CLANG_BLOCKS</span><br><span> AST_CLANG_BLOCKS_LIBS</span><br><span>@@ -1199,6 +1198,9 @@</span><br><span> PBX_XMLSTARLET</span><br><span> PBX_FLEX</span><br><span> PBX_BISON</span><br><span style="color: hsl(120, 100%, 40%);">+PKG_CONFIG_LIBDIR</span><br><span style="color: hsl(120, 100%, 40%);">+PKG_CONFIG_PATH</span><br><span style="color: hsl(120, 100%, 40%);">+PKG_CONFIG</span><br><span> OPENSSL</span><br><span> SHA1SUM</span><br><span> LDCONFIG</span><br><span>@@ -1346,6 +1348,8 @@</span><br><span> enable_coverage</span><br><span> with_jansson_bundled</span><br><span> with_pjproject_bundled</span><br><span style="color: hsl(120, 100%, 40%);">+with_crypto</span><br><span style="color: hsl(120, 100%, 40%);">+with_ssl</span><br><span> with_asound</span><br><span> with_bfd</span><br><span> with_execinfo</span><br><span>@@ -1354,7 +1358,6 @@</span><br><span> with_codec2</span><br><span> with_cpg</span><br><span> with_crypt</span><br><span style="color: hsl(0, 100%, 40%);">-with_crypto</span><br><span> with_dahdi</span><br><span> with_avcodec</span><br><span> with_gsm</span><br><span>@@ -1406,7 +1409,6 @@</span><br><span> with_speexdsp</span><br><span> with_sqlite3</span><br><span> with_srtp</span><br><span style="color: hsl(0, 100%, 40%);">-with_ssl</span><br><span> with_tds</span><br><span> with_timerfd</span><br><span> with_tonezone</span><br><span>@@ -1435,12 +1437,14 @@</span><br><span> CXXFLAGS</span><br><span> CCC</span><br><span> CXXCPP</span><br><span style="color: hsl(0, 100%, 40%);">-JANSSON_CONFIGURE_OPTS</span><br><span style="color: hsl(0, 100%, 40%);">-PJPROJECT_CONFIGURE_OPTS</span><br><span style="color: hsl(0, 100%, 40%);">-LUA_VERSIONS</span><br><span> PKG_CONFIG</span><br><span> PKG_CONFIG_PATH</span><br><span> PKG_CONFIG_LIBDIR</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_CFLAGS</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+JANSSON_CONFIGURE_OPTS</span><br><span style="color: hsl(120, 100%, 40%);">+PJPROJECT_CONFIGURE_OPTS</span><br><span style="color: hsl(120, 100%, 40%);">+LUA_VERSIONS</span><br><span> LIBEDIT_CFLAGS</span><br><span> LIBEDIT_LIBS</span><br><span> JANSSON_CFLAGS</span><br><span>@@ -2110,6 +2114,8 @@</span><br><span> --with-jansson-bundled Use bundled jansson library</span><br><span> --with-pjproject-bundled</span><br><span> Use bundled pjproject libraries (default)</span><br><span style="color: hsl(120, 100%, 40%);">+ --with-crypto=PATH use OpenSSL Cryptography files in PATH</span><br><span style="color: hsl(120, 100%, 40%);">+ --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH</span><br><span> --with-asound=PATH use Advanced Linux Sound Architecture files in PATH</span><br><span> --with-bfd=PATH use Debug symbol decoding files in PATH</span><br><span> --with-execinfo=PATH use Stack Backtrace files in PATH</span><br><span>@@ -2118,7 +2124,6 @@</span><br><span> --with-codec2=PATH use Codec 2 Audio Decoder/Encoder files in PATH</span><br><span> --with-cpg=PATH use Corosync files in PATH</span><br><span> --with-crypt=PATH use password and data encryption files in PATH</span><br><span style="color: hsl(0, 100%, 40%);">- --with-crypto=PATH use OpenSSL Cryptography files in PATH</span><br><span> --with-dahdi=PATH use DAHDI files in PATH</span><br><span> --with-avcodec=PATH use Ffmpeg and avcodec files in PATH</span><br><span> --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM</span><br><span>@@ -2174,7 +2179,6 @@</span><br><span> --with-speexdsp=PATH use SpeexDSP files in PATH</span><br><span> --with-sqlite3=PATH use SQLite files in PATH</span><br><span> --with-srtp=PATH use Secure RTP files in PATH</span><br><span style="color: hsl(0, 100%, 40%);">- --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH</span><br><span> --with-tds=PATH use FreeTDS files in PATH</span><br><span> --with-timerfd=PATH use timerfd files in PATH</span><br><span> --with-tonezone=PATH use tonezone files in PATH</span><br><span>@@ -2196,17 +2200,21 @@</span><br><span> CXX C++ compiler command</span><br><span> CXXFLAGS C++ compiler flags</span><br><span> CXXCPP C++ preprocessor</span><br><span style="color: hsl(120, 100%, 40%);">+ PKG_CONFIG path to pkg-config utility</span><br><span style="color: hsl(120, 100%, 40%);">+ PKG_CONFIG_PATH</span><br><span style="color: hsl(120, 100%, 40%);">+ directories to add to pkg-config's search path</span><br><span style="color: hsl(120, 100%, 40%);">+ PKG_CONFIG_LIBDIR</span><br><span style="color: hsl(120, 100%, 40%);">+ path overriding pkg-config's built-in search path</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_CFLAGS</span><br><span style="color: hsl(120, 100%, 40%);">+ C compiler flags for OPENSSL, overriding pkg-config</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+ linker flags for OPENSSL, overriding pkg-config</span><br><span> JANSSON_CONFIGURE_OPTS</span><br><span> Additional configure options to pass to bundled jansson</span><br><span> PJPROJECT_CONFIGURE_OPTS</span><br><span> Additional configure options to pass to bundled pjproject</span><br><span> LUA_VERSIONS</span><br><span> A space separated list of target lua versions to test.</span><br><span style="color: hsl(0, 100%, 40%);">- PKG_CONFIG path to pkg-config utility</span><br><span style="color: hsl(0, 100%, 40%);">- PKG_CONFIG_PATH</span><br><span style="color: hsl(0, 100%, 40%);">- directories to add to pkg-config's search path</span><br><span style="color: hsl(0, 100%, 40%);">- PKG_CONFIG_LIBDIR</span><br><span style="color: hsl(0, 100%, 40%);">- path overriding pkg-config's built-in search path</span><br><span> LIBEDIT_CFLAGS</span><br><span> C compiler flags for LIBEDIT, overriding pkg-config</span><br><span> LIBEDIT_LIBS</span><br><span>@@ -7779,6 +7787,127 @@</span><br><span> </span><br><span> </span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -n "$ac_tool_prefix"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.</span><br><span style="color: hsl(120, 100%, 40%);">+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2</span><br><span style="color: hsl(120, 100%, 40%);">+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo_n "checking for $ac_word... " >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+if ${ac_cv_path_PKG_CONFIG+:} false; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ case $PKG_CONFIG in</span><br><span style="color: hsl(120, 100%, 40%);">+ [\\/]* | ?:[\\/]*)</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+ *)</span><br><span style="color: hsl(120, 100%, 40%);">+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR</span><br><span style="color: hsl(120, 100%, 40%);">+for as_dir in $PATH</span><br><span style="color: hsl(120, 100%, 40%);">+do</span><br><span style="color: hsl(120, 100%, 40%);">+ IFS=$as_save_IFS</span><br><span style="color: hsl(120, 100%, 40%);">+ test -z "$as_dir" && as_dir=.</span><br><span style="color: hsl(120, 100%, 40%);">+ for ac_exec_ext in '' $ac_executable_extensions; do</span><br><span style="color: hsl(120, 100%, 40%);">+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ break 2</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+done</span><br><span style="color: hsl(120, 100%, 40%);">+ done</span><br><span style="color: hsl(120, 100%, 40%);">+IFS=$as_save_IFS</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+esac</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+PKG_CONFIG=$ac_cv_path_PKG_CONFIG</span><br><span style="color: hsl(120, 100%, 40%);">+if test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$PKG_CONFIG" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "no" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+if test -z "$ac_cv_path_PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_pt_PKG_CONFIG=$PKG_CONFIG</span><br><span style="color: hsl(120, 100%, 40%);">+ # Extract the first word of "pkg-config", so it can be a program name with args.</span><br><span style="color: hsl(120, 100%, 40%);">+set dummy pkg-config; ac_word=$2</span><br><span style="color: hsl(120, 100%, 40%);">+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo_n "checking for $ac_word... " >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ case $ac_pt_PKG_CONFIG in</span><br><span style="color: hsl(120, 100%, 40%);">+ [\\/]* | ?:[\\/]*)</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+ *)</span><br><span style="color: hsl(120, 100%, 40%);">+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR</span><br><span style="color: hsl(120, 100%, 40%);">+for as_dir in $PATH</span><br><span style="color: hsl(120, 100%, 40%);">+do</span><br><span style="color: hsl(120, 100%, 40%);">+ IFS=$as_save_IFS</span><br><span style="color: hsl(120, 100%, 40%);">+ test -z "$as_dir" && as_dir=.</span><br><span style="color: hsl(120, 100%, 40%);">+ for ac_exec_ext in '' $ac_executable_extensions; do</span><br><span style="color: hsl(120, 100%, 40%);">+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ break 2</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+done</span><br><span style="color: hsl(120, 100%, 40%);">+ done</span><br><span style="color: hsl(120, 100%, 40%);">+IFS=$as_save_IFS</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+esac</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG</span><br><span style="color: hsl(120, 100%, 40%);">+if test -n "$ac_pt_PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$ac_pt_PKG_CONFIG" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "no" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x$ac_pt_PKG_CONFIG" = x; then</span><br><span style="color: hsl(120, 100%, 40%);">+ PKG_CONFIG=""</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ case $cross_compiling:$ac_tool_warned in</span><br><span style="color: hsl(120, 100%, 40%);">+yes:)</span><br><span style="color: hsl(120, 100%, 40%);">+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}</span><br><span style="color: hsl(120, 100%, 40%);">+ac_tool_warned=yes ;;</span><br><span style="color: hsl(120, 100%, 40%);">+esac</span><br><span style="color: hsl(120, 100%, 40%);">+ PKG_CONFIG=$ac_pt_PKG_CONFIG</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+if test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ _pkg_min_version=0.9.0</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "yes" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "no" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+ PKG_CONFIG=""</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison that supports parse-param" >&5</span><br><span> $as_echo_n "checking for bison that supports parse-param... " >&6; }</span><br><span> if ${ac_cv_path_BISON2+:} false; then :</span><br><span>@@ -8993,6 +9122,679 @@</span><br><span> PJPROJECT_BUNDLED=no</span><br><span> fi</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# OpenSSL stuff has to be done here because we want to pass</span><br><span style="color: hsl(120, 100%, 40%);">+# any resulting CFLAGS and LDFLAGS to the bundled pjproject</span><br><span style="color: hsl(120, 100%, 40%);">+# configure done in THIRD_PARTY_CONFIGURE()</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_DESCRIP="OpenSSL Cryptography"</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_OPTION="crypto"</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_CRYPTO=0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Check whether --with-crypto was given.</span><br><span style="color: hsl(120, 100%, 40%);">+if test "${with_crypto+set}" = set; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ withval=$with_crypto;</span><br><span style="color: hsl(120, 100%, 40%);">+ case ${withval} in</span><br><span style="color: hsl(120, 100%, 40%);">+ n|no)</span><br><span style="color: hsl(120, 100%, 40%);">+ USE_CRYPTO=no</span><br><span style="color: hsl(120, 100%, 40%);">+ # -1 is a magic value used by menuselect to know that the package</span><br><span style="color: hsl(120, 100%, 40%);">+ # was disabled, other than 'not found'</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_CRYPTO=-1</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+ y|ye|yes)</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_mandatory_list="${ac_mandatory_list} CRYPTO"</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+ *)</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_DIR="${withval}"</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_mandatory_list="${ac_mandatory_list} CRYPTO"</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+ esac</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_OPTION="ssl"</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Check whether --with-ssl was given.</span><br><span style="color: hsl(120, 100%, 40%);">+if test "${with_ssl+set}" = set; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ withval=$with_ssl;</span><br><span style="color: hsl(120, 100%, 40%);">+ case ${withval} in</span><br><span style="color: hsl(120, 100%, 40%);">+ n|no)</span><br><span style="color: hsl(120, 100%, 40%);">+ USE_OPENSSL=no</span><br><span style="color: hsl(120, 100%, 40%);">+ # -1 is a magic value used by menuselect to know that the package</span><br><span style="color: hsl(120, 100%, 40%);">+ # was disabled, other than 'not found'</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=-1</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+ y|ye|yes)</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_mandatory_list="${ac_mandatory_list} OPENSSL"</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+ *)</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_DIR="${withval}"</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_mandatory_list="${ac_mandatory_list} OPENSSL"</span><br><span style="color: hsl(120, 100%, 40%);">+ ;;</span><br><span style="color: hsl(120, 100%, 40%);">+ esac</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_BIO_METHOD_DESCRIP="OpenSSL BIO Method Support"</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_BIO_METHOD_OPTION=crypto</span><br><span style="color: hsl(120, 100%, 40%);">+OPENSSL_BIO_METHOD_DIR=${CRYPTO_DIR}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+PBX_OPENSSL_BIO_METHOD=0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# If neither --without-ssl (PBX_OPENSSL=-1) nor --without-crypto (PBX_CRYPTO=-1)</span><br><span style="color: hsl(120, 100%, 40%);">+# and there were no directories atdded to --with-ssl and --with-crypto, and</span><br><span style="color: hsl(120, 100%, 40%);">+# pkg-config is installed (which is should be by install_prereq).</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x$PKG_CONFIG" != "x" -a $PBX_OPENSSL -ge 0 -a $PBX_CRYPTO -ge 0 -a "x$OPENSSL_DIR" == "x" ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking OPENSSL with pkg-config" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$as_me: checking OPENSSL with pkg-config" >&6;}</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system openssl > 1.1.0" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$as_me: checking whether system openssl > 1.1.0" >&6;}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+pkg_failed=no</span><br><span style="color: hsl(120, 100%, 40%);">+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo_n "checking for OPENSSL... " >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test -n "$OPENSSL_CFLAGS"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"</span><br><span style="color: hsl(120, 100%, 40%);">+ elif test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -n "$PKG_CONFIG" && \</span><br><span style="color: hsl(120, 100%, 40%);">+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.0\""; } >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.0") 2>&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_status=$?</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ test $ac_status = 0; }; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.1.0" 2>/dev/null`</span><br><span style="color: hsl(120, 100%, 40%);">+ test "x$?" != "x0" && pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=untried</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+if test -n "$OPENSSL_LIBS"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"</span><br><span style="color: hsl(120, 100%, 40%);">+ elif test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -n "$PKG_CONFIG" && \</span><br><span style="color: hsl(120, 100%, 40%);">+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.0\""; } >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.0") 2>&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_status=$?</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ test $ac_status = 0; }; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.1.0" 2>/dev/null`</span><br><span style="color: hsl(120, 100%, 40%);">+ test "x$?" != "x0" && pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=untried</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test $pkg_failed = yes; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "no" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then</span><br><span style="color: hsl(120, 100%, 40%);">+ _pkg_short_errors_supported=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ _pkg_short_errors_supported=no</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $_pkg_short_errors_supported = yes; then</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ # Put the nasty error message in config.log where it belongs</span><br><span style="color: hsl(120, 100%, 40%);">+ echo "$OPENSSL_PKG_ERRORS" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+elif test $pkg_failed = untried; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "no" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "yes" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=1</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_INCLUDE=$(echo ${OPENSSL_CFLAGS} | $SED -e "s|-std=c99||g")</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_LIB="$OPENSSL_LIBS"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $PBX_OPENSSL -eq 0 ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alternate openssl11 is installed" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$as_me: checking whether alternate openssl11 is installed" >&6;}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+pkg_failed=no</span><br><span style="color: hsl(120, 100%, 40%);">+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo_n "checking for OPENSSL... " >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test -n "$OPENSSL_CFLAGS"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"</span><br><span style="color: hsl(120, 100%, 40%);">+ elif test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -n "$PKG_CONFIG" && \</span><br><span style="color: hsl(120, 100%, 40%);">+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl11\""; } >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ($PKG_CONFIG --exists --print-errors "openssl11") 2>&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_status=$?</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ test $ac_status = 0; }; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl11" 2>/dev/null`</span><br><span style="color: hsl(120, 100%, 40%);">+ test "x$?" != "x0" && pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=untried</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+if test -n "$OPENSSL_LIBS"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"</span><br><span style="color: hsl(120, 100%, 40%);">+ elif test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -n "$PKG_CONFIG" && \</span><br><span style="color: hsl(120, 100%, 40%);">+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl11\""; } >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ($PKG_CONFIG --exists --print-errors "openssl11") 2>&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_status=$?</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ test $ac_status = 0; }; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl11" 2>/dev/null`</span><br><span style="color: hsl(120, 100%, 40%);">+ test "x$?" != "x0" && pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=untried</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test $pkg_failed = yes; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "no" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then</span><br><span style="color: hsl(120, 100%, 40%);">+ _pkg_short_errors_supported=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ _pkg_short_errors_supported=no</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $_pkg_short_errors_supported = yes; then</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl11" 2>&1`</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl11" 2>&1`</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ # Put the nasty error message in config.log where it belongs</span><br><span style="color: hsl(120, 100%, 40%);">+ echo "$OPENSSL_PKG_ERRORS" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+elif test $pkg_failed = untried; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "no" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "yes" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=1</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_INCLUDE=$(echo ${OPENSSL_CFLAGS} | $SED -e "s|-std=c99||g")</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_LIB="$OPENSSL_LIBS"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $PBX_OPENSSL -eq 1 ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "#define HAVE_OPENSSL_BIO_METHOD 1" >>confdefs.h</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL_BIO_METHOD=1</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking fallback system openssl" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$as_me: checking fallback system openssl" >&6;}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+pkg_failed=no</span><br><span style="color: hsl(120, 100%, 40%);">+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo_n "checking for OPENSSL... " >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test -n "$OPENSSL_CFLAGS"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"</span><br><span style="color: hsl(120, 100%, 40%);">+ elif test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -n "$PKG_CONFIG" && \</span><br><span style="color: hsl(120, 100%, 40%);">+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ($PKG_CONFIG --exists --print-errors "openssl") 2>&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_status=$?</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ test $ac_status = 0; }; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`</span><br><span style="color: hsl(120, 100%, 40%);">+ test "x$?" != "x0" && pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=untried</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+if test -n "$OPENSSL_LIBS"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"</span><br><span style="color: hsl(120, 100%, 40%);">+ elif test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -n "$PKG_CONFIG" && \</span><br><span style="color: hsl(120, 100%, 40%);">+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ($PKG_CONFIG --exists --print-errors "openssl") 2>&5</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_status=$?</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+ test $ac_status = 0; }; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`</span><br><span style="color: hsl(120, 100%, 40%);">+ test "x$?" != "x0" && pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=yes</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ pkg_failed=untried</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test $pkg_failed = yes; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "no" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then</span><br><span style="color: hsl(120, 100%, 40%);">+ _pkg_short_errors_supported=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ _pkg_short_errors_supported=no</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $_pkg_short_errors_supported = yes; then</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ # Put the nasty error message in config.log where it belongs</span><br><span style="color: hsl(120, 100%, 40%);">+ echo "$OPENSSL_PKG_ERRORS" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+elif test $pkg_failed = untried; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "no" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "yes" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=1</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_INCLUDE=$(echo ${OPENSSL_CFLAGS} | $SED -e "s|-std=c99||g")</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_LIB="$OPENSSL_LIBS"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $PBX_OPENSSL -eq 1; then</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_CRYPTO=1</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: Checking OPENSSL without pkg-config" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$as_me: Checking OPENSSL without pkg-config" >&6;}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pbxlibdir=""</span><br><span style="color: hsl(120, 100%, 40%);">+ # if --with-CRYPTO=DIR has been specified, use it.</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${CRYPTO_DIR}" != "x"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -d ${CRYPTO_DIR}/lib; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pbxlibdir="-L${CRYPTO_DIR}/lib"</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ pbxlibdir="-L${CRYPTO_DIR}"</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_ext_lib_check_save_CFLAGS="${CFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+ CFLAGS="${CFLAGS} "</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_check_lib_save_LIBS=$LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+LIBS="-lcrypto ${pbxlibdir} $LIBS"</span><br><span style="color: hsl(120, 100%, 40%);">+cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(120, 100%, 40%);">+/* end confdefs.h. */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* Override any GCC internal prototype to avoid an error.</span><br><span style="color: hsl(120, 100%, 40%);">+ Use char because int might match the return type of a GCC</span><br><span style="color: hsl(120, 100%, 40%);">+ builtin and then its argument prototype would still apply. */</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef __cplusplus</span><br><span style="color: hsl(120, 100%, 40%);">+extern "C"</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+char AES_encrypt ();</span><br><span style="color: hsl(120, 100%, 40%);">+int</span><br><span style="color: hsl(120, 100%, 40%);">+main ()</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+return AES_encrypt ();</span><br><span style="color: hsl(120, 100%, 40%);">+ ;</span><br><span style="color: hsl(120, 100%, 40%);">+ return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+_ACEOF</span><br><span style="color: hsl(120, 100%, 40%);">+if ac_fn_c_try_link "$LINENO"; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_lib_crypto_AES_encrypt=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_lib_crypto_AES_encrypt=no</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+rm -f core conftest.err conftest.$ac_objext \</span><br><span style="color: hsl(120, 100%, 40%);">+ conftest$ac_exeext conftest.$ac_ext</span><br><span style="color: hsl(120, 100%, 40%);">+LIBS=$ac_check_lib_save_LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_CRYPTO_FOUND=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_CRYPTO_FOUND=no</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ CFLAGS="${ast_ext_lib_check_save_CFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ # now check for the header.</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "${AST_CRYPTO_FOUND}" = "yes"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_LIB="${pbxlibdir} -lcrypto "</span><br><span style="color: hsl(120, 100%, 40%);">+ # if --with-CRYPTO=DIR has been specified, use it.</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${CRYPTO_DIR}" != "x"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ # check for the header</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+ CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x$ac_cv_header_openssl_aes_h" = xyes; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_HEADER_FOUND=1</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_HEADER_FOUND=0</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_LIB=""</span><br><span style="color: hsl(120, 100%, 40%);">+ CRYPTO_INCLUDE=""</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_CRYPTO=1</span><br><span style="color: hsl(120, 100%, 40%);">+ cat >>confdefs.h <<_ACEOF</span><br><span style="color: hsl(120, 100%, 40%);">+#define HAVE_CRYPTO 1</span><br><span style="color: hsl(120, 100%, 40%);">+_ACEOF</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "$PBX_CRYPTO" = "1";</span><br><span style="color: hsl(120, 100%, 40%);">+ then</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pbxlibdir=""</span><br><span style="color: hsl(120, 100%, 40%);">+ # if --with-OPENSSL=DIR has been specified, use it.</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${OPENSSL_DIR}" != "x"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -d ${OPENSSL_DIR}/lib; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pbxlibdir="-L${OPENSSL_DIR}/lib"</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ pbxlibdir="-L${OPENSSL_DIR}"</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_ext_lib_check_save_CFLAGS="${CFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+ CFLAGS="${CFLAGS} "</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo_n "checking for SSL_connect in -lssl... " >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+if ${ac_cv_lib_ssl_SSL_connect+:} false; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_check_lib_save_LIBS=$LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"</span><br><span style="color: hsl(120, 100%, 40%);">+cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(120, 100%, 40%);">+/* end confdefs.h. */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* Override any GCC internal prototype to avoid an error.</span><br><span style="color: hsl(120, 100%, 40%);">+ Use char because int might match the return type of a GCC</span><br><span style="color: hsl(120, 100%, 40%);">+ builtin and then its argument prototype would still apply. */</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef __cplusplus</span><br><span style="color: hsl(120, 100%, 40%);">+extern "C"</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+char SSL_connect ();</span><br><span style="color: hsl(120, 100%, 40%);">+int</span><br><span style="color: hsl(120, 100%, 40%);">+main ()</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+return SSL_connect ();</span><br><span style="color: hsl(120, 100%, 40%);">+ ;</span><br><span style="color: hsl(120, 100%, 40%);">+ return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+_ACEOF</span><br><span style="color: hsl(120, 100%, 40%);">+if ac_fn_c_try_link "$LINENO"; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_lib_ssl_SSL_connect=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_lib_ssl_SSL_connect=no</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+rm -f core conftest.err conftest.$ac_objext \</span><br><span style="color: hsl(120, 100%, 40%);">+ conftest$ac_exeext conftest.$ac_ext</span><br><span style="color: hsl(120, 100%, 40%);">+LIBS=$ac_check_lib_save_LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_OPENSSL_FOUND=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_OPENSSL_FOUND=no</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ CFLAGS="${ast_ext_lib_check_save_CFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ # now check for the header.</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "${AST_OPENSSL_FOUND}" = "yes"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"</span><br><span style="color: hsl(120, 100%, 40%);">+ # if --with-OPENSSL=DIR has been specified, use it.</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${OPENSSL_DIR}" != "x"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ # check for the header</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+ CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_HEADER_FOUND=1</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_HEADER_FOUND=0</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_LIB=""</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_INCLUDE=""</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL=1</span><br><span style="color: hsl(120, 100%, 40%);">+ cat >>confdefs.h <<_ACEOF</span><br><span style="color: hsl(120, 100%, 40%);">+#define HAVE_OPENSSL 1</span><br><span style="color: hsl(120, 100%, 40%);">+_ACEOF</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x${PBX_OPENSSL_BIO_METHOD}" != "x1" -a "${USE_OPENSSL_BIO_METHOD}" != "no"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pbxlibdir=""</span><br><span style="color: hsl(120, 100%, 40%);">+ # if --with-OPENSSL_BIO_METHOD=DIR has been specified, use it.</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${OPENSSL_BIO_METHOD_DIR}" != "x"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ if test -d ${OPENSSL_BIO_METHOD_DIR}/lib; then</span><br><span style="color: hsl(120, 100%, 40%);">+ pbxlibdir="-L${OPENSSL_BIO_METHOD_DIR}/lib"</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ pbxlibdir="-L${OPENSSL_BIO_METHOD_DIR}"</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_ext_lib_check_save_CFLAGS="${CFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+ CFLAGS="${CFLAGS} "</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_meth_new in -lssl" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo_n "checking for BIO_meth_new in -lssl... " >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+if ${ac_cv_lib_ssl_BIO_meth_new+:} false; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_check_lib_save_LIBS=$LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"</span><br><span style="color: hsl(120, 100%, 40%);">+cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(120, 100%, 40%);">+/* end confdefs.h. */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* Override any GCC internal prototype to avoid an error.</span><br><span style="color: hsl(120, 100%, 40%);">+ Use char because int might match the return type of a GCC</span><br><span style="color: hsl(120, 100%, 40%);">+ builtin and then its argument prototype would still apply. */</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef __cplusplus</span><br><span style="color: hsl(120, 100%, 40%);">+extern "C"</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+char BIO_meth_new ();</span><br><span style="color: hsl(120, 100%, 40%);">+int</span><br><span style="color: hsl(120, 100%, 40%);">+main ()</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+return BIO_meth_new ();</span><br><span style="color: hsl(120, 100%, 40%);">+ ;</span><br><span style="color: hsl(120, 100%, 40%);">+ return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+_ACEOF</span><br><span style="color: hsl(120, 100%, 40%);">+if ac_fn_c_try_link "$LINENO"; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_lib_ssl_BIO_meth_new=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_cv_lib_ssl_BIO_meth_new=no</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+rm -f core conftest.err conftest.$ac_objext \</span><br><span style="color: hsl(120, 100%, 40%);">+ conftest$ac_exeext conftest.$ac_ext</span><br><span style="color: hsl(120, 100%, 40%);">+LIBS=$ac_check_lib_save_LIBS</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_BIO_meth_new" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$ac_cv_lib_ssl_BIO_meth_new" >&6; }</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x$ac_cv_lib_ssl_BIO_meth_new" = xyes; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_OPENSSL_BIO_METHOD_FOUND=yes</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_OPENSSL_BIO_METHOD_FOUND=no</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ CFLAGS="${ast_ext_lib_check_save_CFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ # now check for the header.</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "${AST_OPENSSL_BIO_METHOD_FOUND}" = "yes"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_BIO_METHOD_LIB="${pbxlibdir} -lssl -lcrypto"</span><br><span style="color: hsl(120, 100%, 40%);">+ # if --with-OPENSSL_BIO_METHOD=DIR has been specified, use it.</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${OPENSSL_BIO_METHOD_DIR}" != "x"; then</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_BIO_METHOD_INCLUDE="-I${OPENSSL_BIO_METHOD_DIR}/include"</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_BIO_METHOD_INCLUDE="${OPENSSL_BIO_METHOD_INCLUDE} "</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ # check for the header</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+ CPPFLAGS="${CPPFLAGS} ${OPENSSL_BIO_METHOD_INCLUDE}"</span><br><span style="color: hsl(120, 100%, 40%);">+ ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_BIO_METHOD_HEADER_FOUND=1</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_BIO_METHOD_HEADER_FOUND=0</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "x${OPENSSL_BIO_METHOD_HEADER_FOUND}" = "x0" ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_BIO_METHOD_LIB=""</span><br><span style="color: hsl(120, 100%, 40%);">+ OPENSSL_BIO_METHOD_INCLUDE=""</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL_BIO_METHOD=1</span><br><span style="color: hsl(120, 100%, 40%);">+ cat >>confdefs.h <<_ACEOF</span><br><span style="color: hsl(120, 100%, 40%);">+#define HAVE_OPENSSL_BIO_METHOD 1</span><br><span style="color: hsl(120, 100%, 40%);">+_ACEOF</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+if test $PBX_OPENSSL -eq 0 ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL does not seem to be installed" >&5</span><br><span style="color: hsl(120, 100%, 40%);">+$as_echo "$as_me: WARNING: OpenSSL does not seem to be installed" >&2;}</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> </span><br><span> </span><br><span> if test "$JANSSON_BUNDLED" = "yes" ; then</span><br><span>@@ -9271,6 +10073,7 @@</span><br><span> </span><br><span> </span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5</span><br><span> $as_echo "yes" >&6; }</span><br><span> </span><br><span>@@ -9562,50 +10365,6 @@</span><br><span> </span><br><span> </span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_DESCRIP="OpenSSL Cryptography"</span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_OPTION="crypto"</span><br><span style="color: hsl(0, 100%, 40%);">- PBX_CRYPTO=0</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-# Check whether --with-crypto was given.</span><br><span style="color: hsl(0, 100%, 40%);">-if test "${with_crypto+set}" = set; then :</span><br><span style="color: hsl(0, 100%, 40%);">- withval=$with_crypto;</span><br><span style="color: hsl(0, 100%, 40%);">- case ${withval} in</span><br><span style="color: hsl(0, 100%, 40%);">- n|no)</span><br><span style="color: hsl(0, 100%, 40%);">- USE_CRYPTO=no</span><br><span style="color: hsl(0, 100%, 40%);">- # -1 is a magic value used by menuselect to know that the package</span><br><span style="color: hsl(0, 100%, 40%);">- # was disabled, other than 'not found'</span><br><span style="color: hsl(0, 100%, 40%);">- PBX_CRYPTO=-1</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">- y|ye|yes)</span><br><span style="color: hsl(0, 100%, 40%);">- ac_mandatory_list="${ac_mandatory_list} CRYPTO"</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">- *)</span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_DIR="${withval}"</span><br><span style="color: hsl(0, 100%, 40%);">- ac_mandatory_list="${ac_mandatory_list} CRYPTO"</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">- esac</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-OPENSSL_BIO_METHOD_DESCRIP="OpenSSL BIO Method Support"</span><br><span style="color: hsl(0, 100%, 40%);">-OPENSSL_BIO_METHOD_OPTION=crypto</span><br><span style="color: hsl(0, 100%, 40%);">-OPENSSL_BIO_METHOD_DIR=${CRYPTO_DIR}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-PBX_OPENSSL_BIO_METHOD=0</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> DAHDI_DESCRIP="DAHDI"</span><br><span> DAHDI_OPTION="dahdi"</span><br><span> PBX_DAHDI=0</span><br><span>@@ -12149,38 +12908,6 @@</span><br><span> </span><br><span> </span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_OPTION="ssl"</span><br><span style="color: hsl(0, 100%, 40%);">- PBX_OPENSSL=0</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-# Check whether --with-ssl was given.</span><br><span style="color: hsl(0, 100%, 40%);">-if test "${with_ssl+set}" = set; then :</span><br><span style="color: hsl(0, 100%, 40%);">- withval=$with_ssl;</span><br><span style="color: hsl(0, 100%, 40%);">- case ${withval} in</span><br><span style="color: hsl(0, 100%, 40%);">- n|no)</span><br><span style="color: hsl(0, 100%, 40%);">- USE_OPENSSL=no</span><br><span style="color: hsl(0, 100%, 40%);">- # -1 is a magic value used by menuselect to know that the package</span><br><span style="color: hsl(0, 100%, 40%);">- # was disabled, other than 'not found'</span><br><span style="color: hsl(0, 100%, 40%);">- PBX_OPENSSL=-1</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">- y|ye|yes)</span><br><span style="color: hsl(0, 100%, 40%);">- ac_mandatory_list="${ac_mandatory_list} OPENSSL"</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">- *)</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_DIR="${withval}"</span><br><span style="color: hsl(0, 100%, 40%);">- ac_mandatory_list="${ac_mandatory_list} OPENSSL"</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">- esac</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> RT_DESCRIP="Realtime functions"</span><br><span> </span><br><span> RT_DIR=${rt_DIR}</span><br><span>@@ -12927,127 +13654,6 @@</span><br><span> done</span><br><span> </span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then</span><br><span style="color: hsl(0, 100%, 40%);">- if test -n "$ac_tool_prefix"; then</span><br><span style="color: hsl(0, 100%, 40%);">- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.</span><br><span style="color: hsl(0, 100%, 40%);">-set dummy ${ac_tool_prefix}pkg-config; ac_word=$2</span><br><span style="color: hsl(0, 100%, 40%);">-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo_n "checking for $ac_word... " >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if ${ac_cv_path_PKG_CONFIG+:} false; then :</span><br><span style="color: hsl(0, 100%, 40%);">- $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- case $PKG_CONFIG in</span><br><span style="color: hsl(0, 100%, 40%);">- [\\/]* | ?:[\\/]*)</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">- *)</span><br><span style="color: hsl(0, 100%, 40%);">- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR</span><br><span style="color: hsl(0, 100%, 40%);">-for as_dir in $PATH</span><br><span style="color: hsl(0, 100%, 40%);">-do</span><br><span style="color: hsl(0, 100%, 40%);">- IFS=$as_save_IFS</span><br><span style="color: hsl(0, 100%, 40%);">- test -z "$as_dir" && as_dir=.</span><br><span style="color: hsl(0, 100%, 40%);">- for ac_exec_ext in '' $ac_executable_extensions; do</span><br><span style="color: hsl(0, 100%, 40%);">- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"</span><br><span style="color: hsl(0, 100%, 40%);">- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5</span><br><span style="color: hsl(0, 100%, 40%);">- break 2</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-done</span><br><span style="color: hsl(0, 100%, 40%);">- done</span><br><span style="color: hsl(0, 100%, 40%);">-IFS=$as_save_IFS</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">-esac</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG=$ac_cv_path_PKG_CONFIG</span><br><span style="color: hsl(0, 100%, 40%);">-if test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "$PKG_CONFIG" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "no" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-if test -z "$ac_cv_path_PKG_CONFIG"; then</span><br><span style="color: hsl(0, 100%, 40%);">- ac_pt_PKG_CONFIG=$PKG_CONFIG</span><br><span style="color: hsl(0, 100%, 40%);">- # Extract the first word of "pkg-config", so it can be a program name with args.</span><br><span style="color: hsl(0, 100%, 40%);">-set dummy pkg-config; ac_word=$2</span><br><span style="color: hsl(0, 100%, 40%);">-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo_n "checking for $ac_word... " >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :</span><br><span style="color: hsl(0, 100%, 40%);">- $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- case $ac_pt_PKG_CONFIG in</span><br><span style="color: hsl(0, 100%, 40%);">- [\\/]* | ?:[\\/]*)</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">- *)</span><br><span style="color: hsl(0, 100%, 40%);">- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR</span><br><span style="color: hsl(0, 100%, 40%);">-for as_dir in $PATH</span><br><span style="color: hsl(0, 100%, 40%);">-do</span><br><span style="color: hsl(0, 100%, 40%);">- IFS=$as_save_IFS</span><br><span style="color: hsl(0, 100%, 40%);">- test -z "$as_dir" && as_dir=.</span><br><span style="color: hsl(0, 100%, 40%);">- for ac_exec_ext in '' $ac_executable_extensions; do</span><br><span style="color: hsl(0, 100%, 40%);">- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"</span><br><span style="color: hsl(0, 100%, 40%);">- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5</span><br><span style="color: hsl(0, 100%, 40%);">- break 2</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-done</span><br><span style="color: hsl(0, 100%, 40%);">- done</span><br><span style="color: hsl(0, 100%, 40%);">-IFS=$as_save_IFS</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- ;;</span><br><span style="color: hsl(0, 100%, 40%);">-esac</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG</span><br><span style="color: hsl(0, 100%, 40%);">-if test -n "$ac_pt_PKG_CONFIG"; then</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "$ac_pt_PKG_CONFIG" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "no" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x$ac_pt_PKG_CONFIG" = x; then</span><br><span style="color: hsl(0, 100%, 40%);">- PKG_CONFIG=""</span><br><span style="color: hsl(0, 100%, 40%);">- else</span><br><span style="color: hsl(0, 100%, 40%);">- case $cross_compiling:$ac_tool_warned in</span><br><span style="color: hsl(0, 100%, 40%);">-yes:)</span><br><span style="color: hsl(0, 100%, 40%);">-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}</span><br><span style="color: hsl(0, 100%, 40%);">-ac_tool_warned=yes ;;</span><br><span style="color: hsl(0, 100%, 40%);">-esac</span><br><span style="color: hsl(0, 100%, 40%);">- PKG_CONFIG=$ac_pt_PKG_CONFIG</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-if test -n "$PKG_CONFIG"; then</span><br><span style="color: hsl(0, 100%, 40%);">- _pkg_min_version=0.9.0</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "yes" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">- else</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "no" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">- PKG_CONFIG=""</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> # Find required NetBSD Editline library (libedit).</span><br><span> </span><br><span> if test "x${PBX_LIBEDIT}" != "x1" -a "${USE_LIBEDIT}" != "no"; then</span><br><span>@@ -14370,7 +14976,7 @@</span><br><span> We can't simply define LARGE_OFF_T to be 9223372036854775807,</span><br><span> since some C++ compilers masquerading as C compilers</span><br><span> incorrectly reject 9223372036854775807. */</span><br><span style="color: hsl(0, 100%, 40%);">-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))</span><br><span style="color: hsl(120, 100%, 40%);">+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))</span><br><span> int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721</span><br><span> && LARGE_OFF_T % 2147483647 == 1)</span><br><span> ? 1 : -1];</span><br><span>@@ -14416,7 +15022,7 @@</span><br><span> We can't simply define LARGE_OFF_T to be 9223372036854775807,</span><br><span> since some C++ compilers masquerading as C compilers</span><br><span> incorrectly reject 9223372036854775807. */</span><br><span style="color: hsl(0, 100%, 40%);">-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))</span><br><span style="color: hsl(120, 100%, 40%);">+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))</span><br><span> int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721</span><br><span> && LARGE_OFF_T % 2147483647 == 1)</span><br><span> ? 1 : -1];</span><br><span>@@ -14440,7 +15046,7 @@</span><br><span> We can't simply define LARGE_OFF_T to be 9223372036854775807,</span><br><span> since some C++ compilers masquerading as C compilers</span><br><span> incorrectly reject 9223372036854775807. */</span><br><span style="color: hsl(0, 100%, 40%);">-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))</span><br><span style="color: hsl(120, 100%, 40%);">+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))</span><br><span> int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721</span><br><span> && LARGE_OFF_T % 2147483647 == 1)</span><br><span> ? 1 : -1];</span><br><span>@@ -14485,7 +15091,7 @@</span><br><span> We can't simply define LARGE_OFF_T to be 9223372036854775807,</span><br><span> since some C++ compilers masquerading as C compilers</span><br><span> incorrectly reject 9223372036854775807. */</span><br><span style="color: hsl(0, 100%, 40%);">-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))</span><br><span style="color: hsl(120, 100%, 40%);">+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))</span><br><span> int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721</span><br><span> && LARGE_OFF_T % 2147483647 == 1)</span><br><span> ? 1 : -1];</span><br><span>@@ -14509,7 +15115,7 @@</span><br><span> We can't simply define LARGE_OFF_T to be 9223372036854775807,</span><br><span> since some C++ compilers masquerading as C compilers</span><br><span> incorrectly reject 9223372036854775807. */</span><br><span style="color: hsl(0, 100%, 40%);">-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))</span><br><span style="color: hsl(120, 100%, 40%);">+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))</span><br><span> int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721</span><br><span> && LARGE_OFF_T % 2147483647 == 1)</span><br><span> ? 1 : -1];</span><br><span>@@ -15809,8 +16415,6 @@</span><br><span> if (*(data + i) != *(data3 + i))</span><br><span> return 14;</span><br><span> close (fd);</span><br><span style="color: hsl(0, 100%, 40%);">- free (data);</span><br><span style="color: hsl(0, 100%, 40%);">- free (data3);</span><br><span> return 0;</span><br><span> }</span><br><span> _ACEOF</span><br><span>@@ -29885,299 +30489,6 @@</span><br><span> fi</span><br><span> </span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then</span><br><span style="color: hsl(0, 100%, 40%);">- pbxlibdir=""</span><br><span style="color: hsl(0, 100%, 40%);">- # if --with-CRYPTO=DIR has been specified, use it.</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x${CRYPTO_DIR}" != "x"; then</span><br><span style="color: hsl(0, 100%, 40%);">- if test -d ${CRYPTO_DIR}/lib; then</span><br><span style="color: hsl(0, 100%, 40%);">- pbxlibdir="-L${CRYPTO_DIR}/lib"</span><br><span style="color: hsl(0, 100%, 40%);">- else</span><br><span style="color: hsl(0, 100%, 40%);">- pbxlibdir="-L${CRYPTO_DIR}"</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">- CFLAGS="${CFLAGS} "</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :</span><br><span style="color: hsl(0, 100%, 40%);">- $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- ac_check_lib_save_LIBS=$LIBS</span><br><span style="color: hsl(0, 100%, 40%);">-LIBS="-lcrypto ${pbxlibdir} $LIBS"</span><br><span style="color: hsl(0, 100%, 40%);">-cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-/* end confdefs.h. */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/* Override any GCC internal prototype to avoid an error.</span><br><span style="color: hsl(0, 100%, 40%);">- Use char because int might match the return type of a GCC</span><br><span style="color: hsl(0, 100%, 40%);">- builtin and then its argument prototype would still apply. */</span><br><span style="color: hsl(0, 100%, 40%);">-#ifdef __cplusplus</span><br><span style="color: hsl(0, 100%, 40%);">-extern "C"</span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span style="color: hsl(0, 100%, 40%);">-char AES_encrypt ();</span><br><span style="color: hsl(0, 100%, 40%);">-int</span><br><span style="color: hsl(0, 100%, 40%);">-main ()</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-return AES_encrypt ();</span><br><span style="color: hsl(0, 100%, 40%);">- ;</span><br><span style="color: hsl(0, 100%, 40%);">- return 0;</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-if ac_fn_c_try_link "$LINENO"; then :</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_lib_crypto_AES_encrypt=yes</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_lib_crypto_AES_encrypt=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-rm -f core conftest.err conftest.$ac_objext \</span><br><span style="color: hsl(0, 100%, 40%);">- conftest$ac_exeext conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-LIBS=$ac_check_lib_save_LIBS</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :</span><br><span style="color: hsl(0, 100%, 40%);">- AST_CRYPTO_FOUND=yes</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- AST_CRYPTO_FOUND=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- # now check for the header.</span><br><span style="color: hsl(0, 100%, 40%);">- if test "${AST_CRYPTO_FOUND}" = "yes"; then</span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_LIB="${pbxlibdir} -lcrypto "</span><br><span style="color: hsl(0, 100%, 40%);">- # if --with-CRYPTO=DIR has been specified, use it.</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x${CRYPTO_DIR}" != "x"; then</span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- # check for the header</span><br><span style="color: hsl(0, 100%, 40%);">- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">- CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"</span><br><span style="color: hsl(0, 100%, 40%);">- ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x$ac_cv_header_openssl_aes_h" = xyes; then :</span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_HEADER_FOUND=1</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_HEADER_FOUND=0</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then</span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_LIB=""</span><br><span style="color: hsl(0, 100%, 40%);">- CRYPTO_INCLUDE=""</span><br><span style="color: hsl(0, 100%, 40%);">- else</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- PBX_CRYPTO=1</span><br><span style="color: hsl(0, 100%, 40%);">- cat >>confdefs.h <<_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-#define HAVE_CRYPTO 1</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test "$PBX_CRYPTO" = "1";</span><br><span style="color: hsl(0, 100%, 40%);">-then</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then</span><br><span style="color: hsl(0, 100%, 40%);">- pbxlibdir=""</span><br><span style="color: hsl(0, 100%, 40%);">- # if --with-OPENSSL=DIR has been specified, use it.</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x${OPENSSL_DIR}" != "x"; then</span><br><span style="color: hsl(0, 100%, 40%);">- if test -d ${OPENSSL_DIR}/lib; then</span><br><span style="color: hsl(0, 100%, 40%);">- pbxlibdir="-L${OPENSSL_DIR}/lib"</span><br><span style="color: hsl(0, 100%, 40%);">- else</span><br><span style="color: hsl(0, 100%, 40%);">- pbxlibdir="-L${OPENSSL_DIR}"</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">- CFLAGS="${CFLAGS} "</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo_n "checking for SSL_connect in -lssl... " >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if ${ac_cv_lib_ssl_SSL_connect+:} false; then :</span><br><span style="color: hsl(0, 100%, 40%);">- $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- ac_check_lib_save_LIBS=$LIBS</span><br><span style="color: hsl(0, 100%, 40%);">-LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"</span><br><span style="color: hsl(0, 100%, 40%);">-cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-/* end confdefs.h. */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/* Override any GCC internal prototype to avoid an error.</span><br><span style="color: hsl(0, 100%, 40%);">- Use char because int might match the return type of a GCC</span><br><span style="color: hsl(0, 100%, 40%);">- builtin and then its argument prototype would still apply. */</span><br><span style="color: hsl(0, 100%, 40%);">-#ifdef __cplusplus</span><br><span style="color: hsl(0, 100%, 40%);">-extern "C"</span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span style="color: hsl(0, 100%, 40%);">-char SSL_connect ();</span><br><span style="color: hsl(0, 100%, 40%);">-int</span><br><span style="color: hsl(0, 100%, 40%);">-main ()</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-return SSL_connect ();</span><br><span style="color: hsl(0, 100%, 40%);">- ;</span><br><span style="color: hsl(0, 100%, 40%);">- return 0;</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-if ac_fn_c_try_link "$LINENO"; then :</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_lib_ssl_SSL_connect=yes</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_lib_ssl_SSL_connect=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-rm -f core conftest.err conftest.$ac_objext \</span><br><span style="color: hsl(0, 100%, 40%);">- conftest$ac_exeext conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-LIBS=$ac_check_lib_save_LIBS</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :</span><br><span style="color: hsl(0, 100%, 40%);">- AST_OPENSSL_FOUND=yes</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- AST_OPENSSL_FOUND=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- # now check for the header.</span><br><span style="color: hsl(0, 100%, 40%);">- if test "${AST_OPENSSL_FOUND}" = "yes"; then</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"</span><br><span style="color: hsl(0, 100%, 40%);">- # if --with-OPENSSL=DIR has been specified, use it.</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x${OPENSSL_DIR}" != "x"; then</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- # check for the header</span><br><span style="color: hsl(0, 100%, 40%);">- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">- CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"</span><br><span style="color: hsl(0, 100%, 40%);">- ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_HEADER_FOUND=1</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_HEADER_FOUND=0</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_LIB=""</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_INCLUDE=""</span><br><span style="color: hsl(0, 100%, 40%);">- else</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- PBX_OPENSSL=1</span><br><span style="color: hsl(0, 100%, 40%);">- cat >>confdefs.h <<_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-#define HAVE_OPENSSL 1</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x${PBX_OPENSSL_BIO_METHOD}" != "x1" -a "${USE_OPENSSL_BIO_METHOD}" != "no"; then</span><br><span style="color: hsl(0, 100%, 40%);">- pbxlibdir=""</span><br><span style="color: hsl(0, 100%, 40%);">- # if --with-OPENSSL_BIO_METHOD=DIR has been specified, use it.</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x${OPENSSL_BIO_METHOD_DIR}" != "x"; then</span><br><span style="color: hsl(0, 100%, 40%);">- if test -d ${OPENSSL_BIO_METHOD_DIR}/lib; then</span><br><span style="color: hsl(0, 100%, 40%);">- pbxlibdir="-L${OPENSSL_BIO_METHOD_DIR}/lib"</span><br><span style="color: hsl(0, 100%, 40%);">- else</span><br><span style="color: hsl(0, 100%, 40%);">- pbxlibdir="-L${OPENSSL_BIO_METHOD_DIR}"</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">- CFLAGS="${CFLAGS} "</span><br><span style="color: hsl(0, 100%, 40%);">- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_meth_new in -lssl" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo_n "checking for BIO_meth_new in -lssl... " >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if ${ac_cv_lib_ssl_BIO_meth_new+:} false; then :</span><br><span style="color: hsl(0, 100%, 40%);">- $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- ac_check_lib_save_LIBS=$LIBS</span><br><span style="color: hsl(0, 100%, 40%);">-LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"</span><br><span style="color: hsl(0, 100%, 40%);">-cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-/* end confdefs.h. */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/* Override any GCC internal prototype to avoid an error.</span><br><span style="color: hsl(0, 100%, 40%);">- Use char because int might match the return type of a GCC</span><br><span style="color: hsl(0, 100%, 40%);">- builtin and then its argument prototype would still apply. */</span><br><span style="color: hsl(0, 100%, 40%);">-#ifdef __cplusplus</span><br><span style="color: hsl(0, 100%, 40%);">-extern "C"</span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span style="color: hsl(0, 100%, 40%);">-char BIO_meth_new ();</span><br><span style="color: hsl(0, 100%, 40%);">-int</span><br><span style="color: hsl(0, 100%, 40%);">-main ()</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-return BIO_meth_new ();</span><br><span style="color: hsl(0, 100%, 40%);">- ;</span><br><span style="color: hsl(0, 100%, 40%);">- return 0;</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-if ac_fn_c_try_link "$LINENO"; then :</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_lib_ssl_BIO_meth_new=yes</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- ac_cv_lib_ssl_BIO_meth_new=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-rm -f core conftest.err conftest.$ac_objext \</span><br><span style="color: hsl(0, 100%, 40%);">- conftest$ac_exeext conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-LIBS=$ac_check_lib_save_LIBS</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_BIO_meth_new" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "$ac_cv_lib_ssl_BIO_meth_new" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x$ac_cv_lib_ssl_BIO_meth_new" = xyes; then :</span><br><span style="color: hsl(0, 100%, 40%);">- AST_OPENSSL_BIO_METHOD_FOUND=yes</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- AST_OPENSSL_BIO_METHOD_FOUND=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- # now check for the header.</span><br><span style="color: hsl(0, 100%, 40%);">- if test "${AST_OPENSSL_BIO_METHOD_FOUND}" = "yes"; then</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_BIO_METHOD_LIB="${pbxlibdir} -lssl -lcrypto"</span><br><span style="color: hsl(0, 100%, 40%);">- # if --with-OPENSSL_BIO_METHOD=DIR has been specified, use it.</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x${OPENSSL_BIO_METHOD_DIR}" != "x"; then</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_BIO_METHOD_INCLUDE="-I${OPENSSL_BIO_METHOD_DIR}/include"</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_BIO_METHOD_INCLUDE="${OPENSSL_BIO_METHOD_INCLUDE} "</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- # check for the header</span><br><span style="color: hsl(0, 100%, 40%);">- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">- CPPFLAGS="${CPPFLAGS} ${OPENSSL_BIO_METHOD_INCLUDE}"</span><br><span style="color: hsl(0, 100%, 40%);">- ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"</span><br><span style="color: hsl(0, 100%, 40%);">-if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_BIO_METHOD_HEADER_FOUND=1</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_BIO_METHOD_HEADER_FOUND=0</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- if test "x${OPENSSL_BIO_METHOD_HEADER_FOUND}" = "x0" ; then</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_BIO_METHOD_LIB=""</span><br><span style="color: hsl(0, 100%, 40%);">- OPENSSL_BIO_METHOD_INCLUDE=""</span><br><span style="color: hsl(0, 100%, 40%);">- else</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- PBX_OPENSSL_BIO_METHOD=1</span><br><span style="color: hsl(0, 100%, 40%);">- cat >>confdefs.h <<_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-#define HAVE_OPENSSL_BIO_METHOD 1</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">- fi</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> if test "$PBX_OPENSSL" = "1";</span><br><span> then</span><br><span> </span><br><span>diff --git a/configure.ac b/configure.ac</span><br><span>index 532fbc2..26bd177 100644</span><br><span>--- a/configure.ac</span><br><span>+++ b/configure.ac</span><br><span>@@ -313,6 +313,8 @@</span><br><span> AC_PATH_PROG([SHA1SUM], [sha1sum], $ac_aux_dir/build_tools/sha1sum-sh)</span><br><span> AC_PATH_PROG([OPENSSL], [openssl], :)</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+PKG_PROG_PKG_CONFIG()</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> AC_CACHE_CHECK([for bison that supports parse-param], [ac_cv_path_BISON2], [</span><br><span> if test "x$BISON" != "x:" ; then</span><br><span> # Create a temporary directory $tmp in $TMPDIR (default /tmp).</span><br><span>@@ -458,6 +460,52 @@</span><br><span> PJPROJECT_BUNDLED=no</span><br><span> fi</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# OpenSSL stuff has to be done here because we want to pass</span><br><span style="color: hsl(120, 100%, 40%);">+# any resulting CFLAGS and LDFLAGS to the bundled pjproject</span><br><span style="color: hsl(120, 100%, 40%);">+# configure done in THIRD_PARTY_CONFIGURE()</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+AST_EXT_LIB_SETUP([CRYPTO], [OpenSSL Cryptography], [crypto])</span><br><span style="color: hsl(120, 100%, 40%);">+AST_EXT_LIB_SETUP([OPENSSL], [OpenSSL Secure Sockets Layer], [ssl])</span><br><span style="color: hsl(120, 100%, 40%);">+AST_EXT_LIB_SETUP_OPTIONAL([OPENSSL_BIO_METHOD], [OpenSSL BIO Method Support], [CRYPTO], [crypto])</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# If neither --without-ssl (PBX_OPENSSL=-1) nor --without-crypto (PBX_CRYPTO=-1)</span><br><span style="color: hsl(120, 100%, 40%);">+# and there were no directories atdded to --with-ssl and --with-crypto, and</span><br><span style="color: hsl(120, 100%, 40%);">+# pkg-config is installed (which is should be by install_prereq).</span><br><span style="color: hsl(120, 100%, 40%);">+if test "x$PKG_CONFIG" != "x" -a $PBX_OPENSSL -ge 0 -a $PBX_CRYPTO -ge 0 -a "x$OPENSSL_DIR" == "x" ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_MSG_NOTICE(checking OPENSSL with pkg-config)</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_MSG_NOTICE(checking whether system openssl > 1.1.0)</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_PKG_CONFIG_CHECK([OPENSSL], [openssl >= 1.1.0])</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $PBX_OPENSSL -eq 0 ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_MSG_NOTICE(checking whether alternate openssl11 is installed)</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_PKG_CONFIG_CHECK([OPENSSL], [openssl11])</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $PBX_OPENSSL -eq 1 ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_DEFINE([HAVE_OPENSSL_BIO_METHOD], 1)</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_OPENSSL_BIO_METHOD=1</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_MSG_NOTICE(checking fallback system openssl)</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_PKG_CONFIG_CHECK([OPENSSL], [openssl])</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $PBX_OPENSSL -eq 1; then</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_DEFINE([HAVE_CRYPTO], 1)</span><br><span style="color: hsl(120, 100%, 40%);">+ PBX_CRYPTO=1</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_MSG_NOTICE(Checking OPENSSL without pkg-config)</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_EXT_LIB_CHECK([CRYPTO], [crypto], [AES_encrypt], [openssl/aes.h])</span><br><span style="color: hsl(120, 100%, 40%);">+ if test "$PBX_CRYPTO" = "1";</span><br><span style="color: hsl(120, 100%, 40%);">+ then</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_EXT_LIB_CHECK([OPENSSL], [ssl], [SSL_connect], [openssl/ssl.h], [-lcrypto])</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_EXT_LIB_CHECK([OPENSSL_BIO_METHOD], [ssl], [BIO_meth_new], [openssl/ssl.h], [-lcrypto])</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+if test $PBX_OPENSSL -eq 0 ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_MSG_WARN(OpenSSL does not seem to be installed)</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> THIRD_PARTY_CONFIGURE()</span><br><span> </span><br><span> # AST_EXT_LIB_SETUP is used to tell configure to handle variables for</span><br><span>@@ -482,8 +530,6 @@</span><br><span> AST_EXT_LIB_SETUP([COROSYNC], [Corosync], [cpg])</span><br><span> AST_EXT_LIB_SETUP_OPTIONAL([COROSYNC_CFG_STATE_TRACK], [A callback only in corosync 1.x], [COROSYNC], [cfg])</span><br><span> AST_EXT_LIB_SETUP([CRYPT], [password and data encryption], [crypt])</span><br><span style="color: hsl(0, 100%, 40%);">-AST_EXT_LIB_SETUP([CRYPTO], [OpenSSL Cryptography], [crypto])</span><br><span style="color: hsl(0, 100%, 40%);">-AST_EXT_LIB_SETUP_OPTIONAL([OPENSSL_BIO_METHOD], [OpenSSL BIO Method Support], [CRYPTO], [crypto])</span><br><span> AST_EXT_LIB_SETUP([DAHDI], [DAHDI], [dahdi])</span><br><span> AST_EXT_LIB_SETUP([FFMPEG], [Ffmpeg and avcodec], [avcodec])</span><br><span> AST_EXT_LIB_SETUP([GSM], [External GSM], [gsm], [, use 'internal' GSM otherwise])</span><br><span>@@ -588,7 +634,6 @@</span><br><span> AST_EXT_LIB_SETUP_OPTIONAL([SRTP_GCM], [SRTP Library AES-128 (GCM) and AES-256 (GCM)], [SRTP], [srtp])</span><br><span> AST_EXT_LIB_SETUP_OPTIONAL([SRTP_SHUTDOWN], [SRTP Library Shutdown Function], [SRTP], [srtp])</span><br><span> AST_EXT_LIB_SETUP_OPTIONAL([SRTP_GET_VERSION], [SRTP Library Version Function], [SRTP], [srtp])</span><br><span style="color: hsl(0, 100%, 40%);">-AST_EXT_LIB_SETUP([OPENSSL], [OpenSSL Secure Sockets Layer], [ssl])</span><br><span> AST_EXT_LIB_SETUP_OPTIONAL([RT], [Realtime functions], [rt])</span><br><span> AST_EXT_LIB_SETUP([FREETDS], [FreeTDS], [tds])</span><br><span> AST_EXT_LIB_SETUP([TIMERFD], [timerfd], [timerfd])</span><br><span>@@ -633,8 +678,6 @@</span><br><span> </span><br><span> AC_CHECK_HEADERS([arpa/inet.h libintl.h malloc.h netdb.h stddef.h strings.h sys/event.h utime.h])</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-PKG_PROG_PKG_CONFIG()</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> # Find required NetBSD Editline library (libedit).</span><br><span> AST_PKG_CONFIG_CHECK(LIBEDIT, libedit)</span><br><span> # some platforms do not list libedit via pkg-config, for example OpenBSD 6.2</span><br><span>@@ -2614,14 +2657,6 @@</span><br><span> AC_CHECK_LIB([crypt], [crypt_r],</span><br><span> [AC_DEFINE([HAVE_CRYPT_R], [1], [Define to 1 if you have the 'crypt_r' function.])])</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-AST_EXT_LIB_CHECK([CRYPTO], [crypto], [AES_encrypt], [openssl/aes.h])</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test "$PBX_CRYPTO" = "1";</span><br><span style="color: hsl(0, 100%, 40%);">-then</span><br><span style="color: hsl(0, 100%, 40%);">- AST_EXT_LIB_CHECK([OPENSSL], [ssl], [SSL_connect], [openssl/ssl.h], [-lcrypto])</span><br><span style="color: hsl(0, 100%, 40%);">- AST_EXT_LIB_CHECK([OPENSSL_BIO_METHOD], [ssl], [BIO_meth_new], [openssl/ssl.h], [-lcrypto])</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> if test "$PBX_OPENSSL" = "1";</span><br><span> then</span><br><span> AST_CHECK_OSPTK([4], [0], [0])</span><br><span>diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in</span><br><span>index 546dc0d..ff1f537 100644</span><br><span>--- a/include/asterisk/autoconfig.h.in</span><br><span>+++ b/include/asterisk/autoconfig.h.in</span><br><span>@@ -570,7 +570,7 @@</span><br><span> /* Define to 1 if you have the MFR2 library. */</span><br><span> #undef HAVE_OPENR2</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/* Define to 1 if you have the OpenSSL Secure Sockets Layer library. */</span><br><span style="color: hsl(120, 100%, 40%);">+/* Define if your system has the OPENSSL libraries. */</span><br><span> #undef HAVE_OPENSSL</span><br><span> </span><br><span> /* Define to 1 if CRYPTO has the OpenSSL BIO Method Support feature. */</span><br><span>diff --git a/makeopts.in b/makeopts.in</span><br><span>index c0ee5db..9ba16ec 100644</span><br><span>--- a/makeopts.in</span><br><span>+++ b/makeopts.in</span><br><span>@@ -231,6 +231,7 @@</span><br><span> PJPROJECT_INCLUDE=@PJPROJECT_INCLUDE@</span><br><span> PJPROJECT_LIB=@PJPROJECT_LIB@</span><br><span> PJPROJECT_DIR=@PJPROJECT_DIR@</span><br><span style="color: hsl(120, 100%, 40%);">+PJPROJECT_CONFIGURE_OPTS=@PJPROJECT_CONFIGURE_OPTS@</span><br><span> </span><br><span> POPT_INCLUDE=@POPT_INCLUDE@</span><br><span> POPT_LIB=@POPT_LIB@</span><br><span>diff --git a/third-party/pjproject/Makefile b/third-party/pjproject/Makefile</span><br><span>index fce2768..96a6491 100644</span><br><span>--- a/third-party/pjproject/Makefile</span><br><span>+++ b/third-party/pjproject/Makefile</span><br><span>@@ -88,8 +88,8 @@</span><br><span> endif</span><br><span> </span><br><span> export PJ_CFLAGS := $(filter-out -O% -g%,$(PJ_CFLAGS))</span><br><span style="color: hsl(0, 100%, 40%);">-export CFLAGS += $(CF)</span><br><span style="color: hsl(0, 100%, 40%);">-export LDFLAGS += $(CC_LDFLAGS)</span><br><span style="color: hsl(120, 100%, 40%);">+export CFLAGS += $(CF) $(OPENSSL_INCLUDE)</span><br><span style="color: hsl(120, 100%, 40%);">+export LDFLAGS += $(CC_LDFLAGS) $(OPENSSL_LIB)</span><br><span> </span><br><span> ECHO_PREFIX := $(ECHO_PREFIX) echo '[pjproject] '</span><br><span> SHELL_ECHO_PREFIX := echo '[pjproject] '</span><br><span>@@ -129,7 +129,7 @@</span><br><span> $(CMD_PREFIX) $(MAKE) clean $(REALLY_QUIET)</span><br><span> </span><br><span> source/build.mak: Makefile.rules source/version.mak source/user.mak $(addprefix source/pjlib/include/pj/,$(notdir $(wildcard patches/*.h))) .rebuild_needed</span><br><span style="color: hsl(0, 100%, 40%);">- $(ECHO_PREFIX) Configuring with $(PJPROJECT_CONFIG_OPTS)</span><br><span style="color: hsl(120, 100%, 40%);">+ $(ECHO_PREFIX) Configuring with $(PJPROJECT_CONFIG_OPTS) </span><br><span> $(CMD_PREFIX) (cd source ; ./aconfigure $(QUIET_CONFIGURE) $(PJPROJECT_CONFIG_OPTS))</span><br><span> </span><br><span> build.mak: source/build.mak</span><br><span>diff --git a/third-party/pjproject/configure.m4 b/third-party/pjproject/configure.m4</span><br><span>index 485e4f1..f67ef57 100644</span><br><span>--- a/third-party/pjproject/configure.m4</span><br><span>+++ b/third-party/pjproject/configure.m4</span><br><span>@@ -117,6 +117,7 @@</span><br><span> AC_SUBST([PBX_PJPROJECT])</span><br><span> AC_SUBST([PJPROJECT_LIB])</span><br><span> AC_SUBST([PJPROJECT_INCLUDE])</span><br><span style="color: hsl(120, 100%, 40%);">+ AC_SUBST([PJPROJECT_CONFIGURE_OPTS])</span><br><span> AC_MSG_RESULT(yes)</span><br><span> </span><br><span> fi</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16619">change 16619</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/16619"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I341ab7603e6b156aa15a66f43675ac5029d5fbde </div>
<div style="display:none"> Gerrit-Change-Number: 16619 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>