Hm... try this:
make distclean
./autogen.sh
CFLAGS="-I/tmp/curl/include" LDFLAGS="-static -L/tmp/curl/lib" ./configure --with-libcurl=/tmp/curl
Same error,
checking for libcurl >= version 7.15.2... yes
checking whether libcurl is usable... no
configure: error: Missing required libcurl >= 7.15.2
Dynamic compilation works just fine...
Pastebin config.log.
http://pastebin.com/UMLA4K6B
PFF, stupid curl configuration scrit, version 7.37 is buggy as hell!!
I got it compiled now with 7.34 :
Static CURL :
wget http://curl.haxx.se/download/curl-7.34.0.tar.gz
./configure --disable-shared --enable-static
make -j 4;make install;
cpu miner
./autogen.sh
./configure CFLAGS="-static"
make -j 4
Perfect. Remember about the fucked DNS resolution.