]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Added the --static-libs option to curl-config
authorDan Fandrich <dan@coneharvesters.com>
Thu, 25 Oct 2007 22:30:35 +0000 (22:30 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 25 Oct 2007 22:30:35 +0000 (22:30 +0000)
CHANGES
RELEASE-NOTES
configure.ac
curl-config.in
docs/curl-config.1

diff --git a/CHANGES b/CHANGES
index cd775a095f3c34d0a3cd555f50a734bc4a81309d..836732388ec021ff2ecb4fa213e7960b5b5a23ad 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
 
                                   Changelog
 
+Dan F (25 October 2007)
+- Added the --static-libs option to curl-config
+
 Daniel S (25 October 2007)
 - Made libcurl built with NSS possible to ignore the peer verification.
   Previously it would fail if the ca bundle wasn't present, even if the code
index ca363fb8aaa42e5867fbedabe7c9c89a01a9155e..b33ab42e9467ba78ad4e70781542f240f65b6588 100644 (file)
@@ -21,6 +21,7 @@ This release includes the following changes:
  o added CURLOPT_OPENSOCKETFUNCTION and CURLOPT_OPENSOCKETDATA
  o CULROPT_COOKIELIST supports "FLUSH"
  o added CURLOPT_COPYPOSTFIELDS
+ o added --static-libs to curl-config
 
 This release includes the following bugfixes:
 
index eef03855d369ec083016160cf64398b947c4ac93..a0c4fae6788eed3764bdb0b1d926cffb80c4eda4 100644 (file)
@@ -55,6 +55,7 @@ AC_SUBST(AR)
 if test "x$AR" = "xar-was-not-found-by-configure"; then
   AC_MSG_WARN([ar was not found, this may ruin your chances to build fine])
 fi
+AC_SUBST(libext)
 
 dnl figure out the libcurl version
 VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
index 92d1bb02eea12e4f52808f69f20d5c7c97d44952..157837143353cc2bde3bfa05742cf4356dfb002d 100644 (file)
@@ -41,10 +41,11 @@ Available values for OPTION include:
   --cflags    pre-processor and compiler flags
   --checkfor [version] check for (lib)curl of the specified version
   --features  newline separated list of enabled features
-  --protocols newline separated list of enabled protocols
   --help      display this help and exit
   --libs      library linking information
   --prefix    curl install prefix
+  --protocols newline separated list of enabled protocols
+  --static-libs static libcurl library linking information
   --version   output version information
   --vernum    output the version information as a number (hexadecimal)
 EOF
@@ -200,6 +201,10 @@ while test $# -gt 0; do
        fi
        ;;
 
+    --static-libs)
+       echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@ @LIBS@
+       ;;
+
     *)
         echo "unknown option: $1"
        usage 1
index 0661698745e2178b8b4ee9ba5274f546cdc373a4..fe187836ca66c6ad86e90843f8b8e799738ff3da 100644 (file)
@@ -21,7 +21,7 @@
 .\" * $Id$
 .\" **************************************************************************
 .\"
-.TH curl-config 1 "25 Jan 2004" "Curl 7.15.4" "curl-config manual"
+.TH curl-config 1 "25 Oct 2007" "Curl 7.17.1" "curl-config manual"
 .SH NAME
 curl-config \- Get information about a libcurl installation
 .SH SYNOPSIS
@@ -62,6 +62,9 @@ the time of writing, this list may include HTTP, HTTPS, FTP, FTPS, FILE,
 TELNET, LDAP, DICT. Do not assume any particular order. The protocols will
 be listed using uppercase and are separated by newlines. There may be none,
 one or several protocols in the list. (Added in 7.13.0)
+.IP "--static-libs"
+Shows the complete set of libs and other linker options you will need in order
+to link your application with libcurl statically.
 .IP "--version"
 Outputs version information about the installed libcurl.
 .IP "--vernum"