]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
perf tools: Move slang check config into config/Makefile
authorJiri Olsa <jolsa@redhat.com>
Sun, 24 Mar 2013 23:56:08 +0000 (00:56 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 29 May 2013 11:40:18 +0000 (14:40 +0300)
Moving slang check config into config/Makefile.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1369398928-9809-10-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile
tools/perf/config/Makefile

index 57d39ed23f5b2766ed115c2faf28d202f8908444..f0c23ce6f9572f5f29e1d696decc011b60eeebd1 100644 (file)
@@ -99,10 +99,6 @@ ifeq ($(config),1)
 include config/Makefile
 endif
 
-ifdef NO_NEWT
-       NO_SLANG=1
-endif
-
 # Among the variables below, these:
 #   perfexecdir
 #   template_dir
@@ -509,28 +505,19 @@ ifndef NO_LIBAUDIT
 endif
 
 ifndef NO_SLANG
-       FLAGS_SLANG=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) -I/usr/include/slang -lslang
-       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);
-       else
-               # Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h
-               BASIC_CFLAGS += -I/usr/include/slang
-               BASIC_CFLAGS += -DSLANG_SUPPORT
-               EXTLIBS += -lslang
-               LIB_OBJS += $(OUTPUT)ui/browser.o
-               LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o
-               LIB_OBJS += $(OUTPUT)ui/browsers/hists.o
-               LIB_OBJS += $(OUTPUT)ui/browsers/map.o
-               LIB_OBJS += $(OUTPUT)ui/browsers/scripts.o
-               LIB_OBJS += $(OUTPUT)ui/tui/setup.o
-               LIB_OBJS += $(OUTPUT)ui/tui/util.o
-               LIB_OBJS += $(OUTPUT)ui/tui/helpline.o
-               LIB_OBJS += $(OUTPUT)ui/tui/progress.o
-               LIB_H += ui/browser.h
-               LIB_H += ui/browsers/map.h
-               LIB_H += ui/keysyms.h
-               LIB_H += ui/libslang.h
-       endif
+       LIB_OBJS += $(OUTPUT)ui/browser.o
+       LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o
+       LIB_OBJS += $(OUTPUT)ui/browsers/hists.o
+       LIB_OBJS += $(OUTPUT)ui/browsers/map.o
+       LIB_OBJS += $(OUTPUT)ui/browsers/scripts.o
+       LIB_OBJS += $(OUTPUT)ui/tui/setup.o
+       LIB_OBJS += $(OUTPUT)ui/tui/util.o
+       LIB_OBJS += $(OUTPUT)ui/tui/helpline.o
+       LIB_OBJS += $(OUTPUT)ui/tui/progress.o
+       LIB_H += ui/browser.h
+       LIB_H += ui/browsers/map.h
+       LIB_H += ui/keysyms.h
+       LIB_H += ui/libslang.h
 endif
 
 ifndef NO_GTK2
index 02e58ff9b7449cc6fb7cc6b86b42594017c27af1..06634be35581022eb50b6cadc77c8cbb69d5118a 100644 (file)
@@ -208,3 +208,20 @@ ifndef NO_LIBAUDIT
                EXTLIBS += -laudit
        endif
 endif
+
+ifdef NO_NEWT
+       NO_SLANG=1
+endif
+
+ifndef NO_SLANG
+       FLAGS_SLANG=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) -I/usr/include/slang -lslang
+       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);
+               NO_SLANG := 1
+       else
+               # Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h
+               BASIC_CFLAGS += -I/usr/include/slang
+               BASIC_CFLAGS += -DSLANG_SUPPORT
+               EXTLIBS += -lslang
+       endif
+endif