Upgrade gettext infrastructure
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov
3 years ago
0 | Notes on the Free Translation Project | |
1 | ************************************* | |
2 | ||
3 | Free software is going international! The Free Translation Project is | |
4 | a way to get maintainers of free software, translators, and users all | |
5 | together, so that will gradually become able to speak many languages. | |
6 | A few packages already provide translations for their messages. | |
7 | ||
8 | If you found this `ABOUT-NLS' file inside a distribution, you may | |
9 | assume that the distributed package does use GNU `gettext' internally, | |
10 | itself available at your nearest GNU archive site. But you do _not_ | |
11 | need to install GNU `gettext' prior to configuring, installing or using | |
12 | this package with messages translated. | |
13 | ||
14 | Installers will find here some useful hints. These notes also | |
15 | explain how users should proceed for getting the programs to use the | |
16 | available translations. They tell how people wanting to contribute and | |
17 | work at translations should contact the appropriate team. | |
18 | ||
19 | When reporting bugs in the `intl/' directory or bugs which may be | |
20 | related to internationalization, you should tell about the version of | |
21 | `gettext' which is used. The information can be found in the | |
22 | `intl/VERSION' file, in internationalized packages. | |
23 | ||
24 | Quick configuration advice | |
25 | ========================== | |
26 | ||
27 | If you want to exploit the full power of internationalization, you | |
28 | should configure it using | |
29 | ||
30 | ./configure --with-included-gettext | |
31 | ||
32 | to force usage of internationalizing routines provided within this | |
33 | package, despite the existence of internationalizing capabilities in the | |
34 | operating system where this package is being installed. So far, only | |
35 | the `gettext' implementation in the GNU C library version 2 provides as | |
36 | many features (such as locale alias, message inheritance, automatic | |
37 | charset conversion or plural form handling) as the implementation here. | |
38 | It is also not possible to offer this additional functionality on top | |
39 | of a `catgets' implementation. Future versions of GNU `gettext' will | |
40 | very likely convey even more functionality. So it might be a good idea | |
41 | to change to GNU `gettext' as soon as possible. | |
42 | ||
43 | So you need _not_ provide this option if you are using GNU libc 2 or | |
44 | you have installed a recent copy of the GNU gettext package with the | |
45 | included `libintl'. | |
46 | ||
47 | INSTALL Matters | |
48 | =============== | |
49 | ||
50 | Some packages are "localizable" when properly installed; the programs | |
51 | they contain can be made to speak your own native language. Most such | |
52 | packages use GNU `gettext'. Other packages have their own ways to | |
53 | internationalization, predating GNU `gettext'. | |
54 | ||
55 | By default, this package will be installed to allow translation of | |
56 | messages. It will automatically detect whether the system already | |
57 | provides the GNU `gettext' functions. If not, the GNU `gettext' own | |
58 | library will be used. This library is wholly contained within this | |
59 | package, usually in the `intl/' subdirectory, so prior installation of | |
60 | the GNU `gettext' package is _not_ required. Installers may use | |
61 | special options at configuration time for changing the default | |
62 | behaviour. The commands: | |
63 | ||
64 | ./configure --with-included-gettext | |
65 | ./configure --disable-nls | |
66 | ||
67 | will respectively bypass any pre-existing `gettext' to use the | |
68 | internationalizing routines provided within this package, or else, | |
69 | _totally_ disable translation of messages. | |
70 | ||
71 | When you already have GNU `gettext' installed on your system and run | |
72 | configure without an option for your new package, `configure' will | |
73 | probably detect the previously built and installed `libintl.a' file and | |
74 | will decide to use this. This might be not what is desirable. You | |
75 | should use the more recent version of the GNU `gettext' library. I.e. | |
76 | if the file `intl/VERSION' shows that the library which comes with this | |
77 | package is more recent, you should use | |
78 | ||
79 | ./configure --with-included-gettext | |
80 | ||
81 | to prevent auto-detection. | |
82 | ||
83 | The configuration process will not test for the `catgets' function | |
84 | and therefore it will not be used. The reason is that even an | |
85 | emulation of `gettext' on top of `catgets' could not provide all the | |
86 | extensions of the GNU `gettext' library. | |
87 | ||
88 | Internationalized packages have usually many `po/LL.po' files, where | |
89 | LL gives an ISO 639 two-letter code identifying the language. Unless | |
90 | translations have been forbidden at `configure' time by using the | |
91 | `--disable-nls' switch, all available translations are installed | |
92 | together with the package. However, the environment variable `LINGUAS' | |
93 | may be set, prior to configuration, to limit the installed set. | |
94 | `LINGUAS' should then contain a space separated list of two-letter | |
95 | codes, stating which languages are allowed. | |
96 | ||
97 | Using This Package | |
98 | ================== | |
99 | ||
100 | As a user, if your language has been installed for this package, you | |
101 | only have to set the `LANG' environment variable to the appropriate | |
102 | `LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, | |
103 | and `CC' is an ISO 3166 two-letter country code. For example, let's | |
104 | suppose that you speak German and live in Germany. At the shell | |
105 | prompt, merely execute `setenv LANG de_DE' (in `csh'), | |
106 | `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). | |
107 | This can be done from your `.login' or `.profile' file, once and for | |
108 | all. | |
109 | ||
110 | You might think that the country code specification is redundant. | |
111 | But in fact, some languages have dialects in different countries. For | |
112 | example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The | |
113 | country code serves to distinguish the dialects. | |
114 | ||
115 | The locale naming convention of `LL_CC', with `LL' denoting the | |
116 | language and `CC' denoting the country, is the one use on systems based | |
117 | on GNU libc. On other systems, some variations of this scheme are | |
118 | used, such as `LL' or `LL_CC.ENCODING'. You can get the list of | |
119 | locales supported by your system for your country by running the command | |
120 | `locale -a | grep '^LL''. | |
121 | ||
122 | Not all programs have translations for all languages. By default, an | |
123 | English message is shown in place of a nonexistent translation. If you | |
124 | understand other languages, you can set up a priority list of languages. | |
125 | This is done through a different environment variable, called | |
126 | `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' | |
127 | for the purpose of message handling, but you still need to have `LANG' | |
128 | set to the primary language; this is required by other parts of the | |
129 | system libraries. For example, some Swedish users who would rather | |
130 | read translations in German than English for when Swedish is not | |
131 | available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. | |
132 | ||
133 | Special advice for Norwegian users: The language code for Norwegian | |
134 | bokma*l changed from `no' to `nb' recently (in 2003). During the | |
135 | transition period, while some message catalogs for this language are | |
136 | installed under `nb' and some older ones under `no', it's recommended | |
137 | for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and | |
138 | older translations are used. | |
139 | ||
140 | In the `LANGUAGE' environment variable, but not in the `LANG' | |
141 | environment variable, `LL_CC' combinations can be abbreviated as `LL' | |
142 | to denote the language's main dialect. For example, `de' is equivalent | |
143 | to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' | |
144 | (Portuguese as spoken in Portugal) in this context. | |
145 | ||
146 | Translating Teams | |
147 | ================= | |
148 | ||
149 | For the Free Translation Project to be a success, we need interested | |
150 | people who like their own language and write it well, and who are also | |
151 | able to synergize with other translators speaking the same language. | |
152 | Each translation team has its own mailing list. The up-to-date list of | |
153 | teams can be found at the Free Translation Project's homepage, | |
154 | `http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" | |
155 | area. | |
156 | ||
157 | If you'd like to volunteer to _work_ at translating messages, you | |
158 | should become a member of the translating team for your own language. | |
159 | The subscribing address is _not_ the same as the list itself, it has | |
160 | `-request' appended. For example, speakers of Swedish can send a | |
161 | message to `sv-request@li.org', having this message body: | |
162 | ||
163 | subscribe | |
164 | ||
165 | Keep in mind that team members are expected to participate | |
166 | _actively_ in translations, or at solving translational difficulties, | |
167 | rather than merely lurking around. If your team does not exist yet and | |
168 | you want to start one, or if you are unsure about what to do or how to | |
169 | get started, please write to `translation@iro.umontreal.ca' to reach the | |
170 | coordinator for all translator teams. | |
171 | ||
172 | The English team is special. It works at improving and uniformizing | |
173 | the terminology in use. Proven linguistic skill are praised more than | |
174 | programming skill, here. | |
175 | ||
176 | Available Packages | |
177 | ================== | |
178 | ||
179 | Languages are not equally supported in all packages. The following | |
180 | matrix shows the current state of internationalization, as of January | |
181 | 2004. The matrix shows, in regard of each package, for which languages | |
182 | PO files have been submitted to translation coordination, with a | |
183 | translation percentage of at least 50%. | |
184 | ||
185 | Ready PO files af am ar az be bg bs ca cs da de el en en_GB eo es | |
186 | +----------------------------------------------------+ | |
187 | a2ps | [] [] [] [] | | |
188 | aegis | () | | |
189 | ant-phone | () | | |
190 | anubis | | | |
191 | ap-utils | | | |
192 | aspell | [] | | |
193 | bash | [] [] [] [] | | |
194 | batchelor | | | |
195 | bfd | [] [] | | |
196 | binutils | [] [] | | |
197 | bison | [] [] [] | | |
198 | bluez-pin | [] [] [] | | |
199 | clisp | | | |
200 | clisp | [] [] [] | | |
201 | console-tools | [] [] | | |
202 | coreutils | [] [] [] [] | | |
203 | cpio | [] [] [] | | |
204 | darkstat | [] () [] | | |
205 | diffutils | [] [] [] [] [] [] [] | | |
206 | e2fsprogs | [] [] [] | | |
207 | enscript | [] [] [] [] | | |
208 | error | [] [] [] [] [] | | |
209 | fetchmail | [] () [] [] [] [] | | |
210 | fileutils | [] [] [] | | |
211 | findutils | [] [] [] [] [] [] [] | | |
212 | flex | [] [] [] [] | | |
213 | fslint | | | |
214 | gas | [] | | |
215 | gawk | [] [] [] [] | | |
216 | gbiff | [] | | |
217 | gcal | [] | | |
218 | gcc | [] [] | | |
219 | gettext | [] [] [] [] [] | | |
220 | gettext-examples | [] [] [] [] | | |
221 | gettext-runtime | [] [] [] [] [] | | |
222 | gettext-tools | [] [] [] | | |
223 | gimp-print | [] [] [] [] [] | | |
224 | gliv | | | |
225 | glunarclock | [] [] | | |
226 | gnubiff | [] | | |
227 | gnucash | [] () [] [] | | |
228 | gnucash-glossary | [] () [] | | |
229 | gnupg | [] () [] [] [] [] | | |
230 | gpe-aerial | [] | | |
231 | gpe-beam | [] [] | | |
232 | gpe-calendar | [] [] | | |
233 | gpe-clock | [] [] | | |
234 | gpe-conf | [] [] | | |
235 | gpe-contacts | [] [] | | |
236 | gpe-edit | [] | | |
237 | gpe-go | [] | | |
238 | gpe-login | [] [] | | |
239 | gpe-ownerinfo | [] [] | | |
240 | gpe-sketchbook | [] [] | | |
241 | gpe-su | [] [] | | |
242 | gpe-taskmanager | [] [] | | |
243 | gpe-timesheet | [] | | |
244 | gpe-today | [] [] | | |
245 | gpe-todo | [] [] | | |
246 | gphoto2 | [] [] [] [] | | |
247 | gprof | [] [] [] | | |
248 | gpsdrive | () () () | | |
249 | gramadoir | [] | | |
250 | grep | [] [] [] [] [] [] | | |
251 | gretl | [] | | |
252 | gtick | [] () | | |
253 | hello | [] [] [] [] [] [] | | |
254 | id-utils | [] [] | | |
255 | indent | [] [] [] [] | | |
256 | iso_3166 | [] [] [] [] [] [] [] [] [] [] | | |
257 | iso_3166_1 | [] [] [] [] [] [] | | |
258 | iso_3166_2 | | | |
259 | iso_3166_3 | [] | | |
260 | iso_4217 | [] [] [] [] | | |
261 | iso_639 | | | |
262 | jpilot | [] [] [] | | |
263 | jtag | | | |
264 | jwhois | [] | | |
265 | kbd | [] [] [] [] [] | | |
266 | latrine | () | | |
267 | ld | [] [] | | |
268 | libc | [] [] [] [] [] [] | | |
269 | libgpewidget | [] [] | | |
270 | libiconv | [] [] [] [] [] | | |
271 | lifelines | [] () | | |
272 | lilypond | [] | | |
273 | lingoteach | | | |
274 | lingoteach_lessons | () () | | |
275 | lynx | [] [] [] [] | | |
276 | m4 | [] [] [] [] | | |
277 | mailutils | [] [] | | |
278 | make | [] [] [] | | |
279 | man-db | [] () [] [] () | | |
280 | minicom | [] [] [] | | |
281 | mysecretdiary | [] [] [] | | |
282 | nano | [] () [] [] [] | | |
283 | nano_1_0 | [] () [] [] [] | | |
284 | opcodes | [] | | |
285 | parted | [] [] [] [] [] | | |
286 | ptx | [] [] [] [] [] | | |
287 | python | | | |
288 | radius | [] | | |
289 | recode | [] [] [] [] [] [] [] | | |
290 | rpm | [] [] | | |
291 | screem | | | |
292 | scrollkeeper | [] [] [] [] [] [] | | |
293 | sed | [] [] [] [] [] [] | | |
294 | sh-utils | [] [] [] | | |
295 | shared-mime-info | | | |
296 | sharutils | [] [] [] [] [] [] | | |
297 | silky | () | | |
298 | skencil | [] () [] | | |
299 | sketch | [] () [] | | |
300 | soundtracker | [] [] [] | | |
301 | sp | [] | | |
302 | tar | [] [] [] [] | | |
303 | texinfo | [] [] [] | | |
304 | textutils | [] [] [] [] | | |
305 | tin | () () | | |
306 | tp-robot | | | |
307 | tuxpaint | [] [] [] [] [] [] [] | | |
308 | unicode-han-tra... | | | |
309 | unicode-transla... | | | |
310 | util-linux | [] [] [] [] [] | | |
311 | vorbis-tools | [] [] [] [] | | |
312 | wastesedge | () | | |
313 | wdiff | [] [] [] [] | | |
314 | wget | [] [] [] [] [] [] | | |
315 | xchat | [] [] [] [] | | |
316 | xfree86_xkb_xml | [] [] | | |
317 | xpad | [] | | |
318 | +----------------------------------------------------+ | |
319 | af am ar az be bg bs ca cs da de el en en_GB eo es | |
320 | 4 0 0 1 9 4 1 40 41 60 78 17 1 5 13 68 | |
321 | ||
322 | et eu fa fi fr ga gl he hr hu id is it ja ko lg | |
323 | +-------------------------------------------------+ | |
324 | a2ps | [] [] [] () () | | |
325 | aegis | | | |
326 | ant-phone | [] | | |
327 | anubis | [] | | |
328 | ap-utils | [] | | |
329 | aspell | [] [] | | |
330 | bash | [] [] | | |
331 | batchelor | [] [] | | |
332 | bfd | [] | | |
333 | binutils | [] [] | | |
334 | bison | [] [] [] [] | | |
335 | bluez-pin | [] [] [] [] [] | | |
336 | clisp | | | |
337 | clisp | [] | | |
338 | console-tools | | | |
339 | coreutils | [] [] [] [] [] [] | | |
340 | cpio | [] [] [] [] | | |
341 | darkstat | () [] [] [] | | |
342 | diffutils | [] [] [] [] [] [] [] | | |
343 | e2fsprogs | | | |
344 | enscript | [] [] | | |
345 | error | [] [] [] [] | | |
346 | fetchmail | [] | | |
347 | fileutils | [] [] [] [] [] [] | | |
348 | findutils | [] [] [] [] [] [] [] [] [] [] [] | | |
349 | flex | [] [] [] | | |
350 | fslint | [] | | |
351 | gas | [] | | |
352 | gawk | [] [] [] | | |
353 | gbiff | [] | | |
354 | gcal | [] | | |
355 | gcc | [] | | |
356 | gettext | [] [] [] | | |
357 | gettext-examples | [] [] | | |
358 | gettext-runtime | [] [] [] [] [] | | |
359 | gettext-tools | [] [] [] | | |
360 | gimp-print | [] [] | | |
361 | gliv | () | | |
362 | glunarclock | [] [] [] [] | | |
363 | gnubiff | [] | | |
364 | gnucash | () [] | | |
365 | gnucash-glossary | [] | | |
366 | gnupg | [] [] [] [] [] [] [] | | |
367 | gpe-aerial | [] | | |
368 | gpe-beam | [] | | |
369 | gpe-calendar | [] [] [] | | |
370 | gpe-clock | [] | | |
371 | gpe-conf | [] | | |
372 | gpe-contacts | [] [] | | |
373 | gpe-edit | [] [] | | |
374 | gpe-go | [] | | |
375 | gpe-login | [] [] | | |
376 | gpe-ownerinfo | [] [] [] | | |
377 | gpe-sketchbook | [] | | |
378 | gpe-su | [] | | |
379 | gpe-taskmanager | [] | | |
380 | gpe-timesheet | [] [] [] | | |
381 | gpe-today | [] [] | | |
382 | gpe-todo | [] [] | | |
383 | gphoto2 | [] [] [] | | |
384 | gprof | [] [] | | |
385 | gpsdrive | () () () | | |
386 | gramadoir | [] [] | | |
387 | grep | [] [] [] [] [] [] [] [] [] [] [] | | |
388 | gretl | [] [] | | |
389 | gtick | [] [] [] | | |
390 | hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | | |
391 | id-utils | [] [] [] [] | | |
392 | indent | [] [] [] [] [] [] [] [] [] | | |
393 | iso_3166 | [] [] [] [] [] [] [] | | |
394 | iso_3166_1 | [] [] [] [] [] | | |
395 | iso_3166_2 | | | |
396 | iso_3166_3 | | | |
397 | iso_4217 | [] [] [] [] [] [] | | |
398 | iso_639 | | | |
399 | jpilot | [] () | | |
400 | jtag | [] | | |
401 | jwhois | [] [] [] [] | | |
402 | kbd | [] | | |
403 | latrine | [] | | |
404 | ld | [] | | |
405 | libc | [] [] [] [] [] [] | | |
406 | libgpewidget | [] [] [] [] | | |
407 | libiconv | [] [] [] [] [] [] [] [] [] | | |
408 | lifelines | () | | |
409 | lilypond | [] | | |
410 | lingoteach | [] [] | | |
411 | lingoteach_lessons | | | |
412 | lynx | [] [] [] [] | | |
413 | m4 | [] [] [] [] | | |
414 | mailutils | | | |
415 | make | [] [] [] [] [] [] | | |
416 | man-db | () () | | |
417 | minicom | [] [] [] [] | | |
418 | mysecretdiary | [] [] | | |
419 | nano | [] [] [] [] | | |
420 | nano_1_0 | [] [] [] [] | | |
421 | opcodes | [] | | |
422 | parted | [] [] [] | | |
423 | ptx | [] [] [] [] [] [] [] | | |
424 | python | | | |
425 | radius | [] | | |
426 | recode | [] [] [] [] [] [] | | |
427 | rpm | [] [] | | |
428 | screem | | | |
429 | scrollkeeper | [] | | |
430 | sed | [] [] [] [] [] [] [] [] [] | | |
431 | sh-utils | [] [] [] [] [] [] [] | | |
432 | shared-mime-info | [] [] [] | | |
433 | sharutils | [] [] [] [] [] | | |
434 | silky | () [] () () | | |
435 | skencil | [] | | |
436 | sketch | [] | | |
437 | soundtracker | [] [] | | |
438 | sp | [] () | | |
439 | tar | [] [] [] [] [] [] [] [] [] | | |
440 | texinfo | [] [] [] [] | | |
441 | textutils | [] [] [] [] [] [] | | |
442 | tin | [] () | | |
443 | tp-robot | [] | | |
444 | tuxpaint | [] [] [] [] [] [] [] [] [] | | |
445 | unicode-han-tra... | | | |
446 | unicode-transla... | [] [] | | |
447 | util-linux | [] [] [] [] () [] | | |
448 | vorbis-tools | [] | | |
449 | wastesedge | () | | |
450 | wdiff | [] [] [] [] [] [] | | |
451 | wget | [] [] [] [] [] [] [] | | |
452 | xchat | [] [] [] | | |
453 | xfree86_xkb_xml | [] [] | | |
454 | xpad | [] [] | | |
455 | +-------------------------------------------------+ | |
456 | et eu fa fi fr ga gl he hr hu id is it ja ko lg | |
457 | 22 2 1 26 106 28 24 8 10 41 33 1 26 33 12 0 | |
458 | ||
459 | lt lv mk mn ms mt nb nl nn no nso pl pt pt_BR ro ru | |
460 | +-----------------------------------------------------+ | |
461 | a2ps | [] [] () () [] [] [] | | |
462 | aegis | () () () | | |
463 | ant-phone | [] [] | | |
464 | anubis | [] [] [] [] [] [] | | |
465 | ap-utils | [] () [] | | |
466 | aspell | [] | | |
467 | bash | [] [] [] | | |
468 | batchelor | [] | | |
469 | bfd | [] | | |
470 | binutils | [] | | |
471 | bison | [] [] [] [] [] | | |
472 | bluez-pin | [] [] [] | | |
473 | clisp | | | |
474 | clisp | [] | | |
475 | console-tools | [] | | |
476 | coreutils | [] [] | | |
477 | cpio | [] [] [] [] [] | | |
478 | darkstat | [] [] [] [] | | |
479 | diffutils | [] [] [] [] [] [] | | |
480 | e2fsprogs | [] | | |
481 | enscript | [] [] [] [] | | |
482 | error | [] [] [] | | |
483 | fetchmail | [] [] () [] | | |
484 | fileutils | [] [] [] | | |
485 | findutils | [] [] [] [] [] | | |
486 | flex | [] [] [] [] | | |
487 | fslint | [] [] | | |
488 | gas | | | |
489 | gawk | [] [] [] | | |
490 | gbiff | [] [] | | |
491 | gcal | | | |
492 | gcc | | | |
493 | gettext | [] [] [] | | |
494 | gettext-examples | [] [] [] | | |
495 | gettext-runtime | [] [] [] [] | | |
496 | gettext-tools | [] [] | | |
497 | gimp-print | [] | | |
498 | gliv | [] [] [] | | |
499 | glunarclock | [] [] [] [] | | |
500 | gnubiff | [] | | |
501 | gnucash | [] [] () [] | | |
502 | gnucash-glossary | [] [] | | |
503 | gnupg | [] | | |
504 | gpe-aerial | [] [] [] [] | | |
505 | gpe-beam | [] [] [] [] | | |
506 | gpe-calendar | [] [] [] [] | | |
507 | gpe-clock | [] [] [] [] | | |
508 | gpe-conf | [] [] [] [] | | |
509 | gpe-contacts | [] [] [] [] | | |
510 | gpe-edit | [] [] [] [] | | |
511 | gpe-go | [] [] [] | | |
512 | gpe-login | [] [] [] [] | | |
513 | gpe-ownerinfo | [] [] [] [] | | |
514 | gpe-sketchbook | [] [] [] [] | | |
515 | gpe-su | [] [] [] [] | | |
516 | gpe-taskmanager | [] [] [] [] | | |
517 | gpe-timesheet | [] [] [] [] | | |
518 | gpe-today | [] [] [] [] | | |
519 | gpe-todo | [] [] [] [] | | |
520 | gphoto2 | [] | | |
521 | gprof | [] [] | | |
522 | gpsdrive | () () [] | | |
523 | gramadoir | () [] | | |
524 | grep | [] [] [] [] [] | | |
525 | gretl | | | |
526 | gtick | [] [] [] | | |
527 | hello | [] [] [] [] [] [] [] [] [] [] | | |
528 | id-utils | [] [] [] [] | | |
529 | indent | [] [] [] [] | | |
530 | iso_3166 | [] [] [] | | |
531 | iso_3166_1 | [] [] | | |
532 | iso_3166_2 | | | |
533 | iso_3166_3 | [] | | |
534 | iso_4217 | [] [] [] [] [] [] [] [] | | |
535 | iso_639 | [] | | |
536 | jpilot | () () | | |
537 | jtag | | | |
538 | jwhois | [] [] [] [] () | | |
539 | kbd | [] [] [] | | |
540 | latrine | [] | | |
541 | ld | | | |
542 | libc | [] [] [] [] | | |
543 | libgpewidget | [] [] [] | | |
544 | libiconv | [] [] [] [] [] | | |
545 | lifelines | | | |
546 | lilypond | | | |
547 | lingoteach | | | |
548 | lingoteach_lessons | | | |
549 | lynx | [] [] [] | | |
550 | m4 | [] [] [] [] [] | | |
551 | mailutils | [] [] [] | | |
552 | make | [] [] [] [] | | |
553 | man-db | [] | | |
554 | minicom | [] [] [] [] | | |
555 | mysecretdiary | [] [] [] | | |
556 | nano | [] [] [] [] [] | | |
557 | nano_1_0 | [] [] [] [] [] [] | | |
558 | opcodes | [] [] | | |
559 | parted | [] [] [] [] | | |
560 | ptx | [] [] [] [] [] [] [] [] | | |
561 | python | | | |
562 | radius | [] [] | | |
563 | recode | [] [] [] [] | | |
564 | rpm | [] [] [] | | |
565 | screem | | | |
566 | scrollkeeper | [] [] [] [] [] | | |
567 | sed | [] [] [] | | |
568 | sh-utils | [] [] | | |
569 | shared-mime-info | [] [] | | |
570 | sharutils | [] [] | | |
571 | silky | () | | |
572 | skencil | [] [] | | |
573 | sketch | [] [] | | |
574 | soundtracker | | | |
575 | sp | | | |
576 | tar | [] [] [] [] [] [] | | |
577 | texinfo | [] [] [] [] | | |
578 | textutils | [] [] | | |
579 | tin | | | |
580 | tp-robot | [] | | |
581 | tuxpaint | [] [] [] [] [] [] [] [] | | |
582 | unicode-han-tra... | | | |
583 | unicode-transla... | | | |
584 | util-linux | [] [] [] | | |
585 | vorbis-tools | [] [] [] | | |
586 | wastesedge | | | |
587 | wdiff | [] [] [] [] [] | | |
588 | wget | [] [] [] | | |
589 | xchat | [] [] [] | | |
590 | xfree86_xkb_xml | [] [] | | |
591 | xpad | [] [] | | |
592 | +-----------------------------------------------------+ | |
593 | lt lv mk mn ms mt nb nl nn no nso pl pt pt_BR ro ru | |
594 | 1 2 0 3 12 0 10 69 6 7 1 40 26 36 76 63 | |
595 | ||
596 | sk sl sr sv ta th tr uk ven vi wa xh zh_CN zh_TW zu | |
597 | +-----------------------------------------------------+ | |
598 | a2ps | [] [] [] [] | 16 | |
599 | aegis | | 0 | |
600 | ant-phone | | 3 | |
601 | anubis | [] [] | 9 | |
602 | ap-utils | () | 3 | |
603 | aspell | | 4 | |
604 | bash | | 9 | |
605 | batchelor | | 3 | |
606 | bfd | [] [] | 6 | |
607 | binutils | [] [] [] | 8 | |
608 | bison | [] [] | 14 | |
609 | bluez-pin | [] [] [] | 14 | |
610 | clisp | | 0 | |
611 | clisp | | 5 | |
612 | console-tools | | 3 | |
613 | coreutils | [] [] [] [] | 16 | |
614 | cpio | [] [] | 14 | |
615 | darkstat | [] [] [] () () | 12 | |
616 | diffutils | [] [] [] | 23 | |
617 | e2fsprogs | [] [] | 6 | |
618 | enscript | [] [] | 12 | |
619 | error | [] [] [] | 15 | |
620 | fetchmail | [] [] | 11 | |
621 | fileutils | [] [] [] [] [] | 17 | |
622 | findutils | [] [] [] [] [] [] | 29 | |
623 | flex | [] [] | 13 | |
624 | fslint | | 3 | |
625 | gas | [] | 3 | |
626 | gawk | [] [] | 12 | |
627 | gbiff | | 4 | |
628 | gcal | [] [] | 4 | |
629 | gcc | [] | 4 | |
630 | gettext | [] [] [] [] [] | 16 | |
631 | gettext-examples | [] [] [] [] [] | 14 | |
632 | gettext-runtime | [] [] [] [] [] [] [] [] | 22 | |
633 | gettext-tools | [] [] [] [] [] [] | 14 | |
634 | gimp-print | [] [] | 10 | |
635 | gliv | | 3 | |
636 | glunarclock | [] [] [] | 13 | |
637 | gnubiff | | 3 | |
638 | gnucash | [] [] | 9 | |
639 | gnucash-glossary | [] [] [] | 8 | |
640 | gnupg | [] [] [] [] | 17 | |
641 | gpe-aerial | [] | 7 | |
642 | gpe-beam | [] | 8 | |
643 | gpe-calendar | [] [] [] [] | 13 | |
644 | gpe-clock | [] [] [] | 10 | |
645 | gpe-conf | [] [] | 9 | |
646 | gpe-contacts | [] [] [] | 11 | |
647 | gpe-edit | [] [] [] [] [] | 12 | |
648 | gpe-go | | 5 | |
649 | gpe-login | [] [] [] [] [] | 13 | |
650 | gpe-ownerinfo | [] [] [] [] | 13 | |
651 | gpe-sketchbook | [] [] | 9 | |
652 | gpe-su | [] [] [] | 10 | |
653 | gpe-taskmanager | [] [] [] | 10 | |
654 | gpe-timesheet | [] [] [] [] | 12 | |
655 | gpe-today | [] [] [] [] [] | 13 | |
656 | gpe-todo | [] [] [] [] | 12 | |
657 | gphoto2 | [] [] [] | 11 | |
658 | gprof | [] [] | 9 | |
659 | gpsdrive | [] [] | 3 | |
660 | gramadoir | [] | 5 | |
661 | grep | [] [] [] [] | 26 | |
662 | gretl | | 3 | |
663 | gtick | | 7 | |
664 | hello | [] [] [] [] [] | 34 | |
665 | id-utils | [] [] | 12 | |
666 | indent | [] [] [] [] | 21 | |
667 | iso_3166 | [] [] [] [] [] [] [] | 27 | |
668 | iso_3166_1 | [] [] [] | 16 | |
669 | iso_3166_2 | | 0 | |
670 | iso_3166_3 | | 2 | |
671 | iso_4217 | [] [] [] [] [] [] | 24 | |
672 | iso_639 | | 1 | |
673 | jpilot | [] [] [] [] [] | 9 | |
674 | jtag | [] | 2 | |
675 | jwhois | () [] [] | 11 | |
676 | kbd | [] [] | 11 | |
677 | latrine | | 2 | |
678 | ld | [] [] | 5 | |
679 | libc | [] [] [] [] | 20 | |
680 | libgpewidget | [] [] [] [] | 13 | |
681 | libiconv | [] [] [] [] [] [] [] [] | 27 | |
682 | lifelines | [] | 2 | |
683 | lilypond | [] | 3 | |
684 | lingoteach | | 2 | |
685 | lingoteach_lessons | () | 0 | |
686 | lynx | [] [] [] | 14 | |
687 | m4 | [] [] | 15 | |
688 | mailutils | | 5 | |
689 | make | [] [] [] | 16 | |
690 | man-db | [] | 5 | |
691 | minicom | | 11 | |
692 | mysecretdiary | [] [] | 10 | |
693 | nano | [] [] [] [] | 17 | |
694 | nano_1_0 | [] [] [] | 17 | |
695 | opcodes | [] [] | 6 | |
696 | parted | [] [] [] | 15 | |
697 | ptx | [] [] | 22 | |
698 | python | | 0 | |
699 | radius | | 4 | |
700 | recode | [] [] [] | 20 | |
701 | rpm | [] [] | 9 | |
702 | screem | [] [] | 2 | |
703 | scrollkeeper | [] [] [] | 15 | |
704 | sed | [] [] [] [] [] [] | 24 | |
705 | sh-utils | [] [] | 14 | |
706 | shared-mime-info | [] [] | 7 | |
707 | sharutils | [] [] [] [] | 17 | |
708 | silky | () | 3 | |
709 | skencil | [] | 6 | |
710 | sketch | [] | 6 | |
711 | soundtracker | [] [] | 7 | |
712 | sp | [] | 3 | |
713 | tar | [] [] [] [] [] | 24 | |
714 | texinfo | [] [] [] | 14 | |
715 | textutils | [] [] [] [] | 16 | |
716 | tin | | 1 | |
717 | tp-robot | | 2 | |
718 | tuxpaint | [] [] [] [] [] | 29 | |
719 | unicode-han-tra... | | 0 | |
720 | unicode-transla... | | 2 | |
721 | util-linux | [] [] | 15 | |
722 | vorbis-tools | | 8 | |
723 | wastesedge | | 0 | |
724 | wdiff | [] [] [] | 18 | |
725 | wget | [] [] [] [] [] [] [] [] | 24 | |
726 | xchat | [] [] [] [] [] | 15 | |
727 | xfree86_xkb_xml | [] [] [] [] [] | 11 | |
728 | xpad | | 5 | |
729 | +-----------------------------------------------------+ | |
730 | 63 teams sk sl sr sv ta th tr uk ven vi wa xh zh_CN zh_TW zu | |
731 | 131 domains 47 19 28 83 0 0 59 13 1 1 11 0 22 22 0 1373 | |
732 | ||
733 | Some counters in the preceding matrix are higher than the number of | |
734 | visible blocks let us expect. This is because a few extra PO files are | |
735 | used for implementing regional variants of languages, or language | |
736 | dialects. | |
737 | ||
738 | For a PO file in the matrix above to be effective, the package to | |
739 | which it applies should also have been internationalized and | |
740 | distributed as such by its maintainer. There might be an observable | |
741 | lag between the mere existence a PO file and its wide availability in a | |
742 | distribution. | |
743 | ||
744 | If January 2004 seems to be old, you may fetch a more recent copy of | |
745 | this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date | |
746 | matrix with full percentage details can be found at | |
747 | `http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. | |
748 | ||
749 | Using `gettext' in new packages | |
750 | =============================== | |
751 | ||
752 | If you are writing a freely available program and want to | |
753 | internationalize it you are welcome to use GNU `gettext' in your | |
754 | package. Of course you have to respect the GNU Library General Public | |
755 | License which covers the use of the GNU `gettext' library. This means | |
756 | in particular that even non-free programs can use `libintl' as a shared | |
757 | library, whereas only free software can use `libintl' as a static | |
758 | library or use modified versions of `libintl'. | |
759 | ||
760 | Once the sources are changed appropriately and the setup can handle | |
761 | the use of `gettext' the only thing missing are the translations. The | |
762 | Free Translation Project is also available for packages which are not | |
763 | developed inside the GNU project. Therefore the information given above | |
764 | applies also for every other Free Software Project. Contact | |
765 | `translation@iro.umontreal.ca' to make the `.pot' files available to | |
766 | the translation teams. | |
767 | ||
0 | <https://www.gnu.org/software/gettext/manual/html_node/Users.html> |
77 | 77 | "$prog" "$@" || exit 1 |
78 | 78 | } |
79 | 79 | |
80 | register autopoint "${AUTOPOINT:-autopoint}" '' '' $OPT | |
80 | register autopoint "${AUTOPOINT:-autopoint}" '' '' $OPT -f | |
81 | 81 | register libtoolize "${LIBTOOLIZE:-libtoolize}" '' '' $OPT --install --copy --automake |
82 | 82 | register aclocal "${ACLOCAL:-aclocal}" '' '' $OPT -I m4 |
83 | 83 | register autoconf "${AUTOCONF:-autoconf}" '' '' $OPT -I m4 |
1 | 1 | # Output a system dependent set of variables, describing how to set the |
2 | 2 | # run time search path of shared libraries in an executable. |
3 | 3 | # |
4 | # Copyright 1996-2003 Free Software Foundation, Inc. | |
4 | # Copyright 1996-2020 Free Software Foundation, Inc. | |
5 | 5 | # Taken from GNU libtool, 2001 |
6 | 6 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
7 | 7 | # |
8 | # This program is free software; you can redistribute it and/or modify | |
9 | # it under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 2 of the License, or | |
11 | # (at your option) any later version. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, but | |
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | # General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program; if not, write to the Free Software | |
20 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
21 | # | |
22 | # As a special exception to the GNU General Public License, if you | |
23 | # distribute this file as part of a program that contains a | |
24 | # configuration script generated by Autoconf, you may include it under | |
25 | # the same distribution terms that you use for the rest of that program. | |
8 | # This file is free software; the Free Software Foundation gives | |
9 | # unlimited permission to copy and/or distribute it, with or without | |
10 | # modifications, as long as this notice is preserved. | |
26 | 11 | # |
27 | 12 | # The first argument passed to this file is the canonical host specification, |
28 | 13 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
39 | 24 | # known workaround is to choose shorter directory names for the build |
40 | 25 | # directory and/or the installation directory. |
41 | 26 | |
42 | # All known linkers require a `.a' archive for static linking (except M$VC, | |
27 | # All known linkers require a '.a' archive for static linking (except MSVC, | |
43 | 28 | # which needs '.lib'). |
44 | 29 | libext=a |
45 | 30 | shrext=.so |
49 | 34 | host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
50 | 35 | host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
51 | 36 | |
52 | # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. | |
37 | # Code taken from libtool.m4's _LT_CC_BASENAME. | |
38 | ||
39 | for cc_temp in $CC""; do | |
40 | case $cc_temp in | |
41 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
42 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
43 | \-*) ;; | |
44 | *) break;; | |
45 | esac | |
46 | done | |
47 | cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | |
48 | ||
49 | # Code taken from libtool.m4's _LT_COMPILER_PIC. | |
53 | 50 | |
54 | 51 | wl= |
55 | 52 | if test "$GCC" = yes; then |
59 | 56 | aix*) |
60 | 57 | wl='-Wl,' |
61 | 58 | ;; |
62 | mingw* | pw32* | os2*) | |
59 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
63 | 60 | ;; |
64 | 61 | hpux9* | hpux10* | hpux11*) |
65 | 62 | wl='-Wl,' |
67 | 64 | irix5* | irix6* | nonstopux*) |
68 | 65 | wl='-Wl,' |
69 | 66 | ;; |
67 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
68 | case $cc_basename in | |
69 | ecc*) | |
70 | wl='-Wl,' | |
71 | ;; | |
72 | icc* | ifort*) | |
73 | wl='-Wl,' | |
74 | ;; | |
75 | lf95*) | |
76 | wl='-Wl,' | |
77 | ;; | |
78 | nagfor*) | |
79 | wl='-Wl,-Wl,,' | |
80 | ;; | |
81 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
82 | wl='-Wl,' | |
83 | ;; | |
84 | ccc*) | |
85 | wl='-Wl,' | |
86 | ;; | |
87 | xl* | bgxl* | bgf* | mpixl*) | |
88 | wl='-Wl,' | |
89 | ;; | |
90 | como) | |
91 | wl='-lopt=' | |
92 | ;; | |
93 | *) | |
94 | case `$CC -V 2>&1 | sed 5q` in | |
95 | *Sun\ F* | *Sun*Fortran*) | |
96 | wl= | |
97 | ;; | |
98 | *Sun\ C*) | |
99 | wl='-Wl,' | |
100 | ;; | |
101 | esac | |
102 | ;; | |
103 | esac | |
104 | ;; | |
70 | 105 | newsos6) |
71 | 106 | ;; |
72 | linux*) | |
73 | case $CC in | |
74 | icc|ecc) | |
75 | wl='-Wl,' | |
76 | ;; | |
77 | ccc) | |
78 | wl='-Wl,' | |
79 | ;; | |
80 | esac | |
107 | *nto* | *qnx*) | |
81 | 108 | ;; |
82 | 109 | osf3* | osf4* | osf5*) |
83 | 110 | wl='-Wl,' |
84 | 111 | ;; |
85 | sco3.2v5*) | |
112 | rdos*) | |
86 | 113 | ;; |
87 | 114 | solaris*) |
88 | wl='-Wl,' | |
115 | case $cc_basename in | |
116 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
117 | wl='-Qoption ld ' | |
118 | ;; | |
119 | *) | |
120 | wl='-Wl,' | |
121 | ;; | |
122 | esac | |
89 | 123 | ;; |
90 | 124 | sunos4*) |
91 | 125 | wl='-Qoption ld ' |
92 | 126 | ;; |
93 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
127 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
94 | 128 | wl='-Wl,' |
95 | 129 | ;; |
96 | 130 | sysv4*MP*) |
131 | ;; | |
132 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
133 | wl='-Wl,' | |
134 | ;; | |
135 | unicos*) | |
136 | wl='-Wl,' | |
97 | 137 | ;; |
98 | 138 | uts4*) |
99 | 139 | ;; |
100 | 140 | esac |
101 | 141 | fi |
102 | 142 | |
103 | # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. | |
143 | # Code taken from libtool.m4's _LT_LINKER_SHLIBS. | |
104 | 144 | |
105 | 145 | hardcode_libdir_flag_spec= |
106 | 146 | hardcode_libdir_separator= |
108 | 148 | hardcode_minus_L=no |
109 | 149 | |
110 | 150 | case "$host_os" in |
111 | cygwin* | mingw* | pw32*) | |
151 | cygwin* | mingw* | pw32* | cegcc*) | |
112 | 152 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
113 | 153 | # When not using gcc, we currently assume that we are using |
114 | 154 | # Microsoft Visual C++. |
116 | 156 | with_gnu_ld=no |
117 | 157 | fi |
118 | 158 | ;; |
159 | interix*) | |
160 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
161 | with_gnu_ld=yes | |
162 | ;; | |
119 | 163 | openbsd*) |
120 | 164 | with_gnu_ld=no |
121 | 165 | ;; |
123 | 167 | |
124 | 168 | ld_shlibs=yes |
125 | 169 | if test "$with_gnu_ld" = yes; then |
170 | # Set some defaults for GNU ld with shared library support. These | |
171 | # are reset later if shared libraries are not supported. Putting them | |
172 | # here allows them to be overridden if necessary. | |
173 | # Unlike libtool, we use -rpath here, not --rpath, since the documented | |
174 | # option of GNU ld is called -rpath, not --rpath. | |
175 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
126 | 176 | case "$host_os" in |
127 | aix3* | aix4* | aix5*) | |
177 | aix[3-9]*) | |
128 | 178 | # On AIX/PPC, the GNU linker is very broken |
129 | 179 | if test "$host_cpu" != ia64; then |
130 | 180 | ld_shlibs=no |
131 | 181 | fi |
132 | 182 | ;; |
133 | 183 | amigaos*) |
134 | hardcode_libdir_flag_spec='-L$libdir' | |
135 | hardcode_minus_L=yes | |
136 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
137 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
138 | # to version 4, is to share data among multiple programs linked | |
139 | # with the same dynamic library. Since this doesn't match the | |
140 | # behavior of shared libraries on other platforms, we can use | |
141 | # them. | |
142 | ld_shlibs=no | |
184 | case "$host_cpu" in | |
185 | powerpc) | |
186 | ;; | |
187 | m68k) | |
188 | hardcode_libdir_flag_spec='-L$libdir' | |
189 | hardcode_minus_L=yes | |
190 | ;; | |
191 | esac | |
143 | 192 | ;; |
144 | 193 | beos*) |
145 | 194 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
148 | 197 | ld_shlibs=no |
149 | 198 | fi |
150 | 199 | ;; |
151 | cygwin* | mingw* | pw32*) | |
200 | cygwin* | mingw* | pw32* | cegcc*) | |
152 | 201 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
153 | 202 | # no search path for DLLs. |
154 | 203 | hardcode_libdir_flag_spec='-L$libdir' |
158 | 207 | ld_shlibs=no |
159 | 208 | fi |
160 | 209 | ;; |
210 | haiku*) | |
211 | ;; | |
212 | interix[3-9]*) | |
213 | hardcode_direct=no | |
214 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
215 | ;; | |
216 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
217 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
218 | : | |
219 | else | |
220 | ld_shlibs=no | |
221 | fi | |
222 | ;; | |
161 | 223 | netbsd*) |
162 | 224 | ;; |
163 | solaris* | sysv5*) | |
225 | solaris*) | |
164 | 226 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
165 | 227 | ld_shlibs=no |
166 | 228 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
168 | 230 | else |
169 | 231 | ld_shlibs=no |
170 | 232 | fi |
233 | ;; | |
234 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
235 | case `$LD -v 2>&1` in | |
236 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
237 | ld_shlibs=no | |
238 | ;; | |
239 | *) | |
240 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
241 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
242 | else | |
243 | ld_shlibs=no | |
244 | fi | |
245 | ;; | |
246 | esac | |
171 | 247 | ;; |
172 | 248 | sunos4*) |
173 | 249 | hardcode_direct=yes |
180 | 256 | fi |
181 | 257 | ;; |
182 | 258 | esac |
183 | if test "$ld_shlibs" = yes; then | |
184 | # Unlike libtool, we use -rpath here, not --rpath, since the documented | |
185 | # option of GNU ld is called -rpath, not --rpath. | |
186 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
259 | if test "$ld_shlibs" = no; then | |
260 | hardcode_libdir_flag_spec= | |
187 | 261 | fi |
188 | 262 | else |
189 | 263 | case "$host_os" in |
197 | 271 | hardcode_direct=unsupported |
198 | 272 | fi |
199 | 273 | ;; |
200 | aix4* | aix5*) | |
274 | aix[4-9]*) | |
201 | 275 | if test "$host_cpu" = ia64; then |
202 | 276 | # On IA64, the linker does run time linking by default, so we don't |
203 | 277 | # have to do anything special. |
207 | 281 | # Test if we are trying to use run time linking or normal |
208 | 282 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
209 | 283 | # need to do runtime linking. |
210 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
284 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
211 | 285 | for ld_flag in $LDFLAGS; do |
212 | 286 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
213 | 287 | aix_use_runtimelinking=yes |
214 | 288 | break |
215 | 289 | fi |
216 | 290 | done |
291 | ;; | |
217 | 292 | esac |
218 | 293 | fi |
219 | 294 | hardcode_direct=yes |
225 | 300 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
226 | 301 | then |
227 | 302 | # We have reworked collect2 |
228 | hardcode_direct=yes | |
303 | : | |
229 | 304 | else |
230 | 305 | # We have old collect2 |
231 | 306 | hardcode_direct=unsupported |
233 | 308 | hardcode_libdir_flag_spec='-L$libdir' |
234 | 309 | hardcode_libdir_separator= |
235 | 310 | fi |
311 | ;; | |
236 | 312 | esac |
237 | 313 | fi |
238 | 314 | # Begin _LT_AC_SYS_LIBPATH_AIX. |
260 | 336 | fi |
261 | 337 | ;; |
262 | 338 | amigaos*) |
263 | hardcode_libdir_flag_spec='-L$libdir' | |
264 | hardcode_minus_L=yes | |
265 | # see comment about different semantics on the GNU ld section | |
266 | ld_shlibs=no | |
267 | ;; | |
268 | bsdi4*) | |
269 | ;; | |
270 | cygwin* | mingw* | pw32*) | |
339 | case "$host_cpu" in | |
340 | powerpc) | |
341 | ;; | |
342 | m68k) | |
343 | hardcode_libdir_flag_spec='-L$libdir' | |
344 | hardcode_minus_L=yes | |
345 | ;; | |
346 | esac | |
347 | ;; | |
348 | bsdi[45]*) | |
349 | ;; | |
350 | cygwin* | mingw* | pw32* | cegcc*) | |
271 | 351 | # When not using gcc, we currently assume that we are using |
272 | 352 | # Microsoft Visual C++. |
273 | 353 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
276 | 356 | libext=lib |
277 | 357 | ;; |
278 | 358 | darwin* | rhapsody*) |
279 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | |
280 | hardcode_direct=no | |
359 | hardcode_direct=no | |
360 | if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then | |
361 | : | |
362 | else | |
363 | ld_shlibs=no | |
281 | 364 | fi |
282 | 365 | ;; |
283 | 366 | dgux*) |
284 | 367 | hardcode_libdir_flag_spec='-L$libdir' |
285 | 368 | ;; |
286 | freebsd1*) | |
287 | ld_shlibs=no | |
288 | ;; | |
289 | freebsd2.2*) | |
290 | hardcode_libdir_flag_spec='-R$libdir' | |
291 | hardcode_direct=yes | |
292 | ;; | |
293 | freebsd2*) | |
369 | freebsd2.[01]*) | |
294 | 370 | hardcode_direct=yes |
295 | 371 | hardcode_minus_L=yes |
296 | 372 | ;; |
297 | freebsd*) | |
373 | freebsd* | dragonfly*) | |
298 | 374 | hardcode_libdir_flag_spec='-R$libdir' |
299 | 375 | hardcode_direct=yes |
300 | 376 | ;; |
306 | 382 | # but as the default location of the library. |
307 | 383 | hardcode_minus_L=yes |
308 | 384 | ;; |
309 | hpux10* | hpux11*) | |
385 | hpux10*) | |
310 | 386 | if test "$with_gnu_ld" = no; then |
311 | case "$host_cpu" in | |
312 | hppa*64*) | |
313 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
314 | hardcode_libdir_separator=: | |
387 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
388 | hardcode_libdir_separator=: | |
389 | hardcode_direct=yes | |
390 | # hardcode_minus_L: Not really in the search PATH, | |
391 | # but as the default location of the library. | |
392 | hardcode_minus_L=yes | |
393 | fi | |
394 | ;; | |
395 | hpux11*) | |
396 | if test "$with_gnu_ld" = no; then | |
397 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
398 | hardcode_libdir_separator=: | |
399 | case $host_cpu in | |
400 | hppa*64*|ia64*) | |
315 | 401 | hardcode_direct=no |
316 | 402 | ;; |
317 | ia64*) | |
318 | hardcode_libdir_flag_spec='-L$libdir' | |
319 | hardcode_direct=no | |
320 | # hardcode_minus_L: Not really in the search PATH, | |
321 | # but as the default location of the library. | |
322 | hardcode_minus_L=yes | |
323 | ;; | |
324 | 403 | *) |
325 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
326 | hardcode_libdir_separator=: | |
327 | 404 | hardcode_direct=yes |
328 | 405 | # hardcode_minus_L: Not really in the search PATH, |
329 | 406 | # but as the default location of the library. |
345 | 422 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
346 | 423 | hardcode_libdir_separator=: |
347 | 424 | ;; |
425 | *nto* | *qnx*) | |
426 | ;; | |
348 | 427 | openbsd*) |
349 | hardcode_direct=yes | |
350 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
351 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
352 | else | |
353 | case "$host_os" in | |
354 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
355 | hardcode_libdir_flag_spec='-R$libdir' | |
356 | ;; | |
357 | *) | |
358 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
359 | ;; | |
360 | esac | |
428 | if test -f /usr/libexec/ld.so; then | |
429 | hardcode_direct=yes | |
430 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
431 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
432 | else | |
433 | case "$host_os" in | |
434 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
435 | hardcode_libdir_flag_spec='-R$libdir' | |
436 | ;; | |
437 | *) | |
438 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
439 | ;; | |
440 | esac | |
441 | fi | |
442 | else | |
443 | ld_shlibs=no | |
361 | 444 | fi |
362 | 445 | ;; |
363 | 446 | os2*) |
376 | 459 | hardcode_libdir_flag_spec='-rpath $libdir' |
377 | 460 | fi |
378 | 461 | hardcode_libdir_separator=: |
379 | ;; | |
380 | sco3.2v5*) | |
381 | 462 | ;; |
382 | 463 | solaris*) |
383 | 464 | hardcode_libdir_flag_spec='-R$libdir' |
407 | 488 | ld_shlibs=yes |
408 | 489 | fi |
409 | 490 | ;; |
410 | sysv4.2uw2*) | |
411 | hardcode_direct=yes | |
412 | hardcode_minus_L=no | |
413 | ;; | |
414 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
415 | ;; | |
416 | sysv5*) | |
417 | hardcode_libdir_flag_spec= | |
491 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
492 | ;; | |
493 | sysv5* | sco3.2v5* | sco5v6*) | |
494 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
495 | hardcode_libdir_separator=':' | |
418 | 496 | ;; |
419 | 497 | uts4*) |
420 | 498 | hardcode_libdir_flag_spec='-L$libdir' |
426 | 504 | fi |
427 | 505 | |
428 | 506 | # Check dynamic linker characteristics |
429 | # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. | |
507 | # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. | |
508 | # Unlike libtool.m4, here we don't care about _all_ names of the library, but | |
509 | # only about the one the linker finds when passed -lNAME. This is the last | |
510 | # element of library_names_spec in libtool.m4, or possibly two of them if the | |
511 | # linker has special search rules. | |
512 | library_names_spec= # the last element of library_names_spec in libtool.m4 | |
430 | 513 | libname_spec='lib$name' |
431 | 514 | case "$host_os" in |
432 | 515 | aix3*) |
433 | ;; | |
434 | aix4* | aix5*) | |
516 | library_names_spec='$libname.a' | |
517 | ;; | |
518 | aix[4-9]*) | |
519 | library_names_spec='$libname$shrext' | |
435 | 520 | ;; |
436 | 521 | amigaos*) |
522 | case "$host_cpu" in | |
523 | powerpc*) | |
524 | library_names_spec='$libname$shrext' ;; | |
525 | m68k) | |
526 | library_names_spec='$libname.a' ;; | |
527 | esac | |
437 | 528 | ;; |
438 | 529 | beos*) |
439 | ;; | |
440 | bsdi4*) | |
441 | ;; | |
442 | cygwin* | mingw* | pw32*) | |
530 | library_names_spec='$libname$shrext' | |
531 | ;; | |
532 | bsdi[45]*) | |
533 | library_names_spec='$libname$shrext' | |
534 | ;; | |
535 | cygwin* | mingw* | pw32* | cegcc*) | |
443 | 536 | shrext=.dll |
537 | library_names_spec='$libname.dll.a $libname.lib' | |
444 | 538 | ;; |
445 | 539 | darwin* | rhapsody*) |
446 | 540 | shrext=.dylib |
541 | library_names_spec='$libname$shrext' | |
447 | 542 | ;; |
448 | 543 | dgux*) |
449 | ;; | |
450 | freebsd1*) | |
451 | ;; | |
452 | freebsd*) | |
544 | library_names_spec='$libname$shrext' | |
545 | ;; | |
546 | freebsd[23].*) | |
547 | library_names_spec='$libname$shrext$versuffix' | |
548 | ;; | |
549 | freebsd* | dragonfly*) | |
550 | library_names_spec='$libname$shrext' | |
453 | 551 | ;; |
454 | 552 | gnu*) |
553 | library_names_spec='$libname$shrext' | |
554 | ;; | |
555 | haiku*) | |
556 | library_names_spec='$libname$shrext' | |
455 | 557 | ;; |
456 | 558 | hpux9* | hpux10* | hpux11*) |
457 | case "$host_cpu" in | |
559 | case $host_cpu in | |
458 | 560 | ia64*) |
459 | 561 | shrext=.so |
460 | 562 | ;; |
465 | 567 | shrext=.sl |
466 | 568 | ;; |
467 | 569 | esac |
570 | library_names_spec='$libname$shrext' | |
571 | ;; | |
572 | interix[3-9]*) | |
573 | library_names_spec='$libname$shrext' | |
468 | 574 | ;; |
469 | 575 | irix5* | irix6* | nonstopux*) |
576 | library_names_spec='$libname$shrext' | |
470 | 577 | case "$host_os" in |
471 | 578 | irix5* | nonstopux*) |
472 | 579 | libsuff= shlibsuff= |
483 | 590 | ;; |
484 | 591 | linux*oldld* | linux*aout* | linux*coff*) |
485 | 592 | ;; |
486 | linux*) | |
593 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
594 | library_names_spec='$libname$shrext' | |
595 | ;; | |
596 | knetbsd*-gnu) | |
597 | library_names_spec='$libname$shrext' | |
487 | 598 | ;; |
488 | 599 | netbsd*) |
600 | library_names_spec='$libname$shrext' | |
489 | 601 | ;; |
490 | 602 | newsos6) |
491 | ;; | |
492 | nto-qnx) | |
603 | library_names_spec='$libname$shrext' | |
604 | ;; | |
605 | *nto* | *qnx*) | |
606 | library_names_spec='$libname$shrext' | |
493 | 607 | ;; |
494 | 608 | openbsd*) |
609 | library_names_spec='$libname$shrext$versuffix' | |
495 | 610 | ;; |
496 | 611 | os2*) |
497 | 612 | libname_spec='$name' |
498 | 613 | shrext=.dll |
614 | library_names_spec='$libname.a' | |
499 | 615 | ;; |
500 | 616 | osf3* | osf4* | osf5*) |
501 | ;; | |
502 | sco3.2v5*) | |
617 | library_names_spec='$libname$shrext' | |
618 | ;; | |
619 | rdos*) | |
503 | 620 | ;; |
504 | 621 | solaris*) |
622 | library_names_spec='$libname$shrext' | |
505 | 623 | ;; |
506 | 624 | sunos4*) |
507 | ;; | |
508 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
625 | library_names_spec='$libname$shrext$versuffix' | |
626 | ;; | |
627 | sysv4 | sysv4.3*) | |
628 | library_names_spec='$libname$shrext' | |
509 | 629 | ;; |
510 | 630 | sysv4*MP*) |
631 | library_names_spec='$libname$shrext' | |
632 | ;; | |
633 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
634 | library_names_spec='$libname$shrext' | |
635 | ;; | |
636 | tpf*) | |
637 | library_names_spec='$libname$shrext' | |
511 | 638 | ;; |
512 | 639 | uts4*) |
640 | library_names_spec='$libname$shrext' | |
513 | 641 | ;; |
514 | 642 | esac |
515 | 643 | |
516 | 644 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
517 | 645 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` |
518 | 646 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` |
647 | escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | |
648 | escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | |
519 | 649 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
520 | 650 | |
521 | sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF | |
651 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF | |
522 | 652 | |
523 | 653 | # How to pass a linker flag through the compiler. |
524 | 654 | wl="$escaped_wl" |
528 | 658 | |
529 | 659 | # Shared library suffix (normally "so"). |
530 | 660 | shlibext="$shlibext" |
661 | ||
662 | # Format of library name prefix. | |
663 | libname_spec="$escaped_libname_spec" | |
664 | ||
665 | # Library names that the linker finds when passed -lNAME. | |
666 | library_names_spec="$escaped_library_names_spec" | |
531 | 667 | |
532 | 668 | # Flag to hardcode \$libdir into a binary during linking. |
533 | 669 | # This must work even if \$libdir does not exist. |
34 | 34 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
35 | 35 | LT_INIT |
36 | 36 | |
37 | AM_GNU_GETTEXT_VERSION([0.14.1]) | |
37 | AM_GNU_GETTEXT_VERSION([0.19.8]) | |
38 | 38 | AM_GNU_GETTEXT([external]) |
39 | 39 | ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'` |
40 | 40 |
0 | # gettext.m4 serial 28 (gettext-0.13) | |
1 | dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. | |
2 | dnl This file is free software, distributed under the terms of the GNU | |
3 | dnl General Public License. As a special exception to the GNU General | |
4 | dnl Public License, this file may be distributed as part of a program | |
5 | dnl that contains a configuration script generated by Autoconf, under | |
6 | dnl the same distribution terms as the rest of that program. | |
0 | # gettext.m4 serial 68 (gettext-0.19.8) | |
1 | dnl Copyright (C) 1995-2014, 2016 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. | |
7 | 5 | dnl |
8 | dnl This file can can be used in projects which are not available under | |
6 | dnl This file can be used in projects which are not available under | |
9 | 7 | dnl the GNU General Public License or the GNU Library General Public |
10 | 8 | dnl License but which still want to provide support for the GNU gettext |
11 | 9 | dnl functionality. |
12 | 10 | dnl Please note that the actual code of the GNU gettext library is covered |
13 | 11 | dnl by the GNU Library General Public License, and the rest of the GNU |
14 | dnl gettext package package is covered by the GNU General Public License. | |
12 | dnl gettext package is covered by the GNU General Public License. | |
15 | 13 | dnl They are *not* in the public domain. |
16 | 14 | |
17 | 15 | dnl Authors: |
18 | 16 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
19 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | |
17 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010. | |
20 | 18 | |
21 | 19 | dnl Macro to add for using GNU gettext. |
22 | 20 | |
36 | 34 | dnl 'need-formatstring-macros', then GNU gettext implementations that don't |
37 | 35 | dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. |
38 | 36 | dnl INTLDIR is used to find the intl libraries. If empty, |
39 | dnl the value `$(top_builddir)/intl/' is used. | |
37 | dnl the value '$(top_builddir)/intl/' is used. | |
40 | 38 | dnl |
41 | 39 | dnl The result of the configuration is one of three cases: |
42 | 40 | dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled |
61 | 59 | ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , |
62 | 60 | [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT |
63 | 61 | ])])])])]) |
62 | ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], | |
63 | [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) | |
64 | 64 | ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , |
65 | 65 | [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT |
66 | 66 | ])])])]) |
67 | define(gt_included_intl, ifelse([$1], [external], [no], [yes])) | |
68 | define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], [])) | |
67 | define([gt_included_intl], | |
68 | ifelse([$1], [external], | |
69 | ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), | |
70 | [yes])) | |
71 | define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) | |
72 | gt_NEEDS_INIT | |
73 | AM_GNU_GETTEXT_NEED([$2]) | |
69 | 74 | |
70 | 75 | AC_REQUIRE([AM_PO_SUBDIRS])dnl |
71 | 76 | ifelse(gt_included_intl, yes, [ |
79 | 84 | dnl Sometimes libintl requires libiconv, so first search for libiconv. |
80 | 85 | dnl Ideally we would do this search only after the |
81 | 86 | dnl if test "$USE_NLS" = "yes"; then |
82 | dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then | |
87 | dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | |
83 | 88 | dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT |
84 | 89 | dnl the configure script would need to contain the same shell code |
85 | 90 | dnl again, outside any 'if'. There are two solutions: |
91 | 96 | AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) |
92 | 97 | ]) |
93 | 98 | |
99 | dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation. | |
100 | gt_INTL_MACOSX | |
101 | ||
94 | 102 | dnl Set USE_NLS. |
95 | AM_NLS | |
103 | AC_REQUIRE([AM_NLS]) | |
96 | 104 | |
97 | 105 | ifelse(gt_included_intl, yes, [ |
98 | 106 | BUILD_INCLUDED_LIBINTL=no |
102 | 110 | LTLIBINTL= |
103 | 111 | POSUB= |
104 | 112 | |
113 | dnl Add a version number to the cache macros. | |
114 | case " $gt_needs " in | |
115 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
116 | *" need-ngettext "*) gt_api_version=2 ;; | |
117 | *) gt_api_version=1 ;; | |
118 | esac | |
119 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
120 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
121 | ||
105 | 122 | dnl If we use NLS figure out what method |
106 | 123 | if test "$USE_NLS" = "yes"; then |
107 | 124 | gt_use_preinstalled_gnugettext=no |
108 | 125 | ifelse(gt_included_intl, yes, [ |
109 | 126 | AC_MSG_CHECKING([whether included gettext is requested]) |
110 | AC_ARG_WITH(included-gettext, | |
127 | AC_ARG_WITH([included-gettext], | |
111 | 128 | [ --with-included-gettext use the GNU gettext library included here], |
112 | 129 | nls_cv_force_use_gnu_gettext=$withval, |
113 | 130 | nls_cv_force_use_gnu_gettext=no) |
114 | AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) | |
131 | AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) | |
115 | 132 | |
116 | 133 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
117 | 134 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
120 | 137 | dnl to use. If GNU gettext is available we use this. Else we have |
121 | 138 | dnl to fall back to GNU NLS library. |
122 | 139 | |
123 | dnl Add a version number to the cache macros. | |
124 | define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) | |
125 | define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) | |
126 | define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) | |
127 | ||
128 | AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, | |
129 | [AC_TRY_LINK([#include <libintl.h> | |
130 | ]ifelse([$2], [need-formatstring-macros], | |
131 | [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
140 | if test $gt_api_version -ge 3; then | |
141 | gt_revision_test_code=' | |
142 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
132 | 143 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
133 | 144 | #endif |
134 | 145 | changequote(,)dnl |
135 | 146 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
136 | 147 | changequote([,])dnl |
137 | ], [])[extern int _nl_msg_cat_cntr; | |
138 | extern int *_nl_domain_bindings;], | |
139 | [bindtextdomain ("", ""); | |
140 | return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], | |
141 | gt_cv_func_gnugettext_libc=yes, | |
142 | gt_cv_func_gnugettext_libc=no)]) | |
143 | ||
144 | if test "$gt_cv_func_gnugettext_libc" != "yes"; then | |
148 | ' | |
149 | else | |
150 | gt_revision_test_code= | |
151 | fi | |
152 | if test $gt_api_version -ge 2; then | |
153 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
154 | else | |
155 | gt_expression_test_code= | |
156 | fi | |
157 | ||
158 | AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], | |
159 | [AC_LINK_IFELSE( | |
160 | [AC_LANG_PROGRAM( | |
161 | [[ | |
162 | #include <libintl.h> | |
163 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
164 | extern int _nl_msg_cat_cntr; | |
165 | extern int *_nl_domain_bindings; | |
166 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) | |
167 | #else | |
168 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
169 | #endif | |
170 | $gt_revision_test_code | |
171 | ]], | |
172 | [[ | |
173 | bindtextdomain ("", ""); | |
174 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION | |
175 | ]])], | |
176 | [eval "$gt_func_gnugettext_libc=yes"], | |
177 | [eval "$gt_func_gnugettext_libc=no"])]) | |
178 | ||
179 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | |
145 | 180 | dnl Sometimes libintl requires libiconv, so first search for libiconv. |
146 | 181 | ifelse(gt_included_intl, yes, , [ |
147 | 182 | AM_ICONV_LINK |
152 | 187 | dnl even if libiconv doesn't exist. |
153 | 188 | AC_LIB_LINKFLAGS_BODY([intl]) |
154 | 189 | AC_CACHE_CHECK([for GNU gettext in libintl], |
155 | gt_cv_func_gnugettext_libintl, | |
190 | [$gt_func_gnugettext_libintl], | |
156 | 191 | [gt_save_CPPFLAGS="$CPPFLAGS" |
157 | 192 | CPPFLAGS="$CPPFLAGS $INCINTL" |
158 | 193 | gt_save_LIBS="$LIBS" |
159 | 194 | LIBS="$LIBS $LIBINTL" |
160 | 195 | dnl Now see whether libintl exists and does not depend on libiconv. |
161 | AC_TRY_LINK([#include <libintl.h> | |
162 | ]ifelse([$2], [need-formatstring-macros], | |
163 | [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
164 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
165 | #endif | |
166 | changequote(,)dnl | |
167 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
168 | changequote([,])dnl | |
169 | ], [])[extern int _nl_msg_cat_cntr; | |
196 | AC_LINK_IFELSE( | |
197 | [AC_LANG_PROGRAM( | |
198 | [[ | |
199 | #include <libintl.h> | |
200 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
201 | extern int _nl_msg_cat_cntr; | |
170 | 202 | extern |
171 | 203 | #ifdef __cplusplus |
172 | 204 | "C" |
173 | 205 | #endif |
174 | const char *_nl_expand_alias ();], | |
175 | [bindtextdomain ("", ""); | |
176 | return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], | |
177 | gt_cv_func_gnugettext_libintl=yes, | |
178 | gt_cv_func_gnugettext_libintl=no) | |
206 | const char *_nl_expand_alias (const char *); | |
207 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) | |
208 | #else | |
209 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
210 | #endif | |
211 | $gt_revision_test_code | |
212 | ]], | |
213 | [[ | |
214 | bindtextdomain ("", ""); | |
215 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION | |
216 | ]])], | |
217 | [eval "$gt_func_gnugettext_libintl=yes"], | |
218 | [eval "$gt_func_gnugettext_libintl=no"]) | |
179 | 219 | dnl Now see whether libintl exists and depends on libiconv. |
180 | if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then | |
220 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | |
181 | 221 | LIBS="$LIBS $LIBICONV" |
182 | AC_TRY_LINK([#include <libintl.h> | |
183 | ]ifelse([$2], [need-formatstring-macros], | |
184 | [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
185 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
186 | #endif | |
187 | changequote(,)dnl | |
188 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
189 | changequote([,])dnl | |
190 | ], [])[extern int _nl_msg_cat_cntr; | |
222 | AC_LINK_IFELSE( | |
223 | [AC_LANG_PROGRAM( | |
224 | [[ | |
225 | #include <libintl.h> | |
226 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
227 | extern int _nl_msg_cat_cntr; | |
191 | 228 | extern |
192 | 229 | #ifdef __cplusplus |
193 | 230 | "C" |
194 | 231 | #endif |
195 | const char *_nl_expand_alias ();], | |
196 | [bindtextdomain ("", ""); | |
197 | return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], | |
198 | [LIBINTL="$LIBINTL $LIBICONV" | |
199 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
200 | gt_cv_func_gnugettext_libintl=yes | |
201 | ]) | |
232 | const char *_nl_expand_alias (const char *); | |
233 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) | |
234 | #else | |
235 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
236 | #endif | |
237 | $gt_revision_test_code | |
238 | ]], | |
239 | [[ | |
240 | bindtextdomain ("", ""); | |
241 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION | |
242 | ]])], | |
243 | [LIBINTL="$LIBINTL $LIBICONV" | |
244 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
245 | eval "$gt_func_gnugettext_libintl=yes" | |
246 | ]) | |
202 | 247 | fi |
203 | 248 | CPPFLAGS="$gt_save_CPPFLAGS" |
204 | 249 | LIBS="$gt_save_LIBS"]) |
208 | 253 | dnl use it. But if this macro is used in GNU gettext, and GNU |
209 | 254 | dnl gettext is already preinstalled in libintl, we update this |
210 | 255 | dnl libintl. (Cf. the install rule in intl/Makefile.in.) |
211 | if test "$gt_cv_func_gnugettext_libc" = "yes" \ | |
212 | || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ | |
256 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ | |
257 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
213 | 258 | && test "$PACKAGE" != gettext-runtime \ |
214 | 259 | && test "$PACKAGE" != gettext-tools; }; then |
215 | 260 | gt_use_preinstalled_gnugettext=yes |
232 | 277 | dnl Mark actions used to generate GNU NLS library. |
233 | 278 | BUILD_INCLUDED_LIBINTL=yes |
234 | 279 | USE_INCLUDED_LIBINTL=yes |
235 | LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" | |
236 | LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" | |
280 | LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" | |
281 | LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" | |
237 | 282 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
238 | 283 | fi |
239 | 284 | |
285 | CATOBJEXT= | |
240 | 286 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
241 | 287 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
242 | 288 | dnl Mark actions to use GNU gettext tools. |
244 | 290 | fi |
245 | 291 | ]) |
246 | 292 | |
293 | if test -n "$INTL_MACOSX_LIBS"; then | |
294 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
295 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
296 | dnl Some extra flags are needed during linking. | |
297 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
298 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
299 | fi | |
300 | fi | |
301 | ||
247 | 302 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
248 | 303 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
249 | AC_DEFINE(ENABLE_NLS, 1, | |
304 | AC_DEFINE([ENABLE_NLS], [1], | |
250 | 305 | [Define to 1 if translation of program messages to the user's native language |
251 | 306 | is requested.]) |
252 | 307 | else |
259 | 314 | if test "$USE_NLS" = "yes"; then |
260 | 315 | AC_MSG_CHECKING([where the gettext function comes from]) |
261 | 316 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
262 | if test "$gt_cv_func_gnugettext_libintl" = "yes"; then | |
317 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
263 | 318 | gt_source="external libintl" |
264 | 319 | else |
265 | 320 | gt_source="libc" |
273 | 328 | if test "$USE_NLS" = "yes"; then |
274 | 329 | |
275 | 330 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
276 | if test "$gt_cv_func_gnugettext_libintl" = "yes"; then | |
331 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
277 | 332 | AC_MSG_CHECKING([how to link with libintl]) |
278 | 333 | AC_MSG_RESULT([$LIBINTL]) |
279 | 334 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) |
280 | 335 | fi |
281 | 336 | |
282 | 337 | dnl For backward compatibility. Some packages may be using this. |
283 | AC_DEFINE(HAVE_GETTEXT, 1, | |
338 | AC_DEFINE([HAVE_GETTEXT], [1], | |
284 | 339 | [Define if the GNU gettext() function is already present or preinstalled.]) |
285 | AC_DEFINE(HAVE_DCGETTEXT, 1, | |
340 | AC_DEFINE([HAVE_DCGETTEXT], [1], | |
286 | 341 | [Define if the GNU dcgettext() function is already present or preinstalled.]) |
287 | 342 | fi |
288 | 343 | |
298 | 353 | fi |
299 | 354 | |
300 | 355 | dnl Make all variables we use known to autoconf. |
301 | AC_SUBST(BUILD_INCLUDED_LIBINTL) | |
302 | AC_SUBST(USE_INCLUDED_LIBINTL) | |
303 | AC_SUBST(CATOBJEXT) | |
356 | AC_SUBST([BUILD_INCLUDED_LIBINTL]) | |
357 | AC_SUBST([USE_INCLUDED_LIBINTL]) | |
358 | AC_SUBST([CATOBJEXT]) | |
304 | 359 | |
305 | 360 | dnl For backward compatibility. Some configure.ins may be using this. |
306 | 361 | nls_cv_header_intl= |
308 | 363 | |
309 | 364 | dnl For backward compatibility. Some Makefiles may be using this. |
310 | 365 | DATADIRNAME=share |
311 | AC_SUBST(DATADIRNAME) | |
366 | AC_SUBST([DATADIRNAME]) | |
312 | 367 | |
313 | 368 | dnl For backward compatibility. Some Makefiles may be using this. |
314 | 369 | INSTOBJEXT=.mo |
315 | AC_SUBST(INSTOBJEXT) | |
370 | AC_SUBST([INSTOBJEXT]) | |
316 | 371 | |
317 | 372 | dnl For backward compatibility. Some Makefiles may be using this. |
318 | 373 | GENCAT=gencat |
319 | AC_SUBST(GENCAT) | |
374 | AC_SUBST([GENCAT]) | |
320 | 375 | |
321 | 376 | dnl For backward compatibility. Some Makefiles may be using this. |
377 | INTLOBJS= | |
322 | 378 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
323 | 379 | INTLOBJS="\$(GETTOBJS)" |
324 | 380 | fi |
325 | AC_SUBST(INTLOBJS) | |
381 | AC_SUBST([INTLOBJS]) | |
326 | 382 | |
327 | 383 | dnl Enable libtool support if the surrounding package wishes it. |
328 | 384 | INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix |
329 | AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) | |
385 | AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) | |
330 | 386 | ]) |
331 | 387 | |
332 | 388 | dnl For backward compatibility. Some Makefiles may be using this. |
333 | 389 | INTLLIBS="$LIBINTL" |
334 | AC_SUBST(INTLLIBS) | |
390 | AC_SUBST([INTLLIBS]) | |
335 | 391 | |
336 | 392 | dnl Make all documented variables known to autoconf. |
337 | AC_SUBST(LIBINTL) | |
338 | AC_SUBST(LTLIBINTL) | |
339 | AC_SUBST(POSUB) | |
393 | AC_SUBST([LIBINTL]) | |
394 | AC_SUBST([LTLIBINTL]) | |
395 | AC_SUBST([POSUB]) | |
340 | 396 | ]) |
341 | 397 | |
342 | 398 | |
343 | dnl Checks for all prerequisites of the intl subdirectory, | |
344 | dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, | |
345 | dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. | |
346 | AC_DEFUN([AM_INTL_SUBDIR], | |
399 | dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. | |
400 | m4_define([gt_NEEDS_INIT], | |
347 | 401 | [ |
348 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
349 | AC_REQUIRE([AM_MKINSTALLDIRS])dnl | |
350 | AC_REQUIRE([AC_PROG_CC])dnl | |
351 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
352 | AC_REQUIRE([AC_PROG_RANLIB])dnl | |
353 | AC_REQUIRE([AC_ISC_POSIX])dnl | |
354 | AC_REQUIRE([AC_HEADER_STDC])dnl | |
355 | AC_REQUIRE([AC_C_CONST])dnl | |
356 | AC_REQUIRE([bh_C_SIGNED])dnl | |
357 | AC_REQUIRE([AC_C_INLINE])dnl | |
358 | AC_REQUIRE([AC_TYPE_OFF_T])dnl | |
359 | AC_REQUIRE([AC_TYPE_SIZE_T])dnl | |
360 | AC_REQUIRE([jm_AC_TYPE_LONG_LONG])dnl | |
361 | AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl | |
362 | AC_REQUIRE([gt_TYPE_WCHAR_T])dnl | |
363 | AC_REQUIRE([gt_TYPE_WINT_T])dnl | |
364 | AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) | |
365 | AC_REQUIRE([jm_AC_HEADER_STDINT_H]) | |
366 | AC_REQUIRE([gt_TYPE_INTMAX_T]) | |
367 | AC_REQUIRE([gt_PRINTF_POSIX]) | |
368 | AC_REQUIRE([AC_FUNC_ALLOCA])dnl | |
369 | AC_REQUIRE([AC_FUNC_MMAP])dnl | |
370 | AC_REQUIRE([jm_GLIBC21])dnl | |
371 | AC_REQUIRE([gt_INTDIV0])dnl | |
372 | AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl | |
373 | AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl | |
374 | AC_REQUIRE([gt_INTTYPES_PRI])dnl | |
375 | AC_REQUIRE([gl_XSIZE])dnl | |
376 | ||
377 | AC_CHECK_TYPE([ptrdiff_t], , | |
378 | [AC_DEFINE([ptrdiff_t], [long], | |
379 | [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) | |
380 | ]) | |
381 | AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
382 | stdlib.h string.h unistd.h sys/param.h]) | |
383 | AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ | |
384 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ | |
385 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ | |
386 | __fsetlocking]) | |
387 | ||
388 | dnl Use the _snprintf function only if it is declared (because on NetBSD it | |
389 | dnl is defined as a weak alias of snprintf; we prefer to use the latter). | |
390 | gt_CHECK_DECL(_snprintf, [#include <stdio.h>]) | |
391 | gt_CHECK_DECL(_snwprintf, [#include <stdio.h>]) | |
392 | ||
393 | dnl Use the *_unlocked functions only if they are declared. | |
394 | dnl (because some of them were defined without being declared in Solaris | |
395 | dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built | |
396 | dnl on Solaris 2.5.1 to run on Solaris 2.6). | |
397 | dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. | |
398 | gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>]) | |
399 | gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>]) | |
400 | gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>]) | |
401 | ||
402 | case $gt_cv_func_printf_posix in | |
403 | *yes) HAVE_POSIX_PRINTF=1 ;; | |
404 | *) HAVE_POSIX_PRINTF=0 ;; | |
405 | esac | |
406 | AC_SUBST([HAVE_POSIX_PRINTF]) | |
407 | if test "$ac_cv_func_asprintf" = yes; then | |
408 | HAVE_ASPRINTF=1 | |
409 | else | |
410 | HAVE_ASPRINTF=0 | |
411 | fi | |
412 | AC_SUBST([HAVE_ASPRINTF]) | |
413 | if test "$ac_cv_func_snprintf" = yes; then | |
414 | HAVE_SNPRINTF=1 | |
415 | else | |
416 | HAVE_SNPRINTF=0 | |
417 | fi | |
418 | AC_SUBST([HAVE_SNPRINTF]) | |
419 | if test "$ac_cv_func_wprintf" = yes; then | |
420 | HAVE_WPRINTF=1 | |
421 | else | |
422 | HAVE_WPRINTF=0 | |
423 | fi | |
424 | AC_SUBST([HAVE_WPRINTF]) | |
425 | ||
426 | AM_ICONV | |
427 | AM_LANGINFO_CODESET | |
428 | if test $ac_cv_header_locale_h = yes; then | |
429 | AM_LC_MESSAGES | |
430 | fi | |
431 | ||
432 | dnl intl/plural.c is generated from intl/plural.y. It requires bison, | |
433 | dnl because plural.y uses bison specific features. It requires at least | |
434 | dnl bison-1.26 because earlier versions generate a plural.c that doesn't | |
435 | dnl compile. | |
436 | dnl bison is only needed for the maintainer (who touches plural.y). But in | |
437 | dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put | |
438 | dnl the rule in general Makefile. Now, some people carelessly touch the | |
439 | dnl files or have a broken "make" program, hence the plural.c rule will | |
440 | dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not | |
441 | dnl present or too old. | |
442 | AC_CHECK_PROGS([INTLBISON], [bison]) | |
443 | if test -z "$INTLBISON"; then | |
444 | ac_verc_fail=yes | |
445 | else | |
446 | dnl Found it, now check the version. | |
447 | AC_MSG_CHECKING([version of bison]) | |
448 | changequote(<<,>>)dnl | |
449 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
450 | case $ac_prog_version in | |
451 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
452 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
453 | changequote([,])dnl | |
454 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
455 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
456 | esac | |
457 | AC_MSG_RESULT([$ac_prog_version]) | |
458 | fi | |
459 | if test $ac_verc_fail = yes; then | |
460 | INTLBISON=: | |
461 | fi | |
402 | m4_divert_text([DEFAULTS], [gt_needs=]) | |
403 | m4_define([gt_NEEDS_INIT], []) | |
462 | 404 | ]) |
463 | 405 | |
464 | 406 | |
465 | dnl gt_CHECK_DECL(FUNC, INCLUDES) | |
466 | dnl Check whether a function is declared. | |
467 | AC_DEFUN([gt_CHECK_DECL], | |
407 | dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) | |
408 | AC_DEFUN([AM_GNU_GETTEXT_NEED], | |
468 | 409 | [ |
469 | AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, | |
470 | [AC_TRY_COMPILE([$2], [ | |
471 | #ifndef $1 | |
472 | char *p = (char *) $1; | |
473 | #endif | |
474 | ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) | |
475 | if test $ac_cv_have_decl_$1 = yes; then | |
476 | gt_value=1 | |
477 | else | |
478 | gt_value=0 | |
479 | fi | |
480 | AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], | |
481 | [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) | |
410 | m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) | |
482 | 411 | ]) |
483 | 412 | |
484 | 413 | |
485 | 414 | dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) |
486 | 415 | AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) |
416 | ||
417 | ||
418 | dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) | |
419 | AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], []) |
0 | # iconv.m4 serial AM4 (gettext-0.11.3) | |
1 | dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. | |
2 | dnl This file is free software, distributed under the terms of the GNU | |
3 | dnl General Public License. As a special exception to the GNU General | |
4 | dnl Public License, this file may be distributed as part of a program | |
5 | dnl that contains a configuration script generated by Autoconf, under | |
6 | dnl the same distribution terms as the rest of that program. | |
0 | # iconv.m4 serial 19 (gettext-0.18.2) | |
1 | dnl Copyright (C) 2000-2002, 2007-2014, 2016 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. | |
7 | 5 | |
8 | 6 | dnl From Bruno Haible. |
9 | 7 | |
22 | 20 | [ |
23 | 21 | dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and |
24 | 22 | dnl those with the standalone portable GNU libiconv installed). |
23 | AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles | |
25 | 24 | |
26 | 25 | dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV |
27 | 26 | dnl accordingly. |
30 | 29 | dnl Add $INCICONV to CPPFLAGS before performing the following checks, |
31 | 30 | dnl because if the user has installed libiconv and not disabled its use |
32 | 31 | dnl via --without-libiconv-prefix, he wants to use it. The first |
33 | dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. | |
32 | dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed. | |
34 | 33 | am_save_CPPFLAGS="$CPPFLAGS" |
35 | 34 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) |
36 | 35 | |
37 | AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ | |
36 | AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ | |
38 | 37 | am_cv_func_iconv="no, consider installing GNU libiconv" |
39 | 38 | am_cv_lib_iconv=no |
40 | AC_TRY_LINK([#include <stdlib.h> | |
41 | #include <iconv.h>], | |
42 | [iconv_t cd = iconv_open("",""); | |
43 | iconv(cd,NULL,NULL,NULL,NULL); | |
44 | iconv_close(cd);], | |
45 | am_cv_func_iconv=yes) | |
39 | AC_LINK_IFELSE( | |
40 | [AC_LANG_PROGRAM( | |
41 | [[ | |
42 | #include <stdlib.h> | |
43 | #include <iconv.h> | |
44 | ]], | |
45 | [[iconv_t cd = iconv_open("",""); | |
46 | iconv(cd,NULL,NULL,NULL,NULL); | |
47 | iconv_close(cd);]])], | |
48 | [am_cv_func_iconv=yes]) | |
46 | 49 | if test "$am_cv_func_iconv" != yes; then |
47 | 50 | am_save_LIBS="$LIBS" |
48 | 51 | LIBS="$LIBS $LIBICONV" |
49 | AC_TRY_LINK([#include <stdlib.h> | |
50 | #include <iconv.h>], | |
51 | [iconv_t cd = iconv_open("",""); | |
52 | iconv(cd,NULL,NULL,NULL,NULL); | |
53 | iconv_close(cd);], | |
54 | am_cv_lib_iconv=yes | |
55 | am_cv_func_iconv=yes) | |
52 | AC_LINK_IFELSE( | |
53 | [AC_LANG_PROGRAM( | |
54 | [[ | |
55 | #include <stdlib.h> | |
56 | #include <iconv.h> | |
57 | ]], | |
58 | [[iconv_t cd = iconv_open("",""); | |
59 | iconv(cd,NULL,NULL,NULL,NULL); | |
60 | iconv_close(cd);]])], | |
61 | [am_cv_lib_iconv=yes] | |
62 | [am_cv_func_iconv=yes]) | |
56 | 63 | LIBS="$am_save_LIBS" |
57 | 64 | fi |
58 | 65 | ]) |
59 | 66 | if test "$am_cv_func_iconv" = yes; then |
60 | AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) | |
67 | AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ | |
68 | dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, | |
69 | dnl Solaris 10. | |
70 | am_save_LIBS="$LIBS" | |
71 | if test $am_cv_lib_iconv = yes; then | |
72 | LIBS="$LIBS $LIBICONV" | |
73 | fi | |
74 | am_cv_func_iconv_works=no | |
75 | for ac_iconv_const in '' 'const'; do | |
76 | AC_RUN_IFELSE( | |
77 | [AC_LANG_PROGRAM( | |
78 | [[ | |
79 | #include <iconv.h> | |
80 | #include <string.h> | |
81 | ||
82 | #ifndef ICONV_CONST | |
83 | # define ICONV_CONST $ac_iconv_const | |
84 | #endif | |
85 | ]], | |
86 | [[int result = 0; | |
87 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
88 | returns. */ | |
89 | { | |
90 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
91 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
92 | { | |
93 | static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ | |
94 | char buf[10]; | |
95 | ICONV_CONST char *inptr = input; | |
96 | size_t inbytesleft = strlen (input); | |
97 | char *outptr = buf; | |
98 | size_t outbytesleft = sizeof (buf); | |
99 | size_t res = iconv (cd_utf8_to_88591, | |
100 | &inptr, &inbytesleft, | |
101 | &outptr, &outbytesleft); | |
102 | if (res == 0) | |
103 | result |= 1; | |
104 | iconv_close (cd_utf8_to_88591); | |
105 | } | |
106 | } | |
107 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
108 | successful returns. */ | |
109 | { | |
110 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
111 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
112 | { | |
113 | static ICONV_CONST char input[] = "\263"; | |
114 | char buf[10]; | |
115 | ICONV_CONST char *inptr = input; | |
116 | size_t inbytesleft = strlen (input); | |
117 | char *outptr = buf; | |
118 | size_t outbytesleft = sizeof (buf); | |
119 | size_t res = iconv (cd_ascii_to_88591, | |
120 | &inptr, &inbytesleft, | |
121 | &outptr, &outbytesleft); | |
122 | if (res == 0) | |
123 | result |= 2; | |
124 | iconv_close (cd_ascii_to_88591); | |
125 | } | |
126 | } | |
127 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
128 | { | |
129 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
130 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
131 | { | |
132 | static ICONV_CONST char input[] = "\304"; | |
133 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
134 | ICONV_CONST char *inptr = input; | |
135 | size_t inbytesleft = 1; | |
136 | char *outptr = buf; | |
137 | size_t outbytesleft = 1; | |
138 | size_t res = iconv (cd_88591_to_utf8, | |
139 | &inptr, &inbytesleft, | |
140 | &outptr, &outbytesleft); | |
141 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
142 | result |= 4; | |
143 | iconv_close (cd_88591_to_utf8); | |
144 | } | |
145 | } | |
146 | #if 0 /* This bug could be worked around by the caller. */ | |
147 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
148 | { | |
149 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
150 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
151 | { | |
152 | static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
153 | char buf[50]; | |
154 | ICONV_CONST char *inptr = input; | |
155 | size_t inbytesleft = strlen (input); | |
156 | char *outptr = buf; | |
157 | size_t outbytesleft = sizeof (buf); | |
158 | size_t res = iconv (cd_88591_to_utf8, | |
159 | &inptr, &inbytesleft, | |
160 | &outptr, &outbytesleft); | |
161 | if ((int)res > 0) | |
162 | result |= 8; | |
163 | iconv_close (cd_88591_to_utf8); | |
164 | } | |
165 | } | |
166 | #endif | |
167 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
168 | provided. */ | |
169 | if (/* Try standardized names. */ | |
170 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
171 | /* Try IRIX, OSF/1 names. */ | |
172 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
173 | /* Try AIX names. */ | |
174 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
175 | /* Try HP-UX names. */ | |
176 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
177 | result |= 16; | |
178 | return result; | |
179 | ]])], | |
180 | [am_cv_func_iconv_works=yes], , | |
181 | [case "$host_os" in | |
182 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
183 | *) am_cv_func_iconv_works="guessing yes" ;; | |
184 | esac]) | |
185 | test "$am_cv_func_iconv_works" = no || break | |
186 | done | |
187 | LIBS="$am_save_LIBS" | |
188 | ]) | |
189 | case "$am_cv_func_iconv_works" in | |
190 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
191 | *) am_func_iconv=yes ;; | |
192 | esac | |
193 | else | |
194 | am_func_iconv=no am_cv_lib_iconv=no | |
195 | fi | |
196 | if test "$am_func_iconv" = yes; then | |
197 | AC_DEFINE([HAVE_ICONV], [1], | |
198 | [Define if you have the iconv() function and it works.]) | |
61 | 199 | fi |
62 | 200 | if test "$am_cv_lib_iconv" = yes; then |
63 | 201 | AC_MSG_CHECKING([how to link with libiconv]) |
69 | 207 | LIBICONV= |
70 | 208 | LTLIBICONV= |
71 | 209 | fi |
72 | AC_SUBST(LIBICONV) | |
73 | AC_SUBST(LTLIBICONV) | |
210 | AC_SUBST([LIBICONV]) | |
211 | AC_SUBST([LTLIBICONV]) | |
74 | 212 | ]) |
75 | 213 | |
76 | AC_DEFUN([AM_ICONV], | |
214 | dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to | |
215 | dnl avoid warnings like | |
216 | dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". | |
217 | dnl This is tricky because of the way 'aclocal' is implemented: | |
218 | dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. | |
219 | dnl Otherwise aclocal's initial scan pass would miss the macro definition. | |
220 | dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. | |
221 | dnl Otherwise aclocal would emit many "Use of uninitialized value $1" | |
222 | dnl warnings. | |
223 | m4_define([gl_iconv_AC_DEFUN], | |
224 | m4_version_prereq([2.64], | |
225 | [[AC_DEFUN_ONCE( | |
226 | [$1], [$2])]], | |
227 | [m4_ifdef([gl_00GNULIB], | |
228 | [[AC_DEFUN_ONCE( | |
229 | [$1], [$2])]], | |
230 | [[AC_DEFUN( | |
231 | [$1], [$2])]])])) | |
232 | gl_iconv_AC_DEFUN([AM_ICONV], | |
77 | 233 | [ |
78 | 234 | AM_ICONV_LINK |
79 | 235 | if test "$am_cv_func_iconv" = yes; then |
80 | 236 | AC_MSG_CHECKING([for iconv declaration]) |
81 | AC_CACHE_VAL(am_cv_proto_iconv, [ | |
82 | AC_TRY_COMPILE([ | |
237 | AC_CACHE_VAL([am_cv_proto_iconv], [ | |
238 | AC_COMPILE_IFELSE( | |
239 | [AC_LANG_PROGRAM( | |
240 | [[ | |
83 | 241 | #include <stdlib.h> |
84 | 242 | #include <iconv.h> |
85 | 243 | extern |
86 | 244 | #ifdef __cplusplus |
87 | 245 | "C" |
88 | 246 | #endif |
89 | #if defined(__STDC__) || defined(__cplusplus) | |
247 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) | |
90 | 248 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
91 | 249 | #else |
92 | 250 | size_t iconv(); |
93 | 251 | #endif |
94 | ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") | |
252 | ]], | |
253 | [[]])], | |
254 | [am_cv_proto_iconv_arg1=""], | |
255 | [am_cv_proto_iconv_arg1="const"]) | |
95 | 256 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) |
96 | 257 | am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
97 | AC_MSG_RESULT([$]{ac_t:- | |
98 | }[$]am_cv_proto_iconv) | |
99 | AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, | |
258 | AC_MSG_RESULT([ | |
259 | $am_cv_proto_iconv]) | |
260 | AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], | |
100 | 261 | [Define as const if the declaration of iconv() needs const.]) |
262 | dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>. | |
263 | m4_ifdef([gl_ICONV_H_DEFAULTS], | |
264 | [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) | |
265 | if test -n "$am_cv_proto_iconv_arg1"; then | |
266 | ICONV_CONST="const" | |
267 | fi | |
268 | ]) | |
101 | 269 | fi |
102 | 270 | ]) |
0 | # lib-ld.m4 serial 3 (gettext-0.13) | |
1 | dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. | |
2 | dnl This file is free software, distributed under the terms of the GNU | |
3 | dnl General Public License. As a special exception to the GNU General | |
4 | dnl Public License, this file may be distributed as part of a program | |
5 | dnl that contains a configuration script generated by Autoconf, under | |
6 | dnl the same distribution terms as the rest of that program. | |
0 | # lib-ld.m4 serial 6 | |
1 | dnl Copyright (C) 1996-2003, 2009-2016 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. | |
7 | 5 | |
8 | 6 | dnl Subroutines of libtool.m4, |
9 | dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision | |
10 | dnl with libtool.m4. | |
7 | dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid | |
8 | dnl collision with libtool.m4. | |
11 | 9 | |
12 | dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. | |
10 | dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no. | |
13 | 11 | AC_DEFUN([AC_LIB_PROG_LD_GNU], |
14 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, | |
15 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
12 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], | |
13 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. | |
16 | 14 | case `$LD -v 2>&1 </dev/null` in |
17 | 15 | *GNU* | *'with BFD'*) |
18 | acl_cv_prog_gnu_ld=yes ;; | |
16 | acl_cv_prog_gnu_ld=yes | |
17 | ;; | |
19 | 18 | *) |
20 | acl_cv_prog_gnu_ld=no ;; | |
19 | acl_cv_prog_gnu_ld=no | |
20 | ;; | |
21 | 21 | esac]) |
22 | 22 | with_gnu_ld=$acl_cv_prog_gnu_ld |
23 | 23 | ]) |
24 | 24 | |
25 | dnl From libtool-1.4. Sets the variable LD. | |
25 | dnl From libtool-2.4. Sets the variable LD. | |
26 | 26 | AC_DEFUN([AC_LIB_PROG_LD], |
27 | [AC_ARG_WITH(gnu-ld, | |
28 | [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], | |
29 | test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) | |
30 | AC_REQUIRE([AC_PROG_CC])dnl | |
27 | [AC_REQUIRE([AC_PROG_CC])dnl | |
31 | 28 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
29 | ||
30 | AC_ARG_WITH([gnu-ld], | |
31 | [AS_HELP_STRING([--with-gnu-ld], | |
32 | [assume the C compiler uses GNU ld [default=no]])], | |
33 | [test "$withval" = no || with_gnu_ld=yes], | |
34 | [with_gnu_ld=no])dnl | |
35 | ||
32 | 36 | # Prepare PATH_SEPARATOR. |
33 | 37 | # The user is always right. |
34 | 38 | if test "${PATH_SEPARATOR+set}" != set; then |
35 | echo "#! /bin/sh" >conf$$.sh | |
36 | echo "exit 0" >>conf$$.sh | |
37 | chmod +x conf$$.sh | |
38 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
39 | PATH_SEPARATOR=';' | |
40 | else | |
41 | PATH_SEPARATOR=: | |
42 | fi | |
43 | rm -f conf$$.sh | |
39 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which | |
40 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
41 | # so we have to set that as well for the test. | |
42 | PATH_SEPARATOR=: | |
43 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
44 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
45 | || PATH_SEPARATOR=';' | |
46 | } | |
44 | 47 | fi |
48 | ||
45 | 49 | ac_prog=ld |
46 | 50 | if test "$GCC" = yes; then |
47 | 51 | # Check if gcc -print-prog-name=ld gives a path. |
48 | AC_MSG_CHECKING([for ld used by GCC]) | |
52 | AC_MSG_CHECKING([for ld used by $CC]) | |
49 | 53 | case $host in |
50 | 54 | *-*-mingw*) |
51 | 55 | # gcc leaves a trailing carriage return which upsets mingw |
55 | 59 | esac |
56 | 60 | case $ac_prog in |
57 | 61 | # Accept absolute paths. |
58 | [[\\/]* | [A-Za-z]:[\\/]*)] | |
59 | [re_direlt='/[^/][^/]*/\.\./'] | |
60 | # Canonicalize the path of ld | |
61 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
62 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
63 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
62 | [[\\/]]* | ?:[[\\/]]*) | |
63 | re_direlt='/[[^/]][[^/]]*/\.\./' | |
64 | # Canonicalize the pathname of ld | |
65 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
66 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
67 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
64 | 68 | done |
65 | 69 | test -z "$LD" && LD="$ac_prog" |
66 | 70 | ;; |
78 | 82 | else |
79 | 83 | AC_MSG_CHECKING([for non-GNU ld]) |
80 | 84 | fi |
81 | AC_CACHE_VAL(acl_cv_path_LD, | |
85 | AC_CACHE_VAL([acl_cv_path_LD], | |
82 | 86 | [if test -z "$LD"; then |
83 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
87 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
84 | 88 | for ac_dir in $PATH; do |
89 | IFS="$acl_save_ifs" | |
85 | 90 | test -z "$ac_dir" && ac_dir=. |
86 | 91 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
87 | 92 | acl_cv_path_LD="$ac_dir/$ac_prog" |
88 | 93 | # Check to see if the program is GNU ld. I'd rather use --version, |
89 | # but apparently some GNU ld's only accept -v. | |
94 | # but apparently some variants of GNU ld only accept -v. | |
90 | 95 | # Break only if it was the GNU/non-GNU ld that we prefer. |
91 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
96 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
92 | 97 | *GNU* | *'with BFD'*) |
93 | test "$with_gnu_ld" != no && break ;; | |
98 | test "$with_gnu_ld" != no && break | |
99 | ;; | |
94 | 100 | *) |
95 | test "$with_gnu_ld" != yes && break ;; | |
101 | test "$with_gnu_ld" != yes && break | |
102 | ;; | |
96 | 103 | esac |
97 | 104 | fi |
98 | 105 | done |
99 | IFS="$ac_save_ifs" | |
106 | IFS="$acl_save_ifs" | |
100 | 107 | else |
101 | 108 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
102 | 109 | fi]) |
103 | 110 | LD="$acl_cv_path_LD" |
104 | 111 | if test -n "$LD"; then |
105 | AC_MSG_RESULT($LD) | |
112 | AC_MSG_RESULT([$LD]) | |
106 | 113 | else |
107 | AC_MSG_RESULT(no) | |
114 | AC_MSG_RESULT([no]) | |
108 | 115 | fi |
109 | 116 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
110 | 117 | AC_LIB_PROG_LD_GNU |
0 | # lib-link.m4 serial 4 (gettext-0.12) | |
1 | dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. | |
2 | dnl This file is free software, distributed under the terms of the GNU | |
3 | dnl General Public License. As a special exception to the GNU General | |
4 | dnl Public License, this file may be distributed as part of a program | |
5 | dnl that contains a configuration script generated by Autoconf, under | |
6 | dnl the same distribution terms as the rest of that program. | |
0 | # lib-link.m4 serial 26 (gettext-0.18.2) | |
1 | dnl Copyright (C) 2001-2016 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. | |
7 | 5 | |
8 | 6 | dnl From Bruno Haible. |
7 | ||
8 | AC_PREREQ([2.54]) | |
9 | 9 | |
10 | 10 | dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and |
11 | 11 | dnl the libraries corresponding to explicit and implicit dependencies. |
12 | 12 | dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and |
13 | 13 | dnl augments the CPPFLAGS variable. |
14 | dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname | |
15 | dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. | |
14 | 16 | AC_DEFUN([AC_LIB_LINKFLAGS], |
15 | 17 | [ |
16 | 18 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
17 | 19 | AC_REQUIRE([AC_LIB_RPATH]) |
18 | define([Name],[translit([$1],[./-], [___])]) | |
19 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | |
20 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | |
20 | pushdef([Name],[m4_translit([$1],[./+-], [____])]) | |
21 | pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], | |
22 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) | |
21 | 23 | AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ |
22 | 24 | AC_LIB_LINKFLAGS_BODY([$1], [$2]) |
23 | 25 | ac_cv_lib[]Name[]_libs="$LIB[]NAME" |
24 | 26 | ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" |
25 | 27 | ac_cv_lib[]Name[]_cppflags="$INC[]NAME" |
28 | ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" | |
26 | 29 | ]) |
27 | 30 | LIB[]NAME="$ac_cv_lib[]Name[]_libs" |
28 | 31 | LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" |
29 | 32 | INC[]NAME="$ac_cv_lib[]Name[]_cppflags" |
33 | LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" | |
30 | 34 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) |
31 | 35 | AC_SUBST([LIB]NAME) |
32 | 36 | AC_SUBST([LTLIB]NAME) |
37 | AC_SUBST([LIB]NAME[_PREFIX]) | |
33 | 38 | dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the |
34 | 39 | dnl results of this search when this library appears as a dependency. |
35 | 40 | HAVE_LIB[]NAME=yes |
36 | undefine([Name]) | |
37 | undefine([NAME]) | |
41 | popdef([NAME]) | |
42 | popdef([Name]) | |
38 | 43 | ]) |
39 | 44 | |
40 | dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) | |
45 | dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) | |
41 | 46 | dnl searches for libname and the libraries corresponding to explicit and |
42 | 47 | dnl implicit dependencies, together with the specified include files and |
43 | dnl the ability to compile and link the specified testcode. If found, it | |
44 | dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and | |
45 | dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and | |
48 | dnl the ability to compile and link the specified testcode. The missing-message | |
49 | dnl defaults to 'no' and may contain additional hints for the user. | |
50 | dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} | |
51 | dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and | |
46 | 52 | dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs |
47 | 53 | dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. |
54 | dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname | |
55 | dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. | |
48 | 56 | AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], |
49 | 57 | [ |
50 | 58 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
51 | 59 | AC_REQUIRE([AC_LIB_RPATH]) |
52 | define([Name],[translit([$1],[./-], [___])]) | |
53 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | |
54 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | |
60 | pushdef([Name],[m4_translit([$1],[./+-], [____])]) | |
61 | pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], | |
62 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) | |
55 | 63 | |
56 | 64 | dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME |
57 | 65 | dnl accordingly. |
65 | 73 | |
66 | 74 | AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ |
67 | 75 | ac_save_LIBS="$LIBS" |
68 | LIBS="$LIBS $LIB[]NAME" | |
69 | AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) | |
76 | dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, | |
77 | dnl because these -l options might require -L options that are present in | |
78 | dnl LIBS. -l options benefit only from the -L options listed before it. | |
79 | dnl Otherwise, add it to the front of LIBS, because it may be a static | |
80 | dnl library that depends on another static library that is present in LIBS. | |
81 | dnl Static libraries benefit only from the static libraries listed after | |
82 | dnl it. | |
83 | case " $LIB[]NAME" in | |
84 | *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; | |
85 | *) LIBS="$LIB[]NAME $LIBS" ;; | |
86 | esac | |
87 | AC_LINK_IFELSE( | |
88 | [AC_LANG_PROGRAM([[$3]], [[$4]])], | |
89 | [ac_cv_lib[]Name=yes], | |
90 | [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) | |
70 | 91 | LIBS="$ac_save_LIBS" |
71 | 92 | ]) |
72 | 93 | if test "$ac_cv_lib[]Name" = yes; then |
73 | 94 | HAVE_LIB[]NAME=yes |
74 | AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) | |
95 | AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) | |
75 | 96 | AC_MSG_CHECKING([how to link with lib[]$1]) |
76 | 97 | AC_MSG_RESULT([$LIB[]NAME]) |
77 | 98 | else |
81 | 102 | CPPFLAGS="$ac_save_CPPFLAGS" |
82 | 103 | LIB[]NAME= |
83 | 104 | LTLIB[]NAME= |
105 | LIB[]NAME[]_PREFIX= | |
84 | 106 | fi |
85 | 107 | AC_SUBST([HAVE_LIB]NAME) |
86 | 108 | AC_SUBST([LIB]NAME) |
87 | 109 | AC_SUBST([LTLIB]NAME) |
88 | undefine([Name]) | |
89 | undefine([NAME]) | |
110 | AC_SUBST([LIB]NAME[_PREFIX]) | |
111 | popdef([NAME]) | |
112 | popdef([Name]) | |
90 | 113 | ]) |
91 | 114 | |
92 | 115 | dnl Determine the platform dependent parameters needed to use rpath: |
93 | dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, | |
94 | dnl hardcode_direct, hardcode_minus_L. | |
116 | dnl acl_libext, | |
117 | dnl acl_shlibext, | |
118 | dnl acl_libname_spec, | |
119 | dnl acl_library_names_spec, | |
120 | dnl acl_hardcode_libdir_flag_spec, | |
121 | dnl acl_hardcode_libdir_separator, | |
122 | dnl acl_hardcode_direct, | |
123 | dnl acl_hardcode_minus_L. | |
95 | 124 | AC_DEFUN([AC_LIB_RPATH], |
96 | 125 | [ |
126 | dnl Tell automake >= 1.10 to complain if config.rpath is missing. | |
127 | m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) | |
97 | 128 | AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS |
98 | 129 | AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld |
99 | 130 | AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host |
100 | 131 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir |
101 | AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ | |
132 | AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ | |
102 | 133 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
103 | 134 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
104 | 135 | . ./conftest.sh |
106 | 137 | acl_cv_rpath=done |
107 | 138 | ]) |
108 | 139 | wl="$acl_cv_wl" |
109 | libext="$acl_cv_libext" | |
110 | shlibext="$acl_cv_shlibext" | |
111 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
112 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
113 | hardcode_direct="$acl_cv_hardcode_direct" | |
114 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
140 | acl_libext="$acl_cv_libext" | |
141 | acl_shlibext="$acl_cv_shlibext" | |
142 | acl_libname_spec="$acl_cv_libname_spec" | |
143 | acl_library_names_spec="$acl_cv_library_names_spec" | |
144 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
145 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
146 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
147 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
115 | 148 | dnl Determine whether the user wants rpath handling at all. |
116 | AC_ARG_ENABLE(rpath, | |
149 | AC_ARG_ENABLE([rpath], | |
117 | 150 | [ --disable-rpath do not hardcode runtime library paths], |
118 | 151 | :, enable_rpath=yes) |
119 | 152 | ]) |
120 | 153 | |
154 | dnl AC_LIB_FROMPACKAGE(name, package) | |
155 | dnl declares that libname comes from the given package. The configure file | |
156 | dnl will then not have a --with-libname-prefix option but a | |
157 | dnl --with-package-prefix option. Several libraries can come from the same | |
158 | dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar | |
159 | dnl macro call that searches for libname. | |
160 | AC_DEFUN([AC_LIB_FROMPACKAGE], | |
161 | [ | |
162 | pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], | |
163 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) | |
164 | define([acl_frompackage_]NAME, [$2]) | |
165 | popdef([NAME]) | |
166 | pushdef([PACK],[$2]) | |
167 | pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], | |
168 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) | |
169 | define([acl_libsinpackage_]PACKUP, | |
170 | m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1]) | |
171 | popdef([PACKUP]) | |
172 | popdef([PACK]) | |
173 | ]) | |
174 | ||
121 | 175 | dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and |
122 | 176 | dnl the libraries corresponding to explicit and implicit dependencies. |
123 | 177 | dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. |
178 | dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found | |
179 | dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. | |
124 | 180 | AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
125 | 181 | [ |
126 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | |
127 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | |
182 | AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | |
183 | pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], | |
184 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) | |
185 | pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) | |
186 | pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], | |
187 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) | |
188 | pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) | |
189 | dnl Autoconf >= 2.61 supports dots in --with options. | |
190 | pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)]) | |
128 | 191 | dnl By default, look in $includedir and $libdir. |
129 | 192 | use_additional=yes |
130 | 193 | AC_LIB_WITH_FINAL_PREFIX([ |
131 | 194 | eval additional_includedir=\"$includedir\" |
132 | 195 | eval additional_libdir=\"$libdir\" |
133 | 196 | ]) |
134 | AC_LIB_ARG_WITH([lib$1-prefix], | |
135 | [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib | |
136 | --without-lib$1-prefix don't search for lib$1 in includedir and libdir], | |
197 | AC_ARG_WITH(P_A_C_K[-prefix], | |
198 | [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib | |
199 | --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], | |
137 | 200 | [ |
138 | 201 | if test "X$withval" = "Xno"; then |
139 | 202 | use_additional=no |
145 | 208 | ]) |
146 | 209 | else |
147 | 210 | additional_includedir="$withval/include" |
148 | additional_libdir="$withval/lib" | |
211 | additional_libdir="$withval/$acl_libdirstem" | |
212 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
213 | && ! test -d "$withval/$acl_libdirstem"; then | |
214 | additional_libdir="$withval/$acl_libdirstem2" | |
215 | fi | |
149 | 216 | fi |
150 | 217 | fi |
151 | 218 | ]) |
154 | 221 | LIB[]NAME= |
155 | 222 | LTLIB[]NAME= |
156 | 223 | INC[]NAME= |
224 | LIB[]NAME[]_PREFIX= | |
225 | dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been | |
226 | dnl computed. So it has to be reset here. | |
227 | HAVE_LIB[]NAME= | |
157 | 228 | rpathdirs= |
158 | 229 | ltrpathdirs= |
159 | 230 | names_already_handled= |
173 | 244 | names_already_handled="$names_already_handled $name" |
174 | 245 | dnl See if it was already located by an earlier AC_LIB_LINKFLAGS |
175 | 246 | dnl or AC_LIB_HAVE_LINKFLAGS call. |
176 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
247 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` | |
177 | 248 | eval value=\"\$HAVE_LIB$uppername\" |
178 | 249 | if test -n "$value"; then |
179 | 250 | if test "$value" = yes; then |
193 | 264 | found_la= |
194 | 265 | found_so= |
195 | 266 | found_a= |
267 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
268 | if test -n "$acl_shlibext"; then | |
269 | shrext=".$acl_shlibext" # typically: shrext=.so | |
270 | else | |
271 | shrext= | |
272 | fi | |
196 | 273 | if test $use_additional = yes; then |
197 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
198 | found_dir="$additional_libdir" | |
199 | found_so="$additional_libdir/lib$name.$shlibext" | |
200 | if test -f "$additional_libdir/lib$name.la"; then | |
201 | found_la="$additional_libdir/lib$name.la" | |
274 | dir="$additional_libdir" | |
275 | dnl The same code as in the loop below: | |
276 | dnl First look for a shared library. | |
277 | if test -n "$acl_shlibext"; then | |
278 | if test -f "$dir/$libname$shrext"; then | |
279 | found_dir="$dir" | |
280 | found_so="$dir/$libname$shrext" | |
281 | else | |
282 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
283 | ver=`(cd "$dir" && \ | |
284 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
285 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
286 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
287 | | sed 1q ) 2>/dev/null` | |
288 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
289 | found_dir="$dir" | |
290 | found_so="$dir/$libname$shrext.$ver" | |
291 | fi | |
292 | else | |
293 | eval library_names=\"$acl_library_names_spec\" | |
294 | for f in $library_names; do | |
295 | if test -f "$dir/$f"; then | |
296 | found_dir="$dir" | |
297 | found_so="$dir/$f" | |
298 | break | |
299 | fi | |
300 | done | |
301 | fi | |
202 | 302 | fi |
203 | else | |
204 | if test -f "$additional_libdir/lib$name.$libext"; then | |
205 | found_dir="$additional_libdir" | |
206 | found_a="$additional_libdir/lib$name.$libext" | |
207 | if test -f "$additional_libdir/lib$name.la"; then | |
208 | found_la="$additional_libdir/lib$name.la" | |
209 | fi | |
303 | fi | |
304 | dnl Then look for a static library. | |
305 | if test "X$found_dir" = "X"; then | |
306 | if test -f "$dir/$libname.$acl_libext"; then | |
307 | found_dir="$dir" | |
308 | found_a="$dir/$libname.$acl_libext" | |
309 | fi | |
310 | fi | |
311 | if test "X$found_dir" != "X"; then | |
312 | if test -f "$dir/$libname.la"; then | |
313 | found_la="$dir/$libname.la" | |
210 | 314 | fi |
211 | 315 | fi |
212 | 316 | fi |
216 | 320 | case "$x" in |
217 | 321 | -L*) |
218 | 322 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
219 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
220 | found_dir="$dir" | |
221 | found_so="$dir/lib$name.$shlibext" | |
222 | if test -f "$dir/lib$name.la"; then | |
223 | found_la="$dir/lib$name.la" | |
224 | fi | |
225 | else | |
226 | if test -f "$dir/lib$name.$libext"; then | |
323 | dnl First look for a shared library. | |
324 | if test -n "$acl_shlibext"; then | |
325 | if test -f "$dir/$libname$shrext"; then | |
227 | 326 | found_dir="$dir" |
228 | found_a="$dir/lib$name.$libext" | |
229 | if test -f "$dir/lib$name.la"; then | |
230 | found_la="$dir/lib$name.la" | |
327 | found_so="$dir/$libname$shrext" | |
328 | else | |
329 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
330 | ver=`(cd "$dir" && \ | |
331 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
332 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
333 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
334 | | sed 1q ) 2>/dev/null` | |
335 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
336 | found_dir="$dir" | |
337 | found_so="$dir/$libname$shrext.$ver" | |
338 | fi | |
339 | else | |
340 | eval library_names=\"$acl_library_names_spec\" | |
341 | for f in $library_names; do | |
342 | if test -f "$dir/$f"; then | |
343 | found_dir="$dir" | |
344 | found_so="$dir/$f" | |
345 | break | |
346 | fi | |
347 | done | |
231 | 348 | fi |
349 | fi | |
350 | fi | |
351 | dnl Then look for a static library. | |
352 | if test "X$found_dir" = "X"; then | |
353 | if test -f "$dir/$libname.$acl_libext"; then | |
354 | found_dir="$dir" | |
355 | found_a="$dir/$libname.$acl_libext" | |
356 | fi | |
357 | fi | |
358 | if test "X$found_dir" != "X"; then | |
359 | if test -f "$dir/$libname.la"; then | |
360 | found_la="$dir/$libname.la" | |
232 | 361 | fi |
233 | 362 | fi |
234 | 363 | ;; |
245 | 374 | dnl Linking with a shared library. We attempt to hardcode its |
246 | 375 | dnl directory into the executable's runpath, unless it's the |
247 | 376 | dnl standard /usr/lib. |
248 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
377 | if test "$enable_rpath" = no \ | |
378 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
379 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
249 | 380 | dnl No hardcoding is needed. |
250 | 381 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
251 | 382 | else |
264 | 395 | ltrpathdirs="$ltrpathdirs $found_dir" |
265 | 396 | fi |
266 | 397 | dnl The hardcoding into $LIBNAME is system dependent. |
267 | if test "$hardcode_direct" = yes; then | |
398 | if test "$acl_hardcode_direct" = yes; then | |
268 | 399 | dnl Using DIR/libNAME.so during linking hardcodes DIR into the |
269 | 400 | dnl resulting binary. |
270 | 401 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
271 | 402 | else |
272 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
403 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
273 | 404 | dnl Use an explicit option to hardcode DIR into the resulting |
274 | 405 | dnl binary. |
275 | 406 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
300 | 431 | if test -z "$haveit"; then |
301 | 432 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" |
302 | 433 | fi |
303 | if test "$hardcode_minus_L" != no; then | |
434 | if test "$acl_hardcode_minus_L" != no; then | |
304 | 435 | dnl FIXME: Not sure whether we should use |
305 | 436 | dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" |
306 | 437 | dnl here. |
307 | 438 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
308 | 439 | else |
309 | dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH | |
440 | dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH | |
310 | 441 | dnl here, because this doesn't fit in flags passed to the |
311 | 442 | dnl compiler. So give up. No hardcoding. This affects only |
312 | 443 | dnl very old systems. |
331 | 462 | dnl Assume the include files are nearby. |
332 | 463 | additional_includedir= |
333 | 464 | case "$found_dir" in |
334 | */lib | */lib/) | |
335 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
465 | */$acl_libdirstem | */$acl_libdirstem/) | |
466 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
467 | if test "$name" = '$1'; then | |
468 | LIB[]NAME[]_PREFIX="$basedir" | |
469 | fi | |
470 | additional_includedir="$basedir/include" | |
471 | ;; | |
472 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
473 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
474 | if test "$name" = '$1'; then | |
475 | LIB[]NAME[]_PREFIX="$basedir" | |
476 | fi | |
336 | 477 | additional_includedir="$basedir/include" |
337 | 478 | ;; |
338 | 479 | esac |
349 | 490 | if test "X$additional_includedir" = "X/usr/local/include"; then |
350 | 491 | if test -n "$GCC"; then |
351 | 492 | case $host_os in |
352 | linux*) haveit=yes;; | |
493 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
353 | 494 | esac |
354 | 495 | fi |
355 | 496 | fi |
393 | 534 | dnl 3. if it's already present in $LDFLAGS or the already |
394 | 535 | dnl constructed $LIBNAME, |
395 | 536 | dnl 4. if it doesn't exist as a directory. |
396 | if test "X$additional_libdir" != "X/usr/lib"; then | |
537 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
538 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
397 | 539 | haveit= |
398 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
540 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
541 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
399 | 542 | if test -n "$GCC"; then |
400 | 543 | case $host_os in |
401 | linux*) haveit=yes;; | |
544 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
402 | 545 | esac |
403 | 546 | fi |
404 | 547 | fi |
494 | 637 | done |
495 | 638 | done |
496 | 639 | if test "X$rpathdirs" != "X"; then |
497 | if test -n "$hardcode_libdir_separator"; then | |
640 | if test -n "$acl_hardcode_libdir_separator"; then | |
498 | 641 | dnl Weird platform: only the last -rpath option counts, the user must |
499 | 642 | dnl pass all path elements in one option. We can arrange that for a |
500 | 643 | dnl single library, but not when more than one $LIBNAMEs are used. |
501 | 644 | alldirs= |
502 | 645 | for found_dir in $rpathdirs; do |
503 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
646 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
504 | 647 | done |
505 | dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. | |
648 | dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. | |
506 | 649 | acl_save_libdir="$libdir" |
507 | 650 | libdir="$alldirs" |
508 | eval flag=\"$hardcode_libdir_flag_spec\" | |
651 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
509 | 652 | libdir="$acl_save_libdir" |
510 | 653 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" |
511 | 654 | else |
513 | 656 | for found_dir in $rpathdirs; do |
514 | 657 | acl_save_libdir="$libdir" |
515 | 658 | libdir="$found_dir" |
516 | eval flag=\"$hardcode_libdir_flag_spec\" | |
659 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
517 | 660 | libdir="$acl_save_libdir" |
518 | 661 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" |
519 | 662 | done |
526 | 669 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" |
527 | 670 | done |
528 | 671 | fi |
672 | popdef([P_A_C_K]) | |
673 | popdef([PACKLIBS]) | |
674 | popdef([PACKUP]) | |
675 | popdef([PACK]) | |
676 | popdef([NAME]) | |
529 | 677 | ]) |
530 | 678 | |
531 | 679 | dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, |
548 | 696 | fi |
549 | 697 | done |
550 | 698 | ]) |
699 | ||
700 | dnl For those cases where a variable contains several -L and -l options | |
701 | dnl referring to unknown libraries and directories, this macro determines the | |
702 | dnl necessary additional linker options for the runtime path. | |
703 | dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) | |
704 | dnl sets LDADDVAR to linker options needed together with LIBSVALUE. | |
705 | dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, | |
706 | dnl otherwise linking without libtool is assumed. | |
707 | AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], | |
708 | [ | |
709 | AC_REQUIRE([AC_LIB_RPATH]) | |
710 | AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | |
711 | $1= | |
712 | if test "$enable_rpath" != no; then | |
713 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
714 | dnl Use an explicit option to hardcode directories into the resulting | |
715 | dnl binary. | |
716 | rpathdirs= | |
717 | next= | |
718 | for opt in $2; do | |
719 | if test -n "$next"; then | |
720 | dir="$next" | |
721 | dnl No need to hardcode the standard /usr/lib. | |
722 | if test "X$dir" != "X/usr/$acl_libdirstem" \ | |
723 | && test "X$dir" != "X/usr/$acl_libdirstem2"; then | |
724 | rpathdirs="$rpathdirs $dir" | |
725 | fi | |
726 | next= | |
727 | else | |
728 | case $opt in | |
729 | -L) next=yes ;; | |
730 | -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` | |
731 | dnl No need to hardcode the standard /usr/lib. | |
732 | if test "X$dir" != "X/usr/$acl_libdirstem" \ | |
733 | && test "X$dir" != "X/usr/$acl_libdirstem2"; then | |
734 | rpathdirs="$rpathdirs $dir" | |
735 | fi | |
736 | next= ;; | |
737 | *) next= ;; | |
738 | esac | |
739 | fi | |
740 | done | |
741 | if test "X$rpathdirs" != "X"; then | |
742 | if test -n ""$3""; then | |
743 | dnl libtool is used for linking. Use -R options. | |
744 | for dir in $rpathdirs; do | |
745 | $1="${$1}${$1:+ }-R$dir" | |
746 | done | |
747 | else | |
748 | dnl The linker is used for linking directly. | |
749 | if test -n "$acl_hardcode_libdir_separator"; then | |
750 | dnl Weird platform: only the last -rpath option counts, the user | |
751 | dnl must pass all path elements in one option. | |
752 | alldirs= | |
753 | for dir in $rpathdirs; do | |
754 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" | |
755 | done | |
756 | acl_save_libdir="$libdir" | |
757 | libdir="$alldirs" | |
758 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
759 | libdir="$acl_save_libdir" | |
760 | $1="$flag" | |
761 | else | |
762 | dnl The -rpath options are cumulative. | |
763 | for dir in $rpathdirs; do | |
764 | acl_save_libdir="$libdir" | |
765 | libdir="$dir" | |
766 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
767 | libdir="$acl_save_libdir" | |
768 | $1="${$1}${$1:+ }$flag" | |
769 | done | |
770 | fi | |
771 | fi | |
772 | fi | |
773 | fi | |
774 | fi | |
775 | AC_SUBST([$1]) | |
776 | ]) |
0 | # lib-prefix.m4 serial 3 (gettext-0.13) | |
1 | dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. | |
2 | dnl This file is free software, distributed under the terms of the GNU | |
3 | dnl General Public License. As a special exception to the GNU General | |
4 | dnl Public License, this file may be distributed as part of a program | |
5 | dnl that contains a configuration script generated by Autoconf, under | |
6 | dnl the same distribution terms as the rest of that program. | |
0 | # lib-prefix.m4 serial 7 (gettext-0.18) | |
1 | dnl Copyright (C) 2001-2005, 2008-2016 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. | |
7 | 5 | |
8 | 6 | dnl From Bruno Haible. |
9 | 7 | |
25 | 23 | AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) |
26 | 24 | AC_REQUIRE([AC_PROG_CC]) |
27 | 25 | AC_REQUIRE([AC_CANONICAL_HOST]) |
26 | AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | |
28 | 27 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
29 | 28 | dnl By default, look in $includedir and $libdir. |
30 | 29 | use_additional=yes |
46 | 45 | ]) |
47 | 46 | else |
48 | 47 | additional_includedir="$withval/include" |
49 | additional_libdir="$withval/lib" | |
48 | additional_libdir="$withval/$acl_libdirstem" | |
50 | 49 | fi |
51 | 50 | fi |
52 | 51 | ]) |
70 | 69 | if test "X$additional_includedir" = "X/usr/local/include"; then |
71 | 70 | if test -n "$GCC"; then |
72 | 71 | case $host_os in |
73 | linux*) haveit=yes;; | |
72 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
74 | 73 | esac |
75 | 74 | fi |
76 | 75 | fi |
88 | 87 | dnl 2. if it's already present in $LDFLAGS, |
89 | 88 | dnl 3. if it's /usr/local/lib and we are using GCC on Linux, |
90 | 89 | dnl 4. if it doesn't exist as a directory. |
91 | if test "X$additional_libdir" != "X/usr/lib"; then | |
90 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
92 | 91 | haveit= |
93 | 92 | for x in $LDFLAGS; do |
94 | 93 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
98 | 97 | fi |
99 | 98 | done |
100 | 99 | if test -z "$haveit"; then |
101 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
100 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
102 | 101 | if test -n "$GCC"; then |
103 | 102 | case $host_os in |
104 | 103 | linux*) haveit=yes;; |
152 | 151 | exec_prefix="$acl_save_exec_prefix" |
153 | 152 | prefix="$acl_save_prefix" |
154 | 153 | ]) |
154 | ||
155 | dnl AC_LIB_PREPARE_MULTILIB creates | |
156 | dnl - a variable acl_libdirstem, containing the basename of the libdir, either | |
157 | dnl "lib" or "lib64" or "lib/64", | |
158 | dnl - a variable acl_libdirstem2, as a secondary possible value for | |
159 | dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or | |
160 | dnl "lib/amd64". | |
161 | AC_DEFUN([AC_LIB_PREPARE_MULTILIB], | |
162 | [ | |
163 | dnl There is no formal standard regarding lib and lib64. | |
164 | dnl On glibc systems, the current practice is that on a system supporting | |
165 | dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under | |
166 | dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine | |
167 | dnl the compiler's default mode by looking at the compiler's library search | |
168 | dnl path. If at least one of its elements ends in /lib64 or points to a | |
169 | dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. | |
170 | dnl Otherwise we use the default, namely "lib". | |
171 | dnl On Solaris systems, the current practice is that on a system supporting | |
172 | dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under | |
173 | dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or | |
174 | dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. | |
175 | AC_REQUIRE([AC_CANONICAL_HOST]) | |
176 | acl_libdirstem=lib | |
177 | acl_libdirstem2= | |
178 | case "$host_os" in | |
179 | solaris*) | |
180 | dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment | |
181 | dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>. | |
182 | dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." | |
183 | dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the | |
184 | dnl symlink is missing, so we set acl_libdirstem2 too. | |
185 | AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], | |
186 | [AC_EGREP_CPP([sixtyfour bits], [ | |
187 | #ifdef _LP64 | |
188 | sixtyfour bits | |
189 | #endif | |
190 | ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) | |
191 | ]) | |
192 | if test $gl_cv_solaris_64bit = yes; then | |
193 | acl_libdirstem=lib/64 | |
194 | case "$host_cpu" in | |
195 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
196 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
197 | esac | |
198 | fi | |
199 | ;; | |
200 | *) | |
201 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
202 | if test -n "$searchpath"; then | |
203 | acl_save_IFS="${IFS= }"; IFS=":" | |
204 | for searchdir in $searchpath; do | |
205 | if test -d "$searchdir"; then | |
206 | case "$searchdir" in | |
207 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
208 | */../ | */.. ) | |
209 | # Better ignore directories of this form. They are misleading. | |
210 | ;; | |
211 | *) searchdir=`cd "$searchdir" && pwd` | |
212 | case "$searchdir" in | |
213 | */lib64 ) acl_libdirstem=lib64 ;; | |
214 | esac ;; | |
215 | esac | |
216 | fi | |
217 | done | |
218 | IFS="$acl_save_IFS" | |
219 | fi | |
220 | ;; | |
221 | esac | |
222 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
223 | ]) |
0 | # nls.m4 serial 1 (gettext-0.12) | |
1 | dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. | |
2 | dnl This file is free software, distributed under the terms of the GNU | |
3 | dnl General Public License. As a special exception to the GNU General | |
4 | dnl Public License, this file may be distributed as part of a program | |
5 | dnl that contains a configuration script generated by Autoconf, under | |
6 | dnl the same distribution terms as the rest of that program. | |
0 | # nls.m4 serial 5 (gettext-0.18) | |
1 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software | |
2 | dnl Foundation, Inc. | |
3 | dnl This file is free software; the Free Software Foundation | |
4 | dnl gives unlimited permission to copy and/or distribute it, | |
5 | dnl with or without modifications, as long as this notice is preserved. | |
7 | 6 | dnl |
8 | dnl This file can can be used in projects which are not available under | |
7 | dnl This file can be used in projects which are not available under | |
9 | 8 | dnl the GNU General Public License or the GNU Library General Public |
10 | 9 | dnl License but which still want to provide support for the GNU gettext |
11 | 10 | dnl functionality. |
12 | 11 | dnl Please note that the actual code of the GNU gettext library is covered |
13 | 12 | dnl by the GNU Library General Public License, and the rest of the GNU |
14 | dnl gettext package package is covered by the GNU General Public License. | |
13 | dnl gettext package is covered by the GNU General Public License. | |
15 | 14 | dnl They are *not* in the public domain. |
16 | 15 | |
17 | 16 | dnl Authors: |
18 | 17 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
19 | 18 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
20 | 19 | |
20 | AC_PREREQ([2.50]) | |
21 | ||
21 | 22 | AC_DEFUN([AM_NLS], |
22 | 23 | [ |
23 | 24 | AC_MSG_CHECKING([whether NLS is requested]) |
24 | 25 | dnl Default is enabled NLS |
25 | AC_ARG_ENABLE(nls, | |
26 | AC_ARG_ENABLE([nls], | |
26 | 27 | [ --disable-nls do not use Native Language Support], |
27 | 28 | USE_NLS=$enableval, USE_NLS=yes) |
28 | AC_MSG_RESULT($USE_NLS) | |
29 | AC_SUBST(USE_NLS) | |
29 | AC_MSG_RESULT([$USE_NLS]) | |
30 | AC_SUBST([USE_NLS]) | |
30 | 31 | ]) |
31 | ||
32 | AC_DEFUN([AM_MKINSTALLDIRS], | |
33 | [ | |
34 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | |
35 | dnl find the mkinstalldirs script in another subdir but $(top_srcdir). | |
36 | dnl Try to locate it. | |
37 | MKINSTALLDIRS= | |
38 | if test -n "$ac_aux_dir"; then | |
39 | case "$ac_aux_dir" in | |
40 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
41 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
42 | esac | |
43 | fi | |
44 | if test -z "$MKINSTALLDIRS"; then | |
45 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
46 | fi | |
47 | AC_SUBST(MKINSTALLDIRS) | |
48 | ]) |
0 | # po.m4 serial 3 (gettext-0.14) | |
1 | dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. | |
2 | dnl This file is free software, distributed under the terms of the GNU | |
3 | dnl General Public License. As a special exception to the GNU General | |
4 | dnl Public License, this file may be distributed as part of a program | |
5 | dnl that contains a configuration script generated by Autoconf, under | |
6 | dnl the same distribution terms as the rest of that program. | |
0 | # po.m4 serial 24 (gettext-0.19) | |
1 | dnl Copyright (C) 1995-2014, 2016 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. | |
7 | 5 | dnl |
8 | dnl This file can can be used in projects which are not available under | |
6 | dnl This file can be used in projects which are not available under | |
9 | 7 | dnl the GNU General Public License or the GNU Library General Public |
10 | 8 | dnl License but which still want to provide support for the GNU gettext |
11 | 9 | dnl functionality. |
12 | 10 | dnl Please note that the actual code of the GNU gettext library is covered |
13 | 11 | dnl by the GNU Library General Public License, and the rest of the GNU |
14 | dnl gettext package package is covered by the GNU General Public License. | |
12 | dnl gettext package is covered by the GNU General Public License. | |
15 | 13 | dnl They are *not* in the public domain. |
16 | 14 | |
17 | 15 | dnl Authors: |
18 | 16 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
19 | 17 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
18 | ||
19 | AC_PREREQ([2.60]) | |
20 | 20 | |
21 | 21 | dnl Checks for all prerequisites of the po subdirectory. |
22 | 22 | AC_DEFUN([AM_PO_SUBDIRS], |
23 | 23 | [ |
24 | 24 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
25 | 25 | AC_REQUIRE([AC_PROG_INSTALL])dnl |
26 | AC_REQUIRE([AM_MKINSTALLDIRS])dnl | |
26 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
27 | AC_REQUIRE([AC_PROG_SED])dnl | |
27 | 28 | AC_REQUIRE([AM_NLS])dnl |
29 | ||
30 | dnl Release version of the gettext macros. This is used to ensure that | |
31 | dnl the gettext macros and po/Makefile.in.in are in sync. | |
32 | AC_SUBST([GETTEXT_MACRO_VERSION], [0.19]) | |
28 | 33 | |
29 | 34 | dnl Perform the following tests also if --disable-nls has been given, |
30 | 35 | dnl because they are needed for "make dist" to work. |
33 | 38 | dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. |
34 | 39 | dnl The second test excludes FreeBSD msgfmt. |
35 | 40 | AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
36 | [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
41 | [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && | |
37 | 42 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], |
38 | 43 | :) |
39 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | |
44 | AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) | |
45 | ||
46 | dnl Test whether it is GNU msgfmt >= 0.15. | |
47 | changequote(,)dnl | |
48 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
49 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
50 | *) MSGFMT_015=$MSGFMT ;; | |
51 | esac | |
52 | changequote([,])dnl | |
53 | AC_SUBST([MSGFMT_015]) | |
54 | changequote(,)dnl | |
55 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
56 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
57 | *) GMSGFMT_015=$GMSGFMT ;; | |
58 | esac | |
59 | changequote([,])dnl | |
60 | AC_SUBST([GMSGFMT_015]) | |
40 | 61 | |
41 | 62 | dnl Search for GNU xgettext 0.12 or newer in the PATH. |
42 | 63 | dnl The first test excludes Solaris xgettext and early GNU xgettext versions. |
43 | 64 | dnl The second test excludes FreeBSD xgettext. |
44 | 65 | AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
45 | [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
66 | [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && | |
46 | 67 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], |
47 | 68 | :) |
48 | 69 | dnl Remove leftover from FreeBSD xgettext call. |
49 | 70 | rm -f messages.po |
50 | 71 | |
72 | dnl Test whether it is GNU xgettext >= 0.15. | |
73 | changequote(,)dnl | |
74 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
75 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
76 | *) XGETTEXT_015=$XGETTEXT ;; | |
77 | esac | |
78 | changequote([,])dnl | |
79 | AC_SUBST([XGETTEXT_015]) | |
80 | ||
51 | 81 | dnl Search for GNU msgmerge 0.11 or newer in the PATH. |
52 | 82 | AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, |
53 | [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :) | |
54 | ||
55 | dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. | |
56 | dnl Test whether we really found GNU msgfmt. | |
57 | if test "$GMSGFMT" != ":"; then | |
58 | dnl If it is no GNU msgfmt we define it as : so that the | |
59 | dnl Makefiles still can work. | |
60 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
61 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
62 | : ; | |
63 | else | |
64 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
65 | AC_MSG_RESULT( | |
66 | [found $GMSGFMT program is not GNU msgfmt; ignore it]) | |
67 | GMSGFMT=":" | |
68 | fi | |
69 | fi | |
70 | ||
71 | dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. | |
72 | dnl Test whether we really found GNU xgettext. | |
73 | if test "$XGETTEXT" != ":"; then | |
74 | dnl If it is no GNU xgettext we define it as : so that the | |
75 | dnl Makefiles still can work. | |
76 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
77 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
78 | : ; | |
79 | else | |
80 | AC_MSG_RESULT( | |
81 | [found xgettext program is not GNU xgettext; ignore it]) | |
82 | XGETTEXT=":" | |
83 | fi | |
84 | dnl Remove leftover from FreeBSD xgettext call. | |
85 | rm -f messages.po | |
86 | fi | |
87 | ||
88 | AC_OUTPUT_COMMANDS([ | |
83 | [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) | |
84 | ||
85 | dnl Installation directories. | |
86 | dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we | |
87 | dnl have to define it here, so that it can be used in po/Makefile. | |
88 | test -n "$localedir" || localedir='${datadir}/locale' | |
89 | AC_SUBST([localedir]) | |
90 | ||
91 | dnl Support for AM_XGETTEXT_OPTION. | |
92 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
93 | AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) | |
94 | ||
95 | AC_CONFIG_COMMANDS([po-directories], [[ | |
89 | 96 | for ac_file in $CONFIG_FILES; do |
90 | 97 | # Support "outfile[:infile[:infile...]]" |
91 | 98 | case "$ac_file" in |
95 | 102 | case "$ac_file" in */Makefile.in) |
96 | 103 | # Adjust a relative srcdir. |
97 | 104 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
98 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
105 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` | |
99 | 106 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
100 | 107 | # In autoconf-2.13 it is called $ac_given_srcdir. |
101 | 108 | # In autoconf-2.50 it is called $srcdir. |
105 | 112 | /*) top_srcdir="$ac_given_srcdir" ;; |
106 | 113 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
107 | 114 | esac |
115 | # Treat a directory as a PO directory if and only if it has a | |
116 | # POTFILES.in file. This allows packages to have multiple PO | |
117 | # directories under different names or in different locations. | |
108 | 118 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
109 | 119 | rm -f "$ac_dir/POTFILES" |
110 | 120 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
111 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
121 | gt_tab=`printf '\t'` | |
122 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
112 | 123 | POMAKEFILEDEPS="POTFILES.in" |
113 | 124 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
114 | 125 | # on $ac_dir but don't depend on user-specified configuration |
118 | 129 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
119 | 130 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
120 | 131 | fi |
121 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
122 | # Hide the ALL_LINGUAS assigment from automake. | |
132 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
133 | # Hide the ALL_LINGUAS assignment from automake < 1.5. | |
123 | 134 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
124 | 135 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
125 | 136 | else |
126 | 137 | # The set of available languages was given in configure.in. |
138 | # Hide the ALL_LINGUAS assignment from automake < 1.5. | |
127 | 139 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
128 | 140 | fi |
129 | 141 | # Compute POFILES |
193 | 205 | fi |
194 | 206 | ;; |
195 | 207 | esac |
196 | done], | |
208 | done]], | |
197 | 209 | [# Capture the value of obsolete ALL_LINGUAS because we need it to compute |
198 | 210 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
199 | # from automake. | |
211 | # from automake < 1.5. | |
200 | 212 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
201 | 213 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
202 | 214 | LINGUAS="${LINGUAS-%UNSET%}" |
215 | 227 | changequote(,)dnl |
216 | 228 | # Adjust a relative srcdir. |
217 | 229 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
218 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
230 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` | |
219 | 231 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
220 | 232 | # In autoconf-2.13 it is called $ac_given_srcdir. |
221 | 233 | # In autoconf-2.50 it is called $srcdir. |
243 | 255 | fi |
244 | 256 | |
245 | 257 | # A sed script that extracts the value of VARIABLE from a Makefile. |
258 | tab=`printf '\t'` | |
246 | 259 | sed_x_variable=' |
247 | 260 | # Test if the hold space is empty. |
248 | 261 | x |
250 | 263 | x |
251 | 264 | ta |
252 | 265 | # Yes it was empty. Look if we have the expected variable definition. |
253 | /^[ ]*VARIABLE[ ]*=/{ | |
266 | /^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{ | |
254 | 267 | # Seen the first line of the variable definition. |
255 | s/^[ ]*VARIABLE[ ]*=// | |
268 | s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=// | |
256 | 269 | ba |
257 | 270 | } |
258 | 271 | bd |
282 | 295 | changequote([,])dnl |
283 | 296 | |
284 | 297 | # Set POTFILES to the value of the Makefile variable POTFILES. |
285 | sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`" | |
298 | sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` | |
286 | 299 | POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` |
287 | 300 | # Compute POTFILES_DEPS as |
288 | 301 | # $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) |
297 | 310 | fi |
298 | 311 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
299 | 312 | # The LINGUAS file contains the set of available languages. |
300 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
313 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
301 | 314 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
302 | 315 | else |
303 | 316 | # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. |
304 | sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`" | |
317 | sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` | |
305 | 318 | ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` |
306 | 319 | fi |
307 | # Hide the ALL_LINGUAS assigment from automake. | |
320 | # Hide the ALL_LINGUAS assignment from automake < 1.5. | |
308 | 321 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
309 | 322 | # Compute POFILES |
310 | 323 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
347 | 360 | QMFILES="$QMFILES $srcdirpre$lang.qm" |
348 | 361 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
349 | 362 | MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" |
350 | frobbedlang=`echo $lang | sed -e 's/_/-/g'` | |
363 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | |
351 | 364 | RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" |
352 | 365 | done |
353 | 366 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
388 | 401 | QTCATALOGS="$QTCATALOGS $lang.qm" |
389 | 402 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
390 | 403 | TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" |
391 | frobbedlang=`echo $lang | sed -e 's/_/-/g'` | |
404 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | |
392 | 405 | CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" |
393 | 406 | done |
394 | 407 | fi |
395 | 408 | |
396 | 409 | sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" |
410 | tab=`printf '\t'` | |
397 | 411 | if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then |
398 | 412 | # Add dependencies that cannot be formulated as a simple suffix rule. |
399 | 413 | for lang in $ALL_LINGUAS; do |
400 | 414 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
401 | 415 | cat >> "$ac_file.tmp" <<EOF |
402 | 416 | $frobbedlang.msg: $lang.po |
403 | @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ | |
404 | \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | |
417 | ${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ | |
418 | ${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | |
405 | 419 | EOF |
406 | 420 | done |
407 | 421 | fi |
408 | 422 | if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then |
409 | 423 | # Add dependencies that cannot be formulated as a simple suffix rule. |
410 | 424 | for lang in $ALL_LINGUAS; do |
411 | frobbedlang=`echo $lang | sed -e 's/_/-/g'` | |
425 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | |
412 | 426 | cat >> "$ac_file.tmp" <<EOF |
413 | 427 | $frobbedlang/\$(DOMAIN).resources.dll: $lang.po |
414 | @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ | |
415 | \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | |
428 | ${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ | |
429 | ${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | |
416 | 430 | EOF |
417 | 431 | done |
418 | 432 | fi |
423 | 437 | fi |
424 | 438 | mv "$ac_file.tmp" "$ac_file" |
425 | 439 | ]) |
440 | ||
441 | dnl Initializes the accumulator used by AM_XGETTEXT_OPTION. | |
442 | AC_DEFUN([AM_XGETTEXT_OPTION_INIT], | |
443 | [ | |
444 | XGETTEXT_EXTRA_OPTIONS= | |
445 | ]) | |
446 | ||
447 | dnl Registers an option to be passed to xgettext in the po subdirectory. | |
448 | AC_DEFUN([AM_XGETTEXT_OPTION], | |
449 | [ | |
450 | AC_REQUIRE([AM_XGETTEXT_OPTION_INIT]) | |
451 | XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1" | |
452 | ]) |
0 | # progtest.m4 serial 3 (gettext-0.12) | |
1 | dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. | |
2 | dnl This file is free software, distributed under the terms of the GNU | |
3 | dnl General Public License. As a special exception to the GNU General | |
4 | dnl Public License, this file may be distributed as part of a program | |
5 | dnl that contains a configuration script generated by Autoconf, under | |
6 | dnl the same distribution terms as the rest of that program. | |
0 | # progtest.m4 serial 7 (gettext-0.18.2) | |
1 | dnl Copyright (C) 1996-2003, 2005, 2008-2016 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. | |
7 | 5 | dnl |
8 | dnl This file can can be used in projects which are not available under | |
6 | dnl This file can be used in projects which are not available under | |
9 | 7 | dnl the GNU General Public License or the GNU Library General Public |
10 | 8 | dnl License but which still want to provide support for the GNU gettext |
11 | 9 | dnl functionality. |
12 | 10 | dnl Please note that the actual code of the GNU gettext library is covered |
13 | 11 | dnl by the GNU Library General Public License, and the rest of the GNU |
14 | dnl gettext package package is covered by the GNU General Public License. | |
12 | dnl gettext package is covered by the GNU General Public License. | |
15 | 13 | dnl They are *not* in the public domain. |
16 | 14 | |
17 | 15 | dnl Authors: |
18 | 16 | dnl Ulrich Drepper <drepper@cygnus.com>, 1996. |
17 | ||
18 | AC_PREREQ([2.50]) | |
19 | 19 | |
20 | 20 | # Search path for a program which passes the given test. |
21 | 21 | |
26 | 26 | # Prepare PATH_SEPARATOR. |
27 | 27 | # The user is always right. |
28 | 28 | if test "${PATH_SEPARATOR+set}" != set; then |
29 | echo "#! /bin/sh" >conf$$.sh | |
30 | echo "exit 0" >>conf$$.sh | |
31 | chmod +x conf$$.sh | |
32 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
33 | PATH_SEPARATOR=';' | |
34 | else | |
35 | PATH_SEPARATOR=: | |
36 | fi | |
37 | rm -f conf$$.sh | |
29 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which | |
30 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
31 | # so we have to set that as well for the test. | |
32 | PATH_SEPARATOR=: | |
33 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
34 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
35 | || PATH_SEPARATOR=';' | |
36 | } | |
38 | 37 | fi |
39 | 38 | |
40 | 39 | # Find out how to test for executable files. Don't use a zero-byte file, |
54 | 53 | # Extract the first word of "$2", so it can be a program name with args. |
55 | 54 | set dummy $2; ac_word=[$]2 |
56 | 55 | AC_MSG_CHECKING([for $ac_word]) |
57 | AC_CACHE_VAL(ac_cv_path_$1, | |
56 | AC_CACHE_VAL([ac_cv_path_$1], | |
58 | 57 | [case "[$]$1" in |
59 | 58 | [[\\/]]* | ?:[[\\/]]*) |
60 | 59 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
66 | 65 | test -z "$ac_dir" && ac_dir=. |
67 | 66 | for ac_exec_ext in '' $ac_executable_extensions; do |
68 | 67 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
68 | echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD | |
69 | 69 | if [$3]; then |
70 | 70 | ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" |
71 | 71 | break 2 |
82 | 82 | esac])dnl |
83 | 83 | $1="$ac_cv_path_$1" |
84 | 84 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
85 | AC_MSG_RESULT([$]$1) | |
85 | AC_MSG_RESULT([$][$1]) | |
86 | 86 | else |
87 | AC_MSG_RESULT(no) | |
87 | AC_MSG_RESULT([no]) | |
88 | 88 | fi |
89 | AC_SUBST($1)dnl | |
89 | AC_SUBST([$1])dnl | |
90 | 90 | ]) |
0 | 0 | # Makefile variables for PO directory in any package using GNU gettext. |
1 | # | |
2 | # Copyright (C) 2003-2019 Free Software Foundation, Inc. | |
3 | # This file is free software; the Free Software Foundation gives | |
4 | # unlimited permission to use, copy, distribute, and modify it. | |
1 | 5 | |
2 | 6 | # Usually the message domain is the same as the package name. |
3 | 7 | DOMAIN = $(PACKAGE) |
19 | 23 | # their copyright. |
20 | 24 | COPYRIGHT_HOLDER = Alexey Gladkov <gladkov.alexey@gmail.com> |
21 | 25 | |
26 | # This tells whether or not to prepend "GNU " prefix to the package | |
27 | # name that gets inserted into the header of the $(DOMAIN).pot file. | |
28 | # Possible values are "yes", "no", or empty. If it is empty, try to | |
29 | # detect it automatically by scanning the files in $(top_srcdir) for | |
30 | # "GNU packagename" string. | |
31 | PACKAGE_GNU = | |
32 | ||
22 | 33 | # This is the email address or URL to which the translators shall report |
23 | 34 | # bugs in the untranslated strings: |
24 | 35 | # - Strings which are not entire sentences, see the maintainer guidelines |
38 | 49 | # This is the list of locale categories, beyond LC_MESSAGES, for which the |
39 | 50 | # message catalogs shall be used. It is usually empty. |
40 | 51 | EXTRA_LOCALE_CATEGORIES = |
52 | ||
53 | # This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' | |
54 | # context. Possible values are "yes" and "no". Set this to yes if the | |
55 | # package uses functions taking also a message context, like pgettext(), or | |
56 | # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. | |
57 | USE_MSGCTXT = no | |
58 | ||
59 | # These options get passed to msgmerge. | |
60 | # Useful options are in particular: | |
61 | # --previous to keep previous msgids of translated messages, | |
62 | # --quiet to reduce the verbosity. | |
63 | MSGMERGE_OPTIONS = | |
64 | ||
65 | # These options get passed to msginit. | |
66 | # If you want to disable line wrapping when writing PO files, add | |
67 | # --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and | |
68 | # MSGINIT_OPTIONS. | |
69 | MSGINIT_OPTIONS = | |
70 | ||
71 | # This tells whether or not to regenerate a PO file when $(DOMAIN).pot | |
72 | # has changed. Possible values are "yes" and "no". Set this to no if | |
73 | # the POT file is checked in the repository and the version control | |
74 | # program ignores timestamps. | |
75 | PO_DEPENDS_ON_POT = yes | |
76 | ||
77 | # This tells whether or not to forcibly update $(DOMAIN).pot and | |
78 | # regenerate PO files on "make dist". Possible values are "yes" and | |
79 | # "no". Set this to no if the POT file and PO files are maintained | |
80 | # externally. | |
81 | DIST_DEPENDS_ON_UPDATE_PO = yes |
74 | 74 | libkeymap/libkeymap.la \ |
75 | 75 | libkbdfile/libkbdfile.la \ |
76 | 76 | libcommon/libcommon.a \ |
77 | @INTLLIBS@ \ | |
77 | @LIBINTL@ \ | |
78 | 78 | $(CODE_COVERAGE_LIBS) |
79 | 79 | |
80 | 80 | install-exec-hook: |
13 | 13 | $(top_builddir)/src/libcommon/libcommon.a \ |
14 | 14 | $(top_builddir)/src/libkeymap/libkeymap.la \ |
15 | 15 | $(top_builddir)/src/libkbdfile/libkbdfile.la \ |
16 | @INTLLIBS@ $(CODE_COVERAGE_LIBS) | |
16 | @LIBINTL@ $(CODE_COVERAGE_LIBS) | |
17 | 17 | |
18 | 18 | noinst_PROGRAMS = \ |
19 | 19 | libkeymap-bkeymap \ |
11 | 11 | LDADD = \ |
12 | 12 | $(top_builddir)/src/libcommon/libcommon.a \ |
13 | 13 | $(top_builddir)/src/libkbdfile/libkbdfile.la \ |
14 | @INTLLIBS@ $(CODE_COVERAGE_LIBS) | |
14 | @LIBINTL@ $(CODE_COVERAGE_LIBS) | |
15 | 15 | |
16 | 16 | noinst_PROGRAMS = \ |
17 | 17 | libkbdfile-test01 \ |