summaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)Author
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
2016-03-23configure: use capital letters for variable namesChristian Hesse
2016-03-23configure: default to cc instead of c99Marc André Tanner
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é Tanner
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é Tanner
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é Tanner
2016-03-22configure: exchange _{BSD,DARWIN_C}_SOURCE definesMarc André Tanner
2016-03-21Remove bashisms from configure script.Richard Burke
2016-03-21configure: probe for hardening flagsMarc André Tanner
2016-03-21configure: probe for size optimizing flags (disabled for now)Marc André Tanner
2016-03-21build: reorder some variablesMarc André Tanner
2016-03-21configure: make man and share directories configurableChristian Hesse
2016-03-21configure: fix install prefix for man and share directoriesChristian Hesse
2016-03-21configure: fix condition for libselinuxChristian Hesse
2016-03-21configure: fix condition for libaclChristian Hesse
2016-03-21configure: fix condition for libluaChristian Hesse
2016-03-21configure: fix condition for libtermkeyChristian Hesse
2016-03-21configure: fix condition for ncursesChristian Hesse
2016-03-21build: overhaul build system auto detect stuff using a configure scriptMarc André Tanner
The new build instructions are: $ ./configure && make && sudo make install The configure script tries to auto detect support for various libraries and compiler options. These choices can be overwritten by explicitly specifing --{en,dis}able-{lua,selinux,acl}. See ./configure --help for all supported options. The configure script generates config.mk which should allow portable (among GNU and BSD make) Makefiles. Manually editing config.mk is still supported.