Codebase list kbd / 0893f6c
Upgrade gettext infrastructure Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com> Alexey Gladkov 3 years ago
17 changed file(s) with 1237 addition(s) and 1414 deletion(s). Raw diff Collapse all Expand all
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>
7777 "$prog" "$@" || exit 1
7878 }
7979
80 register autopoint "${AUTOPOINT:-autopoint}" '' '' $OPT
80 register autopoint "${AUTOPOINT:-autopoint}" '' '' $OPT -f
8181 register libtoolize "${LIBTOOLIZE:-libtoolize}" '' '' $OPT --install --copy --automake
8282 register aclocal "${ACLOCAL:-aclocal}" '' '' $OPT -I m4
8383 register autoconf "${AUTOCONF:-autoconf}" '' '' $OPT -I m4
11 # Output a system dependent set of variables, describing how to set the
22 # run time search path of shared libraries in an executable.
33 #
4 # Copyright 1996-2003 Free Software Foundation, Inc.
4 # Copyright 1996-2020 Free Software Foundation, Inc.
55 # Taken from GNU libtool, 2001
66 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
77 #
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.
2611 #
2712 # The first argument passed to this file is the canonical host specification,
2813 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
3924 # known workaround is to choose shorter directory names for the build
4025 # directory and/or the installation directory.
4126
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,
4328 # which needs '.lib').
4429 libext=a
4530 shrext=.so
4934 host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5035 host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5136
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.
5350
5451 wl=
5552 if test "$GCC" = yes; then
5956 aix*)
6057 wl='-Wl,'
6158 ;;
62 mingw* | pw32* | os2*)
59 mingw* | cygwin* | pw32* | os2* | cegcc*)
6360 ;;
6461 hpux9* | hpux10* | hpux11*)
6562 wl='-Wl,'
6764 irix5* | irix6* | nonstopux*)
6865 wl='-Wl,'
6966 ;;
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 ;;
70105 newsos6)
71106 ;;
72 linux*)
73 case $CC in
74 icc|ecc)
75 wl='-Wl,'
76 ;;
77 ccc)
78 wl='-Wl,'
79 ;;
80 esac
107 *nto* | *qnx*)
81108 ;;
82109 osf3* | osf4* | osf5*)
83110 wl='-Wl,'
84111 ;;
85 sco3.2v5*)
112 rdos*)
86113 ;;
87114 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
89123 ;;
90124 sunos4*)
91125 wl='-Qoption ld '
92126 ;;
93 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
127 sysv4 | sysv4.2uw2* | sysv4.3*)
94128 wl='-Wl,'
95129 ;;
96130 sysv4*MP*)
131 ;;
132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
133 wl='-Wl,'
134 ;;
135 unicos*)
136 wl='-Wl,'
97137 ;;
98138 uts4*)
99139 ;;
100140 esac
101141 fi
102142
103 # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
143 # Code taken from libtool.m4's _LT_LINKER_SHLIBS.
104144
105145 hardcode_libdir_flag_spec=
106146 hardcode_libdir_separator=
108148 hardcode_minus_L=no
109149
110150 case "$host_os" in
111 cygwin* | mingw* | pw32*)
151 cygwin* | mingw* | pw32* | cegcc*)
112152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
113153 # When not using gcc, we currently assume that we are using
114154 # Microsoft Visual C++.
116156 with_gnu_ld=no
117157 fi
118158 ;;
159 interix*)
160 # we just hope/assume this is gcc and not c89 (= MSVC++)
161 with_gnu_ld=yes
162 ;;
119163 openbsd*)
120164 with_gnu_ld=no
121165 ;;
123167
124168 ld_shlibs=yes
125169 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'
126176 case "$host_os" in
127 aix3* | aix4* | aix5*)
177 aix[3-9]*)
128178 # On AIX/PPC, the GNU linker is very broken
129179 if test "$host_cpu" != ia64; then
130180 ld_shlibs=no
131181 fi
132182 ;;
133183 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
143192 ;;
144193 beos*)
145194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
148197 ld_shlibs=no
149198 fi
150199 ;;
151 cygwin* | mingw* | pw32*)
200 cygwin* | mingw* | pw32* | cegcc*)
152201 # hardcode_libdir_flag_spec is actually meaningless, as there is
153202 # no search path for DLLs.
154203 hardcode_libdir_flag_spec='-L$libdir'
158207 ld_shlibs=no
159208 fi
160209 ;;
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 ;;
161223 netbsd*)
162224 ;;
163 solaris* | sysv5*)
225 solaris*)
164226 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
165227 ld_shlibs=no
166228 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
168230 else
169231 ld_shlibs=no
170232 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
171247 ;;
172248 sunos4*)
173249 hardcode_direct=yes
180256 fi
181257 ;;
182258 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=
187261 fi
188262 else
189263 case "$host_os" in
197271 hardcode_direct=unsupported
198272 fi
199273 ;;
200 aix4* | aix5*)
274 aix[4-9]*)
201275 if test "$host_cpu" = ia64; then
202276 # On IA64, the linker does run time linking by default, so we don't
203277 # have to do anything special.
207281 # Test if we are trying to use run time linking or normal
208282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
209283 # 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]*)
211285 for ld_flag in $LDFLAGS; do
212286 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
213287 aix_use_runtimelinking=yes
214288 break
215289 fi
216290 done
291 ;;
217292 esac
218293 fi
219294 hardcode_direct=yes
225300 strings "$collect2name" | grep resolve_lib_name >/dev/null
226301 then
227302 # We have reworked collect2
228 hardcode_direct=yes
303 :
229304 else
230305 # We have old collect2
231306 hardcode_direct=unsupported
233308 hardcode_libdir_flag_spec='-L$libdir'
234309 hardcode_libdir_separator=
235310 fi
311 ;;
236312 esac
237313 fi
238314 # Begin _LT_AC_SYS_LIBPATH_AIX.
260336 fi
261337 ;;
262338 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*)
271351 # When not using gcc, we currently assume that we are using
272352 # Microsoft Visual C++.
273353 # hardcode_libdir_flag_spec is actually meaningless, as there is
276356 libext=lib
277357 ;;
278358 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
281364 fi
282365 ;;
283366 dgux*)
284367 hardcode_libdir_flag_spec='-L$libdir'
285368 ;;
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]*)
294370 hardcode_direct=yes
295371 hardcode_minus_L=yes
296372 ;;
297 freebsd*)
373 freebsd* | dragonfly*)
298374 hardcode_libdir_flag_spec='-R$libdir'
299375 hardcode_direct=yes
300376 ;;
306382 # but as the default location of the library.
307383 hardcode_minus_L=yes
308384 ;;
309 hpux10* | hpux11*)
385 hpux10*)
310386 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*)
315401 hardcode_direct=no
316402 ;;
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 ;;
324403 *)
325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
326 hardcode_libdir_separator=:
327404 hardcode_direct=yes
328405 # hardcode_minus_L: Not really in the search PATH,
329406 # but as the default location of the library.
345422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
346423 hardcode_libdir_separator=:
347424 ;;
425 *nto* | *qnx*)
426 ;;
348427 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
361444 fi
362445 ;;
363446 os2*)
376459 hardcode_libdir_flag_spec='-rpath $libdir'
377460 fi
378461 hardcode_libdir_separator=:
379 ;;
380 sco3.2v5*)
381462 ;;
382463 solaris*)
383464 hardcode_libdir_flag_spec='-R$libdir'
407488 ld_shlibs=yes
408489 fi
409490 ;;
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=':'
418496 ;;
419497 uts4*)
420498 hardcode_libdir_flag_spec='-L$libdir'
426504 fi
427505
428506 # 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
430513 libname_spec='lib$name'
431514 case "$host_os" in
432515 aix3*)
433 ;;
434 aix4* | aix5*)
516 library_names_spec='$libname.a'
517 ;;
518 aix[4-9]*)
519 library_names_spec='$libname$shrext'
435520 ;;
436521 amigaos*)
522 case "$host_cpu" in
523 powerpc*)
524 library_names_spec='$libname$shrext' ;;
525 m68k)
526 library_names_spec='$libname.a' ;;
527 esac
437528 ;;
438529 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*)
443536 shrext=.dll
537 library_names_spec='$libname.dll.a $libname.lib'
444538 ;;
445539 darwin* | rhapsody*)
446540 shrext=.dylib
541 library_names_spec='$libname$shrext'
447542 ;;
448543 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'
453551 ;;
454552 gnu*)
553 library_names_spec='$libname$shrext'
554 ;;
555 haiku*)
556 library_names_spec='$libname$shrext'
455557 ;;
456558 hpux9* | hpux10* | hpux11*)
457 case "$host_cpu" in
559 case $host_cpu in
458560 ia64*)
459561 shrext=.so
460562 ;;
465567 shrext=.sl
466568 ;;
467569 esac
570 library_names_spec='$libname$shrext'
571 ;;
572 interix[3-9]*)
573 library_names_spec='$libname$shrext'
468574 ;;
469575 irix5* | irix6* | nonstopux*)
576 library_names_spec='$libname$shrext'
470577 case "$host_os" in
471578 irix5* | nonstopux*)
472579 libsuff= shlibsuff=
483590 ;;
484591 linux*oldld* | linux*aout* | linux*coff*)
485592 ;;
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'
487598 ;;
488599 netbsd*)
600 library_names_spec='$libname$shrext'
489601 ;;
490602 newsos6)
491 ;;
492 nto-qnx)
603 library_names_spec='$libname$shrext'
604 ;;
605 *nto* | *qnx*)
606 library_names_spec='$libname$shrext'
493607 ;;
494608 openbsd*)
609 library_names_spec='$libname$shrext$versuffix'
495610 ;;
496611 os2*)
497612 libname_spec='$name'
498613 shrext=.dll
614 library_names_spec='$libname.a'
499615 ;;
500616 osf3* | osf4* | osf5*)
501 ;;
502 sco3.2v5*)
617 library_names_spec='$libname$shrext'
618 ;;
619 rdos*)
503620 ;;
504621 solaris*)
622 library_names_spec='$libname$shrext'
505623 ;;
506624 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'
509629 ;;
510630 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'
511638 ;;
512639 uts4*)
640 library_names_spec='$libname$shrext'
513641 ;;
514642 esac
515643
516644 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
517645 escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
518646 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"`
519649 escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
520650
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
522652
523653 # How to pass a linker flag through the compiler.
524654 wl="$escaped_wl"
528658
529659 # Shared library suffix (normally "so").
530660 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"
531667
532668 # Flag to hardcode \$libdir into a binary during linking.
533669 # This must work even if \$libdir does not exist.
3434 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
3535 LT_INIT
3636
37 AM_GNU_GETTEXT_VERSION([0.14.1])
37 AM_GNU_GETTEXT_VERSION([0.19.8])
3838 AM_GNU_GETTEXT([external])
3939 ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
4040
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.
75 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
97 dnl the GNU General Public License or the GNU Library General Public
108 dnl License but which still want to provide support for the GNU gettext
119 dnl functionality.
1210 dnl Please note that the actual code of the GNU gettext library is covered
1311 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.
1513 dnl They are *not* in the public domain.
1614
1715 dnl Authors:
1816 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.
2018
2119 dnl Macro to add for using GNU gettext.
2220
3634 dnl 'need-formatstring-macros', then GNU gettext implementations that don't
3735 dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
3836 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.
4038 dnl
4139 dnl The result of the configuration is one of three cases:
4240 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
6159 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
6260 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
6361 ])])])])])
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.])])
6464 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
6565 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
6666 ])])])])
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])
6974
7075 AC_REQUIRE([AM_PO_SUBDIRS])dnl
7176 ifelse(gt_included_intl, yes, [
7984 dnl Sometimes libintl requires libiconv, so first search for libiconv.
8085 dnl Ideally we would do this search only after the
8186 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
8388 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
8489 dnl the configure script would need to contain the same shell code
8590 dnl again, outside any 'if'. There are two solutions:
9196 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
9297 ])
9398
99 dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation.
100 gt_INTL_MACOSX
101
94102 dnl Set USE_NLS.
95 AM_NLS
103 AC_REQUIRE([AM_NLS])
96104
97105 ifelse(gt_included_intl, yes, [
98106 BUILD_INCLUDED_LIBINTL=no
102110 LTLIBINTL=
103111 POSUB=
104112
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
105122 dnl If we use NLS figure out what method
106123 if test "$USE_NLS" = "yes"; then
107124 gt_use_preinstalled_gnugettext=no
108125 ifelse(gt_included_intl, yes, [
109126 AC_MSG_CHECKING([whether included gettext is requested])
110 AC_ARG_WITH(included-gettext,
127 AC_ARG_WITH([included-gettext],
111128 [ --with-included-gettext use the GNU gettext library included here],
112129 nls_cv_force_use_gnu_gettext=$withval,
113130 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])
115132
116133 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
117134 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
120137 dnl to use. If GNU gettext is available we use this. Else we have
121138 dnl to fall back to GNU NLS library.
122139
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
132143 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
133144 #endif
134145 changequote(,)dnl
135146 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
136147 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
145180 dnl Sometimes libintl requires libiconv, so first search for libiconv.
146181 ifelse(gt_included_intl, yes, , [
147182 AM_ICONV_LINK
152187 dnl even if libiconv doesn't exist.
153188 AC_LIB_LINKFLAGS_BODY([intl])
154189 AC_CACHE_CHECK([for GNU gettext in libintl],
155 gt_cv_func_gnugettext_libintl,
190 [$gt_func_gnugettext_libintl],
156191 [gt_save_CPPFLAGS="$CPPFLAGS"
157192 CPPFLAGS="$CPPFLAGS $INCINTL"
158193 gt_save_LIBS="$LIBS"
159194 LIBS="$LIBS $LIBINTL"
160195 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;
170202 extern
171203 #ifdef __cplusplus
172204 "C"
173205 #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"])
179219 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
181221 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;
191228 extern
192229 #ifdef __cplusplus
193230 "C"
194231 #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 ])
202247 fi
203248 CPPFLAGS="$gt_save_CPPFLAGS"
204249 LIBS="$gt_save_LIBS"])
208253 dnl use it. But if this macro is used in GNU gettext, and GNU
209254 dnl gettext is already preinstalled in libintl, we update this
210255 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"; } \
213258 && test "$PACKAGE" != gettext-runtime \
214259 && test "$PACKAGE" != gettext-tools; }; then
215260 gt_use_preinstalled_gnugettext=yes
232277 dnl Mark actions used to generate GNU NLS library.
233278 BUILD_INCLUDED_LIBINTL=yes
234279 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"
237282 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
238283 fi
239284
285 CATOBJEXT=
240286 if test "$gt_use_preinstalled_gnugettext" = "yes" \
241287 || test "$nls_cv_use_gnu_gettext" = "yes"; then
242288 dnl Mark actions to use GNU gettext tools.
244290 fi
245291 ])
246292
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
247302 if test "$gt_use_preinstalled_gnugettext" = "yes" \
248303 || test "$nls_cv_use_gnu_gettext" = "yes"; then
249 AC_DEFINE(ENABLE_NLS, 1,
304 AC_DEFINE([ENABLE_NLS], [1],
250305 [Define to 1 if translation of program messages to the user's native language
251306 is requested.])
252307 else
259314 if test "$USE_NLS" = "yes"; then
260315 AC_MSG_CHECKING([where the gettext function comes from])
261316 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
263318 gt_source="external libintl"
264319 else
265320 gt_source="libc"
273328 if test "$USE_NLS" = "yes"; then
274329
275330 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
277332 AC_MSG_CHECKING([how to link with libintl])
278333 AC_MSG_RESULT([$LIBINTL])
279334 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
280335 fi
281336
282337 dnl For backward compatibility. Some packages may be using this.
283 AC_DEFINE(HAVE_GETTEXT, 1,
338 AC_DEFINE([HAVE_GETTEXT], [1],
284339 [Define if the GNU gettext() function is already present or preinstalled.])
285 AC_DEFINE(HAVE_DCGETTEXT, 1,
340 AC_DEFINE([HAVE_DCGETTEXT], [1],
286341 [Define if the GNU dcgettext() function is already present or preinstalled.])
287342 fi
288343
298353 fi
299354
300355 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])
304359
305360 dnl For backward compatibility. Some configure.ins may be using this.
306361 nls_cv_header_intl=
308363
309364 dnl For backward compatibility. Some Makefiles may be using this.
310365 DATADIRNAME=share
311 AC_SUBST(DATADIRNAME)
366 AC_SUBST([DATADIRNAME])
312367
313368 dnl For backward compatibility. Some Makefiles may be using this.
314369 INSTOBJEXT=.mo
315 AC_SUBST(INSTOBJEXT)
370 AC_SUBST([INSTOBJEXT])
316371
317372 dnl For backward compatibility. Some Makefiles may be using this.
318373 GENCAT=gencat
319 AC_SUBST(GENCAT)
374 AC_SUBST([GENCAT])
320375
321376 dnl For backward compatibility. Some Makefiles may be using this.
377 INTLOBJS=
322378 if test "$USE_INCLUDED_LIBINTL" = yes; then
323379 INTLOBJS="\$(GETTOBJS)"
324380 fi
325 AC_SUBST(INTLOBJS)
381 AC_SUBST([INTLOBJS])
326382
327383 dnl Enable libtool support if the surrounding package wishes it.
328384 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
329 AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
385 AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
330386 ])
331387
332388 dnl For backward compatibility. Some Makefiles may be using this.
333389 INTLLIBS="$LIBINTL"
334 AC_SUBST(INTLLIBS)
390 AC_SUBST([INTLLIBS])
335391
336392 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])
340396 ])
341397
342398
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],
347401 [
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], [])
462404 ])
463405
464406
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],
468409 [
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"])
482411 ])
483412
484413
485414 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
486415 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.
75
86 dnl From Bruno Haible.
97
2220 [
2321 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
2422 dnl those with the standalone portable GNU libiconv installed).
23 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2524
2625 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
2726 dnl accordingly.
3029 dnl Add $INCICONV to CPPFLAGS before performing the following checks,
3130 dnl because if the user has installed libiconv and not disabled its use
3231 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.
3433 am_save_CPPFLAGS="$CPPFLAGS"
3534 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
3635
37 AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
36 AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
3837 am_cv_func_iconv="no, consider installing GNU libiconv"
3938 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])
4649 if test "$am_cv_func_iconv" != yes; then
4750 am_save_LIBS="$LIBS"
4851 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])
5663 LIBS="$am_save_LIBS"
5764 fi
5865 ])
5966 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.])
61199 fi
62200 if test "$am_cv_lib_iconv" = yes; then
63201 AC_MSG_CHECKING([how to link with libiconv])
69207 LIBICONV=
70208 LTLIBICONV=
71209 fi
72 AC_SUBST(LIBICONV)
73 AC_SUBST(LTLIBICONV)
210 AC_SUBST([LIBICONV])
211 AC_SUBST([LTLIBICONV])
74212 ])
75213
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],
77233 [
78234 AM_ICONV_LINK
79235 if test "$am_cv_func_iconv" = yes; then
80236 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 [[
83241 #include <stdlib.h>
84242 #include <iconv.h>
85243 extern
86244 #ifdef __cplusplus
87245 "C"
88246 #endif
89 #if defined(__STDC__) || defined(__cplusplus)
247 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
90248 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
91249 #else
92250 size_t iconv();
93251 #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"])
95256 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);"])
96257 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],
100261 [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 ])
101269 fi
102270 ])
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.
75
86 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.
119
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.
1311 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.
1614 case `$LD -v 2>&1 </dev/null` in
1715 *GNU* | *'with BFD'*)
18 acl_cv_prog_gnu_ld=yes ;;
16 acl_cv_prog_gnu_ld=yes
17 ;;
1918 *)
20 acl_cv_prog_gnu_ld=no ;;
19 acl_cv_prog_gnu_ld=no
20 ;;
2121 esac])
2222 with_gnu_ld=$acl_cv_prog_gnu_ld
2323 ])
2424
25 dnl From libtool-1.4. Sets the variable LD.
25 dnl From libtool-2.4. Sets the variable LD.
2626 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
3128 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
3236 # Prepare PATH_SEPARATOR.
3337 # The user is always right.
3438 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 }
4447 fi
48
4549 ac_prog=ld
4650 if test "$GCC" = yes; then
4751 # 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])
4953 case $host in
5054 *-*-mingw*)
5155 # gcc leaves a trailing carriage return which upsets mingw
5559 esac
5660 case $ac_prog in
5761 # 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%/%"`
6468 done
6569 test -z "$LD" && LD="$ac_prog"
6670 ;;
7882 else
7983 AC_MSG_CHECKING([for non-GNU ld])
8084 fi
81 AC_CACHE_VAL(acl_cv_path_LD,
85 AC_CACHE_VAL([acl_cv_path_LD],
8286 [if test -z "$LD"; then
83 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
87 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8488 for ac_dir in $PATH; do
89 IFS="$acl_save_ifs"
8590 test -z "$ac_dir" && ac_dir=.
8691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8792 acl_cv_path_LD="$ac_dir/$ac_prog"
8893 # 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.
9095 # 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
9297 *GNU* | *'with BFD'*)
93 test "$with_gnu_ld" != no && break ;;
98 test "$with_gnu_ld" != no && break
99 ;;
94100 *)
95 test "$with_gnu_ld" != yes && break ;;
101 test "$with_gnu_ld" != yes && break
102 ;;
96103 esac
97104 fi
98105 done
99 IFS="$ac_save_ifs"
106 IFS="$acl_save_ifs"
100107 else
101108 acl_cv_path_LD="$LD" # Let the user override the test with a path.
102109 fi])
103110 LD="$acl_cv_path_LD"
104111 if test -n "$LD"; then
105 AC_MSG_RESULT($LD)
112 AC_MSG_RESULT([$LD])
106113 else
107 AC_MSG_RESULT(no)
114 AC_MSG_RESULT([no])
108115 fi
109116 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
110117 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.
75
86 dnl From Bruno Haible.
7
8 AC_PREREQ([2.54])
99
1010 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
1111 dnl the libraries corresponding to explicit and implicit dependencies.
1212 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
1313 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.
1416 AC_DEFUN([AC_LIB_LINKFLAGS],
1517 [
1618 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1719 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____])])
2123 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
2224 AC_LIB_LINKFLAGS_BODY([$1], [$2])
2325 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
2426 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
2527 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
28 ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
2629 ])
2730 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
2831 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
2932 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
33 LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
3034 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
3135 AC_SUBST([LIB]NAME)
3236 AC_SUBST([LTLIB]NAME)
37 AC_SUBST([LIB]NAME[_PREFIX])
3338 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
3439 dnl results of this search when this library appears as a dependency.
3540 HAVE_LIB[]NAME=yes
36 undefine([Name])
37 undefine([NAME])
41 popdef([NAME])
42 popdef([Name])
3843 ])
3944
40 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
45 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
4146 dnl searches for libname and the libraries corresponding to explicit and
4247 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
4652 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
4753 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.
4856 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
4957 [
5058 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
5159 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____])])
5563
5664 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
5765 dnl accordingly.
6573
6674 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
6775 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]])'])
7091 LIBS="$ac_save_LIBS"
7192 ])
7293 if test "$ac_cv_lib[]Name" = yes; then
7394 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.])
7596 AC_MSG_CHECKING([how to link with lib[]$1])
7697 AC_MSG_RESULT([$LIB[]NAME])
7798 else
81102 CPPFLAGS="$ac_save_CPPFLAGS"
82103 LIB[]NAME=
83104 LTLIB[]NAME=
105 LIB[]NAME[]_PREFIX=
84106 fi
85107 AC_SUBST([HAVE_LIB]NAME)
86108 AC_SUBST([LIB]NAME)
87109 AC_SUBST([LTLIB]NAME)
88 undefine([Name])
89 undefine([NAME])
110 AC_SUBST([LIB]NAME[_PREFIX])
111 popdef([NAME])
112 popdef([Name])
90113 ])
91114
92115 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.
95124 AC_DEFUN([AC_LIB_RPATH],
96125 [
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])])
97128 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
98129 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
99130 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
100131 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], [
102133 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
103134 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
104135 . ./conftest.sh
106137 acl_cv_rpath=done
107138 ])
108139 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"
115148 dnl Determine whether the user wants rpath handling at all.
116 AC_ARG_ENABLE(rpath,
149 AC_ARG_ENABLE([rpath],
117150 [ --disable-rpath do not hardcode runtime library paths],
118151 :, enable_rpath=yes)
119152 ])
120153
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
121175 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
122176 dnl the libraries corresponding to explicit and implicit dependencies.
123177 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.
124180 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
125181 [
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)])
128191 dnl By default, look in $includedir and $libdir.
129192 use_additional=yes
130193 AC_LIB_WITH_FINAL_PREFIX([
131194 eval additional_includedir=\"$includedir\"
132195 eval additional_libdir=\"$libdir\"
133196 ])
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]],
137200 [
138201 if test "X$withval" = "Xno"; then
139202 use_additional=no
145208 ])
146209 else
147210 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
149216 fi
150217 fi
151218 ])
154221 LIB[]NAME=
155222 LTLIB[]NAME=
156223 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=
157228 rpathdirs=
158229 ltrpathdirs=
159230 names_already_handled=
173244 names_already_handled="$names_already_handled $name"
174245 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
175246 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____|'`
177248 eval value=\"\$HAVE_LIB$uppername\"
178249 if test -n "$value"; then
179250 if test "$value" = yes; then
193264 found_la=
194265 found_so=
195266 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
196273 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
202302 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"
210314 fi
211315 fi
212316 fi
216320 case "$x" in
217321 -L*)
218322 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
227326 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
231348 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"
232361 fi
233362 fi
234363 ;;
245374 dnl Linking with a shared library. We attempt to hardcode its
246375 dnl directory into the executable's runpath, unless it's the
247376 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
249380 dnl No hardcoding is needed.
250381 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
251382 else
264395 ltrpathdirs="$ltrpathdirs $found_dir"
265396 fi
266397 dnl The hardcoding into $LIBNAME is system dependent.
267 if test "$hardcode_direct" = yes; then
398 if test "$acl_hardcode_direct" = yes; then
268399 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
269400 dnl resulting binary.
270401 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
271402 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
273404 dnl Use an explicit option to hardcode DIR into the resulting
274405 dnl binary.
275406 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
300431 if test -z "$haveit"; then
301432 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
302433 fi
303 if test "$hardcode_minus_L" != no; then
434 if test "$acl_hardcode_minus_L" != no; then
304435 dnl FIXME: Not sure whether we should use
305436 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
306437 dnl here.
307438 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
308439 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
310441 dnl here, because this doesn't fit in flags passed to the
311442 dnl compiler. So give up. No hardcoding. This affects only
312443 dnl very old systems.
331462 dnl Assume the include files are nearby.
332463 additional_includedir=
333464 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
336477 additional_includedir="$basedir/include"
337478 ;;
338479 esac
349490 if test "X$additional_includedir" = "X/usr/local/include"; then
350491 if test -n "$GCC"; then
351492 case $host_os in
352 linux*) haveit=yes;;
493 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
353494 esac
354495 fi
355496 fi
393534 dnl 3. if it's already present in $LDFLAGS or the already
394535 dnl constructed $LIBNAME,
395536 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
397539 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
399542 if test -n "$GCC"; then
400543 case $host_os in
401 linux*) haveit=yes;;
544 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
402545 esac
403546 fi
404547 fi
494637 done
495638 done
496639 if test "X$rpathdirs" != "X"; then
497 if test -n "$hardcode_libdir_separator"; then
640 if test -n "$acl_hardcode_libdir_separator"; then
498641 dnl Weird platform: only the last -rpath option counts, the user must
499642 dnl pass all path elements in one option. We can arrange that for a
500643 dnl single library, but not when more than one $LIBNAMEs are used.
501644 alldirs=
502645 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"
504647 done
505 dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
648 dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
506649 acl_save_libdir="$libdir"
507650 libdir="$alldirs"
508 eval flag=\"$hardcode_libdir_flag_spec\"
651 eval flag=\"$acl_hardcode_libdir_flag_spec\"
509652 libdir="$acl_save_libdir"
510653 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
511654 else
513656 for found_dir in $rpathdirs; do
514657 acl_save_libdir="$libdir"
515658 libdir="$found_dir"
516 eval flag=\"$hardcode_libdir_flag_spec\"
659 eval flag=\"$acl_hardcode_libdir_flag_spec\"
517660 libdir="$acl_save_libdir"
518661 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
519662 done
526669 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
527670 done
528671 fi
672 popdef([P_A_C_K])
673 popdef([PACKLIBS])
674 popdef([PACKUP])
675 popdef([PACK])
676 popdef([NAME])
529677 ])
530678
531679 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
548696 fi
549697 done
550698 ])
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.
75
86 dnl From Bruno Haible.
97
2523 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
2624 AC_REQUIRE([AC_PROG_CC])
2725 AC_REQUIRE([AC_CANONICAL_HOST])
26 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2827 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2928 dnl By default, look in $includedir and $libdir.
3029 use_additional=yes
4645 ])
4746 else
4847 additional_includedir="$withval/include"
49 additional_libdir="$withval/lib"
48 additional_libdir="$withval/$acl_libdirstem"
5049 fi
5150 fi
5251 ])
7069 if test "X$additional_includedir" = "X/usr/local/include"; then
7170 if test -n "$GCC"; then
7271 case $host_os in
73 linux*) haveit=yes;;
72 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7473 esac
7574 fi
7675 fi
8887 dnl 2. if it's already present in $LDFLAGS,
8988 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
9089 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
9291 haveit=
9392 for x in $LDFLAGS; do
9493 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
9897 fi
9998 done
10099 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
102101 if test -n "$GCC"; then
103102 case $host_os in
104103 linux*) haveit=yes;;
152151 exec_prefix="$acl_save_exec_prefix"
153152 prefix="$acl_save_prefix"
154153 ])
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.
76 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
98 dnl the GNU General Public License or the GNU Library General Public
109 dnl License but which still want to provide support for the GNU gettext
1110 dnl functionality.
1211 dnl Please note that the actual code of the GNU gettext library is covered
1312 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.
1514 dnl They are *not* in the public domain.
1615
1716 dnl Authors:
1817 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1918 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
2019
20 AC_PREREQ([2.50])
21
2122 AC_DEFUN([AM_NLS],
2223 [
2324 AC_MSG_CHECKING([whether NLS is requested])
2425 dnl Default is enabled NLS
25 AC_ARG_ENABLE(nls,
26 AC_ARG_ENABLE([nls],
2627 [ --disable-nls do not use Native Language Support],
2728 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])
3031 ])
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.
75 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
97 dnl the GNU General Public License or the GNU Library General Public
108 dnl License but which still want to provide support for the GNU gettext
119 dnl functionality.
1210 dnl Please note that the actual code of the GNU gettext library is covered
1311 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.
1513 dnl They are *not* in the public domain.
1614
1715 dnl Authors:
1816 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1917 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
18
19 AC_PREREQ([2.60])
2020
2121 dnl Checks for all prerequisites of the po subdirectory.
2222 AC_DEFUN([AM_PO_SUBDIRS],
2323 [
2424 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
2525 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
2728 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])
2833
2934 dnl Perform the following tests also if --disable-nls has been given,
3035 dnl because they are needed for "make dist" to work.
3338 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
3439 dnl The second test excludes FreeBSD msgfmt.
3540 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 &&
3742 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
3843 :)
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])
4061
4162 dnl Search for GNU xgettext 0.12 or newer in the PATH.
4263 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
4364 dnl The second test excludes FreeBSD xgettext.
4465 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 &&
4667 (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)],
4768 :)
4869 dnl Remove leftover from FreeBSD xgettext call.
4970 rm -f messages.po
5071
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
5181 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
5282 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], [[
8996 for ac_file in $CONFIG_FILES; do
9097 # Support "outfile[:infile[:infile...]]"
9198 case "$ac_file" in
95102 case "$ac_file" in */Makefile.in)
96103 # Adjust a relative srcdir.
97104 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%^\./%%'`
99106 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
100107 # In autoconf-2.13 it is called $ac_given_srcdir.
101108 # In autoconf-2.50 it is called $srcdir.
105112 /*) top_srcdir="$ac_given_srcdir" ;;
106113 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
107114 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.
108118 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
109119 rm -f "$ac_dir/POTFILES"
110120 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"
112123 POMAKEFILEDEPS="POTFILES.in"
113124 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
114125 # on $ac_dir but don't depend on user-specified configuration
118129 if test -n "$OBSOLETE_ALL_LINGUAS"; then
119130 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
120131 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.
123134 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
124135 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
125136 else
126137 # The set of available languages was given in configure.in.
138 # Hide the ALL_LINGUAS assignment from automake < 1.5.
127139 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
128140 fi
129141 # Compute POFILES
193205 fi
194206 ;;
195207 esac
196 done],
208 done]],
197209 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
198210 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
199 # from automake.
211 # from automake < 1.5.
200212 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
201213 # Capture the value of LINGUAS because we need it to compute CATALOGS.
202214 LINGUAS="${LINGUAS-%UNSET%}"
215227 changequote(,)dnl
216228 # Adjust a relative srcdir.
217229 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%^\./%%'`
219231 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
220232 # In autoconf-2.13 it is called $ac_given_srcdir.
221233 # In autoconf-2.50 it is called $srcdir.
243255 fi
244256
245257 # A sed script that extracts the value of VARIABLE from a Makefile.
258 tab=`printf '\t'`
246259 sed_x_variable='
247260 # Test if the hold space is empty.
248261 x
250263 x
251264 ta
252265 # Yes it was empty. Look if we have the expected variable definition.
253 /^[ ]*VARIABLE[ ]*=/{
266 /^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
254267 # Seen the first line of the variable definition.
255 s/^[ ]*VARIABLE[ ]*=//
268 s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
256269 ba
257270 }
258271 bd
282295 changequote([,])dnl
283296
284297 # 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'`
286299 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
287300 # Compute POTFILES_DEPS as
288301 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
297310 fi
298311 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
299312 # 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"`
301314 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
302315 else
303316 # 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'`
305318 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
306319 fi
307 # Hide the ALL_LINGUAS assigment from automake.
320 # Hide the ALL_LINGUAS assignment from automake < 1.5.
308321 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
309322 # Compute POFILES
310323 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
347360 QMFILES="$QMFILES $srcdirpre$lang.qm"
348361 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
349362 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/'`
351364 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
352365 done
353366 # CATALOGS depends on both $ac_dir and the user's LINGUAS
388401 QTCATALOGS="$QTCATALOGS $lang.qm"
389402 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
390403 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/'`
392405 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
393406 done
394407 fi
395408
396409 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'`
397411 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
398412 # Add dependencies that cannot be formulated as a simple suffix rule.
399413 for lang in $ALL_LINGUAS; do
400414 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
401415 cat >> "$ac_file.tmp" <<EOF
402416 $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; }
405419 EOF
406420 done
407421 fi
408422 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
409423 # Add dependencies that cannot be formulated as a simple suffix rule.
410424 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/'`
412426 cat >> "$ac_file.tmp" <<EOF
413427 $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; }
416430 EOF
417431 done
418432 fi
423437 fi
424438 mv "$ac_file.tmp" "$ac_file"
425439 ])
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.
75 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
97 dnl the GNU General Public License or the GNU Library General Public
108 dnl License but which still want to provide support for the GNU gettext
119 dnl functionality.
1210 dnl Please note that the actual code of the GNU gettext library is covered
1311 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.
1513 dnl They are *not* in the public domain.
1614
1715 dnl Authors:
1816 dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
17
18 AC_PREREQ([2.50])
1919
2020 # Search path for a program which passes the given test.
2121
2626 # Prepare PATH_SEPARATOR.
2727 # The user is always right.
2828 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 }
3837 fi
3938
4039 # Find out how to test for executable files. Don't use a zero-byte file,
5453 # Extract the first word of "$2", so it can be a program name with args.
5554 set dummy $2; ac_word=[$]2
5655 AC_MSG_CHECKING([for $ac_word])
57 AC_CACHE_VAL(ac_cv_path_$1,
56 AC_CACHE_VAL([ac_cv_path_$1],
5857 [case "[$]$1" in
5958 [[\\/]]* | ?:[[\\/]]*)
6059 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
6665 test -z "$ac_dir" && ac_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6867 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
6969 if [$3]; then
7070 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
7171 break 2
8282 esac])dnl
8383 $1="$ac_cv_path_$1"
8484 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
85 AC_MSG_RESULT([$]$1)
85 AC_MSG_RESULT([$][$1])
8686 else
87 AC_MSG_RESULT(no)
87 AC_MSG_RESULT([no])
8888 fi
89 AC_SUBST($1)dnl
89 AC_SUBST([$1])dnl
9090 ])
00 # 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.
15
26 # Usually the message domain is the same as the package name.
37 DOMAIN = $(PACKAGE)
1923 # their copyright.
2024 COPYRIGHT_HOLDER = Alexey Gladkov <gladkov.alexey@gmail.com>
2125
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
2233 # This is the email address or URL to which the translators shall report
2334 # bugs in the untranslated strings:
2435 # - Strings which are not entire sentences, see the maintainer guidelines
3849 # This is the list of locale categories, beyond LC_MESSAGES, for which the
3950 # message catalogs shall be used. It is usually empty.
4051 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
7474 libkeymap/libkeymap.la \
7575 libkbdfile/libkbdfile.la \
7676 libcommon/libcommon.a \
77 @INTLLIBS@ \
77 @LIBINTL@ \
7878 $(CODE_COVERAGE_LIBS)
7979
8080 install-exec-hook:
1313 $(top_builddir)/src/libcommon/libcommon.a \
1414 $(top_builddir)/src/libkeymap/libkeymap.la \
1515 $(top_builddir)/src/libkbdfile/libkbdfile.la \
16 @INTLLIBS@ $(CODE_COVERAGE_LIBS)
16 @LIBINTL@ $(CODE_COVERAGE_LIBS)
1717
1818 noinst_PROGRAMS = \
1919 libkeymap-bkeymap \
1111 LDADD = \
1212 $(top_builddir)/src/libcommon/libcommon.a \
1313 $(top_builddir)/src/libkbdfile/libkbdfile.la \
14 @INTLLIBS@ $(CODE_COVERAGE_LIBS)
14 @LIBINTL@ $(CODE_COVERAGE_LIBS)
1515
1616 noinst_PROGRAMS = \
1717 libkbdfile-test01 \
1313 $(top_builddir)/src/libcommon/libcommon.a \
1414 $(top_builddir)/src/libkbdfile/libkbdfile.la \
1515 $(top_builddir)/src/libkeymap/libkeymap.la \
16 @INTLLIBS@ $(CODE_COVERAGE_LIBS)
16 @LIBINTL@ $(CODE_COVERAGE_LIBS)
1717
1818 noinst_PROGRAMS = \
1919 libkeymap-test01 \