Look more closely:
checking for curl-config... no
Cannot find curl-config
You need the curl-config
script. In general, you want a package libcurl*-dev
or alike, and the aming may vary between distros. On the system on which I type this:
edd@max:~$ dpkg -S `which curl-config`
libcurl4-nss-dev: /usr/bin/curl-config
edd@max:~$
but there is also an alternate libcurl4-gnutls-dev
which I use on some other systems, as well as libcurl4-openssl-dev
.