--- ./configure.ac.orig	2010-06-01 13:14:11.154116974 +0200
+++ ./configure.ac	2010-06-01 13:14:11.263184468 +0200
@@ -14,6 +14,8 @@
 dnl Header-file checks
 AC_HEADER_STDC
 
+AC_CHECK_HEADERS([spawn.h])
+
 dnl Only use -Wall if we have gcc
 if test "x$GCC" = "xyes"; then
   if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then