EXTRA_ARGS=
PROFILE_ARGS=
-#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling"
+#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling compression"
+
+
+ifneq (,$(findstring compression,$(DEB_BUILD_OPTIONS)))
+ ZLIB_ARGS=--without-zlib
+else
+ ZLIB_ARGS=--with-zlib
+endif
ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS)))
PROFILE_ARGS= --with-gprof
endif
--with-rundir=/var/run/citadel \
--with-ical --with-db --with-ldap \
--with-ssldir=/etc/ssl/webcit/ \
- --with-zlib --with-ssl --with-libiconf \
+ $(ZLIB_ARGS) --with-ssl --with-libiconf \
--with-newt --with-included-gettext \
--with-datadir=/var/run/citadel \
--enable-debug $(EXTRA_ARGS) $(PROFILE_ARGS)