Make using libpng only be enabled when NETSURF_USE_HARU_PDF is YES.

svn path=/trunk/netsurf/; revision=4749
This commit is contained in:
Rob Kendrick 2008-07-26 17:13:24 +00:00
parent 789ab037d1
commit c74b00445f
2 changed files with 3 additions and 3 deletions

View File

@ -153,9 +153,9 @@ else
LDFLAGS := $(shell $(PKG_CONFIG) --libs libxml-2.0 libcurl openssl)
endif
# Common libraries without pkgconfig support:
LDFLAGS += -lz -lm -lmng -ljpeg -lpng
LDFLAGS += -lz -lm -lmng -ljpeg
ifeq ($(NETSURF_USE_HARU_PDF),YES)
LDFLAGS += -lhpdf
LDFLAGS += -lhpdf -lpng
CFLAGS += -DWITH_PDF_EXPORT
endif
endif

View File

@ -6,7 +6,7 @@
# Use libharu to enable PDF export and GTK printing support. There is no
# auto-detection available for this, as it does not have a pkg-config file.
NETSURF_USE_HARU_PDF=YES
NETSURF_USE_HARU_PDF=NO
# The following options are GTK-specific
ifeq ($(TARGET),gtk)