Fossil SCM

By default, use the automatic zlib detection. When --with-zlib=tree is used, use zlib from the source tree.

mistachkin 2016-01-11 22:27 UTC useTreeZlib
Commit 260266c1ec2cc2c347cd968158e395599c8dfc05
1 file changed +4 -3
+4 -3
--- auto.def
+++ auto.def
@@ -4,11 +4,12 @@
44
55
options {
66
with-openssl:path|auto|none
77
=> {Look for OpenSSL in the given path, or auto or none}
88
with-miniz=0 => {Use miniz from the source tree}
9
- with-zlib:path|auto => {Look for zlib in the given path or in the source tree}
9
+ with-zlib:path|auto|tree
10
+ => {Look for zlib in the given path, or auto or in the source tree}
1011
with-exec-rel-paths=0
1112
=> {Enable relative paths for external diff/gdiff}
1213
with-legacy-mv-rm=0 => {Enable legacy behavior for mv/rm (skip checkout files)}
1314
with-th1-docs=0 => {Enable TH1 for embedded documentation pages}
1415
with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages}
@@ -285,18 +286,18 @@
285286
define FOSSIL_ENABLE_MINIZ 1
286287
msg-result "Using miniz for compression"
287288
} else {
288289
# Check for zlib, using the given location if specified
289290
set zlibpath [opt-val with-zlib]
290
- if {$zlibpath in {auto ""}} {
291
+ if {$zlibpath eq "tree"} {
291292
set zlibdir [file dirname $autosetup(dir)]/compat/zlib
292293
cc-with [list -cflags "-I$zlibdir"]
293294
define-append EXTRA_CFLAGS -I$zlibdir
294295
define-append LIBS $zlibdir/libz.a
295296
msg-result "Using zlib in source tree"
296297
} else {
297
- if {$zlibpath ne ""} {
298
+ if {$zlibpath ni {auto ""}} {
298299
cc-with [list -cflags "-I$zlibpath -L$zlibpath"]
299300
define-append EXTRA_CFLAGS -I$zlibpath
300301
define-append EXTRA_LDFLAGS -L$zlibpath
301302
msg-result "Using zlib from $zlibpath"
302303
}
303304
--- auto.def
+++ auto.def
@@ -4,11 +4,12 @@
4
5 options {
6 with-openssl:path|auto|none
7 => {Look for OpenSSL in the given path, or auto or none}
8 with-miniz=0 => {Use miniz from the source tree}
9 with-zlib:path|auto => {Look for zlib in the given path or in the source tree}
 
10 with-exec-rel-paths=0
11 => {Enable relative paths for external diff/gdiff}
12 with-legacy-mv-rm=0 => {Enable legacy behavior for mv/rm (skip checkout files)}
13 with-th1-docs=0 => {Enable TH1 for embedded documentation pages}
14 with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages}
@@ -285,18 +286,18 @@
285 define FOSSIL_ENABLE_MINIZ 1
286 msg-result "Using miniz for compression"
287 } else {
288 # Check for zlib, using the given location if specified
289 set zlibpath [opt-val with-zlib]
290 if {$zlibpath in {auto ""}} {
291 set zlibdir [file dirname $autosetup(dir)]/compat/zlib
292 cc-with [list -cflags "-I$zlibdir"]
293 define-append EXTRA_CFLAGS -I$zlibdir
294 define-append LIBS $zlibdir/libz.a
295 msg-result "Using zlib in source tree"
296 } else {
297 if {$zlibpath ne ""} {
298 cc-with [list -cflags "-I$zlibpath -L$zlibpath"]
299 define-append EXTRA_CFLAGS -I$zlibpath
300 define-append EXTRA_LDFLAGS -L$zlibpath
301 msg-result "Using zlib from $zlibpath"
302 }
303
--- auto.def
+++ auto.def
@@ -4,11 +4,12 @@
4
5 options {
6 with-openssl:path|auto|none
7 => {Look for OpenSSL in the given path, or auto or none}
8 with-miniz=0 => {Use miniz from the source tree}
9 with-zlib:path|auto|tree
10 => {Look for zlib in the given path, or auto or in the source tree}
11 with-exec-rel-paths=0
12 => {Enable relative paths for external diff/gdiff}
13 with-legacy-mv-rm=0 => {Enable legacy behavior for mv/rm (skip checkout files)}
14 with-th1-docs=0 => {Enable TH1 for embedded documentation pages}
15 with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages}
@@ -285,18 +286,18 @@
286 define FOSSIL_ENABLE_MINIZ 1
287 msg-result "Using miniz for compression"
288 } else {
289 # Check for zlib, using the given location if specified
290 set zlibpath [opt-val with-zlib]
291 if {$zlibpath eq "tree"} {
292 set zlibdir [file dirname $autosetup(dir)]/compat/zlib
293 cc-with [list -cflags "-I$zlibdir"]
294 define-append EXTRA_CFLAGS -I$zlibdir
295 define-append LIBS $zlibdir/libz.a
296 msg-result "Using zlib in source tree"
297 } else {
298 if {$zlibpath ni {auto ""}} {
299 cc-with [list -cflags "-I$zlibpath -L$zlibpath"]
300 define-append EXTRA_CFLAGS -I$zlibpath
301 define-append EXTRA_LDFLAGS -L$zlibpath
302 msg-result "Using zlib from $zlibpath"
303 }
304

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button