From 7a5e6196a8c5fbb8f52c2ccc0d73a5842818b5c1 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 5 Nov 2024 02:55:37 +0100 Subject: Fix conditional compile for libreadline --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4507e85..9b004dc 100644 --- a/configure.ac +++ b/configure.ac @@ -101,11 +101,14 @@ AC_ARG_WITH([tools], [with_tools=yes]) AS_IF([test "x$with_tools" = "xyes"], [ + have_readline=no AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building irecovery tools]) AC_CHECK_HEADERS([readline/readline.h], - [AC_DEFINE(HAVE_READLINE, 1, [Define if readline is available])], + [AC_DEFINE(HAVE_READLINE, 1, [Define if readline is available]) + have_readline=yes], [AC_MSG_NOTICE([NOTE: Building without readline support. If you want readline support, install its development package.])] ) + AM_CONDITIONAL(HAVE_READLINE, test "x$have_readline" = "xyes") ]) AM_CONDITIONAL(BUILD_TOOLS, test "x$with_tools" = "xyes") -- cgit v1.1-32-gdbae