Allow multi-word "install" command.
Autoconf can determine that the correct install command includes flags,
e.g., "/usr/bin/install -c". When using this as a command, we can't
enclose the value in double-quotes, as that makes some shells use the
whole expression as a filename:
# this is the value returned by autoconf and stored in CT_install
$ ins="/usr/bin/install -c"
# if we call it with quotes, the command is not found
$ "${ins}"
bash: /usr/bin/install -c: No such file or directory
# removing the quotes lets it work as expected
$ ${ins}
/usr/bin/install: missing file operand
Try `/usr/bin/install --help' for more information.
Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
1 diff -durN gcc-4.4.5.orig/libmudflap/mf-hooks2.c gcc-4.4.5/libmudflap/mf-hooks2.c
2 --- gcc-4.4.5.orig/libmudflap/mf-hooks2.c 2009-04-10 01:23:07.000000000 +0200
3 +++ gcc-4.4.5/libmudflap/mf-hooks2.c 2010-10-09 23:11:52.000000000 +0200
6 TRACE ("%s\n", __PRETTY_FUNCTION__);
7 MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region");
14 TRACE ("%s\n", __PRETTY_FUNCTION__);
15 MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src");
16 MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest");
17 - bcopy (src, dest, n);
18 + memmove (dest, src, n);
23 TRACE ("%s\n", __PRETTY_FUNCTION__);
24 MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg");
25 MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg");
26 - return bcmp (s1, s2, n);
27 + return n == 0 ? 0 : memcmp (s1, s2, n);
32 size_t n = strlen (s);
33 TRACE ("%s\n", __PRETTY_FUNCTION__);
34 MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region");
35 - return index (s, c);
36 + return strchr (s, c);
41 size_t n = strlen (s);
42 TRACE ("%s\n", __PRETTY_FUNCTION__);
43 MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region");
44 - return rindex (s, c);
45 + return strrchr (s, c);
48 /* XXX: stpcpy, memccpy */