Commit 6c5aa237 authored by Ingo Molnar's avatar Ingo Molnar Committed by Arnaldo Carvalho de Melo

perf tools: Improve Python feature detection messages

Change the Python detection message from:

  config/Makefile:566: No python-config tool was found
  config/Makefile:566: Python support will not be built

  config/Makefile:565: No 'python-config' tool was found: disables Python support - please install python-devel/python-dev

It's now a standard one-line message with a package install suggestion,
and it also uses the standard language used by other feature detection
messages.
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: David Ahern <david.ahern@oracle.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20150228083345.GB31887@gmail.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent a6a76ba9
...@@ -548,22 +548,21 @@ endif ...@@ -548,22 +548,21 @@ endif
disable-python = $(eval $(disable-python_code)) disable-python = $(eval $(disable-python_code))
define disable-python_code define disable-python_code
CFLAGS += -DNO_LIBPYTHON CFLAGS += -DNO_LIBPYTHON
$(if $(1),$(warning No $(1) was found)) $(warning $1)
$(warning Python support will not be built)
NO_LIBPYTHON := 1 NO_LIBPYTHON := 1
endef endef
ifdef NO_LIBPYTHON ifdef NO_LIBPYTHON
$(call disable-python) $(call disable-python,Python support disabled by user)
else else
ifndef PYTHON ifndef PYTHON
$(call disable-python,python interpreter) $(call disable-python,No python interpreter was found: disables Python support - please install python-devel/python-dev)
else else
PYTHON_WORD := $(call shell-wordify,$(PYTHON)) PYTHON_WORD := $(call shell-wordify,$(PYTHON))
ifndef PYTHON_CONFIG ifndef PYTHON_CONFIG
$(call disable-python,python-config tool) $(call disable-python,No 'python-config' tool was found: disables Python support - please install python-devel/python-dev)
else else
PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG)) PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
...@@ -575,7 +574,7 @@ else ...@@ -575,7 +574,7 @@ else
FLAGS_PYTHON_EMBED := $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS) FLAGS_PYTHON_EMBED := $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS)
ifneq ($(feature-libpython), 1) ifneq ($(feature-libpython), 1)
$(call disable-python,Python.h (for Python 2.x)) $(call disable-python,No 'Python.h' (for Python 2.x support) was found: disables Python support - please install python-devel/python-dev)
else else
ifneq ($(feature-libpython-version), 1) ifneq ($(feature-libpython-version), 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment