mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 18:07:57 +00:00
Makefile.config: fix/improve feature warnings.
1. Tell which RPMs or DEBs are required in all cases. 2. Use $(info ...) everywhere. 3. Drop extra nested $(info), instead use (a document) a simpler kludge. 4. Simplify and unify the language, add missing periods. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
af4058871e
commit
e07ffa04b0
@ -2,12 +2,15 @@ include $(__nmk_dir)utils.mk
|
|||||||
include $(__nmk_dir)msg.mk
|
include $(__nmk_dir)msg.mk
|
||||||
include scripts/feature-tests.mak
|
include scripts/feature-tests.mak
|
||||||
|
|
||||||
|
# This is a kludge for $(info ...) to not eat spaces.
|
||||||
|
S :=
|
||||||
|
|
||||||
ifeq ($(call try-cc,$(FEATURE_TEST_LIBBSD_DEV),-lbsd),true)
|
ifeq ($(call try-cc,$(FEATURE_TEST_LIBBSD_DEV),-lbsd),true)
|
||||||
LIBS_FEATURES += -lbsd
|
LIBS_FEATURES += -lbsd
|
||||||
FEATURE_DEFINES += -DCONFIG_HAS_LIBBSD
|
FEATURE_DEFINES += -DCONFIG_HAS_LIBBSD
|
||||||
else
|
else
|
||||||
$(info Note: Building without setproctitle() and strlcpy() support.)
|
$(info Note: Building without setproctitle() and strlcpy() support.)
|
||||||
$(info $(info) To enable these features, please install libbsd-devel (RPM) / libbsd-dev (DEB).)
|
$(info $S Install libbsd-devel (RPM) / libbsd-dev (DEB) to fix.)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(call pkg-config-check,libselinux),y)
|
ifeq ($(call pkg-config-check,libselinux),y)
|
||||||
@ -23,10 +26,10 @@ endif
|
|||||||
|
|
||||||
ifeq ($(call pkg-config-check,libdrm),y)
|
ifeq ($(call pkg-config-check,libdrm),y)
|
||||||
export CONFIG_AMDGPU := y
|
export CONFIG_AMDGPU := y
|
||||||
$(info Note: Building criu with amdgpu_plugin.)
|
$(info Note: Building with amdgpu_plugin.)
|
||||||
else
|
else
|
||||||
$(info Note: Building criu without amdgpu_plugin.)
|
$(info Note: Building without amdgpu_plugin.)
|
||||||
$(info Note: libdrm and libdrm_amdgpu are required to build amdgpu_plugin.)
|
$(info $S Install libdrm-devel (RPM) or libdrm-dev (DEB) to fix.)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(NO_GNUTLS)x$(call pkg-config-check,gnutls),xy)
|
ifeq ($(NO_GNUTLS)x$(call pkg-config-check,gnutls),xy)
|
||||||
@ -34,7 +37,8 @@ ifeq ($(NO_GNUTLS)x$(call pkg-config-check,gnutls),xy)
|
|||||||
export CONFIG_GNUTLS := y
|
export CONFIG_GNUTLS := y
|
||||||
FEATURE_DEFINES += -DCONFIG_GNUTLS
|
FEATURE_DEFINES += -DCONFIG_GNUTLS
|
||||||
else
|
else
|
||||||
$(info Note: Building without GnuTLS support)
|
$(info Note: Building without GnuTLS support.)
|
||||||
|
$(info $S Install gnutls-devel (RPM) or gnutls-dev (DEB) to fix.)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(call pkg-config-check,libnftables),y)
|
ifeq ($(call pkg-config-check,libnftables),y)
|
||||||
@ -46,12 +50,11 @@ ifeq ($(call pkg-config-check,libnftables),y)
|
|||||||
LIBS_FEATURES += $(LIB_NFTABLES)
|
LIBS_FEATURES += $(LIB_NFTABLES)
|
||||||
FEATURE_DEFINES += -DCONFIG_HAS_NFTABLES_LIB_API_1
|
FEATURE_DEFINES += -DCONFIG_HAS_NFTABLES_LIB_API_1
|
||||||
else
|
else
|
||||||
$(warning Warn: you have libnftables installed but it has incompatible API)
|
$(info Warn: Building without nftables support (incompatible API version).)
|
||||||
$(warning Warn: Building without nftables support)
|
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
$(warning Warn: you have no libnftables installed)
|
$(info Warn: Building without nftables support.)
|
||||||
$(warning Warn: Building without nftables support)
|
$(info $S Install nftables-devel (RPM) or libnftables-dev (DEB) to fix.)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export LIBS += $(LIBS_FEATURES)
|
export LIBS += $(LIBS_FEATURES)
|
||||||
@ -67,10 +70,10 @@ ifeq ($(call try-asm,$(FEATURE_TEST_X86_COMPAT)),true)
|
|||||||
export CONFIG_COMPAT := y
|
export CONFIG_COMPAT := y
|
||||||
FEATURE_DEFINES += -DCONFIG_COMPAT
|
FEATURE_DEFINES += -DCONFIG_COMPAT
|
||||||
else
|
else
|
||||||
$(info Note: Building without ia32 C/R, missed ia32 support in gcc)
|
$(info Note: Building without ia32 C/R, missing ia32 support in gcc.)
|
||||||
$(info $(info) That may be related to missing gcc-multilib in your)
|
$(info $S It may be related to missing gcc-multilib in your)
|
||||||
$(info $(info) distribution or you may have Debian with buggy toolchain)
|
$(info $S distribution, or you may have Debian with buggy toolchain.)
|
||||||
$(info $(info) (issue https://github.com/checkpoint-restore/criu/issues/315))
|
$(info $S See https://github.com/checkpoint-restore/criu/issues/315.)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user