Skip to content

Commit

Permalink
check for brew version of readline
Browse files Browse the repository at this point in the history
because the local OSX libedit doesn't really do what we want
  • Loading branch information
alandekok committed Jul 12, 2018
1 parent a8d3363 commit 3fd01a5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Make.inc.in
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ RADIR = ${radacctdir}
bm_shared_libs = yes
bm_static_libs = yes

LIBREADLINE = @LIBREADLINE@
LIBREADLINE = @LIBREADLINE@
LIBREADLINE_PREFIX = @LIBREADLINE_PREFIX@
ifneq "$(LIBREADLINE_PREFIX)" ""
LIBREADLINE_CFLAGS = -I$(LIBREADLINE_PREFIX)/include
LIBREADLINE_LDFLAGS = -L$(LIBREADLINE_PREFIX)/lib
endif

#
# Version to use for packaging and other Make related things
Expand Down
3 changes: 3 additions & 0 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,10 @@ if test "$vl_cv_lib_readline" != "no"; then
AC_CHECK_HEADERS(history.h readline/history.h)
fi
fi
LIBREADLINE_PREFIX=$(brew --prefix readline 2>/dev/null)
AC_SUBST(LIBREADLINE)
AC_SUBST(LIBREADLINE_PREFIX)
])dnl

AC_INCLUDE(aclocal.m4)
4 changes: 4 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ PCAP_LIBS
OPENSSL_CPPFLAGS
OPENSSL_LDFLAGS
OPENSSL_LIBS
LIBREADLINE_PREFIX
LIBREADLINE
KQUEUE_LDFLAGS
KQUEUE_LIBS
Expand Down Expand Up @@ -9242,6 +9243,9 @@ done
fi
fi
LIBREADLINE_PREFIX=$(brew --prefix readline 2>/dev/null)
Expand Down

0 comments on commit 3fd01a5

Please sign in to comment.