summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2020-09-06 16:34:01 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-09-11 12:38:35 +0200
commitb0acb1966ad79dfc1eef33ab93d71618a2389ab9 (patch)
treee53604d7e85390218d03ff0bd2778cdd475f9036
parentc3ae9634af291432cbf0ce73d9a14b31d7b301ba (diff)
Enable gzfileops by default when compiling using Cmake or configure.
-rw-r--r--CMakeLists.txt2
-rw-r--r--README.md2
-rwxr-xr-xconfigure6
3 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b42d816..cd3764b 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 b7248a6..a2c3977 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 cb627c1..18891ce 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 ;;