From 3431949a5294bf6aaaddb640619d832f4d678a21 Mon Sep 17 00:00:00 2001
From: Alexander Traud <pabstraud@compuserve.com>
Date: Fri, 10 Apr 2020 15:13:34 +0200
Subject: [PATCH] pjproject_bundled: Repair ./configure --with-ssl without ARG.

ASTERISK-28758
Reported by: Patrick Wakano
Reported by: Dmitriy Serov

Change-Id: Ifb6b85c559d116739af00bc48d1f547caa85efac
---
 configure                          | 4 ++--
 third-party/pjproject/configure.m4 | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 654bc06b2a..aba52212be 100755
--- a/configure
+++ b/configure
@@ -9249,9 +9249,9 @@ $as_echo "configuring" >&6; }
 		PJPROJECT_CONFIGURE_OPTS+=" --disable-ssl"
 		;;
 		y|ye|yes)
-		# This is the default value in PJProject and means "autodetect".
+		# Not to mention SSL is the default in PJProject and means "autodetect".
 		# In Asterisk, "./configure --with-ssl" means "must be present".
-		PJPROJECT_CONFIGURE_OPTS+=" --enable-ssl"
+		PJPROJECT_CONFIGURE_OPTS+=""
 		;;
 		*)
 		PJPROJECT_CONFIGURE_OPTS+=" --with-ssl=${with_ssl}"
diff --git a/third-party/pjproject/configure.m4 b/third-party/pjproject/configure.m4
index edf76ba6af..7621232784 100644
--- a/third-party/pjproject/configure.m4
+++ b/third-party/pjproject/configure.m4
@@ -62,9 +62,9 @@ AC_DEFUN([_PJPROJECT_CONFIGURE],
 		PJPROJECT_CONFIGURE_OPTS+=" --disable-ssl"
 		;;
 		y|ye|yes)
-		# This is the default value in PJProject and means "autodetect".
+		# Not to mention SSL is the default in PJProject and means "autodetect".
 		# In Asterisk, "./configure --with-ssl" means "must be present".
-		PJPROJECT_CONFIGURE_OPTS+=" --enable-ssl"
+		PJPROJECT_CONFIGURE_OPTS+=""
 		;;
 		*)
 		PJPROJECT_CONFIGURE_OPTS+=" --with-ssl=${with_ssl}"
-- 
GitLab