summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGabriella Gonzalez <gabriella@mercury.com>2023-02-09 10:37:24 -0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-03-06 17:06:50 -0500
commit83b0177e97c869f49832e559276492b82667d6b7 (patch)
tree508f426c066f776e07767be9f358d701d1303927 /m4
parent674b6b81e391fc9271d0a8f6ab20037b917a4721 (diff)
downloadhaskell-83b0177e97c869f49832e559276492b82667d6b7.tar.gz
Quote variables
… as suggested by @bgamari
Diffstat (limited to 'm4')
-rw-r--r--m4/fp_ld_supports_response_files.m47
1 files changed, 3 insertions, 4 deletions
diff --git a/m4/fp_ld_supports_response_files.m4 b/m4/fp_ld_supports_response_files.m4
index c9f633157e..3a726332d7 100644
--- a/m4/fp_ld_supports_response_files.m4
+++ b/m4/fp_ld_supports_response_files.m4
@@ -1,12 +1,11 @@
# FP_LD_SUPPORTS_RESPONSE_FILES
# --------------------
-# See if whether we are using a version of ld which
-# supports response files.
+# See if whether we are using a version of ld which supports response files.
AC_DEFUN([FP_LD_SUPPORTS_RESPONSE_FILES], [
AC_MSG_CHECKING([whether $LD supports response files])
echo 'int main(void) {return 0;}' > conftest.c
- $CC -c -o conftest.o conftest.c > /dev/null 2>&1
- if $LD @<(printf '%q\n' -shared -o conftest conftest.o) > /dev/null 2>&1 || $LD @<(printf '%q\n' -dylib -o conftest conftest.o) > /dev/null 2>&1
+ "$CC" -c -o conftest.o conftest.c > /dev/null 2>&1
+ if "$LD" @<(printf '%q\n' -shared -o conftest conftest.o) > /dev/null 2>&1 || "$LD" @<(printf '%q\n' -dylib -o conftest conftest.o) > /dev/null 2>&1
then
LdSupportsResponseFiles=YES
AC_MSG_RESULT([yes])