$NetBSD: patch-ak,v 1.4 2011/04/26 14:16:36 tnn Exp $

--- js/src/ctypes/libffi/configure.orig	2010-03-16 01:02:50.000000000 +0000
+++ js/src/ctypes/libffi/configure
@@ -12232,7 +12232,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*)
