diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index a9281cca4114..3d8f31ed771d 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -558,15 +558,19 @@ else | |||
558 | endif # PERF_HAVE_DWARF_REGS | 558 | endif # PERF_HAVE_DWARF_REGS |
559 | endif # NO_DWARF | 559 | endif # NO_DWARF |
560 | 560 | ||
561 | ifdef NO_NEWT | ||
562 | BASIC_CFLAGS += -DNO_NEWT_SUPPORT | ||
563 | else | ||
561 | ifneq ($(shell sh -c "(echo '\#include <newt.h>'; echo 'int main(void) { newtInit(); newtCls(); return newtFinished(); }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -lnewt -o $(BITBUCKET) $(ALL_LDFLAGS) $(EXTLIBS) "$(QUIET_STDERR)" && echo y"), y) | 564 | ifneq ($(shell sh -c "(echo '\#include <newt.h>'; echo 'int main(void) { newtInit(); newtCls(); return newtFinished(); }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -lnewt -o $(BITBUCKET) $(ALL_LDFLAGS) $(EXTLIBS) "$(QUIET_STDERR)" && echo y"), y) |
562 | msg := $(warning newt not found, disables TUI support. Please install newt-devel or libnewt-dev); | 565 | msg := $(warning newt not found, disables TUI support. Please install newt-devel or libnewt-dev); |
563 | BASIC_CFLAGS += -DNO_NEWT_SUPPORT | 566 | BASIC_CFLAGS += -DNO_NEWT_SUPPORT |
564 | else | 567 | else |
565 | # Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h | 568 | # Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h |
566 | BASIC_CFLAGS += -I/usr/include/slang | 569 | BASIC_CFLAGS += -I/usr/include/slang |
567 | EXTLIBS += -lnewt | 570 | EXTLIBS += -lnewt -lslang |
568 | LIB_OBJS += $(OUTPUT)util/newt.o | 571 | LIB_OBJS += $(OUTPUT)util/newt.o |
569 | endif | 572 | endif |
573 | endif # NO_NEWT | ||
570 | 574 | ||
571 | ifndef NO_LIBPERL | 575 | ifndef NO_LIBPERL |
572 | PERL_EMBED_LDOPTS = `perl -MExtUtils::Embed -e ldopts 2>/dev/null` | 576 | PERL_EMBED_LDOPTS = `perl -MExtUtils::Embed -e ldopts 2>/dev/null` |