$ cd gnu-ghostscript-8.55
$ sh ./configure
$ make
〜
jasper/src/libjasper/jpc/jpc_cs.c: In function 'jpc_getms':
jasper/src/libjasper/jpc/jpc_cs.c:244: warning: comparison is always false due to limited range of data type
jasper/src/libjasper/jpc/jpc_cs.c:291: error: 'ulong' undeclared (first use in this function)
jasper/src/libjasper/jpc/jpc_cs.c:291: error: (Each undeclared identifier is reported only once
jasper/src/libjasper/jpc/jpc_cs.c:291: error: for each function it appears in.)
make: *** [obj/jpc_cs.o] Error 1
$ cd jasper/src/libjasper/include/jasper
$ vi jas_config_ac.h
/* Define to `unsigned int' if does not define. */
/* #undef uint */
/* Define to `unsigned long' if does not define. */
/* #undef ulong */
/* Define to `unsigned long long' if does not define. */
#define ulonglong unsigned long long
↓
/* Define to `unsigned int' if does not define. */
/* #undef uint */
/* Define to `unsigned long' if does not define. */
#define ulong unsigned long
/* Define to `unsigned long long' if does not define. */
#define ulonglong unsigned long long
$ ./configure --help
〜
--with-png include PNG support (local, shared, no)
--with-ijs include IJS driver support
--with-jbig2dec include JBIG2 decode support
--with-jasper link to the JasPer library for JPEG 2000
〜
今回はこの機能を組み込んでみたい。
一旦、綺麗にして最初から
$ make distclean
$ sh ./configure --with-png --with-ijs --with-jbig2dec --with-jasper
$ make