From 125d27273798698f46a81956afd0da5273231676 Mon Sep 17 00:00:00 2001 From: Andrew Daugherity Date: Tue, 19 Jan 2016 15:36:46 -0600 Subject: [PATCH] Check for includes in /usr/include/ffmpeg/libav* --- config.m4 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.m4 b/config.m4 index 3185114..a56b5d1 100644 --- a/config.m4 +++ b/config.m4 @@ -21,7 +21,12 @@ if test "$PHP_FFMPEG" != "no"; then AC_MSG_CHECKING(for ffmpeg headers) for i in $INC_CHECK_DIRS ; do - if test -f $i/include/libavcodec/avcodec.h; then + if test -d $i/include/ffmpeg -a -f $i/include/ffmpeg/libavcodec/avcodec.h; then + dnl some distros put headers under /usr/include/ffmpeg/libav{codec,...} now + FFMPEG_INC_FOUND=$i/include + PHP_ADD_INCLUDE($i/include/ffmpeg/) + break + elif test -f $i/include/libavcodec/avcodec.h; then dnl ffmpeg svn revision 12194 and newer put each header in its own dir dnl so we have to include them all. dnl PHP_ADD_INCLUDE($i/include/libavcodec/)