Fossil

Diff
Login

Diff

Differences From Artifact [5167d6021a]:

To Artifact [ea67f9993c]:


227
228
229
230
231
232
233
234
235
236
237
238
239






240
241
242



243

244
245
246
247
248
249
250
227
228
229
230
231
232
233






234
235
236
237
238
239



240
241
242

243
244
245
246
247
248
249
250







-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
-
+







        }
    } else {
        user-error "OpenSSL not found. Consider --with-openssl=none to disable HTTPS support"
    }
}

# Check for zlib, using the given location if specified
set zlibpath [opt-val with-zlib]
if {$zlibpath ne ""} {
    cc-with [list -cflags "-I$zlibpath -L$zlibpath"]
    define-append EXTRA_CFLAGS -I$zlibpath
    define-append EXTRA_LDFLAGS -L$zlibpath
    msg-result "Using zlib from $zlibpath"
#set zlibpath [opt-val with-zlib]
#if {$zlibpath ne ""} {
#    cc-with [list -cflags "-I$zlibpath -L$zlibpath"]
#    define-append EXTRA_CFLAGS -I$zlibpath
#    define-append EXTRA_LDFLAGS -L$zlibpath
#    msg-result "Using zlib from $zlibpath"
}
if {![cc-check-includes zlib.h] || ![cc-check-function-in-lib inflateEnd z]} {
    user-error "zlib not found please install it or specify the location with --with-zlib"
#}
#if {![cc-check-includes zlib.h] || ![cc-check-function-in-lib inflateEnd z]} {
#    user-error "zlib not found please install it or specify the location with --with-zlib"
}
#}

if {[opt-bool lineedit]} {
    # Need readline-compatible line editing
    cc-with {-includes stdio.h} {
        if {[cc-check-includes readline/readline.h] && [cc-check-function-in-lib readline readline]} {
            msg-result "Using readline for line editing"
        } elseif {[cc-check-includes editline/readline.h] && [cc-check-function-in-lib readline edit]} {