The gd library removes config.h when running make clean. I require a complete configure, make clean, make run, so building then fails on my system. I have changed the Makefile.in. G