Remove the check for libavutil/mathematics.h and assume it is always present.
authorAlexis Ballier <aballier@gentoo.org>
Fri, 17 May 2013 12:02:52 +0000 (08:02 -0400)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 17 May 2013 12:02:52 +0000 (08:02 -0400)
This header has existed since years and xbmc will not build with such an old ffmpeg version that does not have it.

configure.in
lib/DllAvUtil.h

index 591d6a1..69d4b9e 100644 (file)
@@ -1626,9 +1626,6 @@ if test "$use_external_ffmpeg" = "yes"; then
   # optional
   AC_CHECK_HEADERS([libavutil/mem.h libavutil/samplefmt.h])
 
-  # new FFmpeg have math headers
-  AC_CHECK_HEADERS([libavutil/mathematics.h],,)
-
   # Check for libswresample or libavresample headers.
   AC_CHECK_HEADERS([libswresample/swresample.h libavresample/avresample.h])
 
index 04284d3..aa9036d 100644 (file)
@@ -61,9 +61,7 @@ extern "C" {
   #else
     #include <ffmpeg/mem.h>
   #endif
-  #if (defined HAVE_LIBAVUTIL_MATHEMATICS_H)
-    #include <libavutil/mathematics.h>
-  #endif
+  #include <libavutil/mathematics.h>
 #else
   #include "libavutil/avutil.h"
   //for av_get_default_channel_layout