AC_STRUCT_TM
dnl Would rather not bail on headers, BSD has alot of the functions elsewhere. -Jedi
-AC_CHECK_HEADERS(fcntl.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h regex.h arpa/inet.h sys/mman.h sys/stat.h,,)
+AC_CHECK_HEADERS(fcntl.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h regex.h arpa/inet.h sys/mman.h sys/stat.h dirent.h,,)
+
+dnl Cygwin does not have d_type in struct dirent. We use stat() as a fallback.
+AC_CHECK_MEMBER([struct dirent.d_type],
+ [AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [Define if struct dirent exists and includes the d_type element.])],,[#include <dirent.h>])
dnl portability stuff, hurray! -Jedi
AC_CHECK_FUNCS(gettimeofday)
done
IFS="$OIFS"
MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
- AC_DEFINE(EXTRA_MODULES, 1, [Define if there are extra modules to be initialized.])
AC_MSG_RESULT($module_list)
],
[