$NetBSD: patch-ac,v 1.16 2007/01/08 11:29:47 adam Exp $

--- configure.orig	2006-12-04 23:02:10.000000000 +0100
+++ configure
@@ -6315,6 +6315,7 @@ fi
 
 for ac_header in stdarg.h stddef.h stddef.h stdlib.h stdint.h malloc.h \
 	search.h getopt.h pthread.h values.h float.h limits.h termios.h \
+	crt_externs.h \
 	errno.h time.h unistd.h fenv.h strings.h inttypes.h \
 	sys/time.h sys/times.h sys/types.h sys/select.h fpu_control.h \
 	sys/fpu.h strings.h sys/socket.h sys/stat.h sys/mman.h \
@@ -7974,8 +7975,10 @@ fi
 
 
 
+
 for ac_func in lrand48 drand48 srand48 setmode setenv getenv \
 	__freadable _sysconf getrusage strerror cbrt lsqrt vsnprintf \
+	_NSGetEnviron \
 	strtoul strtoll strtoull uname
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
