Commit Graph

54 Commits (master)

Author SHA1 Message Date
Tim Stack 4194f12a34 [build] fix for autoconf screwing up the c++ flags 3 months ago
Suresh Sundriyal f03be866df [build] Update the ax_pthread m4 script.
Update the script to fix the use of obsolete construct warnings.
10 months ago
AJ Bagwell c431ba904c [pcre2] don't add PRCE2_HOME to the search path if it is empty
This used to add -L/lib to LDFLAGS which was not an issue unless
you are cross compiling and then it may detect PCRE features based
on the host PCRE not the target one.
1 year ago
Tim Stack 1effd99e5c [sql] add parse_url()/unparse_url() functions
Fixes #44
2 years ago
Tim Stack 664f45f641 [build] check for sqlite3_drop_modules
Fixes #1053
2 years ago
Tim Stack 5a63ece31d [pcre2] migrate from pcre to pcre2
Fixes #974
2 years ago
Tim Stack 390bc132e2 [build] updates for arm64 2 years ago
Timothy Stack 880fe6a68a [tests] handle older sqlite 2 years ago
Timothy Stack f3934c742d [error] leverage sqlite3_error_offset 2 years ago
Timothy Stack 60251dda84 [w3c_log] handle an invalid log correctly
Fixes #988
2 years ago
Timothy Stack 54806f7913 [build] try to fix curl config for msys 2 years ago
Timothy Stack 99c1688c2e [attr_line] use variant instead of a union for attribute values 2 years ago
Timothy Stack 22ad9f23a9 [release] some static link cleanup 3 years ago
Timothy Stack 8f7b08c9c5 [logfile] add notes for automatic decisions and fix compile errors
Fixes #864
3 years ago
Timothy Stack dd9465cd10 [readline] some fixes for match display 3 years ago
Timothy Stack f36954741d [build] use -fprofile-abs-path 3 years ago
Timothy Stack 49ebde5953 [build] remove pcrecpp and other stuff
Linking against a binary c++ lib suuuucckkkkkssss...
3 years ago
Timothy Stack 59665368ee [autoconf] check for libarchive 4 years ago
Suresh Sundriyal 091f3c04b4 [build] Get rid of configure errors 4 years ago
Suresh Sundriyal d118a60a36 [cross-compile] Allow build artifacts to be built with build compilers.
While cross-compiling; bin2c and ptimec need to run during build on the
build-host. Currently; the host compiler is picked and the generated
binaries cannont be exec'ed causing the build to fail.

The change fixes the bin2c and ptimec compilation units to use the
build host compatible compiler.
4 years ago
Timothy Stack 84a7079e3f [main] capture stderr only after initscr() and fix curl configure detection 4 years ago
Timothy Stack 186cae4658 [build] add -static-libstdc++ and -static-libgcc by default
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack fa296fca1b [listview] get a batch of rows from the source instead of a single one at a time
Also: bump to c++14 and added a helper template for creating sqlite virtual tables
7 years ago
Timothy Stack 44d93dddc3 [pretty-print] allow formats to do transforms before pretty-printing
Also started upgrading to C++11.

Fixes #353
8 years ago
Suresh Sundriyal 6663740c5e [secure-mode] Disallow ATTACH statements completely.
The code to handle in-memory db exceptions is hideous and unreliable,
given the fact that SQLite does not expose much in terms of getting the
current value and the methods to check the compile time options can
themselves be disabled by a compile=time option in SQLite.

There really isn't much use for in-memory databases and if someone
really needs it, they can always choose to run in normal mode, so just
remove the extra code.
8 years ago
Suresh Sundriyal a13047a9ed [secure-mode] Check to see if URIs are enabled.
Check to see if URIs are enabled or not before continuing on with the
file uri checks.
8 years ago
Timothy Stack 27f300b677 [sql] some more json-related updates/fixes 9 years ago
Timothy Stack 6e0026dabc if curl-config --static-libs returns nothing, use the regular --libs option 9 years ago
Suresh Sundriyal cca2669e31 [cURL] Allow libcurl to be dynamically linked in on OS X.
This fixes tstack/lnav#253

The libcurl.m4 macros will still continue to look for a static archive
for libcurl but if one is not found and the binary is being compiled on
OS X, they will pick up the dynamic library if one is available.
9 years ago
Timothy Stack 9555ad911a more build fixes 9 years ago
Timothy Stack 248dd78f63 [config] some libcurl changes for static linking 9 years ago
Timothy Stack 879bbd581e [pt] rough draft of tail for papertrail 9 years ago
Suresh Sundriyal 7e8a3f06f2 [build] Remove the mangled C++ symbol check. 9 years ago
Suresh Sundriyal 65959bab47 [build] Stop adding to the environment variables.
The AutoMake scripts honor the SQLITE3_XXX flags already. There is no need to
keep adding stuff to the environment variables.
9 years ago
Suresh Sundriyal b53e3f2401 [build] Get rid of warnings from autoreconf.
* Remove some of the obsolete macros.
* Use AC_CONFIG_MACRO_DIR to allow compatibility with older versions of
  autoconf.
* Remove AU_ALIAS from curses macro.
9 years ago
Suresh Sundriyal b9c8e18611 [build] Revert the LIBS variable after readline checks. 9 years ago
Suresh Sundriyal 707ccce9c0 [build] Stop readline macro from polluting the environment variables. 9 years ago
Suresh Sundriyal 2554f19b23 [build] macro refactor 9 years ago
Suresh Sundriyal 9f1da30515 [build] Add the '-pthread' to the list of extra libraries.
Instead of setting it manually.
9 years ago
Suresh Sundriyal a903873f1b [build] Add '-pthread' to sqlite macro.
On some systems, sqlite3 requires pthread libraries to be linked in. Add
the flag so that autoconf can successfully compile and look for
'sqlite3_open'.
9 years ago
Suresh Sundriyal a3bdb2355d [build] Fix the check for editline in readline macro. 9 years ago
Suresh Sundriyal fcdc67eda9 Remove quotes from LNAV_ADDTO arguments. 9 years ago
Suresh Sundriyal 9aaf5d12c3 [build] Make readline macro depend on curses. 9 years ago
Suresh Sundriyal de7024e820 [yajl macro] Remove unnecessary addition to libs. 9 years ago
Suresh Sundriyal c83371c74e Fix the filename in pcre macro 9 years ago
Suresh Sundriyal 649f486d13 [File headers] Add some headers to m4 files.
Add the license and copyright headers to m4 files.
9 years ago
Suresh Sundriyal 13c6b82f8c [build] Fix SQLite3 realted m4 macros.
The current macro does not seem to honor the CFLAGS and LDFLAGS
variables if '--with-sqlite3=yes' is used. Fix this and some of
the other cruft in the macro.
9 years ago
Suresh Sundriyal 263ece0d93 Remove the check for libreadline.a
Do a standard check for libreadline and use '-lreadline' as usual.
9 years ago
Suresh Sundriyal f52d9641ed [build] Make sure readline has the necessary symbols.
On FreeBSD variant, readline functionality is provided by editline which
is almost compatible but not quite. We could do a specific check for
editline but if editline adds the functionality in the future, this
check will still continue to fail. Instead look for one of the symbols
currently missing in editline as a sanity check.
9 years ago
Suresh Sundriyal 31c4669a8a [build] Fix the 'readline' ac macro.
The macro does not track the include directory when it is passed in
using the '--with-readline=/foo/bar' invocation of '--with-readline'
flag.

This change should fix the problem. I've tried to keep the functionality
exactly the same as before and converted the script to pure M4sh, which
should produce a more portable configure script.
9 years ago