summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-08-01 18:17:06 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-08-01 18:17:06 +0200
commit95dd5bc7fb7dc818116ee367aaa3079f410e2cf7 (patch)
treeaa577857635c23ae0f44a92a741f759e6aa48031 /configure
parent92b53a80772a5a7f18c95ac4f3154a3cd4b1ce43 (diff)
downloadlvm2-95dd5bc7fb7dc818116ee367aaa3079f410e2cf7.tar.gz
configure: tune BUILD_DMEVENTD
Drop 'DMEVENT' make variable and use BUILD_DMEVENTD like with other daemons. NOTE: by default we do not build dmeventd - maybe time to change as lot of build targets basically do need dmeventd... Switch to use SYSTEMD_LIBS and avoid linking systemd library with every linked tool when dbus notification are enabled. (TODO add missing testing for lib presence)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 8 insertions, 9 deletions
diff --git a/configure b/configure
index 6c649cf62..2afbe6eef 100755
--- a/configure
+++ b/configure
@@ -704,7 +704,6 @@ FSADM
ELDFLAGS
DM_LIB_PATCHLEVEL
DMEVENTD_PATH
-DMEVENTD
DL_LIBS
DEVMAPPER
DEFAULT_USE_LVMLOCKD
@@ -12238,7 +12237,7 @@ if test "$NOTIFYDBUS_SUPPORT" = yes; then
$as_echo "#define NOTIFYDBUS_SUPPORT 1" >>confdefs.h
- LIBS="-lsystemd $LIBS"
+ SYSTEMD_LIBS="-lsystemd"
fi
################################################################################
@@ -13917,15 +13916,15 @@ $as_echo "$BLKDEACTIVATE" >&6; }
$as_echo_n "checking whether to use dmeventd... " >&6; }
# Check whether --enable-dmeventd was given.
if test "${enable_dmeventd+set}" = set; then :
- enableval=$enable_dmeventd; DMEVENTD=$enableval
+ enableval=$enable_dmeventd; BUILD_DMEVENTD=$enableval
+else
+ BUILD_DMEVENTD=no
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
-$as_echo "$DMEVENTD" >&6; }
-
-BUILD_DMEVENTD=$DMEVENTD
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMEVENTD" >&5
+$as_echo "$BUILD_DMEVENTD" >&6; }
-if test "$DMEVENTD" = yes; then
+if test "$BUILD_DMEVENTD" = yes; then
if test "$MIRRORS" != internal; then
as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal" "$LINENO" 5
fi
@@ -15218,7 +15217,7 @@ done
fi
-if test "$DMEVENTD" = yes; then
+if test "$BUILD_DMEVENTD" = yes; then
for ac_header in arpa/inet.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"