summaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)Author
2024-05-12enable warnings in default CFLAGSRandy Palamar
2024-05-03configure: check for 'lua5.4-lpeg' tooMr Alin
2023-08-25configure: also check for lua-5.4Donald C. Allen
2023-08-16build: stop setting _POSIX_C_SOURCERandy Palamar
from feature_test_macros(7): > Defining _XOPEN_SOURCE with a value of 700 or greater produces the > same effects as defining _POSIX_C_SOURCE with a value of 200809L or > greater. Depending on the configuration and system pkg-conf files there can be redefinition warnings. Rather than patching with a -U_POSIX_C_SOURCE it can just be dropped instead.
2023-08-16build: support incremental rebuildsRandy Palamar
2023-03-19don't set _FORTIFY_SOURCE in configureRandy Palamar
distributions that want this flag set do so on a system wide level. for example Gentoo, Fedora, Debian, and OpenSUSE. since vis sets it when invoking cc via make it overwrites the system setting (and pollutes the output with redefinition warnings). For reference here is the related bug in Gentoo: https://bugs.gentoo.org/892960
2022-05-03Re-enabled tre by #including <stddef.h>.Peter Buxton
2021-03-15add lua5.4 in configure scriptxoich
2020-11-14build: fix curses library/pkg-config nameLeonardo Taccari
Gracefully fallback to curses(3) (no libcurses `.pc' file is present and `-l$libcurses' is used and hence `-lcurses' (not `-llibcurses'!)).
2020-11-13build: use feature test macros for memrchr configure checkMarc André Tanner
Previously these were only used to compile the main project source, resulting in inconsistencies between the feature detection and actual usage.
2020-11-12build: add -D_NETBSD_SOURCE for NetBSDSilas
memrchr() signature is not exposed by default for NetBSD. If one does not add -D_NETBSD_SOURCE, the compiler uses its own signature for memrchr() that returns a 32-bit integer, leading to misbehaviour in some situations. Defining _BSD_SOURCE doesn't work, so we define _NETBSD_SOURCE.
2020-06-30build: define LUA_COMPAT_5_3Christian Hesse
This is required to build with lua 5.4.x.
2020-05-12build: use -O2 by defaultMarc André Tanner
2020-04-29build: fix _XOPEN_SOURCE redefinition warningMarc André Tanner
Was also reported in #780.
2020-02-07build: improve debug flagsMarc André Tanner
Make macro definitions and enums available to debugger.
2018-11-17Fix configure on DragonFly BSDMichael Neumann
2018-03-14configure: Improve LPeg detectionTwoFinger
Try the possible library names regardless of .pc file availability.
2018-02-19configure: fix static lpeg detection messagesQuentin Rameau
2018-01-26build: abort configure scripts upon interruptsMarc André Tanner
Fix #607
2018-01-26build: use pkg-config to find lpegTwoFinger
2017-12-02build: remove erroneous libtermkey dependencyMarc André Tanner
Fix #636
2017-05-31build: cleanup self contained executableMarc André Tanner
Set $PATH and $TERMINFO_DIRS environment variables, use chdir(2) to simplify extraction logic, improve error handling.
2017-05-13build: fix warning in lua related configure checkMarc André Tanner
luaL_openlibs is actually declared in lualib.h.
2017-04-14build: install miscellaneous documentationDavid B. Lamkins
2017-04-09text: add mem{r,}chr(3) based byte search functionsMarc André Tanner
These are generally implemented efficiently in libc. While memrchr(3) is non-standard, it is a common extension. If it is not available, we use a simple C implementation from musl.
2017-03-27Prefer Lua 5.3Klemens Nanni
2017-03-15build: clarify lpeg related configure optionMarc André Tanner
2017-03-14Add experimental raw vt100 UI backendMarc André Tanner
The intention of this is not to slowly reimplement curses but to provide a minimal working terminal UI backend which can also be used for debugging, fuzzing and in environments where curses is not available. Currently no attempt is made to optimize terminal output. The amount of flickering will depend on the smartness of your terminal emulator.
2017-02-25build: try to enable compiler flags to minimize binary sizeMarc André Tanner
2017-02-24vis: make help texts optional to produce a smaller binaryMarc André Tanner
$ ./configure --disable-help shrinks the binary by about 20K on a x86_64 system.
2017-02-23build: skip configure check for built-in lpeg if lua is not foundMarc André Tanner
$ ./configure --disable-lua will no longer look for liblpeg.
2017-01-19text-regex: add regex backend based on libtreMarc André Tanner
While memory consumption should be improved, backward searches will still be slow, because they are implemented in terms of repeated forward searches. It needs to be investigated whether the underlying automaton can have its transitions reversed and essentially run backwards, as is the case in sam.
2016-12-15build: move $CFLAGS_DEBUG into config.mkMarc André Tanner
This allows inclusion in other Makefiles (e.g. for C unit tests).
2016-12-14build: improve description of --enable-lpeg configure optionMarc André Tanner
It links lpeg statically into the vis binary, meaning it does not need to be dlopen(3)-ed at runtime. While this improves the portability of the resulting vis binary, it is not necessary to enable this option to get syntax highlighting support. Maybe the option should be renamed to avoid further confusion.
2016-12-13build: remove internal configure options from help textMarc André Tanner
These are used by `make standalone` but are not really appropriate for normal usage and just cause confusion as demonstrated by #373.
2016-12-13build: add configure options for built-in lpeg supportMarc André Tanner
2016-05-19build: check for Lua >= 5.2 in configure scriptMarc André Tanner
The generic lua pkg-config name also match for Lua 5.1 which then results in a linker error because the necessary functions are not available.
2016-05-05build: add -D__BSD_VISIBLE=1 to default CFLAGS for FreeBSDMarc André Tanner
SIGWINCH is not part of POSIX. In contrast to the other BSD variants, FreeBSD does not expose it when defining _BSD_SOURCE. This is probably not the 'correct' solution, but seems to work for now. Instead of defining it globally it might have been better to add the necessary #define to the only source file making use of SIGWINCH. Close #302
2016-04-26build: fix lua auto detection on OpenBSDMarc André Tanner
2016-04-26build: try to produce a statically linked position independent executableMarc André Tanner
In theory this should be as simple as: $ cc -fPIE -pie --static helloworld.c But unfortunately by default this will always add a PT_INTERP referencing the dynamic loader/linker. On latest binutils >=2.26 this can be worked around by supplying --no-dynamic-linker. Also tweak the musl-gcc wrapper to use rcrt1.o as startup file.
2016-04-26build: skip -pie for static buildChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-04-25build: (re)enable pie buildChristian Hesse
This reverts commit d6effd021d2aa2b6c452f229046a85c5f1a252a7.
2016-04-25build: remove redundant code from configure scriptMarc André Tanner
2016-04-25build: add more default flags to $CFLAGS instead of $CFLAGS_AUTOMarc André Tanner
This way we make sure the flags are in place when building dependencies.
2016-04-24build: run configure before building dependenciesChristian Hesse
We need some basic configuration before building dependencies. For example useful CFLAGS have to be in place to prevent linker errors. The configure script is run again later with some extra parameters.
2016-04-22build: disable pie build for now, it breaks local/standalone buildsMarc André Tanner
There seems to be something wrong with the libtermkey build, which uses libtool and somehow does not get build correctly for PIE.
2016-04-22build: clean up make local/standalone implementationMarc André Tanner
Run configure script for all targets instead of fiddling with Makefile variables directly.
2016-04-11build: also probe for lua as lua-{5.2,5.3}Marc André Tanner
This should let configure pick up the lua libraries on FreeBSD 10.
2016-03-26fix linker flagsChristian Hesse
fixes #214
2016-03-25configure: fix probing of hardening flagsMarc André Tanner