aboutsummaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2018-02-19configure: fix static lpeg detection messagesQuentin Rameau1-4/+5
2018-01-26build: abort configure scripts upon interruptsMarc André Tanner1-1/+2
Fix #607
2018-01-26build: use pkg-config to find lpegTwoFinger1-4/+18
2017-12-02build: remove erroneous libtermkey dependencyMarc André Tanner1-1/+1
Fix #636
2017-05-31build: cleanup self contained executableMarc André Tanner1-10/+1
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é Tanner1-0/+2
luaL_openlibs is actually declared in lualib.h.
2017-04-14build: install miscellaneous documentationDavid B. Lamkins1-1/+5
2017-04-09text: add mem{r,}chr(3) based byte search functionsMarc André Tanner1-0/+20
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 Nanni1-1/+1
2017-03-15build: clarify lpeg related configure optionMarc André Tanner1-4/+4
2017-03-14Add experimental raw vt100 UI backendMarc André Tanner1-28/+37
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é Tanner1-3/+3
2017-02-24vis: make help texts optional to produce a smaller binaryMarc André Tanner1-0/+11
$ ./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é Tanner1-1/+1
$ ./configure --disable-lua will no longer look for liblpeg.
2017-01-19text-regex: add regex backend based on libtreMarc André Tanner1-0/+52
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é Tanner1-0/+1
This allows inclusion in other Makefiles (e.g. for C unit tests).
2016-12-14build: improve description of --enable-lpeg configure optionMarc André Tanner1-1/+1
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é Tanner1-2/+0
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é Tanner1-0/+52
2016-05-19build: check for Lua >= 5.2 in configure scriptMarc André Tanner1-1/+5
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é Tanner1-3/+4
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é Tanner1-1/+1
2016-04-26build: try to produce a statically linked position independent executableMarc André Tanner1-3/+7
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 Hesse1-1/+5
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-04-25build: (re)enable pie buildChristian Hesse1-1/+3
This reverts commit d6effd021d2aa2b6c452f229046a85c5f1a252a7.
2016-04-25build: remove redundant code from configure scriptMarc André Tanner1-3/+0
2016-04-25build: add more default flags to $CFLAGS instead of $CFLAGS_AUTOMarc André Tanner1-7/+7
This way we make sure the flags are in place when building dependencies.
2016-04-24build: run configure before building dependenciesChristian Hesse1-18/+37
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é Tanner1-1/+1
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é Tanner1-3/+3
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é Tanner1-1/+1
This should let configure pick up the lua libraries on FreeBSD 10.
2016-03-26fix linker flagsChristian Hesse1-1/+1
fixes #214
2016-03-25configure: fix probing of hardening flagsMarc André Tanner1-3/+3
2016-03-23configure: use capital letters for variable namesChristian Hesse1-26/+26
2016-03-23configure: default to cc instead of c99Marc André Tanner1-1/+1
Using -std=c99 in combination with c99 does not make sense. Some versions of Mac OS seem to have a broken wrapper implementing the c99 utility which always generates 32-bit code instead of targeting the native architecture. http://stackoverflow.com/questions/4182413 Also add clang to the list of compilers to try.
2016-03-23configure: fix detection of libtermkeyMarc André Tanner1-1/+1
On Cygwin the configure check for libtermkey fails due to unresolved symbols from libcurses. The pkg-config file of libtermkey lacks a reference to its dependencies (either curses or unibilium). Since we depend on curses anyway we can fix this by adding $LDFLAGS_CURSES to the configure check.
2016-03-23configure: use temporary file instead of /dev/null for compiler outputMarc André Tanner1-12/+13
This should fix configure checks on Cygwin whereas before gcc would attempt (and fail) to write to /dev/null.exe
2016-03-22configure: clear ${C,LD}FLAGS_LUA in error caseMarc André Tanner1-0/+2
2016-03-22configure: exchange _{BSD,DARWIN_C}_SOURCE definesMarc André Tanner1-2/+2
2016-03-21Remove bashisms from configure script.Richard Burke1-4/+7
2016-03-21configure: probe for hardening flagsMarc André Tanner1-1/+8
2016-03-21configure: probe for size optimizing flags (disabled for now)Marc André Tanner1-0/+3
2016-03-21build: reorder some variablesMarc André Tanner1-5/+7
2016-03-21configure: make man and share directories configurableChristian Hesse1-2/+8
2016-03-21configure: fix install prefix for man and share directoriesChristian Hesse1-0/+2
2016-03-21configure: fix condition for libselinuxChristian Hesse1-2/+2
2016-03-21configure: fix condition for libaclChristian Hesse1-2/+2
2016-03-21configure: fix condition for libluaChristian Hesse1-4/+4
2016-03-21configure: fix condition for libtermkeyChristian Hesse1-2/+2
2016-03-21configure: fix condition for ncursesChristian Hesse1-4/+4