1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Check for libreadline

This commit is contained in:
Eelco Dolstra 2017-04-28 16:53:56 +02:00
parent a1a5e63e14
commit 73bba12d8b
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
7 changed files with 22 additions and 5 deletions

View file

@ -6,6 +6,8 @@ nix_SOURCES := $(wildcard $(d)/*.cc)
nix_LIBS = libexpr libmain libstore libutil libformat
nix_LDFLAGS = -lreadline
ifeq ($(HAVE_READLINE), 1)
nix_LDFLAGS += -lreadline
endif
$(eval $(call install-symlink, nix, $(bindir)/nix-hash))

View file

@ -1,3 +1,5 @@
#if HAVE_LIBREADLINE
#include <iostream>
#include <cstdlib>
@ -726,3 +728,5 @@ struct CmdRepl : StoreCommand
static RegisterCommand r1(make_ref<CmdRepl>());
}
#endif