From 0273afda3c0e8acf2bea4bbd738e37febcb1939e Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Mon, 2 Feb 2015 18:11:40 +0100 Subject: build-sys: add --with-readline [kzak@redhat.com: - define READLINE_LIBS] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak --- configure.ac | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e070031e0..c0be3b159 100644 --- a/configure.ac +++ b/configure.ac @@ -653,6 +653,26 @@ AS_IF([test "x$with_selinux" = xno], [ AC_SUBST([SELINUX_LIBS]) AC_SUBST([SELINUX_LIBS_STATIC]) + +AC_ARG_WITH([readline], + AS_HELP_STRING([--with-readline], [compile with GNU Readline support]), + [], [with_readline=auto] +) + +AS_IF([test "x$with_readline" = xno], [ + AM_CONDITIONAL([HAVE_READLINE], [false]) +], [ + UL_CHECK_LIB([readline], [readline]) + AS_CASE([$with_readline:$have_readline], + [yes:no], + [AC_MSG_ERROR([readline selected but libreadline not found ])], + [*:yes], + [READLINE_LIBS=-lreadline] + ) +]) +AC_SUBST([READLINE_LIBS]) + + AC_ARG_WITH([audit], AS_HELP_STRING([--with-audit], [compile with audit support]), [], [with_audit=no] -- cgit v1.2.3-55-g7522