summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-04-06 12:09:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-04-06 12:09:27 +0200
commitee4c1206de9ab08054b48b675fb049e64066deec (patch)
treee849a744dea506ac2b60b1274c3b3c6ae18e8c9a
parentc22c258029101f451a7af3eab47e96d4f648ef29 (diff)
downloadcurl-ee4c1206de9ab08054b48b675fb049e64066deec.tar.gz
libcurl.pc: version number fix
This hasn't show the version number correctly since the $VERSION change in the configure, and now it works again.
-rw-r--r--configure.ac2
-rw-r--r--libcurl.pc.in4
2 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 628666ba8..08f30fa90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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`
diff --git a/libcurl.pc.in b/libcurl.pc.in
index 6eea31fb5..2ba9c39a2 100644
--- a/libcurl.pc.in
+++ b/libcurl.pc.in
@@ -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}