When writing to an FTS table, take an exclusive shared-cache lock on the %_segdir table before writing. Otherwise, an xCommit() call may report an SQLITE_LOCKED error.
Add the files used to build the amalgamation-autoconf package.
Add the "dist" target to main.mk. For building the amalgamation autoconf package.
Merge autoconf-package branch with trunk.
Many small harmless comment changes.  Removal of obsolete comments and
fixing misspelled words.  No changes to code.
Remove the obsolete and unused sqlite3.inTrans field.
Finish removing the sqlite3.inTrans field.  In the previous check-in, it was
merely commented out because I failed to select File->Save on my text editor.
Add the percentile() SQL function as a loadable 
extension in the ext/misc directory.
Add tests for running FTS 'merge' and 'optimize' commands in shared cache mode.
Updates to the Codec interface to support codecs on attached databases and
to allow rekeying in the middle of a transaction.  These changes are only 
applicable if SQLite is compiled with SQLITE_HAS_CODEC.
Merge recent trunk changes into the NGQP branch.
Cut over the NGQP query planner.  Remove lots of legacy code.  
This check-in compiles but does not work.  The test suite gets incorrect
answers and crashes.
The expected result in a test case can be of the form "*glob*" or "~*glob*" to 
match or not match the GLOB pattern.  This is useful for matching
EXPLAIN QUERY PLAN output that contains regular expression syntax characters
like "?", "(", and ")".
Futher simplifications to the NGQP.  Fix some test cases to use
EXPLAIN QUERY PLAN rather than the (now obsolete) sqlite_query_plan
global variable.
Incremental check-in with various NGQP fixes.  Many tests still fail.
Improvements to the ORDER BY suppressor in the NGQP.