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 This patch is courtesy of OpenEmbedded, by Khem Raj <raj.khem@gmail.com>
3 http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=b85b779688f0abc389e3c25d06b54de8b86385c1
5 Index: ltrace-0.5.3/common.h
6 ===================================================================
7 --- ltrace-0.5.3.orig/common.h 2009-10-23 23:13:45.700282578 -0700
8 +++ ltrace-0.5.3/common.h 2009-10-23 23:14:13.550371553 -0700
12 #include <sys/types.h>
15 @@ -251,3 +253,5 @@ extern void * sym2addr(Process *, struct
17 extern int umoven(Process * proc, void * addr, int len, void * laddr);
21 Index: ltrace-0.5.3/configure
22 ===================================================================
23 --- ltrace-0.5.3.orig/configure 2009-10-23 23:13:45.630316494 -0700
24 +++ ltrace-0.5.3/configure 2009-10-23 23:13:59.672869527 -0700
25 @@ -30,7 +30,7 @@ int main () {
26 return cplus_demangle();
29 -if gcc conftest.c -liberty 2>/dev/null
30 +if $CC conftest.c -liberty 2>/dev/null
34 @@ -48,7 +48,7 @@ int main () {
35 return __cxa_demangle();
38 -if gcc conftest.c -lsupc++ 2>/dev/null
39 +if $CC conftest.c -lsupc++ 2>/dev/null
43 @@ -67,7 +67,7 @@ int main () {
47 -if gcc conftest.c 2>/dev/null
48 +if $CC conftest.c 2>/dev/null
50 HAVE_ELF_C_READ_MMAP=1
52 @@ -77,15 +77,12 @@ else
54 rm -f conftest.c a.out
57 -CPPFLAGS=' -I /usr/include/libelf'
59 LIBS='-lelf -lsupc++ -liberty '
60 -INSTALL='/usr/bin/install -c'
66 sysconfdir='${prefix}/etc'
67 bindir='${prefix}/bin'
68 mandir='${prefix}/share/man'
69 Index: ltrace-0.5.3/debug.h
70 ===================================================================
71 --- ltrace-0.5.3.orig/debug.h 2009-10-23 23:13:45.670276809 -0700
72 +++ ltrace-0.5.3/debug.h 2009-10-23 23:14:26.440319785 -0700
79 @@ -14,4 +16,4 @@ void debug_(int level, const char *file,
80 int xinfdump(long, void *, int);
82 # define debug(level, expr...) debug_(level, __FILE__, __LINE__, expr)