mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
configure: updates
This commit is contained in:
parent
6635ff77e3
commit
b73e1cd4b3
308
configure
vendored
308
configure
vendored
@ -668,7 +668,6 @@ SALCK_CFLAGS
|
|||||||
SACKPT_LIBS
|
SACKPT_LIBS
|
||||||
SACKPT_CFLAGS
|
SACKPT_CFLAGS
|
||||||
REPLICATORS
|
REPLICATORS
|
||||||
READLINE_LIBS
|
|
||||||
RT_LIBS
|
RT_LIBS
|
||||||
QUORUM_LIBS
|
QUORUM_LIBS
|
||||||
QUORUM_CFLAGS
|
QUORUM_CFLAGS
|
||||||
@ -755,6 +754,8 @@ BUILD_LVMDBUSD
|
|||||||
BUILD_DMEVENTD
|
BUILD_DMEVENTD
|
||||||
BUILD_CMIRRORD
|
BUILD_CMIRRORD
|
||||||
BLKID_PC
|
BLKID_PC
|
||||||
|
READLINE_LIBS
|
||||||
|
READLINE_CFLAGS
|
||||||
MODPROBE_CMD
|
MODPROBE_CMD
|
||||||
MSGFMT
|
MSGFMT
|
||||||
EDITLINE_LIBS
|
EDITLINE_LIBS
|
||||||
@ -776,12 +777,6 @@ SYSTEMD_LIBS
|
|||||||
SYSTEMD_CFLAGS
|
SYSTEMD_CFLAGS
|
||||||
BLKID_LIBS
|
BLKID_LIBS
|
||||||
BLKID_CFLAGS
|
BLKID_CFLAGS
|
||||||
APP_MACHINEID_LIBS
|
|
||||||
APP_MACHINEID_CFLAGS
|
|
||||||
NOTIFY_DBUS_LIBS
|
|
||||||
NOTIFY_DBUS_CFLAGS
|
|
||||||
BLKID_LIBS
|
|
||||||
BLKID_CFLAGS
|
|
||||||
LOCKD_IDM_LIBS
|
LOCKD_IDM_LIBS
|
||||||
LOCKD_IDM_CFLAGS
|
LOCKD_IDM_CFLAGS
|
||||||
LOCKD_DLM_CONTROL_LIBS
|
LOCKD_DLM_CONTROL_LIBS
|
||||||
@ -912,6 +907,7 @@ with_device_uid
|
|||||||
with_device_gid
|
with_device_gid
|
||||||
with_device_mode
|
with_device_mode
|
||||||
with_device_nodes_on
|
with_device_nodes_on
|
||||||
|
with_default_use_devices_file
|
||||||
with_default_name_mangling
|
with_default_name_mangling
|
||||||
with_snapshots
|
with_snapshots
|
||||||
with_mirrors
|
with_mirrors
|
||||||
@ -961,6 +957,7 @@ enable_use_lvmpolld
|
|||||||
with_lvmpolld_pidfile
|
with_lvmpolld_pidfile
|
||||||
enable_dmfilemapd
|
enable_dmfilemapd
|
||||||
enable_notify_dbus
|
enable_notify_dbus
|
||||||
|
enable_systemd_journal
|
||||||
enable_app_machineid
|
enable_app_machineid
|
||||||
enable_blkid_wiping
|
enable_blkid_wiping
|
||||||
enable_udev_systemd_background_jobs
|
enable_udev_systemd_background_jobs
|
||||||
@ -1032,21 +1029,17 @@ LOCKD_DLM_CONTROL_CFLAGS
|
|||||||
LOCKD_DLM_CONTROL_LIBS
|
LOCKD_DLM_CONTROL_LIBS
|
||||||
LOCKD_IDM_CFLAGS
|
LOCKD_IDM_CFLAGS
|
||||||
LOCKD_IDM_LIBS
|
LOCKD_IDM_LIBS
|
||||||
NOTIFY_DBUS_CFLAGS
|
|
||||||
NOTIFY_DBUS_LIBS
|
|
||||||
APP_MACHINEID_CFLAGS
|
|
||||||
APP_MACHINEID_LIBS
|
|
||||||
BLKID_CFLAGS
|
BLKID_CFLAGS
|
||||||
BLKID_LIBS
|
BLKID_LIBS
|
||||||
NOTIFY_DBUS_CFLAGS
|
|
||||||
NOTIFY_DBUS_LIBS
|
|
||||||
SYSTEMD_CFLAGS
|
SYSTEMD_CFLAGS
|
||||||
SYSTEMD_LIBS
|
SYSTEMD_LIBS
|
||||||
UDEV_CFLAGS
|
UDEV_CFLAGS
|
||||||
UDEV_LIBS
|
UDEV_LIBS
|
||||||
PYTHON
|
PYTHON
|
||||||
EDITLINE_CFLAGS
|
EDITLINE_CFLAGS
|
||||||
EDITLINE_LIBS'
|
EDITLINE_LIBS
|
||||||
|
READLINE_CFLAGS
|
||||||
|
READLINE_LIBS'
|
||||||
|
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
@ -1700,7 +1693,9 @@ Optional Features:
|
|||||||
--disable-use-lvmpolld disable usage of LVM Poll Daemon
|
--disable-use-lvmpolld disable usage of LVM Poll Daemon
|
||||||
--enable-dmfilemapd enable the dmstats filemap daemon
|
--enable-dmfilemapd enable the dmstats filemap daemon
|
||||||
--enable-notify-dbus enable LVM notification using dbus
|
--enable-notify-dbus enable LVM notification using dbus
|
||||||
--enable-app-machineid enable LVM system ID using app-specific machine-id
|
--disable-systemd-journal
|
||||||
|
disable LVM systemd journaling
|
||||||
|
--disable-app-machineid disable LVM system ID using app-specific machine-id
|
||||||
--disable-blkid_wiping disable libblkid detection of signatures when wiping
|
--disable-blkid_wiping disable libblkid detection of signatures when wiping
|
||||||
and use native code instead
|
and use native code instead
|
||||||
--disable-udev-systemd-background-jobs
|
--disable-udev-systemd-background-jobs
|
||||||
@ -1737,6 +1732,8 @@ Optional Packages:
|
|||||||
--with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
|
--with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
|
||||||
--with-device-nodes-on=ON
|
--with-device-nodes-on=ON
|
||||||
create nodes on resume or create [ON=resume]
|
create nodes on resume or create [ON=resume]
|
||||||
|
--with-default-use-devices-file
|
||||||
|
default for lvm.conf devices/use_devicesfile = [0]
|
||||||
--with-default-name-mangling=MANGLING
|
--with-default-name-mangling=MANGLING
|
||||||
default name mangling: auto/none/hex [auto]
|
default name mangling: auto/none/hex [auto]
|
||||||
--with-snapshots=TYPE snapshot support: internal/none [internal]
|
--with-snapshots=TYPE snapshot support: internal/none [internal]
|
||||||
@ -1859,21 +1856,6 @@ Some influential environment variables:
|
|||||||
BLKID_CFLAGS
|
BLKID_CFLAGS
|
||||||
C compiler flags for BLKID, overriding pkg-config
|
C compiler flags for BLKID, overriding pkg-config
|
||||||
BLKID_LIBS linker flags for BLKID, overriding pkg-config
|
BLKID_LIBS linker flags for BLKID, overriding pkg-config
|
||||||
NOTIFY_DBUS_CFLAGS
|
|
||||||
C compiler flags for NOTIFY_DBUS, overriding pkg-config
|
|
||||||
NOTIFY_DBUS_LIBS
|
|
||||||
linker flags for NOTIFY_DBUS, overriding pkg-config
|
|
||||||
APP_MACHINEID_CFLAGS
|
|
||||||
C compiler flags for APP_MACHINEID, overriding pkg-config
|
|
||||||
APP_MACHINEID_LIBS
|
|
||||||
linker flags for APP_MACHINEID, overriding pkg-config
|
|
||||||
BLKID_CFLAGS
|
|
||||||
C compiler flags for BLKID, overriding pkg-config
|
|
||||||
BLKID_LIBS linker flags for BLKID, overriding pkg-config
|
|
||||||
SYSTEMD_CFLAGS
|
|
||||||
C compiler flags for SYSTEMD, overriding pkg-config
|
|
||||||
SYSTEMD_LIBS
|
|
||||||
linker flags for SYSTEMD, overriding pkg-config
|
|
||||||
UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
|
UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
|
||||||
UDEV_LIBS linker flags for UDEV, overriding pkg-config
|
UDEV_LIBS linker flags for UDEV, overriding pkg-config
|
||||||
PYTHON the Python interpreter
|
PYTHON the Python interpreter
|
||||||
@ -1881,6 +1863,10 @@ Some influential environment variables:
|
|||||||
C compiler flags for EDITLINE, overriding pkg-config
|
C compiler flags for EDITLINE, overriding pkg-config
|
||||||
EDITLINE_LIBS
|
EDITLINE_LIBS
|
||||||
linker flags for EDITLINE, overriding pkg-config
|
linker flags for EDITLINE, overriding pkg-config
|
||||||
|
READLINE_CFLAGS
|
||||||
|
C compiler flags for readline
|
||||||
|
READLINE_LIBS
|
||||||
|
linker flags for readline
|
||||||
|
|
||||||
Use these variables to override the choices made by `configure' or to help
|
Use these variables to override the choices made by `configure' or to help
|
||||||
it to find libraries and programs with nonstandard names/locations.
|
it to find libraries and programs with nonstandard names/locations.
|
||||||
@ -6718,18 +6704,17 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5
|
||||||
printf %s "checking for __builtin_ffs... " >&6; }
|
$as_echo_n "checking for __builtin_ffs... " >&6; }
|
||||||
if test ${ax_cv_have___builtin_ffs+y}
|
if ${ax_cv_have___builtin_ffs+:} false; then :
|
||||||
then :
|
$as_echo_n "(cached) " >&6
|
||||||
printf %s "(cached) " >&6
|
else
|
||||||
else $as_nop
|
|
||||||
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
||||||
int
|
int
|
||||||
main (void)
|
main ()
|
||||||
{
|
{
|
||||||
|
|
||||||
__builtin_ffs(0)
|
__builtin_ffs(0)
|
||||||
@ -6738,26 +6723,31 @@ main (void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_link "$LINENO"
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
then :
|
|
||||||
ax_cv_have___builtin_ffs=yes
|
ax_cv_have___builtin_ffs=yes
|
||||||
else $as_nop
|
else
|
||||||
ax_cv_have___builtin_ffs=no
|
ax_cv_have___builtin_ffs=no
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
|
||||||
fi
|
fi
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ffs" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ffs" >&5
|
||||||
printf "%s\n" "$ax_cv_have___builtin_ffs" >&6; }
|
$as_echo "$ax_cv_have___builtin_ffs" >&6; }
|
||||||
|
|
||||||
if test yes = $ax_cv_have___builtin_ffs
|
if test yes = $ax_cv_have___builtin_ffs; then :
|
||||||
then :
|
|
||||||
|
|
||||||
printf "%s\n" "#define HAVE___BUILTIN_FFS 1" >>confdefs.h
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define HAVE___BUILTIN_FFS 1
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
@ -6783,25 +6773,17 @@ else
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
|
for ac_func in ffs prlimit versionsort
|
||||||
if test "x$ac_cv_func_ffs" = xyes
|
do :
|
||||||
then :
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||||
printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
||||||
|
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
|
done
|
||||||
if test "x$ac_cv_func_prlimit" = xyes
|
|
||||||
then :
|
|
||||||
printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
|
|
||||||
|
|
||||||
fi
|
|
||||||
ac_fn_c_check_func "$LINENO" "versionsort" "ac_cv_func_versionsort"
|
|
||||||
if test "x$ac_cv_func_versionsort" = xyes
|
|
||||||
then :
|
|
||||||
printf "%s\n" "#define HAVE_VERSIONSORT 1" >>confdefs.h
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
||||||
# for constant arguments. Useless!
|
# for constant arguments. Useless!
|
||||||
@ -8366,7 +8348,6 @@ test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|||||||
# Let make expand exec_prefix.
|
# Let make expand exec_prefix.
|
||||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
|
||||||
$as_echo_n "checking file owner... " >&6; }
|
$as_echo_n "checking file owner... " >&6; }
|
||||||
@ -8476,6 +8457,29 @@ cat >>confdefs.h <<_ACEOF
|
|||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default for use_devicesfile" >&5
|
||||||
|
$as_echo_n "checking default for use_devicesfile... " >&6; }
|
||||||
|
|
||||||
|
# Check whether --with-default-use-devices-file was given.
|
||||||
|
if test "${with_default_use_devices_file+set}" = set; then :
|
||||||
|
withval=$with_default_use_devices_file; DEFAULT_USE_DEVICES_FILE=$enableval
|
||||||
|
else
|
||||||
|
DEFAULT_USE_DEVICES_FILE=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$DEFAULT_USE_DEVICES_FILE" in
|
||||||
|
0|1);;
|
||||||
|
*) as_fn_error $? "--with-default-use-devices-file parameter invalid" "$LINENO" 5;;
|
||||||
|
esac
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_DEVICES_FILE" >&5
|
||||||
|
$as_echo "$DEFAULT_USE_DEVICES_FILE" >&6; }
|
||||||
|
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define DEFAULT_USE_DEVICES_FILE $DEFAULT_USE_DEVICES_FILE
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
|
||||||
$as_echo_n "checking default name mangling... " >&6; }
|
$as_echo_n "checking default name mangling... " >&6; }
|
||||||
|
|
||||||
@ -9856,13 +9860,13 @@ _ACEOF
|
|||||||
# Do we want to link lvm2 with a big library for vdoformating ?
|
# Do we want to link lvm2 with a big library for vdoformating ?
|
||||||
#
|
#
|
||||||
#AC_ARG_WITH(vdo-include,
|
#AC_ARG_WITH(vdo-include,
|
||||||
# AC_HELP_STRING([--with-vdo-include=PATH],
|
# AS_HELP_STRING([--with-vdo-include=PATH],
|
||||||
# [vdo support: Path to utils headers: [/usr/include/vdo/utils]]),
|
# [vdo support: Path to utils headers: [/usr/include/vdo/utils]]),
|
||||||
# VDO_INCLUDE=$withval, VDO_INCLUDE="/usr/include/vdo/utils")
|
# VDO_INCLUDE=$withval, VDO_INCLUDE="/usr/include/vdo/utils")
|
||||||
#AC_MSG_RESULT($VDO_INCLUDE)
|
#AC_MSG_RESULT($VDO_INCLUDE)
|
||||||
#
|
#
|
||||||
#AC_ARG_WITH(vdo-lib,
|
#AC_ARG_WITH(vdo-lib,
|
||||||
# AC_HELP_STRING([--with-vdo-lib=PATH],
|
# AS_HELP_STRING([--with-vdo-lib=PATH],
|
||||||
# [vdo support: Path to utils lib: [/usr/lib]]),
|
# [vdo support: Path to utils lib: [/usr/lib]]),
|
||||||
# VDO_LIB=$withval, VDO_LIB="/usr/lib")
|
# VDO_LIB=$withval, VDO_LIB="/usr/lib")
|
||||||
#AC_MSG_RESULT($VDO_LIB)
|
#AC_MSG_RESULT($VDO_LIB)
|
||||||
@ -11559,6 +11563,7 @@ fi
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
SYSTEMD_MIN_VERSION=
|
||||||
################################################################################
|
################################################################################
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build notifydbus" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build notifydbus" >&5
|
||||||
$as_echo_n "checking whether to build notifydbus... " >&6; }
|
$as_echo_n "checking whether to build notifydbus... " >&6; }
|
||||||
@ -11572,125 +11577,91 @@ fi
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOTIFYDBUS_SUPPORT" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOTIFYDBUS_SUPPORT" >&5
|
||||||
$as_echo "$NOTIFYDBUS_SUPPORT" >&6; }
|
$as_echo "$NOTIFYDBUS_SUPPORT" >&6; }
|
||||||
|
|
||||||
if test "$NOTIFYDBUS_SUPPORT" = yes; then
|
if test "$NOTIFYDBUS_SUPPORT" = yes; then :
|
||||||
|
|
||||||
$as_echo "#define NOTIFYDBUS_SUPPORT 1" >>confdefs.h
|
$as_echo "#define NOTIFYDBUS_SUPPORT 1" >>confdefs.h
|
||||||
|
|
||||||
SYSTEMD_LIBS="-lsystemd"
|
SYSTEMD_MIN_VERSION=221
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
if test "$NOTIFYDBUS_SUPPORT" = yes; then
|
ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
|
||||||
pkg_failed=no
|
SYSTEMD_JOURNAL_SUPPORT=yes
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NOTIFY_DBUS" >&5
|
|
||||||
$as_echo_n "checking for NOTIFY_DBUS... " >&6; }
|
|
||||||
|
|
||||||
if test -n "$NOTIFY_DBUS_CFLAGS"; then
|
|
||||||
pkg_cv_NOTIFY_DBUS_CFLAGS="$NOTIFY_DBUS_CFLAGS"
|
|
||||||
elif test -n "$PKG_CONFIG"; then
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 221\""; } >&5
|
|
||||||
($PKG_CONFIG --exists --print-errors "systemd >= 221") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
||||||
test $ac_status = 0; }; then
|
|
||||||
pkg_cv_NOTIFY_DBUS_CFLAGS=`$PKG_CONFIG --cflags "systemd >= 221" 2>/dev/null`
|
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
SYSTEMD_JOURNAL_SUPPORT=no
|
||||||
fi
|
|
||||||
else
|
|
||||||
pkg_failed=untried
|
|
||||||
fi
|
|
||||||
if test -n "$NOTIFY_DBUS_LIBS"; then
|
|
||||||
pkg_cv_NOTIFY_DBUS_LIBS="$NOTIFY_DBUS_LIBS"
|
|
||||||
elif test -n "$PKG_CONFIG"; then
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 221\""; } >&5
|
|
||||||
($PKG_CONFIG --exists --print-errors "systemd >= 221") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
||||||
test $ac_status = 0; }; then
|
|
||||||
pkg_cv_NOTIFY_DBUS_LIBS=`$PKG_CONFIG --libs "systemd >= 221" 2>/dev/null`
|
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
|
||||||
else
|
|
||||||
pkg_failed=yes
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
pkg_failed=untried
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log to systemd journal" >&5
|
||||||
if test $pkg_failed = yes; then
|
$as_echo_n "checking whether to log to systemd journal... " >&6; }
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
# Check whether --enable-systemd-journal was given.
|
||||||
$as_echo "no" >&6; }
|
if test "${enable_systemd_journal+set}" = set; then :
|
||||||
|
enableval=$enable_systemd_journal; if test "$enableval" = yes && test "$SYSTEMD_JOURNAL_SUPPORT" = no; then :
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
as_fn_error $? "Enabling systemd journaling requires systemd/sd-journal.h." "$LINENO" 5
|
||||||
_pkg_short_errors_supported=yes
|
|
||||||
else
|
|
||||||
_pkg_short_errors_supported=no
|
|
||||||
fi
|
fi
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
SYSTEMD_JOURNAL_SUPPORT=$enableval
|
||||||
NOTIFY_DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd >= 221" 2>&1`
|
|
||||||
else
|
|
||||||
NOTIFY_DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd >= 221" 2>&1`
|
|
||||||
fi
|
|
||||||
# Put the nasty error message in config.log where it belongs
|
|
||||||
echo "$NOTIFY_DBUS_PKG_ERRORS" >&5
|
|
||||||
|
|
||||||
$bailout
|
|
||||||
elif test $pkg_failed = untried; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
$bailout
|
|
||||||
else
|
|
||||||
NOTIFY_DBUS_CFLAGS=$pkg_cv_NOTIFY_DBUS_CFLAGS
|
|
||||||
NOTIFY_DBUS_LIBS=$pkg_cv_NOTIFY_DBUS_LIBS
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
||||||
$as_echo "yes" >&6; }
|
|
||||||
HAVE_NOTIFY_DBUS=yes
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_JOURNAL_SUPPORT" >&5
|
||||||
|
$as_echo "$SYSTEMD_JOURNAL_SUPPORT" >&6; }
|
||||||
|
|
||||||
|
if test "$SYSTEMD_JOURNAL_SUPPORT" = yes; then :
|
||||||
|
|
||||||
|
$as_echo "#define SYSTEMD_JOURNAL_SUPPORT 1" >>confdefs.h
|
||||||
|
|
||||||
|
SYSTEMD_MIN_VERSION=221
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-id128.h" "ac_cv_header_systemd_sd_id128_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_systemd_sd_id128_h" = xyes; then :
|
||||||
|
APP_MACHINEID_SUPPORT=yes
|
||||||
|
else
|
||||||
|
APP_MACHINEID_SUPPORT=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build appmachineid" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build appmachineid" >&5
|
||||||
$as_echo_n "checking whether to build appmachineid... " >&6; }
|
$as_echo_n "checking whether to build appmachineid... " >&6; }
|
||||||
# Check whether --enable-app-machineid was given.
|
# Check whether --enable-app-machineid was given.
|
||||||
if test "${enable_app_machineid+set}" = set; then :
|
if test "${enable_app_machineid+set}" = set; then :
|
||||||
enableval=$enable_app_machineid; APP_MACHINEID_SUPPORT=$enableval
|
enableval=$enable_app_machineid; if test "$enableval" = yes && test "$APP_MACHINEID_SUPPORT" = no; then :
|
||||||
else
|
as_fn_error $? "Enabling app machineid requires systemd/sd-id128.h." "$LINENO" 5
|
||||||
APP_MACHINEID_SUPPORT=no
|
fi
|
||||||
|
APP_MACHINEID_SUPPORT=$enableval
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APP_MACHINEID_SUPPORT" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APP_MACHINEID_SUPPORT" >&5
|
||||||
$as_echo "$APP_MACHINEID_SUPPORT" >&6; }
|
$as_echo "$APP_MACHINEID_SUPPORT" >&6; }
|
||||||
|
|
||||||
if test "$APP_MACHINEID_SUPPORT" = yes; then
|
if test "$APP_MACHINEID_SUPPORT" = yes; then :
|
||||||
|
|
||||||
$as_echo "#define APP_MACHINEID_SUPPORT 1" >>confdefs.h
|
$as_echo "#define APP_MACHINEID_SUPPORT 1" >>confdefs.h
|
||||||
|
|
||||||
SYSTEMD_LIBS="-lsystemd"
|
SYSTEMD_MIN_VERSION=234
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################################################################################
|
if test -n "SYSTEMD_MIN_VERSION"; then :
|
||||||
if test "$APP_MACHINEID_SUPPORT" = yes; then
|
SYSTEMD_CFLAGS
|
||||||
|
C compiler flags for SYSTEMD, overriding pkg-config
|
||||||
|
SYSTEMD_LIBS
|
||||||
|
linker flags for SYSTEMD, overriding pkg-config
|
||||||
|
|
||||||
pkg_failed=no
|
pkg_failed=no
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APP_MACHINEID" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
|
||||||
$as_echo_n "checking for APP_MACHINEID... " >&6; }
|
$as_echo_n "checking for SYSTEMD... " >&6; }
|
||||||
|
|
||||||
if test -n "$APP_MACHINEID_CFLAGS"; then
|
if test -n "$SYSTEMD_CFLAGS"; then
|
||||||
pkg_cv_APP_MACHINEID_CFLAGS="$APP_MACHINEID_CFLAGS"
|
pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 234\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= \"\$SYSTEMD_MIN_VERSION\"\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "systemd >= 234") 2>&5
|
($PKG_CONFIG --exists --print-errors "systemd >= "$SYSTEMD_MIN_VERSION"") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_APP_MACHINEID_CFLAGS=`$PKG_CONFIG --cflags "systemd >= 234" 2>/dev/null`
|
pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "systemd >= "$SYSTEMD_MIN_VERSION"" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@ -11698,16 +11669,16 @@ fi
|
|||||||
else
|
else
|
||||||
pkg_failed=untried
|
pkg_failed=untried
|
||||||
fi
|
fi
|
||||||
if test -n "$APP_MACHINEID_LIBS"; then
|
if test -n "$SYSTEMD_LIBS"; then
|
||||||
pkg_cv_APP_MACHINEID_LIBS="$APP_MACHINEID_LIBS"
|
pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 234\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= \"\$SYSTEMD_MIN_VERSION\"\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "systemd >= 234") 2>&5
|
($PKG_CONFIG --exists --print-errors "systemd >= "$SYSTEMD_MIN_VERSION"") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_APP_MACHINEID_LIBS=`$PKG_CONFIG --libs "systemd >= 234" 2>/dev/null`
|
pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "systemd >= "$SYSTEMD_MIN_VERSION"" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@ -11728,12 +11699,12 @@ else
|
|||||||
_pkg_short_errors_supported=no
|
_pkg_short_errors_supported=no
|
||||||
fi
|
fi
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
APP_MACHINEID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd >= 234" 2>&1`
|
SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd >= "$SYSTEMD_MIN_VERSION"" 2>&1`
|
||||||
else
|
else
|
||||||
APP_MACHINEID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd >= 234" 2>&1`
|
SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd >= "$SYSTEMD_MIN_VERSION"" 2>&1`
|
||||||
fi
|
fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$APP_MACHINEID_PKG_ERRORS" >&5
|
echo "$SYSTEMD_PKG_ERRORS" >&5
|
||||||
|
|
||||||
$bailout
|
$bailout
|
||||||
elif test $pkg_failed = untried; then
|
elif test $pkg_failed = untried; then
|
||||||
@ -11741,12 +11712,13 @@ elif test $pkg_failed = untried; then
|
|||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
$bailout
|
$bailout
|
||||||
else
|
else
|
||||||
APP_MACHINEID_CFLAGS=$pkg_cv_APP_MACHINEID_CFLAGS
|
SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
|
||||||
APP_MACHINEID_LIBS=$pkg_cv_APP_MACHINEID_LIBS
|
SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
HAVE_APP_MACHINEID=yes
|
|
||||||
fi
|
fi
|
||||||
|
SYSTEMD_LIBS="-lsystemd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -14386,6 +14358,19 @@ cat >>confdefs.h <<_ACEOF
|
|||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
|
||||||
@ -14530,11 +14515,6 @@ _ACEOF
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,6 +90,9 @@
|
|||||||
/* Use blkid wiping by default. */
|
/* Use blkid wiping by default. */
|
||||||
#undef DEFAULT_USE_BLKID_WIPING
|
#undef DEFAULT_USE_BLKID_WIPING
|
||||||
|
|
||||||
|
/* Default for lvm.conf use_devicefile. */
|
||||||
|
#undef DEFAULT_USE_DEVICES_FILE
|
||||||
|
|
||||||
/* Use lvmlockd by default. */
|
/* Use lvmlockd by default. */
|
||||||
#undef DEFAULT_USE_LVMLOCKD
|
#undef DEFAULT_USE_LVMLOCKD
|
||||||
|
|
||||||
@ -668,6 +671,9 @@
|
|||||||
/* Define to 1 if strerror_r returns char *. */
|
/* Define to 1 if strerror_r returns char *. */
|
||||||
#undef STRERROR_R_CHAR_P
|
#undef STRERROR_R_CHAR_P
|
||||||
|
|
||||||
|
/* Define to 1 to include code that uses systemd journal. */
|
||||||
|
#undef SYSTEMD_JOURNAL_SUPPORT
|
||||||
|
|
||||||
/* Path to testsuite data */
|
/* Path to testsuite data */
|
||||||
#undef TESTSUITE_DATA
|
#undef TESTSUITE_DATA
|
||||||
|
|
||||||
|
@ -322,7 +322,6 @@
|
|||||||
|
|
||||||
#define DEFAULT_MD_COMPONENT_CHECKS "auto"
|
#define DEFAULT_MD_COMPONENT_CHECKS "auto"
|
||||||
|
|
||||||
#define DEFAULT_USE_DEVICES_FILE 1
|
|
||||||
#define DEFAULT_DEVICES_FILE "system.devices"
|
#define DEFAULT_DEVICES_FILE "system.devices"
|
||||||
|
|
||||||
#define DEFAULT_SEARCH_FOR_DEVNAMES "auto"
|
#define DEFAULT_SEARCH_FOR_DEVNAMES "auto"
|
||||||
|
23
make.tmpl.in
23
make.tmpl.in
@ -73,22 +73,29 @@ CLDFLAGS += @CLDFLAGS@
|
|||||||
ELDFLAGS += @ELDFLAGS@
|
ELDFLAGS += @ELDFLAGS@
|
||||||
LDDEPS += @LDDEPS@
|
LDDEPS += @LDDEPS@
|
||||||
LIB_SUFFIX = @LIB_SUFFIX@
|
LIB_SUFFIX = @LIB_SUFFIX@
|
||||||
|
USE_TRACKING = @USE_TRACKING@
|
||||||
|
|
||||||
DL_LIBS = @DL_LIBS@
|
DL_LIBS = @DL_LIBS@
|
||||||
RT_LIBS = @RT_LIBS@
|
RT_LIBS = @RT_LIBS@
|
||||||
M_LIBS = @M_LIBS@
|
M_LIBS = @M_LIBS@
|
||||||
AIO_LIBS = @AIO_LIBS@
|
|
||||||
AIO_CFLAGS = @AIO_CFLAGS@
|
AIO_CFLAGS = @AIO_CFLAGS@
|
||||||
PTHREAD_LIBS = @PTHREAD_LIBS@
|
AIO_LIBS = @AIO_LIBS@
|
||||||
READLINE_LIBS = @READLINE_LIBS@
|
|
||||||
EDITLINE_LIBS = @EDITLINE_LIBS@
|
|
||||||
SELINUX_LIBS = @SELINUX_LIBS@
|
|
||||||
UDEV_CFLAGS = @UDEV_CFLAGS@
|
|
||||||
UDEV_LIBS = @UDEV_LIBS@
|
|
||||||
BLKID_CFLAGS = @BLKID_CFLAGS@
|
BLKID_CFLAGS = @BLKID_CFLAGS@
|
||||||
BLKID_LIBS = @BLKID_LIBS@
|
BLKID_LIBS = @BLKID_LIBS@
|
||||||
|
CPG_CFLAGS = @CPG_CFLAGS@
|
||||||
|
CPG_LIBS = @CPG_LIBS@
|
||||||
|
EDITLINE_CFLAGS = @EDITLINE_CFLAGS@
|
||||||
|
EDITLINE_LIBS = @EDITLINE_LIBS@
|
||||||
|
PTHREAD_LIBS = @PTHREAD_LIBS@
|
||||||
|
READLINE_CFLAGS = @READLINE_CFLAGS@
|
||||||
|
READLINE_LIBS = @READLINE_LIBS@
|
||||||
|
SELINUX_LIBS = @SELINUX_LIBS@
|
||||||
|
SYSTEMD_CFLAGS = @SYSTEMD_CFLAGS@
|
||||||
SYSTEMD_LIBS = @SYSTEMD_LIBS@
|
SYSTEMD_LIBS = @SYSTEMD_LIBS@
|
||||||
|
UDEV_CFLAGS = @UDEV_CFLAGS@
|
||||||
|
UDEV_LIBS = @UDEV_LIBS@
|
||||||
VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
|
VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
|
||||||
USE_TRACKING = @USE_TRACKING@
|
VALGRIND_LIBS = @VALGRIND_LIBS@
|
||||||
|
|
||||||
# Setup directory variables
|
# Setup directory variables
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
|
Loading…
Reference in New Issue
Block a user