]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
8 months agoThe presence or absence of the linenoise-ship.c source file is sufficient to linenoise-detection
drh [Thu, 31 Oct 2024 11:04:57 +0000 (11:04 +0000)] 
The presence or absence of the linenoise-ship.c source file is sufficient to
differentiate Antirez linenoise from MSteveB linenoise.

FossilOrigin-Name: 28cc77b9167c81ba37c0d8fb93bbf05a62e0a0ceb1039324e03b9eb2403a9e80

8 months agoAdd a missing 'close' call to proj-file-content-list.
stephan [Thu, 31 Oct 2024 09:25:58 +0000 (09:25 +0000)] 
Add a missing 'close' call to proj-file-content-list.

FossilOrigin-Name: 005702f334e7c51d83fc1b142ab90fa6867c4c2e75c8a3d2a17e07669b47fb23

8 months agoAdd -trim flag to proj-file-content.
stephan [Thu, 31 Oct 2024 08:12:48 +0000 (08:12 +0000)] 
Add -trim flag to proj-file-content.

FossilOrigin-Name: babf66f5c7074c24ca8ae898cd850964e99cef41fd1395a0d6c582cab75ae3bf

8 months agoRemove some proj-assert checks which are not valid on OpenBSD. Ensure that queued...
stephan [Thu, 31 Oct 2024 08:03:35 +0000 (08:03 +0000)] 
Remove some proj-assert checks which are not valid on OpenBSD. Ensure that queued up notices about TCL warnings are displayed before leaving sqlite-check-tcl.

FossilOrigin-Name: 3447308f3f66046ffedd502161757211bef0384d7a735ff675c06c04fbc22655

8 months agoWhen reading in .default-CFLAGS, trim it.
stephan [Thu, 31 Oct 2024 07:30:53 +0000 (07:30 +0000)] 
When reading in .default-CFLAGS, trim it.

FossilOrigin-Name: a62a5171ace53b79feda93701f90d6d6f88eb5542bd35ac76f962745c58588b0

8 months agoAdd the .POSIX special target to the main makefiles to hint to the make impl that...
stephan [Thu, 31 Oct 2024 07:20:22 +0000 (07:20 +0000)] 
Add the .POSIX special target to the main makefiles to hint to the make impl that it should behave POSIXly-correct. Fix the default file extension for static libs in main.mk.

FossilOrigin-Name: 2c615d3a3206536f12c0723b8997bda9ab61f95a468f77697856213b46c0135e

