diff -uNr opencv-1.0.0/configure opencv-1.0.0-fixed/configure --- opencv-1.0.0/configure 2009-05-03 17:11:43.192450271 +0200 +++ opencv-1.0.0-fixed/configure 2009-05-03 17:15:02.471951090 +0200 @@ -22467,8 +22467,8 @@ fi if test x"$with_ffmpeg" = "xyes"; then if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then - { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5 -echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; } + { echo "$as_me:$LINENO: checking for libavcodec/avcodec.h" >&5 +echo $ECHO_N "checking for libavcodec/avcodec.h... $ECHO_C" >&6; } if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi @@ -22476,8 +22476,8 @@ echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; } else # Is the header compilable? -{ echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5 -echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; } +{ echo "$as_me:$LINENO: checking libavcodec/avcodec.h usability" >&5 +echo $ECHO_N "checking libavcodec/avcodec.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -22485,7 +22485,7 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default -#include +#include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" @@ -22517,15 +22517,15 @@ echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? -{ echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5 -echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; } +{ echo "$as_me:$LINENO: checking libavcodec/avcodec.h presence" >&5 +echo $ECHO_N "checking libavcodec/avcodec.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in @@ -22558,25 +22558,25 @@ # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) - { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;} + { echo "$as_me:$LINENO: WARNING: libavcodec/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: libavcodec/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: libavcodec/avcodec.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: libavcodec/avcodec.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) - { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;} + { echo "$as_me:$LINENO: WARNING: libavcodec/avcodec.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: libavcodec/avcodec.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: libavcodec/avcodec.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: libavcodec/avcodec.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: libavcodec/avcodec.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: libavcodec/avcodec.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: libavcodec/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: libavcodec/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: libavcodec/avcodec.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: libavcodec/avcodec.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: libavcodec/avcodec.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: libavcodec/avcodec.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## -------------------------------------------------------- ## ## Report this to opencvlibrary-devel@lists.sourceforge.net ## @@ -22585,8 +22585,8 @@ ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac -{ echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5 -echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; } +{ echo "$as_me:$LINENO: checking for libavcodec/avcodec.h" >&5 +echo $ECHO_N "checking for libavcodec/avcodec.h... $ECHO_C" >&6; } if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else diff -uNr opencv-1.0.0/configure.in opencv-1.0.0-fixed/configure.in --- opencv-1.0.0/configure.in 2009-05-03 17:11:43.107950357 +0200 +++ opencv-1.0.0-fixed/configure.in 2009-05-03 17:15:02.471951090 +0200 @@ -441,7 +441,7 @@ with_ffmpeg=yes fi if test x"$with_ffmpeg" = "xyes"; then - AC_CHECK_HEADER(ffmpeg/avcodec.h, + AC_CHECK_HEADER(libavcodec/avcodec.h, [ have_ffmpeg=yes AC_DEFINE(HAVE_FFMPEG,,[FFMpeg video library]) diff -uNr opencv-1.0.0/configure.in opencv-1.0.0-fixed/configure.in --- opencv-1.0.0/configure.in 2009-05-03 20:10:05.383950421 +0200 +++ opencv-1.0.0-fixed/configure.in 2009-05-03 20:11:09.832018063 +0200 @@ -446,6 +446,7 @@ have_ffmpeg=yes AC_DEFINE(HAVE_FFMPEG,,[FFMpeg video library]) FFMPEGLIBS="`pkg-config --libs libavcodec libavformat`" + LIBS="$LIBS $FFMPEGLIBS" ], [ have_ffmpeg=no ]) else diff -uNr opencv-1.0.0/configure opencv-1.0.0-fixed/configure --- opencv-1.0.0/configure 2009-05-03 20:16:55.992951051 +0200 +++ opencv-1.0.0-fixed/configure 2009-05-03 20:24:43.551950430 +0200 @@ -22604,7 +22604,8 @@ #define HAVE_FFMPEG _ACEOF - FFMPEGLIBS="`pkg-config --libs libavcodec libavformat`" + FFMPEGLIBS="`pkg-config --libs libavcodec libavformat libavutil libswscale`" + LIBS="$LIBS $FFMPEGLIBS" else have_ffmpeg=no