diff options
author | 2024-11-01 20:48:43 +0100 | |
---|---|---|
committer | 2024-11-01 20:48:43 +0100 | |
commit | 24818b238155dc7797f14b471b63c789e6f3bb1a (patch) | |
tree | 682c8d684e7322c513e6eed535b5e2f5f2e6ea85 /configure.ac | |
parent | 958b108ebf9653a389981676dcfb531e4b596af2 (diff) | |
download | libirecovery-24818b238155dc7797f14b471b63c789e6f3bb1a.tar.gz libirecovery-24818b238155dc7797f14b471b63c789e6f3bb1a.tar.bz2 |
Allow building without readline support for irecovery tool
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 06a27d0..4507e85 100644 --- a/configure.ac +++ b/configure.ac @@ -96,16 +96,17 @@ if test "$ac_cv_attribute_constructor" = "yes"; then fi AC_ARG_WITH([tools], - [AS_HELP_STRING([--with-tools], [Build irecovery tools. (requires readline) [default=yes]])], + [AS_HELP_STRING([--with-tools], [Build irecovery tools. [default=yes]])], [], [with_tools=yes]) AS_IF([test "x$with_tools" = "xyes"], [ AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building irecovery tools]) - AC_CHECK_HEADERS([readline/readline.h], [], - [AC_MSG_ERROR([Please install readline development headers])] - )] -) + AC_CHECK_HEADERS([readline/readline.h], + [AC_DEFINE(HAVE_READLINE, 1, [Define if readline is available])], + [AC_MSG_NOTICE([NOTE: Building without readline support. If you want readline support, install its development package.])] + ) +]) AM_CONDITIONAL(BUILD_TOOLS, test "x$with_tools" = "xyes") AC_ARG_WITH([dummy], |