--- configure.ac.orig 2011-09-06 09:43:42.000000000 +0100 +++ configure.ac 2011-11-17 15:12:38.567082237 +0000 @@ -14,6 +14,7 @@ dnl Header-file checks AC_HEADER_STDC +AC_CHECK_HEADERS([spawn.h]) if test "x$GCC" = "xyes"; then dnl Only use -Wall if we have gcc