$NetBSD: patch-ak,v 1.2 2010/05/11 11:42:45 yhardy Exp $

--- js/ctypes/libffi/configure.orig	2010-03-16 05:55:17.000000000 -0400
+++ js/ctypes/libffi/configure	2010-03-31 04:08:48.000000000 -0400
@@ -21020,6 +21020,9 @@ case "$host" in
   mips*-*-linux*)
 	TARGET=MIPS; TARGETDIR=mips
 	;;
+  mips*-*-netbsd*)
+	TARGET=MIPS; TARGETDIR=mips
+	;;
 
   powerpc*-*-linux* | powerpc-*-sysv*)
 	TARGET=POWERPC; TARGETDIR=powerpc
@@ -21033,7 +21036,7 @@ case "$host" in
   powerpc-*-aix* | rs6000-*-aix*)
 	TARGET=POWERPC_AIX; TARGETDIR=powerpc
 	;;
-  powerpc-*-freebsd*)
+  powerpc-*-freebsd* | powerpc-*-netbsd*)
 	TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
 	;;
   powerpc*-*-rtems*)
