]> granicus.if.org Git - sudo/commitdiff
Need to quote $GCC as it may include arguments. From Tim Rice.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 May 2015 13:17:00 +0000 (07:17 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 May 2015 13:17:00 +0000 (07:17 -0600)
m4/ax_sys_weak_alias.m4

index 4da60eed7e77a734d153da7de5e178dff6f52b2b..3dff69fcf4459437fd990fd616d28b7611d39389 100644 (file)
@@ -149,7 +149,7 @@ AC_DEFUN([_AX_SYS_WEAK_ALIAS_ATTRIBUTE],
   [ax_cv_sys_weak_alias_attribute], [
     # We add -Werror if it's gcc to force an error exit if the weak attribute
     # isn't understood
-    AS_IF([test $GCC = yes], [
+    AS_IF([test "$GCC" = yes], [
       save_CFLAGS=$CFLAGS
       CFLAGS=-Werror])
 
@@ -163,7 +163,7 @@ void weakf(int c) __attribute__((weak, alias("__weakf")));],
       [ax_cv_sys_weak_alias_attribute=no])
 
     # Restore original CFLAGS
-    AS_IF([test $GCC = yes], [
+    AS_IF([test "$GCC" = yes], [
       CFLAGS=$save_CFLAGS])
   ])