Compiling ghostscript on Ubuntu

It requires:

./configure
make XCFLAGS=-DHAVE_SYS_TIME_H=1
sudo make install[/code]

Otherwise it just keeps throwing errors about implicit declaration of function.