--- motion-3.2.2/configure.in.freebsd 2005-05-25 06:38:46.000000000 +0200 +++ motion-3.2.2-Freebsd/configure.in.freebsd 2005-06-24 01:07:10.401797568 +0200 @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script AC_INIT(motion.c) -VERSION=3.2.1 +VERSION=3.2.2 AC_SUBST(VERSION) THREAD_CFLAGS="" THREAD_CHECK="pthread.h" @@ -158,7 +158,11 @@ dnl else if test "${FFMPEG}" = "yes"; then dnl AUTODETECT STATIC/SHARED LIB AC_MSG_CHECKING(for ffmpeg autodetecting) - if test -f /usr/lib/libavcodec.a -o -f /usr/lib/libavcodec.so && test -f /usr/lib/libavformat.a -o -f /usr/lib/libavformat.so ; then + if test -f /usr/lib64/libavcodec.a -o -f /usr/lib64/libavcodec.so && test -f /usr/lib64/libavformat.a -o -f /usr/lib64/libavformat.so ; then + AC_MSG_RESULT(found) + FFMPEG_OK="found" + FFMPEG="/usr/lib64" + elif test -f /usr/lib/libavcodec.a -o -f /usr/lib/libavcodec.so && test -f /usr/lib/libavformat.a -o -f /usr/lib/libavformat.so ; then AC_MSG_RESULT(found) FFMPEG_OK="found" FFMPEG="/usr/lib" @@ -229,7 +233,7 @@ if test "${FFMPEG_OK}" = "found"; then LIBS="$LIBS -L${FFMPEG} -lavformat -lavcodec -lm" FFMPEG_OBJ="ffmpeg.o" AC_SUBST(FFMPEG_OBJ) - LDFLAGS="-Wl,-rpath,${FFMPEG}" + LDFLAGS="-L${FFMPEG}" fi fi