Rusty Russell
21fd8f7eaa
configure: use system libsodium if available and modern.
...
Also one less headache for reproducible builds.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-02-08 01:10:17 +00:00
Christian Decker
7eaf5b55ff
make: Add an option to compile with address sanitizer
...
Currently only works with `gcc` due to google/sanitizers#1028 , so
configure makes sure we warn if clang with ASAN is attempted.
According to [my benchmarks][benchmarks] the performance degradation
is small enough to have it active always.
[benchmarks]: https://github.com/ElementsProject/lightning/issues/2277#issuecomment-455897417
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-02-03 23:50:18 +00:00
Rusty Russell
61420bf79b
configure: (mostly) revert b7a56f0531
...
Plugins are a first-class citizen again.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-01-15 02:52:13 +00:00
Christian Decker
b7a56f0531
plugin: Gate the plugin subsystem with the --enable-plugins configure flag
...
Since we are planning to release a bug fix release, and the plugin
subsystem is not yet complete, it is better to make plugin support
opt-in while we continue testing.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-01-10 17:15:10 -08:00
arowser
c99aa0a21d
update pytest check
2018-12-19 21:05:24 +01:00
arowser
7b043503e2
hide pytest check message
2018-12-19 21:05:24 +01:00
arowser
64677dcbe5
support static link
2018-12-18 00:10:23 +00:00
Rusty Russell
4b77d803ef
configure: don't turn on EXPERIMENTAL_FEATURES just because DEVELOPER.
...
It's about to become even more bleeding-edge.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-12-10 22:25:32 +00:00
Rusty Russell
fab5027d64
configure: add --experimental-features flag (default: == DEVELOPER).
...
This will be used for option_simplified_commitment and other
still-being-specified options.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-12-06 23:11:51 +01:00
lucash-dev
b52fb14726
pytest: Fix configure to find pytest when installed using pip3.
...
Installing pytest through pip3 (at least sometimes) doesn't create a script.
This means calling `which` won't work.
Changed configure so that it can also test if the module is present by calling python/python3.
Change the error message for when pytest can't be found, so that it's clear to the user `configure` must be ran again after installing pytest.
2018-09-05 02:29:06 +00:00
Jan Sarenik
40ea74ba99
configure: Check for version of pytest
...
Addresses #486 and takes into account @rustyrussell 's
comment about PYTEST defined in the environment which
always overrides without checking the version.
2018-06-15 01:55:44 +02:00
Rusty Russell
6a73c7eeb1
configure: fix defaults in help.
...
Both "[ 1 ]" and "[ 0 ]" both evaluate true in shell; we really want
an explicit '1' test.
Before:
$ ./configure --help
...
--enable/disable-compat (default disable)
After:
$ ./configure --help
...
--enable/disable-compat (default enable)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-06-14 14:38:24 +02:00
Rusty Russell
46aaf08047
configure: add hack to rename ccan's sha256 routines to avoid libwally clash
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-06-14 14:26:25 +02:00
Rusty Russell
56046d470b
configure: take PYTEST from env var or cmdline.
...
We should only autodetect if it's not set manually.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-06-09 13:39:27 +02:00
Christian Decker
3cf1581d6d
configure: Use the ./configure step to find pytest
...
Fixes #1544
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-06-09 13:39:27 +02:00
Rusty Russell
ca8671de0a
configure: add --enable-valgrind/disable-valgrind.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-06-08 17:56:01 +02:00
Rusty Russell
f6d22ed0cf
configure: new script.
...
You can use environment variables or the commandline to set defaults.
It looks very autoconf, but you don't need to learn m4.
Doesn't cover all the obscure flags, but it's easy to extend.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-06-08 17:56:01 +02:00