support environments without libedit
This commit is contained in:
parent
356643170a
commit
bf0e388b3e
|
@ -1,7 +1,10 @@
|
|||
libedit_exists := $(shell pkg-config libedit --exists; echo $$?)
|
||||
|
||||
ifeq ($(libedit_exists),0)
|
||||
CONTRIB_SRCS += contrib/10.readline/src/readline.c
|
||||
CONTRIB_INITS += readline
|
||||
|
||||
LDFLAGS += `pkg-config libedit --libs`
|
||||
endif
|
||||
|
||||
contrib/src/readline.o: contrib/src/readline.c
|
||||
$(CC) $(CFLAGS) -o $@ $< `pkg-config libedit --cflags`
|
||||
|
|
Loading…
Reference in New Issue