Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From cfd851660a594801a591e80dc820c65cb7bd7836 Mon Sep 17 00:00:00 2001 |
| 2 | From: Otavio Salvador <otavio@ossystems.com.br> |
| 3 | Date: Sat, 6 Oct 2012 06:40:03 -0300 |
| 4 | Subject: [PATCH] configure.in: Avoid running code or we break cross-compile |
| 5 | |
| 6 | Upstream-Status: Backport [similar change done for 12.0] |
| 7 | |
| 8 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> |
| 9 | --- |
| 10 | configure.in | 6 +----- |
| 11 | 1 files changed, 1 insertions(+), 5 deletions(-) |
| 12 | |
| 13 | diff --git a/configure.in b/configure.in |
| 14 | index ef94683..d7efcb0 100755 |
| 15 | --- a/configure.in |
| 16 | +++ b/configure.in |
| 17 | @@ -1246,11 +1246,7 @@ if test "$use_external_ffmpeg" = "yes"; then |
| 18 | AC_DEFINE([USE_EXTERNAL_FFMPEG], [1], [Whether to use external FFmpeg libraries.]) |
| 19 | |
| 20 | # Disable vdpau support if external libavcodec doesn't have it |
| 21 | - AC_RUN_IFELSE( |
| 22 | - AC_LANG_PROGRAM([[#include <libavcodec/avcodec.h>]], |
| 23 | - [[avcodec_register_all(); |
| 24 | - AVCodec *codec = avcodec_find_decoder_by_name("vc1_vdpau"); |
| 25 | - return (codec) ? 0 : 1;]]),, |
| 26 | + AC_CHECK_LIB([avcodec], [ff_vdpau_vc1_decode_picture],, |
| 27 | [if test "x$use_vdpau" = "xyes"; then |
| 28 | AC_MSG_ERROR($ffmpeg_vdpau_not_supported) |
| 29 | else |
| 30 | -- |
| 31 | 1.7.2.5 |
| 32 | |