1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

configure: Enable realtime by default, if present.

This commit is contained in:
Alasdair G Kergon 2015-07-27 14:44:58 +01:00
parent 1568ed4d20
commit 3e333e9b5c
2 changed files with 8 additions and 3 deletions

6
configure vendored
View File

@ -1641,7 +1641,7 @@ Optional Features:
--disable-cache_check_needs_check
required if cache_check version is < 0.5
--disable-readline disable readline support
--enable-realtime enable realtime clock support
--disable-realtime disable realtime clock support
--enable-ocf enable Open Cluster Framework (OCF) compliant
resource agents
--enable-cmirrord enable the cluster mirror log daemon
@ -9206,6 +9206,8 @@ $as_echo_n "checking whether to enable realtime support... " >&6; }
# Check whether --enable-realtime was given.
if test "${enable_realtime+set}" = set; then :
enableval=$enable_realtime; REALTIME=$enableval
else
REALTIME=yes
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
@ -12796,6 +12798,8 @@ $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_REALTIME" >&5
$as_echo "$HAVE_REALTIME" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat has st_ctim." >&5

View File

@ -659,8 +659,8 @@ AC_MSG_RESULT($READLINE)
dnl -- Disable realtime clock support
AC_MSG_CHECKING(whether to enable realtime support)
AC_ARG_ENABLE(realtime,
AC_HELP_STRING([--enable-realtime], [enable realtime clock support]),
REALTIME=$enableval)
AC_HELP_STRING([--disable-realtime], [disable realtime clock support]),
REALTIME=$enableval, REALTIME=yes)
AC_MSG_RESULT($REALTIME)
################################################################################
@ -1573,6 +1573,7 @@ if test "$REALTIME" = yes; then
else
AC_MSG_WARN(Disabling realtime clock)
fi
AC_MSG_RESULT($HAVE_REALTIME)
fi
dnl Check if the system has struct stat st_ctim.