summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-04-25 09:28:40 -0400
committerBen Gamari <ben@smart-cactus.org>2017-04-25 15:35:17 -0400
commit66108864540601837ad77847f4062a670362361f (patch)
tree38b9fe8f3c0fd932374dc51d94fd25cdd428daf8 /aclocal.m4
parent688272ba31df7bd0a094c3d86d60f7b77b9f5268 (diff)
downloadhaskell-66108864540601837ad77847f4062a670362361f.tar.gz
Revert "Remove special casing of Windows in generic files"
This commit didn't consider the fact that binary distributions on Windows must have relative toolchain paths. This caused #13560. This reverts commit 48385cb2fc295eb8af9188cbe140142c1807d5a7 (except for a helpful comment).
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m449
1 files changed, 18 insertions, 31 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index fc7b24c03e..545a15a646 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -459,55 +459,42 @@ AC_DEFUN([GET_ARM_ISA],
# Set the variables used in the settings file
AC_DEFUN([FP_SETTINGS],
[
- SettingsCCompilerCommand="$CC"
- SettingsHaskellCPPCommand="$HaskellCPPCmd"
- SettingsHaskellCPPFlags="$HaskellCPPArgs"
- SettingsLdCommand="$LdCmd"
- SettingsArCommand="$ArCmd"
- SettingsPerlCommand="$PerlCmd"
-
- if test -z "$DllWrap"
+ if test "$windows" = YES
then
- SettingsDllWrapCommand="/bin/false"
+ mingw_bin_prefix=mingw/bin/
+ SettingsCCompilerCommand="\$topdir/../${mingw_bin_prefix}gcc.exe"
+ SettingsHaskellCPPCommand="\$topdir/../${mingw_bin_prefix}gcc.exe"
+ SettingsHaskellCPPFlags="$HaskellCPPArgs"
+ SettingsLdCommand="\$topdir/../${mingw_bin_prefix}ld.exe"
+ SettingsArCommand="\$topdir/../${mingw_bin_prefix}ar.exe"
+ SettingsPerlCommand='$topdir/../perl/perl.exe'
+ SettingsDllWrapCommand="\$topdir/../${mingw_bin_prefix}dllwrap.exe"
+ SettingsWindresCommand="\$topdir/../${mingw_bin_prefix}windres.exe"
+ SettingsTouchCommand='$topdir/bin/touchy.exe'
else
- SettingsDllWrapCommand="$DllWrap"
- fi
-
- if test -z "$Windres"
- then
+ SettingsCCompilerCommand="$CC"
+ SettingsHaskellCPPCommand="$HaskellCPPCmd"
+ SettingsHaskellCPPFlags="$HaskellCPPArgs"
+ SettingsLdCommand="$LdCmd"
+ SettingsArCommand="$ArCmd"
+ SettingsPerlCommand="$PerlCmd"
+ SettingsDllWrapCommand="/bin/false"
SettingsWindresCommand="/bin/false"
- else
- SettingsWindresCommand="$Windres"
- fi
-
- if test -z "$Libtool"
- then
SettingsLibtoolCommand="libtool"
- else
- SettingsLibtoolCommand="$Libtool"
- fi
-
- if test -z "$Touch"
- then
SettingsTouchCommand='touch'
- else
- SettingsTouchCommand='$Touch'
fi
-
if test -z "$LlcCmd"
then
SettingsLlcCommand="llc"
else
SettingsLlcCommand="$LlcCmd"
fi
-
if test -z "$OptCmd"
then
SettingsOptCommand="opt"
else
SettingsOptCommand="$OptCmd"
fi
-
SettingsCCompilerFlags="$CONF_CC_OPTS_STAGE2"
SettingsCCompilerLinkFlags="$CONF_GCC_LINKER_OPTS_STAGE2"
SettingsCCompilerSupportsNoPie="$CONF_GCC_SUPPORTS_NO_PIE"