Bug 696497

Summary: Ghostscript 9.18: did not support --without-jbig2dec and --without-jbig2dec which caused compile failure
Product: Ghostscript Reporter: hongxu <hongxu.jia>
Component: Build ProcessAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description hongxu 2016-01-07 00:47:22 UTC
While configure with option '--without-jbig2dec' and '--without-jbig2dec'.

There is failures at compile time
...
$ make
|make[1]: *** No rule to make target `obj/sjbig2_.dev', needed by `obj/sjbig2.dev'.  Stop.
|make[1]: *** Waiting for unfinished jobs....
...
| make: *** No rule to make target `obj/sjpx_.dev', needed by `obj/sjpx.dev'.  Stop.
| make: *** Waiting for unfinished jobs....
...

The reason is the rules in ./base/lib.mak did not consider  '--without-jbig2dec' and '--without-jbig2dec'.

In ./base/lib.mak, which '--without-jbig2dec', JBIG2_LIB is ""
which caused depended rule is `obj/sjbig2_.dev' which did not
exists
...
# ---------------- JBIG2 compression filter ---------------- #

$(GLD)sjbig2.dev : $(LIB_MAK) $(ECHOGS_XE) $(GLD)sjbig2_$(JBIG2_LIB).dev \
 $(LIB_MAK) $(MAKEDIRS)
	$(CP_) $(GLD)sjbig2_$(JBIG2_LIB).dev $(GLD)sjbig2.dev
...

The same reason for '--without-jbig2dec'

//Hongxu