diff -urN transcode-1.0.3.orig/configure.in transcode-1.0.3/configure.in --- transcode-1.0.3.orig/configure.in 2007-04-16 20:51:08 +0300 +++ transcode-1.0.3/configure.in 2007-05-18 01:09:38 +0300 @@ -35,7 +35,7 @@ dnl we got $AWK already, but not it's full path AC_PATH_PROG(PATH_TO_AWK, $AWK) -deflib="/lib" +deflib= is_osx=false case "x${target_os}" in @@ -610,9 +610,11 @@ *) AC_MSG_ERROR(bad value ${enableval} for --enable-libavcodec-static) ;; esac], [enable_libavcodec_static=no]) -LIBAVCODEC_EXTRA_LIBS="$LIBAVCODEC_EXTRA_LIBS -lm -lz $PTHREAD_LIBS" +AC_CHECK_LIB(avutil, av_rescale, + [tc_libavutil=-lavutil], [tc_libavutil=""], []) +LIBAVCODEC_EXTRA_LIBS="$LIBAVCODEC_EXTRA_LIBS $tc_libavutil -lm -lz $PTHREAD_LIBS" TC_PKG_CHECK(libavcodec, required, LIBAVCODEC, no, [ffmpeg/avcodec.h], - avcodec, avcodec_thread_init, FFMpeg, [http://www.ffmpeg.org/]) + avcodec, avcodec_thread_init, libavcodec, [http://www.ffmpeg.org/]) if test x"$have_libavcodec" = x"yes" ; then save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $LIBAVCODEC_CFLAGS"