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>
3 # DP: Description: Fix localedef segfault when run under exec-shield,
4 # PaX or similar. (#231438, #198099)
5 # DP: Dpatch Author: James Troup <james@nocrew.org>
6 # DP: Patch Author: (probably) Jakub Jelinek <jakub@redhat.com>
7 # DP: Upstream status: Unknown
8 # DP: Status Details: Unknown
12 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
16 -patch) patch -d "$2" -f --no-backup-if-mismatch -p1 < $0;;
17 -unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p1 < $0;;
19 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
24 diff -durN glibc-2.10.1.orig/locale/programs/3level.h glibc-2.10.1/locale/programs/3level.h
25 --- glibc-2.10.1.orig/locale/programs/3level.h 2007-07-16 02:54:59.000000000 +0200
26 +++ glibc-2.10.1/locale/programs/3level.h 2009-11-13 00:49:56.000000000 +0100
32 +/* GCC ATM seems to do a poor job with pointers to nested functions passed
33 + to inlined functions. Help it a little bit with this hack. */
34 +#define wchead_table_iterate(tp, fn) \
37 + struct wchead_table *t = (tp); \
39 + for (index1 = 0; index1 < t->level1_size; index1++) \
41 + uint32_t lookup1 = t->level1[index1]; \
42 + if (lookup1 != ((uint32_t) ~0)) \
44 + uint32_t lookup1_shifted = lookup1 << t->q; \
46 + for (index2 = 0; index2 < (1 << t->q); index2++) \
48 + uint32_t lookup2 = t->level2[index2 + lookup1_shifted]; \
49 + if (lookup2 != ((uint32_t) ~0)) \
51 + uint32_t lookup2_shifted = lookup2 << t->p; \
53 + for (index3 = 0; index3 < (1 << t->p); index3++) \
55 + struct element_t *lookup3 \
56 + = t->level3[index3 + lookup2_shifted]; \
57 + if (lookup3 != NULL) \
58 + fn ((((index1 << t->q) + index2) << t->p) + index3, \