diff options
| author | 2024-11-05 02:55:37 +0100 | |
|---|---|---|
| committer | 2024-11-05 02:55:37 +0100 | |
| commit | 7a5e6196a8c5fbb8f52c2ccc0d73a5842818b5c1 (patch) | |
| tree | abd8791b6884df1ffb4baf65f60a2ce5d001460d /configure.ac | |
| parent | 2405a807b6b5e4f33ac77a985aa77ea6ca27b49f (diff) | |
| download | libirecovery-7a5e6196a8c5fbb8f52c2ccc0d73a5842818b5c1.tar.gz libirecovery-7a5e6196a8c5fbb8f52c2ccc0d73a5842818b5c1.tar.bz2  | |
Fix conditional compile for libreadline
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 5 | 
1 files changed, 4 insertions, 1 deletions
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], | |||
| 101 | [with_tools=yes]) | 101 | [with_tools=yes]) | 
| 102 | 102 | ||
| 103 | AS_IF([test "x$with_tools" = "xyes"], [ | 103 | AS_IF([test "x$with_tools" = "xyes"], [ | 
| 104 | have_readline=no | ||
| 104 | AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building irecovery tools]) | 105 | AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building irecovery tools]) | 
| 105 | AC_CHECK_HEADERS([readline/readline.h], | 106 | AC_CHECK_HEADERS([readline/readline.h], | 
| 106 | [AC_DEFINE(HAVE_READLINE, 1, [Define if readline is available])], | 107 | [AC_DEFINE(HAVE_READLINE, 1, [Define if readline is available]) | 
| 108 | have_readline=yes], | ||
| 107 | [AC_MSG_NOTICE([NOTE: Building without readline support. If you want readline support, install its development package.])] | 109 | [AC_MSG_NOTICE([NOTE: Building without readline support. If you want readline support, install its development package.])] | 
| 108 | ) | 110 | ) | 
| 111 | AM_CONDITIONAL(HAVE_READLINE, test "x$have_readline" = "xyes") | ||
| 109 | ]) | 112 | ]) | 
| 110 | AM_CONDITIONAL(BUILD_TOOLS, test "x$with_tools" = "xyes") | 113 | AM_CONDITIONAL(BUILD_TOOLS, test "x$with_tools" = "xyes") | 
| 111 | 114 | ||
