argz: fix shell quoting issue
authorEric Blake <eblake@redhat.com>
Mon, 23 Aug 2010 15:01:08 +0000 (09:01 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 23 Aug 2010 15:02:36 +0000 (09:02 -0600)
* m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
Reported by Charles Wilson.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/argz.m4

index 7a08510..37f8da3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-23  Eric Blake  <eblake@redhat.com>
+
+       argz: fix shell quoting issue
+       * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
+       Reported by Charles Wilson.
+
 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
            Erik Faye-Lund <kusmabite@gmail.com>
 
index b799fb3..0323d4c 100644 (file)
@@ -7,7 +7,7 @@
 # unlimited permission to copy and/or distribute it, with or without
 # modifications, as long as this notice is preserved.
 
-# serial 7 argz.m4
+# serial 8 argz.m4
 
 AC_DEFUN([gl_FUNC_ARGZ],
 [gl_PREREQ_ARGZ
@@ -67,7 +67,7 @@ AS_IF([test -z "$ARGZ_H"],
            ;; #(
          *) lt_cv_sys_argz_works=yes ;;
          esac]])
-     AS_IF([test $lt_cv_sys_argz_works = yes],
+     AS_IF([test "$lt_cv_sys_argz_works" = yes],
         [AC_DEFINE([HAVE_WORKING_ARGZ], [1],
                    [This value is set to 1 to indicate that the system argz facility works])],
         [ARGZ_H=argz.h