Thanks to your post, I noticed there was a spelling error in libgd! That part is now fixed :-)

Now coming to your problem…

The error message tells that sarg found gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h but failed to link a test program with libgd to call the gdImagePng function.

According to the page http://rpmfind.net//linux/RPM/centos/6.6/x86_64/Packages/gd-devel-2.0.35-11.el6.x86_64.html, the gd-devel package should have installed the required libgd.so library in /usr/lib64. Do you confirm it is there?

I trust the library is installed. So let's go directly to the next possible cause which is an unrelated compiler error.

Can you search through the config.log for a line such as (ignore the 4234 number, it will be different in your log):

configure:4234: checking for gdImagePng in -lgd

It should be followed by an error message explaining why the compiler couldn't compile the test program.

Here is a successful outcome:

configure:4234: checking for gdImagePng in -lgd
configure:4259: gcc -std=gnu99 -o conftest -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Werror=implicit-function-declaration -Werror=format   conftest.c -lgd   >&5
configure:4259: $? = 0
configure:4268: result: yes

Your config.log should contain an error message. Could you post it here or, even better, attach the config.log to this thread?