I downloaded "curl and libcurl 7.21.5" from http://curl.haxx.se/download.html.
Type 'curl-config --version', it returns 'libcurl -'.
I check curl-config script. Maybe, "@VERSION@"(curl-config.in) was replaced with bad value.
-------------------------------------------
(snip)
--version)
echo libcurl -
exit 0
;;
(snip)
-------------------------------------------
I compiled it in CentOS 5.6(Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux)
I tried compile "curl and libcurl 7.21.4"(same environment) and do "curl-config --version", it returns "libcurl 7.21.4". This is correct.
Thanks for the report, this problem is now fixed in the git repository.
To try it out, you either checkout/update your git clone: http://curl.haxx.se/source.html
or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/