[project @ 2005-01-28 14:55:05 by simonmar]
[ghc-base.git] / configure.ac
index eb944ed..d976fa0 100644 (file)
@@ -20,6 +20,10 @@ dnl FreeBSD has an emtpy wctype.h, so test one of the affected
 dnl functions if it's really there.
 AC_CHECK_HEADERS([wctype.h], [AC_CHECK_FUNCS(iswspace)])
 
+AC_CHECK_FUNCS([ftime gmtime_r localtime_r lstat readdir_r])
+
+AC_CHECK_FUNCS([_chsize ftruncate])
+
 # map standard C types and ISO types to Haskell types
 FPTOOLS_CHECK_HTYPE(char)
 FPTOOLS_CHECK_HTYPE(signed char)
@@ -68,4 +72,14 @@ FP_CHECK_CONST([O_BINARY], [#include <fcntl.h>], [0])
 # Check for idiosyncracies in some mingw impls of directory handling.
 FP_READDIR_EOF_ERRNO
 
+case "$target" in
+*-mingw32)
+       EXTRA_LIBS="wsock32, msvcrt, kernel32, user32, shell32" ;;
+*)
+       EXTRA_LIBS= ;;
+esac
+AC_SUBST([EXTRA_LIBS])
+
+AC_CONFIG_FILES([base.buildinfo])
+
 AC_OUTPUT