mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
avoid link failure when configuring without --enable-readline
* configure.in: Define READLINE_SUPPORT not when processing --enable-readline or --disable-readline, but rather only after determining that readline support is desired and the readline library is available/usable.
This commit is contained in:
parent
f3c3494c86
commit
2c189a57f4
@ -1,5 +1,6 @@
|
||||
Version 2.02.39 -
|
||||
================================
|
||||
Avoid link failure when configuring without --enable-readline.
|
||||
Make clvmd return immediately if other nodes are down in an openais cluster.
|
||||
Make clvmd return immediately if other nodes are down in a gulm cluster.
|
||||
Improve/Fix read ahead 'auto' calculation for stripe_size
|
||||
|
15
configure.in
15
configure.in
@ -270,14 +270,11 @@ fi
|
||||
################################################################################
|
||||
dnl -- Enable readline
|
||||
AC_MSG_CHECKING(whether to enable readline)
|
||||
AC_ARG_ENABLE(readline, [ --enable-readline Enable readline support],
|
||||
READLINE=$enableval, READLINE=no)
|
||||
AC_ARG_ENABLE([readline],
|
||||
[ --enable-readline Enable readline support],
|
||||
[READLINE=$enableval], [READLINE=no])
|
||||
AC_MSG_RESULT($READLINE)
|
||||
|
||||
if test x$READLINE = xyes; then
|
||||
AC_DEFINE([READLINE_SUPPORT], 1, [Define to 1 to include the LVM readline shell.])
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
dnl -- Disable realtime clock support
|
||||
AC_MSG_CHECKING(whether to enable realtime support)
|
||||
@ -501,7 +498,11 @@ Note: if you are using precompiled packages you will also need the development
|
||||
package as well (which may be called readline-devel or something similar).
|
||||
)
|
||||
)
|
||||
AC_CHECK_FUNC(rl_completion_matches, AC_DEFINE([HAVE_RL_COMPLETION_MATCHES], 1, [Define to 1 if rl_completion_matches() is available.]))
|
||||
AC_CHECK_FUNC([rl_completion_matches],
|
||||
AC_DEFINE([HAVE_RL_COMPLETION_MATCHES], 1,
|
||||
[Define to 1 if rl_completion_matches() is available.]))
|
||||
AC_DEFINE([READLINE_SUPPORT], 1,
|
||||
[Define to 1 to include the LVM readline shell.])
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user