mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 13:59:24 +01:00
build: Check for readline only if client utility has been enabled
This commit is contained in:
parent
e0b5680543
commit
90aafba6d4
@ -86,8 +86,10 @@ AC_DEFINE_UNQUOTED(CONFIGDIR, "/etc/iwd", [Configuration directory])
|
|||||||
|
|
||||||
AC_CHECK_HEADERS(linux/types.h linux/if_alg.h)
|
AC_CHECK_HEADERS(linux/types.h linux/if_alg.h)
|
||||||
|
|
||||||
|
if (test "${enable_client}" != "no"); then
|
||||||
AC_CHECK_HEADERS(readline/readline.h, enable_readline=yes,
|
AC_CHECK_HEADERS(readline/readline.h, enable_readline=yes,
|
||||||
AC_MSG_ERROR(readline header files are required))
|
AC_MSG_ERROR(readline header files are required))
|
||||||
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE([client], AC_HELP_STRING([--disable-client],
|
AC_ARG_ENABLE([client], AC_HELP_STRING([--disable-client],
|
||||||
[don't install iwctl client utility]),
|
[don't install iwctl client utility]),
|
||||||
|
Loading…
Reference in New Issue
Block a user