From a280dd2b1fac697e89455c491eb95735f2750837 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 19 Sep 2011 17:08:35 -0700 Subject: [PATCH] Added Readline build support on more *nix platforms --- makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makefile b/makefile index dfaa77e4..27017626 100644 --- a/makefile +++ b/makefile @@ -50,6 +50,13 @@ ifeq ($(WIN32),) OS_CCDEFS += -DHAVE_READLINE OS_LDFLAGS += -lreadline endif + else + ifeq (readline_h,$(shell if $(TEST) -e /usr/include/readline/readline.h; then echo readline_h; fi)) + ifeq (Linux,$(shell uname)) + OS_CCDEFS += -DHAVE_READLINE + OS_LDFLAGS += -lreadline + endif + endif endif ifeq (pcap,$(shell if $(TEST) -e /usr/include/pcap.h -o -e /opt/sfw/include/pcap.h; then echo pcap; fi)) # Use Locally installed and available pcap support