If you got
pkg-config not found
error in gnu auto tools
then, you must install the related librarys such as : libcurl-nss libcurl-gnu libcurl-xxx
then,
autogen.sh agin
maybe you have to configure the env of "export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/bin" firstly.