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.
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].
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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".
drh [Fri, 25 Oct 2024 12:06:40 +0000 (12:06 +0000)]
Update the LICENSE.md file to describe BSD-licensed code that is included
in the repository as a convenience to developers but which is not itself
actually a part of SQLite.
stephan [Fri, 25 Oct 2024 04:48:40 +0000 (04:48 +0000)]
Rename config-defines.json to config.defines.json for consistent with other generated config.* files. Rename --defs-json-include-lowercase to the even less wieldy --defines-json-include-lowercase.
stephan [Fri, 25 Oct 2024 04:39:14 +0000 (04:39 +0000)]
Add --defs-json-include-lowercase configure flag to cause config-defs.json to include lower-case defines, which are primarily the various build-related system paths.
stephan [Fri, 25 Oct 2024 03:56:09 +0000 (03:56 +0000)]
Docs related to the -array defs-dump option. Rename some internal-use hwaci-common.tcl APIs after discovering that a - as a symbol suffix fails for var derefs (but works for procs calls).
drh [Thu, 24 Oct 2024 15:36:29 +0000 (15:36 +0000)]
Fix harmless compiler warnings. One of the warnings was code that
deliberately committed memory errors to test the systems ability to cope.
But compilers don't allow that any more, so we'll have to leave that
capability untested.
stephan [Thu, 24 Oct 2024 14:33:11 +0000 (14:33 +0000)]
Back out [bd66222721] because it causes conflicts with test runs, apparently due to .o files being built with different flags. This means that the CLI shell currently does not honor --disable-amalgamation.
stephan [Thu, 24 Oct 2024 07:31:39 +0000 (07:31 +0000)]
Various build cleanups centered around straightening out various uses of CFLAGS and its cousins. Teach Makefile.linux-generic to figure out the TOP dir on its own (a GNU Make-ism, but it's a Linux-specific makefile).
stephan [Thu, 24 Oct 2024 05:03:20 +0000 (05:03 +0000)]
Bump version number to 3.48.0 (in this branch only - in trunk, doing so requires a specific autoconf version) and rename the RELEASE and VERSION makefile symbols for clarity's sake.
stephan [Thu, 24 Oct 2024 03:50:40 +0000 (03:50 +0000)]
Get Makefile.linux-generic (formerly Makefile.linux-gcc) working with jimsh in out-of-tree builds. Pass on -DHAVE_READLINE=1 to the sqlite3 shell if configure detects it.
stephan [Thu, 24 Oct 2024 03:14:40 +0000 (03:14 +0000)]
General make cleanups. Start adding a sanity-check mechanism to main.mk which does basic validation of the vars it expects to be set by the file which includes it. Get Makefile.linux-gcc working for the core-most rules.
stephan [Wed, 23 Oct 2024 16:03:51 +0000 (16:03 +0000)]
Work around a minor JimTCL regexp incompatibility in tool/vdbe-compress.tcl. Summary: it thinks that backslash-escaped octal values are back-references, which it does not like.
drh [Wed, 23 Oct 2024 11:06:56 +0000 (11:06 +0000)]
Fix harmless compiler warnings in wherecode.c. One such warning was
identified by [forum:/forumpost/721675f007|forum post 721675f007] and the
other was found by tool/warnings.sh.
drh [Wed, 23 Oct 2024 10:36:02 +0000 (10:36 +0000)]
Add two new #include statements to the composite "fts5.c" file that
is constructed as part of the build process. These #includes are no-ops
in the SQLite amalgamation (and are commented out automatically by the
amalgamation builder) but are needed if the FTS5 extension is built
separately, it seems.
[https://bugzilla.mozilla.org/show_bug.cgi?id=1926321#c3|Enhancement request].