[Asterisk-code-review] Fix declaration of PBX CURL for ./configure --without-libcurl (asterisk[master])

Corey Farrell asteriskteam at digium.com
Fri Jul 13 22:48:35 CDT 2018


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/9435


Change subject: Fix declaration of PBX_CURL for ./configure --without-libcurl
......................................................................

Fix declaration of PBX_CURL for ./configure --without-libcurl

When `--without-libcurl` is used PBX_CURL is never set.  Set default
value 0 so the proper value is passed to menuselect.

Change-Id: I03e2842a00899cbca2dbde52bb1f6636d54bae1e
---
M autoconf/libcurl.m4
M configure
2 files changed, 2 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/35/9435/1

diff --git a/autoconf/libcurl.m4 b/autoconf/libcurl.m4
index 9a31bfc..e1ae2a4 100644
--- a/autoconf/libcurl.m4
+++ b/autoconf/libcurl.m4
@@ -80,7 +80,7 @@
   AH_TEMPLATE([LIBCURL_PROTOCOL_POP3],[Defined if libcurl supports POP3])
   AH_TEMPLATE([LIBCURL_PROTOCOL_IMAP],[Defined if libcurl supports IMAP])
   AH_TEMPLATE([LIBCURL_PROTOCOL_SMTP],[Defined if libcurl supports SMTP])
-  AC_SUBST(PBX_CURL)
+  AC_SUBST(PBX_CURL, 0)
 
   AC_ARG_WITH(libcurl,
      AS_HELP_STRING([--with-libcurl=PREFIX],[look for the curl library in PREFIX/lib and headers in PREFIX/include]),
@@ -248,7 +248,6 @@
         else
            unset CURL_LIB
            unset CURL_INCLUDE
-           PBX_CURL=0
         fi
      fi
 
diff --git a/configure b/configure
index d13e5ef..984f53b 100755
--- a/configure
+++ b/configure
@@ -10247,6 +10247,7 @@
 
 
 
+  PBX_CURL=0
 
 
 
@@ -10586,7 +10587,6 @@
         else
            unset CURL_LIB
            unset CURL_INCLUDE
-           PBX_CURL=0
         fi
      fi
 

-- 
To view, visit https://gerrit.asterisk.org/9435
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I03e2842a00899cbca2dbde52bb1f6636d54bae1e
Gerrit-Change-Number: 9435
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180713/d375e836/attachment.html>


More information about the asterisk-code-review mailing list