25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
+
+
+
+
+
+
+
|
define EXTRA_CFLAGS ""
define EXTRA_LDFLAGS ""
define USE_SYSTEM_SQLITE ""
if {![opt-bool internal-sqlite]} {
if {![cc-check-function-in-lib sqlite3_open sqlite3]} {
if {![cc-check-function-in-lib sqlite3_open sqlite3 {-ldl}]} {
user-error "system sqlite3 not found"
} else {
# On some systems (slackware), the libsqlite3.so file cannot be
# linked without also specifying -ldl. This is a bug in the
# distribution.
define-append EXTRA_LDFLAGS -ldl
}
}
define USE_SYSTEM_SQLITE 1
}
if {[opt-bool fossil-debug]} {
define-append EXTRA_CFLAGS -DFOSSIL_DEBUG
}
|