summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2023-01-21 14:22:55 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-25 14:47:41 -0500
commit2fdf22aebda2307d86872c792633d1856d666c9b (patch)
tree5a59191c7e29c5c51f3f3ac6b9d950048fcc37ae /m4
parent288fa0179a2f54e4594afe184eac71cc85c46643 (diff)
downloadhaskell-2fdf22aebda2307d86872c792633d1856d666c9b.tar.gz
configure: support "windows" as an OS
Diffstat (limited to 'm4')
-rw-r--r--m4/fptools_set_haskell_platform_vars.m42
-rw-r--r--m4/ghc_convert_os.m45
2 files changed, 5 insertions, 2 deletions
diff --git a/m4/fptools_set_haskell_platform_vars.m4 b/m4/fptools_set_haskell_platform_vars.m4
index 1a32b3046b..02b5b4e53c 100644
--- a/m4/fptools_set_haskell_platform_vars.m4
+++ b/m4/fptools_set_haskell_platform_vars.m4
@@ -82,7 +82,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS_SHELL_FUNCTIONS],
solaris2)
test -z "[$]2" || eval "[$]2=OSSolaris2"
;;
- mingw32)
+ mingw32|windows)
test -z "[$]2" || eval "[$]2=OSMinGW32"
;;
freebsd)
diff --git a/m4/ghc_convert_os.m4 b/m4/ghc_convert_os.m4
index 8e2825d940..586b33d09b 100644
--- a/m4/ghc_convert_os.m4
+++ b/m4/ghc_convert_os.m4
@@ -22,8 +22,11 @@ AC_DEFUN([GHC_CONVERT_OS],[
openbsd*)
$3="openbsd"
;;
+ windows|mingw32)
+ $3="mingw32"
+ ;;
# As far as I'm aware, none of these have relevant variants
- freebsd|dragonfly|hpux|linuxaout|kfreebsdgnu|freebsd2|mingw32|darwin|nextstep2|nextstep3|sunos4|ultrix|haiku)
+ freebsd|dragonfly|hpux|linuxaout|kfreebsdgnu|freebsd2|darwin|nextstep2|nextstep3|sunos4|ultrix|haiku)
$3="$1"
;;
msys)