Skip to content

Check for includes in /usr/include/ffmpeg/libav* #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down