]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Enable gzfileops by default when compiling using Cmake or configure.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Sun, 6 Sep 2020 14:34:01 +0000 (16:34 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 11 Sep 2020 10:38:35 +0000 (12:38 +0200)
CMakeLists.txt
README.md
configure

index b42d81642169725d6aa454e35bce4460c5c828d4..cd3764b86547bb6f146f0b9e831815a3655a6b62 100644 (file)
@@ -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)
index b7248a6e27fda4929b28a336b775b4af9668102a..a2c3977078db117f89edc90218c9bb2784a84dbd 100644 (file)
--- 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      |
index cb627c1672fa836bcce060172fa1528b5906caf9..18891ce5bf431cb066d97215ae72b92c8c4d53f2 100755 (executable)
--- 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 ;;