[svn-upgrade] Tagging new upstream version, libhdate (1.4.9)
Baruch Even
16 years ago
0 | Notes on the Free Translation Project | |
1 | ************************************* | |
2 | ||
3 | Free software is going international! The Free Translation Project | |
4 | is 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 | |
51 | programs they contain can be made to speak your own native language. | |
52 | Most such packages use GNU `gettext'. Other packages have their own | |
53 | ways to 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 | Not all programs have translations for all languages. By default, an | |
116 | English message is shown in place of a nonexistent translation. If you | |
117 | understand other languages, you can set up a priority list of languages. | |
118 | This is done through a different environment variable, called | |
119 | `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' | |
120 | for the purpose of message handling, but you still need to have `LANG' | |
121 | set to the primary language; this is required by other parts of the | |
122 | system libraries. For example, some Swedish users who would rather | |
123 | read translations in German than English for when Swedish is not | |
124 | available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. | |
125 | ||
126 | In the `LANGUAGE' environment variable, but not in the `LANG' | |
127 | environment variable, `LL_CC' combinations can be abbreviated as `LL' | |
128 | to denote the language's main dialect. For example, `de' is equivalent | |
129 | to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' | |
130 | (Portuguese as spoken in Portugal) in this context. | |
131 | ||
132 | Translating Teams | |
133 | ================= | |
134 | ||
135 | For the Free Translation Project to be a success, we need interested | |
136 | people who like their own language and write it well, and who are also | |
137 | able to synergize with other translators speaking the same language. | |
138 | Each translation team has its own mailing list. The up-to-date list of | |
139 | teams can be found at the Free Translation Project's homepage, | |
140 | `http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" | |
141 | area. | |
142 | ||
143 | If you'd like to volunteer to _work_ at translating messages, you | |
144 | should become a member of the translating team for your own language. | |
145 | The subscribing address is _not_ the same as the list itself, it has | |
146 | `-request' appended. For example, speakers of Swedish can send a | |
147 | message to `sv-request@li.org', having this message body: | |
148 | ||
149 | subscribe | |
150 | ||
151 | Keep in mind that team members are expected to participate | |
152 | _actively_ in translations, or at solving translational difficulties, | |
153 | rather than merely lurking around. If your team does not exist yet and | |
154 | you want to start one, or if you are unsure about what to do or how to | |
155 | get started, please write to `translation@iro.umontreal.ca' to reach the | |
156 | coordinator for all translator teams. | |
157 | ||
158 | The English team is special. It works at improving and uniformizing | |
159 | the terminology in use. Proven linguistic skill are praised more than | |
160 | programming skill, here. | |
161 | ||
162 | Available Packages | |
163 | ================== | |
164 | ||
165 | Languages are not equally supported in all packages. The following | |
166 | matrix shows the current state of internationalization, as of September | |
167 | 2001. The matrix shows, in regard of each package, for which languages | |
168 | PO files have been submitted to translation coordination, with a | |
169 | translation percentage of at least 50%. | |
170 | ||
171 | Ready PO files bg cs da de el en eo es et fi fr gl he hr id it ja | |
172 | +----------------------------------------------------+ | |
173 | a2ps | [] [] [] | | |
174 | bash | [] [] [] [] | | |
175 | bfd | | | |
176 | binutils | [] | | |
177 | bison | [] [] [] [] [] | | |
178 | clisp | [] [] [] [] | | |
179 | cpio | [] [] [] [] [] | | |
180 | diffutils | [] [] [] [] [] [] [] | | |
181 | enscript | [] [] | | |
182 | error | [] [] | | |
183 | fetchmail | | | |
184 | fileutils | [] [] [] [] [] [] [] [] | | |
185 | findutils | [] [] [] [] [] [] [] [] | | |
186 | flex | [] [] [] | | |
187 | freetype | | | |
188 | gas | | | |
189 | gawk | [] [] | | |
190 | gcal | | | |
191 | gcc | | | |
192 | gettext | [] [] [] [] [] [] [] [] [] [] | | |
193 | gnupg | [] [] [] [] [] [] [] | | |
194 | gprof | | | |
195 | grep | [] [] [] [] [] [] [] [] | | |
196 | hello | [] [] [] [] [] [] [] [] [] [] [] | | |
197 | id-utils | [] [] [] | | |
198 | indent | [] [] [] [] [] | | |
199 | jpilot | [] | | |
200 | kbd | | | |
201 | ld | [] | | |
202 | libc | [] [] [] [] [] [] [] [] | | |
203 | lilypond | [] | | |
204 | lynx | [] [] [] [] | | |
205 | m4 | [] [] [] [] [] [] [] [] | | |
206 | make | [] [] [] [] [] [] | | |
207 | mysecretdiary | [] | | |
208 | nano | [] [] [] | | |
209 | opcodes | | | |
210 | parted | [] [] [] | | |
211 | ptx | [] [] [] [] [] [] [] | | |
212 | python | | | |
213 | recode | [] [] [] [] [] [] [] [] [] | | |
214 | sed | [] [] [] [] [] [] [] [] [] [] [] [] | | |
215 | sh-utils | [] [] [] [] [] [] [] [] [] [] | | |
216 | sharutils | [] [] [] [] [] [] [] [] | | |
217 | sketch | | | |
218 | soundtracker | [] [] [] | | |
219 | sp | | | |
220 | tar | [] [] [] [] [] [] [] [] | | |
221 | texinfo | [] [] [] [] [] [] | | |
222 | textutils | [] [] [] [] [] [] [] [] | | |
223 | util-linux | [] [] | | |
224 | wdiff | [] [] [] | | |
225 | wget | [] [] [] [] [] [] [] [] [] [] | | |
226 | +----------------------------------------------------+ | |
227 | bg cs da de el en eo es et fi fr gl he hr id it ja | |
228 | 0 14 24 32 11 1 8 23 13 1 33 22 4 0 7 9 18 | |
229 | ||
230 | ko lv nb nl nn no pl pt pt_BR ru sk sl sv tr uk zh | |
231 | +----------------------------------------------------+ | |
232 | a2ps | [] [] [] | 6 | |
233 | bash | | 4 | |
234 | bfd | | 0 | |
235 | binutils | | 1 | |
236 | bison | [] | 6 | |
237 | clisp | [] | 5 | |
238 | cpio | [] [] [] [] [] | 10 | |
239 | diffutils | [] [] [] [] | 11 | |
240 | enscript | [] [] [] | 5 | |
241 | error | [] [] | 4 | |
242 | fetchmail | | 0 | |
243 | fileutils | [] [] [] [] [] [] [] [] [] | 17 | |
244 | findutils | [] [] [] [] [] [] [] [] | 16 | |
245 | flex | [] [] [] | 6 | |
246 | freetype | | 0 | |
247 | gas | | 0 | |
248 | gawk | [] | 3 | |
249 | gcal | | 0 | |
250 | gcc | | 0 | |
251 | gettext | [] [] [] [] [] [] [] [] | 18 | |
252 | gnupg | [] [] [] | 10 | |
253 | gprof | | 0 | |
254 | grep | [] [] [] [] | 12 | |
255 | hello | [] [] [] [] [] [] [] [] [] [] [] | 22 | |
256 | id-utils | [] [] [] | 6 | |
257 | indent | [] [] [] [] [] [] [] | 12 | |
258 | jpilot | | 1 | |
259 | kbd | [] | 1 | |
260 | ld | | 1 | |
261 | libc | [] [] [] [] [] [] [] [] | 16 | |
262 | lilypond | [] [] | 3 | |
263 | lynx | [] [] [] [] | 8 | |
264 | m4 | [] [] [] [] | 12 | |
265 | make | [] [] [] [] [] [] | 12 | |
266 | mysecretdiary | | 1 | |
267 | nano | [] | 4 | |
268 | opcodes | [] | 1 | |
269 | parted | [] [] | 5 | |
270 | ptx | [] [] [] [] [] [] [] [] | 15 | |
271 | python | | 0 | |
272 | recode | [] [] [] [] | 13 | |
273 | sed | [] [] [] [] [] [] [] | 19 | |
274 | sh-utils | [] [] [] [] [] [] [] [] [] [] [] | 21 | |
275 | sharutils | [] [] [] | 11 | |
276 | sketch | | 0 | |
277 | soundtracker | | 3 | |
278 | sp | | 0 | |
279 | tar | [] [] [] [] [] [] [] | 15 | |
280 | texinfo | [] | 7 | |
281 | textutils | [] [] [] [] [] [] [] [] | 16 | |
282 | util-linux | [] [] | 4 | |
283 | wdiff | [] [] [] [] | 7 | |
284 | wget | [] [] [] [] [] [] [] | 17 | |
285 | +----------------------------------------------------+ | |
286 | 33 teams ko lv nb nl nn no pl pt pt_BR ru sk sl sv tr uk zh | |
287 | 53 domains 9 1 6 20 0 6 17 1 13 25 10 11 23 21 2 2 387 | |
288 | ||
289 | Some counters in the preceding matrix are higher than the number of | |
290 | visible blocks let us expect. This is because a few extra PO files are | |
291 | used for implementing regional variants of languages, or language | |
292 | dialects. | |
293 | ||
294 | For a PO file in the matrix above to be effective, the package to | |
295 | which it applies should also have been internationalized and | |
296 | distributed as such by its maintainer. There might be an observable | |
297 | lag between the mere existence a PO file and its wide availability in a | |
298 | distribution. | |
299 | ||
300 | If September 2001 seems to be old, you may fetch a more recent copy | |
301 | of this `ABOUT-NLS' file on most GNU archive sites. The most | |
302 | up-to-date matrix with full percentage details can be found at | |
303 | `http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. | |
304 | ||
305 | Using `gettext' in new packages | |
306 | =============================== | |
307 | ||
308 | If you are writing a freely available program and want to | |
309 | internationalize it you are welcome to use GNU `gettext' in your | |
310 | package. Of course you have to respect the GNU Library General Public | |
311 | License which covers the use of the GNU `gettext' library. This means | |
312 | in particular that even non-free programs can use `libintl' as a shared | |
313 | library, whereas only free software can use `libintl' as a static | |
314 | library or use modified versions of `libintl'. | |
315 | ||
316 | Once the sources are changed appropriately and the setup can handle | |
317 | to use of `gettext' the only thing missing are the translations. The | |
318 | Free Translation Project is also available for packages which are not | |
319 | developed inside the GNU project. Therefore the information given above | |
320 | applies also for every other Free Software Project. Contact | |
321 | `translation@iro.umontreal.ca' to make the `.pot' files available to | |
322 | the translation teams. | |
323 |
0 | (C) Yaacov Zamir <kzamir@walla.co.il> 2003-2005. |
0 | GNU GENERAL PUBLIC LICENSE | |
1 | Version 2, June 1991 | |
2 | ||
3 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., | |
4 | 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
5 | Everyone is permitted to copy and distribute verbatim copies | |
6 | of this license document, but changing it is not allowed. | |
7 | ||
8 | Preamble | |
9 | ||
10 | The licenses for most software are designed to take away your | |
11 | freedom to share and change it. By contrast, the GNU General Public | |
12 | License is intended to guarantee your freedom to share and change free | |
13 | software--to make sure the software is free for all its users. This | |
14 | General Public License applies to most of the Free Software | |
15 | Foundation's software and to any other program whose authors commit to | |
16 | using it. (Some other Free Software Foundation software is covered by | |
17 | the GNU Library General Public License instead.) You can apply it to | |
18 | your programs, too. | |
19 | ||
20 | When we speak of free software, we are referring to freedom, not | |
21 | price. Our General Public Licenses are designed to make sure that you | |
22 | have the freedom to distribute copies of free software (and charge for | |
23 | this service if you wish), that you receive source code or can get it | |
24 | if you want it, that you can change the software or use pieces of it | |
25 | in new free programs; and that you know you can do these things. | |
26 | ||
27 | To protect your rights, we need to make restrictions that forbid | |
28 | anyone to deny you these rights or to ask you to surrender the rights. | |
29 | These restrictions translate to certain responsibilities for you if you | |
30 | distribute copies of the software, or if you modify it. | |
31 | ||
32 | For example, if you distribute copies of such a program, whether | |
33 | gratis or for a fee, you must give the recipients all the rights that | |
34 | you have. You must make sure that they, too, receive or can get the | |
35 | source code. And you must show them these terms so they know their | |
36 | rights. | |
37 | ||
38 | We protect your rights with two steps: (1) copyright the software, and | |
39 | (2) offer you this license which gives you legal permission to copy, | |
40 | distribute and/or modify the software. | |
41 | ||
42 | Also, for each author's protection and ours, we want to make certain | |
43 | that everyone understands that there is no warranty for this free | |
44 | software. If the software is modified by someone else and passed on, we | |
45 | want its recipients to know that what they have is not the original, so | |
46 | that any problems introduced by others will not reflect on the original | |
47 | authors' reputations. | |
48 | ||
49 | Finally, any free program is threatened constantly by software | |
50 | patents. We wish to avoid the danger that redistributors of a free | |
51 | program will individually obtain patent licenses, in effect making the | |
52 | program proprietary. To prevent this, we have made it clear that any | |
53 | patent must be licensed for everyone's free use or not licensed at all. | |
54 | ||
55 | The precise terms and conditions for copying, distribution and | |
56 | modification follow. | |
57 | ||
58 | GNU GENERAL PUBLIC LICENSE | |
59 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
60 | ||
61 | 0. This License applies to any program or other work which contains | |
62 | a notice placed by the copyright holder saying it may be distributed | |
63 | under the terms of this General Public License. The "Program", below, | |
64 | refers to any such program or work, and a "work based on the Program" | |
65 | means either the Program or any derivative work under copyright law: | |
66 | that is to say, a work containing the Program or a portion of it, | |
67 | either verbatim or with modifications and/or translated into another | |
68 | language. (Hereinafter, translation is included without limitation in | |
69 | the term "modification".) Each licensee is addressed as "you". | |
70 | ||
71 | Activities other than copying, distribution and modification are not | |
72 | covered by this License; they are outside its scope. The act of | |
73 | running the Program is not restricted, and the output from the Program | |
74 | is covered only if its contents constitute a work based on the | |
75 | Program (independent of having been made by running the Program). | |
76 | Whether that is true depends on what the Program does. | |
77 | ||
78 | 1. You may copy and distribute verbatim copies of the Program's | |
79 | source code as you receive it, in any medium, provided that you | |
80 | conspicuously and appropriately publish on each copy an appropriate | |
81 | copyright notice and disclaimer of warranty; keep intact all the | |
82 | notices that refer to this License and to the absence of any warranty; | |
83 | and give any other recipients of the Program a copy of this License | |
84 | along with the Program. | |
85 | ||
86 | You may charge a fee for the physical act of transferring a copy, and | |
87 | you may at your option offer warranty protection in exchange for a fee. | |
88 | ||
89 | 2. You may modify your copy or copies of the Program or any portion | |
90 | of it, thus forming a work based on the Program, and copy and | |
91 | distribute such modifications or work under the terms of Section 1 | |
92 | above, provided that you also meet all of these conditions: | |
93 | ||
94 | a) You must cause the modified files to carry prominent notices | |
95 | stating that you changed the files and the date of any change. | |
96 | ||
97 | b) You must cause any work that you distribute or publish, that in | |
98 | whole or in part contains or is derived from the Program or any | |
99 | part thereof, to be licensed as a whole at no charge to all third | |
100 | parties under the terms of this License. | |
101 | ||
102 | c) If the modified program normally reads commands interactively | |
103 | when run, you must cause it, when started running for such | |
104 | interactive use in the most ordinary way, to print or display an | |
105 | announcement including an appropriate copyright notice and a | |
106 | notice that there is no warranty (or else, saying that you provide | |
107 | a warranty) and that users may redistribute the program under | |
108 | these conditions, and telling the user how to view a copy of this | |
109 | License. (Exception: if the Program itself is interactive but | |
110 | does not normally print such an announcement, your work based on | |
111 | the Program is not required to print an announcement.) | |
112 | ||
113 | These requirements apply to the modified work as a whole. If | |
114 | identifiable sections of that work are not derived from the Program, | |
115 | and can be reasonably considered independent and separate works in | |
116 | themselves, then this License, and its terms, do not apply to those | |
117 | sections when you distribute them as separate works. But when you | |
118 | distribute the same sections as part of a whole which is a work based | |
119 | on the Program, the distribution of the whole must be on the terms of | |
120 | this License, whose permissions for other licensees extend to the | |
121 | entire whole, and thus to each and every part regardless of who wrote it. | |
122 | ||
123 | Thus, it is not the intent of this section to claim rights or contest | |
124 | your rights to work written entirely by you; rather, the intent is to | |
125 | exercise the right to control the distribution of derivative or | |
126 | collective works based on the Program. | |
127 | ||
128 | In addition, mere aggregation of another work not based on the Program | |
129 | with the Program (or with a work based on the Program) on a volume of | |
130 | a storage or distribution medium does not bring the other work under | |
131 | the scope of this License. | |
132 | ||
133 | 3. You may copy and distribute the Program (or a work based on it, | |
134 | under Section 2) in object code or executable form under the terms of | |
135 | Sections 1 and 2 above provided that you also do one of the following: | |
136 | ||
137 | a) Accompany it with the complete corresponding machine-readable | |
138 | source code, which must be distributed under the terms of Sections | |
139 | 1 and 2 above on a medium customarily used for software interchange; or, | |
140 | ||
141 | b) Accompany it with a written offer, valid for at least three | |
142 | years, to give any third party, for a charge no more than your | |
143 | cost of physically performing source distribution, a complete | |
144 | machine-readable copy of the corresponding source code, to be | |
145 | distributed under the terms of Sections 1 and 2 above on a medium | |
146 | customarily used for software interchange; or, | |
147 | ||
148 | c) Accompany it with the information you received as to the offer | |
149 | to distribute corresponding source code. (This alternative is | |
150 | allowed only for noncommercial distribution and only if you | |
151 | received the program in object code or executable form with such | |
152 | an offer, in accord with Subsection b above.) | |
153 | ||
154 | The source code for a work means the preferred form of the work for | |
155 | making modifications to it. For an executable work, complete source | |
156 | code means all the source code for all modules it contains, plus any | |
157 | associated interface definition files, plus the scripts used to | |
158 | control compilation and installation of the executable. However, as a | |
159 | special exception, the source code distributed need not include | |
160 | anything that is normally distributed (in either source or binary | |
161 | form) with the major components (compiler, kernel, and so on) of the | |
162 | operating system on which the executable runs, unless that component | |
163 | itself accompanies the executable. | |
164 | ||
165 | If distribution of executable or object code is made by offering | |
166 | access to copy from a designated place, then offering equivalent | |
167 | access to copy the source code from the same place counts as | |
168 | distribution of the source code, even though third parties are not | |
169 | compelled to copy the source along with the object code. | |
170 | ||
171 | 4. You may not copy, modify, sublicense, or distribute the Program | |
172 | except as expressly provided under this License. Any attempt | |
173 | otherwise to copy, modify, sublicense or distribute the Program is | |
174 | void, and will automatically terminate your rights under this License. | |
175 | However, parties who have received copies, or rights, from you under | |
176 | this License will not have their licenses terminated so long as such | |
177 | parties remain in full compliance. | |
178 | ||
179 | 5. You are not required to accept this License, since you have not | |
180 | signed it. However, nothing else grants you permission to modify or | |
181 | distribute the Program or its derivative works. These actions are | |
182 | prohibited by law if you do not accept this License. Therefore, by | |
183 | modifying or distributing the Program (or any work based on the | |
184 | Program), you indicate your acceptance of this License to do so, and | |
185 | all its terms and conditions for copying, distributing or modifying | |
186 | the Program or works based on it. | |
187 | ||
188 | 6. Each time you redistribute the Program (or any work based on the | |
189 | Program), the recipient automatically receives a license from the | |
190 | original licensor to copy, distribute or modify the Program subject to | |
191 | these terms and conditions. You may not impose any further | |
192 | restrictions on the recipients' exercise of the rights granted herein. | |
193 | You are not responsible for enforcing compliance by third parties to | |
194 | this License. | |
195 | ||
196 | 7. If, as a consequence of a court judgment or allegation of patent | |
197 | infringement or for any other reason (not limited to patent issues), | |
198 | conditions are imposed on you (whether by court order, agreement or | |
199 | otherwise) that contradict the conditions of this License, they do not | |
200 | excuse you from the conditions of this License. If you cannot | |
201 | distribute so as to satisfy simultaneously your obligations under this | |
202 | License and any other pertinent obligations, then as a consequence you | |
203 | may not distribute the Program at all. For example, if a patent | |
204 | license would not permit royalty-free redistribution of the Program by | |
205 | all those who receive copies directly or indirectly through you, then | |
206 | the only way you could satisfy both it and this License would be to | |
207 | refrain entirely from distribution of the Program. | |
208 | ||
209 | If any portion of this section is held invalid or unenforceable under | |
210 | any particular circumstance, the balance of the section is intended to | |
211 | apply and the section as a whole is intended to apply in other | |
212 | circumstances. | |
213 | ||
214 | It is not the purpose of this section to induce you to infringe any | |
215 | patents or other property right claims or to contest validity of any | |
216 | such claims; this section has the sole purpose of protecting the | |
217 | integrity of the free software distribution system, which is | |
218 | implemented by public license practices. Many people have made | |
219 | generous contributions to the wide range of software distributed | |
220 | through that system in reliance on consistent application of that | |
221 | system; it is up to the author/donor to decide if he or she is willing | |
222 | to distribute software through any other system and a licensee cannot | |
223 | impose that choice. | |
224 | ||
225 | This section is intended to make thoroughly clear what is believed to | |
226 | be a consequence of the rest of this License. | |
227 | ||
228 | 8. If the distribution and/or use of the Program is restricted in | |
229 | certain countries either by patents or by copyrighted interfaces, the | |
230 | original copyright holder who places the Program under this License | |
231 | may add an explicit geographical distribution limitation excluding | |
232 | those countries, so that distribution is permitted only in or among | |
233 | countries not thus excluded. In such case, this License incorporates | |
234 | the limitation as if written in the body of this License. | |
235 | ||
236 | 9. The Free Software Foundation may publish revised and/or new versions | |
237 | of the General Public License from time to time. Such new versions will | |
238 | be similar in spirit to the present version, but may differ in detail to | |
239 | address new problems or concerns. | |
240 | ||
241 | Each version is given a distinguishing version number. If the Program | |
242 | specifies a version number of this License which applies to it and "any | |
243 | later version", you have the option of following the terms and conditions | |
244 | either of that version or of any later version published by the Free | |
245 | Software Foundation. If the Program does not specify a version number of | |
246 | this License, you may choose any version ever published by the Free Software | |
247 | Foundation. | |
248 | ||
249 | 10. If you wish to incorporate parts of the Program into other free | |
250 | programs whose distribution conditions are different, write to the author | |
251 | to ask for permission. For software which is copyrighted by the Free | |
252 | Software Foundation, write to the Free Software Foundation; we sometimes | |
253 | make exceptions for this. Our decision will be guided by the two goals | |
254 | of preserving the free status of all derivatives of our free software and | |
255 | of promoting the sharing and reuse of software generally. | |
256 | ||
257 | NO WARRANTY | |
258 | ||
259 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | |
260 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | |
261 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | |
262 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | |
263 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
264 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | |
265 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | |
266 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | |
267 | REPAIR OR CORRECTION. | |
268 | ||
269 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
270 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | |
271 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | |
272 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | |
273 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | |
274 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | |
275 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | |
276 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | |
277 | POSSIBILITY OF SUCH DAMAGES. | |
278 | ||
279 | END OF TERMS AND CONDITIONS | |
280 | ||
281 | How to Apply These Terms to Your New Programs | |
282 | ||
283 | If you develop a new program, and you want it to be of the greatest | |
284 | possible use to the public, the best way to achieve this is to make it | |
285 | free software which everyone can redistribute and change under these terms. | |
286 | ||
287 | To do so, attach the following notices to the program. It is safest | |
288 | to attach them to the start of each source file to most effectively | |
289 | convey the exclusion of warranty; and each file should have at least | |
290 | the "copyright" line and a pointer to where the full notice is found. | |
291 | ||
292 | <one line to give the program's name and a brief idea of what it does.> | |
293 | Copyright (C) <year> <name of author> | |
294 | ||
295 | This program is free software; you can redistribute it and/or modify | |
296 | it under the terms of the GNU General Public License as published by | |
297 | the Free Software Foundation; either version 2 of the License, or | |
298 | (at your option) any later version. | |
299 | ||
300 | This program is distributed in the hope that it will be useful, | |
301 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
302 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
303 | GNU General Public License for more details. | |
304 | ||
305 | You should have received a copy of the GNU General Public License | |
306 | along with this program; if not, write to the Free Software | |
307 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
308 | ||
309 | ||
310 | Also add information on how to contact you by electronic and paper mail. | |
311 | ||
312 | If the program is interactive, make it output a short notice like this | |
313 | when it starts in an interactive mode: | |
314 | ||
315 | Gnomovision version 69, Copyright (C) year name of author | |
316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
317 | This is free software, and you are welcome to redistribute it | |
318 | under certain conditions; type `show c' for details. | |
319 | ||
320 | The hypothetical commands `show w' and `show c' should show the appropriate | |
321 | parts of the General Public License. Of course, the commands you use may | |
322 | be called something other than `show w' and `show c'; they could even be | |
323 | mouse-clicks or menu items--whatever suits your program. | |
324 | ||
325 | You should also get your employer (if you work as a programmer) or your | |
326 | school, if any, to sign a "copyright disclaimer" for the program, if | |
327 | necessary. Here is a sample; alter the names: | |
328 | ||
329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program | |
330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. | |
331 | ||
332 | <signature of Ty Coon>, 1 April 1989 | |
333 | Ty Coon, President of Vice | |
334 | ||
335 | This General Public License does not permit incorporating your program into | |
336 | proprietary programs. If your program is a subroutine library, you may | |
337 | consider it more useful to permit linking proprietary applications with the | |
338 | library. If this is what you want to do, use the GNU Library General | |
339 | Public License instead of this License. |
0 | libhdate (1.4.9) | |
1 | ||
2 | * Fix endianess bug in big endian machins (/examples/hcal/hcal.c and hdate.c) | |
3 | ||
4 | -- Yaacov Zamir <kzamir@wall.co.il> Saturday, 7 April 2007 22:00 | |
5 | ||
6 | libhdate (1.4.8) | |
7 | ||
8 | * Fix help printing bug: Add new line at the end of hdate help text. | |
9 | * Add two new functios to the time of day section: | |
10 | hdate_get_utc_sun_time_full - gets the time of first light, | |
11 | talit, sunris, sunset, first stars and three stars. | |
12 | hdate_get_utc_sun_time_deg - gets the time the sun is on | |
13 | some known altitude. | |
14 | * Add Times of day to hdate command line tool. | |
15 | supported times: first-light, talit, sunrise, mid-day, sunset, first-stars | |
16 | and three-stars | |
17 | * Add Times of Shabat enter/leave to hdate command line tool. | |
18 | Shabat starts 20 min before sunset, and leave at three stars. | |
19 | * Add new oprions in hdate command line tool to it's man page | |
20 | ||
21 | -- Yaacov Zamir <kzamir@wall.co.il> Tue, 8 Jun 2006 12:13 | |
22 | ||
23 | libhdate (1.4.7) | |
24 | ||
25 | * Fix pesach II in hebrew po file. | |
26 | * hcal utility export strict html 4.01. | |
27 | * hcal utility can export diaspora holidays | |
28 | * Update hcal utility man file. | |
29 | ||
30 | -- Yaacov Zamir <kzamir@wall.co.il> Tue, 18 Apr 2006 12:13 | |
31 | ||
32 | libhdate (1.4.3) | |
33 | ||
34 | * Fix header of spanish po file. | |
35 | * Daniel Nylander: Swedish translation. | |
36 | ||
37 | -- Yaacov Zamir <kzamir@wall.co.il> Mon, 10 Apr 2006 12:13 | |
38 | ||
39 | libhdate (1.4.2) | |
40 | ||
41 | * Ido Kanner <idokan@gmail.com> - Update free pascal bindings. | |
42 | * Update address of Free Software Foundation in COPYING file. | |
43 | * make the spec.in file more configurable. | |
44 | ||
45 | -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Nov 2005 12:13 | |
46 | ||
47 | libhdate (1.4.0) | |
48 | ||
49 | * Michael Kaminsky - libhdate now reports the 2nd day of yom | |
50 | tov on Sukkot and Peseach as Yom Tov and not Chol Hamoed. | |
51 | * Cange C++ API - insert the location and diaspora flag as | |
52 | part of the hdate object. | |
53 | * Docomentation - separate the c and the cpp docs, more readable. | |
54 | * hdate example can now export iCal formated output. | |
55 | ||
56 | -- Yaacov Zamir <kzamir@wall.co.il> Mon, 8 Aug 2005 22:13 | |
57 | ||
58 | libhdate (1.3.1) | |
59 | ||
60 | * Add "const correctness" patch from Markus Elfring (elfring). | |
61 | * Manual page seems to contain a hyphen where a minus sign was | |
62 | intended, patch by Lior Kaplan. | |
63 | * Remove the debian directory from the ziped package. | |
64 | ||
65 | -- Yaacov Zamir <kzamir@wall.co.il> Sat, 30 Jul 2005 22:13 | |
66 | ||
67 | libhdate (1.3.0) | |
68 | ||
69 | * Add examples to the doc directory | |
70 | * doc directory is now /usr/doc/libhdate0 and no /usr/doc/hdate | |
71 | * make int_to_string aware of LANGUAGE system variable, make it more gettext compatible | |
72 | ||
73 | -- Yaacov Zamir <kzamir@wall.co.il> Wed, 27 Jul 2005 18:13 | |
74 | ||
75 | libhdate (1.0.1) | |
76 | ||
77 | * first major reales number. | |
78 | * start to number the shared library. | |
79 | * stable api. | |
80 | * updated utility programs hdate/hcal. | |
81 | * added man files for library and utility programs. | |
82 | * python and perl bindings. | |
83 | * free pascal binding by Ido Kanner <idokan@gmail.com> | |
84 | * ru, fr, he, es translations, thanks to Peled Esti and Boris Peterberg. | |
85 | * added debian dir and RH spec file for easy packing, thanks to Oron Peled. | |
86 | ||
87 | -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13 | |
88 | ||
89 | libhdate (0.30.0) | |
90 | ||
91 | * add es_MX translation by Peled Esti <esti@actcom.co.il> | |
92 | * initial russian translation by Boris Peterberg | |
93 | ||
94 | -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13 | |
95 | ||
96 | libhdate (0.30.0) | |
97 | ||
98 | * cpp, python and perl bindings | |
99 | * examples for the new libhdate bindings | |
100 | ||
101 | -- Yaacov Zamir <kzamir@wall.co.il> Fri, 04 March 2005 15:19:29 | |
102 | ||
103 | libhdate (0.22.0) | |
104 | ||
105 | * Michael Kaminsky's patch to Shavot II on diaspora reading. | |
106 | ||
107 | -- Yaacov Zamir <kzamir@wall.co.il> Mon, 28 Feb 2005 08:12:31 | |
108 | ||
109 | libhdate (0.22.0) | |
110 | ||
111 | * New hebcal examples | |
112 | ||
113 | -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18 | |
114 | ||
115 | libhdate (0.21.0) | |
116 | ||
117 | * New spec file by Oron Peled | |
118 | * Diaspora holydays/readings | |
119 | * New sunrise sunset functions | |
120 | * New html examples | |
121 | * New configure options to build / not build the examples | |
122 | ||
123 | -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18 | |
124 | ||
125 | libhdate (0.17.0) | |
126 | ||
127 | * API chages. | |
128 | * base struct change. | |
129 | ||
130 | -- Yaacov Zamir <kzamir@wall.co.il> Mon, 22 Feb 2005 19:34:22 | |
131 | ||
132 | libhdate (0.16.3) | |
133 | ||
134 | * Try to fix date conversion bug, thanks Michael Kaminsky. | |
135 | ||
136 | -- Yaacov Zamir <kzamir@wall.co.il> Mon, 21 Feb 2005 09:03:12 | |
137 | ||
138 | libhdate (0.16.2) | |
139 | ||
140 | * Syntax error, and weeks calculation bug fixed by Michael Kaminsky. | |
141 | ||
142 | -- Yaacov Zamir <kzamir@wall.co.il> Sun, 20 Feb 2005 06:53:12 | |
143 | ||
144 | libhdate (0.16.1) | |
145 | ||
146 | * Fix locale bug in int_to_string. | |
147 | * Add examples directory. | |
148 | * Minor bug fixes. | |
149 | ||
150 | -- Yaacov Zamir <kzamir@wall.co.il> Sat, 19 Feb 2005 20:07:19 |
0 | Basic Installation | |
1 | ================== | |
2 | ||
3 | These are generic installation instructions. | |
4 | ||
5 | The `configure' shell script attempts to guess correct values for | |
6 | various system-dependent variables used during compilation. It uses | |
7 | those values to create a `Makefile' in each directory of the package. | |
8 | It may also create one or more `.h' files containing system-dependent | |
9 | definitions. Finally, it creates a shell script `config.status' that | |
10 | you can run in the future to recreate the current configuration, a file | |
11 | `config.cache' that saves the results of its tests to speed up | |
12 | reconfiguring, and a file `config.log' containing compiler output | |
13 | (useful mainly for debugging `configure'). | |
14 | ||
15 | If you need to do unusual things to compile the package, please try | |
16 | to figure out how `configure' could check whether to do them, and mail | |
17 | diffs or instructions to the address given in the `README' so they can | |
18 | be considered for the next release. If at some point `config.cache' | |
19 | contains results you don't want to keep, you may remove or edit it. | |
20 | ||
21 | The file `configure.in' is used to create `configure' by a program | |
22 | called `autoconf'. You only need `configure.in' if you want to change | |
23 | it or regenerate `configure' using a newer version of `autoconf'. | |
24 | ||
25 | The simplest way to compile this package is: | |
26 | ||
27 | 1. `cd' to the directory containing the package's source code and type | |
28 | `./configure' to configure the package for your system. If you're | |
29 | using `csh' on an old version of System V, you might need to type | |
30 | `sh ./configure' instead to prevent `csh' from trying to execute | |
31 | `configure' itself. | |
32 | ||
33 | Running `configure' takes awhile. While running, it prints some | |
34 | messages telling which features it is checking for. | |
35 | ||
36 | 2. Type `make' to compile the package. | |
37 | ||
38 | 3. Optionally, type `make check' to run any self-tests that come with | |
39 | the package. | |
40 | ||
41 | 4. Type `make install' to install the programs and any data files and | |
42 | documentation. | |
43 | ||
44 | 5. You can remove the program binaries and object files from the | |
45 | source code directory by typing `make clean'. To also remove the | |
46 | files that `configure' created (so you can compile the package for | |
47 | a different kind of computer), type `make distclean'. There is | |
48 | also a `make maintainer-clean' target, but that is intended mainly | |
49 | for the package's developers. If you use it, you may have to get | |
50 | all sorts of other programs in order to regenerate files that came | |
51 | with the distribution. | |
52 | ||
53 | Compilers and Options | |
54 | ===================== | |
55 | ||
56 | Some systems require unusual options for compilation or linking that | |
57 | the `configure' script does not know about. You can give `configure' | |
58 | initial values for variables by setting them in the environment. Using | |
59 | a Bourne-compatible shell, you can do that on the command line like | |
60 | this: | |
61 | CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure | |
62 | ||
63 | Or on systems that have the `env' program, you can do it like this: | |
64 | env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure | |
65 | ||
66 | Compiling For Multiple Architectures | |
67 | ==================================== | |
68 | ||
69 | You can compile the package for more than one kind of computer at the | |
70 | same time, by placing the object files for each architecture in their | |
71 | own directory. To do this, you must use a version of `make' that | |
72 | supports the `VPATH' variable, such as GNU `make'. `cd' to the | |
73 | directory where you want the object files and executables to go and run | |
74 | the `configure' script. `configure' automatically checks for the | |
75 | source code in the directory that `configure' is in and in `..'. | |
76 | ||
77 | If you have to use a `make' that does not supports the `VPATH' | |
78 | variable, you have to compile the package for one architecture at a time | |
79 | in the source code directory. After you have installed the package for | |
80 | one architecture, use `make distclean' before reconfiguring for another | |
81 | architecture. | |
82 | ||
83 | Installation Names | |
84 | ================== | |
85 | ||
86 | By default, `make install' will install the package's files in | |
87 | `/usr/local/bin', `/usr/local/man', etc. You can specify an | |
88 | installation prefix other than `/usr/local' by giving `configure' the | |
89 | option `--prefix=PATH'. | |
90 | ||
91 | You can specify separate installation prefixes for | |
92 | architecture-specific files and architecture-independent files. If you | |
93 | give `configure' the option `--exec-prefix=PATH', the package will use | |
94 | PATH as the prefix for installing programs and libraries. | |
95 | Documentation and other data files will still use the regular prefix. | |
96 | ||
97 | In addition, if you use an unusual directory layout you can give | |
98 | options like `--bindir=PATH' to specify different values for particular | |
99 | kinds of files. Run `configure --help' for a list of the directories | |
100 | you can set and what kinds of files go in them. | |
101 | ||
102 | If the package supports it, you can cause programs to be installed | |
103 | with an extra prefix or suffix on their names by giving `configure' the | |
104 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | |
105 | ||
106 | Optional Features | |
107 | ================= | |
108 | ||
109 | Some packages pay attention to `--enable-FEATURE' options to | |
110 | `configure', where FEATURE indicates an optional part of the package. | |
111 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | |
112 | is something like `gnu-as' or `x' (for the X Window System). The | |
113 | `README' should mention any `--enable-' and `--with-' options that the | |
114 | package recognizes. | |
115 | ||
116 | For packages that use the X Window System, `configure' can usually | |
117 | find the X include and library files automatically, but if it doesn't, | |
118 | you can use the `configure' options `--x-includes=DIR' and | |
119 | `--x-libraries=DIR' to specify their locations. | |
120 | ||
121 | Specifying the System Type | |
122 | ========================== | |
123 | ||
124 | There may be some features `configure' can not figure out | |
125 | automatically, but needs to determine by the type of host the package | |
126 | will run on. Usually `configure' can figure that out, but if it prints | |
127 | a message saying it can not guess the host type, give it the | |
128 | `--host=TYPE' option. TYPE can either be a short name for the system | |
129 | type, such as `sun4', or a canonical name with three fields: | |
130 | CPU-COMPANY-SYSTEM | |
131 | ||
132 | See the file `config.sub' for the possible values of each field. If | |
133 | `config.sub' isn't included in this package, then this package doesn't | |
134 | need to know the host type. | |
135 | ||
136 | If you are building compiler tools for cross-compiling, you can also | |
137 | use the `--target=TYPE' option to select the type of system they will | |
138 | produce code for and the `--build=TYPE' option to select the type of | |
139 | system on which you are compiling the package. | |
140 | ||
141 | Sharing Defaults | |
142 | ================ | |
143 | ||
144 | If you want to set default values for `configure' scripts to share, | |
145 | you can create a site shell script called `config.site' that gives | |
146 | default values for variables like `CC', `cache_file', and `prefix'. | |
147 | `configure' looks for `PREFIX/share/config.site' if it exists, then | |
148 | `PREFIX/etc/config.site' if it exists. Or, you can set the | |
149 | `CONFIG_SITE' environment variable to the location of the site script. | |
150 | A warning: not all `configure' scripts look for a site script. | |
151 | ||
152 | Operation Controls | |
153 | ================== | |
154 | ||
155 | `configure' recognizes the following options to control how it | |
156 | operates. | |
157 | ||
158 | `--cache-file=FILE' | |
159 | Use and save the results of the tests in FILE instead of | |
160 | `./config.cache'. Set FILE to `/dev/null' to disable caching, for | |
161 | debugging `configure'. | |
162 | ||
163 | `--help' | |
164 | Print a summary of the options to `configure', and exit. | |
165 | ||
166 | `--quiet' | |
167 | `--silent' | |
168 | `-q' | |
169 | Do not print messages saying which checks are being made. To | |
170 | suppress all normal output, redirect it to `/dev/null' (any error | |
171 | messages will still be shown). | |
172 | ||
173 | `--srcdir=DIR' | |
174 | Look for the package's source code in directory DIR. Usually | |
175 | `configure' can determine that directory automatically. | |
176 | ||
177 | `--version' | |
178 | Print the version of Autoconf used to generate the `configure' | |
179 | script, and exit. | |
180 | ||
181 | `configure' also accepts some other, not widely useful, options. |
0 | ## Process this file with automake to produce Makefile.in | |
1 | ## Created by Anjuta - will be overwritten | |
2 | ## If you don't want it to overwrite it, | |
3 | ## Please disable it in the Anjuta project configuration | |
4 | ||
5 | SUBDIRS = intl po src examples bindings | |
6 | ||
7 | pkgconfigdir = $(libdir)/pkgconfig | |
8 | pkgconfig_DATA = libhdate.pc | |
9 | ||
10 | libhdatedocdir = ${prefix}/share/doc/libhdate | |
11 | libhdatedoc_DATA = \ | |
12 | README\ | |
13 | hdate_README\ | |
14 | COPYING\ | |
15 | AUTHORS\ | |
16 | ChangeLog\ | |
17 | INSTALL\ | |
18 | NEWS\ | |
19 | TODO\ | |
20 | USE\ | |
21 | ABOUT-NLS | |
22 | ||
23 | EXTRA_DIST = $(libhdatedoc_DATA) libhdate.pc.in libhdate.spec libhdate.spec.in |
0 | # Makefile.in generated by automake 1.9.6 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005 Free Software Foundation, Inc. | |
5 | # This Makefile.in is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | ||
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | @SET_MAKE@ | |
15 | ||
16 | srcdir = @srcdir@ | |
17 | top_srcdir = @top_srcdir@ | |
18 | VPATH = @srcdir@ | |
19 | pkgdatadir = $(datadir)/@PACKAGE@ | |
20 | pkglibdir = $(libdir)/@PACKAGE@ | |
21 | pkgincludedir = $(includedir)/@PACKAGE@ | |
22 | top_builddir = . | |
23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
24 | INSTALL = @INSTALL@ | |
25 | install_sh_DATA = $(install_sh) -c -m 644 | |
26 | install_sh_PROGRAM = $(install_sh) -c | |
27 | install_sh_SCRIPT = $(install_sh) -c | |
28 | INSTALL_HEADER = $(INSTALL_DATA) | |
29 | transform = $(program_transform_name) | |
30 | NORMAL_INSTALL = : | |
31 | PRE_INSTALL = : | |
32 | POST_INSTALL = : | |
33 | NORMAL_UNINSTALL = : | |
34 | PRE_UNINSTALL = : | |
35 | POST_UNINSTALL = : | |
36 | build_triplet = @build@ | |
37 | host_triplet = @host@ | |
38 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | |
39 | $(srcdir)/Makefile.in $(srcdir)/libhdate.pc.in \ | |
40 | $(srcdir)/libhdate.spec.in $(top_srcdir)/configure \ | |
41 | $(top_srcdir)/intl/Makefile.in ABOUT-NLS AUTHORS COPYING \ | |
42 | ChangeLog INSTALL NEWS TODO compile config.guess config.sub \ | |
43 | depcomp install-sh ltmain.sh missing mkinstalldirs | |
44 | subdir = . | |
45 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
46 | am__aclocal_m4_deps = $(top_srcdir)/configure.in | |
47 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
48 | $(ACLOCAL_M4) | |
49 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
50 | configure.lineno configure.status.lineno | |
51 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
52 | CONFIG_CLEAN_FILES = libhdate.spec libhdate.pc intl/Makefile | |
53 | SOURCES = | |
54 | DIST_SOURCES = | |
55 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
56 | html-recursive info-recursive install-data-recursive \ | |
57 | install-exec-recursive install-info-recursive \ | |
58 | install-recursive installcheck-recursive installdirs-recursive \ | |
59 | pdf-recursive ps-recursive uninstall-info-recursive \ | |
60 | uninstall-recursive | |
61 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
62 | am__vpath_adj = case $$p in \ | |
63 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
64 | *) f=$$p;; \ | |
65 | esac; | |
66 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | |
67 | am__installdirs = "$(DESTDIR)$(libhdatedocdir)" \ | |
68 | "$(DESTDIR)$(pkgconfigdir)" | |
69 | libhdatedocDATA_INSTALL = $(INSTALL_DATA) | |
70 | pkgconfigDATA_INSTALL = $(INSTALL_DATA) | |
71 | DATA = $(libhdatedoc_DATA) $(pkgconfig_DATA) | |
72 | ETAGS = etags | |
73 | CTAGS = ctags | |
74 | DIST_SUBDIRS = $(SUBDIRS) | |
75 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
76 | distdir = $(PACKAGE)-$(VERSION) | |
77 | top_distdir = $(distdir) | |
78 | am__remove_distdir = \ | |
79 | { test ! -d $(distdir) \ | |
80 | || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
81 | && rm -fr $(distdir); }; } | |
82 | DIST_ARCHIVES = $(distdir).tar.gz | |
83 | GZIP_ENV = --best | |
84 | distuninstallcheck_listfiles = find . -type f -print | |
85 | distcleancheck_listfiles = find . -type f -print | |
86 | ACLOCAL = @ACLOCAL@ | |
87 | ALLOCA = @ALLOCA@ | |
88 | AMDEP_FALSE = @AMDEP_FALSE@ | |
89 | AMDEP_TRUE = @AMDEP_TRUE@ | |
90 | AMTAR = @AMTAR@ | |
91 | AR = @AR@ | |
92 | AUTOCONF = @AUTOCONF@ | |
93 | AUTOHEADER = @AUTOHEADER@ | |
94 | AUTOMAKE = @AUTOMAKE@ | |
95 | AWK = @AWK@ | |
96 | BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ | |
97 | CATOBJEXT = @CATOBJEXT@ | |
98 | CC = @CC@ | |
99 | CCDEPMODE = @CCDEPMODE@ | |
100 | CFLAGS = @CFLAGS@ | |
101 | CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ | |
102 | CPP = @CPP@ | |
103 | CPPFLAGS = @CPPFLAGS@ | |
104 | CXX = @CXX@ | |
105 | CXXCPP = @CXXCPP@ | |
106 | CXXDEPMODE = @CXXDEPMODE@ | |
107 | CXXFLAGS = @CXXFLAGS@ | |
108 | CYGPATH_W = @CYGPATH_W@ | |
109 | DATADIRNAME = @DATADIRNAME@ | |
110 | DEFS = @DEFS@ | |
111 | DEPDIR = @DEPDIR@ | |
112 | ECHO = @ECHO@ | |
113 | ECHO_C = @ECHO_C@ | |
114 | ECHO_N = @ECHO_N@ | |
115 | ECHO_T = @ECHO_T@ | |
116 | EGREP = @EGREP@ | |
117 | EXEEXT = @EXEEXT@ | |
118 | F77 = @F77@ | |
119 | FFLAGS = @FFLAGS@ | |
120 | GENCAT = @GENCAT@ | |
121 | GLIBC2 = @GLIBC2@ | |
122 | GLIBC21 = @GLIBC21@ | |
123 | GMSGFMT = @GMSGFMT@ | |
124 | GMSGFMT_015 = @GMSGFMT_015@ | |
125 | GREP = @GREP@ | |
126 | HAVE_ASPRINTF = @HAVE_ASPRINTF@ | |
127 | HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ | |
128 | HAVE_SNPRINTF = @HAVE_SNPRINTF@ | |
129 | HAVE_VISIBILITY = @HAVE_VISIBILITY@ | |
130 | HAVE_WPRINTF = @HAVE_WPRINTF@ | |
131 | INSTALL_DATA = @INSTALL_DATA@ | |
132 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
133 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
134 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
135 | INSTOBJEXT = @INSTOBJEXT@ | |
136 | INTLBISON = @INTLBISON@ | |
137 | INTLLIBS = @INTLLIBS@ | |
138 | INTLOBJS = @INTLOBJS@ | |
139 | INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ | |
140 | INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ | |
141 | LDFLAGS = @LDFLAGS@ | |
142 | LIBICONV = @LIBICONV@ | |
143 | LIBINTL = @LIBINTL@ | |
144 | LIBMULTITHREAD = @LIBMULTITHREAD@ | |
145 | LIBOBJS = @LIBOBJS@ | |
146 | LIBPTH = @LIBPTH@ | |
147 | LIBS = @LIBS@ | |
148 | LIBTHREAD = @LIBTHREAD@ | |
149 | LIBTOOL = @LIBTOOL@ | |
150 | LN_S = @LN_S@ | |
151 | LTLIBICONV = @LTLIBICONV@ | |
152 | LTLIBINTL = @LTLIBINTL@ | |
153 | LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ | |
154 | LTLIBOBJS = @LTLIBOBJS@ | |
155 | LTLIBPTH = @LTLIBPTH@ | |
156 | LTLIBTHREAD = @LTLIBTHREAD@ | |
157 | MAINT = @MAINT@ | |
158 | MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ | |
159 | MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ | |
160 | MAKEINFO = @MAKEINFO@ | |
161 | MSGFMT = @MSGFMT@ | |
162 | MSGFMT_015 = @MSGFMT_015@ | |
163 | MSGMERGE = @MSGMERGE@ | |
164 | OBJEXT = @OBJEXT@ | |
165 | PACKAGE = @PACKAGE@ | |
166 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
167 | PACKAGE_NAME = @PACKAGE_NAME@ | |
168 | PACKAGE_STRING = @PACKAGE_STRING@ | |
169 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
170 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
171 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
172 | PA_MODULES_PATH = @PA_MODULES_PATH@ | |
173 | PA_VERSION = @PA_VERSION@ | |
174 | PE_CFLAGS = @PE_CFLAGS@ | |
175 | PE_MODULES_PATH = @PE_MODULES_PATH@ | |
176 | PKG_CONFIG = @PKG_CONFIG@ | |
177 | POSUB = @POSUB@ | |
178 | PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ | |
179 | PY_CFLAGS = @PY_CFLAGS@ | |
180 | PY_MODULES_PATH = @PY_MODULES_PATH@ | |
181 | PY_VERSION = @PY_VERSION@ | |
182 | RANLIB = @RANLIB@ | |
183 | SET_MAKE = @SET_MAKE@ | |
184 | SHELL = @SHELL@ | |
185 | STRIP = @STRIP@ | |
186 | USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ | |
187 | USE_NLS = @USE_NLS@ | |
188 | VERSION = @VERSION@ | |
189 | VERSION_INFO = @VERSION_INFO@ | |
190 | WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@ | |
191 | WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@ | |
192 | WITH_HCAL_FALSE = @WITH_HCAL_FALSE@ | |
193 | WITH_HCAL_TRUE = @WITH_HCAL_TRUE@ | |
194 | WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@ | |
195 | WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@ | |
196 | WITH_PERL_FALSE = @WITH_PERL_FALSE@ | |
197 | WITH_PERL_TRUE = @WITH_PERL_TRUE@ | |
198 | WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@ | |
199 | WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@ | |
200 | WOE32DLL = @WOE32DLL@ | |
201 | XGETTEXT = @XGETTEXT@ | |
202 | XGETTEXT_015 = @XGETTEXT_015@ | |
203 | ac_ct_CC = @ac_ct_CC@ | |
204 | ac_ct_CXX = @ac_ct_CXX@ | |
205 | ac_ct_F77 = @ac_ct_F77@ | |
206 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | |
207 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | |
208 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ | |
209 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ | |
210 | am__include = @am__include@ | |
211 | am__leading_dot = @am__leading_dot@ | |
212 | am__quote = @am__quote@ | |
213 | am__tar = @am__tar@ | |
214 | am__untar = @am__untar@ | |
215 | bindir = @bindir@ | |
216 | build = @build@ | |
217 | build_alias = @build_alias@ | |
218 | build_cpu = @build_cpu@ | |
219 | build_os = @build_os@ | |
220 | build_vendor = @build_vendor@ | |
221 | datadir = @datadir@ | |
222 | datarootdir = @datarootdir@ | |
223 | docdir = @docdir@ | |
224 | dvidir = @dvidir@ | |
225 | exec_prefix = @exec_prefix@ | |
226 | have_pascal = @have_pascal@ | |
227 | have_perl = @have_perl@ | |
228 | have_python = @have_python@ | |
229 | have_swig = @have_swig@ | |
230 | host = @host@ | |
231 | host_alias = @host_alias@ | |
232 | host_cpu = @host_cpu@ | |
233 | host_os = @host_os@ | |
234 | host_vendor = @host_vendor@ | |
235 | htmldir = @htmldir@ | |
236 | includedir = @includedir@ | |
237 | infodir = @infodir@ | |
238 | install_sh = @install_sh@ | |
239 | libdir = @libdir@ | |
240 | libexecdir = @libexecdir@ | |
241 | localedir = @localedir@ | |
242 | localstatedir = @localstatedir@ | |
243 | mandir = @mandir@ | |
244 | mkdir_p = @mkdir_p@ | |
245 | oldincludedir = @oldincludedir@ | |
246 | pdfdir = @pdfdir@ | |
247 | prefix = @prefix@ | |
248 | program_transform_name = @program_transform_name@ | |
249 | psdir = @psdir@ | |
250 | sbindir = @sbindir@ | |
251 | sharedstatedir = @sharedstatedir@ | |
252 | sysconfdir = @sysconfdir@ | |
253 | target_alias = @target_alias@ | |
254 | SUBDIRS = intl po src examples bindings | |
255 | pkgconfigdir = $(libdir)/pkgconfig | |
256 | pkgconfig_DATA = libhdate.pc | |
257 | libhdatedocdir = ${prefix}/share/doc/libhdate | |
258 | libhdatedoc_DATA = \ | |
259 | README\ | |
260 | hdate_README\ | |
261 | COPYING\ | |
262 | AUTHORS\ | |
263 | ChangeLog\ | |
264 | INSTALL\ | |
265 | NEWS\ | |
266 | TODO\ | |
267 | USE\ | |
268 | ABOUT-NLS | |
269 | ||
270 | EXTRA_DIST = $(libhdatedoc_DATA) libhdate.pc.in libhdate.spec libhdate.spec.in | |
271 | all: all-recursive | |
272 | ||
273 | .SUFFIXES: | |
274 | am--refresh: | |
275 | @: | |
276 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | |
277 | @for dep in $?; do \ | |
278 | case '$(am__configure_deps)' in \ | |
279 | *$$dep*) \ | |
280 | echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ | |
281 | cd $(srcdir) && $(AUTOMAKE) --gnu \ | |
282 | && exit 0; \ | |
283 | exit 1;; \ | |
284 | esac; \ | |
285 | done; \ | |
286 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |
287 | cd $(top_srcdir) && \ | |
288 | $(AUTOMAKE) --gnu Makefile | |
289 | .PRECIOUS: Makefile | |
290 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
291 | @case '$?' in \ | |
292 | *config.status*) \ | |
293 | echo ' $(SHELL) ./config.status'; \ | |
294 | $(SHELL) ./config.status;; \ | |
295 | *) \ | |
296 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | |
297 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | |
298 | esac; | |
299 | ||
300 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
301 | $(SHELL) ./config.status --recheck | |
302 | ||
303 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
304 | cd $(srcdir) && $(AUTOCONF) | |
305 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | |
306 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
307 | libhdate.spec: $(top_builddir)/config.status $(srcdir)/libhdate.spec.in | |
308 | cd $(top_builddir) && $(SHELL) ./config.status $@ | |
309 | libhdate.pc: $(top_builddir)/config.status $(srcdir)/libhdate.pc.in | |
310 | cd $(top_builddir) && $(SHELL) ./config.status $@ | |
311 | intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in | |
312 | cd $(top_builddir) && $(SHELL) ./config.status $@ | |
313 | ||
314 | mostlyclean-libtool: | |
315 | -rm -f *.lo | |
316 | ||
317 | clean-libtool: | |
318 | -rm -rf .libs _libs | |
319 | ||
320 | distclean-libtool: | |
321 | -rm -f libtool | |
322 | uninstall-info-am: | |
323 | install-libhdatedocDATA: $(libhdatedoc_DATA) | |
324 | @$(NORMAL_INSTALL) | |
325 | test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)" | |
326 | @list='$(libhdatedoc_DATA)'; for p in $$list; do \ | |
327 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | |
328 | f=$(am__strip_dir) \ | |
329 | echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \ | |
330 | $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \ | |
331 | done | |
332 | ||
333 | uninstall-libhdatedocDATA: | |
334 | @$(NORMAL_UNINSTALL) | |
335 | @list='$(libhdatedoc_DATA)'; for p in $$list; do \ | |
336 | f=$(am__strip_dir) \ | |
337 | echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \ | |
338 | rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \ | |
339 | done | |
340 | install-pkgconfigDATA: $(pkgconfig_DATA) | |
341 | @$(NORMAL_INSTALL) | |
342 | test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)" | |
343 | @list='$(pkgconfig_DATA)'; for p in $$list; do \ | |
344 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | |
345 | f=$(am__strip_dir) \ | |
346 | echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ | |
347 | $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \ | |
348 | done | |
349 | ||
350 | uninstall-pkgconfigDATA: | |
351 | @$(NORMAL_UNINSTALL) | |
352 | @list='$(pkgconfig_DATA)'; for p in $$list; do \ | |
353 | f=$(am__strip_dir) \ | |
354 | echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ | |
355 | rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \ | |
356 | done | |
357 | ||
358 | # This directory's subdirectories are mostly independent; you can cd | |
359 | # into them and run `make' without going through this Makefile. | |
360 | # To change the values of `make' variables: instead of editing Makefiles, | |
361 | # (1) if the variable is set in `config.status', edit `config.status' | |
362 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
363 | # (2) otherwise, pass the desired values on the `make' command line. | |
364 | $(RECURSIVE_TARGETS): | |
365 | @failcom='exit 1'; \ | |
366 | for f in x $$MAKEFLAGS; do \ | |
367 | case $$f in \ | |
368 | *=* | --[!k]*);; \ | |
369 | *k*) failcom='fail=yes';; \ | |
370 | esac; \ | |
371 | done; \ | |
372 | dot_seen=no; \ | |
373 | target=`echo $@ | sed s/-recursive//`; \ | |
374 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
375 | echo "Making $$target in $$subdir"; \ | |
376 | if test "$$subdir" = "."; then \ | |
377 | dot_seen=yes; \ | |
378 | local_target="$$target-am"; \ | |
379 | else \ | |
380 | local_target="$$target"; \ | |
381 | fi; \ | |
382 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
383 | || eval $$failcom; \ | |
384 | done; \ | |
385 | if test "$$dot_seen" = "no"; then \ | |
386 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
387 | fi; test -z "$$fail" | |
388 | ||
389 | mostlyclean-recursive clean-recursive distclean-recursive \ | |
390 | maintainer-clean-recursive: | |
391 | @failcom='exit 1'; \ | |
392 | for f in x $$MAKEFLAGS; do \ | |
393 | case $$f in \ | |
394 | *=* | --[!k]*);; \ | |
395 | *k*) failcom='fail=yes';; \ | |
396 | esac; \ | |
397 | done; \ | |
398 | dot_seen=no; \ | |
399 | case "$@" in \ | |
400 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
401 | *) list='$(SUBDIRS)' ;; \ | |
402 | esac; \ | |
403 | rev=''; for subdir in $$list; do \ | |
404 | if test "$$subdir" = "."; then :; else \ | |
405 | rev="$$subdir $$rev"; \ | |
406 | fi; \ | |
407 | done; \ | |
408 | rev="$$rev ."; \ | |
409 | target=`echo $@ | sed s/-recursive//`; \ | |
410 | for subdir in $$rev; do \ | |
411 | echo "Making $$target in $$subdir"; \ | |
412 | if test "$$subdir" = "."; then \ | |
413 | local_target="$$target-am"; \ | |
414 | else \ | |
415 | local_target="$$target"; \ | |
416 | fi; \ | |
417 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
418 | || eval $$failcom; \ | |
419 | done && test -z "$$fail" | |
420 | tags-recursive: | |
421 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
422 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
423 | done | |
424 | ctags-recursive: | |
425 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
426 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
427 | done | |
428 | ||
429 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
430 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
431 | unique=`for i in $$list; do \ | |
432 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
433 | done | \ | |
434 | $(AWK) ' { files[$$0] = 1; } \ | |
435 | END { for (i in files) print i; }'`; \ | |
436 | mkid -fID $$unique | |
437 | tags: TAGS | |
438 | ||
439 | TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
440 | $(TAGS_FILES) $(LISP) | |
441 | tags=; \ | |
442 | here=`pwd`; \ | |
443 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | |
444 | include_option=--etags-include; \ | |
445 | empty_fix=.; \ | |
446 | else \ | |
447 | include_option=--include; \ | |
448 | empty_fix=; \ | |
449 | fi; \ | |
450 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
451 | if test "$$subdir" = .; then :; else \ | |
452 | test ! -f $$subdir/TAGS || \ | |
453 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ | |
454 | fi; \ | |
455 | done; \ | |
456 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
457 | unique=`for i in $$list; do \ | |
458 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
459 | done | \ | |
460 | $(AWK) ' { files[$$0] = 1; } \ | |
461 | END { for (i in files) print i; }'`; \ | |
462 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | |
463 | test -n "$$unique" || unique=$$empty_fix; \ | |
464 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
465 | $$tags $$unique; \ | |
466 | fi | |
467 | ctags: CTAGS | |
468 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
469 | $(TAGS_FILES) $(LISP) | |
470 | tags=; \ | |
471 | here=`pwd`; \ | |
472 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
473 | unique=`for i in $$list; do \ | |
474 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
475 | done | \ | |
476 | $(AWK) ' { files[$$0] = 1; } \ | |
477 | END { for (i in files) print i; }'`; \ | |
478 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | |
479 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
480 | $$tags $$unique | |
481 | ||
482 | GTAGS: | |
483 | here=`$(am__cd) $(top_builddir) && pwd` \ | |
484 | && cd $(top_srcdir) \ | |
485 | && gtags -i $(GTAGS_ARGS) $$here | |
486 | ||
487 | distclean-tags: | |
488 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
489 | ||
490 | distdir: $(DISTFILES) | |
491 | $(am__remove_distdir) | |
492 | mkdir $(distdir) | |
493 | $(mkdir_p) $(distdir)/. $(distdir)/intl $(distdir)/po | |
494 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | |
495 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | |
496 | list='$(DISTFILES)'; for file in $$list; do \ | |
497 | case $$file in \ | |
498 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ | |
499 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ | |
500 | esac; \ | |
501 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
502 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
503 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ | |
504 | dir="/$$dir"; \ | |
505 | $(mkdir_p) "$(distdir)$$dir"; \ | |
506 | else \ | |
507 | dir=''; \ | |
508 | fi; \ | |
509 | if test -d $$d/$$file; then \ | |
510 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
511 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | |
512 | fi; \ | |
513 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | |
514 | else \ | |
515 | test -f $(distdir)/$$file \ | |
516 | || cp -p $$d/$$file $(distdir)/$$file \ | |
517 | || exit 1; \ | |
518 | fi; \ | |
519 | done | |
520 | list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
521 | if test "$$subdir" = .; then :; else \ | |
522 | test -d "$(distdir)/$$subdir" \ | |
523 | || $(mkdir_p) "$(distdir)/$$subdir" \ | |
524 | || exit 1; \ | |
525 | distdir=`$(am__cd) $(distdir) && pwd`; \ | |
526 | top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ | |
527 | (cd $$subdir && \ | |
528 | $(MAKE) $(AM_MAKEFLAGS) \ | |
529 | top_distdir="$$top_distdir" \ | |
530 | distdir="$$distdir/$$subdir" \ | |
531 | distdir) \ | |
532 | || exit 1; \ | |
533 | fi; \ | |
534 | done | |
535 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | |
536 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
537 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
538 | ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ | |
539 | || chmod -R a+r $(distdir) | |
540 | dist-gzip: distdir | |
541 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
542 | $(am__remove_distdir) | |
543 | ||
544 | dist-bzip2: distdir | |
545 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
546 | $(am__remove_distdir) | |
547 | ||
548 | dist-tarZ: distdir | |
549 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
550 | $(am__remove_distdir) | |
551 | ||
552 | dist-shar: distdir | |
553 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
554 | $(am__remove_distdir) | |
555 | ||
556 | dist-zip: distdir | |
557 | -rm -f $(distdir).zip | |
558 | zip -rq $(distdir).zip $(distdir) | |
559 | $(am__remove_distdir) | |
560 | ||
561 | dist dist-all: distdir | |
562 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
563 | $(am__remove_distdir) | |
564 | ||
565 | # This target untars the dist file and tries a VPATH configuration. Then | |
566 | # it guarantees that the distribution is self-contained by making another | |
567 | # tarfile. | |
568 | distcheck: dist | |
569 | case '$(DIST_ARCHIVES)' in \ | |
570 | *.tar.gz*) \ | |
571 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ | |
572 | *.tar.bz2*) \ | |
573 | bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ | |
574 | *.tar.Z*) \ | |
575 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
576 | *.shar.gz*) \ | |
577 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ | |
578 | *.zip*) \ | |
579 | unzip $(distdir).zip ;;\ | |
580 | esac | |
581 | chmod -R a-w $(distdir); chmod a+w $(distdir) | |
582 | mkdir $(distdir)/_build | |
583 | mkdir $(distdir)/_inst | |
584 | chmod a-w $(distdir) | |
585 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
586 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
587 | && cd $(distdir)/_build \ | |
588 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
589 | --with-included-gettext \ | |
590 | $(DISTCHECK_CONFIGURE_FLAGS) \ | |
591 | && $(MAKE) $(AM_MAKEFLAGS) \ | |
592 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
593 | && $(MAKE) $(AM_MAKEFLAGS) check \ | |
594 | && $(MAKE) $(AM_MAKEFLAGS) install \ | |
595 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
596 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
597 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
598 | distuninstallcheck \ | |
599 | && chmod -R a-w "$$dc_install_base" \ | |
600 | && ({ \ | |
601 | (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
602 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
603 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
604 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
605 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
606 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
607 | && rm -rf "$$dc_destdir" \ | |
608 | && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
609 | && rm -rf $(DIST_ARCHIVES) \ | |
610 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck | |
611 | $(am__remove_distdir) | |
612 | @(echo "$(distdir) archives ready for distribution: "; \ | |
613 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
614 | sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' | |
615 | distuninstallcheck: | |
616 | @cd $(distuninstallcheck_dir) \ | |
617 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | |
618 | || { echo "ERROR: files left after uninstall:" ; \ | |
619 | if test -n "$(DESTDIR)"; then \ | |
620 | echo " (check DESTDIR support)"; \ | |
621 | fi ; \ | |
622 | $(distuninstallcheck_listfiles) ; \ | |
623 | exit 1; } >&2 | |
624 | distcleancheck: distclean | |
625 | @if test '$(srcdir)' = . ; then \ | |
626 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
627 | exit 1 ; \ | |
628 | fi | |
629 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
630 | || { echo "ERROR: files left in build directory after distclean:" ; \ | |
631 | $(distcleancheck_listfiles) ; \ | |
632 | exit 1; } >&2 | |
633 | check-am: all-am | |
634 | check: check-recursive | |
635 | all-am: Makefile $(DATA) | |
636 | installdirs: installdirs-recursive | |
637 | installdirs-am: | |
638 | for dir in "$(DESTDIR)$(libhdatedocdir)" "$(DESTDIR)$(pkgconfigdir)"; do \ | |
639 | test -z "$$dir" || $(mkdir_p) "$$dir"; \ | |
640 | done | |
641 | install: install-recursive | |
642 | install-exec: install-exec-recursive | |
643 | install-data: install-data-recursive | |
644 | uninstall: uninstall-recursive | |
645 | ||
646 | install-am: all-am | |
647 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
648 | ||
649 | installcheck: installcheck-recursive | |
650 | install-strip: | |
651 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
652 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
653 | `test -z '$(STRIP)' || \ | |
654 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |
655 | mostlyclean-generic: | |
656 | ||
657 | clean-generic: | |
658 | ||
659 | distclean-generic: | |
660 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
661 | ||
662 | maintainer-clean-generic: | |
663 | @echo "This command is intended for maintainers to use" | |
664 | @echo "it deletes files that may require special tools to rebuild." | |
665 | clean: clean-recursive | |
666 | ||
667 | clean-am: clean-generic clean-libtool mostlyclean-am | |
668 | ||
669 | distclean: distclean-recursive | |
670 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
671 | -rm -f Makefile | |
672 | distclean-am: clean-am distclean-generic distclean-libtool \ | |
673 | distclean-tags | |
674 | ||
675 | dvi: dvi-recursive | |
676 | ||
677 | dvi-am: | |
678 | ||
679 | html: html-recursive | |
680 | ||
681 | info: info-recursive | |
682 | ||
683 | info-am: | |
684 | ||
685 | install-data-am: install-libhdatedocDATA install-pkgconfigDATA | |
686 | ||
687 | install-exec-am: | |
688 | ||
689 | install-info: install-info-recursive | |
690 | ||
691 | install-man: | |
692 | ||
693 | installcheck-am: | |
694 | ||
695 | maintainer-clean: maintainer-clean-recursive | |
696 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
697 | -rm -rf $(top_srcdir)/autom4te.cache | |
698 | -rm -f Makefile | |
699 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
700 | ||
701 | mostlyclean: mostlyclean-recursive | |
702 | ||
703 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool | |
704 | ||
705 | pdf: pdf-recursive | |
706 | ||
707 | pdf-am: | |
708 | ||
709 | ps: ps-recursive | |
710 | ||
711 | ps-am: | |
712 | ||
713 | uninstall-am: uninstall-info-am uninstall-libhdatedocDATA \ | |
714 | uninstall-pkgconfigDATA | |
715 | ||
716 | uninstall-info: uninstall-info-recursive | |
717 | ||
718 | .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ | |
719 | check-am clean clean-generic clean-libtool clean-recursive \ | |
720 | ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ | |
721 | dist-shar dist-tarZ dist-zip distcheck distclean \ | |
722 | distclean-generic distclean-libtool distclean-recursive \ | |
723 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ | |
724 | dvi-am html html-am info info-am install install-am \ | |
725 | install-data install-data-am install-exec install-exec-am \ | |
726 | install-info install-info-am install-libhdatedocDATA \ | |
727 | install-man install-pkgconfigDATA install-strip installcheck \ | |
728 | installcheck-am installdirs installdirs-am maintainer-clean \ | |
729 | maintainer-clean-generic maintainer-clean-recursive \ | |
730 | mostlyclean mostlyclean-generic mostlyclean-libtool \ | |
731 | mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ | |
732 | uninstall uninstall-am uninstall-info-am \ | |
733 | uninstall-libhdatedocDATA uninstall-pkgconfigDATA | |
734 | ||
735 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
736 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
737 | .NOEXPORT: |
0 | This library of functions are using the sorce code from | |
1 | Amos Shapir's "hdate" package fixed and patched by Nadav Har'El. | |
2 | See the original package's README (hdate_README) | |
3 | ||
4 | LibHdate is a small C,C++ library for Hebrew dates, | |
5 | holidays, and reading sequence (parasha). It is using | |
6 | the sorce code from Amos Shapir's "hdate" package fixed and | |
7 | patched by Nadav Har'El. The Torah reading sequence | |
8 | is from tables by Zvi Har'El. | |
9 | ||
10 | 15 Adar II 5763 Shusan Purim | |
11 | kobi zamir <kzamir@walla.co.il> | |
12 | ------------------------------------- | |
13 | ||
14 | see USE file for usage. | |
15 |
0 | libhdate (1.2.1) | |
1 | ||
2 | * hcal example to print hebrew months and years | |
3 | * configure.in - prefix for pascal, version for debian changlog | |
4 | * mono binding usig swig | |
5 | * ask eytan about the freanch | |
6 | * clean the c code out of the pascal demo file ? | |
7 | ||
8 | -- Yaacov Zamir <kzamir@wall.co.il> Tue, 15 Mar 2005 08:04:32 | |
9 | ||
10 | libhdate (0.16.3) | |
11 | ||
12 | * Check date conversion, for more dates. | |
13 | * More checks for Holyday function. | |
14 | * More checks for Parasha function. | |
15 | ||
16 | -- Yaacov Zamir <kzamir@wall.co.il> Mon, 21 Feb 2005 09:93:12 |
0 | use: | |
1 | ---- | |
2 | gcc -c `pkg-config --cflags libhdate` <your code>.c | |
3 | gcc `pkg-config --libs libhdate` <your code>.o -o <program name> | |
4 | ||
5 | ||
6 | if you dont have pkg-config: | |
7 | ---------------------------- | |
8 | ||
9 | gcc -c <your code>.c | |
10 | gcc -lm -lhdate <your code>.o -o <program name> | |
11 | ||
12 | ||
13 | kobi zamir <kzamir@walla.co.il> | |
14 | ------------------------------------- | |
15 | ||
16 | ------------------------------- | |
17 | example code: | |
18 | file: test.c | |
19 | ------------------------------- | |
20 | ||
21 | #include <stdio.h> | |
22 | #include <hdate.h> | |
23 | ||
24 | #define TRUE 1 | |
25 | #define FALSE 0 | |
26 | ||
27 | int | |
28 | main() | |
29 | { | |
30 | hdate_struct *h; | |
31 | ||
32 | h = hdate_hdate( 0,0,0); | |
33 | ||
34 | printf ("%s\n", hdate_get_format_date (h, FALSE) ); | |
35 | ||
36 | return 0; | |
37 | } | |
38 | ||
39 | -------------------------------- | |
40 | compile: | |
41 | -------------------------------- | |
42 | ||
43 | gcc -lm -lhdate test.c -o test | |
44 | ||
45 | -------------------------------- | |
46 | run: | |
47 | -------------------------------- | |
48 | ||
49 | ./test |
0 | # generated automatically by aclocal 1.9.6 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
3 | # 2005 Free Software Foundation, Inc. | |
4 | # This file is free software; the Free Software Foundation | |
5 | # gives unlimited permission to copy and/or distribute it, | |
6 | # with or without modifications, as long as this notice is preserved. | |
7 | ||
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
11 | # PARTICULAR PURPOSE. | |
12 | ||
13 | # codeset.m4 serial 2 (gettext-0.16) | |
14 | dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc. | |
15 | dnl This file is free software; the Free Software Foundation | |
16 | dnl gives unlimited permission to copy and/or distribute it, | |
17 | dnl with or without modifications, as long as this notice is preserved. | |
18 | ||
19 | dnl From Bruno Haible. | |
20 | ||
21 | AC_DEFUN([AM_LANGINFO_CODESET], | |
22 | [ | |
23 | AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, | |
24 | [AC_TRY_LINK([#include <langinfo.h>], | |
25 | [char* cs = nl_langinfo(CODESET); return !cs;], | |
26 | am_cv_langinfo_codeset=yes, | |
27 | am_cv_langinfo_codeset=no) | |
28 | ]) | |
29 | if test $am_cv_langinfo_codeset = yes; then | |
30 | AC_DEFINE(HAVE_LANGINFO_CODESET, 1, | |
31 | [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) | |
32 | fi | |
33 | ]) | |
34 | ||
35 | # gettext.m4 serial 59 (gettext-0.16.1) | |
36 | dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. | |
37 | dnl This file is free software; the Free Software Foundation | |
38 | dnl gives unlimited permission to copy and/or distribute it, | |
39 | dnl with or without modifications, as long as this notice is preserved. | |
40 | dnl | |
41 | dnl This file can can be used in projects which are not available under | |
42 | dnl the GNU General Public License or the GNU Library General Public | |
43 | dnl License but which still want to provide support for the GNU gettext | |
44 | dnl functionality. | |
45 | dnl Please note that the actual code of the GNU gettext library is covered | |
46 | dnl by the GNU Library General Public License, and the rest of the GNU | |
47 | dnl gettext package package is covered by the GNU General Public License. | |
48 | dnl They are *not* in the public domain. | |
49 | ||
50 | dnl Authors: | |
51 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | |
52 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006. | |
53 | ||
54 | dnl Macro to add for using GNU gettext. | |
55 | ||
56 | dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). | |
57 | dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The | |
58 | dnl default (if it is not specified or empty) is 'no-libtool'. | |
59 | dnl INTLSYMBOL should be 'external' for packages with no intl directory, | |
60 | dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. | |
61 | dnl If INTLSYMBOL is 'use-libtool', then a libtool library | |
62 | dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, | |
63 | dnl depending on --{enable,disable}-{shared,static} and on the presence of | |
64 | dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library | |
65 | dnl $(top_builddir)/intl/libintl.a will be created. | |
66 | dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext | |
67 | dnl implementations (in libc or libintl) without the ngettext() function | |
68 | dnl will be ignored. If NEEDSYMBOL is specified and is | |
69 | dnl 'need-formatstring-macros', then GNU gettext implementations that don't | |
70 | dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. | |
71 | dnl INTLDIR is used to find the intl libraries. If empty, | |
72 | dnl the value `$(top_builddir)/intl/' is used. | |
73 | dnl | |
74 | dnl The result of the configuration is one of three cases: | |
75 | dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled | |
76 | dnl and used. | |
77 | dnl Catalog format: GNU --> install in $(datadir) | |
78 | dnl Catalog extension: .mo after installation, .gmo in source tree | |
79 | dnl 2) GNU gettext has been found in the system's C library. | |
80 | dnl Catalog format: GNU --> install in $(datadir) | |
81 | dnl Catalog extension: .mo after installation, .gmo in source tree | |
82 | dnl 3) No internationalization, always use English msgid. | |
83 | dnl Catalog format: none | |
84 | dnl Catalog extension: none | |
85 | dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. | |
86 | dnl The use of .gmo is historical (it was needed to avoid overwriting the | |
87 | dnl GNU format catalogs when building on a platform with an X/Open gettext), | |
88 | dnl but we keep it in order not to force irrelevant filename changes on the | |
89 | dnl maintainers. | |
90 | dnl | |
91 | AC_DEFUN([AM_GNU_GETTEXT], | |
92 | [ | |
93 | dnl Argument checking. | |
94 | ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , | |
95 | [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT | |
96 | ])])])])]) | |
97 | ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , | |
98 | [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT | |
99 | ])])])]) | |
100 | define([gt_included_intl], | |
101 | ifelse([$1], [external], | |
102 | ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), | |
103 | [yes])) | |
104 | define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) | |
105 | gt_NEEDS_INIT | |
106 | AM_GNU_GETTEXT_NEED([$2]) | |
107 | ||
108 | AC_REQUIRE([AM_PO_SUBDIRS])dnl | |
109 | ifelse(gt_included_intl, yes, [ | |
110 | AC_REQUIRE([AM_INTL_SUBDIR])dnl | |
111 | ]) | |
112 | ||
113 | dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. | |
114 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | |
115 | AC_REQUIRE([AC_LIB_RPATH]) | |
116 | ||
117 | dnl Sometimes libintl requires libiconv, so first search for libiconv. | |
118 | dnl Ideally we would do this search only after the | |
119 | dnl if test "$USE_NLS" = "yes"; then | |
120 | dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | |
121 | dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT | |
122 | dnl the configure script would need to contain the same shell code | |
123 | dnl again, outside any 'if'. There are two solutions: | |
124 | dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. | |
125 | dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. | |
126 | dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not | |
127 | dnl documented, we avoid it. | |
128 | ifelse(gt_included_intl, yes, , [ | |
129 | AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) | |
130 | ]) | |
131 | ||
132 | dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. | |
133 | gt_INTL_MACOSX | |
134 | ||
135 | dnl Set USE_NLS. | |
136 | AC_REQUIRE([AM_NLS]) | |
137 | ||
138 | ifelse(gt_included_intl, yes, [ | |
139 | BUILD_INCLUDED_LIBINTL=no | |
140 | USE_INCLUDED_LIBINTL=no | |
141 | ]) | |
142 | LIBINTL= | |
143 | LTLIBINTL= | |
144 | POSUB= | |
145 | ||
146 | dnl Add a version number to the cache macros. | |
147 | case " $gt_needs " in | |
148 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
149 | *" need-ngettext "*) gt_api_version=2 ;; | |
150 | *) gt_api_version=1 ;; | |
151 | esac | |
152 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
153 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
154 | ||
155 | dnl If we use NLS figure out what method | |
156 | if test "$USE_NLS" = "yes"; then | |
157 | gt_use_preinstalled_gnugettext=no | |
158 | ifelse(gt_included_intl, yes, [ | |
159 | AC_MSG_CHECKING([whether included gettext is requested]) | |
160 | AC_ARG_WITH(included-gettext, | |
161 | [ --with-included-gettext use the GNU gettext library included here], | |
162 | nls_cv_force_use_gnu_gettext=$withval, | |
163 | nls_cv_force_use_gnu_gettext=no) | |
164 | AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) | |
165 | ||
166 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
167 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
168 | ]) | |
169 | dnl User does not insist on using GNU NLS library. Figure out what | |
170 | dnl to use. If GNU gettext is available we use this. Else we have | |
171 | dnl to fall back to GNU NLS library. | |
172 | ||
173 | if test $gt_api_version -ge 3; then | |
174 | gt_revision_test_code=' | |
175 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
176 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
177 | #endif | |
178 | changequote(,)dnl | |
179 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
180 | changequote([,])dnl | |
181 | ' | |
182 | else | |
183 | gt_revision_test_code= | |
184 | fi | |
185 | if test $gt_api_version -ge 2; then | |
186 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
187 | else | |
188 | gt_expression_test_code= | |
189 | fi | |
190 | ||
191 | AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], | |
192 | [AC_TRY_LINK([#include <libintl.h> | |
193 | $gt_revision_test_code | |
194 | extern int _nl_msg_cat_cntr; | |
195 | extern int *_nl_domain_bindings;], | |
196 | [bindtextdomain ("", ""); | |
197 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], | |
198 | [eval "$gt_func_gnugettext_libc=yes"], | |
199 | [eval "$gt_func_gnugettext_libc=no"])]) | |
200 | ||
201 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | |
202 | dnl Sometimes libintl requires libiconv, so first search for libiconv. | |
203 | ifelse(gt_included_intl, yes, , [ | |
204 | AM_ICONV_LINK | |
205 | ]) | |
206 | dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL | |
207 | dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) | |
208 | dnl because that would add "-liconv" to LIBINTL and LTLIBINTL | |
209 | dnl even if libiconv doesn't exist. | |
210 | AC_LIB_LINKFLAGS_BODY([intl]) | |
211 | AC_CACHE_CHECK([for GNU gettext in libintl], | |
212 | [$gt_func_gnugettext_libintl], | |
213 | [gt_save_CPPFLAGS="$CPPFLAGS" | |
214 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
215 | gt_save_LIBS="$LIBS" | |
216 | LIBS="$LIBS $LIBINTL" | |
217 | dnl Now see whether libintl exists and does not depend on libiconv. | |
218 | AC_TRY_LINK([#include <libintl.h> | |
219 | $gt_revision_test_code | |
220 | extern int _nl_msg_cat_cntr; | |
221 | extern | |
222 | #ifdef __cplusplus | |
223 | "C" | |
224 | #endif | |
225 | const char *_nl_expand_alias (const char *);], | |
226 | [bindtextdomain ("", ""); | |
227 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], | |
228 | [eval "$gt_func_gnugettext_libintl=yes"], | |
229 | [eval "$gt_func_gnugettext_libintl=no"]) | |
230 | dnl Now see whether libintl exists and depends on libiconv. | |
231 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | |
232 | LIBS="$LIBS $LIBICONV" | |
233 | AC_TRY_LINK([#include <libintl.h> | |
234 | $gt_revision_test_code | |
235 | extern int _nl_msg_cat_cntr; | |
236 | extern | |
237 | #ifdef __cplusplus | |
238 | "C" | |
239 | #endif | |
240 | const char *_nl_expand_alias (const char *);], | |
241 | [bindtextdomain ("", ""); | |
242 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], | |
243 | [LIBINTL="$LIBINTL $LIBICONV" | |
244 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
245 | eval "$gt_func_gnugettext_libintl=yes" | |
246 | ]) | |
247 | fi | |
248 | CPPFLAGS="$gt_save_CPPFLAGS" | |
249 | LIBS="$gt_save_LIBS"]) | |
250 | fi | |
251 | ||
252 | dnl If an already present or preinstalled GNU gettext() is found, | |
253 | dnl use it. But if this macro is used in GNU gettext, and GNU | |
254 | dnl gettext is already preinstalled in libintl, we update this | |
255 | dnl libintl. (Cf. the install rule in intl/Makefile.in.) | |
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"; } \ | |
258 | && test "$PACKAGE" != gettext-runtime \ | |
259 | && test "$PACKAGE" != gettext-tools; }; then | |
260 | gt_use_preinstalled_gnugettext=yes | |
261 | else | |
262 | dnl Reset the values set by searching for libintl. | |
263 | LIBINTL= | |
264 | LTLIBINTL= | |
265 | INCINTL= | |
266 | fi | |
267 | ||
268 | ifelse(gt_included_intl, yes, [ | |
269 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then | |
270 | dnl GNU gettext is not found in the C library. | |
271 | dnl Fall back on included GNU gettext library. | |
272 | nls_cv_use_gnu_gettext=yes | |
273 | fi | |
274 | fi | |
275 | ||
276 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
277 | dnl Mark actions used to generate GNU NLS library. | |
278 | BUILD_INCLUDED_LIBINTL=yes | |
279 | USE_INCLUDED_LIBINTL=yes | |
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" | |
282 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
283 | fi | |
284 | ||
285 | CATOBJEXT= | |
286 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
287 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
288 | dnl Mark actions to use GNU gettext tools. | |
289 | CATOBJEXT=.gmo | |
290 | fi | |
291 | ]) | |
292 | ||
293 | if test -n "$INTL_MACOSX_LIBS"; then | |
294 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
295 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
296 | dnl Some extra flags are needed during linking. | |
297 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
298 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
299 | fi | |
300 | fi | |
301 | ||
302 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
303 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
304 | AC_DEFINE(ENABLE_NLS, 1, | |
305 | [Define to 1 if translation of program messages to the user's native language | |
306 | is requested.]) | |
307 | else | |
308 | USE_NLS=no | |
309 | fi | |
310 | fi | |
311 | ||
312 | AC_MSG_CHECKING([whether to use NLS]) | |
313 | AC_MSG_RESULT([$USE_NLS]) | |
314 | if test "$USE_NLS" = "yes"; then | |
315 | AC_MSG_CHECKING([where the gettext function comes from]) | |
316 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
317 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
318 | gt_source="external libintl" | |
319 | else | |
320 | gt_source="libc" | |
321 | fi | |
322 | else | |
323 | gt_source="included intl directory" | |
324 | fi | |
325 | AC_MSG_RESULT([$gt_source]) | |
326 | fi | |
327 | ||
328 | if test "$USE_NLS" = "yes"; then | |
329 | ||
330 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
331 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
332 | AC_MSG_CHECKING([how to link with libintl]) | |
333 | AC_MSG_RESULT([$LIBINTL]) | |
334 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) | |
335 | fi | |
336 | ||
337 | dnl For backward compatibility. Some packages may be using this. | |
338 | AC_DEFINE(HAVE_GETTEXT, 1, | |
339 | [Define if the GNU gettext() function is already present or preinstalled.]) | |
340 | AC_DEFINE(HAVE_DCGETTEXT, 1, | |
341 | [Define if the GNU dcgettext() function is already present or preinstalled.]) | |
342 | fi | |
343 | ||
344 | dnl We need to process the po/ directory. | |
345 | POSUB=po | |
346 | fi | |
347 | ||
348 | ifelse(gt_included_intl, yes, [ | |
349 | dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL | |
350 | dnl to 'yes' because some of the testsuite requires it. | |
351 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then | |
352 | BUILD_INCLUDED_LIBINTL=yes | |
353 | fi | |
354 | ||
355 | dnl Make all variables we use known to autoconf. | |
356 | AC_SUBST(BUILD_INCLUDED_LIBINTL) | |
357 | AC_SUBST(USE_INCLUDED_LIBINTL) | |
358 | AC_SUBST(CATOBJEXT) | |
359 | ||
360 | dnl For backward compatibility. Some configure.ins may be using this. | |
361 | nls_cv_header_intl= | |
362 | nls_cv_header_libgt= | |
363 | ||
364 | dnl For backward compatibility. Some Makefiles may be using this. | |
365 | DATADIRNAME=share | |
366 | AC_SUBST(DATADIRNAME) | |
367 | ||
368 | dnl For backward compatibility. Some Makefiles may be using this. | |
369 | INSTOBJEXT=.mo | |
370 | AC_SUBST(INSTOBJEXT) | |
371 | ||
372 | dnl For backward compatibility. Some Makefiles may be using this. | |
373 | GENCAT=gencat | |
374 | AC_SUBST(GENCAT) | |
375 | ||
376 | dnl For backward compatibility. Some Makefiles may be using this. | |
377 | INTLOBJS= | |
378 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
379 | INTLOBJS="\$(GETTOBJS)" | |
380 | fi | |
381 | AC_SUBST(INTLOBJS) | |
382 | ||
383 | dnl Enable libtool support if the surrounding package wishes it. | |
384 | INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix | |
385 | AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) | |
386 | ]) | |
387 | ||
388 | dnl For backward compatibility. Some Makefiles may be using this. | |
389 | INTLLIBS="$LIBINTL" | |
390 | AC_SUBST(INTLLIBS) | |
391 | ||
392 | dnl Make all documented variables known to autoconf. | |
393 | AC_SUBST(LIBINTL) | |
394 | AC_SUBST(LTLIBINTL) | |
395 | AC_SUBST(POSUB) | |
396 | ]) | |
397 | ||
398 | ||
399 | dnl Checks for special options needed on MacOS X. | |
400 | dnl Defines INTL_MACOSX_LIBS. | |
401 | AC_DEFUN([gt_INTL_MACOSX], | |
402 | [ | |
403 | dnl Check for API introduced in MacOS X 10.2. | |
404 | AC_CACHE_CHECK([for CFPreferencesCopyAppValue], | |
405 | gt_cv_func_CFPreferencesCopyAppValue, | |
406 | [gt_save_LIBS="$LIBS" | |
407 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
408 | AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>], | |
409 | [CFPreferencesCopyAppValue(NULL, NULL)], | |
410 | [gt_cv_func_CFPreferencesCopyAppValue=yes], | |
411 | [gt_cv_func_CFPreferencesCopyAppValue=no]) | |
412 | LIBS="$gt_save_LIBS"]) | |
413 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
414 | AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, | |
415 | [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) | |
416 | fi | |
417 | dnl Check for API introduced in MacOS X 10.3. | |
418 | AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, | |
419 | [gt_save_LIBS="$LIBS" | |
420 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
421 | AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();], | |
422 | [gt_cv_func_CFLocaleCopyCurrent=yes], | |
423 | [gt_cv_func_CFLocaleCopyCurrent=no]) | |
424 | LIBS="$gt_save_LIBS"]) | |
425 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
426 | AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, | |
427 | [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) | |
428 | fi | |
429 | INTL_MACOSX_LIBS= | |
430 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
431 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
432 | fi | |
433 | AC_SUBST([INTL_MACOSX_LIBS]) | |
434 | ]) | |
435 | ||
436 | ||
437 | dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. | |
438 | m4_define([gt_NEEDS_INIT], | |
439 | [ | |
440 | m4_divert_text([DEFAULTS], [gt_needs=]) | |
441 | m4_define([gt_NEEDS_INIT], []) | |
442 | ]) | |
443 | ||
444 | ||
445 | dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) | |
446 | AC_DEFUN([AM_GNU_GETTEXT_NEED], | |
447 | [ | |
448 | m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) | |
449 | ]) | |
450 | ||
451 | ||
452 | dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) | |
453 | AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) | |
454 | ||
455 | # glibc2.m4 serial 1 | |
456 | dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. | |
457 | dnl This file is free software; the Free Software Foundation | |
458 | dnl gives unlimited permission to copy and/or distribute it, | |
459 | dnl with or without modifications, as long as this notice is preserved. | |
460 | ||
461 | # Test for the GNU C Library, version 2.0 or newer. | |
462 | # From Bruno Haible. | |
463 | ||
464 | AC_DEFUN([gt_GLIBC2], | |
465 | [ | |
466 | AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer, | |
467 | ac_cv_gnu_library_2, | |
468 | [AC_EGREP_CPP([Lucky GNU user], | |
469 | [ | |
470 | #include <features.h> | |
471 | #ifdef __GNU_LIBRARY__ | |
472 | #if (__GLIBC__ >= 2) | |
473 | Lucky GNU user | |
474 | #endif | |
475 | #endif | |
476 | ], | |
477 | ac_cv_gnu_library_2=yes, | |
478 | ac_cv_gnu_library_2=no) | |
479 | ] | |
480 | ) | |
481 | AC_SUBST(GLIBC2) | |
482 | GLIBC2="$ac_cv_gnu_library_2" | |
483 | ] | |
484 | ) | |
485 | ||
486 | # glibc21.m4 serial 3 | |
487 | dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. | |
488 | dnl This file is free software; the Free Software Foundation | |
489 | dnl gives unlimited permission to copy and/or distribute it, | |
490 | dnl with or without modifications, as long as this notice is preserved. | |
491 | ||
492 | # Test for the GNU C Library, version 2.1 or newer. | |
493 | # From Bruno Haible. | |
494 | ||
495 | AC_DEFUN([gl_GLIBC21], | |
496 | [ | |
497 | AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, | |
498 | ac_cv_gnu_library_2_1, | |
499 | [AC_EGREP_CPP([Lucky GNU user], | |
500 | [ | |
501 | #include <features.h> | |
502 | #ifdef __GNU_LIBRARY__ | |
503 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
504 | Lucky GNU user | |
505 | #endif | |
506 | #endif | |
507 | ], | |
508 | ac_cv_gnu_library_2_1=yes, | |
509 | ac_cv_gnu_library_2_1=no) | |
510 | ] | |
511 | ) | |
512 | AC_SUBST(GLIBC21) | |
513 | GLIBC21="$ac_cv_gnu_library_2_1" | |
514 | ] | |
515 | ) | |
516 | ||
517 | # iconv.m4 serial AM4 (gettext-0.11.3) | |
518 | dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. | |
519 | dnl This file is free software; the Free Software Foundation | |
520 | dnl gives unlimited permission to copy and/or distribute it, | |
521 | dnl with or without modifications, as long as this notice is preserved. | |
522 | ||
523 | dnl From Bruno Haible. | |
524 | ||
525 | AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], | |
526 | [ | |
527 | dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. | |
528 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | |
529 | AC_REQUIRE([AC_LIB_RPATH]) | |
530 | ||
531 | dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV | |
532 | dnl accordingly. | |
533 | AC_LIB_LINKFLAGS_BODY([iconv]) | |
534 | ]) | |
535 | ||
536 | AC_DEFUN([AM_ICONV_LINK], | |
537 | [ | |
538 | dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and | |
539 | dnl those with the standalone portable GNU libiconv installed). | |
540 | ||
541 | dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV | |
542 | dnl accordingly. | |
543 | AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) | |
544 | ||
545 | dnl Add $INCICONV to CPPFLAGS before performing the following checks, | |
546 | dnl because if the user has installed libiconv and not disabled its use | |
547 | dnl via --without-libiconv-prefix, he wants to use it. The first | |
548 | dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. | |
549 | am_save_CPPFLAGS="$CPPFLAGS" | |
550 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) | |
551 | ||
552 | AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ | |
553 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
554 | am_cv_lib_iconv=no | |
555 | AC_TRY_LINK([#include <stdlib.h> | |
556 | #include <iconv.h>], | |
557 | [iconv_t cd = iconv_open("",""); | |
558 | iconv(cd,NULL,NULL,NULL,NULL); | |
559 | iconv_close(cd);], | |
560 | am_cv_func_iconv=yes) | |
561 | if test "$am_cv_func_iconv" != yes; then | |
562 | am_save_LIBS="$LIBS" | |
563 | LIBS="$LIBS $LIBICONV" | |
564 | AC_TRY_LINK([#include <stdlib.h> | |
565 | #include <iconv.h>], | |
566 | [iconv_t cd = iconv_open("",""); | |
567 | iconv(cd,NULL,NULL,NULL,NULL); | |
568 | iconv_close(cd);], | |
569 | am_cv_lib_iconv=yes | |
570 | am_cv_func_iconv=yes) | |
571 | LIBS="$am_save_LIBS" | |
572 | fi | |
573 | ]) | |
574 | if test "$am_cv_func_iconv" = yes; then | |
575 | AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) | |
576 | fi | |
577 | if test "$am_cv_lib_iconv" = yes; then | |
578 | AC_MSG_CHECKING([how to link with libiconv]) | |
579 | AC_MSG_RESULT([$LIBICONV]) | |
580 | else | |
581 | dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV | |
582 | dnl either. | |
583 | CPPFLAGS="$am_save_CPPFLAGS" | |
584 | LIBICONV= | |
585 | LTLIBICONV= | |
586 | fi | |
587 | AC_SUBST(LIBICONV) | |
588 | AC_SUBST(LTLIBICONV) | |
589 | ]) | |
590 | ||
591 | AC_DEFUN([AM_ICONV], | |
592 | [ | |
593 | AM_ICONV_LINK | |
594 | if test "$am_cv_func_iconv" = yes; then | |
595 | AC_MSG_CHECKING([for iconv declaration]) | |
596 | AC_CACHE_VAL(am_cv_proto_iconv, [ | |
597 | AC_TRY_COMPILE([ | |
598 | #include <stdlib.h> | |
599 | #include <iconv.h> | |
600 | extern | |
601 | #ifdef __cplusplus | |
602 | "C" | |
603 | #endif | |
604 | #if defined(__STDC__) || defined(__cplusplus) | |
605 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
606 | #else | |
607 | size_t iconv(); | |
608 | #endif | |
609 | ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") | |
610 | 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);"]) | |
611 | am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
612 | AC_MSG_RESULT([$]{ac_t:- | |
613 | }[$]am_cv_proto_iconv) | |
614 | AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, | |
615 | [Define as const if the declaration of iconv() needs const.]) | |
616 | fi | |
617 | ]) | |
618 | ||
619 | # intdiv0.m4 serial 1 (gettext-0.11.3) | |
620 | dnl Copyright (C) 2002 Free Software Foundation, Inc. | |
621 | dnl This file is free software; the Free Software Foundation | |
622 | dnl gives unlimited permission to copy and/or distribute it, | |
623 | dnl with or without modifications, as long as this notice is preserved. | |
624 | ||
625 | dnl From Bruno Haible. | |
626 | ||
627 | AC_DEFUN([gt_INTDIV0], | |
628 | [ | |
629 | AC_REQUIRE([AC_PROG_CC])dnl | |
630 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
631 | ||
632 | AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], | |
633 | gt_cv_int_divbyzero_sigfpe, | |
634 | [ | |
635 | AC_TRY_RUN([ | |
636 | #include <stdlib.h> | |
637 | #include <signal.h> | |
638 | ||
639 | static void | |
640 | #ifdef __cplusplus | |
641 | sigfpe_handler (int sig) | |
642 | #else | |
643 | sigfpe_handler (sig) int sig; | |
644 | #endif | |
645 | { | |
646 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
647 | exit (sig != SIGFPE); | |
648 | } | |
649 | ||
650 | int x = 1; | |
651 | int y = 0; | |
652 | int z; | |
653 | int nan; | |
654 | ||
655 | int main () | |
656 | { | |
657 | signal (SIGFPE, sigfpe_handler); | |
658 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
659 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
660 | signal (SIGTRAP, sigfpe_handler); | |
661 | #endif | |
662 | /* Linux/SPARC yields signal SIGILL. */ | |
663 | #if defined (__sparc__) && defined (__linux__) | |
664 | signal (SIGILL, sigfpe_handler); | |
665 | #endif | |
666 | ||
667 | z = x / y; | |
668 | nan = y / y; | |
669 | exit (1); | |
670 | } | |
671 | ], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, | |
672 | [ | |
673 | # Guess based on the CPU. | |
674 | case "$host_cpu" in | |
675 | alpha* | i[34567]86 | m68k | s390*) | |
676 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
677 | *) | |
678 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
679 | esac | |
680 | ]) | |
681 | ]) | |
682 | case "$gt_cv_int_divbyzero_sigfpe" in | |
683 | *yes) value=1;; | |
684 | *) value=0;; | |
685 | esac | |
686 | AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, | |
687 | [Define if integer division by zero raises signal SIGFPE.]) | |
688 | ]) | |
689 | ||
690 | # intl.m4 serial 3 (gettext-0.16) | |
691 | dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. | |
692 | dnl This file is free software; the Free Software Foundation | |
693 | dnl gives unlimited permission to copy and/or distribute it, | |
694 | dnl with or without modifications, as long as this notice is preserved. | |
695 | dnl | |
696 | dnl This file can can be used in projects which are not available under | |
697 | dnl the GNU General Public License or the GNU Library General Public | |
698 | dnl License but which still want to provide support for the GNU gettext | |
699 | dnl functionality. | |
700 | dnl Please note that the actual code of the GNU gettext library is covered | |
701 | dnl by the GNU Library General Public License, and the rest of the GNU | |
702 | dnl gettext package package is covered by the GNU General Public License. | |
703 | dnl They are *not* in the public domain. | |
704 | ||
705 | dnl Authors: | |
706 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | |
707 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006. | |
708 | ||
709 | AC_PREREQ(2.52) | |
710 | ||
711 | dnl Checks for all prerequisites of the intl subdirectory, | |
712 | dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, | |
713 | dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. | |
714 | AC_DEFUN([AM_INTL_SUBDIR], | |
715 | [ | |
716 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
717 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake | |
718 | AC_REQUIRE([AC_PROG_CC])dnl | |
719 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
720 | AC_REQUIRE([gt_GLIBC2])dnl | |
721 | AC_REQUIRE([AC_PROG_RANLIB])dnl | |
722 | AC_REQUIRE([gl_VISIBILITY])dnl | |
723 | AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl | |
724 | AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl | |
725 | AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl | |
726 | AC_REQUIRE([gt_TYPE_WCHAR_T])dnl | |
727 | AC_REQUIRE([gt_TYPE_WINT_T])dnl | |
728 | AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) | |
729 | AC_REQUIRE([gt_TYPE_INTMAX_T]) | |
730 | AC_REQUIRE([gt_PRINTF_POSIX]) | |
731 | AC_REQUIRE([gl_GLIBC21])dnl | |
732 | AC_REQUIRE([gl_XSIZE])dnl | |
733 | AC_REQUIRE([gt_INTL_MACOSX])dnl | |
734 | ||
735 | AC_CHECK_TYPE([ptrdiff_t], , | |
736 | [AC_DEFINE([ptrdiff_t], [long], | |
737 | [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) | |
738 | ]) | |
739 | AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) | |
740 | AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen]) | |
741 | ||
742 | dnl Use the _snprintf function only if it is declared (because on NetBSD it | |
743 | dnl is defined as a weak alias of snprintf; we prefer to use the latter). | |
744 | gt_CHECK_DECL(_snprintf, [#include <stdio.h>]) | |
745 | gt_CHECK_DECL(_snwprintf, [#include <stdio.h>]) | |
746 | ||
747 | dnl Use the *_unlocked functions only if they are declared. | |
748 | dnl (because some of them were defined without being declared in Solaris | |
749 | dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built | |
750 | dnl on Solaris 2.5.1 to run on Solaris 2.6). | |
751 | dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. | |
752 | gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>]) | |
753 | ||
754 | case $gt_cv_func_printf_posix in | |
755 | *yes) HAVE_POSIX_PRINTF=1 ;; | |
756 | *) HAVE_POSIX_PRINTF=0 ;; | |
757 | esac | |
758 | AC_SUBST([HAVE_POSIX_PRINTF]) | |
759 | if test "$ac_cv_func_asprintf" = yes; then | |
760 | HAVE_ASPRINTF=1 | |
761 | else | |
762 | HAVE_ASPRINTF=0 | |
763 | fi | |
764 | AC_SUBST([HAVE_ASPRINTF]) | |
765 | if test "$ac_cv_func_snprintf" = yes; then | |
766 | HAVE_SNPRINTF=1 | |
767 | else | |
768 | HAVE_SNPRINTF=0 | |
769 | fi | |
770 | AC_SUBST([HAVE_SNPRINTF]) | |
771 | if test "$ac_cv_func_wprintf" = yes; then | |
772 | HAVE_WPRINTF=1 | |
773 | else | |
774 | HAVE_WPRINTF=0 | |
775 | fi | |
776 | AC_SUBST([HAVE_WPRINTF]) | |
777 | ||
778 | AM_LANGINFO_CODESET | |
779 | gt_LC_MESSAGES | |
780 | ||
781 | dnl Compilation on mingw and Cygwin needs special Makefile rules, because | |
782 | dnl 1. when we install a shared library, we must arrange to export | |
783 | dnl auxiliary pointer variables for every exported variable, | |
784 | dnl 2. when we install a shared library and a static library simultaneously, | |
785 | dnl the include file specifies __declspec(dllimport) and therefore we | |
786 | dnl must arrange to define the auxiliary pointer variables for the | |
787 | dnl exported variables _also_ in the static library. | |
788 | if test "$enable_shared" = yes; then | |
789 | case "$host_os" in | |
790 | cygwin*) is_woe32dll=yes ;; | |
791 | *) is_woe32dll=no ;; | |
792 | esac | |
793 | else | |
794 | is_woe32dll=no | |
795 | fi | |
796 | WOE32DLL=$is_woe32dll | |
797 | AC_SUBST([WOE32DLL]) | |
798 | ||
799 | dnl Rename some macros and functions used for locking. | |
800 | AH_BOTTOM([ | |
801 | #define __libc_lock_t gl_lock_t | |
802 | #define __libc_lock_define gl_lock_define | |
803 | #define __libc_lock_define_initialized gl_lock_define_initialized | |
804 | #define __libc_lock_init gl_lock_init | |
805 | #define __libc_lock_lock gl_lock_lock | |
806 | #define __libc_lock_unlock gl_lock_unlock | |
807 | #define __libc_lock_recursive_t gl_recursive_lock_t | |
808 | #define __libc_lock_define_recursive gl_recursive_lock_define | |
809 | #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized | |
810 | #define __libc_lock_init_recursive gl_recursive_lock_init | |
811 | #define __libc_lock_lock_recursive gl_recursive_lock_lock | |
812 | #define __libc_lock_unlock_recursive gl_recursive_lock_unlock | |
813 | #define glthread_in_use libintl_thread_in_use | |
814 | #define glthread_lock_init libintl_lock_init | |
815 | #define glthread_lock_lock libintl_lock_lock | |
816 | #define glthread_lock_unlock libintl_lock_unlock | |
817 | #define glthread_lock_destroy libintl_lock_destroy | |
818 | #define glthread_rwlock_init libintl_rwlock_init | |
819 | #define glthread_rwlock_rdlock libintl_rwlock_rdlock | |
820 | #define glthread_rwlock_wrlock libintl_rwlock_wrlock | |
821 | #define glthread_rwlock_unlock libintl_rwlock_unlock | |
822 | #define glthread_rwlock_destroy libintl_rwlock_destroy | |
823 | #define glthread_recursive_lock_init libintl_recursive_lock_init | |
824 | #define glthread_recursive_lock_lock libintl_recursive_lock_lock | |
825 | #define glthread_recursive_lock_unlock libintl_recursive_lock_unlock | |
826 | #define glthread_recursive_lock_destroy libintl_recursive_lock_destroy | |
827 | #define glthread_once libintl_once | |
828 | #define glthread_once_call libintl_once_call | |
829 | #define glthread_once_singlethreaded libintl_once_singlethreaded | |
830 | ]) | |
831 | ]) | |
832 | ||
833 | ||
834 | dnl Checks for the core files of the intl subdirectory: | |
835 | dnl dcigettext.c | |
836 | dnl eval-plural.h | |
837 | dnl explodename.c | |
838 | dnl finddomain.c | |
839 | dnl gettextP.h | |
840 | dnl gmo.h | |
841 | dnl hash-string.h hash-string.c | |
842 | dnl l10nflist.c | |
843 | dnl libgnuintl.h.in (except the *printf stuff) | |
844 | dnl loadinfo.h | |
845 | dnl loadmsgcat.c | |
846 | dnl localealias.c | |
847 | dnl log.c | |
848 | dnl plural-exp.h plural-exp.c | |
849 | dnl plural.y | |
850 | dnl Used by libglocale. | |
851 | AC_DEFUN([gt_INTL_SUBDIR_CORE], | |
852 | [ | |
853 | AC_REQUIRE([AC_C_INLINE])dnl | |
854 | AC_REQUIRE([AC_TYPE_SIZE_T])dnl | |
855 | AC_REQUIRE([gl_AC_HEADER_STDINT_H]) | |
856 | AC_REQUIRE([AC_FUNC_ALLOCA])dnl | |
857 | AC_REQUIRE([AC_FUNC_MMAP])dnl | |
858 | AC_REQUIRE([gt_INTDIV0])dnl | |
859 | AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl | |
860 | AC_REQUIRE([gt_INTTYPES_PRI])dnl | |
861 | AC_REQUIRE([gl_LOCK])dnl | |
862 | ||
863 | AC_TRY_LINK( | |
864 | [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], | |
865 | [], | |
866 | [AC_DEFINE([HAVE_BUILTIN_EXPECT], 1, | |
867 | [Define to 1 if the compiler understands __builtin_expect.])]) | |
868 | ||
869 | AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h]) | |
870 | AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ | |
871 | stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ | |
872 | argz_next __fsetlocking]) | |
873 | ||
874 | dnl Use the *_unlocked functions only if they are declared. | |
875 | dnl (because some of them were defined without being declared in Solaris | |
876 | dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built | |
877 | dnl on Solaris 2.5.1 to run on Solaris 2.6). | |
878 | dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. | |
879 | gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>]) | |
880 | gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>]) | |
881 | ||
882 | AM_ICONV | |
883 | ||
884 | dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined, | |
885 | dnl and a _NL_LOCALE_NAME macro always. | |
886 | AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name, | |
887 | [AC_TRY_LINK([#include <langinfo.h> | |
888 | #include <locale.h>], | |
889 | [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));], | |
890 | gt_cv_nl_locale_name=yes, | |
891 | gt_cv_nl_locale_name=no) | |
892 | ]) | |
893 | if test $gt_cv_nl_locale_name = yes; then | |
894 | AC_DEFINE(HAVE_NL_LOCALE_NAME, 1, | |
895 | [Define if you have <langinfo.h> and it defines the NL_LOCALE_NAME macro if _GNU_SOURCE is defined.]) | |
896 | fi | |
897 | ||
898 | dnl intl/plural.c is generated from intl/plural.y. It requires bison, | |
899 | dnl because plural.y uses bison specific features. It requires at least | |
900 | dnl bison-1.26 because earlier versions generate a plural.c that doesn't | |
901 | dnl compile. | |
902 | dnl bison is only needed for the maintainer (who touches plural.y). But in | |
903 | dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put | |
904 | dnl the rule in general Makefile. Now, some people carelessly touch the | |
905 | dnl files or have a broken "make" program, hence the plural.c rule will | |
906 | dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not | |
907 | dnl present or too old. | |
908 | AC_CHECK_PROGS([INTLBISON], [bison]) | |
909 | if test -z "$INTLBISON"; then | |
910 | ac_verc_fail=yes | |
911 | else | |
912 | dnl Found it, now check the version. | |
913 | AC_MSG_CHECKING([version of bison]) | |
914 | changequote(<<,>>)dnl | |
915 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
916 | case $ac_prog_version in | |
917 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
918 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
919 | changequote([,])dnl | |
920 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
921 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
922 | esac | |
923 | AC_MSG_RESULT([$ac_prog_version]) | |
924 | fi | |
925 | if test $ac_verc_fail = yes; then | |
926 | INTLBISON=: | |
927 | fi | |
928 | ]) | |
929 | ||
930 | ||
931 | dnl gt_CHECK_DECL(FUNC, INCLUDES) | |
932 | dnl Check whether a function is declared. | |
933 | AC_DEFUN([gt_CHECK_DECL], | |
934 | [ | |
935 | AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, | |
936 | [AC_TRY_COMPILE([$2], [ | |
937 | #ifndef $1 | |
938 | char *p = (char *) $1; | |
939 | #endif | |
940 | ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) | |
941 | if test $ac_cv_have_decl_$1 = yes; then | |
942 | gt_value=1 | |
943 | else | |
944 | gt_value=0 | |
945 | fi | |
946 | AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], | |
947 | [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) | |
948 | ]) | |
949 | ||
950 | # intmax.m4 serial 3 (gettext-0.16) | |
951 | dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. | |
952 | dnl This file is free software; the Free Software Foundation | |
953 | dnl gives unlimited permission to copy and/or distribute it, | |
954 | dnl with or without modifications, as long as this notice is preserved. | |
955 | ||
956 | dnl From Bruno Haible. | |
957 | dnl Test whether the system has the 'intmax_t' type, but don't attempt to | |
958 | dnl find a replacement if it is lacking. | |
959 | ||
960 | AC_DEFUN([gt_TYPE_INTMAX_T], | |
961 | [ | |
962 | AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) | |
963 | AC_REQUIRE([gl_AC_HEADER_STDINT_H]) | |
964 | AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, | |
965 | [AC_TRY_COMPILE([ | |
966 | #include <stddef.h> | |
967 | #include <stdlib.h> | |
968 | #if HAVE_STDINT_H_WITH_UINTMAX | |
969 | #include <stdint.h> | |
970 | #endif | |
971 | #if HAVE_INTTYPES_H_WITH_UINTMAX | |
972 | #include <inttypes.h> | |
973 | #endif | |
974 | ], [intmax_t x = -1; | |
975 | return !x;], | |
976 | gt_cv_c_intmax_t=yes, | |
977 | gt_cv_c_intmax_t=no)]) | |
978 | if test $gt_cv_c_intmax_t = yes; then | |
979 | AC_DEFINE(HAVE_INTMAX_T, 1, | |
980 | [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.]) | |
981 | fi | |
982 | ]) | |
983 | ||
984 | # inttypes-pri.m4 serial 4 (gettext-0.16) | |
985 | dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc. | |
986 | dnl This file is free software; the Free Software Foundation | |
987 | dnl gives unlimited permission to copy and/or distribute it, | |
988 | dnl with or without modifications, as long as this notice is preserved. | |
989 | ||
990 | dnl From Bruno Haible. | |
991 | ||
992 | AC_PREREQ(2.52) | |
993 | ||
994 | # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI* | |
995 | # macros to non-string values. This is the case on AIX 4.3.3. | |
996 | ||
997 | AC_DEFUN([gt_INTTYPES_PRI], | |
998 | [ | |
999 | AC_CHECK_HEADERS([inttypes.h]) | |
1000 | if test $ac_cv_header_inttypes_h = yes; then | |
1001 | AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], | |
1002 | gt_cv_inttypes_pri_broken, | |
1003 | [ | |
1004 | AC_TRY_COMPILE([#include <inttypes.h> | |
1005 | #ifdef PRId32 | |
1006 | char *p = PRId32; | |
1007 | #endif | |
1008 | ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) | |
1009 | ]) | |
1010 | fi | |
1011 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
1012 | AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, | |
1013 | [Define if <inttypes.h> exists and defines unusable PRI* macros.]) | |
1014 | PRI_MACROS_BROKEN=1 | |
1015 | else | |
1016 | PRI_MACROS_BROKEN=0 | |
1017 | fi | |
1018 | AC_SUBST([PRI_MACROS_BROKEN]) | |
1019 | ]) | |
1020 | ||
1021 | # inttypes_h.m4 serial 7 | |
1022 | dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc. | |
1023 | dnl This file is free software; the Free Software Foundation | |
1024 | dnl gives unlimited permission to copy and/or distribute it, | |
1025 | dnl with or without modifications, as long as this notice is preserved. | |
1026 | ||
1027 | dnl From Paul Eggert. | |
1028 | ||
1029 | # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists, | |
1030 | # doesn't clash with <sys/types.h>, and declares uintmax_t. | |
1031 | ||
1032 | AC_DEFUN([gl_AC_HEADER_INTTYPES_H], | |
1033 | [ | |
1034 | AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, | |
1035 | [AC_TRY_COMPILE( | |
1036 | [#include <sys/types.h> | |
1037 | #include <inttypes.h>], | |
1038 | [uintmax_t i = (uintmax_t) -1; return !i;], | |
1039 | gl_cv_header_inttypes_h=yes, | |
1040 | gl_cv_header_inttypes_h=no)]) | |
1041 | if test $gl_cv_header_inttypes_h = yes; then | |
1042 | AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, | |
1043 | [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, | |
1044 | and declares uintmax_t. ]) | |
1045 | fi | |
1046 | ]) | |
1047 | ||
1048 | # lcmessage.m4 serial 4 (gettext-0.14.2) | |
1049 | dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc. | |
1050 | dnl This file is free software; the Free Software Foundation | |
1051 | dnl gives unlimited permission to copy and/or distribute it, | |
1052 | dnl with or without modifications, as long as this notice is preserved. | |
1053 | dnl | |
1054 | dnl This file can can be used in projects which are not available under | |
1055 | dnl the GNU General Public License or the GNU Library General Public | |
1056 | dnl License but which still want to provide support for the GNU gettext | |
1057 | dnl functionality. | |
1058 | dnl Please note that the actual code of the GNU gettext library is covered | |
1059 | dnl by the GNU Library General Public License, and the rest of the GNU | |
1060 | dnl gettext package package is covered by the GNU General Public License. | |
1061 | dnl They are *not* in the public domain. | |
1062 | ||
1063 | dnl Authors: | |
1064 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995. | |
1065 | ||
1066 | # Check whether LC_MESSAGES is available in <locale.h>. | |
1067 | ||
1068 | AC_DEFUN([gt_LC_MESSAGES], | |
1069 | [ | |
1070 | AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES, | |
1071 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | |
1072 | gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)]) | |
1073 | if test $gt_cv_val_LC_MESSAGES = yes; then | |
1074 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | |
1075 | [Define if your <locale.h> file defines LC_MESSAGES.]) | |
1076 | fi | |
1077 | ]) | |
1078 | ||
1079 | # lib-ld.m4 serial 3 (gettext-0.13) | |
1080 | dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. | |
1081 | dnl This file is free software; the Free Software Foundation | |
1082 | dnl gives unlimited permission to copy and/or distribute it, | |
1083 | dnl with or without modifications, as long as this notice is preserved. | |
1084 | ||
1085 | dnl Subroutines of libtool.m4, | |
1086 | dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision | |
1087 | dnl with libtool.m4. | |
1088 | ||
1089 | dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. | |
1090 | AC_DEFUN([AC_LIB_PROG_LD_GNU], | |
1091 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, | |
1092 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1093 | case `$LD -v 2>&1 </dev/null` in | |
1094 | *GNU* | *'with BFD'*) | |
1095 | acl_cv_prog_gnu_ld=yes ;; | |
1096 | *) | |
1097 | acl_cv_prog_gnu_ld=no ;; | |
1098 | esac]) | |
1099 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
1100 | ]) | |
1101 | ||
1102 | dnl From libtool-1.4. Sets the variable LD. | |
1103 | AC_DEFUN([AC_LIB_PROG_LD], | |
1104 | [AC_ARG_WITH(gnu-ld, | |
1105 | [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], | |
1106 | test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) | |
1107 | AC_REQUIRE([AC_PROG_CC])dnl | |
1108 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
1109 | # Prepare PATH_SEPARATOR. | |
1110 | # The user is always right. | |
1111 | if test "${PATH_SEPARATOR+set}" != set; then | |
1112 | echo "#! /bin/sh" >conf$$.sh | |
1113 | echo "exit 0" >>conf$$.sh | |
1114 | chmod +x conf$$.sh | |
1115 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
1116 | PATH_SEPARATOR=';' | |
1117 | else | |
1118 | PATH_SEPARATOR=: | |
1119 | fi | |
1120 | rm -f conf$$.sh | |
1121 | fi | |
1122 | ac_prog=ld | |
1123 | if test "$GCC" = yes; then | |
1124 | # Check if gcc -print-prog-name=ld gives a path. | |
1125 | AC_MSG_CHECKING([for ld used by GCC]) | |
1126 | case $host in | |
1127 | *-*-mingw*) | |
1128 | # gcc leaves a trailing carriage return which upsets mingw | |
1129 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1130 | *) | |
1131 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1132 | esac | |
1133 | case $ac_prog in | |
1134 | # Accept absolute paths. | |
1135 | [[\\/]* | [A-Za-z]:[\\/]*)] | |
1136 | [re_direlt='/[^/][^/]*/\.\./'] | |
1137 | # Canonicalize the path of ld | |
1138 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1139 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1140 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1141 | done | |
1142 | test -z "$LD" && LD="$ac_prog" | |
1143 | ;; | |
1144 | "") | |
1145 | # If it fails, then pretend we aren't using GCC. | |
1146 | ac_prog=ld | |
1147 | ;; | |
1148 | *) | |
1149 | # If it is relative, then search for the first ld in PATH. | |
1150 | with_gnu_ld=unknown | |
1151 | ;; | |
1152 | esac | |
1153 | elif test "$with_gnu_ld" = yes; then | |
1154 | AC_MSG_CHECKING([for GNU ld]) | |
1155 | else | |
1156 | AC_MSG_CHECKING([for non-GNU ld]) | |
1157 | fi | |
1158 | AC_CACHE_VAL(acl_cv_path_LD, | |
1159 | [if test -z "$LD"; then | |
1160 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
1161 | for ac_dir in $PATH; do | |
1162 | test -z "$ac_dir" && ac_dir=. | |
1163 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
1164 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
1165 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1166 | # but apparently some GNU ld's only accept -v. | |
1167 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
1168 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
1169 | *GNU* | *'with BFD'*) | |
1170 | test "$with_gnu_ld" != no && break ;; | |
1171 | *) | |
1172 | test "$with_gnu_ld" != yes && break ;; | |
1173 | esac | |
1174 | fi | |
1175 | done | |
1176 | IFS="$ac_save_ifs" | |
1177 | else | |
1178 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
1179 | fi]) | |
1180 | LD="$acl_cv_path_LD" | |
1181 | if test -n "$LD"; then | |
1182 | AC_MSG_RESULT($LD) | |
1183 | else | |
1184 | AC_MSG_RESULT(no) | |
1185 | fi | |
1186 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | |
1187 | AC_LIB_PROG_LD_GNU | |
1188 | ]) | |
1189 | ||
1190 | # lib-link.m4 serial 9 (gettext-0.16) | |
1191 | dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. | |
1192 | dnl This file is free software; the Free Software Foundation | |
1193 | dnl gives unlimited permission to copy and/or distribute it, | |
1194 | dnl with or without modifications, as long as this notice is preserved. | |
1195 | ||
1196 | dnl From Bruno Haible. | |
1197 | ||
1198 | AC_PREREQ(2.50) | |
1199 | ||
1200 |