Lines Matching defs:sqlite
2 # sqlite build tree. They are in this file, instead of auto.def, so
23 msg-result "Configuring SQLite version [get-define PACKAGE_VERSION]"
38 # Gets set by [sqlite-configure] (the main configure script driver).
92 # use sqlite-config
93 # sqlite-configure BUILD_NAME { build-specific configure script }
96 # [sqlite-configure-finalize], which gets run after $configScript.
97 proc sqlite-configure {buildMode configScript} {
99 "sqlite-configure must not be called more than once"
244 copy of autosetup/jimsh0.c for that. The SQLite TCL extension and the
343 # --disable-static-shell: https://sqlite.org/forum/forumpost/cc219ee704
351 # soname: https://sqlite.org/src/forumpost/5a3b44f510df8ded
359 # dll-basename: https://sqlite.org/forum/forumpost/828fdfe904
366 # out-implib: https://sqlite.org/forum/forumpost/0c7fc097b2
377 sqlite's own development
418 # ^^^ lappend of [sqlite-custom-flags] introduces weirdness if
422 # sqlite-custom.tcl is intended only for vendor-branch-specific
425 if {[file exists $::autosetup(libdir)/sqlite-custom.tcl]} {
426 uplevel 1 {source $::autosetup(libdir)/sqlite-custom.tcl}
429 if {[llength [info proc sqlite-custom-flags]] > 0} {
430 # sqlite-custom-flags is assumed to be imported via
431 # autosetup/sqlite-custom.tcl.
432 set scf [sqlite-custom-flags]
434 lappend allFlags sqlite-custom-flags $scf
456 sqlite-configure-phase1 $buildMode
458 sqlite-configure-finalize
459 }; # sqlite-configure
463 # handling but before sqlite-configure's $configScript argument is
465 # [sqlite-configure].
466 proc sqlite-configure-phase1 {buildMode} {
467 define PACKAGE_NAME sqlite
468 define PACKAGE_URL {https://sqlite.org}
474 # to all build modes supported by [sqlite-configure].
490 sqlite-setup-default-cflags
507 sqlite-handle-hpux; # must be relatively early so that other config tests can work
508 }; # sqlite-configure-phase1
513 proc sqlite-configure-finalize {} {
514 sqlite-handle-rpath
515 sqlite-handle-soname
516 sqlite-handle-threadsafe
517 sqlite-handle-tempstore
518 sqlite-handle-load-extension
519 sqlite-handle-math
520 sqlite-handle-icu
522 sqlite-handle-line-editing
536 sqlite-handle-env-quirks
537 sqlite-handle-common-feature-flags
538 sqlite-finalize-feature-flags
539 sqlite-process-dot-in-files; # do not [define] anything after this
540 sqlite-dump-defines
582 # sqlite-add-shell-opt in addition to adding them to
585 proc sqlite-add-feature-flag {args} {
592 sqlite-add-shell-opt {*}$args
600 proc sqlite-add-shell-opt {args} {
612 proc sqlite-affirm-have-math {featureName} {
628 # build this must come before [sqlite-handle-wasi-sdk].
629 proc sqlite-check-common-bins {} {
630 cc-check-tools ld ar ; # must come before [sqlite-handle-wasi-sdk]
642 # [sqlite-handle-wasi-sdk], as that function may change the
644 proc sqlite-check-common-system-deps {} {
681 sqlite-add-shell-opt -DSQLITE_HAVE_ZLIB=1
682 sqlite-add-feature-flag -DSQLITE_HAVE_ZLIB=1
692 proc sqlite-munge-cflags {} {
697 # https://sqlite.org/forum/forumpost/9801e54665afd728
711 sqlite-add-feature-flag $cf
738 proc sqlite-setup-default-cflags {} {
750 # https://sqlite.org/forum/forumpost/9a67df63eda9925c
756 sqlite-munge-cflags
761 proc sqlite-handle-common-feature-flags {} {
792 fts3 -DSQLITE_ENABLE_FTS3 {sqlite-affirm-have-math fts3}
793 fts4 -DSQLITE_ENABLE_FTS4 {sqlite-affirm-have-math fts4}
794 fts5 -DSQLITE_ENABLE_FTS5 {sqlite-affirm-have-math fts5}
805 sqlite-add-feature-flag -DSQLITE_ENABLE_MEMSYS3
821 sqlite-add-feature-flag $featureFlag
833 # config option $boolFlag is false, [sqlite-add-feature-flag
842 sqlite-add-feature-flag $featureFlag
851 proc sqlite-finalize-feature-flags {} {
875 proc sqlite-handle-debug {} {
879 sqlite-add-feature-flag -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE
890 # https://sqlite.org/src/forumpost/5a3b44f510df8ded
891 proc sqlite-handle-soname {} {
933 proc sqlite-handle-threadsafe {} {
955 sqlite-add-feature-flag -DSQLITE_THREADSAFE=${enable}
965 proc sqlite-handle-tempstore {} {
980 sqlite-add-feature-flag -DSQLITE_TEMP_STORE=$tsn
1006 proc sqlite-handle-emsdk {} {
1045 # Internal helper for [sqlite-check-line-editing]. Returns a list of
1049 # sqlite-check-line-editing figure out how to find libreadline and
1052 proc sqlite-get-readline-dir-list {} {
1090 # sqlite-check-line-editing jumps through proverbial hoops to try to
1125 proc sqlite-check-line-editing {} {
1192 sqlite-add-shell-opt -DHAVE_LINENOISE=$lnVal
1248 set dirs [sqlite-get-readline-dir-list]
1324 sqlite-add-shell-opt -D${editLibDef}=1
1344 sqlite-add-shell-opt -DSQLITE_OMIT_READLINE_COMPLETION
1353 }; # sqlite-check-line-editing
1356 # Runs sqlite-check-line-editing and adds a message around it. In the
1358 # sqlite-determine-codegen-tcl for reasons now lost to history (and
1360 proc sqlite-handle-line-editing {} {
1361 msg-result "Line-editing support for the sqlite3 shell: [sqlite-check-line-editing]"
1392 proc sqlite-handle-icu {} {
1448 sqlite-add-feature-flag -shell -DSQLITE_ENABLE_ICU
1452 sqlite-add-feature-flag -shell -DSQLITE_ENABLE_ICU_COLLATIONS
1462 }; # sqlite-handle-icu
1477 # environments which identify as Windows for SQLite's purposes so
1482 proc sqlite-handle-load-extension {} {
1521 sqlite-add-feature-flag -DSQLITE_OMIT_LOAD_EXTENSION=1
1528 proc sqlite-handle-math {} {
1535 sqlite-add-feature-flag -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_PERCENTILE
1553 # Based on https://sqlite.org/forum/forumpost/9dfd5b8fd525a5d7.
1554 proc sqlite-handle-mac-cversion {} {
1582 # https://sqlite.org/forum/forumpost/5651662b8875ec0a
1583 proc sqlite-handle-mac-install-name {} {
1600 proc sqlite-handle-hpux {} {
1614 # set - see [sqlite-handle-env-quirks]) then this is always
1617 proc sqlite-handle-dll-basename {} {
1646 # (but see [sqlite-handle-env-quirks]). If that flag is used but the
1653 # Added in response to: https://sqlite.org/forum/forumpost/0c7fc097b2
1657 # - cygwin sqlite packages historically install no .dll.a file.
1659 # - msys2 and mingw sqlite packages historically install
1662 proc sqlite-handle-out-implib {} {
1702 proc sqlite-env-is-unix-on-windows {{envTuple ""}} {
1743 proc sqlite-handle-env-quirks {} {
1751 set x [sqlite-env-is-unix-on-windows $host]
1779 sqlite-handle-dll-basename
1780 sqlite-handle-out-implib
1781 sqlite-handle-mac-cversion
1782 sqlite-handle-mac-install-name
1783 if {[llength [info proc sqlite-custom-handle-flags]] > 0} {
1784 # sqlite-custom-handle-flags is assumed to be imported via a
1785 # client-specific import: autosetup/sqlite-custom.tcl.
1786 sqlite-custom-handle-flags
1793 proc sqlite-process-dot-in-files {} {
1820 # canonical build this must come after [sqlite-check-common-bins].
1821 proc sqlite-handle-wasi-sdk {} {
1888 }; # sqlite-handle-wasi-sdk
1893 # sqlite-check-tcl performs most of the --with-tcl and --with-tclsh
1900 # the TCL SQLite extension and, by extension, the testing
1920 proc sqlite-check-tcl {} {
2005 # https://sqlite.org/forum/forumpost/e04e693439a22457
2066 set tcllibdir $i/sqlite${sq3Ver}
2092 # TCL purposes (see: proc sqlite-determine-codegen-tcl).
2102 found. SQLite does not use TCL internally, but some optional
2106 }; # sqlite-check-tcl
2109 # sqlite-determine-codegen-tcl checks which TCL to use as a code
2125 proc sqlite-determine-codegen-tcl {} {
2195 }; # sqlite-determine-codegen-tcl
2198 # Runs sqlite-check-tcl and, if this is the canonical build,
2199 # sqlite-determine-codegen-tcl.
2200 proc sqlite-handle-tcl {} {
2201 sqlite-check-tcl
2203 msg-result "TCL for code generation: [sqlite-determine-codegen-tcl]"
2216 append libname sqlite
2226 proc sqlite-handle-rpath {} {
2232 # for which sqlite-env-is-unix-on-windows returns a non-empty
2235 # https://sqlite.org/forum/forumpost/13cac3b56516f849
2247 proc sqlite-dump-defines {} {