$NetBSD: patch-configure,v 1.15 2011/11/29 17:58:17 jmmv Exp $ --- configure.orig 2011-11-21 19:49:30.000000000 +0000 +++ configure @@ -2412,6 +2412,11 @@ case $target_os in ;; netbsd) disable symver + # NetBSD/macppc *really* needs PIC enabled. ffmpeg has repeatedly + # broken time and time again because PIC support has been removed + # from architectures that need it. So, if you touch this, please + # be careful and make sure that your changes work. + test "${subarch}" != "x86_32" && enable pic oss_indev_extralibs="-lossaudio" oss_outdev_extralibs="-lossaudio" ;; @@ -2637,10 +2642,13 @@ check_cc < /dev/null 2>&1 && enable texi2html || disable texi2html +which texi2html > /dev/null 2>&1 && enable texi2html || disable texi2html check_header linux/fb.h check_header linux/videodev.h @@ -3060,6 +3068,7 @@ check_ldflags -Wl,--warn-common check_ldflags -Wl,-rpath-link,libpostproc -Wl,-rpath-link,libswscale -Wl,-rpath-link,libavfilter -Wl,-rpath-link,libavdevice -Wl,-rpath-link,libavformat -Wl,-rpath-link,libavcodec -Wl,-rpath-link,libavutil test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic +if false; then echo "X{};" > $TMPV if test_ldflags -Wl,--version-script,$TMPV; then append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver' @@ -3072,6 +3081,7 @@ __asm__(".symver ff_foo,av_foo@VERSION") void ff_foo(void) {} EOF fi +fi if enabled small; then add_cflags $size_cflags