aboutsummaryrefslogtreecommitdiff
path: root/m4/libcurl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/libcurl.m4')
-rw-r--r--m4/libcurl.m425
1 files changed, 23 insertions, 2 deletions
diff --git a/m4/libcurl.m4 b/m4/libcurl.m4
index a84077a5e..ad53a444e 100644
--- a/m4/libcurl.m4
+++ b/m4/libcurl.m4
@@ -1,3 +1,24 @@
1#***************************************************************************
2# _ _ ____ _
3# Project ___| | | | _ \| |
4# / __| | | | |_) | |
5# | (__| |_| | _ <| |___
6# \___|\___/|_| \_\_____|
7#
8# Copyright (C) 2006 - 2020, David Shaw <dshaw@jabberwocky.com>
9#
10# This software is licensed as described in the file COPYING, which
11# you should have received as part of this distribution. The terms
12# are also available at https://curl.se/docs/copyright.html.
13#
14# You may opt to use, copy, modify, merge, publish, distribute and/or sell
15# copies of the Software, and permit persons to whom the Software is
16# furnished to do so, under the terms of the COPYING file.
17#
18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19# KIND, either express or implied.
20#
21###########################################################################
1# LIBCURL_CHECK_CONFIG ([DEFAULT-ACTION], [MINIMUM-VERSION], 22# LIBCURL_CHECK_CONFIG ([DEFAULT-ACTION], [MINIMUM-VERSION],
2# [ACTION-IF-YES], [ACTION-IF-NO]) 23# [ACTION-IF-YES], [ACTION-IF-NO])
3# ---------------------------------------------------------- 24# ----------------------------------------------------------
@@ -61,7 +82,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
61 AH_TEMPLATE([LIBCURL_PROTOCOL_SMTP],[Defined if libcurl supports SMTP]) 82 AH_TEMPLATE([LIBCURL_PROTOCOL_SMTP],[Defined if libcurl supports SMTP])
62 83
63 AC_ARG_WITH(libcurl, 84 AC_ARG_WITH(libcurl,
64 AC_HELP_STRING([--with-libcurl=PREFIX],[look for the curl library in PREFIX/lib and headers in PREFIX/include]), 85 AS_HELP_STRING([--with-libcurl=PREFIX],[look for the curl library in PREFIX/lib and headers in PREFIX/include]),
65 [_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])]) 86 [_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])])
66 87
67 if test "$_libcurl_with" != "no" ; then 88 if test "$_libcurl_with" != "no" ; then
@@ -157,7 +178,7 @@ x=CURLOPT_WRITEDATA;
157x=CURLOPT_ERRORBUFFER; 178x=CURLOPT_ERRORBUFFER;
158x=CURLOPT_STDERR; 179x=CURLOPT_STDERR;
159x=CURLOPT_VERBOSE; 180x=CURLOPT_VERBOSE;
160if (x) ; 181if (x) {;}
161]])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no) 182]])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
162 183
163 CPPFLAGS=$_libcurl_save_cppflags 184 CPPFLAGS=$_libcurl_save_cppflags