Lines Matching defs:sqlite
1 # Teaish configure script for the SQLite Tcl extension
24 # The canonical SQLite TEA(ish) build
27 set distname sqlite-tcl
30 # updating SQLite's tree.
36 set distname sqlite-teaish
44 proj-fatal "Cannot determine the SQLite version number"
49 "Unexpected SQLite version: $version"
63 -name sqlite
67 -libDir sqlite$version
75 # https://sqlite.org/forum/forumpost/fde857fb8101a4be
85 # build. Some, like ICU, are taken from the canonical SQLite tree.
87 with-system-sqlite=0
88 => {Use the system-level SQLite instead of the copy in this tree.
89 Also requires use of --override-sqlite-version so that the build
90 knows what version number to associate with the system-level SQLite.}
91 override-sqlite-version:VERSION
92 => {For use with --with-system-sqlite to set the version number.}
128 if {[proj-opt-was-provided override-sqlite-version]} {
129 teaish-pkginfo-set -version [opt-val override-sqlite-version]
130 proj-warn "overriding sqlite version number:" [teaish-pkginfo-get -version]
131 } elseif {[proj-opt-was-provided with-system-sqlite]
132 && [opt-val with-system-sqlite] ne "0"} {
133 proj-fatal "when using --with-system-sqlite also use" \
134 "--override-sqlite-version to specify a library version number."
138 sqlite-munge-cflags
144 sqlite-add-feature-flag {
152 if {[opt-bool with-system-sqlite]} {
162 sqlite-handle-threadsafe
163 sqlite-handle-tempstore
164 sqlite-handle-load-extension
165 sqlite-handle-math
166 sqlite-handle-icu
168 sqlite-handle-common-feature-flags; # must be late in the process
175 proc sqlite-add-feature-flag {args} {
187 proc sqlite-affirm-have-math {featureName} {
204 proc sqlite-handle-common-feature-flags {} {
235 fts3 -DSQLITE_ENABLE_FTS3 {sqlite-affirm-have-math fts3}
236 fts4 -DSQLITE_ENABLE_FTS4 {sqlite-affirm-have-math fts4}
237 fts5 -DSQLITE_ENABLE_FTS5 {sqlite-affirm-have-math fts5}
250 sqlite-add-feature-flag $featureFlag
262 # config option $boolFlag is false, [sqlite-add-feature-flag
271 sqlite-add-feature-flag $featureFlag
288 }; # sqlite-handle-common-feature-flags
298 proc sqlite-handle-threadsafe {} {
343 sqlite-add-feature-flag -DSQLITE_THREADSAFE=${enable}
362 proc sqlite-handle-load-extension {} {
394 sqlite-add-feature-flag -DSQLITE_OMIT_LOAD_EXTENSION=1
426 proc sqlite-handle-icu {} {
483 sqlite-add-feature-flag -DSQLITE_ENABLE_ICU
487 sqlite-add-feature-flag -DSQLITE_ENABLE_ICU_COLLATIONS
496 }; # sqlite-handle-icu
505 proc sqlite-handle-tempstore {} {
520 sqlite-add-feature-flag -DSQLITE_TEMP_STORE=$tsn
526 proc sqlite-handle-math {} {
535 sqlite-add-feature-flag -DSQLITE_ENABLE_MATH_FUNCTIONS
546 proc sqlite-munge-cflags {} {
560 sqlite-add-feature-flag $cf