gnupg/m4 (ChangeLog libcurl.m4)

cvs user dshaw cvs at cvs.gnupg.org
Sun Jan 23 00:02:14 CET 2005


    Date: Sunday, January 23, 2005 @ 00:10:23
  Author: dshaw
    Path: /cvs/gnupg/gnupg/m4

Modified: ChangeLog libcurl.m4

* libcurl.m4: Note that FTPS existed, but wasn't fully
standards-compliant until version 7.11.0.


------------+
 ChangeLog  |    5 +++++
 libcurl.m4 |   47 +++++++++++++++++++++++++++++++++--------------
 2 files changed, 38 insertions(+), 14 deletions(-)


Index: gnupg/m4/ChangeLog
diff -u gnupg/m4/ChangeLog:1.11 gnupg/m4/ChangeLog:1.12
--- gnupg/m4/ChangeLog:1.11	Tue Jan 18 04:54:46 2005
+++ gnupg/m4/ChangeLog	Sun Jan 23 00:10:23 2005
@@ -1,3 +1,8 @@
+2005-01-22  David Shaw  <dshaw at grover.jabberwocky.com>
+
+	* libcurl.m4: Note that FTPS existed, but wasn't fully
+	standards-compliant until version 7.11.0.
+
 2005-01-17  David Shaw  <dshaw at grover.jabberwocky.com>
 
 	* libcurl.m4: Use LIBCURL_CPPFLAGS and not LIBCURL_INCLUDES to
Index: gnupg/m4/libcurl.m4
diff -u gnupg/m4/libcurl.m4:1.6 gnupg/m4/libcurl.m4:1.7
--- gnupg/m4/libcurl.m4:1.6	Tue Jan 18 04:54:46 2005
+++ gnupg/m4/libcurl.m4	Sun Jan 23 00:10:23 2005
@@ -1,16 +1,17 @@
 # LIBCURL_CHECK_CONFIG ([DEFAULT-ACTION], [MINIMUM-VERSION],
 #                       [ACTION-IF-YES], [ACTION-IF-NO])
 # ----------------------------------------------------------
-#      David Shaw <dshaw at jabberwocky.com>   Dec-24-2004
+#      David Shaw <dshaw at jabberwocky.com>   Jan-23-2005
 #
-# Checks for libcurl.  DEFAULT-ACTION is yes or no whether to default
-# to --with-libcurl or --without-libcurl.  If not supplied,
-# DEFAULT-ACTION is yes.  MINIMUM-VERSION is the minimum version of
-# libcurl to accept.  If not supplied, any version is accepted.
-# ACTION-IF-YES is a list of shell commands to run if libcurl was
-# successfully found and passed the various tests.  ACTION-IF-NO is a
-# list of shell commands that are run otherwise.  Note that using
-# --without-libcurl does run ACTION-IF-NO.
+# Checks for libcurl.  DEFAULT-ACTION is the string yes or no to
+# specify whether to default to --with-libcurl or --without-libcurl.
+# If not supplied, DEFAULT-ACTION is yes.  MINIMUM-VERSION is the
+# minimum version of libcurl to accept.  Pass the version as a regular
+# version number like 7.10.1. If not supplied, any version is
+# accepted.  ACTION-IF-YES is a list of shell commands to run if
+# libcurl was successfully found and passed the various tests.
+# ACTION-IF-NO is a list of shell commands that are run otherwise.
+# Note that using --without-libcurl does run ACTION-IF-NO.
 #
 # This macro defines HAVE_LIBCURL if a working libcurl setup is found,
 # and sets @LIBCURL@ and @LIBCURL_CPPFLAGS@ to the necessary values.
@@ -22,7 +23,19 @@
 # variables $libcurl_feature_xxx and $libcurl_protocol_yyy are also
 # defined to 'yes' for those features and protocols that were found.
 # Note that xxx and yyy keep the same capitalization as in the
-# curl-config list (i.e. it's "HTTP" and not "http").
+# curl-config list (e.g. it's "HTTP" and not "http").
+#
+# For the sake of sanity, this macro assumes that any libcurl that is
+# found is after version 7.7.2, the first version that included the
+# curl-config script.  Note that it is very important for people
+# packaging binary versions of libcurl to include this script!
+# Without curl-config, we can only make educated guesses as to what
+# protocols are available.  Specifically, we assume that all of HTTP,
+# FTP, GOPHER, FILE, TELNET, LDAP, and DICT exist, and (if SSL exists)
+# HTTPS is present.  All of these protocols existed when libcurl was
+# first created in version 7, so this is a safe assumption.  If the
+# version is 7.11.0 or later, FTPS is assumed to be present as well.
+# FTPS existed before then, but was not yet fully standards compliant.
 
 AC_DEFUN([LIBCURL_CHECK_CONFIG],
 [
@@ -111,7 +124,6 @@
 	fi
 
 	unset _libcurl_wanted
-	unset _libcurl_version
      fi
 
      if test $_libcurl_try_link = yes ; then
@@ -159,13 +171,19 @@
            done
 
 	   if test "x$_libcurl_protocols" = "x" ; then
-	      # We don't have --protocols, so just assume that all protocols
-	      # are available
 
+	      # We don't have --protocols, so just assume that all
+	      # protocols are available
 	      _libcurl_protocols="HTTP FTP GOPHER FILE TELNET LDAP DICT"
 
 	      if test x$libcurl_feature_SSL = xyes ; then
-	         _libcurl_protocols="$_libcurl_protocols HTTPS FTPS"
+	         _libcurl_protocols="$_libcurl_protocols HTTPS"
+
+		 # FTPS wasn't standards-compliant until version
+		 # 7.11.0
+		 if test $_libcurl_version -ge 461568; then
+		    _libcurl_protocols="$_libcurl_protocols FTPS"
+		 fi
 	      fi
 	   fi
 
@@ -183,6 +201,7 @@
      unset _libcurl_features
      unset _libcurl_protocol
      unset _libcurl_protocols
+     unset _libcurl_version
   fi
 
   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then




More information about the Gnupg-commits mailing list