X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.in;h=71730250582f68f74793ef25b8e264c097681206;hb=efeacd997b659e1bbd15fe9be4fdb018f5a99d54;hp=f633852a6871672b6b7514e795a1120a3f1c1dc7;hpb=b0e31d16bf468a1bb7b93ed17310866fd771f637;p=ghc-hetmet.git diff --git a/configure.in b/configure.in index f633852..7173025 100644 --- a/configure.in +++ b/configure.in @@ -159,6 +159,21 @@ i[[3456]]86-*-cygwin32*) HostOS_CPP='cygwin32' exeext='.exe' ;; +i[[3456]]86-*-mingw32*) + HostPlatform=i386-unknown-mingw32 # hack again + TargetPlatform=i386-unknown-mingw32 + BuildPlatform=i386-unknown-mingw32 + HostPlatform_CPP='i386_unknown_mingw32' + HostArch_CPP='i386' + HostVendor_CPP='unknown' + HostOS_CPP='mingw32' + exeext='.exe' + # We assume you're using mingw32 via the gcc that comes + # with cygwin, and not the native port, so let's augment + # the gcc command-line used here with -mno-cygwin to + # arrange for good things to happen. + CFLAGS="-mno-cygwin $CFLAGS" + ;; m68k-next-nextstep2) HostPlatform_CPP='m68k_next_nextstep2' HostArch_CPP='m68k' @@ -328,6 +343,30 @@ AC_ARG_ENABLE(hc-boot, AC_SUBST(BootingFromHc) +dnl ** Enable the construction of Win32 DLLs? +dnl -------------------------------------------------------------- +AC_ARG_ENABLE(win32-dlls, +[ --enable-win32-dlls + If on a Win32 platform running mingw32/cygwin, enable the + construction of DLLs containing ghc-compiled code. +], +[ +case $HostOS_CPP in +cygwin32) ;; +mingw32) ;; +*) echo "Unrecognised win32 platform: $HostPlatform" + exit 1 + ;; +esac +EnableWin32DLLs=YES +], +[EnableWin32DLLs=NO] +) +AC_SUBST(EnableWin32DLLs) +if test x"$EnableWin32DLLs" = "xYES" ; then + AC_DEFINE(HAVE_WIN32_DLL_SUPPORT) +fi + dnl -------------------------------------------------------------- dnl End of configure script option section dnl -------------------------------------------------------------- @@ -436,7 +475,7 @@ dnl ** check for full ANSI header (.h) files AC_HEADER_STDC dnl ** check for specific header (.h) files that we are interested in -AC_CHECK_HEADERS(Files.h assert.h console.h ctype.h dirent.h errno.h fcntl.h float.h ftw.h grp.h ieee754.h malloc.h memory.h nlist.h pascal.h pwd.h sgtty.h siginfo.h signal.h stat.h stdlib.h stdarg.h string.h sys/fault.h sys/file.h sys/ioctl.h sys/mman.h sys/param.h sys/procfs.h sys/resource.h sys/signal.h sys/socket.h netinet/tcp.h sys/stat.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/types.h sys/utsname.h sys/vadvise.h sys/wait.h termio.h termios.h time.h types.h unistd.h utime.h values.h vfork.h readline/readline.h bfd.h) +AC_CHECK_HEADERS(Files.h assert.h console.h ctype.h dirent.h errno.h fcntl.h float.h ftw.h grp.h ieee754.h malloc.h memory.h nlist.h pascal.h pwd.h sgtty.h siginfo.h signal.h stat.h stdlib.h stdarg.h string.h sys/fault.h sys/file.h sys/ioctl.h sys/limits.h sys/mman.h sys/param.h sys/procfs.h sys/resource.h sys/signal.h sys/socket.h netinet/tcp.h sys/stat.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/types.h sys/utsname.h sys/vadvise.h sys/wait.h termio.h termios.h time.h types.h unistd.h utime.h values.h vfork.h readline/readline.h bfd.h winsock.h) dnl ** check for DOS include files AC_CHECK_HEADERS(dos.h conio.h io.h std.h) @@ -460,6 +499,7 @@ dnl ** how do we get a timezone name, and UTC offset ? AC_STRUCT_TIMEZONE dnl ** what's the type of timezone? +FPTOOLS_HAVE_TIMEZONE FPTOOLS_TYPE_TIMEZONE dnl ** do we have altzone? @@ -598,6 +638,9 @@ AC_C_PROTOTYPES dnl ** are we big endian? AC_C_BIGENDIAN +# Allay users' general fear of warnings of any kind. +errprint((fptools configure script wizard sez: "don't worry, the above warning is harmless (to us.)") +) dnl ** determine the return type of signal() AC_TYPE_SIGNAL