From: Eric Blake <ebb9@byu.net>
Date: Sun, 20 Sep 2009 02:17:33 +0000 (-0600)
Subject: link: fix quoting
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bfee8687b37d280d51793774be0fa79070eafa1;p=pspp

link: fix quoting

* m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.

Signed-off-by: Eric Blake <ebb9@byu.net>
---

diff --git a/ChangeLog b/ChangeLog
index 94b8465e54..0f0b954f92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-09-19  Eric Blake  <ebb9@byu.net>
 
+	link: fix quoting
+	* m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
+
 	openat: fix openat bugs on Solaris 9
 	* lib/openat.c (rpl_openat): Work around Solaris 9 bug.
 	* m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
diff --git a/m4/link.m4 b/m4/link.m4
index fc071cd481..a212ee2660 100644
--- a/m4/link.m4
+++ b/m4/link.m4
@@ -1,4 +1,4 @@
-# link.m4 serial 2
+# link.m4 serial 3
 dnl Copyright (C) 2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -22,7 +22,7 @@ AC_DEFUN([gl_FUNC_LINK],
          [gl_cv_func_link_works=yes], [gl_cv_func_link_works=no],
          [gl_cv_func_link_works="guessing no"])
        rm -f conftest.a conftest.b])
-    if test $gl_cv_func_link_works != yes; then
+    if test "$gl_cv_func_link_works" != yes; then
       REPLACE_LINK=1
       AC_LIBOBJ([link])
     fi