diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-core/gettext | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-core/gettext')
19 files changed, 2872 insertions, 0 deletions
diff --git a/meta/recipes-core/gettext/gettext-0.16.1/disable_java.patch b/meta/recipes-core/gettext/gettext-0.16.1/disable_java.patch new file mode 100644 index 0000000000..e4c5f1566b --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.16.1/disable_java.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | |||
2 | # Pulled from OpenEmbedded | ||
3 | # | ||
4 | # Commented by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | Index: gettext-0.16.1/gettext-tools/configure.ac | ||
9 | =================================================================== | ||
10 | --- gettext-0.16.1.orig/gettext-tools/configure.ac 2006-11-27 09:02:01.000000000 -0800 | ||
11 | +++ gettext-0.16.1/gettext-tools/configure.ac 2011-03-16 16:55:36.111396557 -0700 | ||
12 | @@ -36,27 +36,15 @@ | ||
13 | gt_JAVA_CHOICE | ||
14 | |||
15 | gt_GCJ | ||
16 | -if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then | ||
17 | - BUILDJAVAEXE=yes | ||
18 | -else | ||
19 | BUILDJAVAEXE=no | ||
20 | -fi | ||
21 | AC_SUBST(BUILDJAVAEXE) | ||
22 | |||
23 | gt_JAVAEXEC | ||
24 | gt_JAVACOMP([1.3]) | ||
25 | AC_CHECK_PROG(JAR, jar, jar) | ||
26 | -if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then | ||
27 | - BUILDJAVA=yes | ||
28 | -else | ||
29 | BUILDJAVA=no | ||
30 | -fi | ||
31 | AC_SUBST(BUILDJAVA) | ||
32 | -if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then | ||
33 | - TESTJAVA=yes | ||
34 | -else | ||
35 | TESTJAVA=no | ||
36 | -fi | ||
37 | AC_SUBST(TESTJAVA) | ||
38 | |||
39 | gt_CSHARPCOMP | ||
diff --git a/meta/recipes-core/gettext/gettext-0.16.1/fix_aclocal_version.patch b/meta/recipes-core/gettext/gettext-0.16.1/fix_aclocal_version.patch new file mode 100644 index 0000000000..7293f5b08d --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.16.1/fix_aclocal_version.patch | |||
@@ -0,0 +1,110 @@ | |||
1 | |||
2 | This patch updates the required version number from 2.61 to the | ||
3 | current 2.65 version of aclocal, this will need to be updated | ||
4 | when we update aclocal | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by Saul Wold <sgw@linux.intel.com> | ||
9 | |||
10 | Index: gettext-0.16.1/autoconf-lib-link/m4/lib-link.m4 | ||
11 | =================================================================== | ||
12 | --- gettext-0.16.1.orig/autoconf-lib-link/m4/lib-link.m4 2011-03-17 02:24:36.391519775 -0700 | ||
13 | +++ gettext-0.16.1/autoconf-lib-link/m4/lib-link.m4 2011-03-17 02:24:45.569526073 -0700 | ||
14 | @@ -148,7 +148,7 @@ | ||
15 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
16 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
17 | dnl Autoconf >= 2.61 supports dots in --with options. | ||
18 | - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) | ||
19 | + define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.65]),[-1],[translit([$1],[.],[_])],[$1])]) | ||
20 | dnl By default, look in $includedir and $libdir. | ||
21 | use_additional=yes | ||
22 | AC_LIB_WITH_FINAL_PREFIX([ | ||
23 | Index: gettext-0.16.1/autoconf-lib-link/tests/rpathly/aclocal.m4 | ||
24 | =================================================================== | ||
25 | --- gettext-0.16.1.orig/autoconf-lib-link/tests/rpathly/aclocal.m4 2011-03-17 02:24:36.391519775 -0700 | ||
26 | +++ gettext-0.16.1/autoconf-lib-link/tests/rpathly/aclocal.m4 2011-03-17 02:24:45.570526904 -0700 | ||
27 | @@ -11,8 +11,8 @@ | ||
28 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
29 | # PARTICULAR PURPOSE. | ||
30 | |||
31 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
32 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
33 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
34 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
35 | You have another version of autoconf. If you want to use that, | ||
36 | you should regenerate the build system entirely.], [63])]) | ||
37 | |||
38 | Index: gettext-0.16.1/autoconf-lib-link/tests/rpathx/aclocal.m4 | ||
39 | =================================================================== | ||
40 | --- gettext-0.16.1.orig/autoconf-lib-link/tests/rpathx/aclocal.m4 2011-03-17 02:24:36.391519775 -0700 | ||
41 | +++ gettext-0.16.1/autoconf-lib-link/tests/rpathx/aclocal.m4 2011-03-17 02:24:45.572525773 -0700 | ||
42 | @@ -11,8 +11,8 @@ | ||
43 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
44 | # PARTICULAR PURPOSE. | ||
45 | |||
46 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
47 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
48 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
49 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
50 | You have another version of autoconf. If you want to use that, | ||
51 | you should regenerate the build system entirely.], [63])]) | ||
52 | |||
53 | Index: gettext-0.16.1/autoconf-lib-link/tests/rpathy/aclocal.m4 | ||
54 | =================================================================== | ||
55 | --- gettext-0.16.1.orig/autoconf-lib-link/tests/rpathy/aclocal.m4 2011-03-17 02:24:36.391519775 -0700 | ||
56 | +++ gettext-0.16.1/autoconf-lib-link/tests/rpathy/aclocal.m4 2011-03-17 02:24:45.578394916 -0700 | ||
57 | @@ -11,7 +11,7 @@ | ||
58 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
59 | # PARTICULAR PURPOSE. | ||
60 | |||
61 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
62 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
63 | [m4_fatal([this file was generated for autoconf 2.61. | ||
64 | You have another version of autoconf. If you want to use that, | ||
65 | you should regenerate the build system entirely.], [63])]) | ||
66 | Index: gettext-0.16.1/autoconf-lib-link/tests/rpathz/aclocal.m4 | ||
67 | =================================================================== | ||
68 | --- gettext-0.16.1.orig/autoconf-lib-link/tests/rpathz/aclocal.m4 2011-03-17 02:24:36.391519775 -0700 | ||
69 | +++ gettext-0.16.1/autoconf-lib-link/tests/rpathz/aclocal.m4 2011-03-17 02:24:45.586395416 -0700 | ||
70 | @@ -11,8 +11,8 @@ | ||
71 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
72 | # PARTICULAR PURPOSE. | ||
73 | |||
74 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
75 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
76 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
77 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
78 | You have another version of autoconf. If you want to use that, | ||
79 | you should regenerate the build system entirely.], [63])]) | ||
80 | |||
81 | Index: gettext-0.16.1/gettext-tools/aclocal.m4 | ||
82 | =================================================================== | ||
83 | --- gettext-0.16.1.orig/gettext-tools/aclocal.m4 2006-11-27 09:34:32.000000000 -0800 | ||
84 | +++ gettext-0.16.1/gettext-tools/aclocal.m4 2011-03-17 02:27:01.135682807 -0700 | ||
85 | @@ -11,8 +11,8 @@ | ||
86 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
87 | # PARTICULAR PURPOSE. | ||
88 | |||
89 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
90 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
91 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
92 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
93 | You have another version of autoconf. If you want to use that, | ||
94 | you should regenerate the build system entirely.], [63])]) | ||
95 | |||
96 | Index: gettext-0.16.1/gettext-tools/examples/aclocal.m4 | ||
97 | =================================================================== | ||
98 | --- gettext-0.16.1.orig/gettext-tools/examples/aclocal.m4 2006-11-27 09:16:23.000000000 -0800 | ||
99 | +++ gettext-0.16.1/gettext-tools/examples/aclocal.m4 2011-03-17 02:26:52.589396683 -0700 | ||
100 | @@ -11,8 +11,8 @@ | ||
101 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
102 | # PARTICULAR PURPOSE. | ||
103 | |||
104 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
105 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
106 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
107 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
108 | You have another version of autoconf. If you want to use that, | ||
109 | you should regenerate the build system entirely.], [63])]) | ||
110 | |||
diff --git a/meta/recipes-core/gettext/gettext-0.16.1/fix_gnu_source_circular.patch b/meta/recipes-core/gettext/gettext-0.16.1/fix_gnu_source_circular.patch new file mode 100644 index 0000000000..06861492c0 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.16.1/fix_gnu_source_circular.patch | |||
@@ -0,0 +1,348 @@ | |||
1 | |||
2 | This patch removes the circular dependency on AC_GNU_SOURCE in | ||
3 | AC_USE_SYSTEM_EXTENSIONS. | ||
4 | |||
5 | Thanks to Mark Hatle for the timely pointers and fixes. | ||
6 | |||
7 | Upstream-Status: Inappropriate [licensing] | ||
8 | |||
9 | Signed-off-by Saul Wold <sgw@linux.intel.com> | ||
10 | |||
11 | diff -ru gettext-0.16.1/gettext-runtime/gnulib-m4/extensions.m4 gettext.patched/gettext-runtime/gnulib-m4/extensions.m4 | ||
12 | --- gettext-0.16.1/gettext-runtime/gnulib-m4/extensions.m4 2006-11-27 09:14:38.000000000 -0800 | ||
13 | +++ gettext.patched/gettext-runtime/gnulib-m4/extensions.m4 2011-03-16 23:54:01.711923448 -0700 | ||
14 | @@ -16,43 +16,47 @@ | ||
15 | # ------------------------ | ||
16 | # Enable extensions on systems that normally disable them, | ||
17 | # typically due to standards-conformance issues. | ||
18 | -AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | ||
19 | -[ | ||
20 | - AC_BEFORE([$0], [AC_COMPILE_IFELSE]) | ||
21 | - AC_BEFORE([$0], [AC_RUN_IFELSE]) | ||
22 | - | ||
23 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
24 | - AC_REQUIRE([AC_AIX]) | ||
25 | - AC_REQUIRE([AC_MINIX]) | ||
26 | - | ||
27 | - AH_VERBATIM([__EXTENSIONS__], | ||
28 | -[/* Enable extensions on Solaris. */ | ||
29 | -#ifndef __EXTENSIONS__ | ||
30 | -# undef __EXTENSIONS__ | ||
31 | -#endif | ||
32 | -#ifndef _POSIX_PTHREAD_SEMANTICS | ||
33 | -# undef _POSIX_PTHREAD_SEMANTICS | ||
34 | -#endif | ||
35 | -#ifndef _TANDEM_SOURCE | ||
36 | -# undef _TANDEM_SOURCE | ||
37 | -#endif]) | ||
38 | - AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], | ||
39 | - [ac_cv_safe_to_define___extensions__], | ||
40 | - [AC_COMPILE_IFELSE( | ||
41 | - [AC_LANG_PROGRAM([ | ||
42 | -# define __EXTENSIONS__ 1 | ||
43 | - AC_INCLUDES_DEFAULT])], | ||
44 | - [ac_cv_safe_to_define___extensions__=yes], | ||
45 | - [ac_cv_safe_to_define___extensions__=no])]) | ||
46 | - test $ac_cv_safe_to_define___extensions__ = yes && | ||
47 | - AC_DEFINE([__EXTENSIONS__]) | ||
48 | - AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) | ||
49 | - AC_DEFINE([_TANDEM_SOURCE]) | ||
50 | -]) | ||
51 | +#AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | ||
52 | +#[ | ||
53 | +# AC_BEFORE([$0], [AC_COMPILE_IFELSE]) | ||
54 | +# AC_BEFORE([$0], [AC_RUN_IFELSE]) | ||
55 | +# | ||
56 | +# AC_REQUIRE([AC_GNU_SOURCE]) | ||
57 | +# AC_REQUIRE([AC_AIX]) | ||
58 | +# AC_REQUIRE([AC_MINIX]) | ||
59 | +# | ||
60 | +# AH_VERBATIM([__EXTENSIONS__], | ||
61 | +#[/* Enable extensions on Solaris. */ | ||
62 | +##ifndef __EXTENSIONS__ | ||
63 | +## undef __EXTENSIONS__ | ||
64 | +##endif | ||
65 | +##ifndef _POSIX_PTHREAD_SEMANTICS | ||
66 | +## undef _POSIX_PTHREAD_SEMANTICS | ||
67 | +##endif | ||
68 | +##ifndef _TANDEM_SOURCE | ||
69 | +## undef _TANDEM_SOURCE | ||
70 | +##endif]) | ||
71 | +# AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], | ||
72 | +# [ac_cv_safe_to_define___extensions__], | ||
73 | +# [AC_COMPILE_IFELSE( | ||
74 | +# [AC_LANG_PROGRAM([ | ||
75 | +## define __EXTENSIONS__ 1 | ||
76 | +# AC_INCLUDES_DEFAULT])], | ||
77 | +# [ac_cv_safe_to_define___extensions__=yes], | ||
78 | +# [ac_cv_safe_to_define___extensions__=no])]) | ||
79 | +# test $ac_cv_safe_to_define___extensions__ = yes && | ||
80 | +# AC_DEFINE([__EXTENSIONS__]) | ||
81 | +# AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) | ||
82 | +# AC_DEFINE([_TANDEM_SOURCE]) | ||
83 | +#]) | ||
84 | |||
85 | # gl_USE_SYSTEM_EXTENSIONS | ||
86 | # ------------------------ | ||
87 | # Enable extensions on systems that normally disable them, | ||
88 | # typically due to standards-conformance issues. | ||
89 | AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], | ||
90 | - [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])]) | ||
91 | +[ | ||
92 | + AC_REQUIRE([AC_GNU_SOURCE]) | ||
93 | + | ||
94 | + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | ||
95 | +]) | ||
96 | diff -ru gettext-0.16.1/gettext-runtime/gnulib-m4/gnulib-comp.m4 gettext.patched/gettext-runtime/gnulib-m4/gnulib-comp.m4 | ||
97 | --- gettext-0.16.1/gettext-runtime/gnulib-m4/gnulib-comp.m4 2006-11-27 09:33:19.000000000 -0800 | ||
98 | +++ gettext.patched/gettext-runtime/gnulib-m4/gnulib-comp.m4 2011-03-16 23:50:17.471531838 -0700 | ||
99 | @@ -25,7 +25,7 @@ | ||
100 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable | ||
101 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable | ||
102 | AC_REQUIRE([AC_PROG_RANLIB]) | ||
103 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
104 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
105 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | ||
106 | ]) | ||
107 | |||
108 | diff -ru gettext-0.16.1/gettext-runtime/gnulib-m4/mbchar.m4 gettext.patched/gettext-runtime/gnulib-m4/mbchar.m4 | ||
109 | --- gettext-0.16.1/gettext-runtime/gnulib-m4/mbchar.m4 2006-11-27 09:14:38.000000000 -0800 | ||
110 | +++ gettext.patched/gettext-runtime/gnulib-m4/mbchar.m4 2011-03-16 23:50:10.814396529 -0700 | ||
111 | @@ -9,7 +9,7 @@ | ||
112 | |||
113 | AC_DEFUN([gl_MBCHAR], | ||
114 | [ | ||
115 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
116 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
117 | dnl The following line is that so the user can test HAVE_WCHAR_H | ||
118 | dnl before #include "mbchar.h". | ||
119 | AC_CHECK_HEADERS_ONCE([wchar.h]) | ||
120 | diff -ru gettext-0.16.1/gettext-runtime/gnulib-m4/wcwidth.m4 gettext.patched/gettext-runtime/gnulib-m4/wcwidth.m4 | ||
121 | --- gettext-0.16.1/gettext-runtime/gnulib-m4/wcwidth.m4 2006-11-27 09:14:38.000000000 -0800 | ||
122 | +++ gettext.patched/gettext-runtime/gnulib-m4/wcwidth.m4 2011-03-16 23:50:08.357396247 -0700 | ||
123 | @@ -7,7 +7,7 @@ | ||
124 | AC_DEFUN([gl_FUNC_WCWIDTH], | ||
125 | [ | ||
126 | dnl Persuade glibc <wchar.h> to declare wcwidth(). | ||
127 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
128 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
129 | |||
130 | AC_REQUIRE([AC_C_INLINE]) | ||
131 | AC_REQUIRE([gt_TYPE_WCHAR_T]) | ||
132 | diff -ru gettext-0.16.1/gettext-runtime/m4/lock.m4 gettext.patched/gettext-runtime/m4/lock.m4 | ||
133 | --- gettext-0.16.1/gettext-runtime/m4/lock.m4 2006-10-24 13:59:59.000000000 -0700 | ||
134 | +++ gettext.patched/gettext-runtime/m4/lock.m4 2011-03-16 23:50:04.355891676 -0700 | ||
135 | @@ -35,7 +35,7 @@ | ||
136 | AC_BEFORE([$0], [gl_ARGP])dnl | ||
137 | |||
138 | AC_REQUIRE([AC_CANONICAL_HOST]) | ||
139 | - AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems | ||
140 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems | ||
141 | dnl Check for multithreading. | ||
142 | AC_ARG_ENABLE(threads, | ||
143 | AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) | ||
144 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/extensions.m4 gettext.patched/gettext-tools/gnulib-m4/extensions.m4 | ||
145 | --- gettext-0.16.1/gettext-tools/gnulib-m4/extensions.m4 2006-11-27 09:14:54.000000000 -0800 | ||
146 | +++ gettext.patched/gettext-tools/gnulib-m4/extensions.m4 2011-03-16 23:53:28.487671266 -0700 | ||
147 | @@ -16,43 +16,47 @@ | ||
148 | # ------------------------ | ||
149 | # Enable extensions on systems that normally disable them, | ||
150 | # typically due to standards-conformance issues. | ||
151 | -AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | ||
152 | -[ | ||
153 | - AC_BEFORE([$0], [AC_COMPILE_IFELSE]) | ||
154 | - AC_BEFORE([$0], [AC_RUN_IFELSE]) | ||
155 | - | ||
156 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
157 | - AC_REQUIRE([AC_AIX]) | ||
158 | - AC_REQUIRE([AC_MINIX]) | ||
159 | - | ||
160 | - AH_VERBATIM([__EXTENSIONS__], | ||
161 | -[/* Enable extensions on Solaris. */ | ||
162 | -#ifndef __EXTENSIONS__ | ||
163 | -# undef __EXTENSIONS__ | ||
164 | -#endif | ||
165 | -#ifndef _POSIX_PTHREAD_SEMANTICS | ||
166 | -# undef _POSIX_PTHREAD_SEMANTICS | ||
167 | -#endif | ||
168 | -#ifndef _TANDEM_SOURCE | ||
169 | -# undef _TANDEM_SOURCE | ||
170 | -#endif]) | ||
171 | - AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], | ||
172 | - [ac_cv_safe_to_define___extensions__], | ||
173 | - [AC_COMPILE_IFELSE( | ||
174 | - [AC_LANG_PROGRAM([ | ||
175 | -# define __EXTENSIONS__ 1 | ||
176 | - AC_INCLUDES_DEFAULT])], | ||
177 | - [ac_cv_safe_to_define___extensions__=yes], | ||
178 | - [ac_cv_safe_to_define___extensions__=no])]) | ||
179 | - test $ac_cv_safe_to_define___extensions__ = yes && | ||
180 | - AC_DEFINE([__EXTENSIONS__]) | ||
181 | - AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) | ||
182 | - AC_DEFINE([_TANDEM_SOURCE]) | ||
183 | -]) | ||
184 | +#AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | ||
185 | +#[ | ||
186 | +# AC_BEFORE([$0], [AC_COMPILE_IFELSE]) | ||
187 | +# AC_BEFORE([$0], [AC_RUN_IFELSE]) | ||
188 | +# | ||
189 | +# AC_REQUIRE([AC_GNU_SOURCE]) | ||
190 | +# AC_REQUIRE([AC_AIX]) | ||
191 | +# AC_REQUIRE([AC_MINIX]) | ||
192 | +# | ||
193 | +# AH_VERBATIM([__EXTENSIONS__], | ||
194 | +#[/* Enable extensions on Solaris. */ | ||
195 | +##ifndef __EXTENSIONS__ | ||
196 | +## undef __EXTENSIONS__ | ||
197 | +##endif | ||
198 | +##ifndef _POSIX_PTHREAD_SEMANTICS | ||
199 | +## undef _POSIX_PTHREAD_SEMANTICS | ||
200 | +##endif | ||
201 | +##ifndef _TANDEM_SOURCE | ||
202 | +## undef _TANDEM_SOURCE | ||
203 | +##endif]) | ||
204 | +# AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], | ||
205 | +# [ac_cv_safe_to_define___extensions__], | ||
206 | +# [AC_COMPILE_IFELSE( | ||
207 | +# [AC_LANG_PROGRAM([ | ||
208 | +## define __EXTENSIONS__ 1 | ||
209 | +# AC_INCLUDES_DEFAULT])], | ||
210 | +# [ac_cv_safe_to_define___extensions__=yes], | ||
211 | +# [ac_cv_safe_to_define___extensions__=no])]) | ||
212 | +# test $ac_cv_safe_to_define___extensions__ = yes && | ||
213 | +# AC_DEFINE([__EXTENSIONS__]) | ||
214 | +# AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) | ||
215 | +# AC_DEFINE([_TANDEM_SOURCE]) | ||
216 | +#]) | ||
217 | |||
218 | # gl_USE_SYSTEM_EXTENSIONS | ||
219 | # ------------------------ | ||
220 | # Enable extensions on systems that normally disable them, | ||
221 | # typically due to standards-conformance issues. | ||
222 | AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], | ||
223 | - [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])]) | ||
224 | +[ | ||
225 | + AC_REQUIRE([AC_GNU_SOURCE]) | ||
226 | + | ||
227 | + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | ||
228 | +]) | ||
229 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/fnmatch.m4 gettext.patched/gettext-tools/gnulib-m4/fnmatch.m4 | ||
230 | --- gettext-0.16.1/gettext-tools/gnulib-m4/fnmatch.m4 2006-11-27 09:14:54.000000000 -0800 | ||
231 | +++ gettext.patched/gettext-tools/gnulib-m4/fnmatch.m4 2011-03-16 23:52:06.477463671 -0700 | ||
232 | @@ -91,7 +91,7 @@ | ||
233 | AC_DEFUN([gl_FUNC_FNMATCH_GNU], | ||
234 | [ | ||
235 | dnl Persuade glibc <fnmatch.h> to declare FNM_CASEFOLD etc. | ||
236 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
237 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
238 | |||
239 | FNMATCH_H= | ||
240 | _AC_FUNC_FNMATCH_IF([GNU], [ac_cv_func_fnmatch_gnu], | ||
241 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/getdelim.m4 gettext.patched/gettext-tools/gnulib-m4/getdelim.m4 | ||
242 | --- gettext-0.16.1/gettext-tools/gnulib-m4/getdelim.m4 2006-11-27 09:14:54.000000000 -0800 | ||
243 | +++ gettext.patched/gettext-tools/gnulib-m4/getdelim.m4 2011-03-16 23:52:22.871674845 -0700 | ||
244 | @@ -12,7 +12,7 @@ | ||
245 | [ | ||
246 | |||
247 | dnl Persuade glibc <stdio.h> to declare getdelim(). | ||
248 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
249 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
250 | |||
251 | AC_REPLACE_FUNCS(getdelim) | ||
252 | AC_CHECK_DECLS_ONCE(getdelim) | ||
253 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/getline.m4 gettext.patched/gettext-tools/gnulib-m4/getline.m4 | ||
254 | --- gettext-0.16.1/gettext-tools/gnulib-m4/getline.m4 2006-11-27 09:14:54.000000000 -0800 | ||
255 | +++ gettext.patched/gettext-tools/gnulib-m4/getline.m4 2011-03-16 23:51:49.829971108 -0700 | ||
256 | @@ -16,7 +16,7 @@ | ||
257 | AC_DEFUN([gl_FUNC_GETLINE], | ||
258 | [ | ||
259 | dnl Persuade glibc <stdio.h> to declare getline(). | ||
260 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
261 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
262 | |||
263 | AC_CHECK_DECLS([getline]) | ||
264 | |||
265 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/gnulib-comp.m4 gettext.patched/gettext-tools/gnulib-m4/gnulib-comp.m4 | ||
266 | --- gettext-0.16.1/gettext-tools/gnulib-m4/gnulib-comp.m4 2006-11-27 09:33:36.000000000 -0800 | ||
267 | +++ gettext.patched/gettext-tools/gnulib-m4/gnulib-comp.m4 2011-03-16 23:52:18.970450488 -0700 | ||
268 | @@ -25,7 +25,7 @@ | ||
269 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable | ||
270 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable | ||
271 | AC_REQUIRE([AC_PROG_RANLIB]) | ||
272 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
273 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
274 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | ||
275 | AC_REQUIRE([gl_LOCK_EARLY]) | ||
276 | ]) | ||
277 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/mbchar.m4 gettext.patched/gettext-tools/gnulib-m4/mbchar.m4 | ||
278 | --- gettext-0.16.1/gettext-tools/gnulib-m4/mbchar.m4 2006-11-27 09:14:55.000000000 -0800 | ||
279 | +++ gettext.patched/gettext-tools/gnulib-m4/mbchar.m4 2011-03-16 23:51:40.844410216 -0700 | ||
280 | @@ -9,7 +9,7 @@ | ||
281 | |||
282 | AC_DEFUN([gl_MBCHAR], | ||
283 | [ | ||
284 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
285 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
286 | dnl The following line is that so the user can test HAVE_WCHAR_H | ||
287 | dnl before #include "mbchar.h". | ||
288 | AC_CHECK_HEADERS_ONCE([wchar.h]) | ||
289 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/stpcpy.m4 gettext.patched/gettext-tools/gnulib-m4/stpcpy.m4 | ||
290 | --- gettext-0.16.1/gettext-tools/gnulib-m4/stpcpy.m4 2006-11-27 09:14:55.000000000 -0800 | ||
291 | +++ gettext.patched/gettext-tools/gnulib-m4/stpcpy.m4 2011-03-16 23:52:14.691396045 -0700 | ||
292 | @@ -7,7 +7,7 @@ | ||
293 | AC_DEFUN([gl_FUNC_STPCPY], | ||
294 | [ | ||
295 | dnl Persuade glibc <string.h> to declare stpcpy(). | ||
296 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
297 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
298 | |||
299 | AC_REPLACE_FUNCS(stpcpy) | ||
300 | if test $ac_cv_func_stpcpy = no; then | ||
301 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/stpncpy.m4 gettext.patched/gettext-tools/gnulib-m4/stpncpy.m4 | ||
302 | --- gettext-0.16.1/gettext-tools/gnulib-m4/stpncpy.m4 2006-11-27 09:14:55.000000000 -0800 | ||
303 | +++ gettext.patched/gettext-tools/gnulib-m4/stpncpy.m4 2011-03-16 23:52:10.356641459 -0700 | ||
304 | @@ -7,7 +7,7 @@ | ||
305 | AC_DEFUN([gl_FUNC_STPNCPY], | ||
306 | [ | ||
307 | dnl Persuade glibc <string.h> to declare stpncpy(). | ||
308 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
309 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
310 | |||
311 | dnl Both glibc and AIX (4.3.3, 5.1) have an stpncpy() function | ||
312 | dnl declared in <string.h>. Its side effects are the same as those | ||
313 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/wcwidth.m4 gettext.patched/gettext-tools/gnulib-m4/wcwidth.m4 | ||
314 | --- gettext-0.16.1/gettext-tools/gnulib-m4/wcwidth.m4 2006-11-27 09:14:55.000000000 -0800 | ||
315 | +++ gettext.patched/gettext-tools/gnulib-m4/wcwidth.m4 2011-03-16 23:51:08.260324221 -0700 | ||
316 | @@ -7,7 +7,7 @@ | ||
317 | AC_DEFUN([gl_FUNC_WCWIDTH], | ||
318 | [ | ||
319 | dnl Persuade glibc <wchar.h> to declare wcwidth(). | ||
320 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
321 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
322 | |||
323 | AC_REQUIRE([AC_C_INLINE]) | ||
324 | AC_REQUIRE([gt_TYPE_WCHAR_T]) | ||
325 | diff -ru gettext-0.16.1/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 gettext.patched/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 | ||
326 | --- gettext-0.16.1/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 2006-11-27 09:33:45.000000000 -0800 | ||
327 | +++ gettext.patched/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 2011-03-16 23:51:02.036061317 -0700 | ||
328 | @@ -25,7 +25,7 @@ | ||
329 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable | ||
330 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable | ||
331 | AC_REQUIRE([AC_PROG_RANLIB]) | ||
332 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
333 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
334 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | ||
335 | AC_REQUIRE([gl_LOCK_EARLY]) | ||
336 | ]) | ||
337 | diff -ru gettext-0.16.1/gettext-tools/m4/regex.m4 gettext.patched/gettext-tools/m4/regex.m4 | ||
338 | --- gettext-0.16.1/gettext-tools/m4/regex.m4 2006-11-27 09:02:05.000000000 -0800 | ||
339 | +++ gettext.patched/gettext-tools/m4/regex.m4 2011-03-16 23:50:53.533477195 -0700 | ||
340 | @@ -116,7 +116,7 @@ | ||
341 | dnl to get them. | ||
342 | |||
343 | dnl Persuade glibc <string.h> to declare mempcpy(). | ||
344 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
345 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
346 | |||
347 | AC_REQUIRE([AC_C_RESTRICT]) | ||
348 | AC_REQUIRE([AC_FUNC_ALLOCA]) | ||
diff --git a/meta/recipes-core/gettext/gettext-0.16.1/gettext-autoconf-lib-link-no-L.patch b/meta/recipes-core/gettext/gettext-0.16.1/gettext-autoconf-lib-link-no-L.patch new file mode 100644 index 0000000000..072fe5ff6c --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.16.1/gettext-autoconf-lib-link-no-L.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | |||
2 | # Pulled from OpenEmbedded | ||
3 | # | ||
4 | # Commented by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | --- gettext-0.17/autoconf-lib-link/m4/lib-link.m4~ 2009-04-17 15:12:30.000000000 -0700 | ||
9 | +++ gettext-0.17/autoconf-lib-link/m4/lib-link.m4 2009-04-17 15:37:39.000000000 -0700 | ||
10 | @@ -267,6 +267,9 @@ | ||
11 | fi | ||
12 | fi | ||
13 | fi | ||
14 | + dnl Just let the compiler find the library, the compiler and user are smarter then this script | ||
15 | + dnl when cross compiling and working with a relocated install. | ||
16 | + found_dir="" | ||
17 | if test "X$found_dir" = "X"; then | ||
18 | for x in $LDFLAGS $LTLIB[]NAME; do | ||
19 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
diff --git a/meta/recipes-core/gettext/gettext-0.16.1/gettext-error_print_progname.patch b/meta/recipes-core/gettext/gettext-0.16.1/gettext-error_print_progname.patch new file mode 100644 index 0000000000..93d91942f0 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.16.1/gettext-error_print_progname.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | |||
2 | # Pulled from OpenEmbedded | ||
3 | # | ||
4 | # Commented by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | diff -ur gettext-0.14.6/gettext-tools/lib/error.h gettext-0.14.6-patched/gettext-tools/lib/error.h | ||
9 | --- gettext-0.14.6/gettext-tools/lib/error.h 2005-05-20 16:03:42.000000000 -0500 | ||
10 | +++ gettext-0.14.6-patched/gettext-tools/lib/error.h 2007-01-13 20:57:24.422168053 -0600 | ||
11 | @@ -50,7 +50,7 @@ | ||
12 | /* If NULL, error will flush stdout, then print on stderr the program | ||
13 | name, a colon and a space. Otherwise, error will call this | ||
14 | function without parameters instead. */ | ||
15 | -extern DLL_VARIABLE void (*error_print_progname) (void); | ||
16 | +void (*error_print_progname) (void); | ||
17 | |||
18 | /* This variable is incremented each time `error' is called. */ | ||
19 | extern DLL_VARIABLE unsigned int error_message_count; | ||
diff --git a/meta/recipes-core/gettext/gettext-0.16.1/gettext-vpath.patch b/meta/recipes-core/gettext/gettext-0.16.1/gettext-vpath.patch new file mode 100644 index 0000000000..f09e450efe --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.16.1/gettext-vpath.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | |||
2 | # Pulled from OpenEmbedded | ||
3 | # | ||
4 | # Commented by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | Index: gettext-0.16.1/gettext-runtime/intl/Makefile.in | ||
9 | =================================================================== | ||
10 | --- gettext-0.16.1.orig/gettext-runtime/intl/Makefile.in 2006-11-27 09:02:00.000000000 -0800 | ||
11 | +++ gettext-0.16.1/gettext-runtime/intl/Makefile.in 2011-03-16 16:04:49.175419930 -0700 | ||
12 | @@ -35,7 +35,7 @@ | ||
13 | # 'make' does the wrong thing if GNU gettext was configured with | ||
14 | # "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la | ||
15 | # files it finds in srcdir = ../../gettext-runtime/intl. | ||
16 | -VPATH = $(srcdir) | ||
17 | +#VPATH = $(srcdir) | ||
18 | |||
19 | prefix = @prefix@ | ||
20 | exec_prefix = @exec_prefix@ | ||
diff --git a/meta/recipes-core/gettext/gettext-0.16.1/hardcode_macro_version.patch b/meta/recipes-core/gettext/gettext-0.16.1/hardcode_macro_version.patch new file mode 100644 index 0000000000..4da8dd4536 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.16.1/hardcode_macro_version.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | |||
2 | This patch hardcodes in version 0.17 for the GETTEXT_MACRO_VERSION, | ||
3 | the version check is only part of 0.17 and will not affect any 0.16.1 | ||
4 | operations | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
9 | |||
10 | Index: gettext-0.16.1/gettext-runtime/m4/po.m4 | ||
11 | =================================================================== | ||
12 | --- gettext-0.16.1.orig/gettext-runtime/m4/po.m4 2011-03-17 02:24:28.953520231 -0700 | ||
13 | +++ gettext-0.16.1/gettext-runtime/m4/po.m4 2011-03-17 02:28:25.455396862 -0700 | ||
14 | @@ -27,6 +27,9 @@ | ||
15 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake | ||
16 | AC_REQUIRE([AM_NLS])dnl | ||
17 | |||
18 | + dnl Hardcode the MACRO_VERSION to 0.17 for gnutls | ||
19 | + AC_SUBST([GETTEXT_MACRO_VERSION], [0.17]) | ||
20 | + | ||
21 | dnl Perform the following tests also if --disable-nls has been given, | ||
22 | dnl because they are needed for "make dist" to work. | ||
23 | |||
24 | Index: gettext-0.16.1/gettext-runtime/po/Makefile.in.in | ||
25 | =================================================================== | ||
26 | --- gettext-0.16.1.orig/gettext-runtime/po/Makefile.in.in 2011-03-17 02:24:28.953520231 -0700 | ||
27 | +++ gettext-0.16.1/gettext-runtime/po/Makefile.in.in 2011-03-17 02:28:07.574395144 -0700 | ||
28 | @@ -10,6 +10,9 @@ | ||
29 | # | ||
30 | # Origin: gettext-0.16 | ||
31 | |||
32 | +# Hardcode this value for gnutls building against gplv2 code | ||
33 | +GETTEXT_MACRO_VERSION = 0.17 | ||
34 | + | ||
35 | PACKAGE = @PACKAGE@ | ||
36 | VERSION = @VERSION@ | ||
37 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
38 | Index: gettext-0.16.1/gettext-tools/po/Makefile.in.in | ||
39 | =================================================================== | ||
40 | --- gettext-0.16.1.orig/gettext-tools/po/Makefile.in.in 2011-03-17 02:24:28.953520231 -0700 | ||
41 | +++ gettext-0.16.1/gettext-tools/po/Makefile.in.in 2011-03-17 02:28:07.574395144 -0700 | ||
42 | @@ -10,6 +10,9 @@ | ||
43 | # | ||
44 | # Origin: gettext-0.16 | ||
45 | |||
46 | +# Hardcode this value for gnutls building against gplv2 code | ||
47 | +GETTEXT_MACRO_VERSION = 0.17 | ||
48 | + | ||
49 | PACKAGE = @PACKAGE@ | ||
50 | VERSION = @VERSION@ | ||
51 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
diff --git a/meta/recipes-core/gettext/gettext-0.16.1/linklib_from_0.17.patch b/meta/recipes-core/gettext/gettext-0.16.1/linklib_from_0.17.patch new file mode 100644 index 0000000000..d921069711 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.16.1/linklib_from_0.17.patch | |||
@@ -0,0 +1,720 @@ | |||
1 | |||
2 | # Pulled from OpenEmbedded | ||
3 | # | ||
4 | # Commented by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | Index: gettext-0.16.1/autoconf-lib-link/m4/lib-link.m4 | ||
9 | =================================================================== | ||
10 | --- gettext-0.16.1.orig/autoconf-lib-link/m4/lib-link.m4 2006-11-27 09:01:58.000000000 -0800 | ||
11 | +++ gettext-0.16.1/autoconf-lib-link/m4/lib-link.m4 2011-03-17 00:36:08.710836720 -0700 | ||
12 | @@ -6,12 +6,14 @@ | ||
13 | |||
14 | dnl From Bruno Haible. | ||
15 | |||
16 | -AC_PREREQ(2.50) | ||
17 | +AC_PREREQ(2.54) | ||
18 | |||
19 | dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and | ||
20 | dnl the libraries corresponding to explicit and implicit dependencies. | ||
21 | dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and | ||
22 | dnl augments the CPPFLAGS variable. | ||
23 | +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname | ||
24 | +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. | ||
25 | AC_DEFUN([AC_LIB_LINKFLAGS], | ||
26 | [ | ||
27 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
28 | @@ -24,13 +26,16 @@ | ||
29 | ac_cv_lib[]Name[]_libs="$LIB[]NAME" | ||
30 | ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" | ||
31 | ac_cv_lib[]Name[]_cppflags="$INC[]NAME" | ||
32 | + ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" | ||
33 | ]) | ||
34 | LIB[]NAME="$ac_cv_lib[]Name[]_libs" | ||
35 | LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" | ||
36 | INC[]NAME="$ac_cv_lib[]Name[]_cppflags" | ||
37 | + LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" | ||
38 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) | ||
39 | AC_SUBST([LIB]NAME) | ||
40 | AC_SUBST([LTLIB]NAME) | ||
41 | + AC_SUBST([LIB]NAME[_PREFIX]) | ||
42 | dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the | ||
43 | dnl results of this search when this library appears as a dependency. | ||
44 | HAVE_LIB[]NAME=yes | ||
45 | @@ -46,6 +51,8 @@ | ||
46 | dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and | ||
47 | dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs | ||
48 | dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. | ||
49 | +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname | ||
50 | +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. | ||
51 | AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], | ||
52 | [ | ||
53 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
54 | @@ -82,17 +89,24 @@ | ||
55 | CPPFLAGS="$ac_save_CPPFLAGS" | ||
56 | LIB[]NAME= | ||
57 | LTLIB[]NAME= | ||
58 | + LIB[]NAME[]_PREFIX= | ||
59 | + | ||
60 | fi | ||
61 | AC_SUBST([HAVE_LIB]NAME) | ||
62 | AC_SUBST([LIB]NAME) | ||
63 | AC_SUBST([LTLIB]NAME) | ||
64 | + AC_SUBST([LIB]NAME[_PREFIX]) | ||
65 | undefine([Name]) | ||
66 | undefine([NAME]) | ||
67 | ]) | ||
68 | |||
69 | dnl Determine the platform dependent parameters needed to use rpath: | ||
70 | -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, | ||
71 | -dnl hardcode_direct, hardcode_minus_L. | ||
72 | +dnl acl_libext, | ||
73 | +dnl acl_shlibext, | ||
74 | +dnl acl_hardcode_libdir_flag_spec, | ||
75 | +dnl acl_hardcode_libdir_separator, | ||
76 | +dnl acl_hardcode_direct, | ||
77 | +dnl acl_hardcode_minus_L. | ||
78 | AC_DEFUN([AC_LIB_RPATH], | ||
79 | [ | ||
80 | dnl Tell automake >= 1.10 to complain if config.rpath is missing. | ||
81 | @@ -109,12 +123,14 @@ | ||
82 | acl_cv_rpath=done | ||
83 | ]) | ||
84 | wl="$acl_cv_wl" | ||
85 | - libext="$acl_cv_libext" | ||
86 | - shlibext="$acl_cv_shlibext" | ||
87 | - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | ||
88 | - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | ||
89 | - hardcode_direct="$acl_cv_hardcode_direct" | ||
90 | - hardcode_minus_L="$acl_cv_hardcode_minus_L" | ||
91 | + acl_libext="$acl_cv_libext" | ||
92 | + acl_shlibext="$acl_cv_shlibext" | ||
93 | + acl_libname_spec="$acl_cv_libname_spec" | ||
94 | + acl_library_names_spec="$acl_cv_library_names_spec" | ||
95 | + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | ||
96 | + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | ||
97 | + acl_hardcode_direct="$acl_cv_hardcode_direct" | ||
98 | + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | ||
99 | dnl Determine whether the user wants rpath handling at all. | ||
100 | AC_ARG_ENABLE(rpath, | ||
101 | [ --disable-rpath do not hardcode runtime library paths], | ||
102 | @@ -124,20 +140,24 @@ | ||
103 | dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and | ||
104 | dnl the libraries corresponding to explicit and implicit dependencies. | ||
105 | dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. | ||
106 | +dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found | ||
107 | +dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. | ||
108 | AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | ||
109 | [ | ||
110 | AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | ||
111 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
112 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
113 | + dnl Autoconf >= 2.61 supports dots in --with options. | ||
114 | + define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) | ||
115 | dnl By default, look in $includedir and $libdir. | ||
116 | use_additional=yes | ||
117 | AC_LIB_WITH_FINAL_PREFIX([ | ||
118 | eval additional_includedir=\"$includedir\" | ||
119 | eval additional_libdir=\"$libdir\" | ||
120 | ]) | ||
121 | - AC_LIB_ARG_WITH([lib$1-prefix], | ||
122 | -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib | ||
123 | - --without-lib$1-prefix don't search for lib$1 in includedir and libdir], | ||
124 | + AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], | ||
125 | +[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib | ||
126 | + --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], | ||
127 | [ | ||
128 | if test "X$withval" = "Xno"; then | ||
129 | use_additional=no | ||
130 | @@ -158,6 +178,7 @@ | ||
131 | LIB[]NAME= | ||
132 | LTLIB[]NAME= | ||
133 | INC[]NAME= | ||
134 | + LIB[]NAME[]_PREFIX= | ||
135 | rpathdirs= | ||
136 | ltrpathdirs= | ||
137 | names_already_handled= | ||
138 | @@ -197,27 +218,53 @@ | ||
139 | found_la= | ||
140 | found_so= | ||
141 | found_a= | ||
142 | + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | ||
143 | + if test -n "$acl_shlibext"; then | ||
144 | + shrext=".$acl_shlibext" # typically: shrext=.so | ||
145 | + else | ||
146 | + shrext= | ||
147 | + fi | ||
148 | if test $use_additional = yes; then | ||
149 | - if test -n "$shlibext" \ | ||
150 | - && { test -f "$additional_libdir/lib$name.$shlibext" \ | ||
151 | - || { test "$shlibext" = dll \ | ||
152 | - && test -f "$additional_libdir/lib$name.dll.a"; }; }; then | ||
153 | - found_dir="$additional_libdir" | ||
154 | - if test -f "$additional_libdir/lib$name.$shlibext"; then | ||
155 | - found_so="$additional_libdir/lib$name.$shlibext" | ||
156 | + dir="$additional_libdir" | ||
157 | + dnl The same code as in the loop below: | ||
158 | + dnl First look for a shared library. | ||
159 | + if test -n "$acl_shlibext"; then | ||
160 | + if test -f "$dir/$libname$shrext"; then | ||
161 | + found_dir="$dir" | ||
162 | + found_so="$dir/$libname$shrext" | ||
163 | else | ||
164 | - found_so="$additional_libdir/lib$name.dll.a" | ||
165 | + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
166 | + ver=`(cd "$dir" && \ | ||
167 | + for f in "$libname$shrext".*; do echo "$f"; done \ | ||
168 | + | sed -e "s,^$libname$shrext\\\\.,," \ | ||
169 | + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
170 | + | sed 1q ) 2>/dev/null` | ||
171 | + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
172 | + found_dir="$dir" | ||
173 | + found_so="$dir/$libname$shrext.$ver" | ||
174 | + fi | ||
175 | + else | ||
176 | + eval library_names=\"$acl_library_names_spec\" | ||
177 | + for f in $library_names; do | ||
178 | + if test -f "$dir/$f"; then | ||
179 | + found_dir="$dir" | ||
180 | + found_so="$dir/$f" | ||
181 | + break | ||
182 | + fi | ||
183 | + done | ||
184 | + fi | ||
185 | fi | ||
186 | - if test -f "$additional_libdir/lib$name.la"; then | ||
187 | - found_la="$additional_libdir/lib$name.la" | ||
188 | + fi | ||
189 | + dnl Then look for a static library. | ||
190 | + if test "X$found_dir" = "X"; then | ||
191 | + if test -f "$dir/$libname.$acl_libext"; then | ||
192 | + found_dir="$dir" | ||
193 | + found_a="$dir/$libname.$acl_libext" | ||
194 | fi | ||
195 | - else | ||
196 | - if test -f "$additional_libdir/lib$name.$libext"; then | ||
197 | - found_dir="$additional_libdir" | ||
198 | - found_a="$additional_libdir/lib$name.$libext" | ||
199 | - if test -f "$additional_libdir/lib$name.la"; then | ||
200 | - found_la="$additional_libdir/lib$name.la" | ||
201 | - fi | ||
202 | + fi | ||
203 | + if test "X$found_dir" != "X"; then | ||
204 | + if test -f "$dir/$libname.la"; then | ||
205 | + found_la="$dir/$libname.la" | ||
206 | fi | ||
207 | fi | ||
208 | fi | ||
209 | @@ -227,26 +274,44 @@ | ||
210 | case "$x" in | ||
211 | -L*) | ||
212 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
213 | - if test -n "$shlibext" \ | ||
214 | - && { test -f "$dir/lib$name.$shlibext" \ | ||
215 | - || { test "$shlibext" = dll \ | ||
216 | - && test -f "$dir/lib$name.dll.a"; }; }; then | ||
217 | - found_dir="$dir" | ||
218 | - if test -f "$dir/lib$name.$shlibext"; then | ||
219 | - found_so="$dir/lib$name.$shlibext" | ||
220 | + dnl First look for a shared library. | ||
221 | + if test -n "$acl_shlibext"; then | ||
222 | + if test -f "$dir/$libname$shrext"; then | ||
223 | + found_dir="$dir" | ||
224 | + found_so="$dir/$libname$shrext" | ||
225 | else | ||
226 | - found_so="$dir/lib$name.dll.a" | ||
227 | - fi | ||
228 | - if test -f "$dir/lib$name.la"; then | ||
229 | - found_la="$dir/lib$name.la" | ||
230 | + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
231 | + ver=`(cd "$dir" && \ | ||
232 | + for f in "$libname$shrext".*; do echo "$f"; done \ | ||
233 | + | sed -e "s,^$libname$shrext\\\\.,," \ | ||
234 | + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
235 | + | sed 1q ) 2>/dev/null` | ||
236 | + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
237 | + found_dir="$dir" | ||
238 | + found_so="$dir/$libname$shrext.$ver" | ||
239 | + fi | ||
240 | + else | ||
241 | + eval library_names=\"$acl_library_names_spec\" | ||
242 | + for f in $library_names; do | ||
243 | + if test -f "$dir/$f"; then | ||
244 | + found_dir="$dir" | ||
245 | + found_so="$dir/$f" | ||
246 | + break | ||
247 | + fi | ||
248 | + done | ||
249 | + fi | ||
250 | fi | ||
251 | - else | ||
252 | - if test -f "$dir/lib$name.$libext"; then | ||
253 | + fi | ||
254 | + dnl Then look for a static library. | ||
255 | + if test "X$found_dir" = "X"; then | ||
256 | + if test -f "$dir/$libname.$acl_libext"; then | ||
257 | found_dir="$dir" | ||
258 | - found_a="$dir/lib$name.$libext" | ||
259 | - if test -f "$dir/lib$name.la"; then | ||
260 | - found_la="$dir/lib$name.la" | ||
261 | - fi | ||
262 | + found_a="$dir/$libname.$acl_libext" | ||
263 | + fi | ||
264 | + fi | ||
265 | + if test "X$found_dir" != "X"; then | ||
266 | + if test -f "$dir/$libname.la"; then | ||
267 | + found_la="$dir/$libname.la" | ||
268 | fi | ||
269 | fi | ||
270 | ;; | ||
271 | @@ -282,12 +347,12 @@ | ||
272 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
273 | fi | ||
274 | dnl The hardcoding into $LIBNAME is system dependent. | ||
275 | - if test "$hardcode_direct" = yes; then | ||
276 | + if test "$acl_hardcode_direct" = yes; then | ||
277 | dnl Using DIR/libNAME.so during linking hardcodes DIR into the | ||
278 | dnl resulting binary. | ||
279 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
280 | else | ||
281 | - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | ||
282 | + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | ||
283 | dnl Use an explicit option to hardcode DIR into the resulting | ||
284 | dnl binary. | ||
285 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
286 | @@ -318,13 +383,13 @@ | ||
287 | if test -z "$haveit"; then | ||
288 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" | ||
289 | fi | ||
290 | - if test "$hardcode_minus_L" != no; then | ||
291 | + if test "$acl_hardcode_minus_L" != no; then | ||
292 | dnl FIXME: Not sure whether we should use | ||
293 | dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" | ||
294 | dnl here. | ||
295 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
296 | else | ||
297 | - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH | ||
298 | + dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH | ||
299 | dnl here, because this doesn't fit in flags passed to the | ||
300 | dnl compiler. So give up. No hardcoding. This affects only | ||
301 | dnl very old systems. | ||
302 | @@ -512,18 +577,18 @@ | ||
303 | done | ||
304 | done | ||
305 | if test "X$rpathdirs" != "X"; then | ||
306 | - if test -n "$hardcode_libdir_separator"; then | ||
307 | + if test -n "$acl_hardcode_libdir_separator"; then | ||
308 | dnl Weird platform: only the last -rpath option counts, the user must | ||
309 | dnl pass all path elements in one option. We can arrange that for a | ||
310 | dnl single library, but not when more than one $LIBNAMEs are used. | ||
311 | alldirs= | ||
312 | for found_dir in $rpathdirs; do | ||
313 | - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | ||
314 | + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | ||
315 | done | ||
316 | - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. | ||
317 | + dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. | ||
318 | acl_save_libdir="$libdir" | ||
319 | libdir="$alldirs" | ||
320 | - eval flag=\"$hardcode_libdir_flag_spec\" | ||
321 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
322 | libdir="$acl_save_libdir" | ||
323 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" | ||
324 | else | ||
325 | @@ -531,7 +596,7 @@ | ||
326 | for found_dir in $rpathdirs; do | ||
327 | acl_save_libdir="$libdir" | ||
328 | libdir="$found_dir" | ||
329 | - eval flag=\"$hardcode_libdir_flag_spec\" | ||
330 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
331 | libdir="$acl_save_libdir" | ||
332 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" | ||
333 | done | ||
334 | @@ -642,3 +707,79 @@ | ||
335 | fi | ||
336 | AC_SUBST([$1]) | ||
337 | ]) | ||
338 | + | ||
339 | +dnl For those cases where a variable contains several -L and -l options | ||
340 | +dnl referring to unknown libraries and directories, this macro determines the | ||
341 | +dnl necessary additional linker options for the runtime path. | ||
342 | +dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) | ||
343 | +dnl sets LDADDVAR to linker options needed together with LIBSVALUE. | ||
344 | +dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, | ||
345 | +dnl otherwise linking without libtool is assumed. | ||
346 | +AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], | ||
347 | +[ | ||
348 | + AC_REQUIRE([AC_LIB_RPATH]) | ||
349 | + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | ||
350 | + $1= | ||
351 | + if test "$enable_rpath" != no; then | ||
352 | + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | ||
353 | + dnl Use an explicit option to hardcode directories into the resulting | ||
354 | + dnl binary. | ||
355 | + rpathdirs= | ||
356 | + next= | ||
357 | + for opt in $2; do | ||
358 | + if test -n "$next"; then | ||
359 | + dir="$next" | ||
360 | + dnl No need to hardcode the standard /usr/lib. | ||
361 | + if test "X$dir" != "X/usr/$acl_libdirstem"; then | ||
362 | + rpathdirs="$rpathdirs $dir" | ||
363 | + fi | ||
364 | + next= | ||
365 | + else | ||
366 | + case $opt in | ||
367 | + -L) next=yes ;; | ||
368 | + -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` | ||
369 | + dnl No need to hardcode the standard /usr/lib. | ||
370 | + if test "X$dir" != "X/usr/$acl_libdirstem"; then | ||
371 | + rpathdirs="$rpathdirs $dir" | ||
372 | + fi | ||
373 | + next= ;; | ||
374 | + *) next= ;; | ||
375 | + esac | ||
376 | + fi | ||
377 | + done | ||
378 | + if test "X$rpathdirs" != "X"; then | ||
379 | + if test -n ""$3""; then | ||
380 | + dnl libtool is used for linking. Use -R options. | ||
381 | + for dir in $rpathdirs; do | ||
382 | + $1="${$1}${$1:+ }-R$dir" | ||
383 | + done | ||
384 | + else | ||
385 | + dnl The linker is used for linking directly. | ||
386 | + if test -n "$acl_hardcode_libdir_separator"; then | ||
387 | + dnl Weird platform: only the last -rpath option counts, the user | ||
388 | + dnl must pass all path elements in one option. | ||
389 | + alldirs= | ||
390 | + for dir in $rpathdirs; do | ||
391 | + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" | ||
392 | + done | ||
393 | + acl_save_libdir="$libdir" | ||
394 | + libdir="$alldirs" | ||
395 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
396 | + libdir="$acl_save_libdir" | ||
397 | + $1="$flag" | ||
398 | + else | ||
399 | + dnl The -rpath options are cumulative. | ||
400 | + for dir in $rpathdirs; do | ||
401 | + acl_save_libdir="$libdir" | ||
402 | + libdir="$dir" | ||
403 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
404 | + libdir="$acl_save_libdir" | ||
405 | + $1="${$1}${$1:+ }$flag" | ||
406 | + done | ||
407 | + fi | ||
408 | + fi | ||
409 | + fi | ||
410 | + fi | ||
411 | + fi | ||
412 | + AC_SUBST([$1]) | ||
413 | +]) | ||
414 | Index: gettext-0.16.1/autoconf-lib-link/config.rpath | ||
415 | =================================================================== | ||
416 | --- gettext-0.16.1.orig/autoconf-lib-link/config.rpath 2006-11-27 09:01:58.000000000 -0800 | ||
417 | +++ gettext-0.16.1/autoconf-lib-link/config.rpath 2011-03-17 00:33:23.336539490 -0700 | ||
418 | @@ -2,7 +2,7 @@ | ||
419 | # Output a system dependent set of variables, describing how to set the | ||
420 | # run time search path of shared libraries in an executable. | ||
421 | # | ||
422 | -# Copyright 1996-2006 Free Software Foundation, Inc. | ||
423 | +# Copyright 1996-2007 Free Software Foundation, Inc. | ||
424 | # Taken from GNU libtool, 2001 | ||
425 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
426 | # | ||
427 | @@ -47,6 +47,18 @@ | ||
428 | done | ||
429 | cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | ||
430 | |||
431 | +# Code taken from libtool.m4's _LT_CC_BASENAME. | ||
432 | + | ||
433 | +for cc_temp in $CC""; do | ||
434 | + case $cc_temp in | ||
435 | + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
436 | + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
437 | + \-*) ;; | ||
438 | + *) break;; | ||
439 | + esac | ||
440 | +done | ||
441 | +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | ||
442 | + | ||
443 | # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. | ||
444 | |||
445 | wl= | ||
446 | @@ -64,7 +76,14 @@ | ||
447 | ;; | ||
448 | esac | ||
449 | ;; | ||
450 | - mingw* | pw32* | os2*) | ||
451 | + darwin*) | ||
452 | + case $cc_basename in | ||
453 | + xlc*) | ||
454 | + wl='-Wl,' | ||
455 | + ;; | ||
456 | + esac | ||
457 | + ;; | ||
458 | + mingw* | cygwin* | pw32* | os2*) | ||
459 | ;; | ||
460 | hpux9* | hpux10* | hpux11*) | ||
461 | wl='-Wl,' | ||
462 | @@ -74,7 +93,7 @@ | ||
463 | ;; | ||
464 | newsos6) | ||
465 | ;; | ||
466 | - linux*) | ||
467 | + linux* | k*bsd*-gnu) | ||
468 | case $cc_basename in | ||
469 | icc* | ecc*) | ||
470 | wl='-Wl,' | ||
471 | @@ -100,7 +119,7 @@ | ||
472 | osf3* | osf4* | osf5*) | ||
473 | wl='-Wl,' | ||
474 | ;; | ||
475 | - sco3.2v5*) | ||
476 | + rdos*) | ||
477 | ;; | ||
478 | solaris*) | ||
479 | wl='-Wl,' | ||
480 | @@ -108,11 +127,14 @@ | ||
481 | sunos4*) | ||
482 | wl='-Qoption ld ' | ||
483 | ;; | ||
484 | - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
485 | + sysv4 | sysv4.2uw2* | sysv4.3*) | ||
486 | wl='-Wl,' | ||
487 | ;; | ||
488 | sysv4*MP*) | ||
489 | ;; | ||
490 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
491 | + wl='-Wl,' | ||
492 | + ;; | ||
493 | unicos*) | ||
494 | wl='-Wl,' | ||
495 | ;; | ||
496 | @@ -141,6 +163,10 @@ | ||
497 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
498 | with_gnu_ld=yes | ||
499 | ;; | ||
500 | + interix*) | ||
501 | + # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
502 | + with_gnu_ld=yes | ||
503 | + ;; | ||
504 | openbsd*) | ||
505 | with_gnu_ld=no | ||
506 | ;; | ||
507 | @@ -189,11 +215,11 @@ | ||
508 | ld_shlibs=no | ||
509 | fi | ||
510 | ;; | ||
511 | - interix3*) | ||
512 | + interix[3-9]*) | ||
513 | hardcode_direct=no | ||
514 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
515 | ;; | ||
516 | - linux*) | ||
517 | + gnu* | linux* | k*bsd*-gnu) | ||
518 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
519 | : | ||
520 | else | ||
521 | @@ -280,7 +306,7 @@ | ||
522 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
523 | then | ||
524 | # We have reworked collect2 | ||
525 | - hardcode_direct=yes | ||
526 | + : | ||
527 | else | ||
528 | # We have old collect2 | ||
529 | hardcode_direct=unsupported | ||
530 | @@ -359,7 +385,7 @@ | ||
531 | hardcode_direct=yes | ||
532 | hardcode_minus_L=yes | ||
533 | ;; | ||
534 | - freebsd* | kfreebsd*-gnu | dragonfly*) | ||
535 | + freebsd* | dragonfly*) | ||
536 | hardcode_libdir_flag_spec='-R$libdir' | ||
537 | hardcode_direct=yes | ||
538 | ;; | ||
539 | @@ -412,18 +438,22 @@ | ||
540 | hardcode_libdir_separator=: | ||
541 | ;; | ||
542 | openbsd*) | ||
543 | - hardcode_direct=yes | ||
544 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
545 | - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
546 | + if test -f /usr/libexec/ld.so; then | ||
547 | + hardcode_direct=yes | ||
548 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
549 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
550 | + else | ||
551 | + case "$host_os" in | ||
552 | + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
553 | + hardcode_libdir_flag_spec='-R$libdir' | ||
554 | + ;; | ||
555 | + *) | ||
556 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
557 | + ;; | ||
558 | + esac | ||
559 | + fi | ||
560 | else | ||
561 | - case "$host_os" in | ||
562 | - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
563 | - hardcode_libdir_flag_spec='-R$libdir' | ||
564 | - ;; | ||
565 | - *) | ||
566 | - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
567 | - ;; | ||
568 | - esac | ||
569 | + ld_shlibs=no | ||
570 | fi | ||
571 | ;; | ||
572 | os2*) | ||
573 | @@ -471,7 +501,7 @@ | ||
574 | ld_shlibs=yes | ||
575 | fi | ||
576 | ;; | ||
577 | - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | ||
578 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* |sco3.2v5.0.[024]*) | ||
579 | ;; | ||
580 | sysv5* | sco3.2v5* | sco5v6*) | ||
581 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
582 | @@ -488,33 +518,51 @@ | ||
583 | |||
584 | # Check dynamic linker characteristics | ||
585 | # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. | ||
586 | +# Unlike libtool.m4, here we don't care about _all_ names of the library, but | ||
587 | +# only about the one the linker finds when passed -lNAME. This is the last | ||
588 | +# element of library_names_spec in libtool.m4, or possibly two of them if the | ||
589 | +# linker has special search rules. | ||
590 | +library_names_spec= # the last element of library_names_spec in libtool.m4 | ||
591 | libname_spec='lib$name' | ||
592 | case "$host_os" in | ||
593 | aix3*) | ||
594 | + library_names_spec='$libname.a' | ||
595 | ;; | ||
596 | aix4* | aix5*) | ||
597 | + library_names_spec='$libname$shrext' | ||
598 | ;; | ||
599 | amigaos*) | ||
600 | + library_names_spec='$libname.a' | ||
601 | ;; | ||
602 | beos*) | ||
603 | + library_names_spec='$libname$shrext' | ||
604 | ;; | ||
605 | bsdi[45]*) | ||
606 | + library_names_spec='$libname$shrext' | ||
607 | ;; | ||
608 | cygwin* | mingw* | pw32*) | ||
609 | shrext=.dll | ||
610 | + library_names_spec='$libname.dll.a $libname.lib' | ||
611 | ;; | ||
612 | darwin* | rhapsody*) | ||
613 | shrext=.dylib | ||
614 | + library_names_spec='$libname$shrext' | ||
615 | ;; | ||
616 | dgux*) | ||
617 | + library_names_spec='$libname$shrext' | ||
618 | ;; | ||
619 | freebsd1*) | ||
620 | ;; | ||
621 | - kfreebsd*-gnu) | ||
622 | - ;; | ||
623 | freebsd* | dragonfly*) | ||
624 | + case "$host_os" in | ||
625 | + freebsd[123]*) | ||
626 | + library_names_spec='$libname$shrext$versuffix' ;; | ||
627 | + *) | ||
628 | + library_names_spec='$libname$shrext' ;; | ||
629 | + esac | ||
630 | ;; | ||
631 | gnu*) | ||
632 | + library_names_spec='$libname$shrext' | ||
633 | ;; | ||
634 | hpux9* | hpux10* | hpux11*) | ||
635 | case $host_cpu in | ||
636 | @@ -528,10 +576,13 @@ | ||
637 | shrext=.sl | ||
638 | ;; | ||
639 | esac | ||
640 | + library_names_spec='$libname$shrext' | ||
641 | ;; | ||
642 | - interix3*) | ||
643 | + interix[3-9]*) | ||
644 | + library_names_spec='$libname$shrext' | ||
645 | ;; | ||
646 | irix5* | irix6* | nonstopux*) | ||
647 | + library_names_spec='$libname$shrext' | ||
648 | case "$host_os" in | ||
649 | irix5* | nonstopux*) | ||
650 | libsuff= shlibsuff= | ||
651 | @@ -548,33 +599,46 @@ | ||
652 | ;; | ||
653 | linux*oldld* | linux*aout* | linux*coff*) | ||
654 | ;; | ||
655 | - linux*) | ||
656 | + linux* | k*bsd*-gnu) | ||
657 | + library_names_spec='$libname$shrext' | ||
658 | ;; | ||
659 | knetbsd*-gnu) | ||
660 | + library_names_spec='$libname$shrext' | ||
661 | ;; | ||
662 | netbsd*) | ||
663 | + library_names_spec='$libname$shrext' | ||
664 | ;; | ||
665 | newsos6) | ||
666 | + library_names_spec='$libname$shrext' | ||
667 | ;; | ||
668 | nto-qnx*) | ||
669 | + library_names_spec='$libname$shrext' | ||
670 | ;; | ||
671 | openbsd*) | ||
672 | + library_names_spec='$libname$shrext$versuffix' | ||
673 | ;; | ||
674 | os2*) | ||
675 | libname_spec='$name' | ||
676 | shrext=.dll | ||
677 | + library_names_spec='$libname.a' | ||
678 | ;; | ||
679 | osf3* | osf4* | osf5*) | ||
680 | + library_names_spec='$libname$shrext' | ||
681 | ;; | ||
682 | solaris*) | ||
683 | + library_names_spec='$libname$shrext' | ||
684 | ;; | ||
685 | sunos4*) | ||
686 | + library_names_spec='$libname$shrext$versuffix' | ||
687 | ;; | ||
688 | sysv4 | sysv4.3*) | ||
689 | + library_names_spec='$libname$shrext' | ||
690 | ;; | ||
691 | sysv4*MP*) | ||
692 | + library_names_spec='$libname$shrext' | ||
693 | ;; | ||
694 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
695 | + library_names_spec='$libname$shrext' | ||
696 | ;; | ||
697 | uts4*) | ||
698 | ;; | ||
699 | @@ -583,6 +647,8 @@ | ||
700 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
701 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
702 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` | ||
703 | +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
704 | +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
705 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
706 | |||
707 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF | ||
708 | @@ -596,6 +662,12 @@ | ||
709 | # Shared library suffix (normally "so"). | ||
710 | shlibext="$shlibext" | ||
711 | |||
712 | +# Format of library name prefix. | ||
713 | +libname_spec="$escaped_libname_spec" | ||
714 | + | ||
715 | +# Library names that the linker finds when passed -lNAME. | ||
716 | +library_names_spec="$escaped_library_names_spec" | ||
717 | + | ||
718 | # Flag to hardcode \$libdir into a binary during linking. | ||
719 | # This must work even if \$libdir does not exist. | ||
720 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" | ||
diff --git a/meta/recipes-core/gettext/gettext-0.18.3.2/parallel.patch b/meta/recipes-core/gettext/gettext-0.18.3.2/parallel.patch new file mode 100644 index 0000000000..f2c567d188 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.18.3.2/parallel.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | instal libgettextlib.a before removing it | ||
2 | |||
3 | In a multiple job build, Makefile can simultaneously | ||
4 | be installing and removing libgettextlib.a. We serialize | ||
5 | the operations. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Joe Slater <jslater@windriver.com> | ||
10 | |||
11 | --- a/gettext-tools/gnulib-lib/Makefile.am | ||
12 | +++ b/gettext-tools/gnulib-lib/Makefile.am | ||
13 | @@ -57,6 +57,10 @@ endif | ||
14 | # Rules generated and collected by gnulib-tool. | ||
15 | include Makefile.gnulib | ||
16 | |||
17 | +# defined in Makefile.gnulib but missing this dependency | ||
18 | +# | ||
19 | +install-exec-clean: install-libLTLIBRARIES | ||
20 | + | ||
21 | # Which classes to export from the shared library. | ||
22 | MOOPPFLAGS += --dllexport=styled_ostream | ||
23 | |||
24 | --- a/gettext-tools/src/Makefile.am | ||
25 | +++ b/gettext-tools/src/Makefile.am | ||
26 | @@ -229,8 +229,8 @@ libgettextsrc_la_LDFLAGS += -Wl,--export | ||
27 | endif | ||
28 | |||
29 | # No need to install libgettextsrc.a, except on AIX. | ||
30 | -install-exec-local: install-libLTLIBRARIES install-exec-clean | ||
31 | -install-exec-clean: | ||
32 | +install-exec-local: install-exec-clean | ||
33 | +install-exec-clean: install-libLTLIBRARIES | ||
34 | case "@host_os@" in \ | ||
35 | aix*) ;; \ | ||
36 | *) $(RM) $(DESTDIR)$(libdir)/libgettextsrc.a ;; \ | ||
diff --git a/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/COPYING b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/COPYING new file mode 100644 index 0000000000..3485c5a2cb --- /dev/null +++ b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/COPYING | |||
@@ -0,0 +1,4 @@ | |||
1 | dnl Copyright (C) 1997-2010 Free Software Foundation, Inc. | ||
2 | dnl This file is free software; the Free Software Foundation | ||
3 | dnl gives unlimited permission to copy and/or distribute it, | ||
4 | dnl with or without modifications, as long as this notice is preserved. | ||
diff --git a/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/Makefile.in.in b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/Makefile.in.in new file mode 100644 index 0000000000..fabdc76c9c --- /dev/null +++ b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/Makefile.in.in | |||
@@ -0,0 +1,454 @@ | |||
1 | # Makefile for PO directory in any package using GNU gettext. | ||
2 | # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu> | ||
3 | # | ||
4 | # This file can be copied and used freely without restrictions. It can | ||
5 | # be used in projects which are not available under the GNU General Public | ||
6 | # License but which still want to provide support for the GNU gettext | ||
7 | # functionality. | ||
8 | # Please note that the actual code of GNU gettext is covered by the GNU | ||
9 | # General Public License and is *not* in the public domain. | ||
10 | # | ||
11 | # Origin: gettext-0.18.3 | ||
12 | GETTEXT_MACRO_VERSION = 0.18 | ||
13 | |||
14 | PACKAGE = @PACKAGE@ | ||
15 | VERSION = @VERSION@ | ||
16 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
17 | |||
18 | SED = @SED@ | ||
19 | SHELL = /bin/sh | ||
20 | @SET_MAKE@ | ||
21 | |||
22 | srcdir = @srcdir@ | ||
23 | top_srcdir = @top_srcdir@ | ||
24 | VPATH = @srcdir@ | ||
25 | |||
26 | prefix = @prefix@ | ||
27 | exec_prefix = @exec_prefix@ | ||
28 | datarootdir = @datarootdir@ | ||
29 | datadir = @datadir@ | ||
30 | localedir = @localedir@ | ||
31 | gettextsrcdir = $(datadir)/gettext/po | ||
32 | |||
33 | INSTALL = @INSTALL@ | ||
34 | INSTALL_DATA = @INSTALL_DATA@ | ||
35 | |||
36 | # We use $(mkdir_p). | ||
37 | # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as | ||
38 | # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, | ||
39 | # @install_sh@ does not start with $(SHELL), so we add it. | ||
40 | # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined | ||
41 | # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake | ||
42 | # versions, $(mkinstalldirs) and $(install_sh) are unused. | ||
43 | mkinstalldirs = $(SHELL) @install_sh@ -d | ||
44 | install_sh = $(SHELL) @install_sh@ | ||
45 | MKDIR_P = @MKDIR_P@ | ||
46 | mkdir_p = @mkdir_p@ | ||
47 | |||
48 | GMSGFMT_ = @GMSGFMT@ | ||
49 | GMSGFMT_no = @GMSGFMT@ | ||
50 | GMSGFMT_yes = @GMSGFMT_015@ | ||
51 | GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) | ||
52 | MSGFMT_ = @MSGFMT@ | ||
53 | MSGFMT_no = @MSGFMT@ | ||
54 | MSGFMT_yes = @MSGFMT_015@ | ||
55 | MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) | ||
56 | XGETTEXT_ = @XGETTEXT@ | ||
57 | XGETTEXT_no = @XGETTEXT@ | ||
58 | XGETTEXT_yes = @XGETTEXT_015@ | ||
59 | XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) | ||
60 | MSGMERGE = msgmerge | ||
61 | MSGMERGE_UPDATE = @MSGMERGE@ --update | ||
62 | MSGINIT = msginit | ||
63 | MSGCONV = msgconv | ||
64 | MSGFILTER = msgfilter | ||
65 | |||
66 | POFILES = @POFILES@ | ||
67 | GMOFILES = @GMOFILES@ | ||
68 | UPDATEPOFILES = @UPDATEPOFILES@ | ||
69 | DUMMYPOFILES = @DUMMYPOFILES@ | ||
70 | DISTFILES.common = Makefile.in.in remove-potcdate.sin \ | ||
71 | $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) | ||
72 | DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ | ||
73 | $(POFILES) $(GMOFILES) \ | ||
74 | $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) | ||
75 | |||
76 | POTFILES = \ | ||
77 | |||
78 | CATALOGS = @CATALOGS@ | ||
79 | |||
80 | # Makevars gets inserted here. (Don't remove this line!) | ||
81 | |||
82 | .SUFFIXES: | ||
83 | .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update | ||
84 | |||
85 | .po.mo: | ||
86 | @echo "$(MSGFMT) -c -o $@ $<"; \ | ||
87 | $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ | ||
88 | |||
89 | .po.gmo: | ||
90 | @lang=`echo $* | sed -e 's,.*/,,'`; \ | ||
91 | test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ | ||
92 | echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ | ||
93 | cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo | ||
94 | |||
95 | .sin.sed: | ||
96 | sed -e '/^#/d' $< > t-$@ | ||
97 | mv t-$@ $@ | ||
98 | |||
99 | |||
100 | all: all-@USE_NLS@ | ||
101 | |||
102 | all-yes: stamp-po | ||
103 | all-no: | ||
104 | |||
105 | # Ensure that the gettext macros and this Makefile.in.in are in sync. | ||
106 | CHECK_MACRO_VERSION = \ | ||
107 | test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ | ||
108 | || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ | ||
109 | exit 1; \ | ||
110 | } | ||
111 | |||
112 | # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no | ||
113 | # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because | ||
114 | # we don't want to bother translators with empty POT files). We assume that | ||
115 | # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. | ||
116 | # In this case, stamp-po is a nop (i.e. a phony target). | ||
117 | |||
118 | # stamp-po is a timestamp denoting the last time at which the CATALOGS have | ||
119 | # been loosely updated. Its purpose is that when a developer or translator | ||
120 | # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, | ||
121 | # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent | ||
122 | # invocations of "make" will do nothing. This timestamp would not be necessary | ||
123 | # if updating the $(CATALOGS) would always touch them; however, the rule for | ||
124 | # $(POFILES) has been designed to not touch files that don't need to be | ||
125 | # changed. | ||
126 | stamp-po: $(srcdir)/$(DOMAIN).pot | ||
127 | @$(CHECK_MACRO_VERSION) | ||
128 | test ! -f $(srcdir)/$(DOMAIN).pot || \ | ||
129 | test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) | ||
130 | @test ! -f $(srcdir)/$(DOMAIN).pot || { \ | ||
131 | echo "touch stamp-po" && \ | ||
132 | echo timestamp > stamp-poT && \ | ||
133 | mv stamp-poT stamp-po; \ | ||
134 | } | ||
135 | |||
136 | # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', | ||
137 | # otherwise packages like GCC can not be built if only parts of the source | ||
138 | # have been downloaded. | ||
139 | |||
140 | # This target rebuilds $(DOMAIN).pot; it is an expensive operation. | ||
141 | # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. | ||
142 | # The determination of whether the package xyz is a GNU one is based on the | ||
143 | # heuristic whether some file in the top level directory mentions "GNU xyz". | ||
144 | # If GNU 'find' is available, we avoid grepping through monster files. | ||
145 | $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed | ||
146 | if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \ | ||
147 | LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \ | ||
148 | else \ | ||
149 | LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \ | ||
150 | fi; \ | ||
151 | } | grep -v 'libtool:' >/dev/null; then \ | ||
152 | package_gnu='GNU '; \ | ||
153 | else \ | ||
154 | package_gnu=''; \ | ||
155 | fi; \ | ||
156 | if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ | ||
157 | msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ | ||
158 | else \ | ||
159 | msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ | ||
160 | fi; \ | ||
161 | case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ | ||
162 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ | ||
163 | $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ | ||
164 | --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ | ||
165 | --files-from=$(srcdir)/POTFILES.in \ | ||
166 | --copyright-holder='$(COPYRIGHT_HOLDER)' \ | ||
167 | --msgid-bugs-address="$$msgid_bugs_address" \ | ||
168 | ;; \ | ||
169 | *) \ | ||
170 | $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ | ||
171 | --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ | ||
172 | --files-from=$(srcdir)/POTFILES.in \ | ||
173 | --copyright-holder='$(COPYRIGHT_HOLDER)' \ | ||
174 | --package-name="$${package_gnu}@PACKAGE@" \ | ||
175 | --package-version='@VERSION@' \ | ||
176 | --msgid-bugs-address="$$msgid_bugs_address" \ | ||
177 | ;; \ | ||
178 | esac | ||
179 | test ! -f $(DOMAIN).po || { \ | ||
180 | if test -f $(srcdir)/$(DOMAIN).pot; then \ | ||
181 | sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ | ||
182 | sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ | ||
183 | if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ | ||
184 | rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ | ||
185 | else \ | ||
186 | rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ | ||
187 | mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ | ||
188 | fi; \ | ||
189 | else \ | ||
190 | mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ | ||
191 | fi; \ | ||
192 | } | ||
193 | |||
194 | # This rule has no dependencies: we don't need to update $(DOMAIN).pot at | ||
195 | # every "make" invocation, only create it when it is missing. | ||
196 | # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. | ||
197 | $(srcdir)/$(DOMAIN).pot: | ||
198 | $(MAKE) $(DOMAIN).pot-update | ||
199 | |||
200 | # This target rebuilds a PO file if $(DOMAIN).pot has changed. | ||
201 | # Note that a PO file is not touched if it doesn't need to be changed. | ||
202 | $(POFILES): $(srcdir)/$(DOMAIN).pot | ||
203 | @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ | ||
204 | if test -f "$(srcdir)/$${lang}.po"; then \ | ||
205 | test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ | ||
206 | echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ | ||
207 | cd $(srcdir) \ | ||
208 | && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ | ||
209 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ | ||
210 | $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ | ||
211 | *) \ | ||
212 | $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ | ||
213 | esac; \ | ||
214 | }; \ | ||
215 | else \ | ||
216 | $(MAKE) $${lang}.po-create; \ | ||
217 | fi | ||
218 | |||
219 | |||
220 | install: install-exec install-data | ||
221 | install-exec: | ||
222 | install-data: install-data-@USE_NLS@ | ||
223 | if test "$(PACKAGE)" = "gettext-tools"; then \ | ||
224 | $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ | ||
225 | for file in $(DISTFILES.common) Makevars.template; do \ | ||
226 | $(INSTALL_DATA) $(srcdir)/$$file \ | ||
227 | $(DESTDIR)$(gettextsrcdir)/$$file; \ | ||
228 | done; \ | ||
229 | for file in Makevars; do \ | ||
230 | rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ | ||
231 | done; \ | ||
232 | else \ | ||
233 | : ; \ | ||
234 | fi | ||
235 | install-data-no: all | ||
236 | install-data-yes: all | ||
237 | @catalogs='$(CATALOGS)'; \ | ||
238 | for cat in $$catalogs; do \ | ||
239 | cat=`basename $$cat`; \ | ||
240 | lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ | ||
241 | dir=$(localedir)/$$lang/LC_MESSAGES; \ | ||
242 | $(mkdir_p) $(DESTDIR)$$dir; \ | ||
243 | if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ | ||
244 | $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ | ||
245 | echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ | ||
246 | for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ | ||
247 | if test -n "$$lc"; then \ | ||
248 | if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ | ||
249 | link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ | ||
250 | mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ | ||
251 | mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ | ||
252 | (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ | ||
253 | for file in *; do \ | ||
254 | if test -f $$file; then \ | ||
255 | ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ | ||
256 | fi; \ | ||
257 | done); \ | ||
258 | rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ | ||
259 | else \ | ||
260 | if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ | ||
261 | :; \ | ||
262 | else \ | ||
263 | rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ | ||
264 | mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ | ||
265 | fi; \ | ||
266 | fi; \ | ||
267 | rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ | ||
268 | ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ | ||
269 | ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ | ||
270 | cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ | ||
271 | echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ | ||
272 | fi; \ | ||
273 | done; \ | ||
274 | done | ||
275 | |||
276 | install-strip: install | ||
277 | |||
278 | installdirs: installdirs-exec installdirs-data | ||
279 | installdirs-exec: | ||
280 | installdirs-data: installdirs-data-@USE_NLS@ | ||
281 | if test "$(PACKAGE)" = "gettext-tools"; then \ | ||
282 | $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ | ||
283 | else \ | ||
284 | : ; \ | ||
285 | fi | ||
286 | installdirs-data-no: | ||
287 | installdirs-data-yes: | ||
288 | @catalogs='$(CATALOGS)'; \ | ||
289 | for cat in $$catalogs; do \ | ||
290 | cat=`basename $$cat`; \ | ||
291 | lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ | ||
292 | dir=$(localedir)/$$lang/LC_MESSAGES; \ | ||
293 | $(mkdir_p) $(DESTDIR)$$dir; \ | ||
294 | for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ | ||
295 | if test -n "$$lc"; then \ | ||
296 | if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ | ||
297 | link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ | ||
298 | mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ | ||
299 | mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ | ||
300 | (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ | ||
301 | for file in *; do \ | ||
302 | if test -f $$file; then \ | ||
303 | ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ | ||
304 | fi; \ | ||
305 | done); \ | ||
306 | rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ | ||
307 | else \ | ||
308 | if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ | ||
309 | :; \ | ||
310 | else \ | ||
311 | rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ | ||
312 | mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ | ||
313 | fi; \ | ||
314 | fi; \ | ||
315 | fi; \ | ||
316 | done; \ | ||
317 | done | ||
318 | |||
319 | # Define this as empty until I found a useful application. | ||
320 | installcheck: | ||
321 | |||
322 | uninstall: uninstall-exec uninstall-data | ||
323 | uninstall-exec: | ||
324 | uninstall-data: uninstall-data-@USE_NLS@ | ||
325 | if test "$(PACKAGE)" = "gettext-tools"; then \ | ||
326 | for file in $(DISTFILES.common) Makevars.template; do \ | ||
327 | rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ | ||
328 | done; \ | ||
329 | else \ | ||
330 | : ; \ | ||
331 | fi | ||
332 | uninstall-data-no: | ||
333 | uninstall-data-yes: | ||
334 | catalogs='$(CATALOGS)'; \ | ||
335 | for cat in $$catalogs; do \ | ||
336 | cat=`basename $$cat`; \ | ||
337 | lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ | ||
338 | for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ | ||
339 | rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ | ||
340 | done; \ | ||
341 | done | ||
342 | |||
343 | check: all | ||
344 | |||
345 | info dvi ps pdf html tags TAGS ctags CTAGS ID: | ||
346 | |||
347 | mostlyclean: | ||
348 | rm -f remove-potcdate.sed | ||
349 | rm -f stamp-poT | ||
350 | rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po | ||
351 | rm -fr *.o | ||
352 | |||
353 | clean: mostlyclean | ||
354 | |||
355 | distclean: clean | ||
356 | rm -f Makefile Makefile.in POTFILES *.mo | ||
357 | |||
358 | maintainer-clean: distclean | ||
359 | @echo "This command is intended for maintainers to use;" | ||
360 | @echo "it deletes files that may require special tools to rebuild." | ||
361 | rm -f stamp-po $(GMOFILES) | ||
362 | |||
363 | distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | ||
364 | dist distdir: | ||
365 | $(MAKE) update-po | ||
366 | @$(MAKE) dist2 | ||
367 | # This is a separate target because 'update-po' must be executed before. | ||
368 | dist2: stamp-po $(DISTFILES) | ||
369 | dists="$(DISTFILES)"; \ | ||
370 | if test "$(PACKAGE)" = "gettext-tools"; then \ | ||
371 | dists="$$dists Makevars.template"; \ | ||
372 | fi; \ | ||
373 | if test -f $(srcdir)/$(DOMAIN).pot; then \ | ||
374 | dists="$$dists $(DOMAIN).pot stamp-po"; \ | ||
375 | fi; \ | ||
376 | if test -f $(srcdir)/ChangeLog; then \ | ||
377 | dists="$$dists ChangeLog"; \ | ||
378 | fi; \ | ||
379 | for i in 0 1 2 3 4 5 6 7 8 9; do \ | ||
380 | if test -f $(srcdir)/ChangeLog.$$i; then \ | ||
381 | dists="$$dists ChangeLog.$$i"; \ | ||
382 | fi; \ | ||
383 | done; \ | ||
384 | if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ | ||
385 | for file in $$dists; do \ | ||
386 | if test -f $$file; then \ | ||
387 | cp -p $$file $(distdir) || exit 1; \ | ||
388 | else \ | ||
389 | cp -p $(srcdir)/$$file $(distdir) || exit 1; \ | ||
390 | fi; \ | ||
391 | done | ||
392 | |||
393 | update-po: Makefile | ||
394 | $(MAKE) $(DOMAIN).pot-update | ||
395 | test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) | ||
396 | $(MAKE) update-gmo | ||
397 | |||
398 | # General rule for creating PO files. | ||
399 | |||
400 | .nop.po-create: | ||
401 | @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ | ||
402 | echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ | ||
403 | exit 1 | ||
404 | |||
405 | # General rule for updating PO files. | ||
406 | |||
407 | .nop.po-update: | ||
408 | @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ | ||
409 | if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ | ||
410 | tmpdir=`pwd`; \ | ||
411 | echo "$$lang:"; \ | ||
412 | test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ | ||
413 | echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ | ||
414 | cd $(srcdir); \ | ||
415 | if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ | ||
416 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ | ||
417 | $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ | ||
418 | *) \ | ||
419 | $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ | ||
420 | esac; \ | ||
421 | }; then \ | ||
422 | if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ | ||
423 | rm -f $$tmpdir/$$lang.new.po; \ | ||
424 | else \ | ||
425 | if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ | ||
426 | :; \ | ||
427 | else \ | ||
428 | echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ | ||
429 | exit 1; \ | ||
430 | fi; \ | ||
431 | fi; \ | ||
432 | else \ | ||
433 | echo "msgmerge for $$lang.po failed!" 1>&2; \ | ||
434 | rm -f $$tmpdir/$$lang.new.po; \ | ||
435 | fi | ||
436 | |||
437 | $(DUMMYPOFILES): | ||
438 | |||
439 | update-gmo: Makefile $(GMOFILES) | ||
440 | @: | ||
441 | |||
442 | # Recreate Makefile by invoking config.status. Explicitly invoke the shell, | ||
443 | # because execution permission bits may not work on the current file system. | ||
444 | # Use @SHELL@, which is the shell determined by autoconf for the use by its | ||
445 | # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. | ||
446 | Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ | ||
447 | cd $(top_builddir) \ | ||
448 | && @SHELL@ ./config.status $(subdir)/$@.in po-directories | ||
449 | |||
450 | force: | ||
451 | |||
452 | # Tell versions [3.59,3.63) of GNU make not to export all variables. | ||
453 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
454 | .NOEXPORT: | ||
diff --git a/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/Makevars.template b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/Makevars.template new file mode 100644 index 0000000000..4a9ff7d231 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/Makevars.template | |||
@@ -0,0 +1,53 @@ | |||
1 | # Makefile variables for PO directory in any package using GNU gettext. | ||
2 | |||
3 | # Usually the message domain is the same as the package name. | ||
4 | DOMAIN = $(PACKAGE) | ||
5 | |||
6 | # These two variables depend on the location of this directory. | ||
7 | subdir = po | ||
8 | top_builddir = .. | ||
9 | |||
10 | # These options get passed to xgettext. | ||
11 | XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ | ||
12 | |||
13 | # This is the copyright holder that gets inserted into the header of the | ||
14 | # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding | ||
15 | # package. (Note that the msgstr strings, extracted from the package's | ||
16 | # sources, belong to the copyright holder of the package.) Translators are | ||
17 | # expected to transfer the copyright for their translations to this person | ||
18 | # or entity, or to disclaim their copyright. The empty string stands for | ||
19 | # the public domain; in this case the translators are expected to disclaim | ||
20 | # their copyright. | ||
21 | COPYRIGHT_HOLDER = Free Software Foundation, Inc. | ||
22 | |||
23 | # This is the email address or URL to which the translators shall report | ||
24 | # bugs in the untranslated strings: | ||
25 | # - Strings which are not entire sentences, see the maintainer guidelines | ||
26 | # in the GNU gettext documentation, section 'Preparing Strings'. | ||
27 | # - Strings which use unclear terms or require additional context to be | ||
28 | # understood. | ||
29 | # - Strings which make invalid assumptions about notation of date, time or | ||
30 | # money. | ||
31 | # - Pluralisation problems. | ||
32 | # - Incorrect English spelling. | ||
33 | # - Incorrect formatting. | ||
34 | # It can be your email address, or a mailing list address where translators | ||
35 | # can write to without being subscribed, or the URL of a web page through | ||
36 | # which the translators can contact you. | ||
37 | MSGID_BUGS_ADDRESS = | ||
38 | |||
39 | # This is the list of locale categories, beyond LC_MESSAGES, for which the | ||
40 | # message catalogs shall be used. It is usually empty. | ||
41 | EXTRA_LOCALE_CATEGORIES = | ||
42 | |||
43 | # This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' | ||
44 | # context. Possible values are "yes" and "no". Set this to yes if the | ||
45 | # package uses functions taking also a message context, like pgettext(), or | ||
46 | # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. | ||
47 | USE_MSGCTXT = no | ||
48 | |||
49 | # These options get passed to msgmerge. | ||
50 | # Useful options are in particular: | ||
51 | # --previous to keep previous msgids of translated messages, | ||
52 | # --quiet to reduce the verbosity. | ||
53 | MSGMERGE_OPTIONS = | ||
diff --git a/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/aclocal.tgz b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/aclocal.tgz new file mode 100644 index 0000000000..e0335a3d1c --- /dev/null +++ b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/aclocal.tgz | |||
Binary files differ | |||
diff --git a/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/config.rpath b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/config.rpath new file mode 100755 index 0000000000..c38b914d6b --- /dev/null +++ b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/config.rpath | |||
@@ -0,0 +1,690 @@ | |||
1 | #! /bin/sh | ||
2 | # Output a system dependent set of variables, describing how to set the | ||
3 | # run time search path of shared libraries in an executable. | ||
4 | # | ||
5 | # Copyright 1996-2013 Free Software Foundation, Inc. | ||
6 | # Taken from GNU libtool, 2001 | ||
7 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
8 | # | ||
9 | # This file is free software; the Free Software Foundation gives | ||
10 | # unlimited permission to copy and/or distribute it, with or without | ||
11 | # modifications, as long as this notice is preserved. | ||
12 | # | ||
13 | # The first argument passed to this file is the canonical host specification, | ||
14 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | ||
15 | # or | ||
16 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | ||
17 | # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld | ||
18 | # should be set by the caller. | ||
19 | # | ||
20 | # The set of defined variables is at the end of this script. | ||
21 | |||
22 | # Known limitations: | ||
23 | # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer | ||
24 | # than 256 bytes, otherwise the compiler driver will dump core. The only | ||
25 | # known workaround is to choose shorter directory names for the build | ||
26 | # directory and/or the installation directory. | ||
27 | |||
28 | # All known linkers require a '.a' archive for static linking (except MSVC, | ||
29 | # which needs '.lib'). | ||
30 | libext=a | ||
31 | shrext=.so | ||
32 | |||
33 | host="$1" | ||
34 | host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
35 | host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
36 | host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
37 | |||
38 | # Code taken from libtool.m4's _LT_CC_BASENAME. | ||
39 | |||
40 | for cc_temp in $CC""; do | ||
41 | case $cc_temp in | ||
42 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
43 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
44 | \-*) ;; | ||
45 | *) break;; | ||
46 | esac | ||
47 | done | ||
48 | cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | ||
49 | |||
50 | # Code taken from libtool.m4's _LT_COMPILER_PIC. | ||
51 | |||
52 | wl= | ||
53 | if test "$GCC" = yes; then | ||
54 | wl='-Wl,' | ||
55 | else | ||
56 | case "$host_os" in | ||
57 | aix*) | ||
58 | wl='-Wl,' | ||
59 | ;; | ||
60 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
61 | ;; | ||
62 | hpux9* | hpux10* | hpux11*) | ||
63 | wl='-Wl,' | ||
64 | ;; | ||
65 | irix5* | irix6* | nonstopux*) | ||
66 | wl='-Wl,' | ||
67 | ;; | ||
68 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
69 | case $cc_basename in | ||
70 | ecc*) | ||
71 | wl='-Wl,' | ||
72 | ;; | ||
73 | icc* | ifort*) | ||
74 | wl='-Wl,' | ||
75 | ;; | ||
76 | lf95*) | ||
77 | wl='-Wl,' | ||
78 | ;; | ||
79 | nagfor*) | ||
80 | wl='-Wl,-Wl,,' | ||
81 | ;; | ||
82 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
83 | wl='-Wl,' | ||
84 | ;; | ||
85 | ccc*) | ||
86 | wl='-Wl,' | ||
87 | ;; | ||
88 | xl* | bgxl* | bgf* | mpixl*) | ||
89 | wl='-Wl,' | ||
90 | ;; | ||
91 | como) | ||
92 | wl='-lopt=' | ||
93 | ;; | ||
94 | *) | ||
95 | case `$CC -V 2>&1 | sed 5q` in | ||
96 | *Sun\ F* | *Sun*Fortran*) | ||
97 | wl= | ||
98 | ;; | ||
99 | *Sun\ C*) | ||
100 | wl='-Wl,' | ||
101 | ;; | ||
102 | esac | ||
103 | ;; | ||
104 | esac | ||
105 | ;; | ||
106 | newsos6) | ||
107 | ;; | ||
108 | *nto* | *qnx*) | ||
109 | ;; | ||
110 | osf3* | osf4* | osf5*) | ||
111 | wl='-Wl,' | ||
112 | ;; | ||
113 | rdos*) | ||
114 | ;; | ||
115 | solaris*) | ||
116 | case $cc_basename in | ||
117 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
118 | wl='-Qoption ld ' | ||
119 | ;; | ||
120 | *) | ||
121 | wl='-Wl,' | ||
122 | ;; | ||
123 | esac | ||
124 | ;; | ||
125 | sunos4*) | ||
126 | wl='-Qoption ld ' | ||
127 | ;; | ||
128 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
129 | wl='-Wl,' | ||
130 | ;; | ||
131 | sysv4*MP*) | ||
132 | ;; | ||
133 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
134 | wl='-Wl,' | ||
135 | ;; | ||
136 | unicos*) | ||
137 | wl='-Wl,' | ||
138 | ;; | ||
139 | uts4*) | ||
140 | ;; | ||
141 | esac | ||
142 | fi | ||
143 | |||
144 | # Code taken from libtool.m4's _LT_LINKER_SHLIBS. | ||
145 | |||
146 | hardcode_libdir_flag_spec= | ||
147 | hardcode_libdir_separator= | ||
148 | hardcode_direct=no | ||
149 | hardcode_minus_L=no | ||
150 | |||
151 | case "$host_os" in | ||
152 | cygwin* | mingw* | pw32* | cegcc*) | ||
153 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
154 | # When not using gcc, we currently assume that we are using | ||
155 | # Microsoft Visual C++. | ||
156 | if test "$GCC" != yes; then | ||
157 | with_gnu_ld=no | ||
158 | fi | ||
159 | ;; | ||
160 | interix*) | ||
161 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
162 | with_gnu_ld=yes | ||
163 | ;; | ||
164 | openbsd*) | ||
165 | with_gnu_ld=no | ||
166 | ;; | ||
167 | esac | ||
168 | |||
169 | ld_shlibs=yes | ||
170 | if test "$with_gnu_ld" = yes; then | ||
171 | # Set some defaults for GNU ld with shared library support. These | ||
172 | # are reset later if shared libraries are not supported. Putting them | ||
173 | # here allows them to be overridden if necessary. | ||
174 | # Unlike libtool, we use -rpath here, not --rpath, since the documented | ||
175 | # option of GNU ld is called -rpath, not --rpath. | ||
176 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
177 | case "$host_os" in | ||
178 | aix[3-9]*) | ||
179 | # On AIX/PPC, the GNU linker is very broken | ||
180 | if test "$host_cpu" != ia64; then | ||
181 | ld_shlibs=no | ||
182 | fi | ||
183 | ;; | ||
184 | amigaos*) | ||
185 | case "$host_cpu" in | ||
186 | powerpc) | ||
187 | ;; | ||
188 | m68k) | ||
189 | hardcode_libdir_flag_spec='-L$libdir' | ||
190 | hardcode_minus_L=yes | ||
191 | ;; | ||
192 | esac | ||
193 | ;; | ||
194 | beos*) | ||
195 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
196 | : | ||
197 | else | ||
198 | ld_shlibs=no | ||
199 | fi | ||
200 | ;; | ||
201 | cygwin* | mingw* | pw32* | cegcc*) | ||
202 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
203 | # no search path for DLLs. | ||
204 | hardcode_libdir_flag_spec='-L$libdir' | ||
205 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
206 | : | ||
207 | else | ||
208 | ld_shlibs=no | ||
209 | fi | ||
210 | ;; | ||
211 | haiku*) | ||
212 | ;; | ||
213 | interix[3-9]*) | ||
214 | hardcode_direct=no | ||
215 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
216 | ;; | ||
217 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | ||
218 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
219 | : | ||
220 | else | ||
221 | ld_shlibs=no | ||
222 | fi | ||
223 | ;; | ||
224 | netbsd*) | ||
225 | ;; | ||
226 | solaris*) | ||
227 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
228 | ld_shlibs=no | ||
229 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
230 | : | ||
231 | else | ||
232 | ld_shlibs=no | ||
233 | fi | ||
234 | ;; | ||
235 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
236 | case `$LD -v 2>&1` in | ||
237 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
238 | ld_shlibs=no | ||
239 | ;; | ||
240 | *) | ||
241 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
242 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
243 | else | ||
244 | ld_shlibs=no | ||
245 | fi | ||
246 | ;; | ||
247 | esac | ||
248 | ;; | ||
249 | sunos4*) | ||
250 | hardcode_direct=yes | ||
251 | ;; | ||
252 | *) | ||
253 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
254 | : | ||
255 | else | ||
256 | ld_shlibs=no | ||
257 | fi | ||
258 | ;; | ||
259 | esac | ||
260 | if test "$ld_shlibs" = no; then | ||
261 | hardcode_libdir_flag_spec= | ||
262 | fi | ||
263 | else | ||
264 | case "$host_os" in | ||
265 | aix3*) | ||
266 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
267 | # are no directories specified by -L. | ||
268 | hardcode_minus_L=yes | ||
269 | if test "$GCC" = yes; then | ||
270 | # Neither direct hardcoding nor static linking is supported with a | ||
271 | # broken collect2. | ||
272 | hardcode_direct=unsupported | ||
273 | fi | ||
274 | ;; | ||
275 | aix[4-9]*) | ||
276 | if test "$host_cpu" = ia64; then | ||
277 | # On IA64, the linker does run time linking by default, so we don't | ||
278 | # have to do anything special. | ||
279 | aix_use_runtimelinking=no | ||
280 | else | ||
281 | aix_use_runtimelinking=no | ||
282 | # Test if we are trying to use run time linking or normal | ||
283 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
284 | # need to do runtime linking. | ||
285 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
286 | for ld_flag in $LDFLAGS; do | ||
287 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
288 | aix_use_runtimelinking=yes | ||
289 | break | ||
290 | fi | ||
291 | done | ||
292 | ;; | ||
293 | esac | ||
294 | fi | ||
295 | hardcode_direct=yes | ||
296 | hardcode_libdir_separator=':' | ||
297 | if test "$GCC" = yes; then | ||
298 | case $host_os in aix4.[012]|aix4.[012].*) | ||
299 | collect2name=`${CC} -print-prog-name=collect2` | ||
300 | if test -f "$collect2name" && \ | ||
301 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
302 | then | ||
303 | # We have reworked collect2 | ||
304 | : | ||
305 | else | ||
306 | # We have old collect2 | ||
307 | hardcode_direct=unsupported | ||
308 | hardcode_minus_L=yes | ||
309 | hardcode_libdir_flag_spec='-L$libdir' | ||
310 | hardcode_libdir_separator= | ||
311 | fi | ||
312 | ;; | ||
313 | esac | ||
314 | fi | ||
315 | # Begin _LT_AC_SYS_LIBPATH_AIX. | ||
316 | echo 'int main () { return 0; }' > conftest.c | ||
317 | ${CC} ${LDFLAGS} conftest.c -o conftest | ||
318 | aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
319 | }'` | ||
320 | if test -z "$aix_libpath"; then | ||
321 | aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
322 | }'` | ||
323 | fi | ||
324 | if test -z "$aix_libpath"; then | ||
325 | aix_libpath="/usr/lib:/lib" | ||
326 | fi | ||
327 | rm -f conftest.c conftest | ||
328 | # End _LT_AC_SYS_LIBPATH_AIX. | ||
329 | if test "$aix_use_runtimelinking" = yes; then | ||
330 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
331 | else | ||
332 | if test "$host_cpu" = ia64; then | ||
333 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
334 | else | ||
335 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
336 | fi | ||
337 | fi | ||
338 | ;; | ||
339 | amigaos*) | ||
340 | case "$host_cpu" in | ||
341 | powerpc) | ||
342 | ;; | ||
343 | m68k) | ||
344 | hardcode_libdir_flag_spec='-L$libdir' | ||
345 | hardcode_minus_L=yes | ||
346 | ;; | ||
347 | esac | ||
348 | ;; | ||
349 | bsdi[45]*) | ||
350 | ;; | ||
351 | cygwin* | mingw* | pw32* | cegcc*) | ||
352 | # When not using gcc, we currently assume that we are using | ||
353 | # Microsoft Visual C++. | ||
354 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
355 | # no search path for DLLs. | ||
356 | hardcode_libdir_flag_spec=' ' | ||
357 | libext=lib | ||
358 | ;; | ||
359 | darwin* | rhapsody*) | ||
360 | hardcode_direct=no | ||
361 | if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then | ||
362 | : | ||
363 | else | ||
364 | ld_shlibs=no | ||
365 | fi | ||
366 | ;; | ||
367 | dgux*) | ||
368 | hardcode_libdir_flag_spec='-L$libdir' | ||
369 | ;; | ||
370 | freebsd2.2*) | ||
371 | hardcode_libdir_flag_spec='-R$libdir' | ||
372 | hardcode_direct=yes | ||
373 | ;; | ||
374 | freebsd2*) | ||
375 | hardcode_direct=yes | ||
376 | hardcode_minus_L=yes | ||
377 | ;; | ||
378 | freebsd* | dragonfly*) | ||
379 | hardcode_libdir_flag_spec='-R$libdir' | ||
380 | hardcode_direct=yes | ||
381 | ;; | ||
382 | hpux9*) | ||
383 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
384 | hardcode_libdir_separator=: | ||
385 | hardcode_direct=yes | ||
386 | # hardcode_minus_L: Not really in the search PATH, | ||
387 | # but as the default location of the library. | ||
388 | hardcode_minus_L=yes | ||
389 | ;; | ||
390 | hpux10*) | ||
391 | if test "$with_gnu_ld" = no; then | ||
392 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
393 | hardcode_libdir_separator=: | ||
394 | hardcode_direct=yes | ||
395 | # hardcode_minus_L: Not really in the search PATH, | ||
396 | # but as the default location of the library. | ||
397 | hardcode_minus_L=yes | ||
398 | fi | ||
399 | ;; | ||
400 | hpux11*) | ||
401 | if test "$with_gnu_ld" = no; then | ||
402 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
403 | hardcode_libdir_separator=: | ||
404 | case $host_cpu in | ||
405 | hppa*64*|ia64*) | ||
406 | hardcode_direct=no | ||
407 | ;; | ||
408 | *) | ||
409 | hardcode_direct=yes | ||
410 | # hardcode_minus_L: Not really in the search PATH, | ||
411 | # but as the default location of the library. | ||
412 | hardcode_minus_L=yes | ||
413 | ;; | ||
414 | esac | ||
415 | fi | ||
416 | ;; | ||
417 | irix5* | irix6* | nonstopux*) | ||
418 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
419 | hardcode_libdir_separator=: | ||
420 | ;; | ||
421 | netbsd*) | ||
422 | hardcode_libdir_flag_spec='-R$libdir' | ||
423 | hardcode_direct=yes | ||
424 | ;; | ||
425 | newsos6) | ||
426 | hardcode_direct=yes | ||
427 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
428 | hardcode_libdir_separator=: | ||
429 | ;; | ||
430 | *nto* | *qnx*) | ||
431 | ;; | ||
432 | openbsd*) | ||
433 | if test -f /usr/libexec/ld.so; then | ||
434 | hardcode_direct=yes | ||
435 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
436 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
437 | else | ||
438 | case "$host_os" in | ||
439 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
440 | hardcode_libdir_flag_spec='-R$libdir' | ||
441 | ;; | ||
442 | *) | ||
443 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
444 | ;; | ||
445 | esac | ||
446 | fi | ||
447 | else | ||
448 | ld_shlibs=no | ||
449 | fi | ||
450 | ;; | ||
451 | os2*) | ||
452 | hardcode_libdir_flag_spec='-L$libdir' | ||
453 | hardcode_minus_L=yes | ||
454 | ;; | ||
455 | osf3*) | ||
456 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
457 | hardcode_libdir_separator=: | ||
458 | ;; | ||
459 | osf4* | osf5*) | ||
460 | if test "$GCC" = yes; then | ||
461 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
462 | else | ||
463 | # Both cc and cxx compiler support -rpath directly | ||
464 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
465 | fi | ||
466 | hardcode_libdir_separator=: | ||
467 | ;; | ||
468 | solaris*) | ||
469 | hardcode_libdir_flag_spec='-R$libdir' | ||
470 | ;; | ||
471 | sunos4*) | ||
472 | hardcode_libdir_flag_spec='-L$libdir' | ||
473 | hardcode_direct=yes | ||
474 | hardcode_minus_L=yes | ||
475 | ;; | ||
476 | sysv4) | ||
477 | case $host_vendor in | ||
478 | sni) | ||
479 | hardcode_direct=yes # is this really true??? | ||
480 | ;; | ||
481 | siemens) | ||
482 | hardcode_direct=no | ||
483 | ;; | ||
484 | motorola) | ||
485 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
486 | ;; | ||
487 | esac | ||
488 | ;; | ||
489 | sysv4.3*) | ||
490 | ;; | ||
491 | sysv4*MP*) | ||
492 | if test -d /usr/nec; then | ||
493 | ld_shlibs=yes | ||
494 | fi | ||
495 | ;; | ||
496 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
497 | ;; | ||
498 | sysv5* | sco3.2v5* | sco5v6*) | ||
499 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
500 | hardcode_libdir_separator=':' | ||
501 | ;; | ||
502 | uts4*) | ||
503 | hardcode_libdir_flag_spec='-L$libdir' | ||
504 | ;; | ||
505 | *) | ||
506 | ld_shlibs=no | ||
507 | ;; | ||
508 | esac | ||
509 | fi | ||
510 | |||
511 | # Check dynamic linker characteristics | ||
512 | # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. | ||
513 | # Unlike libtool.m4, here we don't care about _all_ names of the library, but | ||
514 | # only about the one the linker finds when passed -lNAME. This is the last | ||
515 | # element of library_names_spec in libtool.m4, or possibly two of them if the | ||
516 | # linker has special search rules. | ||
517 | library_names_spec= # the last element of library_names_spec in libtool.m4 | ||
518 | libname_spec='lib$name' | ||
519 | case "$host_os" in | ||
520 | aix3*) | ||
521 | library_names_spec='$libname.a' | ||
522 | ;; | ||
523 | aix[4-9]*) | ||
524 | library_names_spec='$libname$shrext' | ||
525 | ;; | ||
526 | amigaos*) | ||
527 | case "$host_cpu" in | ||
528 | powerpc*) | ||
529 | library_names_spec='$libname$shrext' ;; | ||
530 | m68k) | ||
531 | library_names_spec='$libname.a' ;; | ||
532 | esac | ||
533 | ;; | ||
534 | beos*) | ||
535 | library_names_spec='$libname$shrext' | ||
536 | ;; | ||
537 | bsdi[45]*) | ||
538 | library_names_spec='$libname$shrext' | ||
539 | ;; | ||
540 | cygwin* | mingw* | pw32* | cegcc*) | ||
541 | shrext=.dll | ||
542 | library_names_spec='$libname.dll.a $libname.lib' | ||
543 | ;; | ||
544 | darwin* | rhapsody*) | ||
545 | shrext=.dylib | ||
546 | library_names_spec='$libname$shrext' | ||
547 | ;; | ||
548 | dgux*) | ||
549 | library_names_spec='$libname$shrext' | ||
550 | ;; | ||
551 | freebsd* | dragonfly*) | ||
552 | case "$host_os" in | ||
553 | freebsd[123]*) | ||
554 | library_names_spec='$libname$shrext$versuffix' ;; | ||
555 | *) | ||
556 | library_names_spec='$libname$shrext' ;; | ||
557 | esac | ||
558 | ;; | ||
559 | gnu*) | ||
560 | library_names_spec='$libname$shrext' | ||
561 | ;; | ||
562 | haiku*) | ||
563 | library_names_spec='$libname$shrext' | ||
564 | ;; | ||
565 | hpux9* | hpux10* | hpux11*) | ||
566 | case $host_cpu in | ||
567 | ia64*) | ||
568 | shrext=.so | ||
569 | ;; | ||
570 | hppa*64*) | ||
571 | shrext=.sl | ||
572 | ;; | ||
573 | *) | ||
574 | shrext=.sl | ||
575 | ;; | ||
576 | esac | ||
577 | library_names_spec='$libname$shrext' | ||
578 | ;; | ||
579 | interix[3-9]*) | ||
580 | library_names_spec='$libname$shrext' | ||
581 | ;; | ||
582 | irix5* | irix6* | nonstopux*) | ||
583 | library_names_spec='$libname$shrext' | ||
584 | case "$host_os" in | ||
585 | irix5* | nonstopux*) | ||
586 | libsuff= shlibsuff= | ||
587 | ;; | ||
588 | *) | ||
589 | case $LD in | ||
590 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; | ||
591 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; | ||
592 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; | ||
593 | *) libsuff= shlibsuff= ;; | ||
594 | esac | ||
595 | ;; | ||
596 | esac | ||
597 | ;; | ||
598 | linux*oldld* | linux*aout* | linux*coff*) | ||
599 | ;; | ||
600 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
601 | library_names_spec='$libname$shrext' | ||
602 | ;; | ||
603 | knetbsd*-gnu) | ||
604 | library_names_spec='$libname$shrext' | ||
605 | ;; | ||
606 | netbsd*) | ||
607 | library_names_spec='$libname$shrext' | ||
608 | ;; | ||
609 | newsos6) | ||
610 | library_names_spec='$libname$shrext' | ||
611 | ;; | ||
612 | *nto* | *qnx*) | ||
613 | library_names_spec='$libname$shrext' | ||
614 | ;; | ||
615 | openbsd*) | ||
616 | library_names_spec='$libname$shrext$versuffix' | ||
617 | ;; | ||
618 | os2*) | ||
619 | libname_spec='$name' | ||
620 | shrext=.dll | ||
621 | library_names_spec='$libname.a' | ||
622 | ;; | ||
623 | osf3* | osf4* | osf5*) | ||
624 | library_names_spec='$libname$shrext' | ||
625 | ;; | ||
626 | rdos*) | ||
627 | ;; | ||
628 | solaris*) | ||
629 | library_names_spec='$libname$shrext' | ||
630 | ;; | ||
631 | sunos4*) | ||
632 | library_names_spec='$libname$shrext$versuffix' | ||
633 | ;; | ||
634 | sysv4 | sysv4.3*) | ||
635 | library_names_spec='$libname$shrext' | ||
636 | ;; | ||
637 | sysv4*MP*) | ||
638 | library_names_spec='$libname$shrext' | ||
639 | ;; | ||
640 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
641 | library_names_spec='$libname$shrext' | ||
642 | ;; | ||
643 | tpf*) | ||
644 | library_names_spec='$libname$shrext' | ||
645 | ;; | ||
646 | uts4*) | ||
647 | library_names_spec='$libname$shrext' | ||
648 | ;; | ||
649 | esac | ||
650 | |||
651 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
652 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
653 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` | ||
654 | escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
655 | escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
656 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
657 | |||
658 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF | ||
659 | |||
660 | # How to pass a linker flag through the compiler. | ||
661 | wl="$escaped_wl" | ||
662 | |||
663 | # Static library suffix (normally "a"). | ||
664 | libext="$libext" | ||
665 | |||
666 | # Shared library suffix (normally "so"). | ||
667 | shlibext="$shlibext" | ||
668 | |||
669 | # Format of library name prefix. | ||
670 | libname_spec="$escaped_libname_spec" | ||
671 | |||
672 | # Library names that the linker finds when passed -lNAME. | ||
673 | library_names_spec="$escaped_library_names_spec" | ||
674 | |||
675 | # Flag to hardcode \$libdir into a binary during linking. | ||
676 | # This must work even if \$libdir does not exist. | ||
677 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" | ||
678 | |||
679 | # Whether we need a single -rpath flag with a separated argument. | ||
680 | hardcode_libdir_separator="$hardcode_libdir_separator" | ||
681 | |||
682 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | ||
683 | # resulting binary. | ||
684 | hardcode_direct="$hardcode_direct" | ||
685 | |||
686 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
687 | # resulting binary. | ||
688 | hardcode_minus_L="$hardcode_minus_L" | ||
689 | |||
690 | EOF | ||
diff --git a/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/iconv-m4-remove-the-test-to-convert-euc-jp.patch b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/iconv-m4-remove-the-test-to-convert-euc-jp.patch new file mode 100644 index 0000000000..d453a74b51 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/iconv-m4-remove-the-test-to-convert-euc-jp.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 0bfade685783ccd193b2e1b94d0e4ef5ce449432 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jackie Huang <jackie.huang@windriver.com> | ||
3 | Date: Wed, 20 Nov 2013 17:52:50 +0800 | ||
4 | Subject: [PATCH] remove the test to convert euc-jp | ||
5 | |||
6 | Remove the test "Test against HP-UX 11.11 bug: | ||
7 | No converter from EUC-JP to UTF-8 is provided" | ||
8 | since we don't support HP-UX and it causes | ||
9 | guile-native compile failure if the euc-jp is not | ||
10 | installed on the host | ||
11 | |||
12 | Upstream-Status: Inappropriate [OE specific] | ||
13 | |||
14 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
15 | --- | ||
16 | iconv.m4 | 11 ----------- | ||
17 | 1 file changed, 11 deletions(-) | ||
18 | |||
19 | diff --git a/iconv.m4 b/iconv.m4 | ||
20 | index a503646..dbe7ca1 100644 | ||
21 | --- a/iconv.m4 | ||
22 | +++ b/iconv.m4 | ||
23 | @@ -159,17 +159,6 @@ int main () | ||
24 | } | ||
25 | } | ||
26 | #endif | ||
27 | - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | ||
28 | - provided. */ | ||
29 | - if (/* Try standardized names. */ | ||
30 | - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | ||
31 | - /* Try IRIX, OSF/1 names. */ | ||
32 | - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | ||
33 | - /* Try AIX names. */ | ||
34 | - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | ||
35 | - /* Try HP-UX names. */ | ||
36 | - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | ||
37 | - result |= 16; | ||
38 | return result; | ||
39 | }]])], | ||
40 | [am_cv_func_iconv_works=yes], | ||
41 | -- | ||
42 | 1.8.3 | ||
43 | |||
diff --git a/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/remove-potcdate.sin b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/remove-potcdate.sin new file mode 100644 index 0000000000..2436c49e78 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-minimal-0.18.3.2/remove-potcdate.sin | |||
@@ -0,0 +1,19 @@ | |||
1 | # Sed script that remove the POT-Creation-Date line in the header entry | ||
2 | # from a POT file. | ||
3 | # | ||
4 | # The distinction between the first and the following occurrences of the | ||
5 | # pattern is achieved by looking at the hold space. | ||
6 | /^"POT-Creation-Date: .*"$/{ | ||
7 | x | ||
8 | # Test if the hold space is empty. | ||
9 | s/P/P/ | ||
10 | ta | ||
11 | # Yes it was empty. First occurrence. Remove the line. | ||
12 | g | ||
13 | d | ||
14 | bb | ||
15 | :a | ||
16 | # The hold space was nonempty. Following occurrences. Do nothing. | ||
17 | x | ||
18 | :b | ||
19 | } | ||
diff --git a/meta/recipes-core/gettext/gettext-minimal-native_0.18.3.2.bb b/meta/recipes-core/gettext/gettext-minimal-native_0.18.3.2.bb new file mode 100644 index 0000000000..2b43b97022 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-minimal-native_0.18.3.2.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "Minimal gettext for supporting native autoconf/automake" | ||
2 | DESCRIPTION = "Contains the m4 macros sufficient to support building \ | ||
3 | autoconf/automake. This provides a significant build time speedup by \ | ||
4 | the removal of gettext-native from most dependency chains (now only \ | ||
5 | needed for gettext for the target)." | ||
6 | SRC_URI = "file://aclocal.tgz \ | ||
7 | file://config.rpath \ | ||
8 | file://Makefile.in.in \ | ||
9 | file://remove-potcdate.sin \ | ||
10 | file://COPYING \ | ||
11 | file://iconv-m4-remove-the-test-to-convert-euc-jp.patch \ | ||
12 | " | ||
13 | |||
14 | INHIBIT_DEFAULT_DEPS = "1" | ||
15 | INHIBIT_AUTOTOOLS_DEPS = "1" | ||
16 | |||
17 | LICENSE = "FSF-Unlimited" | ||
18 | LIC_FILES_CHKSUM = "file://COPYING;md5=0854da868a929923087141d9d7aba7d5" | ||
19 | |||
20 | inherit native | ||
21 | |||
22 | |||
23 | S = "${WORKDIR}" | ||
24 | |||
25 | do_install () { | ||
26 | install -d ${D}${datadir}/aclocal/ | ||
27 | cp ${WORKDIR}/*.m4 ${D}${datadir}/aclocal/ | ||
28 | install -d ${D}${datadir}/gettext/po/ | ||
29 | cp ${WORKDIR}/config.rpath ${D}${datadir}/gettext/ | ||
30 | cp ${WORKDIR}/Makefile.in.in ${D}${datadir}/gettext/po/ | ||
31 | cp ${WORKDIR}/remove-potcdate.sin ${D}${datadir}/gettext/po/ | ||
32 | } | ||
diff --git a/meta/recipes-core/gettext/gettext_0.16.1.bb b/meta/recipes-core/gettext/gettext_0.16.1.bb new file mode 100644 index 0000000000..5725e7fe07 --- /dev/null +++ b/meta/recipes-core/gettext/gettext_0.16.1.bb | |||
@@ -0,0 +1,109 @@ | |||
1 | SUMMARY = "Utilities and libraries for producing multi-lingual messages" | ||
2 | DESCRIPTION = "GNU gettext is a set of tools that provides a framework to help other programs produce multi-lingual messages. These tools include a set of conventions about how programs should be written to support message catalogs, a directory and file naming organization for the message catalogs themselves, a runtime library supporting the retrieval of translated messages, and a few stand-alone programs to massage in various ways the sets of translatable and already translated strings." | ||
3 | HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=9ea3144f04c41cd2eada5d3f472e6ea5" | ||
7 | |||
8 | PR = "r6" | ||
9 | DEPENDS = "virtual/libiconv" | ||
10 | DEPENDS_class-native = "" | ||
11 | PROVIDES = "virtual/libintl virtual/gettext" | ||
12 | PROVIDES_class-native = "" | ||
13 | |||
14 | SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ | ||
15 | file://gettext-vpath.patch \ | ||
16 | file://linklib_from_0.17.patch \ | ||
17 | file://gettext-autoconf-lib-link-no-L.patch \ | ||
18 | file://disable_java.patch \ | ||
19 | file://fix_aclocal_version.patch \ | ||
20 | file://fix_gnu_source_circular.patch \ | ||
21 | file://hardcode_macro_version.patch \ | ||
22 | " | ||
23 | |||
24 | |||
25 | SRC_URI_append_linux-uclibc = " file://gettext-error_print_progname.patch" | ||
26 | SRC_URI_append_linux-uclibceabi = " file://gettext-error_print_progname.patch" | ||
27 | |||
28 | SRC_URI[md5sum] = "3d9ad24301c6d6b17ec30704a13fe127" | ||
29 | SRC_URI[sha256sum] = "0bf850d1a079fb5a61f0a47b1a9efd35eb44032255375e1cedb0253bc27b376d" | ||
30 | |||
31 | PARALLEL_MAKE = "" | ||
32 | |||
33 | inherit autotools | ||
34 | |||
35 | EXTRA_OECONF += "--without-lisp --disable-csharp --disable-openmp --without-emacs" | ||
36 | acpaths = '-I ${S}/autoconf-lib-link/m4/ \ | ||
37 | -I ${S}/gettext-runtime/m4 \ | ||
38 | -I ${S}/gettext-tools/m4' | ||
39 | |||
40 | do_configure_prepend() { | ||
41 | rm -f ${S}/config/m4/libtool.m4 | ||
42 | } | ||
43 | |||
44 | # these lack the .x behind the .so, but shouldn't be in the -dev package | ||
45 | # Otherwise you get the following results: | ||
46 | # 7.4M glibc/images/ep93xx/Angstrom-console-image-glibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
47 | # 25M uclibc/images/ep93xx/Angstrom-console-image-uclibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
48 | # because gettext depends on gettext-dev, which pulls in more -dev packages: | ||
49 | # 15228 KiB /ep93xx/libstdc++-dev_4.2.2-r2_ep93xx.ipk | ||
50 | # 1300 KiB /ep93xx/uclibc-dev_0.9.29-r8_ep93xx.ipk | ||
51 | # 140 KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk | ||
52 | # 4 KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk | ||
53 | |||
54 | PACKAGES =+ "libgettextlib libgettextsrc" | ||
55 | FILES_libgettextlib = "${libdir}/libgettextlib-*.so*" | ||
56 | FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*" | ||
57 | |||
58 | PACKAGES =+ "gettext-runtime gettext-runtime-dev gettext-runtime-staticdev gettext-runtime-doc" | ||
59 | |||
60 | FILES_${PN} += "${libdir}/${BPN}/*" | ||
61 | |||
62 | FILES_gettext-runtime = "${bindir}/gettext \ | ||
63 | ${bindir}/ngettext \ | ||
64 | ${bindir}/envsubst \ | ||
65 | ${bindir}/gettext.sh \ | ||
66 | ${libdir}/libasprintf${SODEV} \ | ||
67 | ${libdir}/GNU.Gettext.dll \ | ||
68 | " | ||
69 | FILES_gettext-runtime_append_libc-uclibc = " ${libdir}/libintl.so.* \ | ||
70 | ${libdir}/charset.alias \ | ||
71 | " | ||
72 | FILES_gettext-runtime-staticdev += "${libdir}/libasprintf.a" | ||
73 | FILES_gettext-runtime-dev += "${includedir}/autosprintf.h \ | ||
74 | ${libdir}/libasprintf${SOLIBDEV}" | ||
75 | FILES_gettext-runtime-dev_append_libc-uclibc = " ${libdir}/libintl.so \ | ||
76 | ${includedir}/libintl.h \ | ||
77 | " | ||
78 | FILES_gettext-runtime-doc = "${mandir}/man1/gettext.* \ | ||
79 | ${mandir}/man1/ngettext.* \ | ||
80 | ${mandir}/man1/envsubst.* \ | ||
81 | ${mandir}/man1/.* \ | ||
82 | ${mandir}/man3/* \ | ||
83 | ${docdir}/gettext/gettext.* \ | ||
84 | ${docdir}/gettext/ngettext.* \ | ||
85 | ${docdir}/gettext/envsubst.* \ | ||
86 | ${docdir}/gettext/*.3.html \ | ||
87 | ${datadir}/gettext/ABOUT-NLS \ | ||
88 | ${docdir}/gettext/csharpdoc/* \ | ||
89 | ${docdir}/libasprintf/autosprintf.html \ | ||
90 | ${infodir}/autosprintf.info \ | ||
91 | " | ||
92 | |||
93 | |||
94 | do_install_append() { | ||
95 | rm -f ${D}${libdir}/preloadable_libintl.so | ||
96 | } | ||
97 | |||
98 | # Anyone inheriting gettext will have both gettext-native and gettext | ||
99 | # available, and we don't want to use older macros from the target gettext in | ||
100 | # a non-gplv3 build, so kill them and let dependent recipes rely on | ||
101 | # gettext-native. | ||
102 | |||
103 | SYSROOT_PREPROCESS_FUNCS += "remove_sysroot_m4_macros" | ||
104 | |||
105 | remove_sysroot_m4_macros () { | ||
106 | rm -r "${SYSROOT_DESTDIR}${datadir}/aclocal" | ||
107 | } | ||
108 | |||
109 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-core/gettext/gettext_0.18.3.2.bb b/meta/recipes-core/gettext/gettext_0.18.3.2.bb new file mode 100644 index 0000000000..553d52223e --- /dev/null +++ b/meta/recipes-core/gettext/gettext_0.18.3.2.bb | |||
@@ -0,0 +1,106 @@ | |||
1 | SUMMARY = "Utilities and libraries for producing multi-lingual messages" | ||
2 | DESCRIPTION = "GNU gettext is a set of tools that provides a framework to help other programs produce multi-lingual messages. These tools include a set of conventions about how programs should be written to support message catalogs, a directory and file naming organization for the message catalogs themselves, a runtime library supporting the retrieval of translated messages, and a few stand-alone programs to massage in various ways the sets of translatable and already translated strings." | ||
3 | HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "GPLv3+ & LGPL-2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
7 | |||
8 | DEPENDS = "gettext-native virtual/libiconv expat" | ||
9 | DEPENDS_class-native = "gettext-minimal-native" | ||
10 | PROVIDES = "virtual/libintl virtual/gettext" | ||
11 | PROVIDES_class-native = "virtual/gettext-native" | ||
12 | RCONFLICTS_${PN} = "proxy-libintl" | ||
13 | SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ | ||
14 | file://parallel.patch \ | ||
15 | " | ||
16 | |||
17 | PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${STAGING_LIBDIR}/..,--disable-curses,ncurses," | ||
18 | |||
19 | LDFLAGS_prepend_libc-uclibc = " -lrt -lpthread " | ||
20 | |||
21 | SRC_URI[md5sum] = "241aba309d07aa428252c74b40a818ef" | ||
22 | SRC_URI[sha256sum] = "d1a4e452d60eb407ab0305976529a45c18124bd518d976971ac6dc7aa8b4c5d7" | ||
23 | |||
24 | inherit autotools | ||
25 | |||
26 | EXTRA_OECONF += "--without-lispdir \ | ||
27 | --disable-csharp \ | ||
28 | --disable-libasprintf \ | ||
29 | --disable-java \ | ||
30 | --disable-native-java \ | ||
31 | --disable-openmp \ | ||
32 | --disable-acl \ | ||
33 | --with-included-glib \ | ||
34 | --without-emacs \ | ||
35 | --without-cvs \ | ||
36 | --without-git \ | ||
37 | --with-included-libxml \ | ||
38 | --with-included-libcroco \ | ||
39 | --with-included-libunistring \ | ||
40 | " | ||
41 | |||
42 | acpaths = '-I ${S}/gettext-runtime/m4 \ | ||
43 | -I ${S}/gettext-tools/m4' | ||
44 | |||
45 | |||
46 | # these lack the .x behind the .so, but shouldn't be in the -dev package | ||
47 | # Otherwise you get the following results: | ||
48 | # 7.4M glibc/images/ep93xx/Angstrom-console-image-glibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
49 | # 25M uclibc/images/ep93xx/Angstrom-console-image-uclibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
50 | # because gettext depends on gettext-dev, which pulls in more -dev packages: | ||
51 | # 15228 KiB /ep93xx/libstdc++-dev_4.2.2-r2_ep93xx.ipk | ||
52 | # 1300 KiB /ep93xx/uclibc-dev_0.9.29-r8_ep93xx.ipk | ||
53 | # 140 KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk | ||
54 | # 4 KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk | ||
55 | |||
56 | PACKAGES =+ "libgettextlib libgettextsrc" | ||
57 | FILES_libgettextlib = "${libdir}/libgettextlib-*.so*" | ||
58 | FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*" | ||
59 | |||
60 | PACKAGES =+ "gettext-runtime gettext-runtime-dev gettext-runtime-doc" | ||
61 | |||
62 | FILES_${PN} += "${libdir}/${BPN}/*" | ||
63 | |||
64 | FILES_gettext-runtime = "${bindir}/gettext \ | ||
65 | ${bindir}/ngettext \ | ||
66 | ${bindir}/envsubst \ | ||
67 | ${bindir}/gettext.sh \ | ||
68 | ${libdir}/libasprintf.so* \ | ||
69 | ${libdir}/GNU.Gettext.dll \ | ||
70 | " | ||
71 | FILES_gettext-runtime_append_libc-uclibc = " ${libdir}/libintl.so.* \ | ||
72 | ${libdir}/charset.alias \ | ||
73 | " | ||
74 | FILES_gettext-runtime-dev += "${libdir}/libasprintf.a \ | ||
75 | ${includedir}/autosprintf.h \ | ||
76 | " | ||
77 | FILES_gettext-runtime-dev_append_libc-uclibc = " ${libdir}/libintl.so \ | ||
78 | ${includedir}/libintl.h \ | ||
79 | " | ||
80 | FILES_gettext-runtime-doc = "${mandir}/man1/gettext.* \ | ||
81 | ${mandir}/man1/ngettext.* \ | ||
82 | ${mandir}/man1/envsubst.* \ | ||
83 | ${mandir}/man1/.* \ | ||
84 | ${mandir}/man3/* \ | ||
85 | ${docdir}/gettext/gettext.* \ | ||
86 | ${docdir}/gettext/ngettext.* \ | ||
87 | ${docdir}/gettext/envsubst.* \ | ||
88 | ${docdir}/gettext/*.3.html \ | ||
89 | ${datadir}/gettext/ABOUT-NLS \ | ||
90 | ${docdir}/gettext/csharpdoc/* \ | ||
91 | ${docdir}/libasprintf/autosprintf.html \ | ||
92 | ${infodir}/autosprintf.info \ | ||
93 | " | ||
94 | |||
95 | do_install_append() { | ||
96 | rm -f ${D}${libdir}/preloadable_libintl.so | ||
97 | } | ||
98 | |||
99 | do_install_append_class-native () { | ||
100 | rm ${D}${datadir}/aclocal/* | ||
101 | rm ${D}${datadir}/gettext/config.rpath | ||
102 | rm ${D}${datadir}/gettext/po/Makefile.in.in | ||
103 | rm ${D}${datadir}/gettext/po/remove-potcdate.sin | ||
104 | } | ||
105 | |||
106 | BBCLASSEXTEND = "native nativesdk" | ||