cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl-config --vernum broken in 7.15.0

From: Dave Dribin <dave-ml_at_dribin.org>
Date: Fri, 14 Oct 2005 11:51:10 -0500

Hello all,

I'm upgrading from libcurl 7.13.1 to 7.15.0, and the --vernum option in
curl-config does not seem to work anymore:

% curl-config --version
libcurl 7.15.0
% curl-config --vernum

%

It used to work like this:

% curl-config --version
libcurl 7.13.1
% curl-config --vernum
070d01
%

It looks like a side effect of changing LIBCURL_VERSION_NUM to an
expression. Here's how configure.ac tries to figure out the version:

VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p'
${srcdir}/include/curl/curlver.h`

And here's LIBCURL_VERSION_NUM:

#define LIBCURL_VERSION_NUM ((LIBCURL_VERSION_MAJOR << 16) | \
                              (LIBCURL_VERSION_MINOR << 8) | \
                              LIBCURL_VERSION_PATCH)

Sure enough, this was changed somewhere between 7.13.1 and 7.15.0, as
here's how it's defined i 7.13.1:

#define LIBCURL_VERSION_NUM 0x070d01

-Dave
Received on 2005-10-14