In makefile.am use "if ENABLE_..." conditionals only to decide which
files get included in general "make" and "make install" processes, not
for compilation rules. This way single filters can be built by "make
NAME" regardless whether appropriate "--enable-..." arguments got
supplied to "./configure".
Now we can do "make pstops" and make "make rastertopwg" without
appropriate arguments for "./configure".
$(CUPS_LIBS) \
libcupsfilters.la
-if ENABLE_RASTERTOPWG
rastertopwg_SOURCES = \
filter/rastertopwg.c
rastertopwg_CFLAGS = \
rastertopwg_LDADD = \
$(CUPS_LIBS) \
libcupsfilters.la
-endif
texttotext_SOURCES = \
filter/texttotext.c
libcupsfilters.la \
$(CUPS_LIBS)
-if ENABLE_PSTOPS
pstops_SOURCES = \
filter/pstops.c
pstops_CFLAGS = \
pstops_LDADD = \
libcupsfilters.la \
$(CUPS_LIBS)
-endif
pdftoraster_SOURCES = \
filter/pdftoraster.c