heres the full error:
checking for curl-config... no
checking for CURL-LIB version >= 7.10.2... no
*** The curl-config script installed by CURL could not be found
*** If CURL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the CURL_CONFIG environment variable to the
*** full path to curl-config.
*** All of curl dependent parts will be disabled ***
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for aalib-config... /usr/bin/aalib-config
checking for AALIB version >= 1.2.0... no
*** Could not run AALIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means AALIB was incorrectly installed
*** or that you have moved AALIB since it was installed.
checking for pkg-config... no
*** pkg-config not found. See
http://pkgconfig.sourceforge.net
*** All of DIRECTFB dependent parts will be disabled
checking for png_read_info in -lpng... no
configure: error: *** libpng is needed (PNG library not found) - try to use --with-png-prefix option ***