GD, Freetype2, and libjpeg
and i want to compile it with those how can i do that?
Are you trying to find out what versions of those libraries PHP was compiled with, or which versions of those libraries are available when compiling PHP yourself?
phpinfo