diff mbox

[FFmpeg-devel] configure: check that the required header for Linux Perf is available

Message ID 20180408163019.10024-1-jamrial@gmail.com
State Accepted
Commit 234a5e08313c6b8b0774796dfa1f285a3f877d14
Headers show

Commit Message

James Almer April 8, 2018, 4:30 p.m. UTC
Should fix compilation on targets like some old Android NDK versions.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

Comments

James Almer April 10, 2018, 11:47 p.m. UTC | #1
On 4/8/2018 1:30 PM, James Almer wrote:
> Should fix compilation on targets like some old Android NDK versions.
> 
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>  configure | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/configure b/configure
> index 08d6fc5983..4ea30762f4 100755
> --- a/configure
> +++ b/configure
> @@ -2016,6 +2016,7 @@ HEADERS_LIST="
>      ES2_gl_h
>      gsm_h
>      io_h
> +    linux_perf_event_h
>      machine_ioctl_bt848_h
>      machine_ioctl_meteor_h
>      malloc_h
> @@ -2478,6 +2479,7 @@ simd_align_32_if_any="avx"
>  simd_align_64_if_any="avx512"
>  
>  # system capabilities
> +linux_perf_deps="linux_perf_event_h"
>  symver_if_any="symver_asm_label symver_gnu_asm"
>  valgrind_backtrace_conflict="optimizations"
>  valgrind_backtrace_deps="valgrind_valgrind_h"
> @@ -5800,6 +5802,7 @@ check_header dxgidebug.h
>  check_header dxva.h
>  check_header dxva2api.h -D_WIN32_WINNT=0x0600
>  check_header io.h
> +check_header linux/perf_event.h
>  check_header libcrystalhd/libcrystalhd_if.h
>  check_header malloc.h
>  check_header net/udplite.h

Pushed.
diff mbox

Patch

diff --git a/configure b/configure
index 08d6fc5983..4ea30762f4 100755
--- a/configure
+++ b/configure
@@ -2016,6 +2016,7 @@  HEADERS_LIST="
     ES2_gl_h
     gsm_h
     io_h
+    linux_perf_event_h
     machine_ioctl_bt848_h
     machine_ioctl_meteor_h
     malloc_h
@@ -2478,6 +2479,7 @@  simd_align_32_if_any="avx"
 simd_align_64_if_any="avx512"
 
 # system capabilities
+linux_perf_deps="linux_perf_event_h"
 symver_if_any="symver_asm_label symver_gnu_asm"
 valgrind_backtrace_conflict="optimizations"
 valgrind_backtrace_deps="valgrind_valgrind_h"
@@ -5800,6 +5802,7 @@  check_header dxgidebug.h
 check_header dxva.h
 check_header dxva2api.h -D_WIN32_WINNT=0x0600
 check_header io.h
+check_header linux/perf_event.h
 check_header libcrystalhd/libcrystalhd_if.h
 check_header malloc.h
 check_header net/udplite.h