diff options
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 00c51afd6..1699c96e7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,6 +11,14 @@ INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/src -I$(top_srcdir)/src bin_PROGRAMS = curl #memtest +if HAVE_LIBZ +# libz available, attempt to compress the help data +MKHELPOPT=-c +else +# no libz, don't try to compress +MKHELPOPT= +endif + #memtest_SOURCES = memtest.c #memtest_LDADD = $(top_srcdir)/lib/libcurl.la @@ -38,4 +46,4 @@ MKHELP=$(top_srcdir)/src/mkhelp.pl # This generates the hugehelp.c file hugehelp.c: $(README) $(MANPAGE) mkhelp.pl rm -f hugehelp.c - $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) > hugehelp.c + $(NROFF) -man $(MANPAGE) | $(PERL) -s $(MKHELP) $(MKHELPOPT) $(README) > hugehelp.c |