diff --git a/configure b/configure index 70a368e43a..e155e24561 100755 --- a/configure +++ b/configure @@ -10093,12 +10093,16 @@ $as_echo "configuring" >&6; } y|ye|yes) # Not to mention SSL is the default in PJProject and means "autodetect". # In Asterisk, "./configure --with-ssl" means "must be present". - PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS}" + PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl" ;; *) PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl=${with_ssl}" ;; esac + else + if test $PBX_OPENSSL -eq 1 ; then + PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl" + fi fi # Determine if we're doing an out-of-tree build... diff --git a/third-party/pjproject/configure.m4 b/third-party/pjproject/configure.m4 index aa3ff0a911..b16738c9ac 100644 --- a/third-party/pjproject/configure.m4 +++ b/third-party/pjproject/configure.m4 @@ -74,12 +74,16 @@ AC_DEFUN([_PJPROJECT_CONFIGURE], y|ye|yes) # Not to mention SSL is the default in PJProject and means "autodetect". # In Asterisk, "./configure --with-ssl" means "must be present". - PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS}" + PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl" ;; *) PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl=${with_ssl}" ;; esac + else + if test $PBX_OPENSSL -eq 1 ; then + PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl" + fi fi # Determine if we're doing an out-of-tree build...