Browse code

configure: check that the required header for Linux Perf is available

Should fix compilation on targets like some old Android NDK versions.

Signed-off-by: James Almer <jamrial@gmail.com>

James Almer authored on 2018/04/09 01:30:19
Showing 1 changed files
... ...
@@ -2016,6 +2016,7 @@ HEADERS_LIST="
2016 2016
     ES2_gl_h
2017 2017
     gsm_h
2018 2018
     io_h
2019
+    linux_perf_event_h
2019 2020
     machine_ioctl_bt848_h
2020 2021
     machine_ioctl_meteor_h
2021 2022
     malloc_h
... ...
@@ -2478,6 +2479,7 @@ simd_align_32_if_any="avx"
2478 2478
 simd_align_64_if_any="avx512"
2479 2479
 
2480 2480
 # system capabilities
2481
+linux_perf_deps="linux_perf_event_h"
2481 2482
 symver_if_any="symver_asm_label symver_gnu_asm"
2482 2483
 valgrind_backtrace_conflict="optimizations"
2483 2484
 valgrind_backtrace_deps="valgrind_valgrind_h"
... ...
@@ -5800,6 +5802,7 @@ check_header dxgidebug.h
5800 5800
 check_header dxva.h
5801 5801
 check_header dxva2api.h -D_WIN32_WINNT=0x0600
5802 5802
 check_header io.h
5803
+check_header linux/perf_event.h
5803 5804
 check_header libcrystalhd/libcrystalhd_if.h
5804 5805
 check_header malloc.h
5805 5806
 check_header net/udplite.h