The error message says to call AC_PROG_CC, which that file already does, so the AM_PROG_CC_STDC line should be deleted from gs/ijs/configure.ac. I read a commit message stating that you do now want to use automake, but ijs, jbig2dec, jpeg, lcms, lcms2, libpng, openjpeg and tiff, as found in ghostpdl master, do use it and AM_PROG_CC_STDC causes the build to fail with automake-1.13.
Fixed in: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=e7de6bf7 Thanks for pointing it out.