8 months agoAdd more deps to T.tcl.env.sh so that it gets rebuilt if configure is run with a...
stephan [Thu, 31 Oct 2024 07:01:31 +0000 (07:01 +0000)] 
Add more deps to T.tcl.env.sh so that it gets rebuilt if configure is run with a different --with-tcl value. Remove all references to the superfluous XYZdir makefile vars conventionally set by the autotools (they're just noise in this build).

FossilOrigin-Name: 831665101e9c62cf49c173cb11705033eb9135a6a6965718285d81113ee5ba4c

8 months agoIf a file named .default-CFLAGS exists in the build dir, use its contents as the...
stephan [Thu, 31 Oct 2024 06:52:09 +0000 (06:52 +0000)] 
If a file named .default-CFLAGS exists in the build dir, use its contents as the default value of the CFLAGS unless it's overridden by being passed in or in the environment.

FossilOrigin-Name: 731d333c224e70190dadd214de1970ea541a3d716d1d7ff2c0ef6c63b8be9b13

8 months agoWhen --with-wasi-sdk is active, temporarily swap CC and CC_FOR_BUILD for purposes...
stephan [Thu, 31 Oct 2024 06:38:30 +0000 (06:38 +0000)] 
When --with-wasi-sdk is active, temporarily swap CC and CC_FOR_BUILD for purposes of looking for APIs required by B.cc.

FossilOrigin-Name: 435f2ee818d7181551c6860b6bc4db97f82d76b58fd82765a6cf49e2d02ff18c

8 months agoChange default CFLAGS to {-g -O2} to match the legacy build.
stephan [Thu, 31 Oct 2024 05:47:56 +0000 (05:47 +0000)] 
Change default CFLAGS to {-g -O2} to match the legacy build.

FossilOrigin-Name: 511774942903277b3d38f28336599667df20f94a8de79746b6c236b827b7ffc6

8 months agoFix a corner case in automatic TCLLIBDIR detection: if the $auto_path list is not...
stephan [Thu, 31 Oct 2024 01:51:00 +0000 (01:51 +0000)] 
Fix a corner case in automatic TCLLIBDIR detection: if the $auto_path list is not empty but none of them refer to an existing dir, the last dir in that list would have been accepted as the TCLLIBDIR. It will now error out instead.

FossilOrigin-Name: 1d2ecae1304d9f677bd50eaae6bd9cb25cb75c611d88a30839f5287a7a97d7d5

8 months agoReimplement how the TCL-related environment vars are made available to make recipes...
stephan [Thu, 31 Oct 2024 00:56:05 +0000 (00:56 +0000)] 
Reimplement how the TCL-related environment vars are made available to make recipes which need them, reducing the console noise and consolidating it with the has_tclconfig flag file. It now uses a generated shell snippet which it sources, rather than inlining all of that shell code.

FossilOrigin-Name: 0cdfd142e11824d41ebb6c6e508933e04ac6f6dc0dc375cc5b0032f56eb7f423

8 months agoMinor cleanups to the linenoise flavor detection test.
stephan [Wed, 30 Oct 2024 23:10:38 +0000 (23:10 +0000)] 
Minor cleanups to the linenoise flavor detection test.

FossilOrigin-Name: 3be32de1626f940e256076df76388e7633de57f340aac937f6a48d3585b96ca4

8 months agoMove the linenoise flavor check from auto.def to proj.tcl for re-use in downstream...
stephan [Wed, 30 Oct 2024 22:49:40 +0000 (22:49 +0000)] 
Move the linenoise flavor check from auto.def to proj.tcl for re-use in downstream projects.

FossilOrigin-Name: 84e503dc1e3672fe7787fb747ed70ca14ad181a743925bd1658c40baaa8a27cd

8 months agoExpand [c0048e4482e9] to determine the linenoise API flavor via a compile test rather...
stephan [Wed, 30 Oct 2024 22:41:12 +0000 (22:41 +0000)] 
Expand [c0048e4482e9] to determine the linenoise API flavor via a compile test rather than guessing based on the filename.

FossilOrigin-Name: dbf0079190d98ec1760cc3b55aa0116c9f85f215586bd864c5d6cede5a034fa5

8 months agoproj.tcl/main.mk doc updates. No functional changes.
stephan [Wed, 30 Oct 2024 22:09:49 +0000 (22:09 +0000)] 
proj.tcl/main.mk doc updates. No functional changes.

FossilOrigin-Name: e06574c6b4b666ef26f0fa06e6d60e5d896caaf1b1ca27f5369f5b7650d12b9b

8 months agoAdjust Makefile.in to honor the CC environment variable. Add the
drh [Wed, 30 Oct 2024 19:13:07 +0000 (19:13 +0000)] 
Adjust Makefile.in to honor the CC environment variable.  Add the
"show-variables" target to main.mk, for debugging.

FossilOrigin-Name: e5f1a01f9f574a64e464c66c1b88f76aeea83f0bbe697c53bb63d3592d93e55e

8 months agoFix the CLI so that it can use either the canonical Antirez linenoise
drh [Wed, 30 Oct 2024 14:03:56 +0000 (14:03 +0000)] 
Fix the CLI so that it can use either the canonical Antirez linenoise
(with HAVE_LINENOISE=1) or Steve Bennett's enhanced linenoise that works
on the Win32 console as well as on Unix (with HAVE_LINENOISE=2).  The
./configure script detects which one to use and sets HAVE_LINENOISE accordingly.

FossilOrigin-Name: c0048e4482e9cb9662637899922af9609e7c8fb002a37b71e6181074df7a0dd1

8 months agoClean up and add docs to the TCL vetting steps. Make warning and error messages bold...
stephan [Wed, 30 Oct 2024 05:07:18 +0000 (05:07 +0000)] 
Clean up and add docs to the TCL vetting steps. Make warning and error messages bold if stdout isatty.

FossilOrigin-Name: 47157dcf9ec6b52b37578bcd5dc5ace8c36e62c8ca2625c94252c15db784b115

8 months agoRemove accommodation of the legacy-named shared libraries from the installation rules...
stephan [Wed, 30 Oct 2024 04:07:16 +0000 (04:07 +0000)] 
Remove accommodation of the legacy-named shared libraries from the installation rules, per discussion. Rename install-includes to install-headers. Quote installation target dir names "just in case".

FossilOrigin-Name: 80584e165e4652e76cc3188befcee814f168298486743940bcf46696043686a0

8 months agoGeneric makefile cleanups.
stephan [Wed, 30 Oct 2024 03:51:21 +0000 (03:51 +0000)] 
Generic makefile cleanups.

FossilOrigin-Name: 6f86ff2e8c190e83c15dab532660a2a0c359621d1fcce4e6852e56ac6b7f71e3

8 months agoRe-enable exporting of TCLLIBDIR at configure-time so that clients can override it...
stephan [Wed, 30 Oct 2024 02:06:41 +0000 (02:06 +0000)] 
Re-enable exporting of TCLLIBDIR at configure-time so that clients can override it once there rather than having to override it on an arbitrary number of make invocations (which they can still do, but now need not). Based on feedback in [forum:38f6988e57b738e5|forum post 38f6988e57b].

FossilOrigin-Name: ee6e15f12ee55fd13cf31317d876e6ba03a7ae1fb9056f0013106948d81b31d9

8 months agoWhen calculating the TCLLIBDIR in main.mk, allow the user to override it using an...
stephan [Wed, 30 Oct 2024 01:47:48 +0000 (01:47 +0000)] 
When calculating the TCLLIBDIR in main.mk, allow the user to override it using an environment var or make var assignment, per feedback in [forum:38f6988e57b738e5|forum post 38f6988e57b].

FossilOrigin-Name: 838633182c3f9f9c4c1a23384ed025777c25427d9c4c1f1a47f1630cf4038ca5

8 months agoSplit the core-most CFLAGS, which should not be overridable (like -fPIC), into CFLAGS...
stephan [Tue, 29 Oct 2024 23:42:24 +0000 (23:42 +0000)] 
Split the core-most CFLAGS, which should not be overridable (like -fPIC), into CFLAGS.core, so that went CFLAGS=... is passed on in a make invocation the -fPIC flag is not lost (as reported in [forum:39f8c54391d38c72 | forum post 39f8c543]).

FossilOrigin-Name: f5899d22c6c2e65383d7e1ca43da740d3a56fb87daa204a642ce1dc963a98de2

8 months agoTry to detect if --with-readline-cflags is passed a non-cflags value, e.g. readline...
stephan [Tue, 29 Oct 2024 23:19:29 +0000 (23:19 +0000)] 
Try to detect if --with-readline-cflags is passed a non-cflags value, e.g. readline/readline.h, and fail loudly if it is. The legacy configure accepted that formulation but silently did nothing useful with it and that formulation now causes the auto-completion test to fail, as reported in [forum:f13b8e8f38402367 | forum post f13b8e8f38402367].

FossilOrigin-Name: c97f34d064c1fc1e6860761a417aaab2a79bd3871bcd1dad1d0d3b6f4b692a1e

8 months agoGeneral auto.def cleanups and docs.
stephan [Tue, 29 Oct 2024 20:27:36 +0000 (20:27 +0000)] 
General auto.def cleanups and docs.

FossilOrigin-Name: e2f41c2540d8ff7686bfe22336598896de9083d139fc5a291c0f19896b9c1d20

8 months agoReformulate the readline completion signature compatibility test so that -Wunused...
stephan [Tue, 29 Oct 2024 19:03:22 +0000 (19:03 +0000)] 
Reformulate the readline completion signature compatibility test so that -Wunused-variable in the CFLAGS does not cause it to fail. Problem reported via email.

FossilOrigin-Name: 3891669a3fdd71f7095cf464f6e4e2b870d6c23e79b9f796b1125b2040f05519

8 months agoRename an almost-name-colliding auto.def function. Fix a refactoring-induced change...
stephan [Tue, 29 Oct 2024 18:50:25 +0000 (18:50 +0000)] 
Rename an almost-name-colliding auto.def function. Fix a refactoring-induced change which broke implicit lookup of tclConfig.sh. Add msg-debug proc to enable toggling of developer-level debug messages via a configure argument.

FossilOrigin-Name: 265ba15df1e64a50722118ac6d84667b0abd35fe8f4db28facf7788c50ac6cde

8 months agoRemove some extraneous configure output.
stephan [Tue, 29 Oct 2024 17:55:12 +0000 (17:55 +0000)] 
Remove some extraneous configure output.

FossilOrigin-Name: 2234569edb15bb8b229e1b785aea08dd515798419ffe39c50f8399ce984258ac

8 months agoFix a typo in LICENSE.md
drh [Tue, 29 Oct 2024 14:22:12 +0000 (14:22 +0000)] 
Fix a typo in LICENSE.md

FossilOrigin-Name: decc60034849c232a05c8eb93ff0c6a5d6a48336d960771ed096d89633a9d0e2

8 months agoWhen either --readline or --editline are explicitly provided but the corresponding...
stephan [Tue, 29 Oct 2024 08:42:06 +0000 (08:42 +0000)] 
When either --readline or --editline are explicitly provided but the corresponding feature is not found, fail fatally. If not explicitly requested, simply disable that feature if the lib is not found.

FossilOrigin-Name: 1d24a29c6ef05185950ba5c45f2a60a92f12a8e5c57026b599f716c9f2f6cf84

8 months agoMinor --help text tweak.
stephan [Tue, 29 Oct 2024 08:18:45 +0000 (08:18 +0000)] 
Minor --help text tweak.

FossilOrigin-Name: 80ac10ed8d0ee9eaf83a6c43608098c631f5f9535c8b125da5bfe2d6a4d23bec

8 months agoAdd proj-assert proc and add a couple of asserts to the editline/readline checks.
stephan [Tue, 29 Oct 2024 08:14:34 +0000 (08:14 +0000)] 
Add proj-assert proc and add a couple of asserts to the editline/readline checks.

FossilOrigin-Name: db9870caa806c902cae033a96fec48db1b2d78b96b124e568479c5326e006c9b

8 months agoTeach configure --editline to report itself to shell.c as either HAVE_EDITLINE or...
stephan [Tue, 29 Oct 2024 08:01:56 +0000 (08:01 +0000)] 
Teach configure --editline to report itself to shell.c as either HAVE_EDITLINE or HAVE_READLINE, depending on which headers are available (editline/readline.h or readline/readline.h, both of which work and some systems only have the latter), but then link against libedit regardless of which one shell.c thinks it is using.

FossilOrigin-Name: 85077b20e69ed269f8840bb900e823981bebd82063853fbf178b1af44a6951ba

8 months agoRemove LDFLAGS_LIBZ from sqlite3.pc.in (pkg-config) because it's not needed by the...
stephan [Tue, 29 Oct 2024 04:21:11 +0000 (04:21 +0000)] 
Remove LDFLAGS_LIBZ from sqlite3.pc.in (pkg-config) because it's not needed by the library, only the shell. Re-enable the notice about --disable-static only being partially true.

FossilOrigin-Name: e03c564aff6e3ac558f17670bfdd5fc129a8d33ec50975af843973152483e3fa

8 months agoRemove some dead auto.def code. Link tclsqlite3 shell against the .so instead of...
stephan [Tue, 29 Oct 2024 03:29:45 +0000 (03:29 +0000)] 
Remove some dead auto.def code. Link tclsqlite3 shell against the .so instead of .a, analog to [45315f8f275d]. Move some header file tests which are only needed for jimsh into the jimsh compilability check block.

FossilOrigin-Name: 9a259026ae2dce5d60b80bd7d662a6e73734e51056f4a4226c3fa5ac636b5e3a

8 months agoEnclose the generated "sqlite3.c" and "sqlite3.h" in a single big #ifdef so
drh [Mon, 28 Oct 2024 22:35:32 +0000 (22:35 +0000)] 
Enclose the generated "sqlite3.c" and "sqlite3.h" in a single big #ifdef so
that if they get truncated by more than a little whitespace, they will not
compile and the truncation can be easily detected.

FossilOrigin-Name: c3b624e2a903f0c975bc8b7288b98616a4a22b2a574738d1f578bfad1d6d8b91

8 months agoRemove unnecessary install-sh and spec.template files.
drh [Mon, 28 Oct 2024 19:19:58 +0000 (19:19 +0000)] 
Remove unnecessary install-sh and spec.template files.

FossilOrigin-Name: 3acb6d789eecd05010e6949b77b58f71cd39446ddf1a66ab89fae6757ccacd31

8 months agoMinor makefile formatting cleanups. No functional changes.
stephan [Mon, 28 Oct 2024 18:41:42 +0000 (18:41 +0000)] 
Minor makefile formatting cleanups. No functional changes.

FossilOrigin-Name: 10b2cfdccd06553752baf684ccd7f4f85a697e3f0f6dfc5e5dda6b231fa4352d

8 months agoCalculate TCLLIBDIR in the makefile targets which use it, rather than via the configu...
stephan [Mon, 28 Oct 2024 18:30:46 +0000 (18:30 +0000)] 
Calculate TCLLIBDIR in the makefile targets which use it, rather than via the configure script. This enables its use in static makefiles.

FossilOrigin-Name: 6b1494cecb48535b909f8a48ccb56e147221601380a1457ff85ab861fa576ea1

8 months agoRemove the ltmain.sh autotools remnant.
stephan [Mon, 28 Oct 2024 17:30:11 +0000 (17:30 +0000)] 
Remove the ltmain.sh autotools remnant.

FossilOrigin-Name: dad5eb9393e87403b932ddfb9da6db0ce1d6ed75c4771f22e87fbce1b0c206c2

8 months agoRemove the never-used and never-documented and long-ago deprecated
drh [Mon, 28 Oct 2024 17:27:15 +0000 (17:27 +0000)] 
Remove the never-used and never-documented and long-ago deprecated
user-authentication feature option.

FossilOrigin-Name: 3a3f7bf4307c27e56546e51da06ecc9a262cdf155fda2dd359aa2326d207a147

8 months agoPerform some makefile acrobatics to get the tclConfig.sh state applied for static...
stephan [Mon, 28 Oct 2024 17:20:18 +0000 (17:20 +0000)] 
Perform some makefile acrobatics to get the tclConfig.sh state applied for static makefiles.

FossilOrigin-Name: 9b141d108b64c8f4e1103de6f142d972b5151eed0f07988fea308fc71cec45b8

8 months agoThe async extension was superseded by WAL mode about 11 years ago, and has
drh [Mon, 28 Oct 2024 16:31:20 +0000 (16:31 +0000)] 
The async extension was superseded by WAL mode about 11 years ago, and has
long been deprecated.  Remove it from the source tree.  (Anybody who really
needs it can still dig it out of the historical records.)

FossilOrigin-Name: f98da150a9c18dfaf9d5178ceee227caf7fce9c9c9194a7a4291abb40de832fa

8 months agoHave sqlite3_rsync avoid write-locking the origin database.
dan [Mon, 28 Oct 2024 16:28:43 +0000 (16:28 +0000)] 
Have sqlite3_rsync avoid write-locking the origin database.

FossilOrigin-Name: b7eb6530505bf774cf3fa5de6ec4bc40f217796d4fa9a149372bd47488ed470f

8 months agoOmit the antiquated and long-unsupport async extension since it has been omit-async
drh [Mon, 28 Oct 2024 15:38:53 +0000 (15:38 +0000)] 
Omit the antiquated and long-unsupport async extension since it has been
superseded by WAL mode for over a decade.

FossilOrigin-Name: 10b1b86821bfc21377e7ccceb31146ab01aa6eaf418b85a204abcab5b793958e

8 months agoOmit ext/consio from the tree. No longer needed or supported.
drh [Mon, 28 Oct 2024 14:53:45 +0000 (14:53 +0000)] 
Omit ext/consio from the tree.  No longer needed or supported.

FossilOrigin-Name: 1ce8507f732a26508a9b336cb27756a0a8638e14395efdd59b5faef40526ede5

8 months agoUpdate Makefile.linux-generic to account for recent var renaming.
stephan [Mon, 28 Oct 2024 14:46:33 +0000 (14:46 +0000)] 
Update Makefile.linux-generic to account for recent var renaming.

FossilOrigin-Name: 6cb7cb7e33835d42cbab2e5468d73de7bb3b01971da078ce1c1344edc11ab1b3

8 months agoLink libtclsqlite3.so to libsqlite3.so, not libsqlite3.a.
stephan [Mon, 28 Oct 2024 14:24:36 +0000 (14:24 +0000)] 
Link libtclsqlite3.so to libsqlite3.so, not libsqlite3.a.

FossilOrigin-Name: 45315f8f275db6059bdff7a8269014f06a793debd90675ac877f3a6f5c6ba4a4

8 months agoRename the 'hwaci' auto.def utility API to the more generic 'proj' API, per /chat...
stephan [Mon, 28 Oct 2024 14:16:50 +0000 (14:16 +0000)] 
Rename the 'hwaci' auto.def utility API to the more generic 'proj' API, per /chat discussion. Fix a function name typo which caused readline detection to kill the configure in one code path.

FossilOrigin-Name: e20610f06bfc6f4ebc5806da05c307d91e1f0a8c7a7501a7953273dbf1816fee

8 months agoRemove the long-unused, legacy vsixtest/ logic from the source tree.
drh [Mon, 28 Oct 2024 13:16:32 +0000 (13:16 +0000)] 
Remove the long-unused, legacy vsixtest/ logic from the source tree.

FossilOrigin-Name: 45ec9415b2b76a757e8bd25eed520dcc012ba67cbb3530ee8dcc42ac6125464a

8 months agoSimplify how hwaci-xfer-options-aliases figures out whether flags are provided.
stephan [Mon, 28 Oct 2024 11:13:00 +0000 (11:13 +0000)] 
Simplify how hwaci-xfer-options-aliases figures out whether flags are provided.

FossilOrigin-Name: f06122a543f7dac016c8da1cd92a629eb647142b95c85a131b9da8e0dc5516b0

8 months agoDocument why -IPREFIX/include is now part of T.cc.sqlite.
stephan [Mon, 28 Oct 2024 02:49:45 +0000 (02:49 +0000)] 
Document why -IPREFIX/include is now part of T.cc.sqlite.

FossilOrigin-Name: d64dcb1a897f6cc690c680cdaf85272e2dd249f36798219834116b1375f74d34

8 months agoCorrect the default config value for HAVE_TCL (0 until proven otherwise) and fix...
stephan [Mon, 28 Oct 2024 02:46:57 +0000 (02:46 +0000)] 
Correct the default config value for HAVE_TCL (0 until proven otherwise) and fix the starting dir for SQLITE_AUTORECONFIG (formerly SQLITE_AUTOREMAKE), as reported in [forum:8ab69387008f2f6c | forum post 8ab69387008f2f6c].

FossilOrigin-Name: 55f78b639624ad360d04c102339ef7147d6d24dd9bd0d17b346df0c03ee443b6

8 months agoHave --enable-editline fail rather than emit a warning which would easily be overlook...
stephan [Mon, 28 Oct 2024 02:11:51 +0000 (02:11 +0000)] 
Have --enable-editline fail rather than emit a warning which would easily be overlooked by automated builds. The error message explains a potential workaround for activating libedit.

FossilOrigin-Name: 2bd1b9557a1619adcaf5aa6dc5d5d0972e8416dafc9f36621b409192be95223d

8 months agoDocs and small code cleanups in hwaci-common.tcl.
stephan [Mon, 28 Oct 2024 01:13:00 +0000 (01:13 +0000)] 
Docs and small code cleanups in hwaci-common.tcl.

FossilOrigin-Name: 1353d4b600ae2849d2591b3fba0cad71289ee996334222a6886dc01cd4be5c07

8 months agoAdd --with-icu-config flag to use the icu-config binary to find the required ldflags...
stephan [Mon, 28 Oct 2024 00:56:31 +0000 (00:56 +0000)] 
Add --with-icu-config flag to use the icu-config binary to find the required ldflags for linking the ICU libraries.

FossilOrigin-Name: 64f33bb125102b3fec3901f4b56098429509ec0b6ce6e6b88af2393c344ac864

8 months agoExpand the 'make help' target and clean up some overly-noisy configure output.
stephan [Sun, 27 Oct 2024 22:34:07 +0000 (22:34 +0000)] 
Expand the 'make help' target and clean up some overly-noisy configure output.

FossilOrigin-Name: c895766ed31f55c02f05d357333e9cf45e82ec5af4d8b0491270e4fda7a57d42

8 months agoRe-order the auto.def flags logical groups. Add some discrete bold formatting to...
stephan [Sun, 27 Oct 2024 22:18:33 +0000 (22:18 +0000)] 
Re-order the auto.def flags logical groups. Add some discrete bold formatting to select configure output. Remove some dead code. Account for behavior misunderstanding of user-notice. Add the start of a 'make help' target. General cosmetic cleanups.

FossilOrigin-Name: ab95ee33dfe56bd3b223f978626e6014414881c30443a2b88c782de724c39ae1

8 months agoGeneric cleanups in auto.def and hwaci-common.tcl.
stephan [Sun, 27 Oct 2024 20:46:09 +0000 (20:46 +0000)] 
Generic cleanups in auto.def and hwaci-common.tcl.

FossilOrigin-Name: 428e542452bac99d48950f1f62b65b4e235636540b946151747e2d5b59dbfd99

8 months agoDoc additions and minor cleanups in the --flag alias handling.
stephan [Sun, 27 Oct 2024 20:14:49 +0000 (20:14 +0000)] 
Doc additions and minor cleanups in the --flag alias handling.

FossilOrigin-Name: 37a1da038195365cd7eb866b3aa749ad8060a656ac38063520fdb70cf0a0e5f1

8 months agoRename --with-readline-lib/inc to --with-readline-ldflags/cflags, for clarity, but...
stephan [Sun, 27 Oct 2024 20:04:23 +0000 (20:04 +0000)] 
Rename --with-readline-lib/inc to --with-readline-ldflags/cflags, for clarity, but retain the older names as aliases using autosetup's "hidden alias" feature. Rename the newly-added --with-icu-lib to --with-icu-ldflags (with no backwards compatibility).

FossilOrigin-Name: e50a03f9f2a40a5e65f874ffff234a7b397ce4ebdc7b360d4e6ade7575577c38

8 months agoWhen ICU is enabled, ensure that the CLI shell build enables its feature flag and...
stephan [Sun, 27 Oct 2024 19:26:54 +0000 (19:26 +0000)] 
When ICU is enabled, ensure that the CLI shell build enables its feature flag and include LDFLAGS_ICU in sqlite3.pc.

FossilOrigin-Name: abec913c00564ee5453075f45b1a6680e92ee1b1e61e3b19e4cf74e46785d3bf

8 months agoWhen readline is enabled, attempt to determine whether the completion API is compatib...
stephan [Sun, 27 Oct 2024 18:46:11 +0000 (18:46 +0000)] 
When readline is enabled, attempt to determine whether the completion API is compatible and, if it's not, disable it in the shell app.

FossilOrigin-Name: 4564dbe4ac0040803b5d139c9fff22a60a45b4769d80ad7c824456cc6b9f1722

8 months agoFix build errors in fts5_tcl.c on Mac.
drh [Sun, 27 Oct 2024 16:12:58 +0000 (16:12 +0000)] 
Fix build errors in fts5_tcl.c on Mac.

FossilOrigin-Name: 133fff8bd79d46f74eeeee677a929b611f3af79cbc492864211e61e2a35846e9

8 months agoFix test code added by [ba358d26].
dan [Sun, 27 Oct 2024 15:58:28 +0000 (15:58 +0000)] 
Fix test code added by [ba358d26].

FossilOrigin-Name: b7da7980d33e2f2d5d0a4384a43eff39e1a2de4f53b8b4074eea48598a35b9d7

8 months agoImprovements to the PATTERN option of the "testrunner.tcl joblist" command.
drh [Sun, 27 Oct 2024 10:48:06 +0000 (10:48 +0000)] 
Improvements to the PATTERN option of the "testrunner.tcl joblist" command.
The pattern match is case insensitive and applies to the state and displaytype
in addition to displayname.

FossilOrigin-Name: 63a8f60f98115d4ee6e40de3ae775770aba76e19df6ddde68bccb7967b0200dc

8 months agoHelp systems still using Tcl8.6 to compile tclsqlite.c by changing a
drh [Sun, 27 Oct 2024 10:33:47 +0000 (10:33 +0000)] 
Help systems still using Tcl8.6 to compile tclsqlite.c by changing a
typedef into a #define.

FossilOrigin-Name: 82ab8ff399aafa3a1faec9c85e9d6bdd26636f28f3ea22287999a868bb78db57

8 months agoRemove some incorrect code comments.
stephan [Sun, 27 Oct 2024 09:28:35 +0000 (09:28 +0000)] 
Remove some incorrect code comments.

FossilOrigin-Name: 6dfda7f5799f5a2448d3bd57fe9422de100bd8f4f9e53e97f73eeb85c3707b0f

8 months agoRe-add the --disable-static flag to (mostly) disable static lib build. Some component...
stephan [Sun, 27 Oct 2024 08:52:20 +0000 (08:52 +0000)] 
Re-add the --disable-static flag to (mostly) disable static lib build. Some components require the static lib and will trump this preference if they are activated.

FossilOrigin-Name: e296cd11a2bd87bffc9c661baea6539c0258b5e9cf3e9bc516f07c758b3e5939

8 months agoGeneric auto.def cleanups.
stephan [Sun, 27 Oct 2024 08:29:18 +0000 (08:29 +0000)] 
Generic auto.def cleanups.

FossilOrigin-Name: 19a5377e608e7ab8fb5733a87ab02a6a69511570c3829e2c1befecc582a6f8ee

8 months agoEnsure that --disable-tcl is honored. Move LDFLAGS.icu from the CLI shell target...
stephan [Sun, 27 Oct 2024 08:10:56 +0000 (08:10 +0000)] 
Ensure that --disable-tcl is honored. Move LDFLAGS.icu from the CLI shell target to LDFLAGS.libsqlite3.

FossilOrigin-Name: 39ce3f6350d811f27e5104e3dd01de2b04ce2a36edcbefd08596b8ca6c6226ff

8 months agoconfigure: add --with-icu-lib=LDFLAGS and --enable-icu-collations. Fix auto-reconfigu...
stephan [Sun, 27 Oct 2024 07:06:03 +0000 (07:06 +0000)] 
configure: add --with-icu-lib=LDFLAGS and --enable-icu-collations. Fix auto-reconfigure when flags contain spaces.

FossilOrigin-Name: 2a881a2e1b7355c7733c3a41a82290ba6f3983232a9ec378d9a1b62ee4109f54

8 months agoMakefile.in: include CPPFLAGS in the CFLAGS, as the legacy Makefile.in did, because...
stephan [Sun, 27 Oct 2024 06:03:27 +0000 (06:03 +0000)] 
Makefile.in: include CPPFLAGS in the CFLAGS, as the legacy Makefile.in did, because some downstream scripts rely on that. Remove a duplicated TCLLIBDIR assignment.

FossilOrigin-Name: 8e352f4199e048030113e0cc359eaadb6d29bc4b3dd7a0442d7500f7c3847e50

8 months agoconfigure: document why --enable-editline does not work and emit a warning with a...
stephan [Sun, 27 Oct 2024 05:28:52 +0000 (05:28 +0000)] 
configure: document why --enable-editline does not work and emit a warning with a potential alternative/workaround if it's used. Various cosmetic cleanups.

FossilOrigin-Name: ccb8f16f8a5c500b683800672aa4bc87d2f109e87ebdabf6c54d5b6dc69718f7

8 months agoBring the automated readline detection up to parity with the legacy configure script.
stephan [Sun, 27 Oct 2024 04:27:47 +0000 (04:27 +0000)] 
Bring the automated readline detection up to parity with the legacy configure script.

FossilOrigin-Name: 2ddeb7a8f55735cc7f2cf95cbbb0b20c563ced87db1429816fcfb0ee89e751f0

8 months agoRename --with-readline-ldflags/cflags to --with-readline-lib/inc because it turns...
stephan [Sun, 27 Oct 2024 02:27:07 +0000 (02:27 +0000)] 
Rename --with-readline-ldflags/cflags to --with-readline-lib/inc because it turns out that ldflags/cflags have (when passed an explicit value) the same semantics the legacy lib/inc flags. Still to-fix is that the no-flag-given readline search behavior differs, and is much more limited, from the legacy configure behavior.

FossilOrigin-Name: 8f6897b92c6a059f1c658ccce5bdc9ff3d29b41eec8298c6d46c7aeabace1d89

8 months agoCorrect sqlite3.pc to represent the library, not the CLI shell. Remove the half-baked...
stephan [Sun, 27 Oct 2024 02:08:38 +0000 (02:08 +0000)] 
Correct sqlite3.pc to represent the library, not the CLI shell. Remove the half-baked an unused READLINE_H config define. Internal tcl doc fixes.

FossilOrigin-Name: c8c70353bbdcee20487766f5f03f1638a1c35022bb5f1249141b86d561f1b613

8 months agoGet --with-linenoise=DIR configure flag working.
stephan [Sat, 26 Oct 2024 21:51:04 +0000 (21:51 +0000)] 
Get --with-linenoise=DIR configure flag working.

FossilOrigin-Name: 66ce47e5de21c607d2ef1f1e6e639f3c6da132ff3db582e12bd174f7d89d8150

8 months agoRemove the install-lib makefile dep from install-tcl, as it breaks non-root-user...
stephan [Sat, 26 Oct 2024 19:16:18 +0000 (19:16 +0000)] 
Remove the install-lib makefile dep from install-tcl, as it breaks non-root-user invocations of 'make install-tcl' when the --prefix is left at its default and --with-tcl is explicitly provided.

FossilOrigin-Name: e7eabfb61f72dc396fab9d0671642f8150cde23aea965c5e77ac3d9ad11c749f

8 months agoconfigure flag --disable-readline now trumps --with-readline-...
stephan [Sat, 26 Oct 2024 18:34:39 +0000 (18:34 +0000)] 
configure flag --disable-readline now trumps --with-readline-...

FossilOrigin-Name: b66076e51bc1601864973be0f3f2b702b51139ed3818f17433fbaa8351119ad6

8 months agoAdd new configure --with-readline-ldflags/cflags/header flags as brute-force method...
stephan [Sat, 26 Oct 2024 18:17:17 +0000 (18:17 +0000)] 
Add new configure --with-readline-ldflags/cflags/header flags as brute-force method for clients to tell configure how to compile and link against readline.

FossilOrigin-Name: eaa3a8053eb0935bc47abc1001ff101d79b3f181ac7ea51d3e567cb59ae4c7b3

8 months agoAdd test case for fts5 trigram tokenizer.
dan [Sat, 26 Oct 2024 18:09:13 +0000 (18:09 +0000)] 
Add test case for fts5 trigram tokenizer.

FossilOrigin-Name: ba358d265b7ee360d62b5219faaa1010ea90dac4e20cc7adc3ebd46161a65f94

8 months agoIn Makefile.msc, build jimsh0.exe locally, not in the source directory.
drh [Sat, 26 Oct 2024 17:47:19 +0000 (17:47 +0000)] 
In Makefile.msc, build jimsh0.exe locally, not in the source directory.

FossilOrigin-Name: 1b9eb4564bc38cbc6a51ed1c4508f1ba45459630cfda8765c243c9aa0fc7d763

8 months agoRemove LDFLAGS_ZLIB from sqlite3.pc.in because -lsqlite3 already includes that.
stephan [Sat, 26 Oct 2024 16:04:36 +0000 (16:04 +0000)] 
Remove LDFLAGS_ZLIB from sqlite3.pc.in because -lsqlite3 already includes that.

FossilOrigin-Name: 47e50fa84dacf83c2aca62140413c7eeba934e57289a6f6e6fff3ce24448d90a

8 months agoPatch bundle accumulated via /chat: add missing --enable/disable-shared flag to confi...
stephan [Sat, 26 Oct 2024 16:03:04 +0000 (16:03 +0000)] 
Patch bundle accumulated via /chat: add missing --enable/disable-shared flag to configure script and update testrunner.tcl for other configure script flag changes.

FossilOrigin-Name: 32fc9c3f62601684b4ded783a79ebf817d093588c87ece02b449c3542881b65a

8 months agoFix a bug in the computation of LDFLAGS.libsqlite3 introduced by [63218898ed0a6d46].
drh [Sat, 26 Oct 2024 11:18:29 +0000 (11:18 +0000)] 
Fix a bug in the computation of LDFLAGS.libsqlite3 introduced by [63218898ed0a6d46].

FossilOrigin-Name: 58373d523cece0b39a29edcccecf93cfdc7ac68f9f12130ee8e487675d3f6a4d

8 months agoAdd missing B.exe extension to src-verify, as reported in the forum.
stephan [Sat, 26 Oct 2024 04:31:04 +0000 (04:31 +0000)] 
Add missing B.exe extension to src-verify, as reported in the forum.

FossilOrigin-Name: 2801fb6507fc98730449168f3cf49495690e634c004c7074b4d45a0bd7513d41

8 months agoDoc typo fix.
stephan [Sat, 26 Oct 2024 03:30:18 +0000 (03:30 +0000)] 
Doc typo fix.

FossilOrigin-Name: da50e85d9a2020f4c59a72d6ae775fa32c275f0d5086c3caf9b13ab0a937fe1f

8 months agoRephrase 'older' as 'legacy' in the docs from [0a50e33051] and [2b2ca7dec18d].
stephan [Sat, 26 Oct 2024 03:22:44 +0000 (03:22 +0000)] 
Rephrase 'older' as 'legacy' in the docs from [0a50e33051] and [2b2ca7dec18d].

FossilOrigin-Name: d212cc36824acd490a0afd8bc393159612075438b9f3fab992deec9d78d8a366

8 months agoExpand the libtool-style link support from [0a50e33051] such that if INSTALL_SO_086_L...
stephan [Sat, 26 Oct 2024 03:19:29 +0000 (03:19 +0000)] 
Expand the libtool-style link support from [0a50e33051] such that if INSTALL_SO_086_LINKS=1 is passed to 'make install' then the libtool-style names are always linked in, regardless of whether they already existed or not. In either case, we unconditionally remove libsqlite3.la because it cannot work with the newly-installed non-libtool .so file.

FossilOrigin-Name: 2b2ca7dec18d6b53ba7810a2ecf3937d98b5b08232d4f82d16fa2ad5f9fd83b2

8 months agoDisable generation of config.defines.json until/unless it proves interesting. Honor...
stephan [Sat, 26 Oct 2024 03:05:20 +0000 (03:05 +0000)] 
Disable generation of config.defines.json until/unless it proves interesting. Honor the --disable-largefile flag. When installing libsqlite3.so and an older-style libtool installation is found, re-link the libtool-generated files to the newly-installed ones to retain their historical names.

FossilOrigin-Name: 0a50e33051fbdd5b7b7f0ab7eb2b2561d259098075fa8847868017041d789484

8 months agoCorrect unresolved @LIBS@ placeholder in sqlite3.pc.in.
stephan [Fri, 25 Oct 2024 23:45:05 +0000 (23:45 +0000)] 
Correct unresolved @LIBS@ placeholder in sqlite3.pc.in.

FossilOrigin-Name: 63218898ed0a6d466a282f10819d51a7f480d8f12316b74ee8a3f402fcc4e927

8 months agoUse (cc-with {-includes stdint.h}) when checking for the various int types because...
stephan [Fri, 25 Oct 2024 23:25:49 +0000 (23:25 +0000)] 
Use (cc-with {-includes stdint.h}) when checking for the various int types because, despite it being C99, it turns out that we do indeed use it if it's available.

FossilOrigin-Name: 51a9278134b5b9093c92c7036cc91b823f30dd36f677f2335927854744225024

8 months agoWhen --with-tclsh=X is used, use X for all TCL purposes, including in-tree code gener...
stephan [Fri, 25 Oct 2024 23:13:12 +0000 (23:13 +0000)] 
When --with-tclsh=X is used, use X for all TCL purposes, including in-tree code generation, per developer request.

FossilOrigin-Name: 12498e55c0c689f43c78002fb850a58dda337feae51194b9cade7f5dff15e833

8 months agoFix BUILD_CFLAGS (for B.cc) to not inherent CFLAGS (which are only for T.cc).
stephan [Fri, 25 Oct 2024 23:04:50 +0000 (23:04 +0000)] 
Fix BUILD_CFLAGS (for B.cc) to not inherent CFLAGS (which are only for T.cc).

FossilOrigin-Name: ffdce13deb8a1fbce717da9ca44fd34409bedad4db805722100647372c06f4f5

8 months agoExperimentally: when ./configure CC=foo is used in a non-cross-compilation build...
stephan [Fri, 25 Oct 2024 23:03:33 +0000 (23:03 +0000)] 
Experimentally: when ./configure CC=foo is used in a non-cross-compilation build and CC_FOR_BUILD is not explicitly provided, force CC_FOR_BUILD to default to CC. This is debatable - see the code comments for the justification.

FossilOrigin-Name: a49bee68418f9e8c3813a60f76de265b8e6a98a15ab9b246aa42d9e9558a03eb

8 months agoRename VERSION_XYZ to the more conventional PACKAGE_VERSION and remove the unused...
stephan [Fri, 25 Oct 2024 22:44:58 +0000 (22:44 +0000)] 
Rename VERSION_XYZ to the more conventional PACKAGE_VERSION and remove the unused VERSION_XY.

FossilOrigin-Name: 2d2f6dfdebbaba181d0ac16b5b0fa63490fb4c4bdb5ee2e8bf70f06ec862a77f

8 months agoUpdate the compile-for-*.md documents.
drh [Fri, 25 Oct 2024 15:28:00 +0000 (15:28 +0000)] 
Update the compile-for-*.md documents.

FossilOrigin-Name: c4da7fa279274e5a6fe214b5c22f17bcf9b40299aeeab5bfbdae2ba0b2de6af0

8 months agoRework the configure+make system to use autosetup rather than autoconf.
drh [Fri, 25 Oct 2024 14:39:26 +0000 (14:39 +0000)] 
Rework the configure+make system to use autosetup rather than autoconf.
Autosetup runs faster and is easier to maintain, and it allows for common
targets (such as "sqlite3" and "sqlite3.c") to be built within having to
install "tclsh".

FossilOrigin-Name: d8c0e0184226bdae9785199d486200e49db7973d78502d09db7a7e34ab0af941