• Arnaldo Carvalho de Melo's avatar
    tools build: Add test to check if slang.h is in /usr/include/slang/ · cbefd24f
    Arnaldo Carvalho de Melo authored
    A few odd old distros (rhel5, 6, yeah, lots of those out in use, in many
    cases we want to use upstream perf on it) have the slang header files in
    /usr/include/slang/, so add a test that will be performed only when
    test-all.c (the one with the most common sane settings) fails, either
    because we're in one of these odd distros with slang/slang.h or because
    something else failed (say libelf is not present).
    
    So for the common case nothing changes, no additional test is performed.
    
    Next step is to check in perf the result of these tests.
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Florian Fainelli <f.fainelli@gmail.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Fixes: 1955c8cf ("perf tools: Don't hardcode host include path for libslang")
    Link: https://lkml.kernel.org/n/tip-2sy7hbwkx68jr6n97qxgg0c6@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    cbefd24f
test-libslang-include-subdir.c 107 Bytes