From: Hans Kristian Rosbach Date: Sun, 6 Sep 2020 14:34:01 +0000 (+0200) Subject: Enable gzfileops by default when compiling using Cmake or configure. X-Git-Tag: 1.9.9-b1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0acb1966ad79dfc1eef33ab93d71618a2389ab9;p=thirdparty%2Fzlib-ng.git Enable gzfileops by default when compiling using Cmake or configure. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b42d8164..cd3764b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,7 +72,7 @@ endif() # # Options parsing # -option(WITH_GZFILEOP "Compile with support for gzFile related functions" OFF) +option(WITH_GZFILEOP "Compile with support for gzFile related functions" ON) option(ZLIB_COMPAT "Compile with zlib compatible API" OFF) option(ZLIB_ENABLE_TESTS "Build test binaries" ON) option(ZLIB_DUAL_LINK "Dual link tests against system zlib" OFF) diff --git a/README.md b/README.md index b7248a6e..a2c39770 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Build Options |:-------------------------|:-------------------------|:--------------------------------------------------------------------------------------|---------| | ZLIB_COMPAT | --zlib-compat | Compile with zlib compatible API | OFF | | ZLIB_ENABLE_TESTS | | Build test binaries | ON | -| WITH_GZFILEOP | --with-gzfileops | Compile with support for gzFile related functions | OFF | +| WITH_GZFILEOP | --without-gzfileops | Compile with support for gzFile related functions | ON | | WITH_MSAN | --with-msan | Build with memory sanitizer | OFF | | WITH_OPTIM | --without-optimizations | Build with optimisations | ON | | WITH_NEW_STRATEGIES | --without-new-strategies | Use new strategies | ON | diff --git a/configure b/configure index cb627c16..18891ce5 100755 --- a/configure +++ b/configure @@ -87,7 +87,7 @@ includedir=${includedir-'${prefix}/include'} mandir=${mandir-'${prefix}/share/man'} shared_ext='.so' shared=1 -gzfileops=0 +gzfileops=1 compat=0 cover=0 build32=0 @@ -149,7 +149,7 @@ case "$1" in echo ' [--warn] Enables extra compiler warnings' | tee -a configure.log echo ' [--debug] Enables extra debug prints during operation' | tee -a configure.log echo ' [--zlib-compat] Compiles for zlib-compatible API instead of zlib-ng API' | tee -a configure.log - echo ' [--with-gzfileops] Compiles with the gzfile parts of the API enabled' | tee -a configure.log + echo ' [--without-gzfileops] Compiles with the gzfile parts of the API enabled' | tee -a configure.log echo ' [--without-optimizations] Compiles without support for optional instruction sets' | tee -a configure.log echo ' [--without-new-strategies] Compiles without using new additional deflate strategies' | tee -a configure.log echo ' [--without-acle] Compiles without ARM C Language Extensions' | tee -a configure.log @@ -175,7 +175,7 @@ case "$1" in -s* | --shared | --enable-shared) shared=1; shift ;; -t | --static) shared=0; shift ;; --zlib-compat) compat=1; shift ;; - --with-gzfileops) gzfileops=1; shift ;; + --without-gzfileops) gzfileops=0; shift ;; --cover) cover=1; shift ;; -3* | --32) build32=1; shift ;; -6* | --64) build64=1; shift ;;