Commit b9498b50 authored by Ingo Molnar's avatar Ingo Molnar

tools/perf/build: Split out feature check: 'libslang'

Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/n/tip-FGmpkydfwqlkaw7yy8ewjpza@git.kernel.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent d795a658
...@@ -115,6 +115,7 @@ FEATURE_TESTS = \ ...@@ -115,6 +115,7 @@ FEATURE_TESTS = \
libelf-getphdrnum \ libelf-getphdrnum \
libunwind \ libunwind \
libaudit \ libaudit \
libslang \
libnuma libnuma
$(foreach test,$(FEATURE_TESTS),$(call feature_check,$(test),$(test))) $(foreach test,$(FEATURE_TESTS),$(call feature_check,$(test),$(test)))
...@@ -280,8 +281,7 @@ ifdef NO_NEWT ...@@ -280,8 +281,7 @@ ifdef NO_NEWT
endif endif
ifndef NO_SLANG ifndef NO_SLANG
FLAGS_SLANG=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) -I/usr/include/slang -lslang ifneq ($(feature-libslang), 1)
ifneq ($(call try-cc,$(SOURCE_SLANG),$(FLAGS_SLANG),libslang),y)
msg := $(warning slang not found, disables TUI support. Please install slang-devel or libslang-dev); msg := $(warning slang not found, disables TUI support. Please install slang-devel or libslang-dev);
NO_SLANG := 1 NO_SLANG := 1
else else
......
...@@ -13,6 +13,7 @@ FILES= \ ...@@ -13,6 +13,7 @@ FILES= \
test-libelf-getphdrnum \ test-libelf-getphdrnum \
test-libunwind \ test-libunwind \
test-libaudit \ test-libaudit \
test-libslang \
test-libnuma test-libnuma
CC := $(CC) -MD CC := $(CC) -MD
...@@ -65,6 +66,9 @@ test-libunwind: ...@@ -65,6 +66,9 @@ test-libunwind:
test-libaudit: test-libaudit:
$(BUILD) -laudit $(BUILD) -laudit
test-libslang:
$(BUILD) -I/usr/include/slang -lslang
-include *.d */*.d -include *.d */*.d
############################### ###############################
......
#include <slang.h>
int main(void)
{
return SLsmg_init_smg();
}
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