patch <<__EOF__ --- configure.orig 2006-09-24 23:56:36.000000000 -0700 +++ configure 2006-09-24 23:57:32.000000000 -0700 @@ -1886,7 +1886,7 @@ OTHER_OBJS="pa_mac_core/pa_mac_core.o"; LIBS="-framework CoreAudio -lm"; PADLL="libportaudio.dylib"; - SHARED_FLAGS="-framework CoreAudio -dynamiclib"; + SHARED_FLAGS="-framework CoreAudio -dynamiclib -install_name \\\$(PREFIX)/lib/\\\$(PADLL)"; ;; mingw* ) --- pa_unix_oss/pa_unix_oss.c.orig Sat Sep 30 20:46:55 2006 +++ pa_unix_oss/pa_unix_oss.c Sat Sep 30 20:46:13 2006 @@ -95,7 +95,9 @@ #include #include +#ifndef __FreeBSD__ #include +#endif #include #include #include @@ -109,6 +111,8 @@ #ifdef __linux__ #include +#elif defined(__FreeBSD__) || defined(__NetBSD__) +#include #else +#if defined(__OpenBSD__) +#include +#else #include /* JH20010905 */ +#endif #endif __EOF__ arch=`uname -m` opts="" if [ $arch = "x86_64" ] ; then opts="-fPIC" fi CFLAGS=$opts ./configure $@ $MAKE $MAKE install