Add an --enable-demos option to contrib/minizip/configure.

This makes build-testing and installing the minizip/miniunzip programs
as simple as "autoreconf -if && ./configure --enable-demos && make &&
make install".  Without --enable-demos, the makefile will only build
and install the library, as before.  Helped by Mike Frysinger.

minizip/miniunzip were not intended to be general-purpose installed
utilities, but they can be useful from time to time as a lightweight
substitute for zip/unzip.  You can also use them to quickly test that
the library installation procedure worked.
This commit is contained in:
Jonathan Nieder
2012-01-21 15:55:54 -06:00
committed by Mark Adler
parent f0cff24214
commit 32d8a5379e
2 changed files with 14 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
lib_LTLIBRARIES = libminizip.la
if COND_DEMOS
bin_PROGRAMS = miniunzip minizip
endif
zlib_top_srcdir = $(top_srcdir)/../..
zlib_top_builddir = $(top_builddir)/../..