$NetBSD$

--- configure.in.orig	2010-06-21 23:59:24.000000000 +0000
+++ configure.in
@@ -497,6 +497,13 @@ if test x"$enable_inotify" = "xyes"; the
 fi
 AM_CONDITIONAL(BUILD_INOTIFY, test x"$enable_inotify" = "xyes")
 
+dnl ****************chek for mkdtemp**************************
+mkdtemp_missing=false
+AC_CHECK_FUNC(mkdtemp,
+    [AC_DEFINE([HAVE_MKDTEMP], 1, [Have GlibC function to make temp dirs])],
+    mkdtemp_missing=true)
+AM_CONDITIONAL(MKDTEMP_MISSING, test x$mkdtemp_missing = xtrue)
+
 dnl ****** GObject Introspection **********************
 dnl This is a copy of the m4 function in gobject-introspection package
 dnl but it was modified so the install path can be forced with a command
