]> granicus.if.org Git - curl/commitdiff
libcurl.pc: version number fix
authorDaniel Stenberg <daniel@haxx.se>
Wed, 6 Apr 2011 10:09:27 +0000 (12:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 6 Apr 2011 10:09:27 +0000 (12:09 +0200)
This hasn't show the version number correctly since the $VERSION change
in the configure, and now it works again.

configure.ac
libcurl.pc.in

index 628666ba86819c7d76ad8c946ef6131fb8fbc2a4..08f30fa901e9d7ea0389400169c394d8cfce6ffb 100644 (file)
@@ -126,6 +126,8 @@ AM_INIT_AUTOMAKE
 AC_MSG_CHECKING([curl version])
 AC_MSG_RESULT($CURLVERSION)
 
+AC_SUBST(CURLVERSION)
+
 dnl
 dnl we extract the numerical version for curl-config only
 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
index 6eea31fb560cf215f5612d2ebb3a6c34e75370d9..2ba9c39a2af308e196f39e7a70be9007b1f203ec 100644 (file)
@@ -5,7 +5,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 2004 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -33,7 +33,7 @@ supported_features="@SUPPORT_FEATURES@"
 Name: libcurl
 URL: http://curl.haxx.se/
 Description: Library to transfer files with ftp, http, etc.
-Version: @VERSION@
+Version: @CURLVERSION@
 Libs: -L${libdir} -lcurl @LIBS@
 Libs.private: @LIBCURL_LIBS@ @LIBS@
 Cflags: -I${includedir}