summaryrefslogtreecommitdiff
path: root/m4/ghc_convert_platform_parts.m4
blob: 940326fe3b0f65c40a9152aa63e909ff2b441f29 (plain)
1
2
3
4
5
6
7
8
9
# GHC_CONVERT_PLATFORM_PARTS(input_platform, OutputPlatform)
# --------------------------------
# Call all 3 of the underlying `GHC_CONVERT_*` functions to convert the
# parsed platform from GNU to GHC naming.
AC_DEFUN([GHC_CONVERT_PLATFORM_PARTS],[
    GHC_CONVERT_CPU([$]$1[_cpu], $2[Arch])
    GHC_CONVERT_VENDOR([$]$1[_vendor], $2[Vendor])
    GHC_CONVERT_OS([$]$1[_os], [$]$2[Arch], $2[OS])
])