forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure: fix --reconfigure, improve style, set defaults in one place.
I noticed that DEVELOPER was being reset to 0 by ./configure --reconfigure; that's because we set the defaults first, then --reconfigure would only override *unset* vars. We now set up defaults last. We unify all our "find the default" functions, to neaten them; in particular find_pytest and our open-coded valgrind testing function. We can figure out whether valgrind works using /bin/true instead of waiting until configurator is built. We're also more careful with ${FOO-default} vs ${FOO:-default}; the former does not replace if FOO is set to the empty string, which is possible for some of our settings (COPTFLAGS, CDEBUGFLAGS in particular). Signed-off-by: Rusty Russell <[email protected]>
- Loading branch information
1 parent
44d64c1
commit 54b66f0
Showing
1 changed file
with
60 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters