diff options
author | Demi Obenour <demiobenour@gmail.com> | 2017-01-20 16:49:53 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-01-20 16:49:54 -0500 |
commit | c43011da283bfcef664378bb451d5f3bffcdbe92 (patch) | |
tree | 7371563d7922d32a660c495f055935d083998d4c /aclocal.m4 | |
parent | b626a00113ecdb960ba642f0ce31e2ff71892b4d (diff) | |
download | haskell-c43011da283bfcef664378bb451d5f3bffcdbe92.tar.gz |
Clean up some shell code and M4 quoting
Test Plan: GHC CI
Reviewers: austin, hvr, bgamari
Reviewed By: bgamari
Subscribers: thomie, erikd
Differential Revision: https://phabricator.haskell.org/D2993
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 4673ac0185..75f3e7dab5 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1056,15 +1056,14 @@ AC_SUBST([LdHasBuildId]) # ----------------- # Sets the output variable LdIsGNULd to YES or NO, depending on whether it is # GNU ld or not. -AC_DEFUN([FP_PROG_LD_IS_GNU], -[ +AC_DEFUN([FP_PROG_LD_IS_GNU],[ AC_CACHE_CHECK([whether ld is GNU ld], [fp_cv_gnu_ld], -[if ${LdCmd} --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then - fp_cv_gnu_ld=yes +[[if ${LdCmd} --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then + fp_cv_gnu_ld=YES else - fp_cv_gnu_ld=no -fi]) -AC_SUBST([LdIsGNULd], [`echo $fp_cv_gnu_ld | sed 'y/yesno/YESNO/'`]) + fp_cv_gnu_ld=NO +fi]]) +AC_SUBST([LdIsGNULd],["$fp_cv_gnu_ld"]) ])# FP_PROG_LD_IS_GNU |