Codebase list libhdate / b75bfda
[svn-upgrade] Tagging new upstream version, libhdate (1.4.1) Lior Kaplan 18 years ago
123 changed file(s) with 74210 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Notes on the Free Translation Project
1 *************************************
2
3 Free software is going international! The Free Translation Project
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 59 Temple Place, Suite 330, Boston, MA 02111-1307 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.3.0)
1
2 * Add examples to the doc directory
3 * doc directory is now /usr/doc/libhdate0 and no /usr/doc/hdate
4 * make int_to_string aware of LANGUAGE system variable, make it more gettext compatible
5
6 -- Yaacov Zamir <kzamir@wall.co.il> Wed, 27 Jul 2005 18:13
7
8 libhdate (1.0.1)
9
10 * first major reales number.
11 * start to number the shared library.
12 * stable api.
13 * updated utility programs hdate/hcal.
14 * added man files for library and utility programs.
15 * python and perl bindings.
16 * free pascal binding by Ido Kanner <idokan@gmail.com>
17 * ru, fr, he, es translations, thanks to Peled Esti and Boris Peterberg.
18 * added debian dir and RH spec file for easy packing, thanks to Oron Peled.
19
20 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13
21
22 libhdate (0.30.0)
23
24 * add es_MX translation by Peled Esti <esti@actcom.co.il>
25 * initial russian translation by Boris Peterberg
26
27 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13
28
29 libhdate (0.30.0)
30
31 * cpp, python and perl bindings
32 * examples for the new libhdate bindings
33
34 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 04 March 2005 15:19:29
35
36 libhdate (0.22.0)
37
38 * Michael Kaminsky's patch to Shavot II on diaspora reading.
39
40 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 28 Feb 2005 08:12:31
41
42 libhdate (0.22.0)
43
44 * New hebcal examples
45
46 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18
47
48 libhdate (0.21.0)
49
50 * New spec file by Oron Peled
51 * Diaspora holydays/readings
52 * New sunrise sunset functions
53 * New html examples
54 * New configure options to build / not build the examples
55
56 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18
57
58 libhdate (0.17.0)
59
60 * API chages.
61 * base struct change.
62
63 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 22 Feb 2005 19:34:22
64
65 libhdate (0.16.3)
66
67 * Try to fix date conversion bug, thanks Michael Kaminsky.
68
69 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 21 Feb 2005 09:03:12
70
71 libhdate (0.16.2)
72
73 * Syntax error, and weeks calculation bug fixed by Michael Kaminsky.
74
75 -- Yaacov Zamir <kzamir@wall.co.il> Sun, 20 Feb 2005 06:53:12
76
77 libhdate (0.16.1)
78
79 * Fix locale bug in int_to_string.
80 * Add examples directory.
81 * Minor bug fixes.
82
83 -- Yaacov Zamir <kzamir@wall.co.il> Sat, 19 Feb 2005 20:07:19
0 # Doxyfile 1.4.1
1
2 # This file describes the settings to be used by the documentation system
3 # doxygen (www.doxygen.org) for a project
4 #
5 # All text after a hash (#) is considered a comment and will be ignored
6 # The format is:
7 # TAG = value [value, ...]
8 # For lists items can also be appended using:
9 # TAG += value [value, ...]
10 # Values that contain spaces should be placed between quotes (" ")
11
12 #---------------------------------------------------------------------------
13 # Project related configuration options
14 #---------------------------------------------------------------------------
15
16 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
17 # by quotes) that should identify the project.
18
19 PROJECT_NAME = libhdate
20
21 # The PROJECT_NUMBER tag can be used to enter a project or revision number.
22 # This could be handy for archiving the generated documentation or
23 # if some version control system is used.
24
25 PROJECT_NUMBER = 1.0
26
27 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
28 # base path where the generated documentation will be put.
29 # If a relative path is entered, it will be relative to the location
30 # where doxygen was started. If left blank the current directory will be used.
31
32 OUTPUT_DIRECTORY =
33
34 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
35 # 4096 sub-directories (in 2 levels) under the output directory of each output
36 # format and will distribute the generated files over these directories.
37 # Enabling this option can be useful when feeding doxygen a huge amount of
38 # source files, where putting all generated files in the same directory would
39 # otherwise cause performance problems for the file system.
40
41 CREATE_SUBDIRS = NO
42
43 # The OUTPUT_LANGUAGE tag is used to specify the language in which all
44 # documentation generated by doxygen is written. Doxygen will use this
45 # information to generate all constant output in the proper language.
46 # The default language is English, other supported languages are:
47 # Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish,
48 # Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese,
49 # Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian,
50 # Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish,
51 # Swedish, and Ukrainian.
52
53 OUTPUT_LANGUAGE = English
54
55 # This tag can be used to specify the encoding used in the generated output.
56 # The encoding is not always determined by the language that is chosen,
57 # but also whether or not the output is meant for Windows or non-Windows users.
58 # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES
59 # forces the Windows encoding (this is the default for the Windows binary),
60 # whereas setting the tag to NO uses a Unix-style encoding (the default for
61 # all platforms other than Windows).
62
63 USE_WINDOWS_ENCODING = NO
64
65 # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
66 # include brief member descriptions after the members that are listed in
67 # the file and class documentation (similar to JavaDoc).
68 # Set to NO to disable this.
69
70 BRIEF_MEMBER_DESC = YES
71
72 # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
73 # the brief description of a member or function before the detailed description.
74 # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
75 # brief descriptions will be completely suppressed.
76
77 REPEAT_BRIEF = YES
78
79 # This tag implements a quasi-intelligent brief description abbreviator
80 # that is used to form the text in various listings. Each string
81 # in this list, if found as the leading text of the brief description, will be
82 # stripped from the text and the result after processing the whole list, is
83 # used as the annotated text. Otherwise, the brief description is used as-is.
84 # If left blank, the following values are used ("$name" is automatically
85 # replaced with the name of the entity): "The $name class" "The $name widget"
86 # "The $name file" "is" "provides" "specifies" "contains"
87 # "represents" "a" "an" "the"
88
89 ABBREVIATE_BRIEF =
90
91 # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
92 # Doxygen will generate a detailed section even if there is only a brief
93 # description.
94
95 ALWAYS_DETAILED_SEC = NO
96
97 # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
98 # inherited members of a class in the documentation of that class as if those
99 # members were ordinary class members. Constructors, destructors and assignment
100 # operators of the base classes will not be shown.
101
102 INLINE_INHERITED_MEMB = NO
103
104 # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
105 # path before files name in the file list and in the header files. If set
106 # to NO the shortest path that makes the file name unique will be used.
107
108 FULL_PATH_NAMES = YES
109
110 # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
111 # can be used to strip a user-defined part of the path. Stripping is
112 # only done if one of the specified strings matches the left-hand part of
113 # the path. The tag can be used to show relative paths in the file list.
114 # If left blank the directory from which doxygen is run is used as the
115 # path to strip.
116
117 STRIP_FROM_PATH =
118
119 # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
120 # the path mentioned in the documentation of a class, which tells
121 # the reader which header file to include in order to use a class.
122 # If left blank only the name of the header file containing the class
123 # definition is used. Otherwise one should specify the include paths that
124 # are normally passed to the compiler using the -I flag.
125
126 STRIP_FROM_INC_PATH =
127
128 # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
129 # (but less readable) file names. This can be useful is your file systems
130 # doesn't support long names like on DOS, Mac, or CD-ROM.
131
132 SHORT_NAMES = NO
133
134 # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
135 # will interpret the first line (until the first dot) of a JavaDoc-style
136 # comment as the brief description. If set to NO, the JavaDoc
137 # comments will behave just like the Qt-style comments (thus requiring an
138 # explicit @brief command for a brief description.
139
140 JAVADOC_AUTOBRIEF = NO
141
142 # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
143 # treat a multi-line C++ special comment block (i.e. a block of //! or ///
144 # comments) as a brief description. This used to be the default behaviour.
145 # The new default is to treat a multi-line C++ comment block as a detailed
146 # description. Set this tag to YES if you prefer the old behaviour instead.
147
148 MULTILINE_CPP_IS_BRIEF = NO
149
150 # If the DETAILS_AT_TOP tag is set to YES then Doxygen
151 # will output the detailed description near the top, like JavaDoc.
152 # If set to NO, the detailed description appears after the member
153 # documentation.
154
155 DETAILS_AT_TOP = NO
156
157 # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
158 # member inherits the documentation from any documented member that it
159 # re-implements.
160
161 INHERIT_DOCS = YES
162
163 # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
164 # tag is set to YES, then doxygen will reuse the documentation of the first
165 # member in the group (if any) for the other members of the group. By default
166 # all members of a group must be documented explicitly.
167
168 DISTRIBUTE_GROUP_DOC = NO
169
170 # The TAB_SIZE tag can be used to set the number of spaces in a tab.
171 # Doxygen uses this value to replace tabs by spaces in code fragments.
172
173 TAB_SIZE = 8
174
175 # This tag can be used to specify a number of aliases that acts
176 # as commands in the documentation. An alias has the form "name=value".
177 # For example adding "sideeffect=\par Side Effects:\n" will allow you to
178 # put the command \sideeffect (or @sideeffect) in the documentation, which
179 # will result in a user-defined paragraph with heading "Side Effects:".
180 # You can put \n's in the value part of an alias to insert newlines.
181
182 ALIASES =
183
184 # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
185 # sources only. Doxygen will then generate output that is more tailored for C.
186 # For instance, some of the names that are used will be different. The list
187 # of all members will be omitted, etc.
188
189 OPTIMIZE_OUTPUT_FOR_C = YES
190
191 # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources
192 # only. Doxygen will then generate output that is more tailored for Java.
193 # For instance, namespaces will be presented as packages, qualified scopes
194 # will look different, etc.
195
196 OPTIMIZE_OUTPUT_JAVA = NO
197
198 # Set the SUBGROUPING tag to YES (the default) to allow class member groups of
199 # the same type (for instance a group of public functions) to be put as a
200 # subgroup of that type (e.g. under the Public Functions section). Set it to
201 # NO to prevent subgrouping. Alternatively, this can be done per class using
202 # the \nosubgrouping command.
203
204 SUBGROUPING = YES
205
206 #---------------------------------------------------------------------------
207 # Build related configuration options
208 #---------------------------------------------------------------------------
209
210 # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
211 # documentation are documented, even if no documentation was available.
212 # Private class members and static file members will be hidden unless
213 # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
214
215 EXTRACT_ALL = YES
216
217 # If the EXTRACT_PRIVATE tag is set to YES all private members of a class
218 # will be included in the documentation.
219
220 EXTRACT_PRIVATE = NO
221
222 # If the EXTRACT_STATIC tag is set to YES all static members of a file
223 # will be included in the documentation.
224
225 EXTRACT_STATIC = NO
226
227 # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
228 # defined locally in source files will be included in the documentation.
229 # If set to NO only classes defined in header files are included.
230
231 EXTRACT_LOCAL_CLASSES = YES
232
233 # This flag is only useful for Objective-C code. When set to YES local
234 # methods, which are defined in the implementation section but not in
235 # the interface are included in the documentation.
236 # If set to NO (the default) only methods in the interface are included.
237
238 EXTRACT_LOCAL_METHODS = YES
239
240 # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
241 # undocumented members of documented classes, files or namespaces.
242 # If set to NO (the default) these members will be included in the
243 # various overviews, but no documentation section is generated.
244 # This option has no effect if EXTRACT_ALL is enabled.
245
246 HIDE_UNDOC_MEMBERS = NO
247
248 # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
249 # undocumented classes that are normally visible in the class hierarchy.
250 # If set to NO (the default) these classes will be included in the various
251 # overviews. This option has no effect if EXTRACT_ALL is enabled.
252
253 HIDE_UNDOC_CLASSES = NO
254
255 # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
256 # friend (class|struct|union) declarations.
257 # If set to NO (the default) these declarations will be included in the
258 # documentation.
259
260 HIDE_FRIEND_COMPOUNDS = NO
261
262 # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
263 # documentation blocks found inside the body of a function.
264 # If set to NO (the default) these blocks will be appended to the
265 # function's detailed documentation block.
266
267 HIDE_IN_BODY_DOCS = NO
268
269 # The INTERNAL_DOCS tag determines if documentation
270 # that is typed after a \internal command is included. If the tag is set
271 # to NO (the default) then the documentation will be excluded.
272 # Set it to YES to include the internal documentation.
273
274 INTERNAL_DOCS = NO
275
276 # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
277 # file names in lower-case letters. If set to YES upper-case letters are also
278 # allowed. This is useful if you have classes or files whose names only differ
279 # in case and if your file system supports case sensitive file names. Windows
280 # and Mac users are advised to set this option to NO.
281
282 CASE_SENSE_NAMES = YES
283
284 # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
285 # will show members with their full class and namespace scopes in the
286 # documentation. If set to YES the scope will be hidden.
287
288 HIDE_SCOPE_NAMES = NO
289
290 # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
291 # will put a list of the files that are included by a file in the documentation
292 # of that file.
293
294 SHOW_INCLUDE_FILES = YES
295
296 # If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
297 # is inserted in the documentation for inline members.
298
299 INLINE_INFO = YES
300
301 # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
302 # will sort the (detailed) documentation of file and class members
303 # alphabetically by member name. If set to NO the members will appear in
304 # declaration order.
305
306 SORT_MEMBER_DOCS = NO
307
308 # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
309 # brief documentation of file, namespace and class members alphabetically
310 # by member name. If set to NO (the default) the members will appear in
311 # declaration order.
312
313 SORT_BRIEF_DOCS = NO
314
315 # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
316 # sorted by fully-qualified names, including namespaces. If set to
317 # NO (the default), the class list will be sorted only by class name,
318 # not including the namespace part.
319 # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
320 # Note: This option applies only to the class list, not to the
321 # alphabetical list.
322
323 SORT_BY_SCOPE_NAME = NO
324
325 # The GENERATE_TODOLIST tag can be used to enable (YES) or
326 # disable (NO) the todo list. This list is created by putting \todo
327 # commands in the documentation.
328
329 GENERATE_TODOLIST = YES
330
331 # The GENERATE_TESTLIST tag can be used to enable (YES) or
332 # disable (NO) the test list. This list is created by putting \test
333 # commands in the documentation.
334
335 GENERATE_TESTLIST = YES
336
337 # The GENERATE_BUGLIST tag can be used to enable (YES) or
338 # disable (NO) the bug list. This list is created by putting \bug
339 # commands in the documentation.
340
341 GENERATE_BUGLIST = YES
342
343 # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
344 # disable (NO) the deprecated list. This list is created by putting
345 # \deprecated commands in the documentation.
346
347 GENERATE_DEPRECATEDLIST= YES
348
349 # The ENABLED_SECTIONS tag can be used to enable conditional
350 # documentation sections, marked by \if sectionname ... \endif.
351
352 ENABLED_SECTIONS =
353
354 # The MAX_INITIALIZER_LINES tag determines the maximum number of lines
355 # the initial value of a variable or define consists of for it to appear in
356 # the documentation. If the initializer consists of more lines than specified
357 # here it will be hidden. Use a value of 0 to hide initializers completely.
358 # The appearance of the initializer of individual variables and defines in the
359 # documentation can be controlled using \showinitializer or \hideinitializer
360 # command in the documentation regardless of this setting.
361
362 MAX_INITIALIZER_LINES = 30
363
364 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated
365 # at the bottom of the documentation of classes and structs. If set to YES the
366 # list will mention the files that were used to generate the documentation.
367
368 SHOW_USED_FILES = YES
369
370 # If the sources in your project are distributed over multiple directories
371 # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
372 # in the documentation.
373
374 SHOW_DIRECTORIES = YES
375
376 # The FILE_VERSION_FILTER tag can be used to specify a program or script that
377 # doxygen should invoke to get the current version for each file (typically from the
378 # version control system). Doxygen will invoke the program by executing (via
379 # popen()) the command <command> <input-file>, where <command> is the value of
380 # the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
381 # provided by doxygen. Whatever the progam writes to standard output
382 # is used as the file version. See the manual for examples.
383
384 FILE_VERSION_FILTER =
385
386 #---------------------------------------------------------------------------
387 # configuration options related to warning and progress messages
388 #---------------------------------------------------------------------------
389
390 # The QUIET tag can be used to turn on/off the messages that are generated
391 # by doxygen. Possible values are YES and NO. If left blank NO is used.
392
393 QUIET = NO
394
395 # The WARNINGS tag can be used to turn on/off the warning messages that are
396 # generated by doxygen. Possible values are YES and NO. If left blank
397 # NO is used.
398
399 WARNINGS = YES
400
401 # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
402 # for undocumented members. If EXTRACT_ALL is set to YES then this flag will
403 # automatically be disabled.
404
405 WARN_IF_UNDOCUMENTED = YES
406
407 # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
408 # potential errors in the documentation, such as not documenting some
409 # parameters in a documented function, or documenting parameters that
410 # don't exist or using markup commands wrongly.
411
412 WARN_IF_DOC_ERROR = YES
413
414 # This WARN_NO_PARAMDOC option can be abled to get warnings for
415 # functions that are documented, but have no documentation for their parameters
416 # or return value. If set to NO (the default) doxygen will only warn about
417 # wrong or incomplete parameter documentation, but not about the absence of
418 # documentation.
419
420 WARN_NO_PARAMDOC = NO
421
422 # The WARN_FORMAT tag determines the format of the warning messages that
423 # doxygen can produce. The string should contain the $file, $line, and $text
424 # tags, which will be replaced by the file and line number from which the
425 # warning originated and the warning text. Optionally the format may contain
426 # $version, which will be replaced by the version of the file (if it could
427 # be obtained via FILE_VERSION_FILTER)
428
429 WARN_FORMAT = "$file:$line: $text"
430
431 # The WARN_LOGFILE tag can be used to specify a file to which warning
432 # and error messages should be written. If left blank the output is written
433 # to stderr.
434
435 WARN_LOGFILE =
436
437 #---------------------------------------------------------------------------
438 # configuration options related to the input files
439 #---------------------------------------------------------------------------
440
441 # The INPUT tag can be used to specify the files and/or directories that contain
442 # documented source files. You may enter file names like "myfile.cpp" or
443 # directories like "/usr/src/myproject". Separate the files or directories
444 # with spaces.
445
446 INPUT = src
447
448 # If the value of the INPUT tag contains directories, you can use the
449 # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
450 # and *.h) to filter out the source-files in the directories. If left
451 # blank the following patterns are tested:
452 # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
453 # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm
454
455 FILE_PATTERNS = *.h
456
457 # The RECURSIVE tag can be used to turn specify whether or not subdirectories
458 # should be searched for input files as well. Possible values are YES and NO.
459 # If left blank NO is used.
460
461 RECURSIVE = NO
462
463 # The EXCLUDE tag can be used to specify files and/or directories that should
464 # excluded from the INPUT source files. This way you can easily exclude a
465 # subdirectory from a directory tree whose root is specified with the INPUT tag.
466
467 EXCLUDE = src/support.h
468
469 # The EXCLUDE_SYMLINKS tag can be used select whether or not files or
470 # directories that are symbolic links (a Unix filesystem feature) are excluded
471 # from the input.
472
473 EXCLUDE_SYMLINKS = NO
474
475 # If the value of the INPUT tag contains directories, you can use the
476 # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
477 # certain files from those directories.
478
479 EXCLUDE_PATTERNS = *.c
480
481 # The EXAMPLE_PATH tag can be used to specify one or more files or
482 # directories that contain example code fragments that are included (see
483 # the \include command).
484
485 EXAMPLE_PATH =
486
487 # If the value of the EXAMPLE_PATH tag contains directories, you can use the
488 # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
489 # and *.h) to filter out the source-files in the directories. If left
490 # blank all files are included.
491
492 EXAMPLE_PATTERNS =
493
494 # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
495 # searched for input files to be used with the \include or \dontinclude
496 # commands irrespective of the value of the RECURSIVE tag.
497 # Possible values are YES and NO. If left blank NO is used.
498
499 EXAMPLE_RECURSIVE = NO
500
501 # The IMAGE_PATH tag can be used to specify one or more files or
502 # directories that contain image that are included in the documentation (see
503 # the \image command).
504
505 IMAGE_PATH =
506
507 # The INPUT_FILTER tag can be used to specify a program that doxygen should
508 # invoke to filter for each input file. Doxygen will invoke the filter program
509 # by executing (via popen()) the command <filter> <input-file>, where <filter>
510 # is the value of the INPUT_FILTER tag, and <input-file> is the name of an
511 # input file. Doxygen will then use the output that the filter program writes
512 # to standard output. If FILTER_PATTERNS is specified, this tag will be
513 # ignored.
514
515 INPUT_FILTER =
516
517 # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
518 # basis. Doxygen will compare the file name with each pattern and apply the
519 # filter if there is a match. The filters are a list of the form:
520 # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
521 # info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
522 # is applied to all files.
523
524 FILTER_PATTERNS =
525
526 # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
527 # INPUT_FILTER) will be used to filter the input files when producing source
528 # files to browse (i.e. when SOURCE_BROWSER is set to YES).
529
530 FILTER_SOURCE_FILES = NO
531
532 #---------------------------------------------------------------------------
533 # configuration options related to source browsing
534 #---------------------------------------------------------------------------
535
536 # If the SOURCE_BROWSER tag is set to YES then a list of source files will
537 # be generated. Documented entities will be cross-referenced with these sources.
538 # Note: To get rid of all source code in the generated output, make sure also
539 # VERBATIM_HEADERS is set to NO.
540
541 SOURCE_BROWSER = NO
542
543 # Setting the INLINE_SOURCES tag to YES will include the body
544 # of functions and classes directly in the documentation.
545
546 INLINE_SOURCES = NO
547
548 # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
549 # doxygen to hide any special comment blocks from generated source code
550 # fragments. Normal C and C++ comments will always remain visible.
551
552 STRIP_CODE_COMMENTS = YES
553
554 # If the REFERENCED_BY_RELATION tag is set to YES (the default)
555 # then for each documented function all documented
556 # functions referencing it will be listed.
557
558 REFERENCED_BY_RELATION = YES
559
560 # If the REFERENCES_RELATION tag is set to YES (the default)
561 # then for each documented function all documented entities
562 # called/used by that function will be listed.
563
564 REFERENCES_RELATION = YES
565
566 # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
567 # will generate a verbatim copy of the header file for each class for
568 # which an include is specified. Set to NO to disable this.
569
570 VERBATIM_HEADERS = YES
571
572 #---------------------------------------------------------------------------
573 # configuration options related to the alphabetical class index
574 #---------------------------------------------------------------------------
575
576 # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
577 # of all compounds will be generated. Enable this if the project
578 # contains a lot of classes, structs, unions or interfaces.
579
580 ALPHABETICAL_INDEX = NO
581
582 # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
583 # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
584 # in which this list will be split (can be a number in the range [1..20])
585
586 COLS_IN_ALPHA_INDEX = 5
587
588 # In case all classes in a project start with a common prefix, all
589 # classes will be put under the same header in the alphabetical index.
590 # The IGNORE_PREFIX tag can be used to specify one or more prefixes that
591 # should be ignored while generating the index headers.
592
593 IGNORE_PREFIX =
594
595 #---------------------------------------------------------------------------
596 # configuration options related to the HTML output
597 #---------------------------------------------------------------------------
598
599 # If the GENERATE_HTML tag is set to YES (the default) Doxygen will
600 # generate HTML output.
601
602 GENERATE_HTML = YES
603
604 # The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
605 # If a relative path is entered the value of OUTPUT_DIRECTORY will be
606 # put in front of it. If left blank `html' will be used as the default path.
607
608 HTML_OUTPUT = html
609
610 # The HTML_FILE_EXTENSION tag can be used to specify the file extension for
611 # each generated HTML page (for example: .htm,.php,.asp). If it is left blank
612 # doxygen will generate files with .html extension.
613
614 HTML_FILE_EXTENSION = .html
615
616 # The HTML_HEADER tag can be used to specify a personal HTML header for
617 # each generated HTML page. If it is left blank doxygen will generate a
618 # standard header.
619
620 HTML_HEADER =
621
622 # The HTML_FOOTER tag can be used to specify a personal HTML footer for
623 # each generated HTML page. If it is left blank doxygen will generate a
624 # standard footer.
625
626 HTML_FOOTER =
627
628 # The HTML_STYLESHEET tag can be used to specify a user-defined cascading
629 # style sheet that is used by each HTML page. It can be used to
630 # fine-tune the look of the HTML output. If the tag is left blank doxygen
631 # will generate a default style sheet. Note that doxygen will try to copy
632 # the style sheet file to the HTML output directory, so don't put your own
633 # stylesheet in the HTML output directory as well, or it will be erased!
634
635 HTML_STYLESHEET =
636
637 # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
638 # files or namespaces will be aligned in HTML using tables. If set to
639 # NO a bullet list will be used.
640
641 HTML_ALIGN_MEMBERS = YES
642
643 # If the GENERATE_HTMLHELP tag is set to YES, additional index files
644 # will be generated that can be used as input for tools like the
645 # Microsoft HTML help workshop to generate a compressed HTML help file (.chm)
646 # of the generated HTML documentation.
647
648 GENERATE_HTMLHELP = NO
649
650 # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
651 # be used to specify the file name of the resulting .chm file. You
652 # can add a path in front of the file if the result should not be
653 # written to the html output directory.
654
655 CHM_FILE =
656
657 # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
658 # be used to specify the location (absolute path including file name) of
659 # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
660 # the HTML help compiler on the generated index.hhp.
661
662 HHC_LOCATION =
663
664 # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
665 # controls if a separate .chi index file is generated (YES) or that
666 # it should be included in the master .chm file (NO).
667
668 GENERATE_CHI = NO
669
670 # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
671 # controls whether a binary table of contents is generated (YES) or a
672 # normal table of contents (NO) in the .chm file.
673
674 BINARY_TOC = NO
675
676 # The TOC_EXPAND flag can be set to YES to add extra items for group members
677 # to the contents of the HTML help documentation and to the tree view.
678
679 TOC_EXPAND = NO
680
681 # The DISABLE_INDEX tag can be used to turn on/off the condensed index at
682 # top of each HTML page. The value NO (the default) enables the index and
683 # the value YES disables it.
684
685 DISABLE_INDEX = NO
686
687 # This tag can be used to set the number of enum values (range [1..20])
688 # that doxygen will group on one line in the generated HTML documentation.
689
690 ENUM_VALUES_PER_LINE = 4
691
692 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be
693 # generated containing a tree-like index structure (just like the one that
694 # is generated for HTML Help). For this to work a browser that supports
695 # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
696 # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
697 # probably better off using the HTML help feature.
698
699 GENERATE_TREEVIEW = NO
700
701 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
702 # used to set the initial width (in pixels) of the frame in which the tree
703 # is shown.
704
705 TREEVIEW_WIDTH = 250
706
707 #---------------------------------------------------------------------------
708 # configuration options related to the LaTeX output
709 #---------------------------------------------------------------------------
710
711 # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
712 # generate Latex output.
713
714 GENERATE_LATEX = YES
715
716 # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
717 # If a relative path is entered the value of OUTPUT_DIRECTORY will be
718 # put in front of it. If left blank `latex' will be used as the default path.
719
720 LATEX_OUTPUT = latex
721
722 # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
723 # invoked. If left blank `latex' will be used as the default command name.
724
725 LATEX_CMD_NAME = latex
726
727 # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
728 # generate index for LaTeX. If left blank `makeindex' will be used as the
729 # default command name.
730
731 MAKEINDEX_CMD_NAME = makeindex
732
733 # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
734 # LaTeX documents. This may be useful for small projects and may help to
735 # save some trees in general.
736
737 COMPACT_LATEX = NO
738
739 # The PAPER_TYPE tag can be used to set the paper type that is used
740 # by the printer. Possible values are: a4, a4wide, letter, legal and
741 # executive. If left blank a4wide will be used.
742
743 PAPER_TYPE = a4wide
744
745 # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
746 # packages that should be included in the LaTeX output.
747
748 EXTRA_PACKAGES =
749
750 # The LATEX_HEADER tag can be used to specify a personal LaTeX header for
751 # the generated latex document. The header should contain everything until
752 # the first chapter. If it is left blank doxygen will generate a
753 # standard header. Notice: only use this tag if you know what you are doing!
754
755 LATEX_HEADER =
756
757 # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
758 # is prepared for conversion to pdf (using ps2pdf). The pdf file will
759 # contain links (just like the HTML output) instead of page references
760 # This makes the output suitable for online browsing using a pdf viewer.
761
762 PDF_HYPERLINKS = NO
763
764 # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
765 # plain latex in the generated Makefile. Set this option to YES to get a
766 # higher quality PDF documentation.
767
768 USE_PDFLATEX = NO
769
770 # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
771 # command to the generated LaTeX files. This will instruct LaTeX to keep
772 # running if errors occur, instead of asking the user for help.
773 # This option is also used when generating formulas in HTML.
774
775 LATEX_BATCHMODE = NO
776
777 # If LATEX_HIDE_INDICES is set to YES then doxygen will not
778 # include the index chapters (such as File Index, Compound Index, etc.)
779 # in the output.
780
781 LATEX_HIDE_INDICES = NO
782
783 #---------------------------------------------------------------------------
784 # configuration options related to the RTF output
785 #---------------------------------------------------------------------------
786
787 # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
788 # The RTF output is optimized for Word 97 and may not look very pretty with
789 # other RTF readers or editors.
790
791 GENERATE_RTF = NO
792
793 # The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
794 # If a relative path is entered the value of OUTPUT_DIRECTORY will be
795 # put in front of it. If left blank `rtf' will be used as the default path.
796
797 RTF_OUTPUT = rtf
798
799 # If the COMPACT_RTF tag is set to YES Doxygen generates more compact
800 # RTF documents. This may be useful for small projects and may help to
801 # save some trees in general.
802
803 COMPACT_RTF = NO
804
805 # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
806 # will contain hyperlink fields. The RTF file will
807 # contain links (just like the HTML output) instead of page references.
808 # This makes the output suitable for online browsing using WORD or other
809 # programs which support those fields.
810 # Note: wordpad (write) and others do not support links.
811
812 RTF_HYPERLINKS = NO
813
814 # Load stylesheet definitions from file. Syntax is similar to doxygen's
815 # config file, i.e. a series of assignments. You only have to provide
816 # replacements, missing definitions are set to their default value.
817
818 RTF_STYLESHEET_FILE =
819
820 # Set optional variables used in the generation of an rtf document.
821 # Syntax is similar to doxygen's config file.
822
823 RTF_EXTENSIONS_FILE =
824
825 #---------------------------------------------------------------------------
826 # configuration options related to the man page output
827 #---------------------------------------------------------------------------
828
829 # If the GENERATE_MAN tag is set to YES (the default) Doxygen will
830 # generate man pages
831
832 GENERATE_MAN = YES
833
834 # The MAN_OUTPUT tag is used to specify where the man pages will be put.
835 # If a relative path is entered the value of OUTPUT_DIRECTORY will be
836 # put in front of it. If left blank `man' will be used as the default path.
837
838 MAN_OUTPUT = man
839
840 # The MAN_EXTENSION tag determines the extension that is added to
841 # the generated man pages (default is the subroutine's section .3)
842
843 MAN_EXTENSION = .3
844
845 # If the MAN_LINKS tag is set to YES and Doxygen generates man output,
846 # then it will generate one additional man file for each entity
847 # documented in the real man page(s). These additional files
848 # only source the real man page, but without them the man command
849 # would be unable to find the correct page. The default is NO.
850
851 MAN_LINKS = NO
852
853 #---------------------------------------------------------------------------
854 # configuration options related to the XML output
855 #---------------------------------------------------------------------------
856
857 # If the GENERATE_XML tag is set to YES Doxygen will
858 # generate an XML file that captures the structure of
859 # the code including all documentation.
860
861 GENERATE_XML = NO
862
863 # The XML_OUTPUT tag is used to specify where the XML pages will be put.
864 # If a relative path is entered the value of OUTPUT_DIRECTORY will be
865 # put in front of it. If left blank `xml' will be used as the default path.
866
867 XML_OUTPUT = xml
868
869 # The XML_SCHEMA tag can be used to specify an XML schema,
870 # which can be used by a validating XML parser to check the
871 # syntax of the XML files.
872
873 XML_SCHEMA =
874
875 # The XML_DTD tag can be used to specify an XML DTD,
876 # which can be used by a validating XML parser to check the
877 # syntax of the XML files.
878
879 XML_DTD =
880
881 # If the XML_PROGRAMLISTING tag is set to YES Doxygen will
882 # dump the program listings (including syntax highlighting
883 # and cross-referencing information) to the XML output. Note that
884 # enabling this will significantly increase the size of the XML output.
885
886 XML_PROGRAMLISTING = YES
887
888 #---------------------------------------------------------------------------
889 # configuration options for the AutoGen Definitions output
890 #---------------------------------------------------------------------------
891
892 # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
893 # generate an AutoGen Definitions (see autogen.sf.net) file
894 # that captures the structure of the code including all
895 # documentation. Note that this feature is still experimental
896 # and incomplete at the moment.
897
898 GENERATE_AUTOGEN_DEF = NO
899
900 #---------------------------------------------------------------------------
901 # configuration options related to the Perl module output
902 #---------------------------------------------------------------------------
903
904 # If the GENERATE_PERLMOD tag is set to YES Doxygen will
905 # generate a Perl module file that captures the structure of
906 # the code including all documentation. Note that this
907 # feature is still experimental and incomplete at the
908 # moment.
909
910 GENERATE_PERLMOD = NO
911
912 # If the PERLMOD_LATEX tag is set to YES Doxygen will generate
913 # the necessary Makefile rules, Perl scripts and LaTeX code to be able
914 # to generate PDF and DVI output from the Perl module output.
915
916 PERLMOD_LATEX = NO
917
918 # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
919 # nicely formatted so it can be parsed by a human reader. This is useful
920 # if you want to understand what is going on. On the other hand, if this
921 # tag is set to NO the size of the Perl module output will be much smaller
922 # and Perl will parse it just the same.
923
924 PERLMOD_PRETTY = YES
925
926 # The names of the make variables in the generated doxyrules.make file
927 # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
928 # This is useful so different doxyrules.make files included by the same
929 # Makefile don't overwrite each other's variables.
930
931 PERLMOD_MAKEVAR_PREFIX =
932
933 #---------------------------------------------------------------------------
934 # Configuration options related to the preprocessor
935 #---------------------------------------------------------------------------
936
937 # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
938 # evaluate all C-preprocessor directives found in the sources and include
939 # files.
940
941 ENABLE_PREPROCESSING = YES
942
943 # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
944 # names in the source code. If set to NO (the default) only conditional
945 # compilation will be performed. Macro expansion can be done in a controlled
946 # way by setting EXPAND_ONLY_PREDEF to YES.
947
948 MACRO_EXPANSION = NO
949
950 # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
951 # then the macro expansion is limited to the macros specified with the
952 # PREDEFINED and EXPAND_AS_PREDEFINED tags.
953
954 EXPAND_ONLY_PREDEF = NO
955
956 # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
957 # in the INCLUDE_PATH (see below) will be search if a #include is found.
958
959 SEARCH_INCLUDES = YES
960
961 # The INCLUDE_PATH tag can be used to specify one or more directories that
962 # contain include files that are not input files but should be processed by
963 # the preprocessor.
964
965 INCLUDE_PATH =
966
967 # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
968 # patterns (like *.h and *.hpp) to filter out the header-files in the
969 # directories. If left blank, the patterns specified with FILE_PATTERNS will
970 # be used.
971
972 INCLUDE_FILE_PATTERNS =
973
974 # The PREDEFINED tag can be used to specify one or more macro names that
975 # are defined before the preprocessor is started (similar to the -D option of
976 # gcc). The argument of the tag is a list of macros of the form: name
977 # or name=definition (no spaces). If the definition and the = are
978 # omitted =1 is assumed. To prevent a macro definition from being
979 # undefined via #undef or recursively expanded use the := operator
980 # instead of the = operator.
981
982 PREDEFINED =
983
984 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
985 # this tag can be used to specify a list of macro names that should be expanded.
986 # The macro definition that is found in the sources will be used.
987 # Use the PREDEFINED tag if you want to use a different macro definition.
988
989 EXPAND_AS_DEFINED =
990
991 # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
992 # doxygen's preprocessor will remove all function-like macros that are alone
993 # on a line, have an all uppercase name, and do not end with a semicolon. Such
994 # function macros are typically used for boiler-plate code, and will confuse
995 # the parser if not removed.
996
997 SKIP_FUNCTION_MACROS = YES
998
999 #---------------------------------------------------------------------------
1000 # Configuration::additions related to external references
1001 #---------------------------------------------------------------------------
1002
1003 # The TAGFILES option can be used to specify one or more tagfiles.
1004 # Optionally an initial location of the external documentation
1005 # can be added for each tagfile. The format of a tag file without
1006 # this location is as follows:
1007 # TAGFILES = file1 file2 ...
1008 # Adding location for the tag files is done as follows:
1009 # TAGFILES = file1=loc1 "file2 = loc2" ...
1010 # where "loc1" and "loc2" can be relative or absolute paths or
1011 # URLs. If a location is present for each tag, the installdox tool
1012 # does not have to be run to correct the links.
1013 # Note that each tag file must have a unique name
1014 # (where the name does NOT include the path)
1015 # If a tag file is not located in the directory in which doxygen
1016 # is run, you must also specify the path to the tagfile here.
1017
1018 TAGFILES =
1019
1020 # When a file name is specified after GENERATE_TAGFILE, doxygen will create
1021 # a tag file that is based on the input files it reads.
1022
1023 GENERATE_TAGFILE =
1024
1025 # If the ALLEXTERNALS tag is set to YES all external classes will be listed
1026 # in the class index. If set to NO only the inherited external classes
1027 # will be listed.
1028
1029 ALLEXTERNALS = NO
1030
1031 # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
1032 # in the modules index. If set to NO, only the current project's groups will
1033 # be listed.
1034
1035 EXTERNAL_GROUPS = YES
1036
1037 # The PERL_PATH should be the absolute path and name of the perl script
1038 # interpreter (i.e. the result of `which perl').
1039
1040 PERL_PATH = /usr/bin/perl
1041
1042 #---------------------------------------------------------------------------
1043 # Configuration options related to the dot tool
1044 #---------------------------------------------------------------------------
1045
1046 # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
1047 # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
1048 # or super classes. Setting the tag to NO turns the diagrams off. Note that
1049 # this option is superseded by the HAVE_DOT option below. This is only a
1050 # fallback. It is recommended to install and use dot, since it yields more
1051 # powerful graphs.
1052
1053 CLASS_DIAGRAMS = YES
1054
1055 # If set to YES, the inheritance and collaboration graphs will hide
1056 # inheritance and usage relations if the target is undocumented
1057 # or is not a class.
1058
1059 HIDE_UNDOC_RELATIONS = YES
1060
1061 # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
1062 # available from the path. This tool is part of Graphviz, a graph visualization
1063 # toolkit from AT&T and Lucent Bell Labs. The other options in this section
1064 # have no effect if this option is set to NO (the default)
1065
1066 HAVE_DOT = NO
1067
1068 # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
1069 # will generate a graph for each documented class showing the direct and
1070 # indirect inheritance relations. Setting this tag to YES will force the
1071 # the CLASS_DIAGRAMS tag to NO.
1072
1073 CLASS_GRAPH = YES
1074
1075 # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
1076 # will generate a graph for each documented class showing the direct and
1077 # indirect implementation dependencies (inheritance, containment, and
1078 # class references variables) of the class with other documented classes.
1079
1080 COLLABORATION_GRAPH = YES
1081
1082 # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
1083 # will generate a graph for groups, showing the direct groups dependencies
1084
1085 GROUP_GRAPHS = YES
1086
1087 # If the UML_LOOK tag is set to YES doxygen will generate inheritance and
1088 # collaboration diagrams in a style similar to the OMG's Unified Modeling
1089 # Language.
1090
1091 UML_LOOK = NO
1092
1093 # If set to YES, the inheritance and collaboration graphs will show the
1094 # relations between templates and their instances.
1095
1096 TEMPLATE_RELATIONS = NO
1097
1098 # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
1099 # tags are set to YES then doxygen will generate a graph for each documented
1100 # file showing the direct and indirect include dependencies of the file with
1101 # other documented files.
1102
1103 INCLUDE_GRAPH = YES
1104
1105 # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
1106 # HAVE_DOT tags are set to YES then doxygen will generate a graph for each
1107 # documented header file showing the documented files that directly or
1108 # indirectly include this file.
1109
1110 INCLUDED_BY_GRAPH = YES
1111
1112 # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will
1113 # generate a call dependency graph for every global function or class method.
1114 # Note that enabling this option will significantly increase the time of a run.
1115 # So in most cases it will be better to enable call graphs for selected
1116 # functions only using the \callgraph command.
1117
1118 CALL_GRAPH = NO
1119
1120 # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
1121 # will graphical hierarchy of all classes instead of a textual one.
1122
1123 GRAPHICAL_HIERARCHY = YES
1124
1125 # If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
1126 # then doxygen will show the dependencies a directory has on other directories
1127 # in a graphical way. The dependency relations are determined by the #include
1128 # relations between the files in the directories.
1129
1130 DIRECTORY_GRAPH = YES
1131
1132 # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
1133 # generated by dot. Possible values are png, jpg, or gif
1134 # If left blank png will be used.
1135
1136 DOT_IMAGE_FORMAT = png
1137
1138 # The tag DOT_PATH can be used to specify the path where the dot tool can be
1139 # found. If left blank, it is assumed the dot tool can be found in the path.
1140
1141 DOT_PATH =
1142
1143 # The DOTFILE_DIRS tag can be used to specify one or more directories that
1144 # contain dot files that are included in the documentation (see the
1145 # \dotfile command).
1146
1147 DOTFILE_DIRS =
1148
1149 # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width
1150 # (in pixels) of the graphs generated by dot. If a graph becomes larger than
1151 # this value, doxygen will try to truncate the graph, so that it fits within
1152 # the specified constraint. Beware that most browsers cannot cope with very
1153 # large images.
1154
1155 MAX_DOT_GRAPH_WIDTH = 1024
1156
1157 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height
1158 # (in pixels) of the graphs generated by dot. If a graph becomes larger than
1159 # this value, doxygen will try to truncate the graph, so that it fits within
1160 # the specified constraint. Beware that most browsers cannot cope with very
1161 # large images.
1162
1163 MAX_DOT_GRAPH_HEIGHT = 1024
1164
1165 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
1166 # graphs generated by dot. A depth value of 3 means that only nodes reachable
1167 # from the root by following a path via at most 3 edges will be shown. Nodes
1168 # that lay further from the root node will be omitted. Note that setting this
1169 # option to 1 or 2 may greatly reduce the computation time needed for large
1170 # code bases. Also note that a graph may be further truncated if the graph's
1171 # image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH
1172 # and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default),
1173 # the graph is not depth-constrained.
1174
1175 MAX_DOT_GRAPH_DEPTH = 0
1176
1177 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
1178 # background. This is disabled by default, which results in a white background.
1179 # Warning: Depending on the platform used, enabling this option may lead to
1180 # badly anti-aliased labels on the edges of a graph (i.e. they become hard to
1181 # read).
1182
1183 DOT_TRANSPARENT = NO
1184
1185 # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
1186 # files in one run (i.e. multiple -o and -T options on the command line). This
1187 # makes dot run faster, but since only newer versions of dot (>1.8.10)
1188 # support this, this feature is disabled by default.
1189
1190 DOT_MULTI_TARGETS = NO
1191
1192 # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
1193 # generate a legend page explaining the meaning of the various boxes and
1194 # arrows in the dot generated graphs.
1195
1196 GENERATE_LEGEND = YES
1197
1198 # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
1199 # remove the intermediate dot files that are used to generate
1200 # the various graphs.
1201
1202 DOT_CLEANUP = YES
1203
1204 #---------------------------------------------------------------------------
1205 # Configuration::additions related to the search engine
1206 #---------------------------------------------------------------------------
1207
1208 # The SEARCHENGINE tag specifies whether or not a search engine should be
1209 # used. If set to NO the values of all tags below this one will be ignored.
1210
1211 SEARCHENGINE = NO
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/libhdate0
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.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184
185 SUBDIRS = intl po src examples bindings debian
186
187 pkgconfigdir = $(libdir)/pkgconfig
188 pkgconfig_DATA = libhdate.pc
189
190 libhdatedocdir = ${prefix}/share/doc/libhdate0
191 libhdatedoc_DATA = \
192 README\
193 hdate_README\
194 COPYING\
195 AUTHORS\
196 ChangeLog\
197 INSTALL\
198 NEWS\
199 TODO\
200 USE\
201 ABOUT-NLS
202
203
204 EXTRA_DIST = $(libhdatedoc_DATA) libhdate.pc.in libhdate.spec libhdate.spec.in
205 subdir = .
206 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
207 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
208 CONFIG_CLEAN_FILES = libhdate.spec libhdate.pc intl/Makefile
209 DIST_SOURCES =
210 DATA = $(libhdatedoc_DATA) $(pkgconfig_DATA)
211
212
213 RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
214 ps-recursive install-info-recursive uninstall-info-recursive \
215 all-recursive install-data-recursive install-exec-recursive \
216 installdirs-recursive install-recursive uninstall-recursive \
217 check-recursive installcheck-recursive
218 DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure \
219 ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL Makefile.am NEWS \
220 TODO aclocal.m4 compile config.guess config.sub configure.in \
221 depcomp install-sh libhdate.pc.in libhdate.spec.in ltmain.sh \
222 missing mkinstalldirs
223 DIST_SUBDIRS = $(SUBDIRS)
224 all: all-recursive
225
226 .SUFFIXES:
227
228 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
229 configure.lineno
230 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
231 cd $(top_srcdir) && \
232 $(AUTOMAKE) --gnu Makefile
233 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
234 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
235
236 $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
237 $(SHELL) ./config.status --recheck
238 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
239 cd $(srcdir) && $(AUTOCONF)
240
241 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
242 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
243 libhdate.spec: $(top_builddir)/config.status libhdate.spec.in
244 cd $(top_builddir) && $(SHELL) ./config.status $@
245 libhdate.pc: $(top_builddir)/config.status libhdate.pc.in
246 cd $(top_builddir) && $(SHELL) ./config.status $@
247 intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in
248 cd $(top_builddir) && $(SHELL) ./config.status $@
249
250 mostlyclean-libtool:
251 -rm -f *.lo
252
253 clean-libtool:
254 -rm -rf .libs _libs
255
256 distclean-libtool:
257 -rm -f libtool
258 uninstall-info-am:
259 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
260 install-libhdatedocDATA: $(libhdatedoc_DATA)
261 @$(NORMAL_INSTALL)
262 $(mkinstalldirs) $(DESTDIR)$(libhdatedocdir)
263 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
264 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
265 f="`echo $$p | sed -e 's|^.*/||'`"; \
266 echo " $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f"; \
267 $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f; \
268 done
269
270 uninstall-libhdatedocDATA:
271 @$(NORMAL_UNINSTALL)
272 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
273 f="`echo $$p | sed -e 's|^.*/||'`"; \
274 echo " rm -f $(DESTDIR)$(libhdatedocdir)/$$f"; \
275 rm -f $(DESTDIR)$(libhdatedocdir)/$$f; \
276 done
277 pkgconfigDATA_INSTALL = $(INSTALL_DATA)
278 install-pkgconfigDATA: $(pkgconfig_DATA)
279 @$(NORMAL_INSTALL)
280 $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
281 @list='$(pkgconfig_DATA)'; for p in $$list; do \
282 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
283 f="`echo $$p | sed -e 's|^.*/||'`"; \
284 echo " $(pkgconfigDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgconfigdir)/$$f"; \
285 $(pkgconfigDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgconfigdir)/$$f; \
286 done
287
288 uninstall-pkgconfigDATA:
289 @$(NORMAL_UNINSTALL)
290 @list='$(pkgconfig_DATA)'; for p in $$list; do \
291 f="`echo $$p | sed -e 's|^.*/||'`"; \
292 echo " rm -f $(DESTDIR)$(pkgconfigdir)/$$f"; \
293 rm -f $(DESTDIR)$(pkgconfigdir)/$$f; \
294 done
295
296 # This directory's subdirectories are mostly independent; you can cd
297 # into them and run `make' without going through this Makefile.
298 # To change the values of `make' variables: instead of editing Makefiles,
299 # (1) if the variable is set in `config.status', edit `config.status'
300 # (which will cause the Makefiles to be regenerated when you run `make');
301 # (2) otherwise, pass the desired values on the `make' command line.
302 $(RECURSIVE_TARGETS):
303 @set fnord $$MAKEFLAGS; amf=$$2; \
304 dot_seen=no; \
305 target=`echo $@ | sed s/-recursive//`; \
306 list='$(SUBDIRS)'; for subdir in $$list; do \
307 echo "Making $$target in $$subdir"; \
308 if test "$$subdir" = "."; then \
309 dot_seen=yes; \
310 local_target="$$target-am"; \
311 else \
312 local_target="$$target"; \
313 fi; \
314 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
315 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
316 done; \
317 if test "$$dot_seen" = "no"; then \
318 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
319 fi; test -z "$$fail"
320
321 mostlyclean-recursive clean-recursive distclean-recursive \
322 maintainer-clean-recursive:
323 @set fnord $$MAKEFLAGS; amf=$$2; \
324 dot_seen=no; \
325 case "$@" in \
326 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
327 *) list='$(SUBDIRS)' ;; \
328 esac; \
329 rev=''; for subdir in $$list; do \
330 if test "$$subdir" = "."; then :; else \
331 rev="$$subdir $$rev"; \
332 fi; \
333 done; \
334 rev="$$rev ."; \
335 target=`echo $@ | sed s/-recursive//`; \
336 for subdir in $$rev; do \
337 echo "Making $$target in $$subdir"; \
338 if test "$$subdir" = "."; then \
339 local_target="$$target-am"; \
340 else \
341 local_target="$$target"; \
342 fi; \
343 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
344 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
345 done && test -z "$$fail"
346 tags-recursive:
347 list='$(SUBDIRS)'; for subdir in $$list; do \
348 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
349 done
350 ctags-recursive:
351 list='$(SUBDIRS)'; for subdir in $$list; do \
352 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
353 done
354
355 ETAGS = etags
356 ETAGSFLAGS =
357
358 CTAGS = ctags
359 CTAGSFLAGS =
360
361 tags: TAGS
362
363 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) ' { files[$$0] = 1; } \
369 END { for (i in files) print i; }'`; \
370 mkid -fID $$unique
371
372 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
373 $(TAGS_FILES) $(LISP)
374 tags=; \
375 here=`pwd`; \
376 if (etags --etags-include --version) >/dev/null 2>&1; then \
377 include_option=--etags-include; \
378 else \
379 include_option=--include; \
380 fi; \
381 list='$(SUBDIRS)'; for subdir in $$list; do \
382 if test "$$subdir" = .; then :; else \
383 test -f $$subdir/TAGS && \
384 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
385 fi; \
386 done; \
387 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
388 unique=`for i in $$list; do \
389 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
390 done | \
391 $(AWK) ' { files[$$0] = 1; } \
392 END { for (i in files) print i; }'`; \
393 test -z "$(ETAGS_ARGS)$$tags$$unique" \
394 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
395 $$tags $$unique
396
397 ctags: CTAGS
398 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
399 $(TAGS_FILES) $(LISP)
400 tags=; \
401 here=`pwd`; \
402 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
403 unique=`for i in $$list; do \
404 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
405 done | \
406 $(AWK) ' { files[$$0] = 1; } \
407 END { for (i in files) print i; }'`; \
408 test -z "$(CTAGS_ARGS)$$tags$$unique" \
409 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
410 $$tags $$unique
411
412 GTAGS:
413 here=`$(am__cd) $(top_builddir) && pwd` \
414 && cd $(top_srcdir) \
415 && gtags -i $(GTAGS_ARGS) $$here
416
417 distclean-tags:
418 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
419 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
420
421 top_distdir = .
422 distdir = $(PACKAGE)-$(VERSION)
423
424 am__remove_distdir = \
425 { test ! -d $(distdir) \
426 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
427 && rm -fr $(distdir); }; }
428
429 GZIP_ENV = --best
430 distuninstallcheck_listfiles = find . -type f -print
431 distcleancheck_listfiles = find . -type f -print
432
433 distdir: $(DISTFILES)
434 $(am__remove_distdir)
435 mkdir $(distdir)
436 $(mkinstalldirs) $(distdir)/. $(distdir)/intl $(distdir)/po
437 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
438 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
439 list='$(DISTFILES)'; for file in $$list; do \
440 case $$file in \
441 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
442 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
443 esac; \
444 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
445 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
446 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
447 dir="/$$dir"; \
448 $(mkinstalldirs) "$(distdir)$$dir"; \
449 else \
450 dir=''; \
451 fi; \
452 if test -d $$d/$$file; then \
453 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
454 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
455 fi; \
456 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
457 else \
458 test -f $(distdir)/$$file \
459 || cp -p $$d/$$file $(distdir)/$$file \
460 || exit 1; \
461 fi; \
462 done
463 list='$(SUBDIRS)'; for subdir in $$list; do \
464 if test "$$subdir" = .; then :; else \
465 test -d $(distdir)/$$subdir \
466 || mkdir $(distdir)/$$subdir \
467 || exit 1; \
468 (cd $$subdir && \
469 $(MAKE) $(AM_MAKEFLAGS) \
470 top_distdir="$(top_distdir)" \
471 distdir=../$(distdir)/$$subdir \
472 distdir) \
473 || exit 1; \
474 fi; \
475 done
476 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
477 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
478 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
479 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
480 || chmod -R a+r $(distdir)
481 dist-gzip: distdir
482 $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
483 $(am__remove_distdir)
484
485 dist dist-all: distdir
486 $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
487 $(am__remove_distdir)
488
489 # This target untars the dist file and tries a VPATH configuration. Then
490 # it guarantees that the distribution is self-contained by making another
491 # tarfile.
492 distcheck: dist
493 $(am__remove_distdir)
494 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
495 chmod -R a-w $(distdir); chmod a+w $(distdir)
496 mkdir $(distdir)/_build
497 mkdir $(distdir)/_inst
498 chmod a-w $(distdir)
499 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
500 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
501 && cd $(distdir)/_build \
502 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
503 --with-included-gettext \
504 $(DISTCHECK_CONFIGURE_FLAGS) \
505 && $(MAKE) $(AM_MAKEFLAGS) \
506 && $(MAKE) $(AM_MAKEFLAGS) dvi \
507 && $(MAKE) $(AM_MAKEFLAGS) check \
508 && $(MAKE) $(AM_MAKEFLAGS) install \
509 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
510 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
511 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
512 distuninstallcheck \
513 && chmod -R a-w "$$dc_install_base" \
514 && ({ \
515 (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
516 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
517 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
518 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
519 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
520 } || { rm -rf "$$dc_destdir"; exit 1; }) \
521 && rm -rf "$$dc_destdir" \
522 && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
523 && rm -f $(distdir).tar.gz \
524 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
525 $(am__remove_distdir)
526 @echo "$(distdir).tar.gz is ready for distribution" | \
527 sed 'h;s/./=/g;p;x;p;x'
528 distuninstallcheck:
529 @cd $(distuninstallcheck_dir) \
530 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
531 || { echo "ERROR: files left after uninstall:" ; \
532 if test -n "$(DESTDIR)"; then \
533 echo " (check DESTDIR support)"; \
534 fi ; \
535 $(distuninstallcheck_listfiles) ; \
536 exit 1; } >&2
537 distcleancheck: distclean
538 @if test '$(srcdir)' = . ; then \
539 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
540 exit 1 ; \
541 fi
542 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
543 || { echo "ERROR: files left in build directory after distclean:" ; \
544 $(distcleancheck_listfiles) ; \
545 exit 1; } >&2
546 check-am: all-am
547 check: check-recursive
548 all-am: Makefile $(DATA)
549 installdirs: installdirs-recursive
550 installdirs-am:
551 $(mkinstalldirs) $(DESTDIR)$(libhdatedocdir) $(DESTDIR)$(pkgconfigdir)
552
553 install: install-recursive
554 install-exec: install-exec-recursive
555 install-data: install-data-recursive
556 uninstall: uninstall-recursive
557
558 install-am: all-am
559 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
560
561 installcheck: installcheck-recursive
562 install-strip:
563 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
564 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
565 `test -z '$(STRIP)' || \
566 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
567 mostlyclean-generic:
568
569 clean-generic:
570
571 distclean-generic:
572 -rm -f $(CONFIG_CLEAN_FILES)
573
574 maintainer-clean-generic:
575 @echo "This command is intended for maintainers to use"
576 @echo "it deletes files that may require special tools to rebuild."
577 clean: clean-recursive
578
579 clean-am: clean-generic clean-libtool mostlyclean-am
580
581 distclean: distclean-recursive
582 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
583 -rm -f Makefile
584 distclean-am: clean-am distclean-generic distclean-libtool \
585 distclean-tags
586
587 dvi: dvi-recursive
588
589 dvi-am:
590
591 info: info-recursive
592
593 info-am:
594
595 install-data-am: install-libhdatedocDATA install-pkgconfigDATA
596
597 install-exec-am:
598
599 install-info: install-info-recursive
600
601 install-man:
602
603 installcheck-am:
604
605 maintainer-clean: maintainer-clean-recursive
606 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
607 -rm -rf $(top_srcdir)/autom4te.cache
608 -rm -f Makefile
609 maintainer-clean-am: distclean-am maintainer-clean-generic
610
611 mostlyclean: mostlyclean-recursive
612
613 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
614
615 pdf: pdf-recursive
616
617 pdf-am:
618
619 ps: ps-recursive
620
621 ps-am:
622
623 uninstall-am: uninstall-info-am uninstall-libhdatedocDATA \
624 uninstall-pkgconfigDATA
625
626 uninstall-info: uninstall-info-recursive
627
628 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
629 clean-generic clean-libtool clean-recursive ctags \
630 ctags-recursive dist dist-all dist-gzip distcheck distclean \
631 distclean-generic distclean-libtool distclean-recursive \
632 distclean-tags distcleancheck distdir distuninstallcheck dvi \
633 dvi-am dvi-recursive info info-am info-recursive install \
634 install-am install-data install-data-am install-data-recursive \
635 install-exec install-exec-am install-exec-recursive \
636 install-info install-info-am install-info-recursive \
637 install-libhdatedocDATA install-man install-pkgconfigDATA \
638 install-recursive install-strip installcheck installcheck-am \
639 installdirs installdirs-am installdirs-recursive \
640 maintainer-clean maintainer-clean-generic \
641 maintainer-clean-recursive mostlyclean mostlyclean-generic \
642 mostlyclean-libtool mostlyclean-recursive pdf pdf-am \
643 pdf-recursive ps ps-am ps-recursive tags tags-recursive \
644 uninstall uninstall-am uninstall-info-am \
645 uninstall-info-recursive uninstall-libhdatedocDATA \
646 uninstall-pkgconfigDATA uninstall-recursive
647
648 # Tell versions [3.59,3.63) of GNU make to not export all variables.
649 # Otherwise a system limit (for SysV at least) may be exceeded.
650 .NOEXPORT:
(New empty file)
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.7.9 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
3 # 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 # Do all the work for Automake. -*- Autoconf -*-
14
15 # This macro actually does too much some checks are only needed if
16 # your package does certain things. But this isn't really a big deal.
17
18 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
19 # Free Software Foundation, Inc.
20
21 # This program is free software; you can redistribute it and/or modify
22 # it under the terms of the GNU General Public License as published by
23 # the Free Software Foundation; either version 2, or (at your option)
24 # any later version.
25
26 # This program is distributed in the hope that it will be useful,
27 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 # GNU General Public License for more details.
30
31 # You should have received a copy of the GNU General Public License
32 # along with this program; if not, write to the Free Software
33 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
34 # 02111-1307, USA.
35
36 # serial 10
37
38 AC_PREREQ([2.54])
39
40 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
41 # the ones we care about.
42 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
43
44 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
45 # AM_INIT_AUTOMAKE([OPTIONS])
46 # -----------------------------------------------
47 # The call with PACKAGE and VERSION arguments is the old style
48 # call (pre autoconf-2.50), which is being phased out. PACKAGE
49 # and VERSION should now be passed to AC_INIT and removed from
50 # the call to AM_INIT_AUTOMAKE.
51 # We support both call styles for the transition. After
52 # the next Automake release, Autoconf can make the AC_INIT
53 # arguments mandatory, and then we can depend on a new Autoconf
54 # release and drop the old call support.
55 AC_DEFUN([AM_INIT_AUTOMAKE],
56 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
57 AC_REQUIRE([AC_PROG_INSTALL])dnl
58 # test to see if srcdir already configured
59 if test "`cd $srcdir && pwd`" != "`pwd`" &&
60 test -f $srcdir/config.status; then
61 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
62 fi
63
64 # test whether we have cygpath
65 if test -z "$CYGPATH_W"; then
66 if (cygpath --version) >/dev/null 2>/dev/null; then
67 CYGPATH_W='cygpath -w'
68 else
69 CYGPATH_W=echo
70 fi
71 fi
72 AC_SUBST([CYGPATH_W])
73
74 # Define the identity of the package.
75 dnl Distinguish between old-style and new-style calls.
76 m4_ifval([$2],
77 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
78 AC_SUBST([PACKAGE], [$1])dnl
79 AC_SUBST([VERSION], [$2])],
80 [_AM_SET_OPTIONS([$1])dnl
81 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
82 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
83
84 _AM_IF_OPTION([no-define],,
85 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
86 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
87
88 # Some tools Automake needs.
89 AC_REQUIRE([AM_SANITY_CHECK])dnl
90 AC_REQUIRE([AC_ARG_PROGRAM])dnl
91 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
92 AM_MISSING_PROG(AUTOCONF, autoconf)
93 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
94 AM_MISSING_PROG(AUTOHEADER, autoheader)
95 AM_MISSING_PROG(MAKEINFO, makeinfo)
96 AM_MISSING_PROG(AMTAR, tar)
97 AM_PROG_INSTALL_SH
98 AM_PROG_INSTALL_STRIP
99 # We need awk for the "check" target. The system "awk" is bad on
100 # some platforms.
101 AC_REQUIRE([AC_PROG_AWK])dnl
102 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
103 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
104
105 _AM_IF_OPTION([no-dependencies],,
106 [AC_PROVIDE_IFELSE([AC_PROG_CC],
107 [_AM_DEPENDENCIES(CC)],
108 [define([AC_PROG_CC],
109 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
110 AC_PROVIDE_IFELSE([AC_PROG_CXX],
111 [_AM_DEPENDENCIES(CXX)],
112 [define([AC_PROG_CXX],
113 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
114 ])
115 ])
116
117
118 # When config.status generates a header, we must update the stamp-h file.
119 # This file resides in the same directory as the config header
120 # that is generated. The stamp files are numbered to have different names.
121
122 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
123 # loop where config.status creates the headers, so we can generate
124 # our stamp files there.
125 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
126 [# Compute $1's index in $config_headers.
127 _am_stamp_count=1
128 for _am_header in $config_headers :; do
129 case $_am_header in
130 $1 | $1:* )
131 break ;;
132 * )
133 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
134 esac
135 done
136 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
137
138 # Copyright 2002 Free Software Foundation, Inc.
139
140 # This program is free software; you can redistribute it and/or modify
141 # it under the terms of the GNU General Public License as published by
142 # the Free Software Foundation; either version 2, or (at your option)
143 # any later version.
144
145 # This program is distributed in the hope that it will be useful,
146 # but WITHOUT ANY WARRANTY; without even the implied warranty of
147 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
148 # GNU General Public License for more details.
149
150 # You should have received a copy of the GNU General Public License
151 # along with this program; if not, write to the Free Software
152 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
153
154 # AM_AUTOMAKE_VERSION(VERSION)
155 # ----------------------------
156 # Automake X.Y traces this macro to ensure aclocal.m4 has been
157 # generated from the m4 files accompanying Automake X.Y.
158 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
159
160 # AM_SET_CURRENT_AUTOMAKE_VERSION
161 # -------------------------------
162 # Call AM_AUTOMAKE_VERSION so it can be traced.
163 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
164 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
165 [AM_AUTOMAKE_VERSION([1.7.9])])
166
167 # Helper functions for option handling. -*- Autoconf -*-
168
169 # Copyright 2001, 2002 Free Software Foundation, Inc.
170
171 # This program is free software; you can redistribute it and/or modify
172 # it under the terms of the GNU General Public License as published by
173 # the Free Software Foundation; either version 2, or (at your option)
174 # any later version.
175
176 # This program is distributed in the hope that it will be useful,
177 # but WITHOUT ANY WARRANTY; without even the implied warranty of
178 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
179 # GNU General Public License for more details.
180
181 # You should have received a copy of the GNU General Public License
182 # along with this program; if not, write to the Free Software
183 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
184 # 02111-1307, USA.
185
186 # serial 2
187
188 # _AM_MANGLE_OPTION(NAME)
189 # -----------------------
190 AC_DEFUN([_AM_MANGLE_OPTION],
191 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
192
193 # _AM_SET_OPTION(NAME)
194 # ------------------------------
195 # Set option NAME. Presently that only means defining a flag for this option.
196 AC_DEFUN([_AM_SET_OPTION],
197 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
198
199 # _AM_SET_OPTIONS(OPTIONS)
200 # ----------------------------------
201 # OPTIONS is a space-separated list of Automake options.
202 AC_DEFUN([_AM_SET_OPTIONS],
203 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
204
205 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
206 # -------------------------------------------
207 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
208 AC_DEFUN([_AM_IF_OPTION],
209 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
210
211 #
212 # Check to make sure that the build environment is sane.
213 #
214
215 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
216
217 # This program is free software; you can redistribute it and/or modify
218 # it under the terms of the GNU General Public License as published by
219 # the Free Software Foundation; either version 2, or (at your option)
220 # any later version.
221
222 # This program is distributed in the hope that it will be useful,
223 # but WITHOUT ANY WARRANTY; without even the implied warranty of
224 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
225 # GNU General Public License for more details.
226
227 # You should have received a copy of the GNU General Public License
228 # along with this program; if not, write to the Free Software
229 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
230 # 02111-1307, USA.
231
232 # serial 3
233
234 # AM_SANITY_CHECK
235 # ---------------
236 AC_DEFUN([AM_SANITY_CHECK],
237 [AC_MSG_CHECKING([whether build environment is sane])
238 # Just in case
239 sleep 1
240 echo timestamp > conftest.file
241 # Do `set' in a subshell so we don't clobber the current shell's
242 # arguments. Must try -L first in case configure is actually a
243 # symlink; some systems play weird games with the mod time of symlinks
244 # (eg FreeBSD returns the mod time of the symlink's containing
245 # directory).
246 if (
247 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
248 if test "$[*]" = "X"; then
249 # -L didn't work.
250 set X `ls -t $srcdir/configure conftest.file`
251 fi
252 rm -f conftest.file
253 if test "$[*]" != "X $srcdir/configure conftest.file" \
254 && test "$[*]" != "X conftest.file $srcdir/configure"; then
255
256 # If neither matched, then we have a broken ls. This can happen
257 # if, for instance, CONFIG_SHELL is bash and it inherits a
258 # broken ls alias from the environment. This has actually
259 # happened. Such a system could not be considered "sane".
260 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
261 alias in your environment])
262 fi
263
264 test "$[2]" = conftest.file
265 )
266 then
267 # Ok.
268 :
269 else
270 AC_MSG_ERROR([newly created file is older than distributed files!
271 Check your system clock])
272 fi
273 AC_MSG_RESULT(yes)])
274
275 # -*- Autoconf -*-
276
277
278 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
279
280 # This program is free software; you can redistribute it and/or modify
281 # it under the terms of the GNU General Public License as published by
282 # the Free Software Foundation; either version 2, or (at your option)
283 # any later version.
284
285 # This program is distributed in the hope that it will be useful,
286 # but WITHOUT ANY WARRANTY; without even the implied warranty of
287 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
288 # GNU General Public License for more details.
289
290 # You should have received a copy of the GNU General Public License
291 # along with this program; if not, write to the Free Software
292 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
293 # 02111-1307, USA.
294
295 # serial 3
296
297 # AM_MISSING_PROG(NAME, PROGRAM)
298 # ------------------------------
299 AC_DEFUN([AM_MISSING_PROG],
300 [AC_REQUIRE([AM_MISSING_HAS_RUN])
301 $1=${$1-"${am_missing_run}$2"}
302 AC_SUBST($1)])
303
304
305 # AM_MISSING_HAS_RUN
306 # ------------------
307 # Define MISSING if not defined so far and test if it supports --run.
308 # If it does, set am_missing_run to use it, otherwise, to nothing.
309 AC_DEFUN([AM_MISSING_HAS_RUN],
310 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
311 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
312 # Use eval to expand $SHELL
313 if eval "$MISSING --run true"; then
314 am_missing_run="$MISSING --run "
315 else
316 am_missing_run=
317 AC_MSG_WARN([`missing' script is too old or missing])
318 fi
319 ])
320
321 # AM_AUX_DIR_EXPAND
322
323 # Copyright 2001 Free Software Foundation, Inc.
324
325 # This program is free software; you can redistribute it and/or modify
326 # it under the terms of the GNU General Public License as published by
327 # the Free Software Foundation; either version 2, or (at your option)
328 # any later version.
329
330 # This program is distributed in the hope that it will be useful,
331 # but WITHOUT ANY WARRANTY; without even the implied warranty of
332 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
333 # GNU General Public License for more details.
334
335 # You should have received a copy of the GNU General Public License
336 # along with this program; if not, write to the Free Software
337 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
338 # 02111-1307, USA.
339
340 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
341 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
342 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
343 #
344 # Of course, Automake must honor this variable whenever it calls a
345 # tool from the auxiliary directory. The problem is that $srcdir (and
346 # therefore $ac_aux_dir as well) can be either absolute or relative,
347 # depending on how configure is run. This is pretty annoying, since
348 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
349 # source directory, any form will work fine, but in subdirectories a
350 # relative path needs to be adjusted first.
351 #
352 # $ac_aux_dir/missing
353 # fails when called from a subdirectory if $ac_aux_dir is relative
354 # $top_srcdir/$ac_aux_dir/missing
355 # fails if $ac_aux_dir is absolute,
356 # fails when called from a subdirectory in a VPATH build with
357 # a relative $ac_aux_dir
358 #
359 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
360 # are both prefixed by $srcdir. In an in-source build this is usually
361 # harmless because $srcdir is `.', but things will broke when you
362 # start a VPATH build or use an absolute $srcdir.
363 #
364 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
365 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
366 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
367 # and then we would define $MISSING as
368 # MISSING="\${SHELL} $am_aux_dir/missing"
369 # This will work as long as MISSING is not called from configure, because
370 # unfortunately $(top_srcdir) has no meaning in configure.
371 # However there are other variables, like CC, which are often used in
372 # configure, and could therefore not use this "fixed" $ac_aux_dir.
373 #
374 # Another solution, used here, is to always expand $ac_aux_dir to an
375 # absolute PATH. The drawback is that using absolute paths prevent a
376 # configured tree to be moved without reconfiguration.
377
378 # Rely on autoconf to set up CDPATH properly.
379 AC_PREREQ([2.50])
380
381 AC_DEFUN([AM_AUX_DIR_EXPAND], [
382 # expand $ac_aux_dir to an absolute path
383 am_aux_dir=`cd $ac_aux_dir && pwd`
384 ])
385
386 # AM_PROG_INSTALL_SH
387 # ------------------
388 # Define $install_sh.
389
390 # Copyright 2001 Free Software Foundation, Inc.
391
392 # This program is free software; you can redistribute it and/or modify
393 # it under the terms of the GNU General Public License as published by
394 # the Free Software Foundation; either version 2, or (at your option)
395 # any later version.
396
397 # This program is distributed in the hope that it will be useful,
398 # but WITHOUT ANY WARRANTY; without even the implied warranty of
399 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
400 # GNU General Public License for more details.
401
402 # You should have received a copy of the GNU General Public License
403 # along with this program; if not, write to the Free Software
404 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
405 # 02111-1307, USA.
406
407 AC_DEFUN([AM_PROG_INSTALL_SH],
408 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
409 install_sh=${install_sh-"$am_aux_dir/install-sh"}
410 AC_SUBST(install_sh)])
411
412 # AM_PROG_INSTALL_STRIP
413
414 # Copyright 2001 Free Software Foundation, Inc.
415
416 # This program is free software; you can redistribute it and/or modify
417 # it under the terms of the GNU General Public License as published by
418 # the Free Software Foundation; either version 2, or (at your option)
419 # any later version.
420
421 # This program is distributed in the hope that it will be useful,
422 # but WITHOUT ANY WARRANTY; without even the implied warranty of
423 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
424 # GNU General Public License for more details.
425
426 # You should have received a copy of the GNU General Public License
427 # along with this program; if not, write to the Free Software
428 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
429 # 02111-1307, USA.
430
431 # One issue with vendor `install' (even GNU) is that you can't
432 # specify the program used to strip binaries. This is especially
433 # annoying in cross-compiling environments, where the build's strip
434 # is unlikely to handle the host's binaries.
435 # Fortunately install-sh will honor a STRIPPROG variable, so we
436 # always use install-sh in `make install-strip', and initialize
437 # STRIPPROG with the value of the STRIP variable (set by the user).
438 AC_DEFUN([AM_PROG_INSTALL_STRIP],
439 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
440 # Installed binaries are usually stripped using `strip' when the user
441 # run `make install-strip'. However `strip' might not be the right
442 # tool to use in cross-compilation environments, therefore Automake
443 # will honor the `STRIP' environment variable to overrule this program.
444 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
445 if test "$cross_compiling" != no; then
446 AC_CHECK_TOOL([STRIP], [strip], :)
447 fi
448 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
449 AC_SUBST([INSTALL_STRIP_PROGRAM])])
450
451 # -*- Autoconf -*-
452 # Copyright (C) 2003 Free Software Foundation, Inc.
453
454 # This program is free software; you can redistribute it and/or modify
455 # it under the terms of the GNU General Public License as published by
456 # the Free Software Foundation; either version 2, or (at your option)
457 # any later version.
458
459 # This program is distributed in the hope that it will be useful,
460 # but WITHOUT ANY WARRANTY; without even the implied warranty of
461 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
462 # GNU General Public License for more details.
463
464 # You should have received a copy of the GNU General Public License
465 # along with this program; if not, write to the Free Software
466 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
467 # 02111-1307, USA.
468
469 # serial 1
470
471 # Check whether the underlying file-system supports filenames
472 # with a leading dot. For instance MS-DOS doesn't.
473 AC_DEFUN([AM_SET_LEADING_DOT],
474 [rm -rf .tst 2>/dev/null
475 mkdir .tst 2>/dev/null
476 if test -d .tst; then
477 am__leading_dot=.
478 else
479 am__leading_dot=_
480 fi
481 rmdir .tst 2>/dev/null
482 AC_SUBST([am__leading_dot])])
483
484 # serial 5 -*- Autoconf -*-
485
486 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
487
488 # This program is free software; you can redistribute it and/or modify
489 # it under the terms of the GNU General Public License as published by
490 # the Free Software Foundation; either version 2, or (at your option)
491 # any later version.
492
493 # This program is distributed in the hope that it will be useful,
494 # but WITHOUT ANY WARRANTY; without even the implied warranty of
495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
496 # GNU General Public License for more details.
497
498 # You should have received a copy of the GNU General Public License
499 # along with this program; if not, write to the Free Software
500 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
501 # 02111-1307, USA.
502
503
504 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
505 # written in clear, in which case automake, when reading aclocal.m4,
506 # will think it sees a *use*, and therefore will trigger all it's
507 # C support machinery. Also note that it means that autoscan, seeing
508 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
509
510
511
512 # _AM_DEPENDENCIES(NAME)
513 # ----------------------
514 # See how the compiler implements dependency checking.
515 # NAME is "CC", "CXX", "GCJ", or "OBJC".
516 # We try a few techniques and use that to set a single cache variable.
517 #
518 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
519 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
520 # dependency, and given that the user is not expected to run this macro,
521 # just rely on AC_PROG_CC.
522 AC_DEFUN([_AM_DEPENDENCIES],
523 [AC_REQUIRE([AM_SET_DEPDIR])dnl
524 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
525 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
526 AC_REQUIRE([AM_DEP_TRACK])dnl
527
528 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
529 [$1], CXX, [depcc="$CXX" am_compiler_list=],
530 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
531 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
532 [depcc="$$1" am_compiler_list=])
533
534 AC_CACHE_CHECK([dependency style of $depcc],
535 [am_cv_$1_dependencies_compiler_type],
536 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
537 # We make a subdir and do the tests there. Otherwise we can end up
538 # making bogus files that we don't know about and never remove. For
539 # instance it was reported that on HP-UX the gcc test will end up
540 # making a dummy file named `D' -- because `-MD' means `put the output
541 # in D'.
542 mkdir conftest.dir
543 # Copy depcomp to subdir because otherwise we won't find it if we're
544 # using a relative directory.
545 cp "$am_depcomp" conftest.dir
546 cd conftest.dir
547 # We will build objects and dependencies in a subdirectory because
548 # it helps to detect inapplicable dependency modes. For instance
549 # both Tru64's cc and ICC support -MD to output dependencies as a
550 # side effect of compilation, but ICC will put the dependencies in
551 # the current directory while Tru64 will put them in the object
552 # directory.
553 mkdir sub
554
555 am_cv_$1_dependencies_compiler_type=none
556 if test "$am_compiler_list" = ""; then
557 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
558 fi
559 for depmode in $am_compiler_list; do
560 # Setup a source with many dependencies, because some compilers
561 # like to wrap large dependency lists on column 80 (with \), and
562 # we should not choose a depcomp mode which is confused by this.
563 #
564 # We need to recreate these files for each test, as the compiler may
565 # overwrite some of them when testing with obscure command lines.
566 # This happens at least with the AIX C compiler.
567 : > sub/conftest.c
568 for i in 1 2 3 4 5 6; do
569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
570 : > sub/conftst$i.h
571 done
572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
573
574 case $depmode in
575 nosideeffect)
576 # after this tag, mechanisms are not by side-effect, so they'll
577 # only be used when explicitly requested
578 if test "x$enable_dependency_tracking" = xyes; then
579 continue
580 else
581 break
582 fi
583 ;;
584 none) break ;;
585 esac
586 # We check with `-c' and `-o' for the sake of the "dashmstdout"
587 # mode. It turns out that the SunPro C++ compiler does not properly
588 # handle `-M -o', and we need to detect this.
589 if depmode=$depmode \
590 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
592 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
593 >/dev/null 2>conftest.err &&
594 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
595 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
596 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
597 # icc doesn't choke on unknown options, it will just issue warnings
598 # (even with -Werror). So we grep stderr for any message
599 # that says an option was ignored.
600 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
601 am_cv_$1_dependencies_compiler_type=$depmode
602 break
603 fi
604 fi
605 done
606
607 cd ..
608 rm -rf conftest.dir
609 else
610 am_cv_$1_dependencies_compiler_type=none
611 fi
612 ])
613 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
614 AM_CONDITIONAL([am__fastdep$1], [
615 test "x$enable_dependency_tracking" != xno \
616 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
617 ])
618
619
620 # AM_SET_DEPDIR
621 # -------------
622 # Choose a directory name for dependency files.
623 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
624 AC_DEFUN([AM_SET_DEPDIR],
625 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
626 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
627 ])
628
629
630 # AM_DEP_TRACK
631 # ------------
632 AC_DEFUN([AM_DEP_TRACK],
633 [AC_ARG_ENABLE(dependency-tracking,
634 [ --disable-dependency-tracking Speeds up one-time builds
635 --enable-dependency-tracking Do not reject slow dependency extractors])
636 if test "x$enable_dependency_tracking" != xno; then
637 am_depcomp="$ac_aux_dir/depcomp"
638 AMDEPBACKSLASH='\'
639 fi
640 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
641 AC_SUBST([AMDEPBACKSLASH])
642 ])
643
644 # Generate code to set up dependency tracking. -*- Autoconf -*-
645
646 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
647
648 # This program is free software; you can redistribute it and/or modify
649 # it under the terms of the GNU General Public License as published by
650 # the Free Software Foundation; either version 2, or (at your option)
651 # any later version.
652
653 # This program is distributed in the hope that it will be useful,
654 # but WITHOUT ANY WARRANTY; without even the implied warranty of
655 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
656 # GNU General Public License for more details.
657
658 # You should have received a copy of the GNU General Public License
659 # along with this program; if not, write to the Free Software
660 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
661 # 02111-1307, USA.
662
663 #serial 2
664
665 # _AM_OUTPUT_DEPENDENCY_COMMANDS
666 # ------------------------------
667 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
668 [for mf in $CONFIG_FILES; do
669 # Strip MF so we end up with the name of the file.
670 mf=`echo "$mf" | sed -e 's/:.*$//'`
671 # Check whether this is an Automake generated Makefile or not.
672 # We used to match only the files named `Makefile.in', but
673 # some people rename them; so instead we look at the file content.
674 # Grep'ing the first line is not enough: some people post-process
675 # each Makefile.in and add a new line on top of each file to say so.
676 # So let's grep whole file.
677 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
678 dirpart=`AS_DIRNAME("$mf")`
679 else
680 continue
681 fi
682 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
683 # Extract the definition of DEP_FILES from the Makefile without
684 # running `make'.
685 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
686 test -z "$DEPDIR" && continue
687 # When using ansi2knr, U may be empty or an underscore; expand it
688 U=`sed -n -e '/^U = / s///p' < "$mf"`
689 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
690 # We invoke sed twice because it is the simplest approach to
691 # changing $(DEPDIR) to its actual value in the expansion.
692 for file in `sed -n -e '
693 /^DEP_FILES = .*\\\\$/ {
694 s/^DEP_FILES = //
695 :loop
696 s/\\\\$//
697 p
698 n
699 /\\\\$/ b loop
700 p
701 }
702 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
703 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
704 # Make sure the directory exists.
705 test -f "$dirpart/$file" && continue
706 fdir=`AS_DIRNAME(["$file"])`
707 AS_MKDIR_P([$dirpart/$fdir])
708 # echo "creating $dirpart/$file"
709 echo '# dummy' > "$dirpart/$file"
710 done
711 done
712 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
713
714
715 # AM_OUTPUT_DEPENDENCY_COMMANDS
716 # -----------------------------
717 # This macro should only be invoked once -- use via AC_REQUIRE.
718 #
719 # This code is only required when automatic dependency tracking
720 # is enabled. FIXME. This creates each `.P' file that we will
721 # need in order to bootstrap the dependency handling code.
722 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
723 [AC_CONFIG_COMMANDS([depfiles],
724 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
725 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
726 ])
727
728 # Check to see how 'make' treats includes. -*- Autoconf -*-
729
730 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
731
732 # This program is free software; you can redistribute it and/or modify
733 # it under the terms of the GNU General Public License as published by
734 # the Free Software Foundation; either version 2, or (at your option)
735 # any later version.
736
737 # This program is distributed in the hope that it will be useful,
738 # but WITHOUT ANY WARRANTY; without even the implied warranty of
739 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
740 # GNU General Public License for more details.
741
742 # You should have received a copy of the GNU General Public License
743 # along with this program; if not, write to the Free Software
744 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
745 # 02111-1307, USA.
746
747 # serial 2
748
749 # AM_MAKE_INCLUDE()
750 # -----------------
751 # Check to see how make treats includes.
752 AC_DEFUN([AM_MAKE_INCLUDE],
753 [am_make=${MAKE-make}
754 cat > confinc << 'END'
755 am__doit:
756 @echo done
757 .PHONY: am__doit
758 END
759 # If we don't find an include directive, just comment out the code.
760 AC_MSG_CHECKING([for style of include used by $am_make])
761 am__include="#"
762 am__quote=
763 _am_result=none
764 # First try GNU make style include.
765 echo "include confinc" > confmf
766 # We grep out `Entering directory' and `Leaving directory'
767 # messages which can occur if `w' ends up in MAKEFLAGS.
768 # In particular we don't look at `^make:' because GNU make might
769 # be invoked under some other name (usually "gmake"), in which
770 # case it prints its new name instead of `make'.
771 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
772 am__include=include
773 am__quote=
774 _am_result=GNU
775 fi
776 # Now try BSD make style include.
777 if test "$am__include" = "#"; then
778 echo '.include "confinc"' > confmf
779 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
780 am__include=.include
781 am__quote="\""
782 _am_result=BSD
783 fi
784 fi
785 AC_SUBST([am__include])
786 AC_SUBST([am__quote])
787 AC_MSG_RESULT([$_am_result])
788 rm -f confinc confmf
789 ])
790
791 # AM_CONDITIONAL -*- Autoconf -*-
792
793 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
794
795 # This program is free software; you can redistribute it and/or modify
796 # it under the terms of the GNU General Public License as published by
797 # the Free Software Foundation; either version 2, or (at your option)
798 # any later version.
799
800 # This program is distributed in the hope that it will be useful,
801 # but WITHOUT ANY WARRANTY; without even the implied warranty of
802 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
803 # GNU General Public License for more details.
804
805 # You should have received a copy of the GNU General Public License
806 # along with this program; if not, write to the Free Software
807 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
808 # 02111-1307, USA.
809
810 # serial 5
811
812 AC_PREREQ(2.52)
813
814 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
815 # -------------------------------------
816 # Define a conditional.
817 AC_DEFUN([AM_CONDITIONAL],
818 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
819 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
820 AC_SUBST([$1_TRUE])
821 AC_SUBST([$1_FALSE])
822 if $2; then
823 $1_TRUE=
824 $1_FALSE='#'
825 else
826 $1_TRUE='#'
827 $1_FALSE=
828 fi
829 AC_CONFIG_COMMANDS_PRE(
830 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
831 AC_MSG_ERROR([conditional "$1" was never defined.
832 Usually this means the macro was only invoked conditionally.])
833 fi])])
834
835 # Add --enable-maintainer-mode option to configure.
836 # From Jim Meyering
837
838 # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
839
840 # This program is free software; you can redistribute it and/or modify
841 # it under the terms of the GNU General Public License as published by
842 # the Free Software Foundation; either version 2, or (at your option)
843 # any later version.
844
845 # This program is distributed in the hope that it will be useful,
846 # but WITHOUT ANY WARRANTY; without even the implied warranty of
847 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
848 # GNU General Public License for more details.
849
850 # You should have received a copy of the GNU General Public License
851 # along with this program; if not, write to the Free Software
852 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
853 # 02111-1307, USA.
854
855 # serial 2
856
857 AC_DEFUN([AM_MAINTAINER_MODE],
858 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
859 dnl maintainer-mode is disabled by default
860 AC_ARG_ENABLE(maintainer-mode,
861 [ --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer],
863 USE_MAINTAINER_MODE=$enableval,
864 USE_MAINTAINER_MODE=no)
865 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
866 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
867 MAINT=$MAINTAINER_MODE_TRUE
868 AC_SUBST(MAINT)dnl
869 ]
870 )
871
872 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
873
874 # isc-posix.m4 serial 2 (gettext-0.11.2)
875 dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
876 dnl This file is free software; the Free Software Foundation
877 dnl gives unlimited permission to copy and/or distribute it,
878 dnl with or without modifications, as long as this notice is preserved.
879
880 # This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
881
882 # This test replaces the one in autoconf.
883 # Currently this macro should have the same name as the autoconf macro
884 # because gettext's gettext.m4 (distributed in the automake package)
885 # still uses it. Otherwise, the use in gettext.m4 makes autoheader
886 # give these diagnostics:
887 # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
888 # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
889
890 undefine([AC_ISC_POSIX])
891
892 AC_DEFUN([AC_ISC_POSIX],
893 [
894 dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
895 AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
896 ]
897 )
898
899 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
900
901 # serial 47 AC_PROG_LIBTOOL
902 # Debian $Rev: 214 $
903
904
905 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
906 # -----------------------------------------------------------
907 # If this macro is not defined by Autoconf, define it here.
908 m4_ifdef([AC_PROVIDE_IFELSE],
909 [],
910 [m4_define([AC_PROVIDE_IFELSE],
911 [m4_ifdef([AC_PROVIDE_$1],
912 [$2], [$3])])])
913
914
915 # AC_PROG_LIBTOOL
916 # ---------------
917 AC_DEFUN([AC_PROG_LIBTOOL],
918 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
919 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
920 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
921 AC_PROVIDE_IFELSE([AC_PROG_CXX],
922 [AC_LIBTOOL_CXX],
923 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
924 ])])
925 dnl And a similar setup for Fortran 77 support
926 AC_PROVIDE_IFELSE([AC_PROG_F77],
927 [AC_LIBTOOL_F77],
928 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
929 ])])
930
931 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
932 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
933 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
934 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
935 [AC_LIBTOOL_GCJ],
936 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
937 [AC_LIBTOOL_GCJ],
938 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
939 [AC_LIBTOOL_GCJ],
940 [ifdef([AC_PROG_GCJ],
941 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
942 ifdef([A][M_PROG_GCJ],
943 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
944 ifdef([LT_AC_PROG_GCJ],
945 [define([LT_AC_PROG_GCJ],
946 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
947 ])])# AC_PROG_LIBTOOL
948
949
950 # _AC_PROG_LIBTOOL
951 # ----------------
952 AC_DEFUN([_AC_PROG_LIBTOOL],
953 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
954 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
955 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
956 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
957
958 # This can be used to rebuild libtool when needed
959 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
960
961 # Always use our own libtool.
962 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
963 AC_SUBST(LIBTOOL)dnl
964
965 # Prevent multiple expansion
966 define([AC_PROG_LIBTOOL], [])
967 ])# _AC_PROG_LIBTOOL
968
969
970 # AC_LIBTOOL_SETUP
971 # ----------------
972 AC_DEFUN([AC_LIBTOOL_SETUP],
973 [AC_PREREQ(2.50)dnl
974 AC_REQUIRE([AC_ENABLE_SHARED])dnl
975 AC_REQUIRE([AC_ENABLE_STATIC])dnl
976 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
977 AC_REQUIRE([AC_CANONICAL_HOST])dnl
978 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
979 AC_REQUIRE([AC_PROG_CC])dnl
980 AC_REQUIRE([AC_PROG_LD])dnl
981 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
982 AC_REQUIRE([AC_PROG_NM])dnl
983
984 AC_REQUIRE([AC_PROG_LN_S])dnl
985 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
986 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
987 AC_REQUIRE([AC_OBJEXT])dnl
988 AC_REQUIRE([AC_EXEEXT])dnl
989 dnl
990
991 AC_LIBTOOL_SYS_MAX_CMD_LEN
992 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
993 AC_LIBTOOL_OBJDIR
994
995 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
996 _LT_AC_PROG_ECHO_BACKSLASH
997
998 case $host_os in
999 aix3*)
1000 # AIX sometimes has problems with the GCC collect2 program. For some
1001 # reason, if we set the COLLECT_NAMES environment variable, the problems
1002 # vanish in a puff of smoke.
1003 if test "X${COLLECT_NAMES+set}" != Xset; then
1004 COLLECT_NAMES=
1005 export COLLECT_NAMES
1006 fi
1007 ;;
1008 esac
1009
1010 # Sed substitution that helps us do robust quoting. It backslashifies
1011 # metacharacters that are still active within double-quoted strings.
1012 Xsed='sed -e s/^X//'
1013 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1014
1015 # Same as above, but do not quote variable references.
1016 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1017
1018 # Sed substitution to delay expansion of an escaped shell variable in a
1019 # double_quote_subst'ed string.
1020 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1021
1022 # Sed substitution to avoid accidental globbing in evaled expressions
1023 no_glob_subst='s/\*/\\\*/g'
1024
1025 # Constants:
1026 rm="rm -f"
1027
1028 # Global variables:
1029 default_ofile=libtool
1030 can_build_shared=yes
1031
1032 # All known linkers require a `.a' archive for static linking (except M$VC,
1033 # which needs '.lib').
1034 libext=a
1035 ltmain="$ac_aux_dir/ltmain.sh"
1036 ofile="$default_ofile"
1037 with_gnu_ld="$lt_cv_prog_gnu_ld"
1038
1039 AC_CHECK_TOOL(AR, ar, false)
1040 AC_CHECK_TOOL(RANLIB, ranlib, :)
1041 AC_CHECK_TOOL(STRIP, strip, :)
1042
1043 old_CC="$CC"
1044 old_CFLAGS="$CFLAGS"
1045
1046 # Set sane defaults for various variables
1047 test -z "$AR" && AR=ar
1048 test -z "$AR_FLAGS" && AR_FLAGS=cru
1049 test -z "$AS" && AS=as
1050 test -z "$CC" && CC=cc
1051 test -z "$LTCC" && LTCC=$CC
1052 test -z "$DLLTOOL" && DLLTOOL=dlltool
1053 test -z "$LD" && LD=ld
1054 test -z "$LN_S" && LN_S="ln -s"
1055 test -z "$MAGIC_CMD" && MAGIC_CMD=file
1056 test -z "$NM" && NM=nm
1057 test -z "$SED" && SED=sed
1058 test -z "$OBJDUMP" && OBJDUMP=objdump
1059 test -z "$RANLIB" && RANLIB=:
1060 test -z "$STRIP" && STRIP=:
1061 test -z "$ac_objext" && ac_objext=o
1062
1063 # Determine commands to create old-style static archives.
1064 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1065 old_postinstall_cmds='chmod 644 $oldlib'
1066 old_postuninstall_cmds=
1067
1068 if test -n "$RANLIB"; then
1069 case $host_os in
1070 openbsd*)
1071 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1072 ;;
1073 *)
1074 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1075 ;;
1076 esac
1077 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1078 fi
1079
1080 # Only perform the check for file, if the check method requires it
1081 case $deplibs_check_method in
1082 file_magic*)
1083 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1084 AC_PATH_MAGIC
1085 fi
1086 ;;
1087 esac
1088
1089 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1090 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1091 enable_win32_dll=yes, enable_win32_dll=no)
1092
1093 AC_ARG_ENABLE([libtool-lock],
1094 [AC_HELP_STRING([--disable-libtool-lock],
1095 [avoid locking (might break parallel builds)])])
1096 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1097
1098 AC_ARG_WITH([pic],
1099 [AC_HELP_STRING([--with-pic],
1100 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1101 [pic_mode="$withval"],
1102 [pic_mode=default])
1103 test -z "$pic_mode" && pic_mode=default
1104
1105 # Use C for the default configuration in the libtool script
1106 tagname=
1107 AC_LIBTOOL_LANG_C_CONFIG
1108 _LT_AC_TAGCONFIG
1109 ])# AC_LIBTOOL_SETUP
1110
1111
1112 # _LT_AC_SYS_COMPILER
1113 # -------------------
1114 AC_DEFUN([_LT_AC_SYS_COMPILER],
1115 [AC_REQUIRE([AC_PROG_CC])dnl
1116
1117 # If no C compiler was specified, use CC.
1118 LTCC=${LTCC-"$CC"}
1119
1120 # Allow CC to be a program name with arguments.
1121 compiler=$CC
1122 ])# _LT_AC_SYS_COMPILER
1123
1124
1125 # _LT_AC_SYS_LIBPATH_AIX
1126 # ----------------------
1127 # Links a minimal program and checks the executable
1128 # for the system default hardcoded library path. In most cases,
1129 # this is /usr/lib:/lib, but when the MPI compilers are used
1130 # the location of the communication and MPI libs are included too.
1131 # If we don't find anything, use the default library path according
1132 # to the aix ld manual.
1133 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1134 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1135 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1136 }'`
1137 # Check for a 64-bit object if we didn't find anything.
1138 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1139 }'`; fi],[])
1140 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1141 ])# _LT_AC_SYS_LIBPATH_AIX
1142
1143
1144 # _LT_AC_SHELL_INIT(ARG)
1145 # ----------------------
1146 AC_DEFUN([_LT_AC_SHELL_INIT],
1147 [ifdef([AC_DIVERSION_NOTICE],
1148 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1149 [AC_DIVERT_PUSH(NOTICE)])
1150 $1
1151 AC_DIVERT_POP
1152 ])# _LT_AC_SHELL_INIT
1153
1154
1155 # _LT_AC_PROG_ECHO_BACKSLASH
1156 # --------------------------
1157 # Add some code to the start of the generated configure script which
1158 # will find an echo command which doesn't interpret backslashes.
1159 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1160 [_LT_AC_SHELL_INIT([
1161 # Check that we are running under the correct shell.
1162 SHELL=${CONFIG_SHELL-/bin/sh}
1163
1164 case X$ECHO in
1165 X*--fallback-echo)
1166 # Remove one level of quotation (which was required for Make).
1167 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1168 ;;
1169 esac
1170
1171 echo=${ECHO-echo}
1172 if test "X[$]1" = X--no-reexec; then
1173 # Discard the --no-reexec flag, and continue.
1174 shift
1175 elif test "X[$]1" = X--fallback-echo; then
1176 # Avoid inline document here, it may be left over
1177 :
1178 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1179 # Yippee, $echo works!
1180 :
1181 else
1182 # Restart under the correct shell.
1183 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1184 fi
1185
1186 if test "X[$]1" = X--fallback-echo; then
1187 # used as fallback echo
1188 shift
1189 cat <<EOF
1190 [$]*
1191 EOF
1192 exit 0
1193 fi
1194
1195 # The HP-UX ksh and POSIX shell print the target directory to stdout
1196 # if CDPATH is set.
1197 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
1198
1199 if test -z "$ECHO"; then
1200 if test "X${echo_test_string+set}" != Xset; then
1201 # find a string as large as possible, as long as the shell can cope with it
1202 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1203 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1204 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1205 echo_test_string="`eval $cmd`" &&
1206 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1207 then
1208 break
1209 fi
1210 done
1211 fi
1212
1213 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1214 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1215 test "X$echo_testing_string" = "X$echo_test_string"; then
1216 :
1217 else
1218 # The Solaris, AIX, and Digital Unix default echo programs unquote
1219 # backslashes. This makes it impossible to quote backslashes using
1220 # echo "$something" | sed 's/\\/\\\\/g'
1221 #
1222 # So, first we look for a working echo in the user's PATH.
1223
1224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1225 for dir in $PATH /usr/ucb; do
1226 IFS="$lt_save_ifs"
1227 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1228 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1229 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1230 test "X$echo_testing_string" = "X$echo_test_string"; then
1231 echo="$dir/echo"
1232 break
1233 fi
1234 done
1235 IFS="$lt_save_ifs"
1236
1237 if test "X$echo" = Xecho; then
1238 # We didn't find a better echo, so look for alternatives.
1239 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1240 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1241 test "X$echo_testing_string" = "X$echo_test_string"; then
1242 # This shell has a builtin print -r that does the trick.
1243 echo='print -r'
1244 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1245 test "X$CONFIG_SHELL" != X/bin/ksh; then
1246 # If we have ksh, try running configure again with it.
1247 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1248 export ORIGINAL_CONFIG_SHELL
1249 CONFIG_SHELL=/bin/ksh
1250 export CONFIG_SHELL
1251 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1252 else
1253 # Try using printf.
1254 echo='printf %s\n'
1255 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1256 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1257 test "X$echo_testing_string" = "X$echo_test_string"; then
1258 # Cool, printf works
1259 :
1260 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1261 test "X$echo_testing_string" = 'X\t' &&
1262 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1263 test "X$echo_testing_string" = "X$echo_test_string"; then
1264 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1265 export CONFIG_SHELL
1266 SHELL="$CONFIG_SHELL"
1267 export SHELL
1268 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1269 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1270 test "X$echo_testing_string" = 'X\t' &&
1271 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1272 test "X$echo_testing_string" = "X$echo_test_string"; then
1273 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1274 else
1275 # maybe with a smaller string...
1276 prev=:
1277
1278 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1279 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1280 then
1281 break
1282 fi
1283 prev="$cmd"
1284 done
1285
1286 if test "$prev" != 'sed 50q "[$]0"'; then
1287 echo_test_string=`eval $prev`
1288 export echo_test_string
1289 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1290 else
1291 # Oops. We lost completely, so just stick with echo.
1292 echo=echo
1293 fi
1294 fi
1295 fi
1296 fi
1297 fi
1298 fi
1299
1300 # Copy echo and quote the copy suitably for passing to libtool from
1301 # the Makefile, instead of quoting the original, which is used later.
1302 ECHO=$echo
1303 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1304 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1305 fi
1306
1307 AC_SUBST(ECHO)
1308 ])])# _LT_AC_PROG_ECHO_BACKSLASH
1309
1310
1311 # _LT_AC_LOCK
1312 # -----------
1313 AC_DEFUN([_LT_AC_LOCK],
1314 [AC_ARG_ENABLE([libtool-lock],
1315 [AC_HELP_STRING([--disable-libtool-lock],
1316 [avoid locking (might break parallel builds)])])
1317 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1318
1319 # Some flags need to be propagated to the compiler or linker for good
1320 # libtool support.
1321 case $host in
1322 ia64-*-hpux*)
1323 # Find out which ABI we are using.
1324 echo 'int i;' > conftest.$ac_ext
1325 if AC_TRY_EVAL(ac_compile); then
1326 case `/usr/bin/file conftest.$ac_objext` in
1327 *ELF-32*)
1328 HPUX_IA64_MODE="32"
1329 ;;
1330 *ELF-64*)
1331 HPUX_IA64_MODE="64"
1332 ;;
1333 esac
1334 fi
1335 rm -rf conftest*
1336 ;;
1337 *-*-irix6*)
1338 # Find out which ABI we are using.
1339 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1340 if AC_TRY_EVAL(ac_compile); then
1341 if test "$lt_cv_prog_gnu_ld" = yes; then
1342 case `/usr/bin/file conftest.$ac_objext` in
1343 *32-bit*)
1344 LD="${LD-ld} -melf32bsmip"
1345 ;;
1346 *N32*)
1347 LD="${LD-ld} -melf32bmipn32"
1348 ;;
1349 *64-bit*)
1350 LD="${LD-ld} -melf64bmip"
1351 ;;
1352 esac
1353 else
1354 case `/usr/bin/file conftest.$ac_objext` in
1355 *32-bit*)
1356 LD="${LD-ld} -32"
1357 ;;
1358 *N32*)
1359 LD="${LD-ld} -n32"
1360 ;;
1361 *64-bit*)
1362 LD="${LD-ld} -64"
1363 ;;
1364 esac
1365 fi
1366 fi
1367 rm -rf conftest*
1368 ;;
1369
1370 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1371 # Find out which ABI we are using.
1372 echo 'int i;' > conftest.$ac_ext
1373 if AC_TRY_EVAL(ac_compile); then
1374 case "`/usr/bin/file conftest.o`" in
1375 *32-bit*)
1376 case $host in
1377 x86_64-*linux*)
1378 LD="${LD-ld} -m elf_i386"
1379 ;;
1380 ppc64-*linux*|powerpc64-*linux*)
1381 LD="${LD-ld} -m elf32ppclinux"
1382 ;;
1383 s390x-*linux*)
1384 LD="${LD-ld} -m elf_s390"
1385 ;;
1386 sparc64-*linux*)
1387 LD="${LD-ld} -m elf32_sparc"
1388 ;;
1389 esac
1390 ;;
1391 *64-bit*)
1392 case $host in
1393 x86_64-*linux*)
1394 LD="${LD-ld} -m elf_x86_64"
1395 ;;
1396 ppc*-*linux*|powerpc*-*linux*)
1397 LD="${LD-ld} -m elf64ppc"
1398 ;;
1399 s390*-*linux*)
1400 LD="${LD-ld} -m elf64_s390"
1401 ;;
1402 sparc*-*linux*)
1403 LD="${LD-ld} -m elf64_sparc"
1404 ;;
1405 esac
1406 ;;
1407 esac
1408 fi
1409 rm -rf conftest*
1410 ;;
1411
1412 *-*-sco3.2v5*)
1413 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1414 SAVE_CFLAGS="$CFLAGS"
1415 CFLAGS="$CFLAGS -belf"
1416 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1417 [AC_LANG_PUSH(C)
1418 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1419 AC_LANG_POP])
1420 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1422 CFLAGS="$SAVE_CFLAGS"
1423 fi
1424 ;;
1425 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1426 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1427 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1428 AC_CHECK_TOOL(AS, as, false)
1429 AC_CHECK_TOOL(OBJDUMP, objdump, false)
1430 ;;
1431 ])
1432 esac
1433
1434 need_locks="$enable_libtool_lock"
1435
1436 ])# _LT_AC_LOCK
1437
1438
1439 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1440 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1441 # ----------------------------------------------------------------
1442 # Check whether the given compiler option works
1443 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1444 [AC_REQUIRE([LT_AC_PROG_SED])
1445 AC_CACHE_CHECK([$1], [$2],
1446 [$2=no
1447 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1449 lt_compiler_flag="$3"
1450 # Insert the option either (1) after the last *FLAGS variable, or
1451 # (2) before a word containing "conftest.", or (3) at the end.
1452 # Note that $ac_compile itself does not contain backslashes and begins
1453 # with a dollar sign (not a hyphen), so the echo should work correctly.
1454 # The option is referenced via a variable to avoid confusing sed.
1455 lt_compile=`echo "$ac_compile" | $SED \
1456 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1457 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1458 -e 's:$: $lt_compiler_flag:'`
1459 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1460 (eval "$lt_compile" 2>conftest.err)
1461 ac_status=$?
1462 cat conftest.err >&AS_MESSAGE_LOG_FD
1463 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1464 if (exit $ac_status) && test -s "$ac_outfile"; then
1465 # The compiler can only warn and ignore the option if not recognized
1466 # So say no if there are warnings
1467 if test ! -s conftest.err; then
1468 $2=yes
1469 fi
1470 fi
1471 $rm conftest*
1472 ])
1473
1474 if test x"[$]$2" = xyes; then
1475 ifelse([$5], , :, [$5])
1476 else
1477 ifelse([$6], , :, [$6])
1478 fi
1479 ])# AC_LIBTOOL_COMPILER_OPTION
1480
1481
1482 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1483 # [ACTION-SUCCESS], [ACTION-FAILURE])
1484 # ------------------------------------------------------------
1485 # Check whether the given compiler option works
1486 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1487 [AC_CACHE_CHECK([$1], [$2],
1488 [$2=no
1489 save_LDFLAGS="$LDFLAGS"
1490 LDFLAGS="$LDFLAGS $3"
1491 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1493 # The compiler can only warn and ignore the option if not recognized
1494 # So say no if there are warnings
1495 if test -s conftest.err; then
1496 # Append any errors to the config.log.
1497 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1498 else
1499 $2=yes
1500 fi
1501 fi
1502 $rm conftest*
1503 LDFLAGS="$save_LDFLAGS"
1504 ])
1505
1506 if test x"[$]$2" = xyes; then
1507 ifelse([$4], , :, [$4])
1508 else
1509 ifelse([$5], , :, [$5])
1510 fi
1511 ])# AC_LIBTOOL_LINKER_OPTION
1512
1513
1514 # AC_LIBTOOL_SYS_MAX_CMD_LEN
1515 # --------------------------
1516 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1517 [# find the maximum length of command line arguments
1518 AC_MSG_CHECKING([the maximum length of command line arguments])
1519 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1520 i=0
1521 teststring="ABCD"
1522
1523 case $build_os in
1524 msdosdjgpp*)
1525 # On DJGPP, this test can blow up pretty badly due to problems in libc
1526 # (any single argument exceeding 2000 bytes causes a buffer overrun
1527 # during glob expansion). Even if it were fixed, the result of this
1528 # check would be larger than it should be.
1529 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1530 ;;
1531
1532 gnu*)
1533 # Under GNU Hurd, this test is not required because there is
1534 # no limit to the length of command line arguments.
1535 # Libtool will interpret -1 as no limit whatsoever
1536 lt_cv_sys_max_cmd_len=-1;
1537 ;;
1538
1539 cygwin* | mingw*)
1540 # On Win9x/ME, this test blows up -- it succeeds, but takes
1541 # about 5 minutes as the teststring grows exponentially.
1542 # Worse, since 9x/ME are not pre-emptively multitasking,
1543 # you end up with a "frozen" computer, even though with patience
1544 # the test eventually succeeds (with a max line length of 256k).
1545 # Instead, let's just punt: use the minimum linelength reported by
1546 # all of the supported platforms: 8192 (on NT/2K/XP).
1547 lt_cv_sys_max_cmd_len=8192;
1548 ;;
1549
1550 amigaos*)
1551 # On AmigaOS with pdksh, this test takes hours, literally.
1552 # So we just punt and use a minimum line length of 8192.
1553 lt_cv_sys_max_cmd_len=8192;
1554 ;;
1555
1556 *)
1557 # If test is not a shell built-in, we'll probably end up computing a
1558 # maximum length that is only half of the actual maximum length, but
1559 # we can't tell.
1560 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1561 = "XX$teststring") >/dev/null 2>&1 &&
1562 new_result=`expr "X$teststring" : ".*" 2>&1` &&
1563 lt_cv_sys_max_cmd_len=$new_result &&
1564 test $i != 17 # 1/2 MB should be enough
1565 do
1566 i=`expr $i + 1`
1567 teststring=$teststring$teststring
1568 done
1569 teststring=
1570 # Add a significant safety factor because C++ compilers can tack on massive
1571 # amounts of additional arguments before passing them to the linker.
1572 # It appears as though 1/2 is a usable value.
1573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1574 ;;
1575 esac
1576 ])
1577 if test -n $lt_cv_sys_max_cmd_len ; then
1578 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1579 else
1580 AC_MSG_RESULT(none)
1581 fi
1582 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1583
1584
1585 # _LT_AC_CHECK_DLFCN
1586 # --------------------
1587 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1588 [AC_CHECK_HEADERS(dlfcn.h)dnl
1589 ])# _LT_AC_CHECK_DLFCN
1590
1591
1592 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1593 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1594 # ------------------------------------------------------------------
1595 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1596 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1597 if test "$cross_compiling" = yes; then :
1598 [$4]
1599 else
1600 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1601 lt_status=$lt_dlunknown
1602 cat > conftest.$ac_ext <<EOF
1603 [#line __oline__ "configure"
1604 #include "confdefs.h"
1605
1606 #if HAVE_DLFCN_H
1607 #include <dlfcn.h>
1608 #endif
1609
1610 #include <stdio.h>
1611
1612 #ifdef RTLD_GLOBAL
1613 # define LT_DLGLOBAL RTLD_GLOBAL
1614 #else
1615 # ifdef DL_GLOBAL
1616 # define LT_DLGLOBAL DL_GLOBAL
1617 # else
1618 # define LT_DLGLOBAL 0
1619 # endif
1620 #endif
1621
1622 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1623 find out it does not work in some platform. */
1624 #ifndef LT_DLLAZY_OR_NOW
1625 # ifdef RTLD_LAZY
1626 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1627 # else
1628 # ifdef DL_LAZY
1629 # define LT_DLLAZY_OR_NOW DL_LAZY
1630 # else
1631 # ifdef RTLD_NOW
1632 # define LT_DLLAZY_OR_NOW RTLD_NOW
1633 # else
1634 # ifdef DL_NOW
1635 # define LT_DLLAZY_OR_NOW DL_NOW
1636 # else
1637 # define LT_DLLAZY_OR_NOW 0
1638 # endif
1639 # endif
1640 # endif
1641 # endif
1642 #endif
1643
1644 #ifdef __cplusplus
1645 extern "C" void exit (int);
1646 #endif
1647
1648 void fnord() { int i=42;}
1649 int main ()
1650 {
1651 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1652 int status = $lt_dlunknown;
1653
1654 if (self)
1655 {
1656 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1657 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1658 /* dlclose (self); */
1659 }
1660
1661 exit (status);
1662 }]
1663 EOF
1664 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1665 (./conftest; exit; ) 2>/dev/null
1666 lt_status=$?
1667 case x$lt_status in
1668 x$lt_dlno_uscore) $1 ;;
1669 x$lt_dlneed_uscore) $2 ;;
1670 x$lt_unknown|x*) $3 ;;
1671 esac
1672 else :
1673 # compilation failed
1674 $3
1675 fi
1676 fi
1677 rm -fr conftest*
1678 ])# _LT_AC_TRY_DLOPEN_SELF
1679
1680
1681 # AC_LIBTOOL_DLOPEN_SELF
1682 # -------------------
1683 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1684 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1685 if test "x$enable_dlopen" != xyes; then
1686 enable_dlopen=unknown
1687 enable_dlopen_self=unknown
1688 enable_dlopen_self_static=unknown
1689 else
1690 lt_cv_dlopen=no
1691 lt_cv_dlopen_libs=
1692
1693 case $host_os in
1694 beos*)
1695 lt_cv_dlopen="load_add_on"
1696 lt_cv_dlopen_libs=
1697 lt_cv_dlopen_self=yes
1698 ;;
1699
1700 mingw* | pw32*)
1701 lt_cv_dlopen="LoadLibrary"
1702 lt_cv_dlopen_libs=
1703 ;;
1704
1705 cygwin*)
1706 lt_cv_dlopen="dlopen"
1707 lt_cv_dlopen_libs=
1708 ;;
1709
1710 darwin*)
1711 # if libdl is installed we need to link against it
1712 AC_CHECK_LIB([dl], [dlopen],
1713 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1714 lt_cv_dlopen="dyld"
1715 lt_cv_dlopen_libs=
1716 lt_cv_dlopen_self=yes
1717 ])
1718 ;;
1719
1720 *)
1721 AC_CHECK_FUNC([shl_load],
1722 [lt_cv_dlopen="shl_load"],
1723 [AC_CHECK_LIB([dld], [shl_load],
1724 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1725 [AC_CHECK_FUNC([dlopen],
1726 [lt_cv_dlopen="dlopen"],
1727 [AC_CHECK_LIB([dl], [dlopen],
1728 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1729 [AC_CHECK_LIB([svld], [dlopen],
1730 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1731 [AC_CHECK_LIB([dld], [dld_link],
1732 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1733 ])
1734 ])
1735 ])
1736 ])
1737 ])
1738 ;;
1739 esac
1740
1741 if test "x$lt_cv_dlopen" != xno; then
1742 enable_dlopen=yes
1743 else
1744 enable_dlopen=no
1745 fi
1746
1747 case $lt_cv_dlopen in
1748 dlopen)
1749 save_CPPFLAGS="$CPPFLAGS"
1750 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1751
1752 save_LDFLAGS="$LDFLAGS"
1753 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1754
1755 save_LIBS="$LIBS"
1756 LIBS="$lt_cv_dlopen_libs $LIBS"
1757
1758 AC_CACHE_CHECK([whether a program can dlopen itself],
1759 lt_cv_dlopen_self, [dnl
1760 _LT_AC_TRY_DLOPEN_SELF(
1761 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1762 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1763 ])
1764
1765 if test "x$lt_cv_dlopen_self" = xyes; then
1766 LDFLAGS="$LDFLAGS $link_static_flag"
1767 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1768 lt_cv_dlopen_self_static, [dnl
1769 _LT_AC_TRY_DLOPEN_SELF(
1770 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1771 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1772 ])
1773 fi
1774
1775 CPPFLAGS="$save_CPPFLAGS"
1776 LDFLAGS="$save_LDFLAGS"
1777 LIBS="$save_LIBS"
1778 ;;
1779 esac
1780
1781 case $lt_cv_dlopen_self in
1782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1783 *) enable_dlopen_self=unknown ;;
1784 esac
1785
1786 case $lt_cv_dlopen_self_static in
1787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1788 *) enable_dlopen_self_static=unknown ;;
1789 esac
1790 fi
1791 ])# AC_LIBTOOL_DLOPEN_SELF
1792
1793
1794 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1795 # ---------------------------------
1796 # Check to see if options -c and -o are simultaneously supported by compiler
1797 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1798 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1799 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1800 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1801 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1802 $rm -r conftest 2>/dev/null
1803 mkdir conftest
1804 cd conftest
1805 mkdir out
1806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1807
1808 lt_compiler_flag="-o out/conftest2.$ac_objext"
1809 # Insert the option either (1) after the last *FLAGS variable, or
1810 # (2) before a word containing "conftest.", or (3) at the end.
1811 # Note that $ac_compile itself does not contain backslashes and begins
1812 # with a dollar sign (not a hyphen), so the echo should work correctly.
1813 lt_compile=`echo "$ac_compile" | $SED \
1814 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1815 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1816 -e 's:$: $lt_compiler_flag:'`
1817 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1818 (eval "$lt_compile" 2>out/conftest.err)
1819 ac_status=$?
1820 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1821 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1823 then
1824 # The compiler can only warn and ignore the option if not recognized
1825 # So say no if there are warnings
1826 if test ! -s out/conftest.err; then
1827 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1828 fi
1829 fi
1830 chmod u+w .
1831 $rm conftest*
1832 # SGI C++ compiler will create directory out/ii_files/ for
1833 # template instantiation
1834 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1835 $rm out/* && rmdir out
1836 cd ..
1837 rmdir conftest
1838 $rm conftest*
1839 ])
1840 ])# AC_LIBTOOL_PROG_CC_C_O
1841
1842
1843 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1844 # -----------------------------------------
1845 # Check to see if we can do hard links to lock some files if needed
1846 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1847 [AC_REQUIRE([_LT_AC_LOCK])dnl
1848
1849 hard_links="nottested"
1850 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1851 # do not overwrite the value of need_locks provided by the user
1852 AC_MSG_CHECKING([if we can lock with hard links])
1853 hard_links=yes
1854 $rm conftest*
1855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1856 touch conftest.a
1857 ln conftest.a conftest.b 2>&5 || hard_links=no
1858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1859 AC_MSG_RESULT([$hard_links])
1860 if test "$hard_links" = no; then
1861 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1862 need_locks=warn
1863 fi
1864 else
1865 need_locks=no
1866 fi
1867 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1868
1869
1870 # AC_LIBTOOL_OBJDIR
1871 # -----------------
1872 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1873 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1874 [rm -f .libs 2>/dev/null
1875 mkdir .libs 2>/dev/null
1876 if test -d .libs; then
1877 lt_cv_objdir=.libs
1878 else
1879 # MS-DOS does not allow filenames that begin with a dot.
1880 lt_cv_objdir=_libs
1881 fi
1882 rmdir .libs 2>/dev/null])
1883 objdir=$lt_cv_objdir
1884 ])# AC_LIBTOOL_OBJDIR
1885
1886
1887 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1888 # ----------------------------------------------
1889 # Check hardcoding attributes.
1890 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1891 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1892 _LT_AC_TAGVAR(hardcode_action, $1)=
1893 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1894 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1895 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1896
1897 # We can hardcode non-existant directories.
1898 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1900 # have to relink, otherwise we might link with an installed library
1901 # when we should be linking with a yet-to-be-installed one
1902 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1903 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1904 # Linking always hardcodes the temporary library directory.
1905 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1906 else
1907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1908 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1909 fi
1910 else
1911 # We cannot hardcode anything, or else we can only hardcode existing
1912 # directories.
1913 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1914 fi
1915 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1916
1917 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1918 # Fast installation is not supported
1919 enable_fast_install=no
1920 elif test "$shlibpath_overrides_runpath" = yes ||
1921 test "$enable_shared" = no; then
1922 # Fast installation is not necessary
1923 enable_fast_install=needless
1924 fi
1925 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1926
1927
1928 # AC_LIBTOOL_SYS_LIB_STRIP
1929 # ------------------------
1930 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1931 [striplib=
1932 old_striplib=
1933 AC_MSG_CHECKING([whether stripping libraries is possible])
1934 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1935 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1936 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1937 AC_MSG_RESULT([yes])
1938 else
1939 # FIXME - insert some real tests, host_os isn't really good enough
1940 case $host_os in
1941 darwin*)
1942 if test -n "$STRIP" ; then
1943 striplib="$STRIP -x"
1944 AC_MSG_RESULT([yes])
1945 else
1946 AC_MSG_RESULT([no])
1947 fi
1948 ;;
1949 *)
1950 AC_MSG_RESULT([no])
1951 ;;
1952 esac
1953 fi
1954 ])# AC_LIBTOOL_SYS_LIB_STRIP
1955
1956
1957 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1958 # -----------------------------
1959 # PORTME Fill in your ld.so characteristics
1960 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1961 [AC_MSG_CHECKING([dynamic linker characteristics])
1962 library_names_spec=
1963 libname_spec='lib$name'
1964 soname_spec=
1965 shrext_cmds=".so"
1966 postinstall_cmds=
1967 postuninstall_cmds=
1968 finish_cmds=
1969 finish_eval=
1970 shlibpath_var=
1971 shlibpath_overrides_runpath=unknown
1972 version_type=none
1973 dynamic_linker="$host_os ld.so"
1974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1975 if test "$GCC" = yes; then
1976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1977 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1978 # if the path contains ";" then we assume it to be the separator
1979 # otherwise default to the standard path separator (i.e. ":") - it is
1980 # assumed that no part of a normal pathname contains ";" but that should
1981 # okay in the real world where ";" in dirpaths is itself problematic.
1982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1983 else
1984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1985 fi
1986 else
1987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1988 fi
1989 need_lib_prefix=unknown
1990 hardcode_into_libs=no
1991
1992 # when you set need_version to no, make sure it does not cause -set_version
1993 # flags to be left without arguments
1994 need_version=unknown
1995
1996 case $host_os in
1997 aix3*)
1998 version_type=linux
1999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2000 shlibpath_var=LIBPATH
2001
2002 # AIX 3 has no versioning support, so we append a major version to the name.
2003 soname_spec='${libname}${release}${shared_ext}$major'
2004 ;;
2005
2006 aix4* | aix5*)
2007 version_type=linux
2008 need_lib_prefix=no
2009 need_version=no
2010 hardcode_into_libs=yes
2011 if test "$host_cpu" = ia64; then
2012 # AIX 5 supports IA64
2013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2014 shlibpath_var=LD_LIBRARY_PATH
2015 else
2016 # With GCC up to 2.95.x, collect2 would create an import file
2017 # for dependence libraries. The import file would start with
2018 # the line `#! .'. This would cause the generated library to
2019 # depend on `.', always an invalid library. This was fixed in
2020 # development snapshots of GCC prior to 3.0.
2021 case $host_os in
2022 aix4 | aix4.[[01]] | aix4.[[01]].*)
2023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2024 echo ' yes '
2025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2026 :
2027 else
2028 can_build_shared=no
2029 fi
2030 ;;
2031 esac
2032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2033 # soname into executable. Probably we can add versioning support to
2034 # collect2, so additional links can be useful in future.
2035 if test "$aix_use_runtimelinking" = yes; then
2036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2037 # instead of lib<name>.a to let people know that these are not
2038 # typical AIX shared libraries.
2039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2040 else
2041 # We preserve .a as extension for shared libraries through AIX4.2
2042 # and later when we are not doing run time linking.
2043 library_names_spec='${libname}${release}.a $libname.a'
2044 soname_spec='${libname}${release}${shared_ext}$major'
2045 fi
2046 shlibpath_var=LIBPATH
2047 fi
2048 ;;
2049
2050 amigaos*)
2051 library_names_spec='$libname.ixlibrary $libname.a'
2052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2053 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2054 ;;
2055
2056 beos*)
2057 library_names_spec='${libname}${shared_ext}'
2058 dynamic_linker="$host_os ld.so"
2059 shlibpath_var=LIBRARY_PATH
2060 ;;
2061
2062 bsdi4*)
2063 version_type=linux
2064 need_version=no
2065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2066 soname_spec='${libname}${release}${shared_ext}$major'
2067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2068 shlibpath_var=LD_LIBRARY_PATH
2069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2071 # the default ld.so.conf also contains /usr/contrib/lib and
2072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2073 # libtool to hard-code these into programs
2074 ;;
2075
2076 cygwin* | mingw* | pw32*)
2077 version_type=windows
2078 shrext_cmds=".dll"
2079 need_version=no
2080 need_lib_prefix=no
2081
2082 case $GCC,$host_os in
2083 yes,cygwin* | yes,mingw* | yes,pw32*)
2084 library_names_spec='$libname.dll.a'
2085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2086 postinstall_cmds='base_file=`basename \${file}`~
2087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2088 dldir=$destdir/`dirname \$dlpath`~
2089 test -d \$dldir || mkdir -p \$dldir~
2090 $install_prog $dir/$dlname \$dldir/$dlname'
2091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2092 dlpath=$dir/\$dldll~
2093 $rm \$dlpath'
2094 shlibpath_overrides_runpath=yes
2095
2096 case $host_os in
2097 cygwin*)
2098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2100 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2101 ;;
2102 mingw*)
2103 # MinGW DLLs use traditional 'lib' prefix
2104 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2106 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2107 # It is most probably a Windows format PATH printed by
2108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2109 # path with ; separators, and with drive letters. We can handle the
2110 # drive letters (cygwin fileutils understands them), so leave them,
2111 # especially as we might pass files found there to a mingw objdump,
2112 # which wouldn't understand a cygwinified path. Ahh.
2113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2114 else
2115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2116 fi
2117 ;;
2118 pw32*)
2119 # pw32 DLLs use 'pw' prefix rather than 'lib'
2120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2121 ;;
2122 esac
2123 ;;
2124
2125 *)
2126 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2127 ;;
2128 esac
2129 dynamic_linker='Win32 ld.exe'
2130 # FIXME: first we should search . and the directory the executable is in
2131 shlibpath_var=PATH
2132 ;;
2133
2134 darwin* | rhapsody*)
2135 dynamic_linker="$host_os dyld"
2136 version_type=darwin
2137 need_lib_prefix=no
2138 need_version=no
2139 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2140 soname_spec='${libname}${release}${major}$shared_ext'
2141 shlibpath_overrides_runpath=yes
2142 shlibpath_var=DYLD_LIBRARY_PATH
2143 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2144 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2145 if test "$GCC" = yes; then
2146 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2147 else
2148 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2149 fi
2150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2151 ;;
2152
2153 dgux*)
2154 version_type=linux
2155 need_lib_prefix=no
2156 need_version=no
2157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2158 soname_spec='${libname}${release}${shared_ext}$major'
2159 shlibpath_var=LD_LIBRARY_PATH
2160 ;;
2161
2162 freebsd1*)
2163 dynamic_linker=no
2164 ;;
2165
2166 kfreebsd*-gnu)
2167 version_type=linux
2168 need_lib_prefix=no
2169 need_version=no
2170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2171 soname_spec='${libname}${release}${shared_ext}$major'
2172 shlibpath_var=LD_LIBRARY_PATH
2173 shlibpath_overrides_runpath=no
2174 hardcode_into_libs=yes
2175 dynamic_linker='GNU ld.so'
2176 ;;
2177
2178 freebsd*)
2179 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2180 version_type=freebsd-$objformat
2181 case $version_type in
2182 freebsd-elf*)
2183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2184 need_version=no
2185 need_lib_prefix=no
2186 ;;
2187 freebsd-*)
2188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2189 need_version=yes
2190 ;;
2191 esac
2192 shlibpath_var=LD_LIBRARY_PATH
2193 case $host_os in
2194 freebsd2*)
2195 shlibpath_overrides_runpath=yes
2196 ;;
2197 freebsd3.[01]* | freebsdelf3.[01]*)
2198 shlibpath_overrides_runpath=yes
2199 hardcode_into_libs=yes
2200 ;;
2201 *) # from 3.2 on
2202 shlibpath_overrides_runpath=no
2203 hardcode_into_libs=yes
2204 ;;
2205 esac
2206 ;;
2207
2208 gnu*)
2209 version_type=linux
2210 need_lib_prefix=no
2211 need_version=no
2212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2213 soname_spec='${libname}${release}${shared_ext}$major'
2214 shlibpath_var=LD_LIBRARY_PATH
2215 hardcode_into_libs=yes
2216 ;;
2217
2218 hpux9* | hpux10* | hpux11*)
2219 # Give a soname corresponding to the major version so that dld.sl refuses to
2220 # link against other versions.
2221 version_type=sunos
2222 need_lib_prefix=no
2223 need_version=no
2224 case "$host_cpu" in
2225 ia64*)
2226 shrext_cmds='.so'
2227 hardcode_into_libs=yes
2228 dynamic_linker="$host_os dld.so"
2229 shlibpath_var=LD_LIBRARY_PATH
2230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2232 soname_spec='${libname}${release}${shared_ext}$major'
2233 if test "X$HPUX_IA64_MODE" = X32; then
2234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2235 else
2236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2237 fi
2238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2239 ;;
2240 hppa*64*)
2241 shrext_cmds='.sl'
2242 hardcode_into_libs=yes
2243 dynamic_linker="$host_os dld.sl"
2244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2247 soname_spec='${libname}${release}${shared_ext}$major'
2248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2250 ;;
2251 *)
2252 shrext_cmds='.sl'
2253 dynamic_linker="$host_os dld.sl"
2254 shlibpath_var=SHLIB_PATH
2255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2257 soname_spec='${libname}${release}${shared_ext}$major'
2258 ;;
2259 esac
2260 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2261 postinstall_cmds='chmod 555 $lib'
2262 ;;
2263
2264 irix5* | irix6* | nonstopux*)
2265 case $host_os in
2266 nonstopux*) version_type=nonstopux ;;
2267 *)
2268 if test "$lt_cv_prog_gnu_ld" = yes; then
2269 version_type=linux
2270 else
2271 version_type=irix
2272 fi ;;
2273 esac
2274 need_lib_prefix=no
2275 need_version=no
2276 soname_spec='${libname}${release}${shared_ext}$major'
2277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2278 case $host_os in
2279 irix5* | nonstopux*)
2280 libsuff= shlibsuff=
2281 ;;
2282 *)
2283 case $LD in # libtool.m4 will add one of these switches to LD
2284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2285 libsuff= shlibsuff= libmagic=32-bit;;
2286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2287 libsuff=32 shlibsuff=N32 libmagic=N32;;
2288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2290 *) libsuff= shlibsuff= libmagic=never-match;;
2291 esac
2292 ;;
2293 esac
2294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2295 shlibpath_overrides_runpath=no
2296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2298 hardcode_into_libs=yes
2299 ;;
2300
2301 # No shared lib support for Linux oldld, aout, or coff.
2302 linux*oldld* | linux*aout* | linux*coff*)
2303 dynamic_linker=no
2304 ;;
2305
2306 # This must be Linux ELF.
2307 linux*)
2308 version_type=linux
2309 need_lib_prefix=no
2310 need_version=no
2311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2312 soname_spec='${libname}${release}${shared_ext}$major'
2313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2314 shlibpath_var=LD_LIBRARY_PATH
2315 shlibpath_overrides_runpath=no
2316 # This implies no fast_install, which is unacceptable.
2317 # Some rework will be needed to allow for fast_install
2318 # before this can be enabled.
2319 hardcode_into_libs=yes
2320
2321 # Append ld.so.conf contents to the search path
2322 if test -f /etc/ld.so.conf; then
2323 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2325 fi
2326
2327 # We used to test for /lib/ld.so.1 and disable shared libraries on
2328 # powerpc, because MkLinux only supported shared libraries with the
2329 # GNU dynamic linker. Since this was broken with cross compilers,
2330 # most powerpc-linux boxes support dynamic linking these days and
2331 # people can always --disable-shared, the test was removed, and we
2332 # assume the GNU/Linux dynamic linker is in use.
2333 dynamic_linker='GNU/Linux ld.so'
2334 ;;
2335
2336 netbsdelf*-gnu)
2337 version_type=linux
2338 need_lib_prefix=no
2339 need_version=no
2340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2341 soname_spec='${libname}${release}${shared_ext}$major'
2342 shlibpath_var=LD_LIBRARY_PATH
2343 shlibpath_overrides_runpath=no
2344 hardcode_into_libs=yes
2345 dynamic_linker='NetBSD ld.elf_so'
2346 ;;
2347
2348 knetbsd*-gnu)
2349 version_type=linux
2350 need_lib_prefix=no
2351 need_version=no
2352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2353 soname_spec='${libname}${release}${shared_ext}$major'
2354 shlibpath_var=LD_LIBRARY_PATH
2355 shlibpath_overrides_runpath=no
2356 hardcode_into_libs=yes
2357 dynamic_linker='GNU ld.so'
2358 ;;
2359
2360 netbsd*)
2361 version_type=sunos
2362 need_lib_prefix=no
2363 need_version=no
2364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2367 dynamic_linker='NetBSD (a.out) ld.so'
2368 else
2369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2370 soname_spec='${libname}${release}${shared_ext}$major'
2371 dynamic_linker='NetBSD ld.elf_so'
2372 fi
2373 shlibpath_var=LD_LIBRARY_PATH
2374 shlibpath_overrides_runpath=yes
2375 hardcode_into_libs=yes
2376 ;;
2377
2378 newsos6)
2379 version_type=linux
2380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2381 shlibpath_var=LD_LIBRARY_PATH
2382 shlibpath_overrides_runpath=yes
2383 ;;
2384
2385 nto-qnx*)
2386 version_type=linux
2387 need_lib_prefix=no
2388 need_version=no
2389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2390 soname_spec='${libname}${release}${shared_ext}$major'
2391 shlibpath_var=LD_LIBRARY_PATH
2392 shlibpath_overrides_runpath=yes
2393 ;;
2394
2395 openbsd*)
2396 version_type=sunos
2397 need_lib_prefix=no
2398 need_version=yes
2399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2401 shlibpath_var=LD_LIBRARY_PATH
2402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2403 case $host_os in
2404 openbsd2.[[89]] | openbsd2.[[89]].*)
2405 shlibpath_overrides_runpath=no
2406 ;;
2407 *)
2408 shlibpath_overrides_runpath=yes
2409 ;;
2410 esac
2411 else
2412 shlibpath_overrides_runpath=yes
2413 fi
2414 ;;
2415
2416 os2*)
2417 libname_spec='$name'
2418 shrext_cmds=".dll"
2419 need_lib_prefix=no
2420 library_names_spec='$libname${shared_ext} $libname.a'
2421 dynamic_linker='OS/2 ld.exe'
2422 shlibpath_var=LIBPATH
2423 ;;
2424
2425 osf3* | osf4* | osf5*)
2426 version_type=osf
2427 need_lib_prefix=no
2428 need_version=no
2429 soname_spec='${libname}${release}${shared_ext}$major'
2430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2431 shlibpath_var=LD_LIBRARY_PATH
2432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2434 ;;
2435
2436 sco3.2v5*)
2437 version_type=osf
2438 soname_spec='${libname}${release}${shared_ext}$major'
2439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2440 shlibpath_var=LD_LIBRARY_PATH
2441 ;;
2442
2443 solaris*)
2444 version_type=linux
2445 need_lib_prefix=no
2446 need_version=no
2447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2448 soname_spec='${libname}${release}${shared_ext}$major'
2449 shlibpath_var=LD_LIBRARY_PATH
2450 shlibpath_overrides_runpath=yes
2451 hardcode_into_libs=yes
2452 # ldd complains unless libraries are executable
2453 postinstall_cmds='chmod +x $lib'
2454 ;;
2455
2456 sunos4*)
2457 version_type=sunos
2458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2460 shlibpath_var=LD_LIBRARY_PATH
2461 shlibpath_overrides_runpath=yes
2462 if test "$with_gnu_ld" = yes; then
2463 need_lib_prefix=no
2464 fi
2465 need_version=yes
2466 ;;
2467
2468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2469 version_type=linux
2470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2471 soname_spec='${libname}${release}${shared_ext}$major'
2472 shlibpath_var=LD_LIBRARY_PATH
2473 case $host_vendor in
2474 sni)
2475 shlibpath_overrides_runpath=no
2476 need_lib_prefix=no
2477 export_dynamic_flag_spec='${wl}-Blargedynsym'
2478 runpath_var=LD_RUN_PATH
2479 ;;
2480 siemens)
2481 need_lib_prefix=no
2482 ;;
2483 motorola)
2484 need_lib_prefix=no
2485 need_version=no
2486 shlibpath_overrides_runpath=no
2487 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2488 ;;
2489 esac
2490 ;;
2491
2492 sysv4*MP*)
2493 if test -d /usr/nec ;then
2494 version_type=linux
2495 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2496 soname_spec='$libname${shared_ext}.$major'
2497 shlibpath_var=LD_LIBRARY_PATH
2498 fi
2499 ;;
2500
2501 uts4*)
2502 version_type=linux
2503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2504 soname_spec='${libname}${release}${shared_ext}$major'
2505 shlibpath_var=LD_LIBRARY_PATH
2506 ;;
2507
2508 *)
2509 dynamic_linker=no
2510 ;;
2511 esac
2512 AC_MSG_RESULT([$dynamic_linker])
2513 test "$dynamic_linker" = no && can_build_shared=no
2514 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2515
2516
2517 # _LT_AC_TAGCONFIG
2518 # ----------------
2519 AC_DEFUN([_LT_AC_TAGCONFIG],
2520 [AC_ARG_WITH([tags],
2521 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2522 [include additional configurations @<:@automatic@:>@])],
2523 [tagnames="$withval"])
2524
2525 if test -f "$ltmain" && test -n "$tagnames"; then
2526 if test ! -f "${ofile}"; then
2527 AC_MSG_WARN([output file `$ofile' does not exist])
2528 fi
2529
2530 if test -z "$LTCC"; then
2531 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2532 if test -z "$LTCC"; then
2533 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2534 else
2535 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2536 fi
2537 fi
2538
2539 # Extract list of available tagged configurations in $ofile.
2540 # Note that this assumes the entire list is on one line.
2541 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2542
2543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2544 for tagname in $tagnames; do
2545 IFS="$lt_save_ifs"
2546 # Check whether tagname contains only valid characters
2547 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2548 "") ;;
2549 *) AC_MSG_ERROR([invalid tag name: $tagname])
2550 ;;
2551 esac
2552
2553 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2554 then
2555 AC_MSG_ERROR([tag name \"$tagname\" already exists])
2556 fi
2557
2558 # Update the list of available tags.
2559 if test -n "$tagname"; then
2560 echo appending configuration tag \"$tagname\" to $ofile
2561
2562 case $tagname in
2563 CXX)
2564 if test -n "$CXX" && test "X$CXX" != "Xno"; then
2565 AC_LIBTOOL_LANG_CXX_CONFIG
2566 else
2567 tagname=""
2568 fi
2569 ;;
2570
2571 F77)
2572 if test -n "$F77" && test "X$F77" != "Xno"; then
2573 AC_LIBTOOL_LANG_F77_CONFIG
2574 else
2575 tagname=""
2576 fi
2577 ;;
2578
2579 GCJ)
2580 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2581 AC_LIBTOOL_LANG_GCJ_CONFIG
2582 else
2583 tagname=""
2584 fi
2585 ;;
2586
2587 RC)
2588 AC_LIBTOOL_LANG_RC_CONFIG
2589 ;;
2590
2591 *)
2592 AC_MSG_ERROR([Unsupported tag name: $tagname])
2593 ;;
2594 esac
2595
2596 # Append the new tag name to the list of available tags.
2597 if test -n "$tagname" ; then
2598 available_tags="$available_tags $tagname"
2599 fi
2600 fi
2601 done
2602 IFS="$lt_save_ifs"
2603
2604 # Now substitute the updated list of available tags.
2605 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2606 mv "${ofile}T" "$ofile"
2607 chmod +x "$ofile"
2608 else
2609 rm -f "${ofile}T"
2610 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2611 fi
2612 fi
2613 ])# _LT_AC_TAGCONFIG
2614
2615
2616 # AC_LIBTOOL_DLOPEN
2617 # -----------------
2618 # enable checks for dlopen support
2619 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2620 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2621 ])# AC_LIBTOOL_DLOPEN
2622
2623
2624 # AC_LIBTOOL_WIN32_DLL
2625 # --------------------
2626 # declare package support for building win32 dll's
2627 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2628 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2629 ])# AC_LIBTOOL_WIN32_DLL
2630
2631
2632 # AC_ENABLE_SHARED([DEFAULT])
2633 # ---------------------------
2634 # implement the --enable-shared flag
2635 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2636 AC_DEFUN([AC_ENABLE_SHARED],
2637 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2638 AC_ARG_ENABLE([shared],
2639 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2640 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2641 [p=${PACKAGE-default}
2642 case $enableval in
2643 yes) enable_shared=yes ;;
2644 no) enable_shared=no ;;
2645 *)
2646 enable_shared=no
2647 # Look at the argument we got. We use all the common list separators.
2648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2649 for pkg in $enableval; do
2650 IFS="$lt_save_ifs"
2651 if test "X$pkg" = "X$p"; then
2652 enable_shared=yes
2653 fi
2654 done
2655 IFS="$lt_save_ifs"
2656 ;;
2657 esac],
2658 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2659 ])# AC_ENABLE_SHARED
2660
2661
2662 # AC_DISABLE_SHARED
2663 # -----------------
2664 #- set the default shared flag to --disable-shared
2665 AC_DEFUN([AC_DISABLE_SHARED],
2666 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2667 AC_ENABLE_SHARED(no)
2668 ])# AC_DISABLE_SHARED
2669
2670
2671 # AC_ENABLE_STATIC([DEFAULT])
2672 # ---------------------------
2673 # implement the --enable-static flag
2674 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2675 AC_DEFUN([AC_ENABLE_STATIC],
2676 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2677 AC_ARG_ENABLE([static],
2678 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2679 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2680 [p=${PACKAGE-default}
2681 case $enableval in
2682 yes) enable_static=yes ;;
2683 no) enable_static=no ;;
2684 *)
2685 enable_static=no
2686 # Look at the argument we got. We use all the common list separators.
2687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2688 for pkg in $enableval; do
2689 IFS="$lt_save_ifs"
2690 if test "X$pkg" = "X$p"; then
2691 enable_static=yes
2692 fi
2693 done
2694 IFS="$lt_save_ifs"
2695 ;;
2696 esac],
2697 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2698 ])# AC_ENABLE_STATIC
2699
2700
2701 # AC_DISABLE_STATIC
2702 # -----------------
2703 # set the default static flag to --disable-static
2704 AC_DEFUN([AC_DISABLE_STATIC],
2705 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2706 AC_ENABLE_STATIC(no)
2707 ])# AC_DISABLE_STATIC
2708
2709
2710 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2711 # ---------------------------------
2712 # implement the --enable-fast-install flag
2713 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2714 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2715 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2716 AC_ARG_ENABLE([fast-install],
2717 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2718 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2719 [p=${PACKAGE-default}
2720 case $enableval in
2721 yes) enable_fast_install=yes ;;
2722 no) enable_fast_install=no ;;
2723 *)
2724 enable_fast_install=no
2725 # Look at the argument we got. We use all the common list separators.
2726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2727 for pkg in $enableval; do
2728 IFS="$lt_save_ifs"
2729 if test "X$pkg" = "X$p"; then
2730 enable_fast_install=yes
2731 fi
2732 done
2733 IFS="$lt_save_ifs"
2734 ;;
2735 esac],
2736 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2737 ])# AC_ENABLE_FAST_INSTALL
2738
2739
2740 # AC_DISABLE_FAST_INSTALL
2741 # -----------------------
2742 # set the default to --disable-fast-install
2743 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2744 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2745 AC_ENABLE_FAST_INSTALL(no)
2746 ])# AC_DISABLE_FAST_INSTALL
2747
2748
2749 # AC_LIBTOOL_PICMODE([MODE])
2750 # --------------------------
2751 # implement the --with-pic flag
2752 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2753 AC_DEFUN([AC_LIBTOOL_PICMODE],
2754 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2755 pic_mode=ifelse($#,1,$1,default)
2756 ])# AC_LIBTOOL_PICMODE
2757
2758
2759 # AC_PROG_EGREP
2760 # -------------
2761 # This is predefined starting with Autoconf 2.54, so this conditional
2762 # definition can be removed once we require Autoconf 2.54 or later.
2763 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2764 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2765 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2766 then ac_cv_prog_egrep='grep -E'
2767 else ac_cv_prog_egrep='egrep'
2768 fi])
2769 EGREP=$ac_cv_prog_egrep
2770 AC_SUBST([EGREP])
2771 ])])
2772
2773
2774 # AC_PATH_TOOL_PREFIX
2775 # -------------------
2776 # find a file program which can recognise shared library
2777 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2778 [AC_REQUIRE([AC_PROG_EGREP])dnl
2779 AC_MSG_CHECKING([for $1])
2780 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2781 [case $MAGIC_CMD in
2782 [[\\/*] | ?:[\\/]*])
2783 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2784 ;;
2785 *)
2786 lt_save_MAGIC_CMD="$MAGIC_CMD"
2787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2788 dnl $ac_dummy forces splitting on constant user-supplied paths.
2789 dnl POSIX.2 word splitting is done only on the output of word expansions,
2790 dnl not every word. This closes a longstanding sh security hole.
2791 ac_dummy="ifelse([$2], , $PATH, [$2])"
2792 for ac_dir in $ac_dummy; do
2793 IFS="$lt_save_ifs"
2794 test -z "$ac_dir" && ac_dir=.
2795 if test -f $ac_dir/$1; then
2796 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2797 if test -n "$file_magic_test_file"; then
2798 case $deplibs_check_method in
2799 "file_magic "*)
2800 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2803 $EGREP "$file_magic_regex" > /dev/null; then
2804 :
2805 else
2806 cat <<EOF 1>&2
2807
2808 *** Warning: the command libtool uses to detect shared libraries,
2809 *** $file_magic_cmd, produces output that libtool cannot recognize.
2810 *** The result is that libtool may fail to recognize shared libraries
2811 *** as such. This will affect the creation of libtool libraries that
2812 *** depend on shared libraries, but programs linked with such libtool
2813 *** libraries will work regardless of this problem. Nevertheless, you
2814 *** may want to report the problem to your system manager and/or to
2815 *** bug-libtool@gnu.org
2816
2817 EOF
2818 fi ;;
2819 esac
2820 fi
2821 break
2822 fi
2823 done
2824 IFS="$lt_save_ifs"
2825 MAGIC_CMD="$lt_save_MAGIC_CMD"
2826 ;;
2827 esac])
2828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2829 if test -n "$MAGIC_CMD"; then
2830 AC_MSG_RESULT($MAGIC_CMD)
2831 else
2832 AC_MSG_RESULT(no)
2833 fi
2834 ])# AC_PATH_TOOL_PREFIX
2835
2836
2837 # AC_PATH_MAGIC
2838 # -------------
2839 # find a file program which can recognise a shared library
2840 AC_DEFUN([AC_PATH_MAGIC],
2841 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2842 if test -z "$lt_cv_path_MAGIC_CMD"; then
2843 if test -n "$ac_tool_prefix"; then
2844 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2845 else
2846 MAGIC_CMD=:
2847 fi
2848 fi
2849 ])# AC_PATH_MAGIC
2850
2851
2852 # AC_PROG_LD
2853 # ----------
2854 # find the pathname to the GNU or non-GNU linker
2855 AC_DEFUN([AC_PROG_LD],
2856 [AC_ARG_WITH([gnu-ld],
2857 [AC_HELP_STRING([--with-gnu-ld],
2858 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2859 [test "$withval" = no || with_gnu_ld=yes],
2860 [with_gnu_ld=no])
2861 AC_REQUIRE([LT_AC_PROG_SED])dnl
2862 AC_REQUIRE([AC_PROG_CC])dnl
2863 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2864 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2865 ac_prog=ld
2866 if test "$GCC" = yes; then
2867 # Check if gcc -print-prog-name=ld gives a path.
2868 AC_MSG_CHECKING([for ld used by $CC])
2869 case $host in
2870 *-*-mingw*)
2871 # gcc leaves a trailing carriage return which upsets mingw
2872 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2873 *)
2874 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2875 esac
2876 case $ac_prog in
2877 # Accept absolute paths.
2878 [[\\/]]* | ?:[[\\/]]*)
2879 re_direlt='/[[^/]][[^/]]*/\.\./'
2880 # Canonicalize the pathname of ld
2881 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2882 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2883 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2884 done
2885 test -z "$LD" && LD="$ac_prog"
2886 ;;
2887 "")
2888 # If it fails, then pretend we aren't using GCC.
2889 ac_prog=ld
2890 ;;
2891 *)
2892 # If it is relative, then search for the first ld in PATH.
2893 with_gnu_ld=unknown
2894 ;;
2895 esac
2896 elif test "$with_gnu_ld" = yes; then
2897 AC_MSG_CHECKING([for GNU ld])
2898 else
2899 AC_MSG_CHECKING([for non-GNU ld])
2900 fi
2901 AC_CACHE_VAL(lt_cv_path_LD,
2902 [if test -z "$LD"; then
2903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2904 for ac_dir in $PATH; do
2905 IFS="$lt_save_ifs"
2906 test -z "$ac_dir" && ac_dir=.
2907 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2908 lt_cv_path_LD="$ac_dir/$ac_prog"
2909 # Check to see if the program is GNU ld. I'd rather use --version,
2910 # but apparently some GNU ld's only accept -v.
2911 # Break only if it was the GNU/non-GNU ld that we prefer.
2912 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2913 *GNU* | *'with BFD'*)
2914 test "$with_gnu_ld" != no && break
2915 ;;
2916 *)
2917 test "$with_gnu_ld" != yes && break
2918 ;;
2919 esac
2920 fi
2921 done
2922 IFS="$lt_save_ifs"
2923 else
2924 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2925 fi])
2926 LD="$lt_cv_path_LD"
2927 if test -n "$LD"; then
2928 AC_MSG_RESULT($LD)
2929 else
2930 AC_MSG_RESULT(no)
2931 fi
2932 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2933 AC_PROG_LD_GNU
2934 ])# AC_PROG_LD
2935
2936
2937 # AC_PROG_LD_GNU
2938 # --------------
2939 AC_DEFUN([AC_PROG_LD_GNU],
2940 [AC_REQUIRE([AC_PROG_EGREP])dnl
2941 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2942 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2943 case `$LD -v 2>&1 </dev/null` in
2944 *GNU* | *'with BFD'*)
2945 lt_cv_prog_gnu_ld=yes
2946 ;;
2947 *)
2948 lt_cv_prog_gnu_ld=no
2949 ;;
2950 esac])
2951 with_gnu_ld=$lt_cv_prog_gnu_ld
2952 ])# AC_PROG_LD_GNU
2953
2954
2955 # AC_PROG_LD_RELOAD_FLAG
2956 # ----------------------
2957 # find reload flag for linker
2958 # -- PORTME Some linkers may need a different reload flag.
2959 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2960 [AC_CACHE_CHECK([for $LD option to reload object files],
2961 lt_cv_ld_reload_flag,
2962 [lt_cv_ld_reload_flag='-r'])
2963 reload_flag=$lt_cv_ld_reload_flag
2964 case $reload_flag in
2965 "" | " "*) ;;
2966 *) reload_flag=" $reload_flag" ;;
2967 esac
2968 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2969 ])# AC_PROG_LD_RELOAD_FLAG
2970
2971
2972 # AC_DEPLIBS_CHECK_METHOD
2973 # -----------------------
2974 # how to check for library dependencies
2975 # -- PORTME fill in with the dynamic library characteristics
2976 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2977 [AC_CACHE_CHECK([how to recognise dependent libraries],
2978 lt_cv_deplibs_check_method,
2979 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2980 lt_cv_file_magic_test_file=
2981 lt_cv_deplibs_check_method='unknown'
2982 # Need to set the preceding variable on all platforms that support
2983 # interlibrary dependencies.
2984 # 'none' -- dependencies not supported.
2985 # `unknown' -- same as none, but documents that we really don't know.
2986 # 'pass_all' -- all dependencies passed with no checks.
2987 # 'test_compile' -- check by making test program.
2988 # 'file_magic [[regex]]' -- check by looking for files in library path
2989 # which responds to the $file_magic_cmd with a given extended regex.
2990 # If you have `file' or equivalent on your system and you're not sure
2991 # whether `pass_all' will *always* work, you probably want this one.
2992
2993 case $host_os in
2994 aix4* | aix5*)
2995 lt_cv_deplibs_check_method=pass_all
2996 ;;
2997
2998 beos*)
2999 lt_cv_deplibs_check_method=pass_all
3000 ;;
3001
3002 bsdi4*)
3003 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3004 lt_cv_file_magic_cmd='/usr/bin/file -L'
3005 lt_cv_file_magic_test_file=/shlib/libc.so
3006 ;;
3007
3008 cygwin*)
3009 # func_win32_libid is a shell function defined in ltmain.sh
3010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3011 lt_cv_file_magic_cmd='func_win32_libid'
3012 ;;
3013
3014 mingw* | pw32*)
3015 # Base MSYS/MinGW do not provide the 'file' command needed by
3016 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3017 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3018 lt_cv_file_magic_cmd='$OBJDUMP -f'
3019 ;;
3020
3021 darwin* | rhapsody*)
3022 lt_cv_deplibs_check_method=pass_all
3023 ;;
3024
3025 freebsd* | kfreebsd*-gnu)
3026 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3027 case $host_cpu in
3028 i*86 )
3029 # Not sure whether the presence of OpenBSD here was a mistake.
3030 # Let's accept both of them until this is cleared up.
3031 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3032 lt_cv_file_magic_cmd=/usr/bin/file
3033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3034 ;;
3035 esac
3036 else
3037 lt_cv_deplibs_check_method=pass_all
3038 fi
3039 ;;
3040
3041 gnu*)
3042 lt_cv_deplibs_check_method=pass_all
3043 ;;
3044
3045 hpux10.20* | hpux11*)
3046 lt_cv_file_magic_cmd=/usr/bin/file
3047 case "$host_cpu" in
3048 ia64*)
3049 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3050 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3051 ;;
3052 hppa*64*)
3053 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3054 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3055 ;;
3056 *)
3057 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3058 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3059 ;;
3060 esac
3061 ;;
3062
3063 irix5* | irix6* | nonstopux*)
3064 case $LD in
3065 *-32|*"-32 ") libmagic=32-bit;;
3066 *-n32|*"-n32 ") libmagic=N32;;
3067 *-64|*"-64 ") libmagic=64-bit;;
3068 *) libmagic=never-match;;
3069 esac
3070 lt_cv_deplibs_check_method=pass_all
3071 ;;
3072
3073 # This must be Linux ELF.
3074 linux*)
3075 lt_cv_deplibs_check_method=pass_all
3076 ;;
3077
3078 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3079 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3080 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3081 else
3082 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3083 fi
3084 ;;
3085
3086 newos6*)
3087 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3088 lt_cv_file_magic_cmd=/usr/bin/file
3089 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3090 ;;
3091
3092 nto-qnx*)
3093 lt_cv_deplibs_check_method=unknown
3094 ;;
3095
3096 openbsd*)
3097 lt_cv_file_magic_cmd=/usr/bin/file
3098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3100 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3101 else
3102 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3103 fi
3104 ;;
3105
3106 osf3* | osf4* | osf5*)
3107 lt_cv_deplibs_check_method=pass_all
3108 ;;
3109
3110 sco3.2v5*)
3111 lt_cv_deplibs_check_method=pass_all
3112 ;;
3113
3114 solaris*)
3115 lt_cv_deplibs_check_method=pass_all
3116 ;;
3117
3118 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3119 case $host_vendor in
3120 motorola)
3121 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3123 ;;
3124 ncr)
3125 lt_cv_deplibs_check_method=pass_all
3126 ;;
3127 sequent)
3128 lt_cv_file_magic_cmd='/bin/file'
3129 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3130 ;;
3131 sni)
3132 lt_cv_file_magic_cmd='/bin/file'
3133 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3134 lt_cv_file_magic_test_file=/lib/libc.so
3135 ;;
3136 siemens)
3137 lt_cv_deplibs_check_method=pass_all
3138 ;;
3139 esac
3140 ;;
3141
3142 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3143 lt_cv_deplibs_check_method=pass_all
3144 ;;
3145 esac
3146 ])
3147 file_magic_cmd=$lt_cv_file_magic_cmd
3148 deplibs_check_method=$lt_cv_deplibs_check_method
3149 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3150 ])# AC_DEPLIBS_CHECK_METHOD
3151
3152
3153 # AC_PROG_NM
3154 # ----------
3155 # find the pathname to a BSD-compatible name lister
3156 AC_DEFUN([AC_PROG_NM],
3157 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3158 [if test -n "$NM"; then
3159 # Let the user override the test.
3160 lt_cv_path_NM="$NM"
3161 else
3162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3163 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3164 IFS="$lt_save_ifs"
3165 test -z "$ac_dir" && ac_dir=.
3166 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3167 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3168 # Check to see if the nm accepts a BSD-compat flag.
3169 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3170 # nm: unknown option "B" ignored
3171 # Tru64's nm complains that /dev/null is an invalid object file
3172 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3173 */dev/null* | *'Invalid file or object type'*)
3174 lt_cv_path_NM="$tmp_nm -B"
3175 break
3176 ;;
3177 *)
3178 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3179 */dev/null*)
3180 lt_cv_path_NM="$tmp_nm -p"
3181 break
3182 ;;
3183 *)
3184 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3185 continue # so that we can try to find one that supports BSD flags
3186 ;;
3187 esac
3188 esac
3189 fi
3190 done
3191 IFS="$lt_save_ifs"
3192 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3193 fi])
3194 NM="$lt_cv_path_NM"
3195 ])# AC_PROG_NM
3196
3197
3198 # AC_CHECK_LIBM
3199 # -------------
3200 # check for math library
3201 AC_DEFUN([AC_CHECK_LIBM],
3202 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3203 LIBM=
3204 case $host in
3205 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3206 # These system don't have libm, or don't need it
3207 ;;
3208 *-ncr-sysv4.3*)
3209 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3210 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3211 ;;
3212 *)
3213 AC_CHECK_LIB(m, cos, LIBM="-lm")
3214 ;;
3215 esac
3216 ])# AC_CHECK_LIBM
3217
3218
3219 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3220 # -----------------------------------
3221 # sets LIBLTDL to the link flags for the libltdl convenience library and
3222 # LTDLINCL to the include flags for the libltdl header and adds
3223 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3224 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3225 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3226 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3227 # '${top_srcdir}/' (note the single quotes!). If your package is not
3228 # flat and you're not using automake, define top_builddir and
3229 # top_srcdir appropriately in the Makefiles.
3230 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3231 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3232 case $enable_ltdl_convenience in
3233 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3234 "") enable_ltdl_convenience=yes
3235 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3236 esac
3237 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3238 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3239 # For backwards non-gettext consistent compatibility...
3240 INCLTDL="$LTDLINCL"
3241 ])# AC_LIBLTDL_CONVENIENCE
3242
3243
3244 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3245 # -----------------------------------
3246 # sets LIBLTDL to the link flags for the libltdl installable library and
3247 # LTDLINCL to the include flags for the libltdl header and adds
3248 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3249 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3250 # DIRECTORY is not provided and an installed libltdl is not found, it is
3251 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3252 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3253 # quotes!). If your package is not flat and you're not using automake,
3254 # define top_builddir and top_srcdir appropriately in the Makefiles.
3255 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3256 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3257 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3258 AC_CHECK_LIB(ltdl, lt_dlinit,
3259 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3260 [if test x"$enable_ltdl_install" = xno; then
3261 AC_MSG_WARN([libltdl not installed, but installation disabled])
3262 else
3263 enable_ltdl_install=yes
3264 fi
3265 ])
3266 if test x"$enable_ltdl_install" = x"yes"; then
3267 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3268 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3269 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3270 else
3271 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3272 LIBLTDL="-lltdl"
3273 LTDLINCL=
3274 fi
3275 # For backwards non-gettext consistent compatibility...
3276 INCLTDL="$LTDLINCL"
3277 ])# AC_LIBLTDL_INSTALLABLE
3278
3279
3280 # AC_LIBTOOL_CXX
3281 # --------------
3282 # enable support for C++ libraries
3283 AC_DEFUN([AC_LIBTOOL_CXX],
3284 [AC_REQUIRE([_LT_AC_LANG_CXX])
3285 ])# AC_LIBTOOL_CXX
3286
3287
3288 # _LT_AC_LANG_CXX
3289 # ---------------
3290 AC_DEFUN([_LT_AC_LANG_CXX],
3291 [AC_REQUIRE([AC_PROG_CXX])
3292 AC_REQUIRE([AC_PROG_CXXCPP])
3293 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3294 ])# _LT_AC_LANG_CXX
3295
3296
3297 # AC_LIBTOOL_F77
3298 # --------------
3299 # enable support for Fortran 77 libraries
3300 AC_DEFUN([AC_LIBTOOL_F77],
3301 [AC_REQUIRE([_LT_AC_LANG_F77])
3302 ])# AC_LIBTOOL_F77
3303
3304
3305 # _LT_AC_LANG_F77
3306 # ---------------
3307 AC_DEFUN([_LT_AC_LANG_F77],
3308 [AC_REQUIRE([AC_PROG_F77])
3309 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3310 ])# _LT_AC_LANG_F77
3311
3312
3313 # AC_LIBTOOL_GCJ
3314 # --------------
3315 # enable support for GCJ libraries
3316 AC_DEFUN([AC_LIBTOOL_GCJ],
3317 [AC_REQUIRE([_LT_AC_LANG_GCJ])
3318 ])# AC_LIBTOOL_GCJ
3319
3320
3321 # _LT_AC_LANG_GCJ
3322 # ---------------
3323 AC_DEFUN([_LT_AC_LANG_GCJ],
3324 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3325 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3326 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3327 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3328 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3329 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3330 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3331 ])# _LT_AC_LANG_GCJ
3332
3333
3334 # AC_LIBTOOL_RC
3335 # --------------
3336 # enable support for Windows resource files
3337 AC_DEFUN([AC_LIBTOOL_RC],
3338 [AC_REQUIRE([LT_AC_PROG_RC])
3339 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3340 ])# AC_LIBTOOL_RC
3341
3342
3343 # AC_LIBTOOL_LANG_C_CONFIG
3344 # ------------------------
3345 # Ensure that the configuration vars for the C compiler are
3346 # suitably defined. Those variables are subsequently used by
3347 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3348 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3349 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3350 [lt_save_CC="$CC"
3351 AC_LANG_PUSH(C)
3352
3353 # Source file extension for C test sources.
3354 ac_ext=c
3355
3356 # Object file extension for compiled C test sources.
3357 objext=o
3358 _LT_AC_TAGVAR(objext, $1)=$objext
3359
3360 # Code to be used in simple compile tests
3361 lt_simple_compile_test_code="int some_variable = 0;\n"
3362
3363 # Code to be used in simple link tests
3364 lt_simple_link_test_code='int main(){return(0);}\n'
3365
3366 _LT_AC_SYS_COMPILER
3367
3368 #
3369 # Check for any special shared library compilation flags.
3370 #
3371 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3372 if test "$GCC" = no; then
3373 case $host_os in
3374 sco3.2v5*)
3375 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3376 ;;
3377 esac
3378 fi
3379 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3380 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3381 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3382 else
3383 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3384 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3385 fi
3386 fi
3387
3388
3389 #
3390 # Check to make sure the static flag actually works.
3391 #
3392 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3393 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3394 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3395 [],
3396 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3397
3398
3399 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3400 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3401 AC_LIBTOOL_PROG_CC_C_O($1)
3402 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3403 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3404 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3405 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3406 AC_LIBTOOL_SYS_LIB_STRIP
3407 AC_LIBTOOL_DLOPEN_SELF($1)
3408
3409 # Report which librarie types wil actually be built
3410 AC_MSG_CHECKING([if libtool supports shared libraries])
3411 AC_MSG_RESULT([$can_build_shared])
3412
3413 AC_MSG_CHECKING([whether to build shared libraries])
3414 test "$can_build_shared" = "no" && enable_shared=no
3415
3416 # On AIX, shared libraries and static libraries use the same namespace, and
3417 # are all built from PIC.
3418 case "$host_os" in
3419 aix3*)
3420 test "$enable_shared" = yes && enable_static=no
3421 if test -n "$RANLIB"; then
3422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3423 postinstall_cmds='$RANLIB $lib'
3424 fi
3425 ;;
3426
3427 aix4* | aix5*)
3428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3429 test "$enable_shared" = yes && enable_static=no
3430 fi
3431 ;;
3432 darwin* | rhapsody*)
3433 if test "$GCC" = yes; then
3434 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3435 case "$host_os" in
3436 rhapsody* | darwin1.[[012]])
3437 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3438 ;;
3439 *) # Darwin 1.3 on
3440 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3441 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3442 else
3443 case ${MACOSX_DEPLOYMENT_TARGET} in
3444 10.[[012]])
3445 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3446 ;;
3447 10.*)
3448 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3449 ;;
3450 esac
3451 fi
3452 ;;
3453 esac
3454 output_verbose_link_cmd='echo'
3455 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3456 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3457 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3458 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3459 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3460 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3461 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3462 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3463 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3464 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3465 else
3466 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3467 fi
3468 ;;
3469 esac
3470 AC_MSG_RESULT([$enable_shared])
3471
3472 AC_MSG_CHECKING([whether to build static libraries])
3473 # Make sure either enable_shared or enable_static is yes.
3474 test "$enable_shared" = yes || enable_static=yes
3475 AC_MSG_RESULT([$enable_static])
3476
3477 AC_LIBTOOL_CONFIG($1)
3478
3479 AC_LANG_POP
3480 CC="$lt_save_CC"
3481 ])# AC_LIBTOOL_LANG_C_CONFIG
3482
3483
3484 # AC_LIBTOOL_LANG_CXX_CONFIG
3485 # --------------------------
3486 # Ensure that the configuration vars for the C compiler are
3487 # suitably defined. Those variables are subsequently used by
3488 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3489 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3490 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3491 [AC_LANG_PUSH(C++)
3492 AC_REQUIRE([AC_PROG_CXX])
3493 AC_REQUIRE([AC_PROG_CXXCPP])
3494
3495 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3496 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3497 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3498 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3499 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3500 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3501 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3502 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3503 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3504 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3505 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3506 _LT_AC_TAGVAR(module_cmds, $1)=
3507 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3508 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3509 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3510 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3511 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3512 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3513
3514 # Dependencies to place before and after the object being linked:
3515 _LT_AC_TAGVAR(predep_objects, $1)=
3516 _LT_AC_TAGVAR(postdep_objects, $1)=
3517 _LT_AC_TAGVAR(predeps, $1)=
3518 _LT_AC_TAGVAR(postdeps, $1)=
3519 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3520
3521 # Source file extension for C++ test sources.
3522 ac_ext=cc
3523
3524 # Object file extension for compiled C++ test sources.
3525 objext=o
3526 _LT_AC_TAGVAR(objext, $1)=$objext
3527
3528 # Code to be used in simple compile tests
3529 lt_simple_compile_test_code="int some_variable = 0;\n"
3530
3531 # Code to be used in simple link tests
3532 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3533
3534 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3535 _LT_AC_SYS_COMPILER
3536
3537 # Allow CC to be a program name with arguments.
3538 lt_save_CC=$CC
3539 lt_save_LD=$LD
3540 lt_save_GCC=$GCC
3541 GCC=$GXX
3542 lt_save_with_gnu_ld=$with_gnu_ld
3543 lt_save_path_LD=$lt_cv_path_LD
3544 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3545 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3546 else
3547 unset lt_cv_prog_gnu_ld
3548 fi
3549 if test -n "${lt_cv_path_LDCXX+set}"; then
3550 lt_cv_path_LD=$lt_cv_path_LDCXX
3551 else
3552 unset lt_cv_path_LD
3553 fi
3554 test -z "${LDCXX+set}" || LD=$LDCXX
3555 CC=${CXX-"c++"}
3556 compiler=$CC
3557 _LT_AC_TAGVAR(compiler, $1)=$CC
3558 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3559
3560 # We don't want -fno-exception wen compiling C++ code, so set the
3561 # no_builtin_flag separately
3562 if test "$GXX" = yes; then
3563 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3564 else
3565 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3566 fi
3567
3568 if test "$GXX" = yes; then
3569 # Set up default GNU C++ configuration
3570
3571 AC_PROG_LD
3572
3573 # Check if GNU C++ uses GNU ld as the underlying linker, since the
3574 # archiving commands below assume that GNU ld is being used.
3575 if test "$with_gnu_ld" = yes; then
3576 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3577 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3578
3579 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3580 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3581
3582 # If archive_cmds runs LD, not CC, wlarc should be empty
3583 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3584 # investigate it a little bit more. (MM)
3585 wlarc='${wl}'
3586
3587 # ancient GNU ld didn't support --whole-archive et. al.
3588 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3589 grep 'no-whole-archive' > /dev/null; then
3590 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3591 else
3592 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3593 fi
3594 else
3595 with_gnu_ld=no
3596 wlarc=
3597
3598 # A generic and very simple default shared library creation
3599 # command for GNU C++ for the case where it uses the native
3600 # linker, instead of GNU ld. If possible, this setting should
3601 # overridden to take advantage of the native linker features on
3602 # the platform it is being used on.
3603 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3604 fi
3605
3606 # Commands to make compiler produce verbose output that lists
3607 # what "hidden" libraries, object files and flags are used when
3608 # linking a shared library.
3609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3610
3611 else
3612 GXX=no
3613 with_gnu_ld=no
3614 wlarc=
3615 fi
3616
3617 # PORTME: fill in a description of your system's C++ link characteristics
3618 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3619 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3620 case $host_os in
3621 aix3*)
3622 # FIXME: insert proper C++ library support
3623 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3624 ;;
3625 aix4* | aix5*)
3626 if test "$host_cpu" = ia64; then
3627 # On IA64, the linker does run time linking by default, so we don't
3628 # have to do anything special.
3629 aix_use_runtimelinking=no
3630 exp_sym_flag='-Bexport'
3631 no_entry_flag=""
3632 else
3633 aix_use_runtimelinking=no
3634
3635 # Test if we are trying to use run time linking or normal
3636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3637 # need to do runtime linking.
3638 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3639 for ld_flag in $LDFLAGS; do
3640 case $ld_flag in
3641 *-brtl*)
3642 aix_use_runtimelinking=yes
3643 break
3644 ;;
3645 esac
3646 done
3647 esac
3648
3649 exp_sym_flag='-bexport'
3650 no_entry_flag='-bnoentry'
3651 fi
3652
3653 # When large executables or shared objects are built, AIX ld can
3654 # have problems creating the table of contents. If linking a library
3655 # or program results in "error TOC overflow" add -mminimal-toc to
3656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3658
3659 _LT_AC_TAGVAR(archive_cmds, $1)=''
3660 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3661 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3662 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3663
3664 if test "$GXX" = yes; then
3665 case $host_os in aix4.[012]|aix4.[012].*)
3666 # We only want to do this on AIX 4.2 and lower, the check
3667 # below for broken collect2 doesn't work under 4.3+
3668 collect2name=`${CC} -print-prog-name=collect2`
3669 if test -f "$collect2name" && \
3670 strings "$collect2name" | grep resolve_lib_name >/dev/null
3671 then
3672 # We have reworked collect2
3673 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3674 else
3675 # We have old collect2
3676 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3677 # It fails to find uninstalled libraries when the uninstalled
3678 # path is not listed in the libpath. Setting hardcode_minus_L
3679 # to unsupported forces relinking
3680 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3681 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3682 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3683 fi
3684 esac
3685 shared_flag='-shared'
3686 else
3687 # not using gcc
3688 if test "$host_cpu" = ia64; then
3689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3690 # chokes on -Wl,-G. The following line is correct:
3691 shared_flag='-G'
3692 else
3693 if test "$aix_use_runtimelinking" = yes; then
3694 shared_flag='${wl}-G'
3695 else
3696 shared_flag='${wl}-bM:SRE'
3697 fi
3698 fi
3699 fi
3700
3701 # It seems that -bexpall does not export symbols beginning with
3702 # underscore (_), so it is better to generate a list of symbols to export.
3703 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3704 if test "$aix_use_runtimelinking" = yes; then
3705 # Warning - without using the other runtime loading flags (-brtl),
3706 # -berok will link without error, but may produce a broken library.
3707 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3708 # Determine the default libpath from the value encoded in an empty executable.
3709 _LT_AC_SYS_LIBPATH_AIX
3710 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3711
3712 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3713 else
3714 if test "$host_cpu" = ia64; then
3715 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3716 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3717 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3718 else
3719 # Determine the default libpath from the value encoded in an empty executable.
3720 _LT_AC_SYS_LIBPATH_AIX
3721 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3722 # Warning - without using the other run time loading flags,
3723 # -berok will link without error, but may produce a broken library.
3724 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3725 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3726 # -bexpall does not export symbols beginning with underscore (_)
3727 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3728 # Exported symbols can be pulled into shared objects from archives
3729 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3730 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3731 # This is similar to how AIX traditionally builds it's shared libraries.
3732 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3733 fi
3734 fi
3735 ;;
3736 chorus*)
3737 case $cc_basename in
3738 *)
3739 # FIXME: insert proper C++ library support
3740 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3741 ;;
3742 esac
3743 ;;
3744
3745 cygwin* | mingw* | pw32*)
3746 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3747 # as there is no search path for DLLs.
3748 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3749 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3750 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3751 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3752
3753 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3754 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3755 # If the export-symbols file already is a .def file (1st line
3756 # is EXPORTS), use it as is; otherwise, prepend...
3757 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3758 cp $export_symbols $output_objdir/$soname.def;
3759 else
3760 echo EXPORTS > $output_objdir/$soname.def;
3761 cat $export_symbols >> $output_objdir/$soname.def;
3762 fi~
3763 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3764 else
3765 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3766 fi
3767 ;;
3768
3769 darwin* | rhapsody*)
3770 if test "$GXX" = yes; then
3771 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3772 case "$host_os" in
3773 rhapsody* | darwin1.[[012]])
3774 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3775 ;;
3776 *) # Darwin 1.3 on
3777 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3778 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3779 else
3780 case ${MACOSX_DEPLOYMENT_TARGET} in
3781 10.[[012]])
3782 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3783 ;;
3784 10.*)
3785 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3786 ;;
3787 esac
3788 fi
3789 ;;
3790 esac
3791 lt_int_apple_cc_single_mod=no
3792 output_verbose_link_cmd='echo'
3793 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3794 lt_int_apple_cc_single_mod=yes
3795 fi
3796 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3797 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3798 else
3799 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3800 fi
3801 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3802
3803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3804 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3805 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3806 else
3807 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3808 fi
3809 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3810 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3811 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3812 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3813 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3814 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3815 else
3816 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3817 fi
3818 ;;
3819
3820 dgux*)
3821 case $cc_basename in
3822 ec++)
3823 # FIXME: insert proper C++ library support
3824 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3825 ;;
3826 ghcx)
3827 # Green Hills C++ Compiler
3828 # FIXME: insert proper C++ library support
3829 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3830 ;;
3831 *)
3832 # FIXME: insert proper C++ library support
3833 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3834 ;;
3835 esac
3836 ;;
3837 freebsd[12]*)
3838 # C++ shared libraries reported to be fairly broken before switch to ELF
3839 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3840 ;;
3841 freebsd-elf*)
3842 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3843 ;;
3844 freebsd* | kfreebsd*-gnu)
3845 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3846 # conventions
3847 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3848 ;;
3849 gnu*)
3850 ;;
3851 hpux9*)
3852 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3853 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3854 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3855 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3856 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3857 # but as the default
3858 # location of the library.
3859
3860 case $cc_basename in
3861 CC)
3862 # FIXME: insert proper C++ library support
3863 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3864 ;;
3865 aCC)
3866 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3867 # Commands to make compiler produce verbose output that lists
3868 # what "hidden" libraries, object files and flags are used when
3869 # linking a shared library.
3870 #
3871 # There doesn't appear to be a way to prevent this compiler from
3872 # explicitly linking system object files so we need to strip them
3873 # from the output so that they don't get included in the library
3874 # dependencies.
3875 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3876 ;;
3877 *)
3878 if test "$GXX" = yes; then
3879 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3880 else
3881 # FIXME: insert proper C++ library support
3882 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3883 fi
3884 ;;
3885 esac
3886 ;;
3887 hpux10*|hpux11*)
3888 if test $with_gnu_ld = no; then
3889 case "$host_cpu" in
3890 hppa*64*)
3891 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3892 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3893 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3894 ;;
3895 ia64*)
3896 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3897 ;;
3898 *)
3899 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3900 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3901 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3902 ;;
3903 esac
3904 fi
3905 case "$host_cpu" in
3906 hppa*64*)
3907 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3908 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3909 ;;
3910 ia64*)
3911 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3912 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3913 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3914 # but as the default
3915 # location of the library.
3916 ;;
3917 *)
3918 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3919 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3920 # but as the default
3921 # location of the library.
3922 ;;
3923 esac
3924
3925 case $cc_basename in
3926 CC)
3927 # FIXME: insert proper C++ library support
3928 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3929 ;;
3930 aCC)
3931 case "$host_cpu" in
3932 hppa*64*|ia64*)
3933 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3934 ;;
3935 *)
3936 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3937 ;;
3938 esac
3939 # Commands to make compiler produce verbose output that lists
3940 # what "hidden" libraries, object files and flags are used when
3941 # linking a shared library.
3942 #
3943 # There doesn't appear to be a way to prevent this compiler from
3944 # explicitly linking system object files so we need to strip them
3945 # from the output so that they don't get included in the library
3946 # dependencies.
3947 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3948 ;;
3949 *)
3950 if test "$GXX" = yes; then
3951 if test $with_gnu_ld = no; then
3952 case "$host_cpu" in
3953 ia64*|hppa*64*)
3954 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3955 ;;
3956 *)
3957 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3958 ;;
3959 esac
3960 fi
3961 else
3962 # FIXME: insert proper C++ library support
3963 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3964 fi
3965 ;;
3966 esac
3967 ;;
3968 irix5* | irix6*)
3969 case $cc_basename in
3970 CC)
3971 # SGI C++
3972 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3973
3974 # Archives containing C++ object files must be created using
3975 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3976 # necessary to make sure instantiated templates are included
3977 # in the archive.
3978 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3979 ;;
3980 *)
3981 if test "$GXX" = yes; then
3982 if test "$with_gnu_ld" = no; then
3983 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3984 else
3985 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3986 fi
3987 fi
3988 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3989 ;;
3990 esac
3991 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3992 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3993 ;;
3994 linux*)
3995 case $cc_basename in
3996 KCC)
3997 # Kuck and Associates, Inc. (KAI) C++ Compiler
3998
3999 # KCC will only create a shared library if the output file
4000 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4001 # to its proper name (with version) after linking.
4002 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4003 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4004 # Commands to make compiler produce verbose output that lists
4005 # what "hidden" libraries, object files and flags are used when
4006 # linking a shared library.
4007 #
4008 # There doesn't appear to be a way to prevent this compiler from
4009 # explicitly linking system object files so we need to strip them
4010 # from the output so that they don't get included in the library
4011 # dependencies.
4012 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4013
4014 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4015 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4016
4017 # Archives containing C++ object files must be created using
4018 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4019 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4020 ;;
4021 icpc)
4022 # Intel C++
4023 with_gnu_ld=yes
4024 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4025 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4026 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4027 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4028 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4029 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4030 ;;
4031 cxx)
4032 # Compaq C++
4033 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4034 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4035
4036 runpath_var=LD_RUN_PATH
4037 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4038 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4039
4040 # Commands to make compiler produce verbose output that lists
4041 # what "hidden" libraries, object files and flags are used when
4042 # linking a shared library.
4043 #
4044 # There doesn't appear to be a way to prevent this compiler from
4045 # explicitly linking system object files so we need to strip them
4046 # from the output so that they don't get included in the library
4047 # dependencies.
4048 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4049 ;;
4050 esac
4051 ;;
4052 lynxos*)
4053 # FIXME: insert proper C++ library support
4054 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4055 ;;
4056 m88k*)
4057 # FIXME: insert proper C++ library support
4058 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4059 ;;
4060 mvs*)
4061 case $cc_basename in
4062 cxx)
4063 # FIXME: insert proper C++ library support
4064 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4065 ;;
4066 *)
4067 # FIXME: insert proper C++ library support
4068 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4069 ;;
4070 esac
4071 ;;
4072 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4074 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4075 wlarc=
4076 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4077 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4078 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4079 fi
4080 # Workaround some broken pre-1.5 toolchains
4081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4082 ;;
4083 osf3*)
4084 case $cc_basename in
4085 KCC)
4086 # Kuck and Associates, Inc. (KAI) C++ Compiler
4087
4088 # KCC will only create a shared library if the output file
4089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4090 # to its proper name (with version) after linking.
4091 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4092
4093 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4094 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4095
4096 # Archives containing C++ object files must be created using
4097 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4098 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4099
4100 ;;
4101 RCC)
4102 # Rational C++ 2.4.1
4103 # FIXME: insert proper C++ library support
4104 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4105 ;;
4106 cxx)
4107 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4108 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
4109
4110 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4111 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4112
4113 # Commands to make compiler produce verbose output that lists
4114 # what "hidden" libraries, object files and flags are used when
4115 # linking a shared library.
4116 #
4117 # There doesn't appear to be a way to prevent this compiler from
4118 # explicitly linking system object files so we need to strip them
4119 # from the output so that they don't get included in the library
4120 # dependencies.
4121 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4122 ;;
4123 *)
4124 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4125 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4126 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
4127
4128 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4129 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4130
4131 # Commands to make compiler produce verbose output that lists
4132 # what "hidden" libraries, object files and flags are used when
4133 # linking a shared library.
4134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4135
4136 else
4137 # FIXME: insert proper C++ library support
4138 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4139 fi
4140 ;;
4141 esac
4142 ;;
4143 osf4* | osf5*)
4144 case $cc_basename in
4145 KCC)
4146 # Kuck and Associates, Inc. (KAI) C++ Compiler
4147
4148 # KCC will only create a shared library if the output file
4149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4150 # to its proper name (with version) after linking.
4151 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4152
4153 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4154 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4155
4156 # Archives containing C++ object files must be created using
4157 # the KAI C++ compiler.
4158 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4159 ;;
4160 RCC)
4161 # Rational C++ 2.4.1
4162 # FIXME: insert proper C++ library support
4163 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4164 ;;
4165 cxx)
4166 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4167 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
4168 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4169 echo "-hidden">> $lib.exp~
4170 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
4171 $rm $lib.exp'
4172
4173 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4174 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4175
4176 # Commands to make compiler produce verbose output that lists
4177 # what "hidden" libraries, object files and flags are used when
4178 # linking a shared library.
4179 #
4180 # There doesn't appear to be a way to prevent this compiler from
4181 # explicitly linking system object files so we need to strip them
4182 # from the output so that they don't get included in the library
4183 # dependencies.
4184 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4185 ;;
4186 *)
4187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4188 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4189 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
4190
4191 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4192 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4193
4194 # Commands to make compiler produce verbose output that lists
4195 # what "hidden" libraries, object files and flags are used when
4196 # linking a shared library.
4197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4198
4199 else
4200 # FIXME: insert proper C++ library support
4201 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4202 fi
4203 ;;
4204 esac
4205 ;;
4206 psos*)
4207 # FIXME: insert proper C++ library support
4208 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4209 ;;
4210 sco*)
4211 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4212 case $cc_basename in
4213 CC)
4214 # FIXME: insert proper C++ library support
4215 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4216 ;;
4217 *)
4218 # FIXME: insert proper C++ library support
4219 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4220 ;;
4221 esac
4222 ;;
4223 sunos4*)
4224 case $cc_basename in
4225 CC)
4226 # Sun C++ 4.x
4227 # FIXME: insert proper C++ library support
4228 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4229 ;;
4230 lcc)
4231 # Lucid
4232 # FIXME: insert proper C++ library support
4233 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4234 ;;
4235 *)
4236 # FIXME: insert proper C++ library support
4237 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4238 ;;
4239 esac
4240 ;;
4241 solaris*)
4242 case $cc_basename in
4243 CC)
4244 # Sun C++ 4.2, 5.x and Centerline C++
4245 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4246 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4247 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4248 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4249
4250 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4251 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4252 case $host_os in
4253 solaris2.[0-5] | solaris2.[0-5].*) ;;
4254 *)
4255 # The C++ compiler is used as linker so we must use $wl
4256 # flag to pass the commands to the underlying system
4257 # linker.
4258 # Supported since Solaris 2.6 (maybe 2.5.1?)
4259 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4260 ;;
4261 esac
4262 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4263
4264 # Commands to make compiler produce verbose output that lists
4265 # what "hidden" libraries, object files and flags are used when
4266 # linking a shared library.
4267 #
4268 # There doesn't appear to be a way to prevent this compiler from
4269 # explicitly linking system object files so we need to strip them
4270 # from the output so that they don't get included in the library
4271 # dependencies.
4272 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4273
4274 # Archives containing C++ object files must be created using
4275 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4276 # necessary to make sure instantiated templates are included
4277 # in the archive.
4278 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4279 ;;
4280 gcx)
4281 # Green Hills C++ Compiler
4282 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4283
4284 # The C++ compiler must be used to create the archive.
4285 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4286 ;;
4287 *)
4288 # GNU C++ compiler with Solaris linker
4289 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4290 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4291 if $CC --version | grep -v '^2\.7' > /dev/null; then
4292 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4293 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4294 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4295
4296 # Commands to make compiler produce verbose output that lists
4297 # what "hidden" libraries, object files and flags are used when
4298 # linking a shared library.
4299 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4300 else
4301 # g++ 2.7 appears to require `-G' NOT `-shared' on this
4302 # platform.
4303 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4304 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4305 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4306
4307 # Commands to make compiler produce verbose output that lists
4308 # what "hidden" libraries, object files and flags are used when
4309 # linking a shared library.
4310 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4311 fi
4312
4313 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4314 fi
4315 ;;
4316 esac
4317 ;;
4318 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4319 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4320 ;;
4321 tandem*)
4322 case $cc_basename in
4323 NCC)
4324 # NonStop-UX NCC 3.20
4325 # FIXME: insert proper C++ library support
4326 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4327 ;;
4328 *)
4329 # FIXME: insert proper C++ library support
4330 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4331 ;;
4332 esac
4333 ;;
4334 vxworks*)
4335 # FIXME: insert proper C++ library support
4336 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4337 ;;
4338 *)
4339 # FIXME: insert proper C++ library support
4340 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4341 ;;
4342 esac
4343 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4344 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4345
4346 _LT_AC_TAGVAR(GCC, $1)="$GXX"
4347 _LT_AC_TAGVAR(LD, $1)="$LD"
4348
4349 AC_LIBTOOL_POSTDEP_PREDEP($1)
4350 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4351 AC_LIBTOOL_PROG_CC_C_O($1)
4352 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4353 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4354 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4355 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4356 AC_LIBTOOL_SYS_LIB_STRIP
4357 AC_LIBTOOL_DLOPEN_SELF($1)
4358
4359 AC_LIBTOOL_CONFIG($1)
4360
4361 AC_LANG_POP
4362 CC=$lt_save_CC
4363 LDCXX=$LD
4364 LD=$lt_save_LD
4365 GCC=$lt_save_GCC
4366 with_gnu_ldcxx=$with_gnu_ld
4367 with_gnu_ld=$lt_save_with_gnu_ld
4368 lt_cv_path_LDCXX=$lt_cv_path_LD
4369 lt_cv_path_LD=$lt_save_path_LD
4370 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4371 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4372 ])# AC_LIBTOOL_LANG_CXX_CONFIG
4373
4374 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4375 # ------------------------
4376 # Figure out "hidden" library dependencies from verbose
4377 # compiler output when linking a shared library.
4378 # Parse the compiler output and extract the necessary
4379 # objects, libraries and library flags.
4380 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4381 dnl we can't use the lt_simple_compile_test_code here,
4382 dnl because it contains code intended for an executable,
4383 dnl not a library. It's possible we should let each
4384 dnl tag define a new lt_????_link_test_code variable,
4385 dnl but it's only used here...
4386 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4387 int a;
4388 void foo (void) { a = 0; }
4389 EOF
4390 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4391 class Foo
4392 {
4393 public:
4394 Foo (void) { a = 0; }
4395 private:
4396 int a;
4397 };
4398 EOF
4399 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4400 subroutine foo
4401 implicit none
4402 integer*4 a
4403 a=0
4404 return
4405 end
4406 EOF
4407 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4408 public class foo {
4409 private int a;
4410 public void bar (void) {
4411 a = 0;
4412 }
4413 };
4414 EOF
4415 ])
4416 dnl Parse the compiler output and extract the necessary
4417 dnl objects, libraries and library flags.
4418 if AC_TRY_EVAL(ac_compile); then
4419 # Parse the compiler output and extract the necessary
4420 # objects, libraries and library flags.
4421
4422 # Sentinel used to keep track of whether or not we are before
4423 # the conftest object file.
4424 pre_test_object_deps_done=no
4425
4426 # The `*' in the case matches for architectures that use `case' in
4427 # $output_verbose_cmd can trigger glob expansion during the loop
4428 # eval without this substitution.
4429 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4430
4431 for p in `eval $output_verbose_link_cmd`; do
4432 case $p in
4433
4434 -L* | -R* | -l*)
4435 # Some compilers place space between "-{L,R}" and the path.
4436 # Remove the space.
4437 if test $p = "-L" \
4438 || test $p = "-R"; then
4439 prev=$p
4440 continue
4441 else
4442 prev=
4443 fi
4444
4445 if test "$pre_test_object_deps_done" = no; then
4446 case $p in
4447 -L* | -R*)
4448 # Internal compiler library paths should come after those
4449 # provided the user. The postdeps already come after the
4450 # user supplied libs so there is no need to process them.
4451 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4452 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4453 else
4454 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4455 fi
4456 ;;
4457 # The "-l" case would never come before the object being
4458 # linked, so don't bother handling this case.
4459 esac
4460 else
4461 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4462 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4463 else
4464 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4465 fi
4466 fi
4467 ;;
4468
4469 *.$objext)
4470 # This assumes that the test object file only shows up
4471 # once in the compiler output.
4472 if test "$p" = "conftest.$objext"; then
4473 pre_test_object_deps_done=yes
4474 continue
4475 fi
4476
4477 if test "$pre_test_object_deps_done" = no; then
4478 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4479 _LT_AC_TAGVAR(predep_objects, $1)="$p"
4480 else
4481 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4482 fi
4483 else
4484 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4485 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4486 else
4487 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4488 fi
4489 fi
4490 ;;
4491
4492 *) ;; # Ignore the rest.
4493
4494 esac
4495 done
4496
4497 # Clean up.
4498 rm -f a.out a.exe
4499 else
4500 echo "libtool.m4: error: problem compiling $1 test program"
4501 fi
4502
4503 $rm -f confest.$objext
4504
4505 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4506 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4507 esac
4508 ])# AC_LIBTOOL_POSTDEP_PREDEP
4509
4510 # AC_LIBTOOL_LANG_F77_CONFIG
4511 # ------------------------
4512 # Ensure that the configuration vars for the C compiler are
4513 # suitably defined. Those variables are subsequently used by
4514 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4515 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4516 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4517 [AC_REQUIRE([AC_PROG_F77])
4518 AC_LANG_PUSH(Fortran 77)
4519
4520 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4521 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4522 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4523 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4524 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4525 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4526 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4527 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4528 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4529 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4530 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4531 _LT_AC_TAGVAR(module_cmds, $1)=
4532 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4533 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4534 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4535 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4536 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4537 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4538
4539 # Source file extension for f77 test sources.
4540 ac_ext=f
4541
4542 # Object file extension for compiled f77 test sources.
4543 objext=o
4544 _LT_AC_TAGVAR(objext, $1)=$objext
4545
4546 # Code to be used in simple compile tests
4547 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4548
4549 # Code to be used in simple link tests
4550 lt_simple_link_test_code=" program t\n end\n"
4551
4552 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4553 _LT_AC_SYS_COMPILER
4554
4555 # Allow CC to be a program name with arguments.
4556 lt_save_CC="$CC"
4557 CC=${F77-"f77"}
4558 compiler=$CC
4559 _LT_AC_TAGVAR(compiler, $1)=$CC
4560 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4561
4562 AC_MSG_CHECKING([if libtool supports shared libraries])
4563 AC_MSG_RESULT([$can_build_shared])
4564
4565 AC_MSG_CHECKING([whether to build shared libraries])
4566 test "$can_build_shared" = "no" && enable_shared=no
4567
4568 # On AIX, shared libraries and static libraries use the same namespace, and
4569 # are all built from PIC.
4570 case "$host_os" in
4571 aix3*)
4572 test "$enable_shared" = yes && enable_static=no
4573 if test -n "$RANLIB"; then
4574 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4575 postinstall_cmds='$RANLIB $lib'
4576 fi
4577 ;;
4578 aix4* | aix5*)
4579 test "$enable_shared" = yes && enable_static=no
4580 ;;
4581 esac
4582 AC_MSG_RESULT([$enable_shared])
4583
4584 AC_MSG_CHECKING([whether to build static libraries])
4585 # Make sure either enable_shared or enable_static is yes.
4586 test "$enable_shared" = yes || enable_static=yes
4587 AC_MSG_RESULT([$enable_static])
4588
4589 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4590
4591 _LT_AC_TAGVAR(GCC, $1)="$G77"
4592 _LT_AC_TAGVAR(LD, $1)="$LD"
4593
4594 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4595 AC_LIBTOOL_PROG_CC_C_O($1)
4596 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4597 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4598 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4599 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4600 AC_LIBTOOL_SYS_LIB_STRIP
4601
4602
4603 AC_LIBTOOL_CONFIG($1)
4604
4605 AC_LANG_POP
4606 CC="$lt_save_CC"
4607 ])# AC_LIBTOOL_LANG_F77_CONFIG
4608
4609
4610 # AC_LIBTOOL_LANG_GCJ_CONFIG
4611 # --------------------------
4612 # Ensure that the configuration vars for the C compiler are
4613 # suitably defined. Those variables are subsequently used by
4614 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4615 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4616 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4617 [AC_LANG_SAVE
4618
4619 # Source file extension for Java test sources.
4620 ac_ext=java
4621
4622 # Object file extension for compiled Java test sources.
4623 objext=o
4624 _LT_AC_TAGVAR(objext, $1)=$objext
4625
4626 # Code to be used in simple compile tests
4627 lt_simple_compile_test_code="class foo {}\n"
4628
4629 # Code to be used in simple link tests
4630 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4631
4632 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4633 _LT_AC_SYS_COMPILER
4634
4635 # Allow CC to be a program name with arguments.
4636 lt_save_CC="$CC"
4637 CC=${GCJ-"gcj"}
4638 compiler=$CC
4639 _LT_AC_TAGVAR(compiler, $1)=$CC
4640
4641 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4642 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4643
4644 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4645 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4646 AC_LIBTOOL_PROG_CC_C_O($1)
4647 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4648 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4649 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4650 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4651 AC_LIBTOOL_SYS_LIB_STRIP
4652 AC_LIBTOOL_DLOPEN_SELF($1)
4653
4654 AC_LIBTOOL_CONFIG($1)
4655
4656 AC_LANG_RESTORE
4657 CC="$lt_save_CC"
4658 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4659
4660
4661 # AC_LIBTOOL_LANG_RC_CONFIG
4662 # --------------------------
4663 # Ensure that the configuration vars for the Windows resource compiler are
4664 # suitably defined. Those variables are subsequently used by
4665 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4666 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4667 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4668 [AC_LANG_SAVE
4669
4670 # Source file extension for RC test sources.
4671 ac_ext=rc
4672
4673 # Object file extension for compiled RC test sources.
4674 objext=o
4675 _LT_AC_TAGVAR(objext, $1)=$objext
4676
4677 # Code to be used in simple compile tests
4678 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4679
4680 # Code to be used in simple link tests
4681 lt_simple_link_test_code="$lt_simple_compile_test_code"
4682
4683 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4684 _LT_AC_SYS_COMPILER
4685
4686 # Allow CC to be a program name with arguments.
4687 lt_save_CC="$CC"
4688 CC=${RC-"windres"}
4689 compiler=$CC
4690 _LT_AC_TAGVAR(compiler, $1)=$CC
4691 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4692
4693 AC_LIBTOOL_CONFIG($1)
4694
4695 AC_LANG_RESTORE
4696 CC="$lt_save_CC"
4697 ])# AC_LIBTOOL_LANG_RC_CONFIG
4698
4699
4700 # AC_LIBTOOL_CONFIG([TAGNAME])
4701 # ----------------------------
4702 # If TAGNAME is not passed, then create an initial libtool script
4703 # with a default configuration from the untagged config vars. Otherwise
4704 # add code to config.status for appending the configuration named by
4705 # TAGNAME from the matching tagged config vars.
4706 AC_DEFUN([AC_LIBTOOL_CONFIG],
4707 [# The else clause should only fire when bootstrapping the
4708 # libtool distribution, otherwise you forgot to ship ltmain.sh
4709 # with your package, and you will get complaints that there are
4710 # no rules to generate ltmain.sh.
4711 if test -f "$ltmain"; then
4712 # See if we are running on zsh, and set the options which allow our commands through
4713 # without removal of \ escapes.
4714 if test -n "${ZSH_VERSION+set}" ; then
4715 setopt NO_GLOB_SUBST
4716 fi
4717 # Now quote all the things that may contain metacharacters while being
4718 # careful not to overquote the AC_SUBSTed values. We take copies of the
4719 # variables and quote the copies for generation of the libtool script.
4720 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4721 SED SHELL STRIP \
4722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4724 deplibs_check_method reload_flag reload_cmds need_locks \
4725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4726 lt_cv_sys_global_symbol_to_c_name_address \
4727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4728 old_postinstall_cmds old_postuninstall_cmds \
4729 _LT_AC_TAGVAR(compiler, $1) \
4730 _LT_AC_TAGVAR(CC, $1) \
4731 _LT_AC_TAGVAR(LD, $1) \
4732 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4733 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4734 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4735 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4736 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4737 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4738 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4739 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4740 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4741 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4742 _LT_AC_TAGVAR(predep_objects, $1) \
4743 _LT_AC_TAGVAR(postdep_objects, $1) \
4744 _LT_AC_TAGVAR(predeps, $1) \
4745 _LT_AC_TAGVAR(postdeps, $1) \
4746 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4747 _LT_AC_TAGVAR(archive_cmds, $1) \
4748 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4749 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4750 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4751 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4752 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4753 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4754 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4755 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4756 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4757 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4758 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4759 _LT_AC_TAGVAR(module_cmds, $1) \
4760 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4761 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4762 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4763 _LT_AC_TAGVAR(include_expsyms, $1); do
4764
4765 case $var in
4766 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4767 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4768 _LT_AC_TAGVAR(archive_cmds, $1) | \
4769 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4770 _LT_AC_TAGVAR(module_cmds, $1) | \
4771 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4772 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4773 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4774 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4775 postinstall_cmds | postuninstall_cmds | \
4776 old_postinstall_cmds | old_postuninstall_cmds | \
4777 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4778 # Double-quote double-evaled strings.
4779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4780 ;;
4781 *)
4782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4783 ;;
4784 esac
4785 done
4786
4787 case $lt_echo in
4788 *'\[$]0 --fallback-echo"')
4789 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4790 ;;
4791 esac
4792
4793 ifelse([$1], [],
4794 [cfgfile="${ofile}T"
4795 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4796 $rm -f "$cfgfile"
4797 AC_MSG_NOTICE([creating $ofile])],
4798 [cfgfile="$ofile"])
4799
4800 cat <<__EOF__ >> "$cfgfile"
4801 ifelse([$1], [],
4802 [#! $SHELL
4803
4804 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4805 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4806 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4807 #
4808 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4809 # Free Software Foundation, Inc.
4810 #
4811 # This file is part of GNU Libtool:
4812 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4813 #
4814 # This program is free software; you can redistribute it and/or modify
4815 # it under the terms of the GNU General Public License as published by
4816 # the Free Software Foundation; either version 2 of the License, or
4817 # (at your option) any later version.
4818 #
4819 # This program is distributed in the hope that it will be useful, but
4820 # WITHOUT ANY WARRANTY; without even the implied warranty of
4821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4822 # General Public License for more details.
4823 #
4824 # You should have received a copy of the GNU General Public License
4825 # along with this program; if not, write to the Free Software
4826 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4827 #
4828 # As a special exception to the GNU General Public License, if you
4829 # distribute this file as part of a program that contains a
4830 # configuration script generated by Autoconf, you may include it under
4831 # the same distribution terms that you use for the rest of that program.
4832
4833 # A sed program that does not truncate output.
4834 SED=$lt_SED
4835
4836 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4837 Xsed="$SED -e s/^X//"
4838
4839 # The HP-UX ksh and POSIX shell print the target directory to stdout
4840 # if CDPATH is set.
4841 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4842
4843 # The names of the tagged configurations supported by this script.
4844 available_tags=
4845
4846 # ### BEGIN LIBTOOL CONFIG],
4847 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4848
4849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4850
4851 # Shell to use when invoking shell scripts.
4852 SHELL=$lt_SHELL
4853
4854 # Whether or not to build shared libraries.
4855 build_libtool_libs=$enable_shared
4856
4857 # Whether or not to build static libraries.
4858 build_old_libs=$enable_static
4859
4860 # Whether or not to add -lc for building shared libraries.
4861 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4862
4863 # Whether or not to disallow shared libs when runtime libs are static
4864 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4865
4866 # Whether or not to optimize for fast installation.
4867 fast_install=$enable_fast_install
4868
4869 # The host system.
4870 host_alias=$host_alias
4871 host=$host
4872
4873 # An echo program that does not interpret backslashes.
4874 echo=$lt_echo
4875
4876 # The archiver.
4877 AR=$lt_AR
4878 AR_FLAGS=$lt_AR_FLAGS
4879
4880 # A C compiler.
4881 LTCC=$lt_LTCC
4882
4883 # A language-specific compiler.
4884 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4885
4886 # Is the compiler the GNU C compiler?
4887 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4888
4889 # An ERE matcher.
4890 EGREP=$lt_EGREP
4891
4892 # The linker used to build libraries.
4893 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4894
4895 # Whether we need hard or soft links.
4896 LN_S=$lt_LN_S
4897
4898 # A BSD-compatible nm program.
4899 NM=$lt_NM
4900
4901 # A symbol stripping program
4902 STRIP=$lt_STRIP
4903
4904 # Used to examine libraries when file_magic_cmd begins "file"
4905 MAGIC_CMD=$MAGIC_CMD
4906
4907 # Used on cygwin: DLL creation program.
4908 DLLTOOL="$DLLTOOL"
4909
4910 # Used on cygwin: object dumper.
4911 OBJDUMP="$OBJDUMP"
4912
4913 # Used on cygwin: assembler.
4914 AS="$AS"
4915
4916 # The name of the directory that contains temporary libtool files.
4917 objdir=$objdir
4918
4919 # How to create reloadable object files.
4920 reload_flag=$lt_reload_flag
4921 reload_cmds=$lt_reload_cmds
4922
4923 # How to pass a linker flag through the compiler.
4924 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4925
4926 # Object file suffix (normally "o").
4927 objext="$ac_objext"
4928
4929 # Old archive suffix (normally "a").
4930 libext="$libext"
4931
4932 # Shared library suffix (normally ".so").
4933 shrext_cmds='$shrext_cmds'
4934
4935 # Executable file suffix (normally "").
4936 exeext="$exeext"
4937
4938 # Additional compiler flags for building library objects.
4939 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4940 pic_mode=$pic_mode
4941
4942 # What is the maximum length of a command?
4943 max_cmd_len=$lt_cv_sys_max_cmd_len
4944
4945 # Does compiler simultaneously support -c and -o options?
4946 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4947
4948 # Must we lock files when doing compilation ?
4949 need_locks=$lt_need_locks
4950
4951 # Do we need the lib prefix for modules?
4952 need_lib_prefix=$need_lib_prefix
4953
4954 # Do we need a version for libraries?
4955 need_version=$need_version
4956
4957 # Whether dlopen is supported.
4958 dlopen_support=$enable_dlopen
4959
4960 # Whether dlopen of programs is supported.
4961 dlopen_self=$enable_dlopen_self
4962
4963 # Whether dlopen of statically linked programs is supported.
4964 dlopen_self_static=$enable_dlopen_self_static
4965
4966 # Compiler flag to prevent dynamic linking.
4967 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4968
4969 # Compiler flag to turn off builtin functions.
4970 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4971
4972 # Compiler flag to allow reflexive dlopens.
4973 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4974
4975 # Compiler flag to generate shared objects directly from archives.
4976 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4977
4978 # Compiler flag to generate thread-safe objects.
4979 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4980
4981 # Library versioning type.
4982 version_type=$version_type
4983
4984 # Format of library name prefix.
4985 libname_spec=$lt_libname_spec
4986
4987 # List of archive names. First name is the real one, the rest are links.
4988 # The last name is the one that the linker finds with -lNAME.
4989 library_names_spec=$lt_library_names_spec
4990
4991 # The coded name of the library, if different from the real name.
4992 soname_spec=$lt_soname_spec
4993
4994 # Commands used to build and install an old-style archive.
4995 RANLIB=$lt_RANLIB
4996 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4997 old_postinstall_cmds=$lt_old_postinstall_cmds
4998 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4999
5000 # Create an old-style archive from a shared archive.
5001 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5002
5003 # Create a temporary old-style archive to link instead of a shared archive.
5004 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5005
5006 # Commands used to build and install a shared archive.
5007 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5008 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5009 postinstall_cmds=$lt_postinstall_cmds
5010 postuninstall_cmds=$lt_postuninstall_cmds
5011
5012 # Commands used to build a loadable module (assumed same as above if empty)
5013 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5014 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5015
5016 # Commands to strip libraries.
5017 old_striplib=$lt_old_striplib
5018 striplib=$lt_striplib
5019
5020 # Dependencies to place before the objects being linked to create a
5021 # shared library.
5022 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5023
5024 # Dependencies to place after the objects being linked to create a
5025 # shared library.
5026 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5027
5028 # Dependencies to place before the objects being linked to create a
5029 # shared library.
5030 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5031
5032 # Dependencies to place after the objects being linked to create a
5033 # shared library.
5034 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5035
5036 # The library search path used internally by the compiler when linking
5037 # a shared library.
5038 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5039
5040 # Method to check whether dependent libraries are shared objects.
5041 deplibs_check_method=$lt_deplibs_check_method
5042
5043 # Command to use when deplibs_check_method == file_magic.
5044 file_magic_cmd=$lt_file_magic_cmd
5045
5046 # Flag that allows shared libraries with undefined symbols to be built.
5047 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5048
5049 # Flag that forces no undefined symbols.
5050 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5051
5052 # Commands used to finish a libtool library installation in a directory.
5053 finish_cmds=$lt_finish_cmds
5054
5055 # Same as above, but a single script fragment to be evaled but not shown.
5056 finish_eval=$lt_finish_eval
5057
5058 # Take the output of nm and produce a listing of raw symbols and C names.
5059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5060
5061 # Transform the output of nm in a proper C declaration
5062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5063
5064 # Transform the output of nm in a C name address pair
5065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5066
5067 # This is the shared library runtime path variable.
5068 runpath_var=$runpath_var
5069
5070 # This is the shared library path variable.
5071 shlibpath_var=$shlibpath_var
5072
5073 # Is shlibpath searched before the hard-coded library search path?
5074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5075
5076 # How to hardcode a shared library path into an executable.
5077 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5078
5079 # Whether we should hardcode library paths into libraries.
5080 hardcode_into_libs=$hardcode_into_libs
5081
5082 # Flag to hardcode \$libdir into a binary during linking.
5083 # This must work even if \$libdir does not exist.
5084 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5085
5086 # If ld is used when linking, flag to hardcode \$libdir into
5087 # a binary during linking. This must work even if \$libdir does
5088 # not exist.
5089 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5090
5091 # Whether we need a single -rpath flag with a separated argument.
5092 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5093
5094 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5095 # resulting binary.
5096 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5097
5098 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5099 # resulting binary.
5100 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5101
5102 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5103 # the resulting binary.
5104 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5105
5106 # Set to yes if building a shared library automatically hardcodes DIR into the library
5107 # and all subsequent libraries and executables linked against it.
5108 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5109
5110 # Variables whose values should be saved in libtool wrapper scripts and
5111 # restored at relink time.
5112 variables_saved_for_relink="$variables_saved_for_relink"
5113
5114 # Whether libtool must link a program against all its dependency libraries.
5115 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5116
5117 # Compile-time system search path for libraries
5118 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5119
5120 # Run-time system search path for libraries
5121 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5122
5123 # Fix the shell variable \$srcfile for the compiler.
5124 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5125
5126 # Set to yes if exported symbols are required.
5127 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5128
5129 # The commands to list exported symbols.
5130 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5131
5132 # The commands to extract the exported symbol list from a shared archive.
5133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5134
5135 # Symbols that should not be listed in the preloaded symbols.
5136 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5137
5138 # Symbols that must always be exported.
5139 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5140
5141 ifelse([$1],[],
5142 [# ### END LIBTOOL CONFIG],
5143 [# ### END LIBTOOL TAG CONFIG: $tagname])
5144
5145 __EOF__
5146
5147 ifelse([$1],[], [
5148 case $host_os in
5149 aix3*)
5150 cat <<\EOF >> "$cfgfile"
5151
5152 # AIX sometimes has problems with the GCC collect2 program. For some
5153 # reason, if we set the COLLECT_NAMES environment variable, the problems
5154 # vanish in a puff of smoke.
5155 if test "X${COLLECT_NAMES+set}" != Xset; then
5156 COLLECT_NAMES=
5157 export COLLECT_NAMES
5158 fi
5159 EOF
5160 ;;
5161 esac
5162
5163 # We use sed instead of cat because bash on DJGPP gets confused if
5164 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5165 # text mode, it properly converts lines to CR/LF. This bash problem
5166 # is reportedly fixed, but why not run on old versions too?
5167 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5168
5169 mv -f "$cfgfile" "$ofile" || \
5170 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5171 chmod +x "$ofile"
5172 ])
5173 else
5174 # If there is no Makefile yet, we rely on a make rule to execute
5175 # `config.status --recheck' to rerun these tests and create the
5176 # libtool script then.
5177 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5178 if test -f "$ltmain_in"; then
5179 test -f Makefile && make "$ltmain"
5180 fi
5181 fi
5182 ])# AC_LIBTOOL_CONFIG
5183
5184
5185 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5186 # -------------------------------------------
5187 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5188 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5189
5190 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5191
5192 if test "$GCC" = yes; then
5193 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5194
5195 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5196 lt_cv_prog_compiler_rtti_exceptions,
5197 [-fno-rtti -fno-exceptions], [],
5198 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5199 fi
5200 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5201
5202
5203 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5204 # ---------------------------------
5205 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5206 [AC_REQUIRE([AC_CANONICAL_HOST])
5207 AC_REQUIRE([AC_PROG_NM])
5208 AC_REQUIRE([AC_OBJEXT])
5209 # Check for command to grab the raw symbol name followed by C symbol from nm.
5210 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5211 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5212 [
5213 # These are sane defaults that work on at least a few old systems.
5214 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5215
5216 # Character class describing NM global symbol codes.
5217 symcode='[[BCDEGRST]]'
5218
5219 # Regexp to match symbols that can be accessed directly from C.
5220 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5221
5222 # Transform the above into a raw symbol and a C symbol.
5223 symxfrm='\1 \2\3 \3'
5224
5225 # Transform an extracted symbol line into a proper C declaration
5226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5227
5228 # Transform an extracted symbol line into symbol name and symbol address
5229 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5230
5231 # Define system-specific variables.
5232 case $host_os in
5233 aix*)
5234 symcode='[[BCDT]]'
5235 ;;
5236 cygwin* | mingw* | pw32*)
5237 symcode='[[ABCDGISTW]]'
5238 ;;
5239 hpux*) # Its linker distinguishes data from code symbols
5240 if test "$host_cpu" = ia64; then
5241 symcode='[[ABCDEGRST]]'
5242 fi
5243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5244 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5245 ;;
5246 irix* | nonstopux*)
5247 symcode='[[BCDEGRST]]'
5248 ;;
5249 osf*)
5250 symcode='[[BCDEGQRST]]'
5251 ;;
5252 solaris* | sysv5*)
5253 symcode='[[BDRT]]'
5254 ;;
5255 sysv4)
5256 symcode='[[DFNSTU]]'
5257 ;;
5258 esac
5259
5260 # Handle CRLF in mingw tool chain
5261 opt_cr=
5262 case $build_os in
5263 mingw*)
5264 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5265 ;;
5266 esac
5267
5268 # If we're using GNU nm, then use its standard symbol codes.
5269 case `$NM -V 2>&1` in
5270 *GNU* | *'with BFD'*)
5271 symcode='[[ABCDGIRSTW]]' ;;
5272 esac
5273
5274 # Try without a prefix undercore, then with it.
5275 for ac_symprfx in "" "_"; do
5276
5277 # Write the raw and C identifiers.
5278 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5279
5280 # Check to see that the pipe works correctly.
5281 pipe_works=no
5282
5283 rm -f conftest*
5284 cat > conftest.$ac_ext <<EOF
5285 #ifdef __cplusplus
5286 extern "C" {
5287 #endif
5288 char nm_test_var;
5289 void nm_test_func(){}
5290 #ifdef __cplusplus
5291 }
5292 #endif
5293 int main(){nm_test_var='a';nm_test_func();return(0);}
5294 EOF
5295
5296 if AC_TRY_EVAL(ac_compile); then
5297 # Now try to grab the symbols.
5298 nlist=conftest.nm
5299 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5300 # Try sorting and uniquifying the output.
5301 if sort "$nlist" | uniq > "$nlist"T; then
5302 mv -f "$nlist"T "$nlist"
5303 else
5304 rm -f "$nlist"T
5305 fi
5306
5307 # Make sure that we snagged all the symbols we need.
5308 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5309 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5310 cat <<EOF > conftest.$ac_ext
5311 #ifdef __cplusplus
5312 extern "C" {
5313 #endif
5314
5315 EOF
5316 # Now generate the symbol file.
5317 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5318
5319 cat <<EOF >> conftest.$ac_ext
5320 #if defined (__STDC__) && __STDC__
5321 # define lt_ptr_t void *
5322 #else
5323 # define lt_ptr_t char *
5324 # define const
5325 #endif
5326
5327 /* The mapping between symbol names and symbols. */
5328 const struct {
5329 const char *name;
5330 lt_ptr_t address;
5331 }
5332 lt_preloaded_symbols[[]] =
5333 {
5334 EOF
5335 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5336 cat <<\EOF >> conftest.$ac_ext
5337 {0, (lt_ptr_t) 0}
5338 };
5339
5340 #ifdef __cplusplus
5341 }
5342 #endif
5343 EOF
5344 # Now try linking the two files.
5345 mv conftest.$ac_objext conftstm.$ac_objext
5346 lt_save_LIBS="$LIBS"
5347 lt_save_CFLAGS="$CFLAGS"
5348 LIBS="conftstm.$ac_objext"
5349 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5350 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5351 pipe_works=yes
5352 fi
5353 LIBS="$lt_save_LIBS"
5354 CFLAGS="$lt_save_CFLAGS"
5355 else
5356 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5357 fi
5358 else
5359 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5360 fi
5361 else
5362 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5363 fi
5364 else
5365 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5366 cat conftest.$ac_ext >&5
5367 fi
5368 rm -f conftest* conftst*
5369
5370 # Do not use the global_symbol_pipe unless it works.
5371 if test "$pipe_works" = yes; then
5372 break
5373 else
5374 lt_cv_sys_global_symbol_pipe=
5375 fi
5376 done
5377 ])
5378 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5379 lt_cv_sys_global_symbol_to_cdecl=
5380 fi
5381 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5382 AC_MSG_RESULT(failed)
5383 else
5384 AC_MSG_RESULT(ok)
5385 fi
5386 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5387
5388
5389 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5390 # ---------------------------------------
5391 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5392 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5393 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5394 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5395
5396 AC_MSG_CHECKING([for $compiler option to produce PIC])
5397 ifelse([$1],[CXX],[
5398 # C++ specific cases for pic, static, wl, etc.
5399 if test "$GXX" = yes; then
5400 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5401 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5402
5403 case $host_os in
5404 aix*)
5405 # All AIX code is PIC.
5406 if test "$host_cpu" = ia64; then
5407 # AIX 5 now supports IA64 processor
5408 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5409 fi
5410 ;;
5411 amigaos*)
5412 # FIXME: we need at least 68020 code to build shared libraries, but
5413 # adding the `-m68020' flag to GCC prevents building anything better,
5414 # like `-m68040'.
5415 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5416 ;;
5417 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5418 # PIC is the default for these OSes.
5419 ;;
5420 mingw* | os2* | pw32*)
5421 # This hack is so that the source file can tell whether it is being
5422 # built for inclusion in a dll (and should export symbols for example).
5423 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5424 ;;
5425 darwin* | rhapsody*)
5426 # PIC is the default on this platform
5427 # Common symbols not allowed in MH_DYLIB files
5428 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5429 ;;
5430 *djgpp*)
5431 # DJGPP does not support shared libraries at all
5432 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5433 ;;
5434 sysv4*MP*)
5435 if test -d /usr/nec; then
5436 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5437 fi
5438 ;;
5439 hpux*)
5440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5441 # not for PA HP-UX.
5442 case "$host_cpu" in
5443 hppa*64*|ia64*)
5444 ;;
5445 *)
5446 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5447 ;;
5448 esac
5449 ;;
5450 *)
5451 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5452 ;;
5453 esac
5454 else
5455 case $host_os in
5456 aix4* | aix5*)
5457 # All AIX code is PIC.
5458 if test "$host_cpu" = ia64; then
5459 # AIX 5 now supports IA64 processor
5460 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5461 else
5462 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5463 fi
5464 ;;
5465 chorus*)
5466 case $cc_basename in
5467 cxch68)
5468 # Green Hills C++ Compiler
5469 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5470 ;;
5471 esac
5472 ;;
5473 dgux*)
5474 case $cc_basename in
5475 ec++)
5476 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5477 ;;
5478 ghcx)
5479 # Green Hills C++ Compiler
5480 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5481 ;;
5482 *)
5483 ;;
5484 esac
5485 ;;
5486 freebsd* | kfreebsd*-gnu)
5487 # FreeBSD uses GNU C++
5488 ;;
5489 hpux9* | hpux10* | hpux11*)
5490 case $cc_basename in
5491 CC)
5492 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5493 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5494 if test "$host_cpu" != ia64; then
5495 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5496 fi
5497 ;;
5498 aCC)
5499 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5500 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5501 case "$host_cpu" in
5502 hppa*64*|ia64*)
5503 # +Z the default
5504 ;;
5505 *)
5506 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5507 ;;
5508 esac
5509 ;;
5510 *)
5511 ;;
5512 esac
5513 ;;
5514 irix5* | irix6* | nonstopux*)
5515 case $cc_basename in
5516 CC)
5517 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5518 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5519 # CC pic flag -KPIC is the default.
5520 ;;
5521 *)
5522 ;;
5523 esac
5524 ;;
5525 linux*)
5526 case $cc_basename in
5527 KCC)
5528 # KAI C++ Compiler
5529 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5530 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5531 ;;
5532 icpc)
5533 # Intel C++
5534 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5535 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5536 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5537 ;;
5538 cxx)
5539 # Compaq C++
5540 # Make sure the PIC flag is empty. It appears that all Alpha
5541 # Linux and Compaq Tru64 Unix objects are PIC.
5542 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5543 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5544 ;;
5545 *)
5546 ;;
5547 esac
5548 ;;
5549 lynxos*)
5550 ;;
5551 m88k*)
5552 ;;
5553 mvs*)
5554 case $cc_basename in
5555 cxx)
5556 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5557 ;;
5558 *)
5559 ;;
5560 esac
5561 ;;
5562 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5563 ;;
5564 osf3* | osf4* | osf5*)
5565 case $cc_basename in
5566 KCC)
5567 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5568 ;;
5569 RCC)
5570 # Rational C++ 2.4.1
5571 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5572 ;;
5573 cxx)
5574 # Digital/Compaq C++
5575 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5576 # Make sure the PIC flag is empty. It appears that all Alpha
5577 # Linux and Compaq Tru64 Unix objects are PIC.
5578 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5579 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5580 ;;
5581 *)
5582 ;;
5583 esac
5584 ;;
5585 psos*)
5586 ;;
5587 sco*)
5588 case $cc_basename in
5589 CC)
5590 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5591 ;;
5592 *)
5593 ;;
5594 esac
5595 ;;
5596 solaris*)
5597 case $cc_basename in
5598 CC)
5599 # Sun C++ 4.2, 5.x and Centerline C++
5600 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5601 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5602 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5603 ;;
5604 gcx)
5605 # Green Hills C++ Compiler
5606 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5607 ;;
5608 *)
5609 ;;
5610 esac
5611 ;;
5612 sunos4*)
5613 case $cc_basename in
5614 CC)
5615 # Sun C++ 4.x
5616 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5617 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5618 ;;
5619 lcc)
5620 # Lucid
5621 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5622 ;;
5623 *)
5624 ;;
5625 esac
5626 ;;
5627 tandem*)
5628 case $cc_basename in
5629 NCC)
5630 # NonStop-UX NCC 3.20
5631 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5632 ;;
5633 *)
5634 ;;
5635 esac
5636 ;;
5637 unixware*)
5638 ;;
5639 vxworks*)
5640 ;;
5641 *)
5642 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5643 ;;
5644 esac
5645 fi
5646 ],
5647 [
5648 if test "$GCC" = yes; then
5649 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5650 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5651
5652 case $host_os in
5653 aix*)
5654 # All AIX code is PIC.
5655 if test "$host_cpu" = ia64; then
5656 # AIX 5 now supports IA64 processor
5657 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5658 fi
5659 ;;
5660
5661 amigaos*)
5662 # FIXME: we need at least 68020 code to build shared libraries, but
5663 # adding the `-m68020' flag to GCC prevents building anything better,
5664 # like `-m68040'.
5665 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5666 ;;
5667
5668 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5669 # PIC is the default for these OSes.
5670 ;;
5671
5672 mingw* | pw32* | os2*)
5673 # This hack is so that the source file can tell whether it is being
5674 # built for inclusion in a dll (and should export symbols for example).
5675 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5676 ;;
5677
5678 darwin* | rhapsody*)
5679 # PIC is the default on this platform
5680 # Common symbols not allowed in MH_DYLIB files
5681 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5682 ;;
5683
5684 msdosdjgpp*)
5685 # Just because we use GCC doesn't mean we suddenly get shared libraries
5686 # on systems that don't support them.
5687 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5688 enable_shared=no
5689 ;;
5690
5691 sysv4*MP*)
5692 if test -d /usr/nec; then
5693 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5694 fi
5695 ;;
5696
5697 hpux*)
5698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5699 # not for PA HP-UX.
5700 case "$host_cpu" in
5701 hppa*64*|ia64*)
5702 # +Z the default
5703 ;;
5704 *)
5705 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5706 ;;
5707 esac
5708 ;;
5709
5710 *)
5711 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5712 ;;
5713 esac
5714 else
5715 # PORTME Check for flag to pass linker flags through the system compiler.
5716 case $host_os in
5717 aix*)
5718 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5719 if test "$host_cpu" = ia64; then
5720 # AIX 5 now supports IA64 processor
5721 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5722 else
5723 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5724 fi
5725 ;;
5726
5727 mingw* | pw32* | os2*)
5728 # This hack is so that the source file can tell whether it is being
5729 # built for inclusion in a dll (and should export symbols for example).
5730 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5731 ;;
5732
5733 hpux9* | hpux10* | hpux11*)
5734 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5735 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5736 # not for PA HP-UX.
5737 case "$host_cpu" in
5738 hppa*64*|ia64*)
5739 # +Z the default
5740 ;;
5741 *)
5742 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5743 ;;
5744 esac
5745 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5746 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5747 ;;
5748
5749 irix5* | irix6* | nonstopux*)
5750 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5751 # PIC (with -KPIC) is the default.
5752 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5753 ;;
5754
5755 newsos6)
5756 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5757 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5758 ;;
5759
5760 linux*)
5761 case $CC in
5762 icc* | ecc*)
5763 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5764 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5765 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5766 ;;
5767 ccc*)
5768 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5769 # All Alpha code is PIC.
5770 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5771 ;;
5772 esac
5773 ;;
5774
5775 osf3* | osf4* | osf5*)
5776 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5777 # All OSF/1 code is PIC.
5778 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5779 ;;
5780
5781 sco3.2v5*)
5782 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5783 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5784 ;;
5785
5786 solaris*)
5787 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5788 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5789 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5790 ;;
5791
5792 sunos4*)
5793 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5794 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5795 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5796 ;;
5797
5798 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5799 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5800 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5801 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5802 ;;
5803
5804 sysv4*MP*)
5805 if test -d /usr/nec ;then
5806 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5807 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5808 fi
5809 ;;
5810
5811 uts4*)
5812 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5813 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5814 ;;
5815
5816 *)
5817 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5818 ;;
5819 esac
5820 fi
5821 ])
5822 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5823
5824 #
5825 # Check to make sure the PIC flag actually works.
5826 #
5827 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5828 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5829 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5830 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5831 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5832 "" | " "*) ;;
5833 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5834 esac],
5835 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5836 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5837 fi
5838 case "$host_os" in
5839 # For platforms which do not support PIC, -DPIC is meaningless:
5840 *djgpp*)
5841 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5842 ;;
5843 *)
5844 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5845 ;;
5846 esac
5847 ])
5848
5849
5850 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5851 # ------------------------------------
5852 # See if the linker supports building shared libraries.
5853 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5854 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5855 ifelse([$1],[CXX],[
5856 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5857 case $host_os in
5858 aix4* | aix5*)
5859 # If we're using GNU nm, then we don't want the "-C" option.
5860 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5861 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5862 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5863 else
5864 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5865 fi
5866 ;;
5867 pw32*)
5868 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5869 ;;
5870 cygwin* | mingw*)
5871 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5872 ;;
5873 linux*)
5874 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5875 ;;
5876 *)
5877 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5878 ;;
5879 esac
5880 ],[
5881 runpath_var=
5882 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5883 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5884 _LT_AC_TAGVAR(archive_cmds, $1)=
5885 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5886 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5887 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5888 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5889 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5890 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5891 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5892 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5893 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5894 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5895 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5896 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5897 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5898 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5899 _LT_AC_TAGVAR(module_cmds, $1)=
5900 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5901 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5902 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5903 # include_expsyms should be a list of space-separated symbols to be *always*
5904 # included in the symbol list
5905 _LT_AC_TAGVAR(include_expsyms, $1)=
5906 # exclude_expsyms can be an extended regexp of symbols to exclude
5907 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5908 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5909 # as well as any symbol that contains `d'.
5910 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5912 # platforms (ab)use it in PIC code, but their linkers get confused if
5913 # the symbol is explicitly referenced. Since portable code cannot
5914 # rely on this symbol name, it's probably fine to never include it in
5915 # preloaded symbol tables.
5916 extract_expsyms_cmds=
5917
5918 case $host_os in
5919 cygwin* | mingw* | pw32*)
5920 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5921 # When not using gcc, we currently assume that we are using
5922 # Microsoft Visual C++.
5923 if test "$GCC" != yes; then
5924 with_gnu_ld=no
5925 fi
5926 ;;
5927 openbsd*)
5928 with_gnu_ld=no
5929 ;;
5930 esac
5931
5932 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5933 if test "$with_gnu_ld" = yes; then
5934 # If archive_cmds runs LD, not CC, wlarc should be empty
5935 wlarc='${wl}'
5936
5937 # See if GNU ld supports shared libraries.
5938 case $host_os in
5939 aix3* | aix4* | aix5*)
5940 # On AIX/PPC, the GNU linker is very broken
5941 if test "$host_cpu" != ia64; then
5942 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5943 cat <<EOF 1>&2
5944
5945 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5946 *** to be unable to reliably create shared libraries on AIX.
5947 *** Therefore, libtool is disabling shared libraries support. If you
5948 *** really care for shared libraries, you may want to modify your PATH
5949 *** so that a non-GNU linker is found, and then restart.
5950
5951 EOF
5952 fi
5953 ;;
5954
5955 amigaos*)
5956 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5957 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5958 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5959
5960 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5961 # that the semantics of dynamic libraries on AmigaOS, at least up
5962 # to version 4, is to share data among multiple programs linked
5963 # with the same dynamic library. Since this doesn't match the
5964 # behavior of shared libraries on other platforms, we can't use
5965 # them.
5966 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5967 ;;
5968
5969 beos*)
5970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5971 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5973 # support --undefined. This deserves some investigation. FIXME
5974 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5975 else
5976 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5977 fi
5978 ;;
5979
5980 cygwin* | mingw* | pw32*)
5981 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5982 # as there is no search path for DLLs.
5983 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5984 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5985 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5986 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5987 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5988
5989 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5990 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5991 # If the export-symbols file already is a .def file (1st line
5992 # is EXPORTS), use it as is; otherwise, prepend...
5993 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5994 cp $export_symbols $output_objdir/$soname.def;
5995 else
5996 echo EXPORTS > $output_objdir/$soname.def;
5997 cat $export_symbols >> $output_objdir/$soname.def;
5998 fi~
5999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6000 else
6001 ld_shlibs=no
6002 fi
6003 ;;
6004
6005 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6007 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6008 wlarc=
6009 else
6010 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6011 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6012 fi
6013 ;;
6014
6015 solaris* | sysv5*)
6016 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6017 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6018 cat <<EOF 1>&2
6019
6020 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6021 *** create shared libraries on Solaris systems. Therefore, libtool
6022 *** is disabling shared libraries support. We urge you to upgrade GNU
6023 *** binutils to release 2.9.1 or newer. Another option is to modify
6024 *** your PATH or compiler configuration so that the native linker is
6025 *** used, and then restart.
6026
6027 EOF
6028 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6029 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6030 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6031 else
6032 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6033 fi
6034 ;;
6035
6036 sunos4*)
6037 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6038 wlarc=
6039 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6040 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6041 ;;
6042
6043 linux*)
6044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6045 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6046 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6047 supports_anon_versioning=no
6048 case `$LD -v 2>/dev/null` in
6049 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6050 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6051 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6052 *\ 2.11.*) ;; # other 2.11 versions
6053 *) supports_anon_versioning=yes ;;
6054 esac
6055 if test $supports_anon_versioning = yes; then
6056 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6058 $echo "local: *; };" >> $output_objdir/$libname.ver~
6059 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6060 else
6061 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6062 fi
6063 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6064 else
6065 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6066 fi
6067 ;;
6068
6069 *)
6070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6071 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6072 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6073 else
6074 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6075 fi
6076 ;;
6077 esac
6078
6079 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6080 runpath_var=LD_RUN_PATH
6081 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6082 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6083 # ancient GNU ld didn't support --whole-archive et. al.
6084 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6085 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6086 else
6087 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6088 fi
6089 fi
6090 else
6091 # PORTME fill in a description of your system's linker (not GNU ld)
6092 case $host_os in
6093 aix3*)
6094 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6095 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6096 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6097 # Note: this linker hardcodes the directories in LIBPATH if there
6098 # are no directories specified by -L.
6099 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6100 if test "$GCC" = yes && test -z "$link_static_flag"; then
6101 # Neither direct hardcoding nor static linking is supported with a
6102 # broken collect2.
6103 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6104 fi
6105 ;;
6106
6107 aix4* | aix5*)
6108 if test "$host_cpu" = ia64; then
6109 # On IA64, the linker does run time linking by default, so we don't
6110 # have to do anything special.
6111 aix_use_runtimelinking=no
6112 exp_sym_flag='-Bexport'
6113 no_entry_flag=""
6114 else
6115 # If we're using GNU nm, then we don't want the "-C" option.
6116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6118 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6119 else
6120 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6121 fi
6122 aix_use_runtimelinking=no
6123
6124 # Test if we are trying to use run time linking or normal
6125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6126 # need to do runtime linking.
6127 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6128 for ld_flag in $LDFLAGS; do
6129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6130 aix_use_runtimelinking=yes
6131 break
6132 fi
6133 done
6134 esac
6135
6136 exp_sym_flag='-bexport'
6137 no_entry_flag='-bnoentry'
6138 fi
6139
6140 # When large executables or shared objects are built, AIX ld can
6141 # have problems creating the table of contents. If linking a library
6142 # or program results in "error TOC overflow" add -mminimal-toc to
6143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6145
6146 _LT_AC_TAGVAR(archive_cmds, $1)=''
6147 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6148 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6149 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6150
6151 if test "$GCC" = yes; then
6152 case $host_os in aix4.[012]|aix4.[012].*)
6153 # We only want to do this on AIX 4.2 and lower, the check
6154 # below for broken collect2 doesn't work under 4.3+
6155 collect2name=`${CC} -print-prog-name=collect2`
6156 if test -f "$collect2name" && \
6157 strings "$collect2name" | grep resolve_lib_name >/dev/null
6158 then
6159 # We have reworked collect2
6160 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6161 else
6162 # We have old collect2
6163 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6164 # It fails to find uninstalled libraries when the uninstalled
6165 # path is not listed in the libpath. Setting hardcode_minus_L
6166 # to unsupported forces relinking
6167 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6168 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6169 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6170 fi
6171 esac
6172 shared_flag='-shared'
6173 else
6174 # not using gcc
6175 if test "$host_cpu" = ia64; then
6176 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6177 # chokes on -Wl,-G. The following line is correct:
6178 shared_flag='-G'
6179 else
6180 if test "$aix_use_runtimelinking" = yes; then
6181 shared_flag='${wl}-G'
6182 else
6183 shared_flag='${wl}-bM:SRE'
6184 fi
6185 fi
6186 fi
6187
6188 # It seems that -bexpall does not export symbols beginning with
6189 # underscore (_), so it is better to generate a list of symbols to export.
6190 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6191 if test "$aix_use_runtimelinking" = yes; then
6192 # Warning - without using the other runtime loading flags (-brtl),
6193 # -berok will link without error, but may produce a broken library.
6194 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6195 # Determine the default libpath from the value encoded in an empty executable.
6196 _LT_AC_SYS_LIBPATH_AIX
6197 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6198 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6199 else
6200 if test "$host_cpu" = ia64; then
6201 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6202 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6203 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6204 else
6205 # Determine the default libpath from the value encoded in an empty executable.
6206 _LT_AC_SYS_LIBPATH_AIX
6207 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6208 # Warning - without using the other run time loading flags,
6209 # -berok will link without error, but may produce a broken library.
6210 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6211 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6212 # -bexpall does not export symbols beginning with underscore (_)
6213 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6214 # Exported symbols can be pulled into shared objects from archives
6215 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6216 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6217 # This is similar to how AIX traditionally builds it's shared libraries.
6218 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6219 fi
6220 fi
6221 ;;
6222
6223 amigaos*)
6224 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6225 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6226 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6227 # see comment about different semantics on the GNU ld section
6228 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6229 ;;
6230
6231 bsdi4*)
6232 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6233 ;;
6234
6235 cygwin* | mingw* | pw32*)
6236 # When not using gcc, we currently assume that we are using
6237 # Microsoft Visual C++.
6238 # hardcode_libdir_flag_spec is actually meaningless, as there is
6239 # no search path for DLLs.
6240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6241 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6242 # Tell ltmain to make .lib files, not .a files.
6243 libext=lib
6244 # Tell ltmain to make .dll files, not .so files.
6245 shrext_cmds=".dll"
6246 # FIXME: Setting linknames here is a bad hack.
6247 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6248 # The linker will automatically build a .lib file if we build a DLL.
6249 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6250 # FIXME: Should let the user specify the lib program.
6251 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6252 fix_srcfile_path='`cygpath -w "$srcfile"`'
6253 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6254 ;;
6255
6256 darwin* | rhapsody*)
6257 if test "$GXX" = yes ; then
6258 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6259 case "$host_os" in
6260 rhapsody* | darwin1.[[012]])
6261 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6262 ;;
6263 *) # Darwin 1.3 on
6264 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6265 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6266 else
6267 case ${MACOSX_DEPLOYMENT_TARGET} in
6268 10.[[012]])
6269 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6270 ;;
6271 10.*)
6272 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6273 ;;
6274 esac
6275 fi
6276 ;;
6277 esac
6278 lt_int_apple_cc_single_mod=no
6279 output_verbose_link_cmd='echo'
6280 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6281 lt_int_apple_cc_single_mod=yes
6282 fi
6283 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6284 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6285 else
6286 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6287 fi
6288 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6289 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6290 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6291 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6292 else
6293 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6294 fi
6295 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6296 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6297 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6298 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6299 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6300 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6301 else
6302 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6303 fi
6304 ;;
6305
6306 dgux*)
6307 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6308 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6309 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6310 ;;
6311
6312 freebsd1*)
6313 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6314 ;;
6315
6316 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6317 # support. Future versions do this automatically, but an explicit c++rt0.o
6318 # does not break anything, and helps significantly (at the cost of a little
6319 # extra space).
6320 freebsd2.2*)
6321 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6322 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6323 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6324 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6325 ;;
6326
6327 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6328 freebsd2*)
6329 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6330 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6331 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6332 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6333 ;;
6334
6335 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6336 freebsd* | kfreebsd*-gnu)
6337 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6338 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6339 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6340 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6341 ;;
6342
6343 hpux9*)
6344 if test "$GCC" = yes; then
6345 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6346 else
6347 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6348 fi
6349 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6350 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6351 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6352
6353 # hardcode_minus_L: Not really in the search PATH,
6354 # but as the default location of the library.
6355 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6356 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6357 ;;
6358
6359 hpux10* | hpux11*)
6360 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6361 case "$host_cpu" in
6362 hppa*64*|ia64*)
6363 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6364 ;;
6365 *)
6366 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6367 ;;
6368 esac
6369 else
6370 case "$host_cpu" in
6371 hppa*64*|ia64*)
6372 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6373 ;;
6374 *)
6375 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6376 ;;
6377 esac
6378 fi
6379 if test "$with_gnu_ld" = no; then
6380 case "$host_cpu" in
6381 hppa*64*)
6382 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6383 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6384 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6385 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6386 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6387 ;;
6388 ia64*)
6389 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6390 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6391 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6392
6393 # hardcode_minus_L: Not really in the search PATH,
6394 # but as the default location of the library.
6395 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6396 ;;
6397 *)
6398 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6399 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6400 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6401 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6402
6403 # hardcode_minus_L: Not really in the search PATH,
6404 # but as the default location of the library.
6405 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6406 ;;
6407 esac
6408 fi
6409 ;;
6410
6411 irix5* | irix6* | nonstopux*)
6412 if test "$GCC" = yes; then
6413 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6414 else
6415 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6416 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6417 fi
6418 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6419 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6420 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6421 ;;
6422
6423 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6425 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6426 else
6427 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6428 fi
6429 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6430 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6431 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6432 ;;
6433
6434 newsos6)
6435 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6436 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6437 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6438 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6439 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6440 ;;
6441
6442 openbsd*)
6443 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6444 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6446 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6447 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6448 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6449 else
6450 case $host_os in
6451 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6452 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6453 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6454 ;;
6455 *)
6456 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6457 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6458 ;;
6459 esac
6460 fi
6461 ;;
6462
6463 os2*)
6464 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6465 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6466 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6467 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6468 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6469 ;;
6470
6471 osf3*)
6472 if test "$GCC" = yes; then
6473 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6474 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6475 else
6476 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6477 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6478 fi
6479 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6480 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6481 ;;
6482
6483 osf4* | osf5*) # as osf3* with the addition of -msym flag
6484 if test "$GCC" = yes; then
6485 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6486 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6487 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6488 else
6489 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6490 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6491 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6492 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6493
6494 # Both c and cxx compiler support -rpath directly
6495 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6496 fi
6497 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6498 ;;
6499
6500 sco3.2v5*)
6501 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6502 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6503 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6504 runpath_var=LD_RUN_PATH
6505 hardcode_runpath_var=yes
6506 ;;
6507
6508 solaris*)
6509 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6510 if test "$GCC" = yes; then
6511 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6512 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6513 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6514 else
6515 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6516 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6517 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6518 fi
6519 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6520 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6521 case $host_os in
6522 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6523 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6524 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6525 esac
6526 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6527 ;;
6528
6529 sunos4*)
6530 if test "x$host_vendor" = xsequent; then
6531 # Use $CC to link under sequent, because it throws in some extra .o
6532 # files that make .init and .fini sections work.
6533 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6534 else
6535 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6536 fi
6537 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6538 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6539 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6540 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6541 ;;
6542
6543 sysv4)
6544 case $host_vendor in
6545 sni)
6546 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6547 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6548 ;;
6549 siemens)
6550 ## LD is ld it makes a PLAMLIB
6551 ## CC just makes a GrossModule.
6552 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6553 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6554 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6555 ;;
6556 motorola)
6557 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6558 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6559 ;;
6560 esac
6561 runpath_var='LD_RUN_PATH'
6562 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6563 ;;
6564
6565 sysv4.3*)
6566 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6567 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6568 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6569 ;;
6570
6571 sysv4*MP*)
6572 if test -d /usr/nec; then
6573 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6574 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6575 runpath_var=LD_RUN_PATH
6576 hardcode_runpath_var=yes
6577 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6578 fi
6579 ;;
6580
6581 sysv4.2uw2*)
6582 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6583 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6584 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6585 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6586 hardcode_runpath_var=yes
6587 runpath_var=LD_RUN_PATH
6588 ;;
6589
6590 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6591 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6592 if test "$GCC" = yes; then
6593 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6594 else
6595 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6596 fi
6597 runpath_var='LD_RUN_PATH'
6598 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6599 ;;
6600
6601 sysv5*)
6602 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6603 # $CC -shared without GNU ld will not create a library from C++
6604 # object files and a static libstdc++, better avoid it by now
6605 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6606 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6608 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6609 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6610 runpath_var='LD_RUN_PATH'
6611 ;;
6612
6613 uts4*)
6614 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6616 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6617 ;;
6618
6619 *)
6620 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6621 ;;
6622 esac
6623 fi
6624 ])
6625 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6626 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6627
6628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6629 if test "$GCC" = yes; then
6630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6631 fi
6632
6633 #
6634 # Do we need to explicitly link libc?
6635 #
6636 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6637 x|xyes)
6638 # Assume -lc should be added
6639 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6640
6641 if test "$enable_shared" = yes && test "$GCC" = yes; then
6642 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6643 *'~'*)
6644 # FIXME: we may have to deal with multi-command sequences.
6645 ;;
6646 '$CC '*)
6647 # Test whether the compiler implicitly links with -lc since on some
6648 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6649 # to ld, don't add -lc before -lgcc.
6650 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6651 $rm conftest*
6652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6653
6654 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6655 soname=conftest
6656 lib=conftest
6657 libobjs=conftest.$ac_objext
6658 deplibs=
6659 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6660 compiler_flags=-v
6661 linker_flags=-v
6662 verstring=
6663 output_objdir=.
6664 libname=conftest
6665 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6666 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6667 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6668 then
6669 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6670 else
6671 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6672 fi
6673 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6674 else
6675 cat conftest.err 1>&5
6676 fi
6677 $rm conftest*
6678 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6679 ;;
6680 esac
6681 fi
6682 ;;
6683 esac
6684 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6685
6686
6687 # _LT_AC_FILE_LTDLL_C
6688 # -------------------
6689 # Be careful that the start marker always follows a newline.
6690 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6691 # /* ltdll.c starts here */
6692 # #define WIN32_LEAN_AND_MEAN
6693 # #include <windows.h>
6694 # #undef WIN32_LEAN_AND_MEAN
6695 # #include <stdio.h>
6696 #
6697 # #ifndef __CYGWIN__
6698 # # ifdef __CYGWIN32__
6699 # # define __CYGWIN__ __CYGWIN32__
6700 # # endif
6701 # #endif
6702 #
6703 # #ifdef __cplusplus
6704 # extern "C" {
6705 # #endif
6706 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6707 # #ifdef __cplusplus
6708 # }
6709 # #endif
6710 #
6711 # #ifdef __CYGWIN__
6712 # #include <cygwin/cygwin_dll.h>
6713 # DECLARE_CYGWIN_DLL( DllMain );
6714 # #endif
6715 # HINSTANCE __hDllInstance_base;
6716 #
6717 # BOOL APIENTRY
6718 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6719 # {
6720 # __hDllInstance_base = hInst;
6721 # return TRUE;
6722 # }
6723 # /* ltdll.c ends here */
6724 ])# _LT_AC_FILE_LTDLL_C
6725
6726
6727 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6728 # ---------------------------------
6729 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6730
6731
6732 # old names
6733 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6734 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6735 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6736 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6737 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6738 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6739 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6740
6741 # This is just to silence aclocal about the macro not being used
6742 ifelse([AC_DISABLE_FAST_INSTALL])
6743
6744 AC_DEFUN([LT_AC_PROG_GCJ],
6745 [AC_CHECK_TOOL(GCJ, gcj, no)
6746 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6747 AC_SUBST(GCJFLAGS)
6748 ])
6749
6750 AC_DEFUN([LT_AC_PROG_RC],
6751 [AC_CHECK_TOOL(RC, windres, no)
6752 ])
6753
6754 # NOTE: This macro has been submitted for inclusion into #
6755 # GNU Autoconf as AC_PROG_SED. When it is available in #
6756 # a released version of Autoconf we should remove this #
6757 # macro and use it instead. #
6758 # LT_AC_PROG_SED
6759 # --------------
6760 # Check for a fully-functional sed program, that truncates
6761 # as few characters as possible. Prefer GNU sed if found.
6762 AC_DEFUN([LT_AC_PROG_SED],
6763 [AC_MSG_CHECKING([for a sed that does not truncate output])
6764 AC_CACHE_VAL(lt_cv_path_SED,
6765 [# Loop through the user's path and test for sed and gsed.
6766 # Then use that list of sed's as ones to test for truncation.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for lt_ac_prog in sed gsed; do
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6775 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6776 fi
6777 done
6778 done
6779 done
6780 lt_ac_max=0
6781 lt_ac_count=0
6782 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6783 # along with /bin/sed that truncates output.
6784 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6785 test ! -f $lt_ac_sed && break
6786 cat /dev/null > conftest.in
6787 lt_ac_count=0
6788 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6789 # Check for GNU sed and select it if it is found.
6790 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6791 lt_cv_path_SED=$lt_ac_sed
6792 break
6793 fi
6794 while true; do
6795 cat conftest.in conftest.in >conftest.tmp
6796 mv conftest.tmp conftest.in
6797 cp conftest.in conftest.nl
6798 echo >>conftest.nl
6799 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6800 cmp -s conftest.out conftest.nl || break
6801 # 10000 chars as input seems more than enough
6802 test $lt_ac_count -gt 10 && break
6803 lt_ac_count=`expr $lt_ac_count + 1`
6804 if test $lt_ac_count -gt $lt_ac_max; then
6805 lt_ac_max=$lt_ac_count
6806 lt_cv_path_SED=$lt_ac_sed
6807 fi
6808 done
6809 done
6810 SED=$lt_cv_path_SED
6811 ])
6812 AC_MSG_RESULT([$SED])
6813 ])
6814
6815 # gettext.m4 serial 37 (gettext-0.14.4)
6816 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
6817 dnl This file is free software; the Free Software Foundation
6818 dnl gives unlimited permission to copy and/or distribute it,
6819 dnl with or without modifications, as long as this notice is preserved.
6820 dnl
6821 dnl This file can can be used in projects which are not available under
6822 dnl the GNU General Public License or the GNU Library General Public
6823 dnl License but which still want to provide support for the GNU gettext
6824 dnl functionality.
6825 dnl Please note that the actual code of the GNU gettext library is covered
6826 dnl by the GNU Library General Public License, and the rest of the GNU
6827 dnl gettext package package is covered by the GNU General Public License.
6828 dnl They are *not* in the public domain.
6829
6830 dnl Authors:
6831 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
6832 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
6833
6834 dnl Macro to add for using GNU gettext.
6835
6836 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
6837 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
6838 dnl default (if it is not specified or empty) is 'no-libtool'.
6839 dnl INTLSYMBOL should be 'external' for packages with no intl directory,
6840 dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
6841 dnl If INTLSYMBOL is 'use-libtool', then a libtool library
6842 dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
6843 dnl depending on --{enable,disable}-{shared,static} and on the presence of
6844 dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
6845 dnl $(top_builddir)/intl/libintl.a will be created.
6846 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
6847 dnl implementations (in libc or libintl) without the ngettext() function
6848 dnl will be ignored. If NEEDSYMBOL is specified and is
6849 dnl 'need-formatstring-macros', then GNU gettext implementations that don't
6850 dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
6851 dnl INTLDIR is used to find the intl libraries. If empty,
6852 dnl the value `$(top_builddir)/intl/' is used.
6853 dnl
6854 dnl The result of the configuration is one of three cases:
6855 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
6856 dnl and used.
6857 dnl Catalog format: GNU --> install in $(datadir)
6858 dnl Catalog extension: .mo after installation, .gmo in source tree
6859 dnl 2) GNU gettext has been found in the system's C library.
6860 dnl Catalog format: GNU --> install in $(datadir)
6861 dnl Catalog extension: .mo after installation, .gmo in source tree
6862 dnl 3) No internationalization, always use English msgid.
6863 dnl Catalog format: none
6864 dnl Catalog extension: none
6865 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
6866 dnl The use of .gmo is historical (it was needed to avoid overwriting the
6867 dnl GNU format catalogs when building on a platform with an X/Open gettext),
6868 dnl but we keep it in order not to force irrelevant filename changes on the
6869 dnl maintainers.
6870 dnl
6871 AC_DEFUN([AM_GNU_GETTEXT],
6872 [
6873 dnl Argument checking.
6874 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
6875 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
6876 ])])])])])
6877 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
6878 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
6879 ])])])])
6880 define([gt_included_intl], ifelse([$1], [external], [no], [yes]))
6881 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
6882
6883 AC_REQUIRE([AM_PO_SUBDIRS])dnl
6884 ifelse(gt_included_intl, yes, [
6885 AC_REQUIRE([AM_INTL_SUBDIR])dnl
6886 ])
6887
6888 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
6889 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
6890 AC_REQUIRE([AC_LIB_RPATH])
6891
6892 dnl Sometimes libintl requires libiconv, so first search for libiconv.
6893 dnl Ideally we would do this search only after the
6894 dnl if test "$USE_NLS" = "yes"; then
6895 dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then
6896 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
6897 dnl the configure script would need to contain the same shell code
6898 dnl again, outside any 'if'. There are two solutions:
6899 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
6900 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
6901 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
6902 dnl documented, we avoid it.
6903 ifelse(gt_included_intl, yes, , [
6904 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
6905 ])
6906
6907 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
6908 gt_INTL_MACOSX
6909
6910 dnl Set USE_NLS.
6911 AM_NLS
6912
6913 ifelse(gt_included_intl, yes, [
6914 BUILD_INCLUDED_LIBINTL=no
6915 USE_INCLUDED_LIBINTL=no
6916 ])
6917 LIBINTL=
6918 LTLIBINTL=
6919 POSUB=
6920
6921 dnl If we use NLS figure out what method
6922 if test "$USE_NLS" = "yes"; then
6923 gt_use_preinstalled_gnugettext=no
6924 ifelse(gt_included_intl, yes, [
6925 AC_MSG_CHECKING([whether included gettext is requested])
6926 AC_ARG_WITH(included-gettext,
6927 [ --with-included-gettext use the GNU gettext library included here],
6928 nls_cv_force_use_gnu_gettext=$withval,
6929 nls_cv_force_use_gnu_gettext=no)
6930 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
6931
6932 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6933 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6934 ])
6935 dnl User does not insist on using GNU NLS library. Figure out what
6936 dnl to use. If GNU gettext is available we use this. Else we have
6937 dnl to fall back to GNU NLS library.
6938
6939 dnl Add a version number to the cache macros.
6940 define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
6941 define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
6942 define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
6943
6944 AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
6945 [AC_TRY_LINK([#include <libintl.h>
6946 ]ifelse([$2], [need-formatstring-macros],
6947 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6948 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6949 #endif
6950 changequote(,)dnl
6951 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6952 changequote([,])dnl
6953 ], [])[extern int _nl_msg_cat_cntr;
6954 extern int *_nl_domain_bindings;],
6955 [bindtextdomain ("", "");
6956 return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
6957 gt_cv_func_gnugettext_libc=yes,
6958 gt_cv_func_gnugettext_libc=no)])
6959
6960 if test "$gt_cv_func_gnugettext_libc" != "yes"; then
6961 dnl Sometimes libintl requires libiconv, so first search for libiconv.
6962 ifelse(gt_included_intl, yes, , [
6963 AM_ICONV_LINK
6964 ])
6965 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
6966 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
6967 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
6968 dnl even if libiconv doesn't exist.
6969 AC_LIB_LINKFLAGS_BODY([intl])
6970 AC_CACHE_CHECK([for GNU gettext in libintl],
6971 gt_cv_func_gnugettext_libintl,
6972 [gt_save_CPPFLAGS="$CPPFLAGS"
6973 CPPFLAGS="$CPPFLAGS $INCINTL"
6974 gt_save_LIBS="$LIBS"
6975 LIBS="$LIBS $LIBINTL"
6976 dnl Now see whether libintl exists and does not depend on libiconv.
6977 AC_TRY_LINK([#include <libintl.h>
6978 ]ifelse([$2], [need-formatstring-macros],
6979 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6980 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6981 #endif
6982 changequote(,)dnl
6983 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6984 changequote([,])dnl
6985 ], [])[extern int _nl_msg_cat_cntr;
6986 extern
6987 #ifdef __cplusplus
6988 "C"
6989 #endif
6990 const char *_nl_expand_alias (const char *);],
6991 [bindtextdomain ("", "");
6992 return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
6993 gt_cv_func_gnugettext_libintl=yes,
6994 gt_cv_func_gnugettext_libintl=no)
6995 dnl Now see whether libintl exists and depends on libiconv.
6996 if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then
6997 LIBS="$LIBS $LIBICONV"
6998 AC_TRY_LINK([#include <libintl.h>
6999 ]ifelse([$2], [need-formatstring-macros],
7000 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7001 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7002 #endif
7003 changequote(,)dnl
7004 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7005 changequote([,])dnl
7006 ], [])[extern int _nl_msg_cat_cntr;
7007 extern
7008 #ifdef __cplusplus
7009 "C"
7010 #endif
7011 const char *_nl_expand_alias (const char *);],
7012 [bindtextdomain ("", "");
7013 return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
7014 [LIBINTL="$LIBINTL $LIBICONV"
7015 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7016 gt_cv_func_gnugettext_libintl=yes
7017 ])
7018 fi
7019 CPPFLAGS="$gt_save_CPPFLAGS"
7020 LIBS="$gt_save_LIBS"])
7021 fi
7022
7023 dnl If an already present or preinstalled GNU gettext() is found,
7024 dnl use it. But if this macro is used in GNU gettext, and GNU
7025 dnl gettext is already preinstalled in libintl, we update this
7026 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
7027 if test "$gt_cv_func_gnugettext_libc" = "yes" \
7028 || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
7029 && test "$PACKAGE" != gettext-runtime \
7030 && test "$PACKAGE" != gettext-tools; }; then
7031 gt_use_preinstalled_gnugettext=yes
7032 else
7033 dnl Reset the values set by searching for libintl.
7034 LIBINTL=
7035 LTLIBINTL=
7036 INCINTL=
7037 fi
7038
7039 ifelse(gt_included_intl, yes, [
7040 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7041 dnl GNU gettext is not found in the C library.
7042 dnl Fall back on included GNU gettext library.
7043 nls_cv_use_gnu_gettext=yes
7044 fi
7045 fi
7046
7047 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7048 dnl Mark actions used to generate GNU NLS library.
7049 BUILD_INCLUDED_LIBINTL=yes
7050 USE_INCLUDED_LIBINTL=yes
7051 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV"
7052 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV"
7053 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7054 fi
7055
7056 CATOBJEXT=
7057 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7058 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7059 dnl Mark actions to use GNU gettext tools.
7060 CATOBJEXT=.gmo
7061 fi
7062 ])
7063
7064 if test -n "$INTL_MACOSX_LIBS"; then
7065 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7066 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7067 dnl Some extra flags are needed during linking.
7068 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7069 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7070 fi
7071 fi
7072
7073 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7074 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7075 AC_DEFINE(ENABLE_NLS, 1,
7076 [Define to 1 if translation of program messages to the user's native language
7077 is requested.])
7078 else
7079 USE_NLS=no
7080 fi
7081 fi
7082
7083 AC_MSG_CHECKING([whether to use NLS])
7084 AC_MSG_RESULT([$USE_NLS])
7085 if test "$USE_NLS" = "yes"; then
7086 AC_MSG_CHECKING([where the gettext function comes from])
7087 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7088 if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
7089 gt_source="external libintl"
7090 else
7091 gt_source="libc"
7092 fi
7093 else
7094 gt_source="included intl directory"
7095 fi
7096 AC_MSG_RESULT([$gt_source])
7097 fi
7098
7099 if test "$USE_NLS" = "yes"; then
7100
7101 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7102 if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
7103 AC_MSG_CHECKING([how to link with libintl])
7104 AC_MSG_RESULT([$LIBINTL])
7105 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
7106 fi
7107
7108 dnl For backward compatibility. Some packages may be using this.
7109 AC_DEFINE(HAVE_GETTEXT, 1,
7110 [Define if the GNU gettext() function is already present or preinstalled.])
7111 AC_DEFINE(HAVE_DCGETTEXT, 1,
7112 [Define if the GNU dcgettext() function is already present or preinstalled.])
7113 fi
7114
7115 dnl We need to process the po/ directory.
7116 POSUB=po
7117 fi
7118
7119 ifelse(gt_included_intl, yes, [
7120 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
7121 dnl to 'yes' because some of the testsuite requires it.
7122 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
7123 BUILD_INCLUDED_LIBINTL=yes
7124 fi
7125
7126 dnl Make all variables we use known to autoconf.
7127 AC_SUBST(BUILD_INCLUDED_LIBINTL)
7128 AC_SUBST(USE_INCLUDED_LIBINTL)
7129 AC_SUBST(CATOBJEXT)
7130
7131 dnl For backward compatibility. Some configure.ins may be using this.
7132 nls_cv_header_intl=
7133 nls_cv_header_libgt=
7134
7135 dnl For backward compatibility. Some Makefiles may be using this.
7136 DATADIRNAME=share
7137 AC_SUBST(DATADIRNAME)
7138
7139 dnl For backward compatibility. Some Makefiles may be using this.
7140 INSTOBJEXT=.mo
7141 AC_SUBST(INSTOBJEXT)
7142
7143 dnl For backward compatibility. Some Makefiles may be using this.
7144 GENCAT=gencat
7145 AC_SUBST(GENCAT)
7146
7147 dnl For backward compatibility. Some Makefiles may be using this.
7148 INTLOBJS=
7149 if test "$USE_INCLUDED_LIBINTL" = yes; then
7150 INTLOBJS="\$(GETTOBJS)"
7151 fi
7152 AC_SUBST(INTLOBJS)
7153
7154 dnl Enable libtool support if the surrounding package wishes it.
7155 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
7156 AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
7157 ])
7158
7159 dnl For backward compatibility. Some Makefiles may be using this.
7160 INTLLIBS="$LIBINTL"
7161 AC_SUBST(INTLLIBS)
7162
7163 dnl Make all documented variables known to autoconf.
7164 AC_SUBST(LIBINTL)
7165 AC_SUBST(LTLIBINTL)
7166 AC_SUBST(POSUB)
7167 ])
7168
7169
7170 dnl Checks for all prerequisites of the intl subdirectory,
7171 dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
7172 dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
7173 AC_DEFUN([AM_INTL_SUBDIR],
7174 [
7175 AC_REQUIRE([AC_PROG_INSTALL])dnl
7176 AC_REQUIRE([AM_MKINSTALLDIRS])dnl
7177 AC_REQUIRE([AC_PROG_CC])dnl
7178 AC_REQUIRE([AC_CANONICAL_HOST])dnl
7179 AC_REQUIRE([gt_GLIBC2])dnl
7180 AC_REQUIRE([AC_PROG_RANLIB])dnl
7181 AC_REQUIRE([AC_ISC_POSIX])dnl
7182 AC_REQUIRE([AC_HEADER_STDC])dnl
7183 AC_REQUIRE([AC_C_CONST])dnl
7184 AC_REQUIRE([bh_C_SIGNED])dnl
7185 AC_REQUIRE([AC_C_INLINE])dnl
7186 AC_REQUIRE([AC_TYPE_OFF_T])dnl
7187 AC_REQUIRE([AC_TYPE_SIZE_T])dnl
7188 AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl
7189 AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
7190 AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
7191 AC_REQUIRE([gt_TYPE_WINT_T])dnl
7192 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
7193 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
7194 AC_REQUIRE([gt_TYPE_INTMAX_T])
7195 AC_REQUIRE([gt_PRINTF_POSIX])
7196 AC_REQUIRE([AC_FUNC_ALLOCA])dnl
7197 AC_REQUIRE([AC_FUNC_MMAP])dnl
7198 AC_REQUIRE([gl_GLIBC21])dnl
7199 AC_REQUIRE([gt_INTDIV0])dnl
7200 AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
7201 AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
7202 AC_REQUIRE([gt_INTTYPES_PRI])dnl
7203 AC_REQUIRE([gl_XSIZE])dnl
7204 AC_REQUIRE([gt_INTL_MACOSX])dnl
7205
7206 AC_CHECK_TYPE([ptrdiff_t], ,
7207 [AC_DEFINE([ptrdiff_t], [long],
7208 [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
7209 ])
7210 AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7211 stdlib.h string.h unistd.h sys/param.h])
7212 AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
7213 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7214 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7215 __fsetlocking])
7216
7217 dnl Use the _snprintf function only if it is declared (because on NetBSD it
7218 dnl is defined as a weak alias of snprintf; we prefer to use the latter).
7219 gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
7220 gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
7221
7222 dnl Use the *_unlocked functions only if they are declared.
7223 dnl (because some of them were defined without being declared in Solaris
7224 dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
7225 dnl on Solaris 2.5.1 to run on Solaris 2.6).
7226 dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
7227 gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])
7228 gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])
7229 gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
7230
7231 case $gt_cv_func_printf_posix in
7232 *yes) HAVE_POSIX_PRINTF=1 ;;
7233 *) HAVE_POSIX_PRINTF=0 ;;
7234 esac
7235 AC_SUBST([HAVE_POSIX_PRINTF])
7236 if test "$ac_cv_func_asprintf" = yes; then
7237 HAVE_ASPRINTF=1
7238 else
7239 HAVE_ASPRINTF=0
7240 fi
7241 AC_SUBST([HAVE_ASPRINTF])
7242 if test "$ac_cv_func_snprintf" = yes; then
7243 HAVE_SNPRINTF=1
7244 else
7245 HAVE_SNPRINTF=0
7246 fi
7247 AC_SUBST([HAVE_SNPRINTF])
7248 if test "$ac_cv_func_wprintf" = yes; then
7249 HAVE_WPRINTF=1
7250 else
7251 HAVE_WPRINTF=0
7252 fi
7253 AC_SUBST([HAVE_WPRINTF])
7254
7255 AM_ICONV
7256 AM_LANGINFO_CODESET
7257 if test $ac_cv_header_locale_h = yes; then
7258 gt_LC_MESSAGES
7259 fi
7260
7261 if test -n "$INTL_MACOSX_LIBS"; then
7262 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7263 fi
7264
7265 dnl intl/plural.c is generated from intl/plural.y. It requires bison,
7266 dnl because plural.y uses bison specific features. It requires at least
7267 dnl bison-1.26 because earlier versions generate a plural.c that doesn't
7268 dnl compile.
7269 dnl bison is only needed for the maintainer (who touches plural.y). But in
7270 dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
7271 dnl the rule in general Makefile. Now, some people carelessly touch the
7272 dnl files or have a broken "make" program, hence the plural.c rule will
7273 dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
7274 dnl present or too old.
7275 AC_CHECK_PROGS([INTLBISON], [bison])
7276 if test -z "$INTLBISON"; then
7277 ac_verc_fail=yes
7278 else
7279 dnl Found it, now check the version.
7280 AC_MSG_CHECKING([version of bison])
7281 changequote(<<,>>)dnl
7282 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7283 case $ac_prog_version in
7284 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7285 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7286 changequote([,])dnl
7287 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7288 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7289 esac
7290 AC_MSG_RESULT([$ac_prog_version])
7291 fi
7292 if test $ac_verc_fail = yes; then
7293 INTLBISON=:
7294 fi
7295 ])
7296
7297
7298 dnl Checks for special options needed on MacOS X.
7299 dnl Defines INTL_MACOSX_LIBS.
7300 AC_DEFUN([gt_INTL_MACOSX],
7301 [
7302 dnl Check for API introduced in MacOS X 10.2.
7303 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
7304 gt_cv_func_CFPreferencesCopyAppValue,
7305 [gt_save_CPPFLAGS="$CPPFLAGS"
7306 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7307 gt_save_LIBS="$LIBS"
7308 LIBS="$LIBS -framework CoreFoundation"
7309 AC_TRY_LINK([#include <CFPreferences.h>],
7310 [CFPreferencesCopyAppValue(NULL, NULL)],
7311 [gt_cv_func_CFPreferencesCopyAppValue=yes],
7312 [gt_cv_func_CFPreferencesCopyAppValue=no])
7313 CPPFLAGS="$gt_save_CPPFLAGS"
7314 LIBS="$gt_save_LIBS"])
7315 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7316 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
7317 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
7318 fi
7319 dnl Check for API introduced in MacOS X 10.3.
7320 AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
7321 [gt_save_CPPFLAGS="$CPPFLAGS"
7322 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7323 gt_save_LIBS="$LIBS"
7324 LIBS="$LIBS -framework CoreFoundation"
7325 AC_TRY_LINK([#include <CFLocale.h>], [CFLocaleCopyCurrent();],
7326 [gt_cv_func_CFLocaleCopyCurrent=yes],
7327 [gt_cv_func_CFLocaleCopyCurrent=no])
7328 CPPFLAGS="$gt_save_CPPFLAGS"
7329 LIBS="$gt_save_LIBS"])
7330 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7331 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
7332 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
7333 fi
7334 INTL_MACOSX_LIBS=
7335 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7336 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7337 fi
7338 AC_SUBST([INTL_MACOSX_LIBS])
7339 ])
7340
7341
7342 dnl gt_CHECK_DECL(FUNC, INCLUDES)
7343 dnl Check whether a function is declared.
7344 AC_DEFUN([gt_CHECK_DECL],
7345 [
7346 AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
7347 [AC_TRY_COMPILE([$2], [
7348 #ifndef $1
7349 char *p = (char *) $1;
7350 #endif
7351 ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
7352 if test $ac_cv_have_decl_$1 = yes; then
7353 gt_value=1
7354 else
7355 gt_value=0
7356 fi
7357 AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
7358 [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
7359 ])
7360
7361
7362 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
7363 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
7364
7365 # po.m4 serial 7 (gettext-0.14.3)
7366 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
7367 dnl This file is free software; the Free Software Foundation
7368 dnl gives unlimited permission to copy and/or distribute it,
7369 dnl with or without modifications, as long as this notice is preserved.
7370 dnl
7371 dnl This file can can be used in projects which are not available under
7372 dnl the GNU General Public License or the GNU Library General Public
7373 dnl License but which still want to provide support for the GNU gettext
7374 dnl functionality.
7375 dnl Please note that the actual code of the GNU gettext library is covered
7376 dnl by the GNU Library General Public License, and the rest of the GNU
7377 dnl gettext package package is covered by the GNU General Public License.
7378 dnl They are *not* in the public domain.
7379
7380 dnl Authors:
7381 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
7382 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
7383
7384 AC_PREREQ(2.50)
7385
7386 dnl Checks for all prerequisites of the po subdirectory.
7387 AC_DEFUN([AM_PO_SUBDIRS],
7388 [
7389 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7390 AC_REQUIRE([AC_PROG_INSTALL])dnl
7391 AC_REQUIRE([AM_MKINSTALLDIRS])dnl
7392 AC_REQUIRE([AM_NLS])dnl
7393
7394 dnl Perform the following tests also if --disable-nls has been given,
7395 dnl because they are needed for "make dist" to work.
7396
7397 dnl Search for GNU msgfmt in the PATH.
7398 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
7399 dnl The second test excludes FreeBSD msgfmt.
7400 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
7401 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
7402 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
7403 :)
7404 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
7405
7406 dnl Search for GNU xgettext 0.12 or newer in the PATH.
7407 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
7408 dnl The second test excludes FreeBSD xgettext.
7409 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
7410 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
7411 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
7412 :)
7413 dnl Remove leftover from FreeBSD xgettext call.
7414 rm -f messages.po
7415
7416 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
7417 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
7418 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
7419
7420 dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
7421 dnl Test whether we really found GNU msgfmt.
7422 if test "$GMSGFMT" != ":"; then
7423 dnl If it is no GNU msgfmt we define it as : so that the
7424 dnl Makefiles still can work.
7425 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7426 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7427 : ;
7428 else
7429 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7430 AC_MSG_RESULT(
7431 [found $GMSGFMT program is not GNU msgfmt; ignore it])
7432 GMSGFMT=":"
7433 fi
7434 fi
7435
7436 dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
7437 dnl Test whether we really found GNU xgettext.
7438 if test "$XGETTEXT" != ":"; then
7439 dnl If it is no GNU xgettext we define it as : so that the
7440 dnl Makefiles still can work.
7441 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7442 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7443 : ;
7444 else
7445 AC_MSG_RESULT(
7446 [found xgettext program is not GNU xgettext; ignore it])
7447 XGETTEXT=":"
7448 fi
7449 dnl Remove leftover from FreeBSD xgettext call.
7450 rm -f messages.po
7451 fi
7452
7453 AC_OUTPUT_COMMANDS([
7454 for ac_file in $CONFIG_FILES; do
7455 # Support "outfile[:infile[:infile...]]"
7456 case "$ac_file" in
7457 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7458 esac
7459 # PO directories have a Makefile.in generated from Makefile.in.in.
7460 case "$ac_file" in */Makefile.in)
7461 # Adjust a relative srcdir.
7462 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7463 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7464 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7465 # In autoconf-2.13 it is called $ac_given_srcdir.
7466 # In autoconf-2.50 it is called $srcdir.
7467 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7468 case "$ac_given_srcdir" in
7469 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7470 /*) top_srcdir="$ac_given_srcdir" ;;
7471 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7472 esac
7473 # Treat a directory as a PO directory if and only if it has a
7474 # POTFILES.in file. This allows packages to have multiple PO
7475 # directories under different names or in different locations.
7476 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7477 rm -f "$ac_dir/POTFILES"
7478 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7479 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7480 POMAKEFILEDEPS="POTFILES.in"
7481 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
7482 # on $ac_dir but don't depend on user-specified configuration
7483 # parameters.
7484 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7485 # The LINGUAS file contains the set of available languages.
7486 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7487 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7488 fi
7489 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7490 # Hide the ALL_LINGUAS assigment from automake.
7491 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7492 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7493 else
7494 # The set of available languages was given in configure.in.
7495 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7496 fi
7497 # Compute POFILES
7498 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
7499 # Compute UPDATEPOFILES
7500 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
7501 # Compute DUMMYPOFILES
7502 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
7503 # Compute GMOFILES
7504 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
7505 case "$ac_given_srcdir" in
7506 .) srcdirpre= ;;
7507 *) srcdirpre='$(srcdir)/' ;;
7508 esac
7509 POFILES=
7510 UPDATEPOFILES=
7511 DUMMYPOFILES=
7512 GMOFILES=
7513 for lang in $ALL_LINGUAS; do
7514 POFILES="$POFILES $srcdirpre$lang.po"
7515 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7516 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7517 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7518 done
7519 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7520 # environment variable.
7521 INST_LINGUAS=
7522 if test -n "$ALL_LINGUAS"; then
7523 for presentlang in $ALL_LINGUAS; do
7524 useit=no
7525 if test "%UNSET%" != "$LINGUAS"; then
7526 desiredlanguages="$LINGUAS"
7527 else
7528 desiredlanguages="$ALL_LINGUAS"
7529 fi
7530 for desiredlang in $desiredlanguages; do
7531 # Use the presentlang catalog if desiredlang is
7532 # a. equal to presentlang, or
7533 # b. a variant of presentlang (because in this case,
7534 # presentlang can be used as a fallback for messages
7535 # which are not translated in the desiredlang catalog).
7536 case "$desiredlang" in
7537 "$presentlang"*) useit=yes;;
7538 esac
7539 done
7540 if test $useit = yes; then
7541 INST_LINGUAS="$INST_LINGUAS $presentlang"
7542 fi
7543 done
7544 fi
7545 CATALOGS=
7546 if test -n "$INST_LINGUAS"; then
7547 for lang in $INST_LINGUAS; do
7548 CATALOGS="$CATALOGS $lang.gmo"
7549 done
7550 fi
7551 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7552 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7553 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7554 if test -f "$f"; then
7555 case "$f" in
7556 *.orig | *.bak | *~) ;;
7557 *) cat "$f" >> "$ac_dir/Makefile" ;;
7558 esac
7559 fi
7560 done
7561 fi
7562 ;;
7563 esac
7564 done],
7565 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
7566 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
7567 # from automake.
7568 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7569 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7570 LINGUAS="${LINGUAS-%UNSET%}"
7571 ])
7572 ])
7573
7574 dnl Postprocesses a Makefile in a directory containing PO files.
7575 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
7576 [
7577 # When this code is run, in config.status, two variables have already been
7578 # set:
7579 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
7580 # - LINGUAS is the value of the environment variable LINGUAS at configure
7581 # time.
7582
7583 changequote(,)dnl
7584 # Adjust a relative srcdir.
7585 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7586 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7587 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7588 # In autoconf-2.13 it is called $ac_given_srcdir.
7589 # In autoconf-2.50 it is called $srcdir.
7590 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7591 case "$ac_given_srcdir" in
7592 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7593 /*) top_srcdir="$ac_given_srcdir" ;;
7594 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7595 esac
7596
7597 # Find a way to echo strings without interpreting backslash.
7598 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
7599 gt_echo='echo'
7600 else
7601 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
7602 gt_echo='printf %s\n'
7603 else
7604 echo_func () {
7605 cat <<EOT
7606 $*
7607 EOT
7608 }
7609 gt_echo='echo_func'
7610 fi
7611 fi
7612
7613 # A sed script that extracts the value of VARIABLE from a Makefile.
7614 sed_x_variable='
7615 # Test if the hold space is empty.
7616 x
7617 s/P/P/
7618 x
7619 ta
7620 # Yes it was empty. Look if we have the expected variable definition.
7621 /^[ ]*VARIABLE[ ]*=/{
7622 # Seen the first line of the variable definition.
7623 s/^[ ]*VARIABLE[ ]*=//
7624 ba
7625 }
7626 bd
7627 :a
7628 # Here we are processing a line from the variable definition.
7629 # Remove comment, more precisely replace it with a space.
7630 s/#.*$/ /
7631 # See if the line ends in a backslash.
7632 tb
7633 :b
7634 s/\\$//
7635 # Print the line, without the trailing backslash.
7636 p
7637 tc
7638 # There was no trailing backslash. The end of the variable definition is
7639 # reached. Clear the hold space.
7640 s/^.*$//
7641 x
7642 bd
7643 :c
7644 # A trailing backslash means that the variable definition continues in the
7645 # next line. Put a nonempty string into the hold space to indicate this.
7646 s/^.*$/P/
7647 x
7648 :d
7649 '
7650 changequote([,])dnl
7651
7652 # Set POTFILES to the value of the Makefile variable POTFILES.
7653 sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`"
7654 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
7655 # Compute POTFILES_DEPS as
7656 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
7657 POTFILES_DEPS=
7658 for file in $POTFILES; do
7659 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
7660 done
7661 POMAKEFILEDEPS=""
7662
7663 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7664 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7665 fi
7666 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7667 # The LINGUAS file contains the set of available languages.
7668 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7669 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7670 else
7671 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
7672 sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`"
7673 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
7674 fi
7675 # Hide the ALL_LINGUAS assigment from automake.
7676 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7677 # Compute POFILES
7678 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
7679 # Compute UPDATEPOFILES
7680 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
7681 # Compute DUMMYPOFILES
7682 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
7683 # Compute GMOFILES
7684 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
7685 # Compute PROPERTIESFILES
7686 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
7687 # Compute CLASSFILES
7688 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
7689 # Compute QMFILES
7690 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
7691 # Compute MSGFILES
7692 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
7693 # Compute RESOURCESDLLFILES
7694 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
7695 case "$ac_given_srcdir" in
7696 .) srcdirpre= ;;
7697 *) srcdirpre='$(srcdir)/' ;;
7698 esac
7699 POFILES=
7700 UPDATEPOFILES=
7701 DUMMYPOFILES=
7702 GMOFILES=
7703 PROPERTIESFILES=
7704 CLASSFILES=
7705 QMFILES=
7706 MSGFILES=
7707 RESOURCESDLLFILES=
7708 for lang in $ALL_LINGUAS; do
7709 POFILES="$POFILES $srcdirpre$lang.po"
7710 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7711 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7712 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7713 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
7714 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
7715 QMFILES="$QMFILES $srcdirpre$lang.qm"
7716 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7717 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
7718 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
7719 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
7720 done
7721 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7722 # environment variable.
7723 INST_LINGUAS=
7724 if test -n "$ALL_LINGUAS"; then
7725 for presentlang in $ALL_LINGUAS; do
7726 useit=no
7727 if test "%UNSET%" != "$LINGUAS"; then
7728 desiredlanguages="$LINGUAS"
7729 else
7730 desiredlanguages="$ALL_LINGUAS"
7731 fi
7732 for desiredlang in $desiredlanguages; do
7733 # Use the presentlang catalog if desiredlang is
7734 # a. equal to presentlang, or
7735 # b. a variant of presentlang (because in this case,
7736 # presentlang can be used as a fallback for messages
7737 # which are not translated in the desiredlang catalog).
7738 case "$desiredlang" in
7739 "$presentlang"*) useit=yes;;
7740 esac
7741 done
7742 if test $useit = yes; then
7743 INST_LINGUAS="$INST_LINGUAS $presentlang"
7744 fi
7745 done
7746 fi
7747 CATALOGS=
7748 JAVACATALOGS=
7749 QTCATALOGS=
7750 TCLCATALOGS=
7751 CSHARPCATALOGS=
7752 if test -n "$INST_LINGUAS"; then
7753 for lang in $INST_LINGUAS; do
7754 CATALOGS="$CATALOGS $lang.gmo"
7755 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
7756 QTCATALOGS="$QTCATALOGS $lang.qm"
7757 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7758 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
7759 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
7760 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
7761 done
7762 fi
7763
7764 sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
7765 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
7766 # Add dependencies that cannot be formulated as a simple suffix rule.
7767 for lang in $ALL_LINGUAS; do
7768 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7769 cat >> "$ac_file.tmp" <<EOF
7770 $frobbedlang.msg: $lang.po
7771 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
7772 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
7773 EOF
7774 done
7775 fi
7776 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
7777 # Add dependencies that cannot be formulated as a simple suffix rule.
7778 for lang in $ALL_LINGUAS; do
7779 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
7780 cat >> "$ac_file.tmp" <<EOF
7781 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
7782 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
7783 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
7784 EOF
7785 done
7786 fi
7787 if test -n "$POMAKEFILEDEPS"; then
7788 cat >> "$ac_file.tmp" <<EOF
7789 Makefile: $POMAKEFILEDEPS
7790 EOF
7791 fi
7792 mv "$ac_file.tmp" "$ac_file"
7793 ])
7794
7795 # nls.m4 serial 2 (gettext-0.14.3)
7796 dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc.
7797 dnl This file is free software; the Free Software Foundation
7798 dnl gives unlimited permission to copy and/or distribute it,
7799 dnl with or without modifications, as long as this notice is preserved.
7800 dnl
7801 dnl This file can can be used in projects which are not available under
7802 dnl the GNU General Public License or the GNU Library General Public
7803 dnl License but which still want to provide support for the GNU gettext
7804 dnl functionality.
7805 dnl Please note that the actual code of the GNU gettext library is covered
7806 dnl by the GNU Library General Public License, and the rest of the GNU
7807 dnl gettext package package is covered by the GNU General Public License.
7808 dnl They are *not* in the public domain.
7809
7810 dnl Authors:
7811 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
7812 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
7813
7814 AC_PREREQ(2.50)
7815
7816 AC_DEFUN([AM_NLS],
7817 [
7818 AC_MSG_CHECKING([whether NLS is requested])
7819 dnl Default is enabled NLS
7820 AC_ARG_ENABLE(nls,
7821 [ --disable-nls do not use Native Language Support],
7822 USE_NLS=$enableval, USE_NLS=yes)
7823 AC_MSG_RESULT($USE_NLS)
7824 AC_SUBST(USE_NLS)
7825 ])
7826
7827 AC_DEFUN([AM_MKINSTALLDIRS],
7828 [
7829 dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing.
7830 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])
7831 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
7832 dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
7833 dnl Try to locate it.
7834 MKINSTALLDIRS=
7835 if test -n "$ac_aux_dir"; then
7836 case "$ac_aux_dir" in
7837 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7838 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7839 esac
7840 fi
7841 if test -z "$MKINSTALLDIRS"; then
7842 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7843 fi
7844 AC_SUBST(MKINSTALLDIRS)
7845 ])
7846
7847 # progtest.m4 serial 4 (gettext-0.14.2)
7848 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
7849 dnl This file is free software; the Free Software Foundation
7850 dnl gives unlimited permission to copy and/or distribute it,
7851 dnl with or without modifications, as long as this notice is preserved.
7852 dnl
7853 dnl This file can can be used in projects which are not available under
7854 dnl the GNU General Public License or the GNU Library General Public
7855 dnl License but which still want to provide support for the GNU gettext
7856 dnl functionality.
7857 dnl Please note that the actual code of the GNU gettext library is covered
7858 dnl by the GNU Library General Public License, and the rest of the GNU
7859 dnl gettext package package is covered by the GNU General Public License.
7860 dnl They are *not* in the public domain.
7861
7862 dnl Authors:
7863 dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
7864
7865 AC_PREREQ(2.50)
7866
7867 # Search path for a program which passes the given test.
7868
7869 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
7870 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
7871 AC_DEFUN([AM_PATH_PROG_WITH_TEST],
7872 [
7873 # Prepare PATH_SEPARATOR.
7874 # The user is always right.
7875 if test "${PATH_SEPARATOR+set}" != set; then
7876 echo "#! /bin/sh" >conf$$.sh
7877 echo "exit 0" >>conf$$.sh
7878 chmod +x conf$$.sh
7879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7880 PATH_SEPARATOR=';'
7881 else
7882 PATH_SEPARATOR=:
7883 fi
7884 rm -f conf$$.sh
7885 fi
7886
7887 # Find out how to test for executable files. Don't use a zero-byte file,
7888 # as systems may use methods other than mode bits to determine executability.
7889 cat >conf$$.file <<_ASEOF
7890 #! /bin/sh
7891 exit 0
7892 _ASEOF
7893 chmod +x conf$$.file
7894 if test -x conf$$.file >/dev/null 2>&1; then
7895 ac_executable_p="test -x"
7896 else
7897 ac_executable_p="test -f"
7898 fi
7899 rm -f conf$$.file
7900
7901 # Extract the first word of "$2", so it can be a program name with args.
7902 set dummy $2; ac_word=[$]2
7903 AC_MSG_CHECKING([for $ac_word])
7904 AC_CACHE_VAL(ac_cv_path_$1,
7905 [case "[$]$1" in
7906 [[\\/]]* | ?:[[\\/]]*)
7907 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
7908 ;;
7909 *)
7910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7911 for ac_dir in ifelse([$5], , $PATH, [$5]); do
7912 IFS="$ac_save_IFS"
7913 test -z "$ac_dir" && ac_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7916 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
7917 if [$3]; then
7918 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
7919 break 2
7920 fi
7921 fi
7922 done
7923 done
7924 IFS="$ac_save_IFS"
7925 dnl If no 4th arg is given, leave the cache variable unset,
7926 dnl so AC_PATH_PROGS will keep looking.
7927 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
7928 ])dnl
7929 ;;
7930 esac])dnl
7931 $1="$ac_cv_path_$1"
7932 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
7933 AC_MSG_RESULT([$]$1)
7934 else
7935 AC_MSG_RESULT(no)
7936 fi
7937 AC_SUBST($1)dnl
7938 ])
7939
7940 # lib-prefix.m4 serial 4 (gettext-0.14.2)
7941 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
7942 dnl This file is free software; the Free Software Foundation
7943 dnl gives unlimited permission to copy and/or distribute it,
7944 dnl with or without modifications, as long as this notice is preserved.
7945
7946 dnl From Bruno Haible.
7947
7948 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
7949 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
7950 dnl require excessive bracketing.
7951 ifdef([AC_HELP_STRING],
7952 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
7953 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
7954
7955 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
7956 dnl to access previously installed libraries. The basic assumption is that
7957 dnl a user will want packages to use other packages he previously installed
7958 dnl with the same --prefix option.
7959 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
7960 dnl libraries, but is otherwise very convenient.
7961 AC_DEFUN([AC_LIB_PREFIX],
7962 [
7963 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
7964 AC_REQUIRE([AC_PROG_CC])
7965 AC_REQUIRE([AC_CANONICAL_HOST])
7966 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
7967 dnl By default, look in $includedir and $libdir.
7968 use_additional=yes
7969 AC_LIB_WITH_FINAL_PREFIX([
7970 eval additional_includedir=\"$includedir\"
7971 eval additional_libdir=\"$libdir\"
7972 ])
7973 AC_LIB_ARG_WITH([lib-prefix],
7974 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
7975 --without-lib-prefix don't search for libraries in includedir and libdir],
7976 [
7977 if test "X$withval" = "Xno"; then
7978 use_additional=no
7979 else
7980 if test "X$withval" = "X"; then
7981 AC_LIB_WITH_FINAL_PREFIX([
7982 eval additional_includedir=\"$includedir\"
7983 eval additional_libdir=\"$libdir\"
7984 ])
7985 else
7986 additional_includedir="$withval/include"
7987 additional_libdir="$withval/lib"
7988 fi
7989 fi
7990 ])
7991 if test $use_additional = yes; then
7992 dnl Potentially add $additional_includedir to $CPPFLAGS.
7993 dnl But don't add it
7994 dnl 1. if it's the standard /usr/include,
7995 dnl 2. if it's already present in $CPPFLAGS,
7996 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
7997 dnl 4. if it doesn't exist as a directory.
7998 if test "X$additional_includedir" != "X/usr/include"; then
7999 haveit=
8000 for x in $CPPFLAGS; do
8001 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8002 if test "X$x" = "X-I$additional_includedir"; then
8003 haveit=yes
8004 break
8005 fi
8006 done
8007 if test -z "$haveit"; then
8008 if test "X$additional_includedir" = "X/usr/local/include"; then
8009 if test -n "$GCC"; then
8010 case $host_os in
8011 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8012 esac
8013 fi
8014 fi
8015 if test -z "$haveit"; then
8016 if test -d "$additional_includedir"; then
8017 dnl Really add $additional_includedir to $CPPFLAGS.
8018 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
8019 fi
8020 fi
8021 fi
8022 fi
8023 dnl Potentially add $additional_libdir to $LDFLAGS.
8024 dnl But don't add it
8025 dnl 1. if it's the standard /usr/lib,
8026 dnl 2. if it's already present in $LDFLAGS,
8027 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
8028 dnl 4. if it doesn't exist as a directory.
8029 if test "X$additional_libdir" != "X/usr/lib"; then
8030 haveit=
8031 for x in $LDFLAGS; do
8032 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8033 if test "X$x" = "X-L$additional_libdir"; then
8034 haveit=yes
8035 break
8036 fi
8037 done
8038 if test -z "$haveit"; then
8039 if test "X$additional_libdir" = "X/usr/local/lib"; then
8040 if test -n "$GCC"; then
8041 case $host_os in
8042 linux*) haveit=yes;;
8043 esac
8044 fi
8045 fi
8046 if test -z "$haveit"; then
8047 if test -d "$additional_libdir"; then
8048 dnl Really add $additional_libdir to $LDFLAGS.
8049 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
8050 fi
8051 fi
8052 fi
8053 fi
8054 fi
8055 ])
8056
8057 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
8058 dnl acl_final_exec_prefix, containing the values to which $prefix and
8059 dnl $exec_prefix will expand at the end of the configure script.
8060 AC_DEFUN([AC_LIB_PREPARE_PREFIX],
8061 [
8062 dnl Unfortunately, prefix and exec_prefix get only finally determined
8063 dnl at the end of configure.
8064 if test "X$prefix" = "XNONE"; then
8065 acl_final_prefix="$ac_default_prefix"
8066 else
8067 acl_final_prefix="$prefix"
8068 fi
8069 if test "X$exec_prefix" = "XNONE"; then
8070 acl_final_exec_prefix='${prefix}'
8071 else
8072 acl_final_exec_prefix="$exec_prefix"
8073 fi
8074 acl_save_prefix="$prefix"
8075 prefix="$acl_final_prefix"
8076 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8077 prefix="$acl_save_prefix"
8078 ])
8079
8080 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
8081 dnl variables prefix and exec_prefix bound to the values they will have
8082 dnl at the end of the configure script.
8083 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
8084 [
8085 acl_save_prefix="$prefix"
8086 prefix="$acl_final_prefix"
8087 acl_save_exec_prefix="$exec_prefix"
8088 exec_prefix="$acl_final_exec_prefix"
8089 $1
8090 exec_prefix="$acl_save_exec_prefix"
8091 prefix="$acl_save_prefix"
8092 ])
8093
8094 # lib-link.m4 serial 6 (gettext-0.14.3)
8095 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
8096 dnl This file is free software; the Free Software Foundation
8097 dnl gives unlimited permission to copy and/or distribute it,
8098 dnl with or without modifications, as long as this notice is preserved.
8099
8100 dnl From Bruno Haible.
8101
8102 AC_PREREQ(2.50)
8103
8104 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
8105 dnl the libraries corresponding to explicit and implicit dependencies.
8106 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
8107 dnl augments the CPPFLAGS variable.
8108 AC_DEFUN([AC_LIB_LINKFLAGS],
8109 [
8110 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
8111 AC_REQUIRE([AC_LIB_RPATH])
8112 define([Name],[translit([$1],[./-], [___])])
8113 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
8114 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
8115 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
8116 AC_LIB_LINKFLAGS_BODY([$1], [$2])
8117 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
8118 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
8119 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
8120 ])
8121 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
8122 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
8123 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
8124 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
8125 AC_SUBST([LIB]NAME)
8126 AC_SUBST([LTLIB]NAME)
8127 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
8128 dnl results of this search when this library appears as a dependency.
8129 HAVE_LIB[]NAME=yes
8130 undefine([Name])
8131 undefine([NAME])
8132 ])
8133
8134 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
8135 dnl searches for libname and the libraries corresponding to explicit and
8136 dnl implicit dependencies, together with the specified include files and
8137 dnl the ability to compile and link the specified testcode. If found, it
8138 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
8139 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
8140 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
8141 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
8142 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
8143 [
8144 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
8145 AC_REQUIRE([AC_LIB_RPATH])
8146 define([Name],[translit([$1],[./-], [___])])
8147 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
8148 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
8149
8150 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
8151 dnl accordingly.
8152 AC_LIB_LINKFLAGS_BODY([$1], [$2])
8153
8154 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
8155 dnl because if the user has installed lib[]Name and not disabled its use
8156 dnl via --without-lib[]Name-prefix, he wants to use it.
8157 ac_save_CPPFLAGS="$CPPFLAGS"
8158 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
8159
8160 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
8161 ac_save_LIBS="$LIBS"
8162 LIBS="$LIBS $LIB[]NAME"
8163 AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
8164 LIBS="$ac_save_LIBS"
8165 ])
8166 if test "$ac_cv_lib[]Name" = yes; then
8167 HAVE_LIB[]NAME=yes
8168 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
8169 AC_MSG_CHECKING([how to link with lib[]$1])
8170 AC_MSG_RESULT([$LIB[]NAME])
8171 else
8172 HAVE_LIB[]NAME=no
8173 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
8174 dnl $INC[]NAME either.
8175 CPPFLAGS="$ac_save_CPPFLAGS"
8176 LIB[]NAME=
8177 LTLIB[]NAME=
8178 fi
8179 AC_SUBST([HAVE_LIB]NAME)
8180 AC_SUBST([LIB]NAME)
8181 AC_SUBST([LTLIB]NAME)
8182 undefine([Name])
8183 undefine([NAME])
8184 ])
8185
8186 dnl Determine the platform dependent parameters needed to use rpath:
8187 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
8188 dnl hardcode_direct, hardcode_minus_L.
8189 AC_DEFUN([AC_LIB_RPATH],
8190 [
8191 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
8192 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
8193 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
8194 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
8195 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
8196 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
8197 AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
8198 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8199 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8200 . ./conftest.sh
8201 rm -f ./conftest.sh
8202 acl_cv_rpath=done
8203 ])
8204 wl="$acl_cv_wl"
8205 libext="$acl_cv_libext"
8206 shlibext="$acl_cv_shlibext"
8207 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8208 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8209 hardcode_direct="$acl_cv_hardcode_direct"
8210 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8211 dnl Determine whether the user wants rpath handling at all.
8212 AC_ARG_ENABLE(rpath,
8213 [ --disable-rpath do not hardcode runtime library paths],
8214 :, enable_rpath=yes)
8215 ])
8216
8217 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
8218 dnl the libraries corresponding to explicit and implicit dependencies.
8219 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
8220 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
8221 [
8222 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
8223 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
8224 dnl By default, look in $includedir and $libdir.
8225 use_additional=yes
8226 AC_LIB_WITH_FINAL_PREFIX([
8227 eval additional_includedir=\"$includedir\"
8228 eval additional_libdir=\"$libdir\"
8229 ])
8230 AC_LIB_ARG_WITH([lib$1-prefix],
8231 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
8232 --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
8233 [
8234 if test "X$withval" = "Xno"; then
8235 use_additional=no
8236 else
8237 if test "X$withval" = "X"; then
8238 AC_LIB_WITH_FINAL_PREFIX([
8239 eval additional_includedir=\"$includedir\"
8240 eval additional_libdir=\"$libdir\"
8241 ])
8242 else
8243 additional_includedir="$withval/include"
8244 additional_libdir="$withval/lib"
8245 fi
8246 fi
8247 ])
8248 dnl Search the library and its dependencies in $additional_libdir and
8249 dnl $LDFLAGS. Using breadth-first-seach.
8250 LIB[]NAME=
8251 LTLIB[]NAME=
8252 INC[]NAME=
8253 rpathdirs=
8254 ltrpathdirs=
8255 names_already_handled=
8256 names_next_round='$1 $2'
8257 while test -n "$names_next_round"; do
8258 names_this_round="$names_next_round"
8259 names_next_round=
8260 for name in $names_this_round; do
8261 already_handled=
8262 for n in $names_already_handled; do
8263 if test "$n" = "$name"; then
8264 already_handled=yes
8265 break
8266 fi
8267 done
8268 if test -z "$already_handled"; then
8269 names_already_handled="$names_already_handled $name"
8270 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
8271 dnl or AC_LIB_HAVE_LINKFLAGS call.
8272 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8273 eval value=\"\$HAVE_LIB$uppername\"
8274 if test -n "$value"; then
8275 if test "$value" = yes; then
8276 eval value=\"\$LIB$uppername\"
8277 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
8278 eval value=\"\$LTLIB$uppername\"
8279 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
8280 else
8281 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
8282 dnl that this library doesn't exist. So just drop it.
8283 :
8284 fi
8285 else
8286 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
8287 dnl and the already constructed $LIBNAME/$LTLIBNAME.
8288 found_dir=
8289 found_la=
8290 found_so=
8291 found_a=
8292 if test $use_additional = yes; then
8293 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8294 found_dir="$additional_libdir"
8295 found_so="$additional_libdir/lib$name.$shlibext"
8296 if test -f "$additional_libdir/lib$name.la"; then
8297 found_la="$additional_libdir/lib$name.la"
8298 fi
8299 else
8300 if test -f "$additional_libdir/lib$name.$libext"; then
8301 found_dir="$additional_libdir"
8302 found_a="$additional_libdir/lib$name.$libext"
8303 if test -f "$additional_libdir/lib$name.la"; then
8304 found_la="$additional_libdir/lib$name.la"
8305 fi
8306 fi
8307 fi
8308 fi
8309 if test "X$found_dir" = "X"; then
8310 for x in $LDFLAGS $LTLIB[]NAME; do
8311 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8312 case "$x" in
8313 -L*)
8314 dir=`echo "X$x" | sed -e 's/^X-L//'`
8315 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8316 found_dir="$dir"
8317 found_so="$dir/lib$name.$shlibext"
8318 if test -f "$dir/lib$name.la"; then
8319 found_la="$dir/lib$name.la"
8320 fi
8321 else
8322 if test -f "$dir/lib$name.$libext"; then
8323 found_dir="$dir"
8324 found_a="$dir/lib$name.$libext"
8325 if test -f "$dir/lib$name.la"; then
8326 found_la="$dir/lib$name.la"
8327 fi
8328 fi
8329 fi
8330 ;;
8331 esac
8332 if test "X$found_dir" != "X"; then
8333 break
8334 fi
8335 done
8336 fi
8337 if test "X$found_dir" != "X"; then
8338 dnl Found the library.
8339 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
8340 if test "X$found_so" != "X"; then
8341 dnl Linking with a shared library. We attempt to hardcode its
8342 dnl directory into the executable's runpath, unless it's the
8343 dnl standard /usr/lib.
8344 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8345 dnl No hardcoding is needed.
8346 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
8347 else
8348 dnl Use an explicit option to hardcode DIR into the resulting
8349 dnl binary.
8350 dnl Potentially add DIR to ltrpathdirs.
8351 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
8352 haveit=
8353 for x in $ltrpathdirs; do
8354 if test "X$x" = "X$found_dir"; then
8355 haveit=yes
8356 break
8357 fi
8358 done
8359 if test -z "$haveit"; then
8360 ltrpathdirs="$ltrpathdirs $found_dir"
8361 fi
8362 dnl The hardcoding into $LIBNAME is system dependent.
8363 if test "$hardcode_direct" = yes; then
8364 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
8365 dnl resulting binary.
8366 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
8367 else
8368 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8369 dnl Use an explicit option to hardcode DIR into the resulting
8370 dnl binary.
8371 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
8372 dnl Potentially add DIR to rpathdirs.
8373 dnl The rpathdirs will be appended to $LIBNAME at the end.
8374 haveit=
8375 for x in $rpathdirs; do
8376 if test "X$x" = "X$found_dir"; then
8377 haveit=yes
8378 break
8379 fi
8380 done
8381 if test -z "$haveit"; then
8382 rpathdirs="$rpathdirs $found_dir"
8383 fi
8384 else
8385 dnl Rely on "-L$found_dir".
8386 dnl But don't add it if it's already contained in the LDFLAGS
8387 dnl or the already constructed $LIBNAME
8388 haveit=
8389 for x in $LDFLAGS $LIB[]NAME; do
8390 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8391 if test "X$x" = "X-L$found_dir"; then
8392 haveit=yes
8393 break
8394 fi
8395 done
8396 if test -z "$haveit"; then
8397 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
8398 fi
8399 if test "$hardcode_minus_L" != no; then
8400 dnl FIXME: Not sure whether we should use
8401 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
8402 dnl here.
8403 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
8404 else
8405 dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
8406 dnl here, because this doesn't fit in flags passed to the
8407 dnl compiler. So give up. No hardcoding. This affects only
8408 dnl very old systems.
8409 dnl FIXME: Not sure whether we should use
8410 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
8411 dnl here.
8412 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
8413 fi
8414 fi
8415 fi
8416 fi
8417 else
8418 if test "X$found_a" != "X"; then
8419 dnl Linking with a static library.
8420 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
8421 else
8422 dnl We shouldn't come here, but anyway it's good to have a
8423 dnl fallback.
8424 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
8425 fi
8426 fi
8427 dnl Assume the include files are nearby.
8428 additional_includedir=
8429 case "$found_dir" in
8430 */lib | */lib/)
8431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8432 additional_includedir="$basedir/include"
8433 ;;
8434 esac
8435 if test "X$additional_includedir" != "X"; then
8436 dnl Potentially add $additional_includedir to $INCNAME.
8437 dnl But don't add it
8438 dnl 1. if it's the standard /usr/include,
8439 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
8440 dnl 3. if it's already present in $CPPFLAGS or the already
8441 dnl constructed $INCNAME,
8442 dnl 4. if it doesn't exist as a directory.
8443 if test "X$additional_includedir" != "X/usr/include"; then
8444 haveit=
8445 if test "X$additional_includedir" = "X/usr/local/include"; then
8446 if test -n "$GCC"; then
8447 case $host_os in
8448 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8449 esac
8450 fi
8451 fi
8452 if test -z "$haveit"; then
8453 for x in $CPPFLAGS $INC[]NAME; do
8454 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8455 if test "X$x" = "X-I$additional_includedir"; then
8456 haveit=yes
8457 break
8458 fi
8459 done
8460 if test -z "$haveit"; then
8461 if test -d "$additional_includedir"; then
8462 dnl Really add $additional_includedir to $INCNAME.
8463 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
8464 fi
8465 fi
8466 fi
8467 fi
8468 fi
8469 dnl Look for dependencies.
8470 if test -n "$found_la"; then
8471 dnl Read the .la file. It defines the variables
8472 dnl dlname, library_names, old_library, dependency_libs, current,
8473 dnl age, revision, installed, dlopen, dlpreopen, libdir.
8474 save_libdir="$libdir"
8475 case "$found_la" in
8476 */* | *\\*) . "$found_la" ;;
8477 *) . "./$found_la" ;;
8478 esac
8479 libdir="$save_libdir"
8480 dnl We use only dependency_libs.
8481 for dep in $dependency_libs; do
8482 case "$dep" in
8483 -L*)
8484 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8485 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
8486 dnl But don't add it
8487 dnl 1. if it's the standard /usr/lib,
8488 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
8489 dnl 3. if it's already present in $LDFLAGS or the already
8490 dnl constructed $LIBNAME,
8491 dnl 4. if it doesn't exist as a directory.
8492 if test "X$additional_libdir" != "X/usr/lib"; then
8493 haveit=
8494 if test "X$additional_libdir" = "X/usr/local/lib"; then
8495 if test -n "$GCC"; then
8496 case $host_os in
8497 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8498 esac
8499 fi
8500 fi
8501 if test -z "$haveit"; then
8502 haveit=
8503 for x in $LDFLAGS $LIB[]NAME; do
8504 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8505 if test "X$x" = "X-L$additional_libdir"; then
8506 haveit=yes
8507 break
8508 fi
8509 done
8510 if test -z "$haveit"; then
8511 if test -d "$additional_libdir"; then
8512 dnl Really add $additional_libdir to $LIBNAME.
8513 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
8514 fi
8515 fi
8516 haveit=
8517 for x in $LDFLAGS $LTLIB[]NAME; do
8518 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8519 if test "X$x" = "X-L$additional_libdir"; then
8520 haveit=yes
8521 break
8522 fi
8523 done
8524 if test -z "$haveit"; then
8525 if test -d "$additional_libdir"; then
8526 dnl Really add $additional_libdir to $LTLIBNAME.
8527 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
8528 fi
8529 fi
8530 fi
8531 fi
8532 ;;
8533 -R*)
8534 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8535 if test "$enable_rpath" != no; then
8536 dnl Potentially add DIR to rpathdirs.
8537 dnl The rpathdirs will be appended to $LIBNAME at the end.
8538 haveit=
8539 for x in $rpathdirs; do
8540 if test "X$x" = "X$dir"; then
8541 haveit=yes
8542 break
8543 fi
8544 done
8545 if test -z "$haveit"; then
8546 rpathdirs="$rpathdirs $dir"
8547 fi
8548 dnl Potentially add DIR to ltrpathdirs.
8549 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
8550 haveit=
8551 for x in $ltrpathdirs; do
8552 if test "X$x" = "X$dir"; then
8553 haveit=yes
8554 break
8555 fi
8556 done
8557 if test -z "$haveit"; then
8558 ltrpathdirs="$ltrpathdirs $dir"
8559 fi
8560 fi
8561 ;;
8562 -l*)
8563 dnl Handle this in the next round.
8564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8565 ;;
8566 *.la)
8567 dnl Handle this in the next round. Throw away the .la's
8568 dnl directory; it is already contained in a preceding -L
8569 dnl option.
8570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8571 ;;
8572 *)
8573 dnl Most likely an immediate library name.
8574 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
8575 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
8576 ;;
8577 esac
8578 done
8579 fi
8580 else
8581 dnl Didn't find the library; assume it is in the system directories
8582 dnl known to the linker and runtime loader. (All the system
8583 dnl directories known to the linker should also be known to the
8584 dnl runtime loader, otherwise the system is severely misconfigured.)
8585 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
8586 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
8587 fi
8588 fi
8589 fi
8590 done
8591 done
8592 if test "X$rpathdirs" != "X"; then
8593 if test -n "$hardcode_libdir_separator"; then
8594 dnl Weird platform: only the last -rpath option counts, the user must
8595 dnl pass all path elements in one option. We can arrange that for a
8596 dnl single library, but not when more than one $LIBNAMEs are used.
8597 alldirs=
8598 for found_dir in $rpathdirs; do
8599 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8600 done
8601 dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
8602 acl_save_libdir="$libdir"
8603 libdir="$alldirs"
8604 eval flag=\"$hardcode_libdir_flag_spec\"
8605 libdir="$acl_save_libdir"
8606 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
8607 else
8608 dnl The -rpath options are cumulative.
8609 for found_dir in $rpathdirs; do
8610 acl_save_libdir="$libdir"
8611 libdir="$found_dir"
8612 eval flag=\"$hardcode_libdir_flag_spec\"
8613 libdir="$acl_save_libdir"
8614 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
8615 done
8616 fi
8617 fi
8618 if test "X$ltrpathdirs" != "X"; then
8619 dnl When using libtool, the option that works for both libraries and
8620 dnl executables is -R. The -R options are cumulative.
8621 for found_dir in $ltrpathdirs; do
8622 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
8623 done
8624 fi
8625 ])
8626
8627 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
8628 dnl unless already present in VAR.
8629 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
8630 dnl contains two or three consecutive elements that belong together.
8631 AC_DEFUN([AC_LIB_APPENDTOVAR],
8632 [
8633 for element in [$2]; do
8634 haveit=
8635 for x in $[$1]; do
8636 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
8637 if test "X$x" = "X$element"; then
8638 haveit=yes
8639 break
8640 fi
8641 done
8642 if test -z "$haveit"; then
8643 [$1]="${[$1]}${[$1]:+ }$element"
8644 fi
8645 done
8646 ])
8647
8648 # lib-ld.m4 serial 3 (gettext-0.13)
8649 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
8650 dnl This file is free software; the Free Software Foundation
8651 dnl gives unlimited permission to copy and/or distribute it,
8652 dnl with or without modifications, as long as this notice is preserved.
8653
8654 dnl Subroutines of libtool.m4,
8655 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
8656 dnl with libtool.m4.
8657
8658 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
8659 AC_DEFUN([AC_LIB_PROG_LD_GNU],
8660 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
8661 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
8662 case `$LD -v 2>&1 </dev/null` in
8663 *GNU* | *'with BFD'*)
8664 acl_cv_prog_gnu_ld=yes ;;
8665 *)
8666 acl_cv_prog_gnu_ld=no ;;
8667 esac])
8668 with_gnu_ld=$acl_cv_prog_gnu_ld
8669 ])
8670
8671 dnl From libtool-1.4. Sets the variable LD.
8672 AC_DEFUN([AC_LIB_PROG_LD],
8673 [AC_ARG_WITH(gnu-ld,
8674 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
8675 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
8676 AC_REQUIRE([AC_PROG_CC])dnl
8677 AC_REQUIRE([AC_CANONICAL_HOST])dnl
8678 # Prepare PATH_SEPARATOR.
8679 # The user is always right.
8680 if test "${PATH_SEPARATOR+set}" != set; then
8681 echo "#! /bin/sh" >conf$$.sh
8682 echo "exit 0" >>conf$$.sh
8683 chmod +x conf$$.sh
8684 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8685 PATH_SEPARATOR=';'
8686 else
8687 PATH_SEPARATOR=:
8688 fi
8689 rm -f conf$$.sh
8690 fi
8691 ac_prog=ld
8692 if test "$GCC" = yes; then
8693 # Check if gcc -print-prog-name=ld gives a path.
8694 AC_MSG_CHECKING([for ld used by GCC])
8695 case $host in
8696 *-*-mingw*)
8697 # gcc leaves a trailing carriage return which upsets mingw
8698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8699 *)
8700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8701 esac
8702 case $ac_prog in
8703 # Accept absolute paths.
8704 [[\\/]* | [A-Za-z]:[\\/]*)]
8705 [re_direlt='/[^/][^/]*/\.\./']
8706 # Canonicalize the path of ld
8707 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8708 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8709 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8710 done
8711 test -z "$LD" && LD="$ac_prog"
8712 ;;
8713 "")
8714 # If it fails, then pretend we aren't using GCC.
8715 ac_prog=ld
8716 ;;
8717 *)
8718 # If it is relative, then search for the first ld in PATH.
8719 with_gnu_ld=unknown
8720 ;;
8721 esac
8722 elif test "$with_gnu_ld" = yes; then
8723 AC_MSG_CHECKING([for GNU ld])
8724 else
8725 AC_MSG_CHECKING([for non-GNU ld])
8726 fi
8727 AC_CACHE_VAL(acl_cv_path_LD,
8728 [if test -z "$LD"; then
8729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8730 for ac_dir in $PATH; do
8731 test -z "$ac_dir" && ac_dir=.
8732 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8733 acl_cv_path_LD="$ac_dir/$ac_prog"
8734 # Check to see if the program is GNU ld. I'd rather use --version,
8735 # but apparently some GNU ld's only accept -v.
8736 # Break only if it was the GNU/non-GNU ld that we prefer.
8737 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8738 *GNU* | *'with BFD'*)
8739 test "$with_gnu_ld" != no && break ;;
8740 *)
8741 test "$with_gnu_ld" != yes && break ;;
8742 esac
8743 fi
8744 done
8745 IFS="$ac_save_ifs"
8746 else
8747 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8748 fi])
8749 LD="$acl_cv_path_LD"
8750 if test -n "$LD"; then
8751 AC_MSG_RESULT($LD)
8752 else
8753 AC_MSG_RESULT(no)
8754 fi
8755 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
8756 AC_LIB_PROG_LD_GNU
8757 ])
8758
8759 # iconv.m4 serial AM4 (gettext-0.11.3)
8760 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
8761 dnl This file is free software; the Free Software Foundation
8762 dnl gives unlimited permission to copy and/or distribute it,
8763 dnl with or without modifications, as long as this notice is preserved.
8764
8765 dnl From Bruno Haible.
8766
8767 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
8768 [
8769 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
8770 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
8771 AC_REQUIRE([AC_LIB_RPATH])
8772
8773 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
8774 dnl accordingly.
8775 AC_LIB_LINKFLAGS_BODY([iconv])
8776 ])
8777
8778 AC_DEFUN([AM_ICONV_LINK],
8779 [
8780 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
8781 dnl those with the standalone portable GNU libiconv installed).
8782
8783 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
8784 dnl accordingly.
8785 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
8786
8787 dnl Add $INCICONV to CPPFLAGS before performing the following checks,
8788 dnl because if the user has installed libiconv and not disabled its use
8789 dnl via --without-libiconv-prefix, he wants to use it. The first
8790 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
8791 am_save_CPPFLAGS="$CPPFLAGS"
8792 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
8793
8794 AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
8795 am_cv_func_iconv="no, consider installing GNU libiconv"
8796 am_cv_lib_iconv=no
8797 AC_TRY_LINK([#include <stdlib.h>
8798 #include <iconv.h>],
8799 [iconv_t cd = iconv_open("","");
8800 iconv(cd,NULL,NULL,NULL,NULL);
8801 iconv_close(cd);],
8802 am_cv_func_iconv=yes)
8803 if test "$am_cv_func_iconv" != yes; then
8804 am_save_LIBS="$LIBS"
8805 LIBS="$LIBS $LIBICONV"
8806 AC_TRY_LINK([#include <stdlib.h>
8807 #include <iconv.h>],
8808 [iconv_t cd = iconv_open("","");
8809 iconv(cd,NULL,NULL,NULL,NULL);
8810 iconv_close(cd);],
8811 am_cv_lib_iconv=yes
8812 am_cv_func_iconv=yes)
8813 LIBS="$am_save_LIBS"
8814 fi
8815 ])
8816 if test "$am_cv_func_iconv" = yes; then
8817 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
8818 fi
8819 if test "$am_cv_lib_iconv" = yes; then
8820 AC_MSG_CHECKING([how to link with libiconv])
8821 AC_MSG_RESULT([$LIBICONV])
8822 else
8823 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
8824 dnl either.
8825 CPPFLAGS="$am_save_CPPFLAGS"
8826 LIBICONV=
8827 LTLIBICONV=
8828 fi
8829 AC_SUBST(LIBICONV)
8830 AC_SUBST(LTLIBICONV)
8831 ])
8832
8833 AC_DEFUN([AM_ICONV],
8834 [
8835 AM_ICONV_LINK
8836 if test "$am_cv_func_iconv" = yes; then
8837 AC_MSG_CHECKING([for iconv declaration])
8838 AC_CACHE_VAL(am_cv_proto_iconv, [
8839 AC_TRY_COMPILE([
8840 #include <stdlib.h>
8841 #include <iconv.h>
8842 extern
8843 #ifdef __cplusplus
8844 "C"
8845 #endif
8846 #if defined(__STDC__) || defined(__cplusplus)
8847 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8848 #else
8849 size_t iconv();
8850 #endif
8851 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
8852 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);"])
8853 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8854 AC_MSG_RESULT([$]{ac_t:-
8855 }[$]am_cv_proto_iconv)
8856 AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
8857 [Define as const if the declaration of iconv() needs const.])
8858 fi
8859 ])
8860
8861 # glibc2.m4 serial 1
8862 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
8863 dnl This file is free software; the Free Software Foundation
8864 dnl gives unlimited permission to copy and/or distribute it,
8865 dnl with or without modifications, as long as this notice is preserved.
8866
8867 # Test for the GNU C Library, version 2.0 or newer.
8868 # From Bruno Haible.
8869
8870 AC_DEFUN([gt_GLIBC2],
8871 [
8872 AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer,
8873 ac_cv_gnu_library_2,
8874 [AC_EGREP_CPP([Lucky GNU user],
8875 [
8876 #include <features.h>
8877 #ifdef __GNU_LIBRARY__
8878 #if (__GLIBC__ >= 2)
8879 Lucky GNU user
8880 #endif
8881 #endif
8882 ],
8883 ac_cv_gnu_library_2=yes,
8884 ac_cv_gnu_library_2=no)
8885 ]
8886 )
8887 AC_SUBST(GLIBC2)
8888 GLIBC2="$ac_cv_gnu_library_2"
8889 ]
8890 )
8891
8892 # signed.m4 serial 1 (gettext-0.10.40)
8893 dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
8894 dnl This file is free software; the Free Software Foundation
8895 dnl gives unlimited permission to copy and/or distribute it,
8896 dnl with or without modifications, as long as this notice is preserved.
8897
8898 dnl From Bruno Haible.
8899
8900 AC_DEFUN([bh_C_SIGNED],
8901 [
8902 AC_CACHE_CHECK([for signed], bh_cv_c_signed,
8903 [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)])
8904 if test $bh_cv_c_signed = no; then
8905 AC_DEFINE(signed, ,
8906 [Define to empty if the C compiler doesn't support this keyword.])
8907 fi
8908 ])
8909
8910 # longlong.m4 serial 5
8911 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
8912 dnl This file is free software; the Free Software Foundation
8913 dnl gives unlimited permission to copy and/or distribute it,
8914 dnl with or without modifications, as long as this notice is preserved.
8915
8916 dnl From Paul Eggert.
8917
8918 # Define HAVE_LONG_LONG if 'long long' works.
8919
8920 AC_DEFUN([gl_AC_TYPE_LONG_LONG],
8921 [
8922 AC_CACHE_CHECK([for long long], ac_cv_type_long_long,
8923 [AC_TRY_LINK([long long ll = 1LL; int i = 63;],
8924 [long long llmax = (long long) -1;
8925 return ll << i | ll >> i | llmax / ll | llmax % ll;],
8926 ac_cv_type_long_long=yes,
8927 ac_cv_type_long_long=no)])
8928 if test $ac_cv_type_long_long = yes; then
8929 AC_DEFINE(HAVE_LONG_LONG, 1,
8930 [Define if you have the 'long long' type.])
8931 fi
8932 ])
8933
8934 # longdouble.m4 serial 1 (gettext-0.12)
8935 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
8936 dnl This file is free software; the Free Software Foundation
8937 dnl gives unlimited permission to copy and/or distribute it,
8938 dnl with or without modifications, as long as this notice is preserved.
8939
8940 dnl From Bruno Haible.
8941 dnl Test whether the compiler supports the 'long double' type.
8942 dnl Prerequisite: AC_PROG_CC
8943
8944 AC_DEFUN([gt_TYPE_LONGDOUBLE],
8945 [
8946 AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
8947 [if test "$GCC" = yes; then
8948 gt_cv_c_long_double=yes
8949 else
8950 AC_TRY_COMPILE([
8951 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8952 long double foo = 0.0;
8953 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8954 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8955 ], ,
8956 gt_cv_c_long_double=yes, gt_cv_c_long_double=no)
8957 fi])
8958 if test $gt_cv_c_long_double = yes; then
8959 AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])
8960 fi
8961 ])
8962
8963 # wchar_t.m4 serial 1 (gettext-0.12)
8964 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
8965 dnl This file is free software; the Free Software Foundation
8966 dnl gives unlimited permission to copy and/or distribute it,
8967 dnl with or without modifications, as long as this notice is preserved.
8968
8969 dnl From Bruno Haible.
8970 dnl Test whether <stddef.h> has the 'wchar_t' type.
8971 dnl Prerequisite: AC_PROG_CC
8972
8973 AC_DEFUN([gt_TYPE_WCHAR_T],
8974 [
8975 AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,
8976 [AC_TRY_COMPILE([#include <stddef.h>
8977 wchar_t foo = (wchar_t)'\0';], ,
8978 gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])
8979 if test $gt_cv_c_wchar_t = yes; then
8980 AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])
8981 fi
8982 ])
8983
8984 # wint_t.m4 serial 1 (gettext-0.12)
8985 dnl Copyright (C) 2003 Free Software Foundation, Inc.
8986 dnl This file is free software; the Free Software Foundation
8987 dnl gives unlimited permission to copy and/or distribute it,
8988 dnl with or without modifications, as long as this notice is preserved.
8989
8990 dnl From Bruno Haible.
8991 dnl Test whether <wchar.h> has the 'wint_t' type.
8992 dnl Prerequisite: AC_PROG_CC
8993
8994 AC_DEFUN([gt_TYPE_WINT_T],
8995 [
8996 AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,
8997 [AC_TRY_COMPILE([#include <wchar.h>
8998 wint_t foo = (wchar_t)'\0';], ,
8999 gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])
9000 if test $gt_cv_c_wint_t = yes; then
9001 AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])
9002 fi
9003 ])
9004
9005 # inttypes_h.m4 serial 6
9006 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
9007 dnl This file is free software; the Free Software Foundation
9008 dnl gives unlimited permission to copy and/or distribute it,
9009 dnl with or without modifications, as long as this notice is preserved.
9010
9011 dnl From Paul Eggert.
9012
9013 # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
9014 # doesn't clash with <sys/types.h>, and declares uintmax_t.
9015
9016 AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
9017 [
9018 AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h,
9019 [AC_TRY_COMPILE(
9020 [#include <sys/types.h>
9021 #include <inttypes.h>],
9022 [uintmax_t i = (uintmax_t) -1;],
9023 gl_cv_header_inttypes_h=yes,
9024 gl_cv_header_inttypes_h=no)])
9025 if test $gl_cv_header_inttypes_h = yes; then
9026 AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
9027 [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
9028 and declares uintmax_t. ])
9029 fi
9030 ])
9031
9032 # stdint_h.m4 serial 5
9033 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
9034 dnl This file is free software; the Free Software Foundation
9035 dnl gives unlimited permission to copy and/or distribute it,
9036 dnl with or without modifications, as long as this notice is preserved.
9037
9038 dnl From Paul Eggert.
9039
9040 # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
9041 # doesn't clash with <sys/types.h>, and declares uintmax_t.
9042
9043 AC_DEFUN([gl_AC_HEADER_STDINT_H],
9044 [
9045 AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h,
9046 [AC_TRY_COMPILE(
9047 [#include <sys/types.h>
9048 #include <stdint.h>],
9049 [uintmax_t i = (uintmax_t) -1;],
9050 gl_cv_header_stdint_h=yes,
9051 gl_cv_header_stdint_h=no)])
9052 if test $gl_cv_header_stdint_h = yes; then
9053 AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
9054 [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
9055 and declares uintmax_t. ])
9056 fi
9057 ])
9058
9059 # intmax.m4 serial 2 (gettext-0.14.2)
9060 dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
9061 dnl This file is free software; the Free Software Foundation
9062 dnl gives unlimited permission to copy and/or distribute it,
9063 dnl with or without modifications, as long as this notice is preserved.
9064
9065 dnl From Bruno Haible.
9066 dnl Test whether the system has the 'intmax_t' type, but don't attempt to
9067 dnl find a replacement if it is lacking.
9068
9069 AC_DEFUN([gt_TYPE_INTMAX_T],
9070 [
9071 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
9072 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
9073 AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
9074 [AC_TRY_COMPILE([
9075 #include <stddef.h>
9076 #include <stdlib.h>
9077 #if HAVE_STDINT_H_WITH_UINTMAX
9078 #include <stdint.h>
9079 #endif
9080 #if HAVE_INTTYPES_H_WITH_UINTMAX
9081 #include <inttypes.h>
9082 #endif
9083 ], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
9084 if test $gt_cv_c_intmax_t = yes; then
9085 AC_DEFINE(HAVE_INTMAX_T, 1,
9086 [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
9087 fi
9088 ])
9089
9090 # printf-posix.m4 serial 2 (gettext-0.13.1)
9091 dnl Copyright (C) 2003 Free Software Foundation, Inc.
9092 dnl This file is free software; the Free Software Foundation
9093 dnl gives unlimited permission to copy and/or distribute it,
9094 dnl with or without modifications, as long as this notice is preserved.
9095
9096 dnl From Bruno Haible.
9097 dnl Test whether the printf() function supports POSIX/XSI format strings with
9098 dnl positions.
9099
9100 AC_DEFUN([gt_PRINTF_POSIX],
9101 [
9102 AC_REQUIRE([AC_PROG_CC])
9103 AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
9104 gt_cv_func_printf_posix,
9105 [
9106 AC_TRY_RUN([
9107 #include <stdio.h>
9108 #include <string.h>
9109 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9110 dollar expansion (possibly an autoconf bug). */
9111 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9112 static char buf[100];
9113 int main ()
9114 {
9115 sprintf (buf, format, 33, 55);
9116 return (strcmp (buf, "55 33") != 0);
9117 }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
9118 [
9119 AC_EGREP_CPP(notposix, [
9120 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9121 notposix
9122 #endif
9123 ], gt_cv_func_printf_posix="guessing no",
9124 gt_cv_func_printf_posix="guessing yes")
9125 ])
9126 ])
9127 case $gt_cv_func_printf_posix in
9128 *yes)
9129 AC_DEFINE(HAVE_POSIX_PRINTF, 1,
9130 [Define if your printf() function supports format strings with positions.])
9131 ;;
9132 esac
9133 ])
9134
9135 # glibc21.m4 serial 3
9136 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
9137 dnl This file is free software; the Free Software Foundation
9138 dnl gives unlimited permission to copy and/or distribute it,
9139 dnl with or without modifications, as long as this notice is preserved.
9140
9141 # Test for the GNU C Library, version 2.1 or newer.
9142 # From Bruno Haible.
9143
9144 AC_DEFUN([gl_GLIBC21],
9145 [
9146 AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
9147 ac_cv_gnu_library_2_1,
9148 [AC_EGREP_CPP([Lucky GNU user],
9149 [
9150 #include <features.h>
9151 #ifdef __GNU_LIBRARY__
9152 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9153 Lucky GNU user
9154 #endif
9155 #endif
9156 ],
9157 ac_cv_gnu_library_2_1=yes,
9158 ac_cv_gnu_library_2_1=no)
9159 ]
9160 )
9161 AC_SUBST(GLIBC21)
9162 GLIBC21="$ac_cv_gnu_library_2_1"
9163 ]
9164 )
9165
9166 # intdiv0.m4 serial 1 (gettext-0.11.3)
9167 dnl Copyright (C) 2002 Free Software Foundation, Inc.
9168 dnl This file is free software; the Free Software Foundation
9169 dnl gives unlimited permission to copy and/or distribute it,
9170 dnl with or without modifications, as long as this notice is preserved.
9171
9172 dnl From Bruno Haible.
9173
9174 AC_DEFUN([gt_INTDIV0],
9175 [
9176 AC_REQUIRE([AC_PROG_CC])dnl
9177 AC_REQUIRE([AC_CANONICAL_HOST])dnl
9178
9179 AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
9180 gt_cv_int_divbyzero_sigfpe,
9181 [
9182 AC_TRY_RUN([
9183 #include <stdlib.h>
9184 #include <signal.h>
9185
9186 static void
9187 #ifdef __cplusplus
9188 sigfpe_handler (int sig)
9189 #else
9190 sigfpe_handler (sig) int sig;
9191 #endif
9192 {
9193 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9194 exit (sig != SIGFPE);
9195 }
9196
9197 int x = 1;
9198 int y = 0;
9199 int z;
9200 int nan;
9201
9202 int main ()
9203 {
9204 signal (SIGFPE, sigfpe_handler);
9205 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9206 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9207 signal (SIGTRAP, sigfpe_handler);
9208 #endif
9209 /* Linux/SPARC yields signal SIGILL. */
9210 #if defined (__sparc__) && defined (__linux__)
9211 signal (SIGILL, sigfpe_handler);
9212 #endif
9213
9214 z = x / y;
9215 nan = y / y;
9216 exit (1);
9217 }
9218 ], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
9219 [
9220 # Guess based on the CPU.
9221 case "$host_cpu" in
9222 alpha* | i[34567]86 | m68k | s390*)
9223 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9224 *)
9225 gt_cv_int_divbyzero_sigfpe="guessing no";;
9226 esac
9227 ])
9228 ])
9229 case "$gt_cv_int_divbyzero_sigfpe" in
9230 *yes) value=1;;
9231 *) value=0;;
9232 esac
9233 AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
9234 [Define if integer division by zero raises signal SIGFPE.])
9235 ])
9236
9237 # uintmax_t.m4 serial 9
9238 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
9239 dnl This file is free software; the Free Software Foundation
9240 dnl gives unlimited permission to copy and/or distribute it,
9241 dnl with or without modifications, as long as this notice is preserved.
9242
9243 dnl From Paul Eggert.
9244
9245 AC_PREREQ(2.13)
9246
9247 # Define uintmax_t to 'unsigned long' or 'unsigned long long'
9248 # if it is not already defined in <stdint.h> or <inttypes.h>.
9249
9250 AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
9251 [
9252 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
9253 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
9254 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9255 AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
9256 test $ac_cv_type_unsigned_long_long = yes \
9257 && ac_type='unsigned long long' \
9258 || ac_type='unsigned long'
9259 AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
9260 [Define to unsigned long or unsigned long long
9261 if <stdint.h> and <inttypes.h> don't define.])
9262 else
9263 AC_DEFINE(HAVE_UINTMAX_T, 1,
9264 [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
9265 fi
9266 ])
9267
9268 # ulonglong.m4 serial 4
9269 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
9270 dnl This file is free software; the Free Software Foundation
9271 dnl gives unlimited permission to copy and/or distribute it,
9272 dnl with or without modifications, as long as this notice is preserved.
9273
9274 dnl From Paul Eggert.
9275
9276 # Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works.
9277
9278 AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
9279 [
9280 AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
9281 [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;],
9282 [unsigned long long ullmax = (unsigned long long) -1;
9283 return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
9284 ac_cv_type_unsigned_long_long=yes,
9285 ac_cv_type_unsigned_long_long=no)])
9286 if test $ac_cv_type_unsigned_long_long = yes; then
9287 AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
9288 [Define if you have the 'unsigned long long' type.])
9289 fi
9290 ])
9291
9292 # inttypes.m4 serial 1 (gettext-0.11.4)
9293 dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
9294 dnl This file is free software; the Free Software Foundation
9295 dnl gives unlimited permission to copy and/or distribute it,
9296 dnl with or without modifications, as long as this notice is preserved.
9297
9298 dnl From Paul Eggert.
9299
9300 # Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
9301 # <sys/types.h>.
9302
9303 AC_DEFUN([gt_HEADER_INTTYPES_H],
9304 [
9305 AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
9306 [
9307 AC_TRY_COMPILE(
9308 [#include <sys/types.h>
9309 #include <inttypes.h>],
9310 [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
9311 ])
9312 if test $gt_cv_header_inttypes_h = yes; then
9313 AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
9314 [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
9315 fi
9316 ])
9317
9318 # inttypes-pri.m4 serial 1 (gettext-0.11.4)
9319 dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
9320 dnl This file is free software; the Free Software Foundation
9321 dnl gives unlimited permission to copy and/or distribute it,
9322 dnl with or without modifications, as long as this notice is preserved.
9323
9324 dnl From Bruno Haible.
9325
9326 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
9327 # macros to non-string values. This is the case on AIX 4.3.3.
9328
9329 AC_DEFUN([gt_INTTYPES_PRI],
9330 [
9331 AC_REQUIRE([gt_HEADER_INTTYPES_H])
9332 if test $gt_cv_header_inttypes_h = yes; then
9333 AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
9334 gt_cv_inttypes_pri_broken,
9335 [
9336 AC_TRY_COMPILE([#include <inttypes.h>
9337 #ifdef PRId32
9338 char *p = PRId32;
9339 #endif
9340 ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
9341 ])
9342 fi
9343 if test "$gt_cv_inttypes_pri_broken" = yes; then
9344 AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
9345 [Define if <inttypes.h> exists and defines unusable PRI* macros.])
9346 fi
9347 ])
9348
9349 # xsize.m4 serial 3
9350 dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
9351 dnl This file is free software; the Free Software Foundation
9352 dnl gives unlimited permission to copy and/or distribute it,
9353 dnl with or without modifications, as long as this notice is preserved.
9354
9355 AC_DEFUN([gl_XSIZE],
9356 [
9357 dnl Prerequisites of lib/xsize.h.
9358 AC_REQUIRE([gl_SIZE_MAX])
9359 AC_REQUIRE([AC_C_INLINE])
9360 AC_CHECK_HEADERS(stdint.h)
9361 ])
9362
9363 # size_max.m4 serial 2
9364 dnl Copyright (C) 2003 Free Software Foundation, Inc.
9365 dnl This file is free software; the Free Software Foundation
9366 dnl gives unlimited permission to copy and/or distribute it,
9367 dnl with or without modifications, as long as this notice is preserved.
9368
9369 dnl From Bruno Haible.
9370
9371 AC_DEFUN([gl_SIZE_MAX],
9372 [
9373 AC_CHECK_HEADERS(stdint.h)
9374 dnl First test whether the system already has SIZE_MAX.
9375 AC_MSG_CHECKING([for SIZE_MAX])
9376 result=
9377 AC_EGREP_CPP([Found it], [
9378 #include <limits.h>
9379 #if HAVE_STDINT_H
9380 #include <stdint.h>
9381 #endif
9382 #ifdef SIZE_MAX
9383 Found it
9384 #endif
9385 ], result=yes)
9386 if test -z "$result"; then
9387 dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
9388 dnl than the type 'unsigned long'.
9389 dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr',
9390 dnl which is guaranteed to work from LONG_MIN to LONG_MAX.
9391 _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi,
9392 [#include <stddef.h>], result=?)
9393 _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo,
9394 [#include <stddef.h>], result=?)
9395 _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint,
9396 [#include <stddef.h>], result=?)
9397 if test "$fits_in_uint" = 1; then
9398 dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
9399 dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
9400 AC_TRY_COMPILE([#include <stddef.h>
9401 extern size_t foo;
9402 extern unsigned long foo;
9403 ], [], fits_in_uint=0)
9404 fi
9405 if test -z "$result"; then
9406 if test "$fits_in_uint" = 1; then
9407 result="$res_hi$res_lo"U
9408 else
9409 result="$res_hi$res_lo"UL
9410 fi
9411 else
9412 dnl Shouldn't happen, but who knows...
9413 result='~(size_t)0'
9414 fi
9415 fi
9416 AC_MSG_RESULT([$result])
9417 if test "$result" != yes; then
9418 AC_DEFINE_UNQUOTED([SIZE_MAX], [$result],
9419 [Define as the maximum value of type 'size_t', if the system doesn't define it.])
9420 fi
9421 ])
9422
9423 # codeset.m4 serial AM1 (gettext-0.10.40)
9424 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
9425 dnl This file is free software; the Free Software Foundation
9426 dnl gives unlimited permission to copy and/or distribute it,
9427 dnl with or without modifications, as long as this notice is preserved.
9428
9429 dnl From Bruno Haible.
9430
9431 AC_DEFUN([AM_LANGINFO_CODESET],
9432 [
9433 AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
9434 [AC_TRY_LINK([#include <langinfo.h>],
9435 [char* cs = nl_langinfo(CODESET);],
9436 am_cv_langinfo_codeset=yes,
9437 am_cv_langinfo_codeset=no)
9438 ])
9439 if test $am_cv_langinfo_codeset = yes; then
9440 AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
9441 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
9442 fi
9443 ])
9444
9445 # lcmessage.m4 serial 4 (gettext-0.14.2)
9446 dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc.
9447 dnl This file is free software; the Free Software Foundation
9448 dnl gives unlimited permission to copy and/or distribute it,
9449 dnl with or without modifications, as long as this notice is preserved.
9450 dnl
9451 dnl This file can can be used in projects which are not available under
9452 dnl the GNU General Public License or the GNU Library General Public
9453 dnl License but which still want to provide support for the GNU gettext
9454 dnl functionality.
9455 dnl Please note that the actual code of the GNU gettext library is covered
9456 dnl by the GNU Library General Public License, and the rest of the GNU
9457 dnl gettext package package is covered by the GNU General Public License.
9458 dnl They are *not* in the public domain.
9459
9460 dnl Authors:
9461 dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
9462
9463 # Check whether LC_MESSAGES is available in <locale.h>.
9464
9465 AC_DEFUN([gt_LC_MESSAGES],
9466 [
9467 AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES,
9468 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
9469 gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)])
9470 if test $gt_cv_val_LC_MESSAGES = yes; then
9471 AC_DEFINE(HAVE_LC_MESSAGES, 1,
9472 [Define if your <locale.h> file defines LC_MESSAGES.])
9473 fi
9474 ])
9475
0 #!/bin/sh
1 # Run this to generate all the initial makefiles, etc.
2
3 srcdir=`dirname $0`
4 test -z "$srcdir" && srcdir=.
5
6 DIE=0
7
8 if [ -n "$GNOME2_DIR" ]; then
9 ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
10 LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
11 PATH="$GNOME2_DIR/bin:$PATH"
12 export PATH
13 export LD_LIBRARY_PATH
14 fi
15
16 (test -f $srcdir/configure.in) || {
17 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
18 echo " top-level package directory"
19 exit 1
20 }
21
22 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
23 echo
24 echo "**Error**: You must have \`autoconf' installed."
25 echo "Download the appropriate package for your distribution,"
26 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
27 DIE=1
28 }
29
30 (grep "^AC_PROG_INTLTOOL" $srcdir/configure.in >/dev/null) && {
31 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
32 echo
33 echo "**Error**: You must have \`intltool' installed."
34 echo "You can get it from:"
35 echo " ftp://ftp.gnome.org/pub/GNOME/"
36 DIE=1
37 }
38 }
39
40 (grep "^AM_PROG_XML_I18N_TOOLS" $srcdir/configure.in >/dev/null) && {
41 (xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || {
42 echo
43 echo "**Error**: You must have \`xml-i18n-toolize' installed."
44 echo "You can get it from:"
45 echo " ftp://ftp.gnome.org/pub/GNOME/"
46 DIE=1
47 }
48 }
49
50 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
51 (libtool --version) < /dev/null > /dev/null 2>&1 || {
52 echo
53 echo "**Error**: You must have \`libtool' installed."
54 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
55 DIE=1
56 }
57 }
58
59 (grep "^AM_GLIB_GNU_GETTEXT" $srcdir/configure.in >/dev/null) && {
60 (grep "sed.*POTFILES" $srcdir/configure.in) > /dev/null || \
61 (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
62 echo
63 echo "**Error**: You must have \`glib' installed."
64 echo "You can get it from: ftp://ftp.gtk.org/pub/gtk"
65 DIE=1
66 }
67 }
68
69 (automake --version) < /dev/null > /dev/null 2>&1 || {
70 echo
71 echo "**Error**: You must have \`automake' installed."
72 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
73 DIE=1
74 NO_AUTOMAKE=yes
75 }
76
77
78 # if no automake, don't bother testing for aclocal
79 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
80 echo
81 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
82 echo "installed doesn't appear recent enough."
83 echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
84 DIE=1
85 }
86
87 if test "$DIE" -eq 1; then
88 exit 1
89 fi
90
91 if test -z "$*"; then
92 echo "**Warning**: I am going to run \`configure' with no arguments."
93 echo "If you wish to pass any to it, please specify them on the"
94 echo \`$0\'" command line."
95 echo
96 fi
97
98 case $CC in
99 xlc )
100 am_opt=--include-deps;;
101 esac
102
103 for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.in -print`
104 do
105 dr=`dirname $coin`
106 if test -f $dr/NO-AUTO-GEN; then
107 echo skipping $dr -- flagged as no auto-gen
108 else
109 echo processing $dr
110 ( cd $dr
111
112 aclocalinclude="$ACLOCAL_FLAGS"
113
114 if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then
115 echo "Creating $dr/aclocal.m4 ..."
116 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
117 echo "Running glib-gettextize... Ignore non-fatal messages."
118 echo "no" | glib-gettextize --force --copy
119 echo "Making $dr/aclocal.m4 writable ..."
120 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
121 fi
122 if grep "^AC_PROG_INTLTOOL" configure.in >/dev/null; then
123 echo "Running intltoolize..."
124 intltoolize --copy --force --automake
125 fi
126 if grep "^AM_PROG_XML_I18N_TOOLS" configure.in >/dev/null; then
127 echo "Running xml-i18n-toolize..."
128 xml-i18n-toolize --copy --force --automake
129 fi
130 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
131 if test -z "$NO_LIBTOOLIZE" ; then
132 echo "Running libtoolize..."
133 libtoolize --force --copy
134 fi
135 fi
136 echo "Running aclocal $aclocalinclude ..."
137 aclocal $aclocalinclude
138 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
139 echo "Running autoheader..."
140 autoheader
141 fi
142 echo "Running automake --gnu $am_opt ..."
143 automake --add-missing --gnu $am_opt
144 echo "Running autoconf ..."
145 autoconf
146 )
147 fi
148 done
149
150 conf_flags="--enable-maintainer-mode"
151
152 if test x$NOCONFIGURE = x; then
153 echo Running $srcdir/configure $conf_flags "$@" ...
154 $srcdir/configure $conf_flags "$@" \
155 && echo Now type \`make\' to compile. || exit 1
156 else
157 echo Skipping configure process.
158 fi
0 SUBDIRS = python perl pascal
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184 SUBDIRS = python perl pascal
185 subdir = bindings
186 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
187 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
188 CONFIG_CLEAN_FILES =
189 DIST_SOURCES =
190
191 RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
192 ps-recursive install-info-recursive uninstall-info-recursive \
193 all-recursive install-data-recursive install-exec-recursive \
194 installdirs-recursive install-recursive uninstall-recursive \
195 check-recursive installcheck-recursive
196 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
197 DIST_SUBDIRS = $(SUBDIRS)
198 all: all-recursive
199
200 .SUFFIXES:
201 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
202 cd $(top_srcdir) && \
203 $(AUTOMAKE) --gnu bindings/Makefile
204 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
205 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
206
207 mostlyclean-libtool:
208 -rm -f *.lo
209
210 clean-libtool:
211 -rm -rf .libs _libs
212
213 distclean-libtool:
214 -rm -f libtool
215 uninstall-info-am:
216
217 # This directory's subdirectories are mostly independent; you can cd
218 # into them and run `make' without going through this Makefile.
219 # To change the values of `make' variables: instead of editing Makefiles,
220 # (1) if the variable is set in `config.status', edit `config.status'
221 # (which will cause the Makefiles to be regenerated when you run `make');
222 # (2) otherwise, pass the desired values on the `make' command line.
223 $(RECURSIVE_TARGETS):
224 @set fnord $$MAKEFLAGS; amf=$$2; \
225 dot_seen=no; \
226 target=`echo $@ | sed s/-recursive//`; \
227 list='$(SUBDIRS)'; for subdir in $$list; do \
228 echo "Making $$target in $$subdir"; \
229 if test "$$subdir" = "."; then \
230 dot_seen=yes; \
231 local_target="$$target-am"; \
232 else \
233 local_target="$$target"; \
234 fi; \
235 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
236 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
237 done; \
238 if test "$$dot_seen" = "no"; then \
239 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
240 fi; test -z "$$fail"
241
242 mostlyclean-recursive clean-recursive distclean-recursive \
243 maintainer-clean-recursive:
244 @set fnord $$MAKEFLAGS; amf=$$2; \
245 dot_seen=no; \
246 case "$@" in \
247 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
248 *) list='$(SUBDIRS)' ;; \
249 esac; \
250 rev=''; for subdir in $$list; do \
251 if test "$$subdir" = "."; then :; else \
252 rev="$$subdir $$rev"; \
253 fi; \
254 done; \
255 rev="$$rev ."; \
256 target=`echo $@ | sed s/-recursive//`; \
257 for subdir in $$rev; do \
258 echo "Making $$target in $$subdir"; \
259 if test "$$subdir" = "."; then \
260 local_target="$$target-am"; \
261 else \
262 local_target="$$target"; \
263 fi; \
264 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
265 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
266 done && test -z "$$fail"
267 tags-recursive:
268 list='$(SUBDIRS)'; for subdir in $$list; do \
269 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
270 done
271 ctags-recursive:
272 list='$(SUBDIRS)'; for subdir in $$list; do \
273 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
274 done
275
276 ETAGS = etags
277 ETAGSFLAGS =
278
279 CTAGS = ctags
280 CTAGSFLAGS =
281
282 tags: TAGS
283
284 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
285 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
286 unique=`for i in $$list; do \
287 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
288 done | \
289 $(AWK) ' { files[$$0] = 1; } \
290 END { for (i in files) print i; }'`; \
291 mkid -fID $$unique
292
293 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
294 $(TAGS_FILES) $(LISP)
295 tags=; \
296 here=`pwd`; \
297 if (etags --etags-include --version) >/dev/null 2>&1; then \
298 include_option=--etags-include; \
299 else \
300 include_option=--include; \
301 fi; \
302 list='$(SUBDIRS)'; for subdir in $$list; do \
303 if test "$$subdir" = .; then :; else \
304 test -f $$subdir/TAGS && \
305 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
306 fi; \
307 done; \
308 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
309 unique=`for i in $$list; do \
310 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
311 done | \
312 $(AWK) ' { files[$$0] = 1; } \
313 END { for (i in files) print i; }'`; \
314 test -z "$(ETAGS_ARGS)$$tags$$unique" \
315 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
316 $$tags $$unique
317
318 ctags: CTAGS
319 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
320 $(TAGS_FILES) $(LISP)
321 tags=; \
322 here=`pwd`; \
323 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
324 unique=`for i in $$list; do \
325 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
326 done | \
327 $(AWK) ' { files[$$0] = 1; } \
328 END { for (i in files) print i; }'`; \
329 test -z "$(CTAGS_ARGS)$$tags$$unique" \
330 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
331 $$tags $$unique
332
333 GTAGS:
334 here=`$(am__cd) $(top_builddir) && pwd` \
335 && cd $(top_srcdir) \
336 && gtags -i $(GTAGS_ARGS) $$here
337
338 distclean-tags:
339 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
340 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
341
342 top_distdir = ..
343 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
344
345 distdir: $(DISTFILES)
346 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
347 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
348 list='$(DISTFILES)'; for file in $$list; do \
349 case $$file in \
350 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
351 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
352 esac; \
353 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
354 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
355 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
356 dir="/$$dir"; \
357 $(mkinstalldirs) "$(distdir)$$dir"; \
358 else \
359 dir=''; \
360 fi; \
361 if test -d $$d/$$file; then \
362 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
363 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
364 fi; \
365 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
366 else \
367 test -f $(distdir)/$$file \
368 || cp -p $$d/$$file $(distdir)/$$file \
369 || exit 1; \
370 fi; \
371 done
372 list='$(SUBDIRS)'; for subdir in $$list; do \
373 if test "$$subdir" = .; then :; else \
374 test -d $(distdir)/$$subdir \
375 || mkdir $(distdir)/$$subdir \
376 || exit 1; \
377 (cd $$subdir && \
378 $(MAKE) $(AM_MAKEFLAGS) \
379 top_distdir="$(top_distdir)" \
380 distdir=../$(distdir)/$$subdir \
381 distdir) \
382 || exit 1; \
383 fi; \
384 done
385 check-am: all-am
386 check: check-recursive
387 all-am: Makefile
388 installdirs: installdirs-recursive
389 installdirs-am:
390
391 install: install-recursive
392 install-exec: install-exec-recursive
393 install-data: install-data-recursive
394 uninstall: uninstall-recursive
395
396 install-am: all-am
397 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
398
399 installcheck: installcheck-recursive
400 install-strip:
401 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
402 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
403 `test -z '$(STRIP)' || \
404 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
405 mostlyclean-generic:
406
407 clean-generic:
408
409 distclean-generic:
410 -rm -f $(CONFIG_CLEAN_FILES)
411
412 maintainer-clean-generic:
413 @echo "This command is intended for maintainers to use"
414 @echo "it deletes files that may require special tools to rebuild."
415 clean: clean-recursive
416
417 clean-am: clean-generic clean-libtool mostlyclean-am
418
419 distclean: distclean-recursive
420 -rm -f Makefile
421 distclean-am: clean-am distclean-generic distclean-libtool \
422 distclean-tags
423
424 dvi: dvi-recursive
425
426 dvi-am:
427
428 info: info-recursive
429
430 info-am:
431
432 install-data-am:
433
434 install-exec-am:
435
436 install-info: install-info-recursive
437
438 install-man:
439
440 installcheck-am:
441
442 maintainer-clean: maintainer-clean-recursive
443 -rm -f Makefile
444 maintainer-clean-am: distclean-am maintainer-clean-generic
445
446 mostlyclean: mostlyclean-recursive
447
448 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
449
450 pdf: pdf-recursive
451
452 pdf-am:
453
454 ps: ps-recursive
455
456 ps-am:
457
458 uninstall-am: uninstall-info-am
459
460 uninstall-info: uninstall-info-recursive
461
462 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
463 clean-generic clean-libtool clean-recursive ctags \
464 ctags-recursive distclean distclean-generic distclean-libtool \
465 distclean-recursive distclean-tags distdir dvi dvi-am \
466 dvi-recursive info info-am info-recursive install install-am \
467 install-data install-data-am install-data-recursive \
468 install-exec install-exec-am install-exec-recursive \
469 install-info install-info-am install-info-recursive install-man \
470 install-recursive install-strip installcheck installcheck-am \
471 installdirs installdirs-am installdirs-recursive \
472 maintainer-clean maintainer-clean-generic \
473 maintainer-clean-recursive mostlyclean mostlyclean-generic \
474 mostlyclean-libtool mostlyclean-recursive pdf pdf-am \
475 pdf-recursive ps ps-am ps-recursive tags tags-recursive \
476 uninstall uninstall-am uninstall-info-am \
477 uninstall-info-recursive uninstall-recursive
478
479 # Tell versions [3.59,3.63) of GNU make to not export all variables.
480 # Otherwise a system limit (for SysV at least) may be exceeded.
481 .NOEXPORT:
0
1 EXTRA_DIST = Package.fpc hdate.pp hdate_class.pp fpc_README changelog
2
3 if WITH_PASCAL
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.ppu
8
9 all-am: hdate.o hdate_class.o
10
11 hdate.o: hdate.pp
12 fpc hdate.pp
13
14 hdate_class.o: hdate_class.pp hdate.o
15 fpc hdate_class.pp
16
17 install-data-local:hdate_class.o hdate.o Package.fpc
18 $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
19 $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
20 $(INSTALL_DATA) hdate_class.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.o
21 $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
22 $(INSTALL_DATA) hdate_class.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.ppu
23 $(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
24 $(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
25 endif
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184
185 EXTRA_DIST = Package.fpc hdate.pp hdate_class.pp fpc_README changelog
186
187 @WITH_PASCAL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
188
189 @WITH_PASCAL_TRUE@CLEANFILES = *.o *.ppu
190 subdir = bindings/pascal
191 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
192 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
193 CONFIG_CLEAN_FILES =
194 DIST_SOURCES =
195 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
196 all: all-am
197
198 .SUFFIXES:
199 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
200 cd $(top_srcdir) && \
201 $(AUTOMAKE) --gnu bindings/pascal/Makefile
202 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
203 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
204
205 mostlyclean-libtool:
206 -rm -f *.lo
207
208 clean-libtool:
209 -rm -rf .libs _libs
210
211 distclean-libtool:
212 -rm -f libtool
213 uninstall-info-am:
214 tags: TAGS
215 TAGS:
216
217 ctags: CTAGS
218 CTAGS:
219
220 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
221
222 top_distdir = ../..
223 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
224
225 distdir: $(DISTFILES)
226 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
227 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
228 list='$(DISTFILES)'; for file in $$list; do \
229 case $$file in \
230 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
231 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
232 esac; \
233 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
234 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
235 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
236 dir="/$$dir"; \
237 $(mkinstalldirs) "$(distdir)$$dir"; \
238 else \
239 dir=''; \
240 fi; \
241 if test -d $$d/$$file; then \
242 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
243 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
244 fi; \
245 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
246 else \
247 test -f $(distdir)/$$file \
248 || cp -p $$d/$$file $(distdir)/$$file \
249 || exit 1; \
250 fi; \
251 done
252 check-am: all-am
253 check: check-am
254 all-am: Makefile
255
256 installdirs:
257 install: install-am
258 install-exec: install-exec-am
259 install-data: install-data-am
260 uninstall: uninstall-am
261
262 install-am: all-am
263 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
264
265 installcheck: installcheck-am
266 install-strip:
267 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
268 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
269 `test -z '$(STRIP)' || \
270 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
271 mostlyclean-generic:
272
273 clean-generic:
274 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
275
276 distclean-generic:
277 -rm -f $(CONFIG_CLEAN_FILES)
278
279 maintainer-clean-generic:
280 @echo "This command is intended for maintainers to use"
281 @echo "it deletes files that may require special tools to rebuild."
282 clean: clean-am
283
284 clean-am: clean-generic clean-libtool mostlyclean-am
285
286 distclean: distclean-am
287 -rm -f Makefile
288 distclean-am: clean-am distclean-generic distclean-libtool
289
290 dvi: dvi-am
291
292 dvi-am:
293
294 info: info-am
295
296 info-am:
297
298 install-data-am: install-data-local
299
300 install-exec-am:
301
302 install-info: install-info-am
303
304 install-man:
305
306 installcheck-am:
307
308 maintainer-clean: maintainer-clean-am
309 -rm -f Makefile
310 maintainer-clean-am: distclean-am maintainer-clean-generic
311
312 mostlyclean: mostlyclean-am
313
314 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
315
316 pdf: pdf-am
317
318 pdf-am:
319
320 ps: ps-am
321
322 ps-am:
323
324 uninstall-am: uninstall-info-am
325
326 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
327 distclean distclean-generic distclean-libtool distdir dvi \
328 dvi-am info info-am install install-am install-data \
329 install-data-am install-data-local install-exec install-exec-am \
330 install-info install-info-am install-man install-strip \
331 installcheck installcheck-am installdirs maintainer-clean \
332 maintainer-clean-generic mostlyclean mostlyclean-generic \
333 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
334 uninstall-info-am
335
336
337 @WITH_PASCAL_TRUE@all-am: hdate.o hdate_class.o
338
339 @WITH_PASCAL_TRUE@hdate.o: hdate.pp
340 @WITH_PASCAL_TRUE@ fpc hdate.pp
341
342 @WITH_PASCAL_TRUE@hdate_class.o: hdate_class.pp hdate.o
343 @WITH_PASCAL_TRUE@ fpc hdate_class.pp
344
345 @WITH_PASCAL_TRUE@install-data-local:hdate_class.o hdate.o Package.fpc
346 @WITH_PASCAL_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
347 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
348 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate_class.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.o
349 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
350 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate_class.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.ppu
351 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
352 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
353 # Tell versions [3.59,3.63) of GNU make to not export all variables.
354 # Otherwise a system limit (for SysV at least) may be exceeded.
355 .NOEXPORT:
0 [package]
1 name=hdate
2 version=1.0.0
3 [require]
4 libc=y
5 packages_linux_m68k=
6 packages_linux_powerpc=
7 packages=rtl
8 packages_linux_i386=
9 packages_linux_sparc=
10 packages_linux_x86_64=
11 packages_linux_arm=
0 27/05/2005
1 - Created a Changelog.
2
3 19-21/05/2005
4 - hdate_class.pp was created.
5 - Made changes for Free Pascal 2 support on with the units.
6
7 13/03/2005
8 - Bug fix in hdate.pp - Added {$PACKRECORDS C}
9
10 10-11/03/2005
11 - hdate.pp was created.
12 - hdate_obj.pp was created.
0 About
1 =====
2
3 LibHdate is a small C,C++ library for Hebrew calendar and dates, holidays, and reading sequence (parasha).
4 It is using the source code from Amos Shapir's hdate package fixed and patched by Nadav Har'El.
5 The Torah reading sequence is from tables by Zvi Har'El.
6
7 The LibHdate is GPL library written by Kobi Zamir <kobi_zamir@yahoo.com> and can be found at http://libhdate.sourceforge.net/ .
8
9 The current version of LibHDate is 1.2.1 and contains a Free Pascal binding only that was written by Ido Kanner <idokan@gmail.com>.
10
11 Existed Files:
12 README - This file.
13 licence - A copy of the GPL license.
14 src/ctypes.pp - A unit for making C like integer and floating points variable type.
15 src/hdate.pp - The main low level API of LibHdate binding.
16 src/hdate_obj.pp - An Object Oriented implementation for the hdate.pp API.
17 src/hdate_obj_demo.pp - An example for the use of the Object Oriented unit.
18 src/hdate_class.pp - A self made Object Oriented implementation for the LibHdate API.
19
20 Compiling
21 =========
22
23 The ctypes.pp unit was taken from FPC 1.9.8 version and was modified to contain also some floating point C equivalent.
24 The FPC version 2.0 have the floating points definition. If you are using FPC version 2.0 or above please remove the unit.
25
26 Add the hdate.pp and the hdate_obj.pp (or thier .ppu files after compilation) to the path of fpc.cfg in order to use
27 the units globally with all of your applications.
28
29 =========================================================================
30 the old README from version 1.1.1
31 =========================================================================
32
33 About
34 =====
35
36 LibHdate is a small C,C++ library for Hebrew calendar and dates, holidays, and reading sequence (parasha).
37 It is using the sorce code from Amos Shapir's hdate package fixed and patched by Nadav Har'El.
38 The Torah reading sequence is from tables by Zvi Har'El.
39
40 The LibHdate is GPL library written by Kobi Zamir <kzamir@walla.co.il> and can be found at http://libhdate.sourceforge.net/ .
41
42 This version of LibHDate contains a FreePascal binding that was written by Ido Kanner <idokan@gmail.com>.
43
44 Existed Files:
45 fpc_README - This file.
46 src/ctypes.pp - A unit for making C like integer and floating points variable type.
47 src/hdate.pp - The main low level API of LibHdate binding.
48 src/hdate_obj.pp - An Object Oriented implementation for the hdate.pp API.
49 src/hdate_obj_demo.pp - An example for the use of the Object Oriented unit.
50 src/hcal.pp - An example for the use of the low level API.
51
52 Compiling
53 =========
54
55 The ctypes.pp unit was taken from FPC 1.9.8 version and was modified to contain also some floating point C equivalent.
56 I hope that version 2.0 will contains them as well, if not please keep this unit, otherwise feel free to remove it.
57
58 Add the hdate.pp and the hdate_obj.pp (or thier .ppu files after compilation) to the path of fpc.cfg in order to use
59 the units globally with all of your applications.
60
61
0 (* libhdate
1 Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 Copyright 2005 Ido Kanner <idokan@gmail.com>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 History:
19 13/3/2005 - Bug Fixed Added {$PACKRECORDS C}
20 10-11/3/2005 - Initial Translation of version 0.31.0
21 *)
22 {$MODE FPC}{$PACKRECORDS C}
23
24 unit hdate;
25
26 interface
27 uses cTypes;
28
29 const
30 LIBHDATE_LIBRARY_NAME = 'hdate';
31
32 { Base structore for hebrew dates }
33
34 type
35 Phdate_struct = ^Thdate_struct;
36 Thdate_struct = record
37 hd_day : cInt; //The number of day in the hebrew month (1..31).
38 hd_mon : cInt; //The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
39 hd_year : cInt; //The number of the hebrew year.
40 gd_day : cInt; //The number of the day in the month. (1..31)
41 gd_mon : cInt; //The number of the month 1..12 (1 - jan).
42 gd_year : cInt; //The number of the year.
43 hd_dw : cInt; //The day of the week 1..7 (1 - sunday).
44 hd_size_of_year : cInt; //The length of the year in days.
45 hd_new_year_dw : cInt; //The week day of Hebrew new year.
46 hd_year_type : cInt; //The number type of year.
47 hd_jd : cInt; //The Julian day number
48 hd_days : cInt; //The number of days passed since 1 tishrey
49 hd_weeks : cInt; //The number of weeks passed since 1 tishrey
50 end;
51 (********************************************************************************)
52 (********************************************************************************)
53
54 (**
55 @brief compute date structure from the Gregorian date
56
57 @param h pointer this hdate struct.
58 @param d Day of month 1..31
59 @param m Month 1..12 , if m or d is 0 return current date.
60 @param y Year in 4 digits e.g. 2001
61 @return pointer to this hdate struct
62 *)
63
64 function hdate_set_gdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
65 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_set_gdate';
66
67 (**
68 @brief compute date structure from the Hebrew date
69
70 @param h pointer this hdate struct.
71 @param d Day of month 1..31
72 @param m Month 1..14 , if m or d is 0 return current date.
73 @param y Year in 4 digits e.g. 5731
74 @return pointer to this hdate struct
75 *)
76
77 function hdate_set_hdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
78 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_set_hdate';
79
80 (**
81 @brief compute date structure from the Julian day
82
83 @param h pointer this hdate struct.
84 @param jd the julian day number.
85 @return pointer to this hdate struct
86 *)
87 function hdate_set_jd (h : Phdate_struct; jd : cInt) : Phdate_struct;
88 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_set_jd';
89
90 (*************************************************************)
91 (*************************************************************)
92
93 (**
94 @brief get formated hebrew date.
95
96 return the short ( e.g. "1 Tishrey" ) or
97 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
98
99 @param h pointer this hdate struct.
100 @param diaspora if true give diaspora holydays.
101 @param s short flag.
102 @return a static string of foramted date
103 *)
104 function hdate_get_format_date (h : Phdate_struct; diaspora, s : cInt) : PChar;
105 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_format_date';
106
107 (**
108 @brief get the number of hebrew parasha.
109
110 @param h pointer this hdate struct.
111 @param diaspora if true give diaspora readings
112 @return the number of parasha 1. Bereshit etc..
113 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
114 *)
115 function hdate_get_parasha (h : Phdate_struct; diaspora : cInt) : cInt;
116 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_parasha';
117
118 (**
119 @brief get the number of hebrew holyday.
120
121 @param h pointer this hdate struct.
122 @param diaspora if true give diaspora holydays
123 @return the number of holyday.
124 *)
125 function hdate_get_holyday (h : Phdate_struct; diaspora : cInt) : cInt;
126 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_holyday';
127
128 (*************************************************************)
129 (*************************************************************)
130
131 (**
132 @brief convert an integer to hebrew string.
133
134 @param n The int to convert
135 @return a static string of the hebrew number UTF-8 (logical)
136 @attention ( 0 < n < 10000)
137 *)
138 function hdate_get_int_string (n : cInt) : PChar;
139 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_int_string';
140
141 (**
142 @brief get name of week day.
143
144 @param day The number of the day 1..7 (1 - sun).
145 @param s short flag
146 true - returns a short string: sun, false returns: sunday.
147 @return a static string of the day of the week
148 *)
149 function hdate_get_day_string (day : cInt; s : cInt) : PChar;
150 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_day_string';
151
152 (**
153 @brief name of month.
154
155 @param month the number of the month 1..12 (1 - jan).
156 @param s short flag.
157 @return a static string of month name
158 *)
159 function hdate_get_month_string (month : cInt; s : cInt) : PChar;
160 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_month_string';
161
162 (**
163 @brief name of hebrew month.
164
165 @param month the number of the month 1..14
166 (1 - tishre, 13 - adar 1, 14 - adar 2).
167 @param s short flag.
168 @return a static string of month name
169 *)
170 function hdate_get_hebrew_month_string (month : cInt; s : cInt) : PChar;
171 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hebrew_month_string';
172
173 (**
174 @brief name of hebrew holyday.
175
176 @param holyday the holyday number.
177 @param s short flag.
178 @return a static string of holyday name
179 *)
180 function hdate_get_holyday_string (holyday, s : cInt) : PChar;
181 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_holyday_string';
182
183 (**
184 @brief name of parasha
185
186 @param parasha the number of parasha 1-Bereshit
187 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
188 @param s short flag.
189 @return a static string of parasha name
190 *)
191 function hdate_get_parasha_string (parasha, s : cInt) : PChar;
192 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_parasha_string';
193
194 (*************************************************************)
195 (*************************************************************)
196
197 (**
198 @brief get the hebrew holyday type.
199
200 @param holyday the holyday number.
201 @return the number of holyday type.
202 *)
203 function hdate_get_holyday_type (holyday : cInt) : cInt;
204 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_holyday_type';
205
206 (**
207 @brief size of hebrew year in days.
208
209 @param hebrew_year the hebrew year.
210 @return size of Hebrew year
211 *)
212 function hdate_get_size_of_hebrew_year (hebrew_year : cInt) : cInt;
213 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_size_of_hebrew_year';
214
215 (*************************************************************)
216 (*************************************************************)
217
218 (**
219 @brief Days since Tishrey 3744
220
221 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
222
223 @param hebrew_year The Hebrew year
224 @return Number of days since 3,1,3744
225 *)
226 function hdate_days_from_3744 (hebrew_year : cInt) : cInt;
227 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_days_from_3744';
228
229 (**
230 @brief Return Hebrew year type based on size and first week day of year.
231
232 @param size_of_year Length of year in days
233 @param new_year_dw First week day of year
234 @return the number for year type (1..14)
235 *)
236 function hdate_get_year_type (size_of_year, new_year_dw : cInt) : cInt;
237 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_year_type';
238
239 (**
240 @brief Compute Julian day from Gregorian date
241
242 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
243
244 @param day Day of month 1..31
245 @param month Month 1..12
246 @param year Year in 4 digits e.g. 2001
247 @return the julian day number
248 *)
249 function hdate_gdate_to_jd (day, month, year : cInt) : cInt;
250 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_gdate_to_jd';
251
252 (**
253 @brief Compute Julian day from Hebrew day, month and year
254
255 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
256
257 @param day Day of month 1..31
258 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
259 @param year Hebrew year in 4 digits e.g. 5753
260 @param jd_tishrey1 return the julian number of 1 Tishrey this year
261 @param jd_tishrey1 return the julian number of 1 Tishrey next year
262 @return the julian day number
263 *)
264 function hdate_hdate_to_jd (day, month, year : cInt; jd_tishrey1, jd_tishrey1_next_year : pcInt) : cInt;
265 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_hdate_to_jd';
266
267 (**
268 @brief Converting from the Julian day to the Gregorian date
269
270 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
271
272 @param jd Julian day
273 @param d return Day of month 1..31
274 @param m return Month 1..12
275 @param y return Year in 4 digits e.g. 2001
276 *)
277 procedure hdate_jd_to_gdate (jd : cInt; day, month, year : pcInt);
278 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_jd_to_gdate';
279
280 (**
281 @brief Converting from the Julian day to the Hebrew day
282
283 @author Yaacov Zamir 2005
284
285 @param jd Julian day
286 @param day return Day of month 1..31
287 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
288 @param year return Year in 4 digits e.g. 2001
289 @param jd_tishrey1 return the julian number of 1 Tishrey this year
290 @param jd_tishrey1 return the julian number of 1 Tishrey next year
291 *)
292 procedure hdate_jd_to_hdate (jd : cInt; day, month, year, jd_tishrey1, jd_tishrey1_next_year : pcInt);
293 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_jd_to_hdate';
294
295 (*************************************************************)
296 (*************************************************************)
297
298 (**
299 @brief days from 1 january
300
301 @param day this day of month
302 @param month this month
303 @param year this year
304 @return the days from 1 jan
305 *)
306 function hdate_get_day_of_year (day, month, year : cInt) : cInt;
307 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_day_of_year';
308
309 (**
310 @brief utc sunrise/set time for a gregorian date
311
312 @param day this day of month
313 @param month this month
314 @param year this year
315 @param longitude longitude to use in calculations
316 degrees, negative values are east
317 @param latitude latitude to use in calculations
318 degrees, negative values are south
319 @param sunrise return the utc sunrise in minutes after midnight (00:00)
320 @param sunset return the utc sunset in minutes after midnight (00:00)
321 *)
322 procedure hdate_get_utc_sun_time (day, month, year : cInt; latitude, longitude : cDouble; sunrise, sunset : pcInt);
323 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_utc_sun_time';
324
325 (*************************************************************)
326 (*************************************************************)
327
328 (**
329 @brief get the Gregorian day of the month
330
331 @param h pointer this hdate struct.
332 @return the Gregorian day of the month, 1..31.
333 *)
334 function hdate_get_gday (h : Phdate_struct) : cInt;
335 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_gday';
336
337 (**
338 @brief get the Gregorian month
339
340 @param h pointer this hdate struct.
341 @return the Gregorian month, jan = 1.
342 *)
343 function hdate_get_gmonth (h : Phdate_struct) : cInt;
344 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_gmonth';
345
346 (**
347 @brief get the Gregorian year
348
349 @param h pointer this hdate struct.
350 @return the Gregorian year.
351 *)
352 function hdate_get_gyear (h : Phdate_struct) : cInt;
353 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_gyear';
354
355 (**
356 @brief get the Hebrew day of the month
357
358 @param h pointer this hdate struct.
359 @return the Hebrew day of the month, 1..30.
360 *)
361 function hdate_get_hday (h : Phdate_struct) : cInt;
362 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hday';
363
364 (**
365 @brief get the Hebrew month
366
367 @param h pointer this hdate struct.
368 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
369 *)
370 function hdate_get_hmonth (h : Phdate_struct) : cInt;
371 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hmonth';
372
373 (**
374 @brief get the Hebrew year
375
376 @param h pointer this hdate struct.
377 @return the Hebrew year.
378 *)
379 function hdate_get_hyear (h : Phdate_struct) : cInt;
380 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hyear';
381
382 (**
383 @brief get the day of the week
384
385 @param h pointer this hdate struct.
386 @return the the day of the week.
387 *)
388 function hdate_get_day_of_the_week (h : Phdate_struct) : cInt;
389 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_day_of_the_week';
390
391 (**
392 @brief get the size of the hebrew year
393
394 @param h pointer this hdate struct.
395 @return the the size of the hebrew year.
396 *)
397 function hdate_get_size_of_year (h : Phdate_struct) : cInt;
398 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_size_of_year';
399
400 (**
401 @brief get the new year day of the week
402
403 @param h pointer this hdate struct.
404 @return the the new year day of the week.
405 *)
406 function hdate_get_new_year_day_of_the_week (h : Phdate_struct) : cInt;
407 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_new_year_day_of_the_week';
408
409 (**
410 @brief get the Julian day number
411
412 @param h pointer this hdate struct.
413 @return the Julian day number.
414 *)
415 function hdate_get_julian (h : Phdate_struct) : cInt;
416 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_julian';
417
418 (**
419 @brief get the number of days passed since 1 tishrey
420
421 @param h pointer this hdate struct.
422 @return the number of days passed since 1 tishrey.
423 *)
424 function hdate_get_days (h : Phdate_struct) : cInt;
425 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_days';
426
427 (**
428 @brief get the number of weeks passed since 1 tishrey
429
430 @param h pointer this hdate struct.
431 @return the number of weeks passed since 1 tishrey.
432 *)
433 function hdate_get_weeks (h : Phdate_struct) : cInt;
434 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_weeks';
435
436 (*************************************************************)
437 (*************************************************************)
438
439 (**
440 @brief creat a new hdate struct object, must be deleted using delete_hdate.
441
442 @return a new hdate object
443 *)
444 function new_hdate : Phdate_struct;
445 cdecl external LIBHDATE_LIBRARY_NAME name 'new_hdate';
446
447 (**
448 @brief delete an hdate struct object.
449
450 @param h pointer this hdate struct.
451 *)
452 function delete_hdate (h : Phdate_struct) : Phdate_struct;
453 cdecl external LIBHDATE_LIBRARY_NAME name 'delete_hdate';
454
455 (*************************************************************)
456 (*************************************************************)
457
458 (**
459 @brief Return a static string, with the package name and version
460
461 @return a a static string, with the package name and version
462 *)
463 function hdate_get_version_string : PChar;
464 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_version_string';
465
466 (**
467 @brief Return a static string, with the name of translator
468
469 @return a a static string, with the name of translator
470 *)
471 function hdate_get_translator_string : PChar;
472 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_translator_string';
473
474 implementation
475
476 end.
0 {
1 This unit create a Pascal object oriented class for libhdate.
2 This unit is created as a true object oriented class.
3
4 Copyright 2005 Ido Kanner <idokan@gmail.com>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Library General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 History:
21 19-21/05/2005 - Initial creation
22 }
23 {$IFDEF FPC}
24 {$MODE OBJFPC}
25 {$ELSE}
26 {$Warning 'This code was tested with Free Pascal Only.'}
27 {$ENDIF}
28 unit hdate_class;
29
30 interface
31 uses hdate, SysUtils;
32
33 type
34 THdateClass = class
35 private
36 fh : Phdate_struct;
37 FToDestroy : Boolean;
38 fJulianDay : LongInt;
39 fDiaspora : Boolean;
40 fHolyday,
41 fHolydayType : LongInt;
42 fParasha : LongInt;
43 fHebrewDay,
44 fHebrewYear : String;
45
46 procedure InitValue;
47
48 procedure SetHebDay (Value : LongInt);
49 procedure SetGregDay (Value : LongInt);
50 procedure SetJulianDay (Value : LongInt);
51 procedure SetHebMonth (Value : LongInt);
52 procedure SetGregMonth (Value : LongInt);
53 procedure SetGregYear (Value : LongInt);
54 procedure SetHebYear (Value : LongInt);
55 procedure SetDiaspora (Value : Boolean);
56
57 function GetGregDay : LongInt;
58 function GetGregMonth : LongInt;
59 function GetGregYear : LongInt;
60 function GetHebDay : LongInt;
61 function GetHebMonth : LongInt;
62 function GetHebYear : LongInt;
63 public
64 constructor Create; virtual; overload;
65 constructor Create (hDateRec : Phdate_struct); virtual; overload;
66 destructor Destroy; override;
67
68 procedure Assign (Source : THdateClass); virtual;
69
70 function get_format_date (s : LongInt) : String;
71 function get_day_of_week_string (s : LongInt) : String;
72 function get_month_string (s : LongInt) : String;
73 function get_hebrew_month_string (s : LongInt) : String;
74 function get_holyday_string (s : LongInt) : String;
75 function get_parasha_string (s : LongInt) : String;
76 function GetDayOfWeek : LongInt;
77 function get_size_of_year : LongInt;
78 function get_new_year_day_of_the_week : LongInt;
79 function get_days : LongInt;
80 function get_weeks : LongInt;
81 function get_sunrise (latitude, longitude : Double; tz : LongInt) : LongInt;
82 function get_sunset (latitude, longitude : Double; tz : LongInt) : LongInt;
83
84 property Days : LongInt read get_days;
85 property DayOfWeek : LongInt read GetDayOfWeek;
86 property HebrewDay : String read fHebrewDay;
87 property HebrewYear : String read fHebrewYear;
88 property Holyday : LongInt read fHolyday;
89 property HolydayType : LongInt read fHolydayType;
90 property NewYearDayOfWeek : LongInt read get_new_year_day_of_the_week;
91 property Parasha : LongInt read fParasha;
92 property Weeks : LongInt read get_weeks;
93 property YearSize : Longint read get_size_of_year;
94 published
95 property HebDay : LongInt read GetHebDay write SetHebDay;
96 property GregDay : LongInt read GetGregDay write SetGregDay;
97 property Diaspora : Boolean read fDiaspora write SetDiaspora default True;
98 property JulianDay : LongInt read fJulianDay write SetJulianDay;
99 property HebMonth : LongInt read GetHebMonth write SetHebMonth;
100 property GregMonth : LongInt read GetGregMonth write SetGregMonth;
101 property ToDestroy : Boolean read FToDestroy write fToDestroy default True;
102 property GregYear : LongInt read GetGregYear write SetGregYear;
103 property HebYear : LongInt read GetHebYear write SetHebYear;
104 end;
105
106 implementation
107 uses DateUtils, cTypes;
108
109 procedure THdateClass.InitValue;
110 var
111 ADay, AMonth, AYear : Word;
112 begin
113 DecodeDate(SysUtils.Now, AYear, AMonth, ADay);
114
115 hdate_set_gdate (Fh, ADay, AMonth, AYear);
116
117 hdate_set_hdate (fh, hdate_get_hday (fh), hdate_get_hmonth (fh), hdate_get_hyear (fh));
118 fHebrewDay := StrPas (hdate_get_int_string (fh^.hd_day));
119 fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
120
121 SetJulianDay (hdate_gdate_to_jd (ADay, AMonth, AYear));
122 SetDiaspora (True);
123 end;
124
125 constructor THdateClass.Create;
126 begin
127 fh := new_hdate;
128 fToDestroy := True;
129 InitValue;
130 end;
131
132 constructor THdateClass.Create (hDateRec : Phdate_struct);
133 begin
134 fh := hDateRec;
135 fToDestroy := False;
136 InitValue;
137 end;
138
139 destructor THdateClass.Destroy;
140 begin
141 if fToDestroy then
142 delete_hdate (fh);
143
144 fh := nil;
145
146 inherited;
147 end;
148
149 procedure THdateClass.SetHebDay (Value : LongInt);
150 begin
151 hdate_set_hdate (Fh, Value, GetHebMonth, GetHebYear);
152 fHebrewDay := StrPas (hdate_get_int_string (fh^.hd_day));
153 end;
154
155 procedure THdateClass.SetGregDay (Value : LongInt);
156 begin
157 hdate_set_gdate (fh, Value, GetGregMonth, GetGregYear);
158 end;
159
160 procedure THdateClass.SetJulianDay (Value : LongInt);
161 begin
162 fJulianDay := Value;
163 hdate_set_jd (fh, fJulianDay);
164 end;
165
166 procedure THdateClass.SetHebMonth (Value : LongInt);
167 begin
168 hdate_set_hdate (Fh, GetHebDay, Value, GetHebYear);
169 end;
170
171 procedure THdateClass.SetGregMonth (Value : LongInt);
172 begin
173 hdate_set_gdate (fh, GetGregDay, Value, GetGregYear);
174 end;
175
176 procedure THdateClass.SetHebYear (Value : LongInt);
177 begin
178 hdate_set_hdate (Fh, GetHebDay, GetGregMonth, Value);
179 fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
180 end;
181
182 procedure THdateClass.SetGregYear (Value : LongInt);
183 begin
184 hdate_set_gdate (fh, GetGregDay, GetGregMonth, Value);
185 end;
186
187 procedure THdateClass.SetDiaspora (Value : Boolean);
188 begin
189 fDiaspora := Value;
190 fHolyday := hdate_get_holyday (fh, cInt(FDiaspora));
191 fHolydayType := hdate_get_holyday_type (fHolyday);
192 fParasha := hdate_get_parasha (fh, cInt(fDiaspora));
193 end;
194
195 function THdateClass.GetGregDay : LongInt;
196 begin
197 Result := hdate_get_gday (fh);
198 end;
199
200 function THdateClass.GetGregMonth : LongInt;
201 begin
202 Result := hdate_get_gmonth (fh);
203 end;
204
205 function THdateClass.GetGregYear : LongInt;
206 begin
207 Result := hdate_get_gyear (fh);
208 end;
209
210 function THdateClass.GetHebDay : LongInt;
211 begin
212 Result := hdate_get_hday (fh);
213 end;
214
215 function THdateClass.GetHebMonth : LongInt;
216 begin
217 Result := hdate_get_hmonth (fh);
218 end;
219
220 function THdateClass.GetHebYear : LongInt;
221 begin
222 Result :=hdate_get_hyear (fh);
223 end;
224
225 procedure THdateClass.Assign (Source : THdateClass);
226 begin
227 if (not Assigned(Source)) then
228 begin
229 raise Exception.Create ('Source is not allocated.');
230 end;
231
232 Assert (Assigned(Source), 'Source is not allocated.'); // Should never happned ... but just in case...
233
234 fToDestroy := Source.ToDestroy;
235
236 HebDay := Source.HebDay;
237 GregDay := Source.GregDay;
238 HebMonth := Source.HebMonth;
239 GregMonth := Source.GregMonth;
240 HebYear := Source.HebYear;
241 GregYear := Source.GregYear;
242
243 SetJulianDay (Source.JulianDay);
244 SetDiaspora (Source.Diaspora);
245 end;
246
247 function THdateClass.get_format_date (s : LongInt) : String;
248 begin
249 Result := StrPas (hdate_get_format_date (fh, cInt(fDiaspora), s));
250 end;
251
252 function THdateClass.get_day_of_week_string (s : LongInt) : String;
253 begin
254 Result := StrPas (hdate_get_day_string (fh^.hd_dw, s));
255 end;
256
257 function THdateClass.get_month_string (s : LongInt) : String;
258 begin
259 Result := StrPas (hdate_get_month_string (fh^.gd_mon, s));
260 end;
261
262 function THdateClass.get_hebrew_month_string (s : LongInt) : String;
263 begin
264 Result := StrPas (hdate_get_hebrew_month_string (fh^.hd_mon, s));
265 end;
266
267 function THdateClass.get_holyday_string (s : LongInt) : String;
268 begin
269 Result := StrPas (hdate_get_holyday_string (fHolyday, s));
270 end;
271
272 function THdateClass.get_parasha_string (s : LongInt) : String;
273 begin
274 Result := StrPas (hdate_get_parasha_string (fParasha, s));
275 end;
276
277 function THdateClass.GetDayOfWeek : LongInt;
278 begin
279 Result := hdate_get_day_of_the_week (fh);
280 end;
281
282 function THdateClass.get_size_of_year : LongInt;
283 begin
284 Result := hdate_get_size_of_year (fh);
285 end;
286
287 function THdateClass.get_new_year_day_of_the_week : LongInt;
288 begin
289 Result := hdate_get_new_year_day_of_the_week (fh);
290 end;
291
292 function THdateClass.get_days : LongInt;
293 begin
294 Result := hdate_get_days (fh);
295 end;
296
297 function THdateClass.get_weeks : LongInt;
298 begin
299 Result := hdate_get_weeks (fh);
300 end;
301
302 function THdateClass.get_sunrise (latitude, longitude : Double; tz : LongInt) : LongInt;
303 var
304 sunrise,
305 sunset : cInt;
306 begin
307 hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
308 Result := sunrise + tz * 60;
309 end;
310
311 function THdateClass.get_sunset (latitude, longitude : Double; tz : LongInt) : LongInt;
312 var
313 sunrise,
314 sunset : cInt;
315 begin
316 hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
317 Result := sunset + tz * 60;
318 end;
319
320 end.
0 { libhdate
1 Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 Copyright 2005 Ido Kanner <idokan@gmail.com>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 History:
19 11/10/2005 - Initial Translation of version 0.31.0
20 }
21
22 {$MODE OBJFPC}
23 unit hdate_obj;
24
25 interface
26 uses cTypes, hDate, SysUtils;
27
28 type
29 THdate = class
30 private
31 h : Phdate_struct;
32 public
33 constructor Create; virtual;
34 destructor Destroy; override;
35 ////////////////////////////////////////
36 ////////////////////////////////////////
37
38 (**
39 @brief compute date structure from the Gregorian date
40
41 @param d Day of month 1..31
42 @param m Month 1..12 , if m or d is 0 return current date.
43 @param y Year in 4 digits e.g. 2001
44 *)
45 procedure set_gdate (d, m, y : cInt);
46
47 (**
48 @brief compute date structure from the Hebrew date
49
50 @param d Day of month 1..31
51 @param m Month 1..14 , if m or d is 0 return current date.
52 @param y Year in 4 digits e.g. 5731
53 *)
54 procedure set_hdate (d, m, y : cInt);
55
56 (**
57 @brief compute date structure from the Julian day
58
59 @param jd the julian day number.
60 *)
61 procedure set_jd (jd : cInt);
62
63 ////////////////////////////////////////
64 ////////////////////////////////////////
65
66 (**
67 @brief get formated hebrew date.
68
69 return the short ( e.g. "1 Tishrey" ) or
70 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
71
72 @param diaspora if true give diaspora holydays.
73 @param s short flag.
74 @return a static string of foramted date
75 *)
76 function get_format_date (diaspora, s : cInt) : String;
77
78 (**
79 @brief get name of week day.
80
81 @param s short flag
82 true - returns a short string: sun, false returns: sunday.
83 @return a static string of the day of the week
84 *)
85 function get_day_of_week_string (s : cInt) : String;
86
87 (**
88 @brief get name month.
89
90 @param s short flag
91 true - returns a short string: Mar, false returns: March.
92 @return a static string of month name
93 *)
94 function get_month_string (s : cInt) : String;
95
96 (**
97 @brief get name hebrew month.
98
99 @param s short flag
100 true - returns a short string.
101 @return a static string of hebrew month name
102 *)
103 function get_hebrew_month_string (s : cInt) : String;
104
105 (**
106 @brief get name hebrew holiday.
107
108 @param s short flag
109 true - returns a short string.
110 @return a static string of hebrew holiday name
111 *)
112 function get_holyday_string (diaspora, s : cInt) : String;
113
114 (**
115 @brief get the hebrew holiday type.
116
117 @return the holiday type
118 (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday)
119 *)
120 function get_holyday_type (diaspora : cInt) : cInt;
121
122 (**
123 @brief get name hebrew parasha.
124
125 @param diaspora if true give diaspora parashot.
126 @param s short flag
127 true - returns a short string.
128 @return a static string of hebrew parash name
129 *)
130 function get_parasha_string (diaspora, s : cInt) : String;
131
132 (**
133 @brief get name hebrew year.
134
135 @return a static string of hebrew year
136 *)
137 function get_hebrew_year_string : String;
138
139 (**
140 @brief get name hebrew hebrew day of the month
141
142 @return a static string of hebrew day of the month
143 *)
144 function get_hebrew_day_string : String;
145
146 ////////////////////////////////////////
147 ////////////////////////////////////////
148
149 (**
150 @brief get parash number
151
152 @param diaspora if true give diaspora parashot.
153 @return the hebrew parasha number
154 *)
155 function get_parasha (diaspora : cInt) : cInt;
156
157 (**
158 @brief get holiday number
159
160 @param diaspora if true give diaspora holidays.
161 @return the hebrew holiday number
162 *)
163 function get_holyday (diaspora : cInt) : cInt;
164
165 (**
166 @brief get Gregorian day of the month
167
168 @return the Gregorian day of the month
169 *)
170 function get_gday : cInt;
171
172 (**
173 @brief get Gregorian month
174
175 @return the Gregorian month
176 *)
177 function get_gmonth : cInt;
178
179 (**
180 @brief get Gregorian year
181
182 @return the Gregorian year
183 *)
184 function get_gyear : cInt;
185
186 (**
187 @brief get Hebrew day of the month
188
189 @return the Hebrew day of the month
190 *)
191 function get_hday : cInt;
192
193 (**
194 @brief get Hebrew month
195
196 @return the Hebrew month
197 *)
198 function get_hmonth : cInt;
199
200 (**
201 @brief get Hebrew year
202
203 @return the Hebrew year
204 *)
205 function get_hyear : cInt;
206
207 (**
208 @brief get the day of the week
209
210 @return the day of the week
211 *)
212 function get_day_of_the_week : cInt;
213
214 (**
215 @brief get the size of the Hebrew year in days
216
217 @return the size of the Hebrew year in days
218 *)
219 function get_size_of_year : cInt;
220
221 (**
222 @brief get the day of the week of hebrew new years
223
224 @return the day of the week of hebrew new years
225 *)
226 function get_new_year_day_of_the_week : cInt;
227
228 (**
229 @brief get the Julian day number
230
231 @return the Julian day number
232 *)
233 function get_julian : cInt;
234
235 (**
236 @brief get the number of days sice Tishrey I
237
238 @return the the number of days sice Tishrey I
239 *)
240 function get_days : cInt;
241
242 (**
243 @brief get the number of weeks sice Tishrey I
244
245 @return the the number of weeks sice Tishrey I
246 *)
247 function get_weeks : cInt;
248
249 ////////////////////////////////////////
250 ////////////////////////////////////////
251
252 (**
253 @brief sunrise time
254
255 @param longitude longitude to use in calculations
256 degrees, negative values are east
257 @param latitude latitude to use in calculations
258 degrees, negative values are south
259 @param tz time zone
260 @return sunrise in minutes after midnight (00:00)
261 *)
262 function get_sunrise (latitude, longitude : cDouble; tz : cInt) : cInt;
263
264 (**
265 @brief sunset time
266
267 @param longitude longitude to use in calculations
268 degrees, negative values are east
269 @param latitude latitude to use in calculations
270 degrees, negative values are south
271 @param tz time zone
272 @return sunset in minutes after midnight (00:00)
273 *)
274 function get_sunset (latitude, longitude : cDouble; tz : cInt) : cInt;
275 end;
276
277 implementation
278
279 constructor THdate.Create;
280 begin
281 h := new_hdate;
282 end;
283
284 destructor THdate.Destroy;
285 begin
286 delete_hdate(h);
287 inherited Destroy;
288 end;
289
290 procedure THdate.set_gdate (d, m, y : cInt);
291 begin
292 hdate_set_gdate (h, d, m, y);
293 end;
294
295 procedure THdate.set_hdate (d, m, y : cInt);
296 begin
297 hdate_set_hdate (h, d, m, y);
298 end;
299
300 procedure THdate.set_jd (jd : cInt);
301 begin
302 hdate_set_jd (h, jd);
303 end;
304
305 function THdate.get_format_date (diaspora, s : cInt) : String;
306 begin
307 Result := StrPas (hdate_get_format_date (h, diaspora, s));
308 end;
309
310 function THdate.get_day_of_week_string (s : cInt) : String;
311 begin
312 Result := StrPas (hdate_get_day_string (h^.hd_dw, s));
313 end;
314
315 function THdate.get_month_string (s : cInt) : String;
316 begin
317 Result := StrPas (hdate_get_month_string (h^.gd_mon, s));
318 end;
319
320 function THdate.get_hebrew_month_string (s : cInt) : String;
321 begin
322 Result := StrPas (hdate_get_hebrew_month_string (h^.hd_mon, s));
323 end;
324
325 function THdate.get_holyday_string (diaspora, s : cInt) : String;
326 var
327 holyday : cInt;
328 begin
329 holyday := hdate_get_holyday (h, diaspora);
330 Result := StrPas (hdate_get_holyday_string (holyday, s));
331 end;
332
333 function THdate.get_holyday_type (diaspora : cInt) : cInt;
334 var
335 holyday : cInt;
336 begin
337 holyday := hdate_get_holyday (h, diaspora);
338 Result := hdate_get_holyday_type (holyday);
339 end;
340
341 function THdate.get_parasha_string (diaspora, s : cInt) : String;
342 var
343 parasha : cInt;
344 begin
345 parasha := hdate_get_parasha (h, diaspora);
346 Result := StrPas (hdate_get_parasha_string (parasha, s));
347 end;
348
349 function THdate.get_hebrew_year_string : String;
350 begin
351 Result := StrPas (hdate_get_int_string (h^.hd_year));
352 end;
353
354 function THdate.get_hebrew_day_string : String;
355 begin
356 Result := StrPas (hdate_get_int_string (h^.hd_day));
357 end;
358
359 function THdate.get_parasha (diaspora : cInt) : cInt;
360 begin
361 Result := hdate_get_parasha (h, diaspora);
362 end;
363
364 function THdate.get_holyday (diaspora : cInt) : cInt;
365 begin
366 Result := hdate_get_holyday (h, diaspora);
367 end;
368
369 function THdate.get_gday : cInt;
370 begin
371 Result := hdate_get_gday (h);
372 end;
373
374 function THdate.get_gmonth : cInt;
375 begin
376 Result := hdate_get_gmonth (h);
377 end;
378
379 function THdate.get_gyear : cInt;
380 begin
381 Result := hdate_get_gyear (h);
382 end;
383
384 function THdate.get_hday : cInt;
385 begin
386 Result := hdate_get_hday (h);
387 end;
388
389 function THdate.get_hmonth : cInt;
390 begin
391 Result := hdate_get_hmonth (h);
392 end;
393
394 function THdate.get_hyear : cInt;
395 begin
396 Result :=hdate_get_hyear (h);
397 end;
398
399 function THdate.get_day_of_the_week : cInt;
400 begin
401 Result := hdate_get_day_of_the_week (h);
402 end;
403
404 function THdate.get_size_of_year : cInt;
405 begin
406 Result := hdate_get_size_of_year (h);
407 end;
408
409 function THdate.get_new_year_day_of_the_week : cInt;
410 begin
411 Result := hdate_get_new_year_day_of_the_week (h);
412 end;
413
414 function THdate.get_julian : cInt;
415 begin
416 Result := hdate_get_julian (h);
417 end;
418
419 function THdate.get_days : cInt;
420 begin
421 Result := hdate_get_days (h);
422 end;
423
424 function THdate.get_weeks : cInt;
425 begin
426 Result := hdate_get_weeks (h);
427 end;
428
429 function THdate.get_sunrise (latitude, longitude : cDouble; tz : cInt) : cInt;
430 var
431 sunrise,
432 sunset : cInt;
433 begin
434 hdate_get_utc_sun_time (h^.gd_day, h^.gd_mon, h^.gd_year, latitude, longitude, @sunrise, @sunset);
435
436 Result := sunrise + tz * 60;
437 end;
438
439 function THdate.get_sunset (latitude, longitude : cDouble; tz : cInt) : cInt;
440 var
441 sunrise,
442 sunset : cInt;
443 begin
444 hdate_get_utc_sun_time (h^.gd_day, h^.gd_mon, h^.gd_year, latitude, longitude, @sunrise, @sunset);
445
446 Result := sunset + tz * 60;
447 end;
448
449 end.
0
1 EXTRA_DIST = hdate.i
2
3 if WITH_PERL
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.cxx *.so *wrap* *.pm
8
9 all-am: hdate.so
10
11
12 hdate.so: hdate_wrap.cxx
13 g++ -fpic -c hdate_wrap.cxx $(PE_CFLAGS) -I$(top_srcdir)/src
14 g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o hdate.so
15
16 hdate_wrap.cxx: hdate.i
17 swig -perl -c++ hdate.i
18
19 install-data-local: hdate.so
20 $(mkinstalldirs) $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/
21 $(INSTALL_DATA) hdate.so $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/hdate.so
22 $(INSTALL_DATA) hdate.pm $(DESTDIR)$(PE_MODULES_PATH)/hdate.pm
23
24 endif
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184
185 EXTRA_DIST = hdate.i
186
187 @WITH_PERL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
188
189 @WITH_PERL_TRUE@CLEANFILES = *.o *.cxx *.so *wrap* *.pm
190 subdir = bindings/perl
191 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
192 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
193 CONFIG_CLEAN_FILES =
194 DIST_SOURCES =
195 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
196 all: all-am
197
198 .SUFFIXES:
199 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
200 cd $(top_srcdir) && \
201 $(AUTOMAKE) --gnu bindings/perl/Makefile
202 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
203 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
204
205 mostlyclean-libtool:
206 -rm -f *.lo
207
208 clean-libtool:
209 -rm -rf .libs _libs
210
211 distclean-libtool:
212 -rm -f libtool
213 uninstall-info-am:
214 tags: TAGS
215 TAGS:
216
217 ctags: CTAGS
218 CTAGS:
219
220 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
221
222 top_distdir = ../..
223 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
224
225 distdir: $(DISTFILES)
226 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
227 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
228 list='$(DISTFILES)'; for file in $$list; do \
229 case $$file in \
230 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
231 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
232 esac; \
233 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
234 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
235 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
236 dir="/$$dir"; \
237 $(mkinstalldirs) "$(distdir)$$dir"; \
238 else \
239 dir=''; \
240 fi; \
241 if test -d $$d/$$file; then \
242 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
243 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
244 fi; \
245 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
246 else \
247 test -f $(distdir)/$$file \
248 || cp -p $$d/$$file $(distdir)/$$file \
249 || exit 1; \
250 fi; \
251 done
252 check-am: all-am
253 check: check-am
254 all-am: Makefile
255
256 installdirs:
257 install: install-am
258 install-exec: install-exec-am
259 install-data: install-data-am
260 uninstall: uninstall-am
261
262 install-am: all-am
263 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
264
265 installcheck: installcheck-am
266 install-strip:
267 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
268 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
269 `test -z '$(STRIP)' || \
270 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
271 mostlyclean-generic:
272
273 clean-generic:
274 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
275
276 distclean-generic:
277 -rm -f $(CONFIG_CLEAN_FILES)
278
279 maintainer-clean-generic:
280 @echo "This command is intended for maintainers to use"
281 @echo "it deletes files that may require special tools to rebuild."
282 clean: clean-am
283
284 clean-am: clean-generic clean-libtool mostlyclean-am
285
286 distclean: distclean-am
287 -rm -f Makefile
288 distclean-am: clean-am distclean-generic distclean-libtool
289
290 dvi: dvi-am
291
292 dvi-am:
293
294 info: info-am
295
296 info-am:
297
298 install-data-am: install-data-local
299
300 install-exec-am:
301
302 install-info: install-info-am
303
304 install-man:
305
306 installcheck-am:
307
308 maintainer-clean: maintainer-clean-am
309 -rm -f Makefile
310 maintainer-clean-am: distclean-am maintainer-clean-generic
311
312 mostlyclean: mostlyclean-am
313
314 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
315
316 pdf: pdf-am
317
318 pdf-am:
319
320 ps: ps-am
321
322 ps-am:
323
324 uninstall-am: uninstall-info-am
325
326 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
327 distclean distclean-generic distclean-libtool distdir dvi \
328 dvi-am info info-am install install-am install-data \
329 install-data-am install-data-local install-exec install-exec-am \
330 install-info install-info-am install-man install-strip \
331 installcheck installcheck-am installdirs maintainer-clean \
332 maintainer-clean-generic mostlyclean mostlyclean-generic \
333 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
334 uninstall-info-am
335
336
337 @WITH_PERL_TRUE@all-am: hdate.so
338
339 @WITH_PERL_TRUE@hdate.so: hdate_wrap.cxx
340 @WITH_PERL_TRUE@ g++ -fpic -c hdate_wrap.cxx $(PE_CFLAGS) -I$(top_srcdir)/src
341 @WITH_PERL_TRUE@ g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o hdate.so
342
343 @WITH_PERL_TRUE@hdate_wrap.cxx: hdate.i
344 @WITH_PERL_TRUE@ swig -perl -c++ hdate.i
345
346 @WITH_PERL_TRUE@install-data-local: hdate.so
347 @WITH_PERL_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/
348 @WITH_PERL_TRUE@ $(INSTALL_DATA) hdate.so $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/hdate.so
349 @WITH_PERL_TRUE@ $(INSTALL_DATA) hdate.pm $(DESTDIR)$(PE_MODULES_PATH)/hdate.pm
350 # Tell versions [3.59,3.63) of GNU make to not export all variables.
351 # Otherwise a system limit (for SysV at least) may be exceeded.
352 .NOEXPORT:
0 // file : hdate.i
1 %module hdate
2 %{
3 #include "../../src/hdatepp.h"
4 %}
5
6 %include ../../src/hdatepp.h
7
8 // on linux do:
9 // swig -perl hdate.i
10 // g++ -fpic -c hdate_wrap.cxx -I/usr/lib/perl5/5.8.6/i686-linux/CORE/
11 // g++ -shared ../../src/*.o hdate_wrap.o -o _hdate.so
0
1 EXTRA_DIST = hdate.i
2
3 if WITH_PYTHON
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.cxx *.so *wrap* *.py
8
9 all-am: _hdate.so
10
11
12 _hdate.so: hdate_wrap.cxx
13 g++ -fpic -c hdate_wrap.cxx $(PY_CFLAGS) -I$(top_srcdir)/src
14 g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o _hdate.so
15
16 hdate_wrap.cxx: hdate.i
17 swig -python -c++ hdate.i
18
19 install-data-local: _hdate.so
20 $(mkinstalldirs) $(DESTDIR)$(PY_MODULES_PATH)
21 $(INSTALL_DATA) _hdate.so $(DESTDIR)$(PY_MODULES_PATH)/_hdate.so
22 $(INSTALL_DATA) hdate.py $(DESTDIR)$(PY_MODULES_PATH)/hdate.py
23
24 endif
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184
185 EXTRA_DIST = hdate.i
186
187 @WITH_PYTHON_TRUE@DEPS = $(top_builddir)/src/libhdate.la
188
189 @WITH_PYTHON_TRUE@CLEANFILES = *.o *.cxx *.so *wrap* *.py
190 subdir = bindings/python
191 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
192 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
193 CONFIG_CLEAN_FILES =
194 DIST_SOURCES =
195 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
196 all: all-am
197
198 .SUFFIXES:
199 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
200 cd $(top_srcdir) && \
201 $(AUTOMAKE) --gnu bindings/python/Makefile
202 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
203 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
204
205 mostlyclean-libtool:
206 -rm -f *.lo
207
208 clean-libtool:
209 -rm -rf .libs _libs
210
211 distclean-libtool:
212 -rm -f libtool
213 uninstall-info-am:
214 tags: TAGS
215 TAGS:
216
217 ctags: CTAGS
218 CTAGS:
219
220 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
221
222 top_distdir = ../..
223 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
224
225 distdir: $(DISTFILES)
226 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
227 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
228 list='$(DISTFILES)'; for file in $$list; do \
229 case $$file in \
230 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
231 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
232 esac; \
233 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
234 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
235 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
236 dir="/$$dir"; \
237 $(mkinstalldirs) "$(distdir)$$dir"; \
238 else \
239 dir=''; \
240 fi; \
241 if test -d $$d/$$file; then \
242 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
243 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
244 fi; \
245 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
246 else \
247 test -f $(distdir)/$$file \
248 || cp -p $$d/$$file $(distdir)/$$file \
249 || exit 1; \
250 fi; \
251 done
252 check-am: all-am
253 check: check-am
254 all-am: Makefile
255
256 installdirs:
257 install: install-am
258 install-exec: install-exec-am
259 install-data: install-data-am
260 uninstall: uninstall-am
261
262 install-am: all-am
263 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
264
265 installcheck: installcheck-am
266 install-strip:
267 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
268 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
269 `test -z '$(STRIP)' || \
270 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
271 mostlyclean-generic:
272
273 clean-generic:
274 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
275
276 distclean-generic:
277 -rm -f $(CONFIG_CLEAN_FILES)
278
279 maintainer-clean-generic:
280 @echo "This command is intended for maintainers to use"
281 @echo "it deletes files that may require special tools to rebuild."
282 clean: clean-am
283
284 clean-am: clean-generic clean-libtool mostlyclean-am
285
286 distclean: distclean-am
287 -rm -f Makefile
288 distclean-am: clean-am distclean-generic distclean-libtool
289
290 dvi: dvi-am
291
292 dvi-am:
293
294 info: info-am
295
296 info-am:
297
298 install-data-am: install-data-local
299
300 install-exec-am:
301
302 install-info: install-info-am
303
304 install-man:
305
306 installcheck-am:
307
308 maintainer-clean: maintainer-clean-am
309 -rm -f Makefile
310 maintainer-clean-am: distclean-am maintainer-clean-generic
311
312 mostlyclean: mostlyclean-am
313
314 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
315
316 pdf: pdf-am
317
318 pdf-am:
319
320 ps: ps-am
321
322 ps-am:
323
324 uninstall-am: uninstall-info-am
325
326 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
327 distclean distclean-generic distclean-libtool distdir dvi \
328 dvi-am info info-am install install-am install-data \
329 install-data-am install-data-local install-exec install-exec-am \
330 install-info install-info-am install-man install-strip \
331 installcheck installcheck-am installdirs maintainer-clean \
332 maintainer-clean-generic mostlyclean mostlyclean-generic \
333 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
334 uninstall-info-am
335
336
337 @WITH_PYTHON_TRUE@all-am: _hdate.so
338
339 @WITH_PYTHON_TRUE@_hdate.so: hdate_wrap.cxx
340 @WITH_PYTHON_TRUE@ g++ -fpic -c hdate_wrap.cxx $(PY_CFLAGS) -I$(top_srcdir)/src
341 @WITH_PYTHON_TRUE@ g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o _hdate.so
342
343 @WITH_PYTHON_TRUE@hdate_wrap.cxx: hdate.i
344 @WITH_PYTHON_TRUE@ swig -python -c++ hdate.i
345
346 @WITH_PYTHON_TRUE@install-data-local: _hdate.so
347 @WITH_PYTHON_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PY_MODULES_PATH)
348 @WITH_PYTHON_TRUE@ $(INSTALL_DATA) _hdate.so $(DESTDIR)$(PY_MODULES_PATH)/_hdate.so
349 @WITH_PYTHON_TRUE@ $(INSTALL_DATA) hdate.py $(DESTDIR)$(PY_MODULES_PATH)/hdate.py
350 # Tell versions [3.59,3.63) of GNU make to not export all variables.
351 # Otherwise a system limit (for SysV at least) may be exceeded.
352 .NOEXPORT:
0 // file : hdate.i
1 %module hdate
2 %{
3 #include "../../src/hdatepp.h"
4 %}
5
6 %include ../../src/hdatepp.h
7
8 // on linux do:
9 // swig -python hdate.i
10 // g++ -fpic -c hdate_wrap.cxx -I/usr/include/python2.3
11 // g++ -shared ../../src/*.o hdate_wrap.o -o _hdate.so
0 /usr/share/automake-1.7/compile
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4
5 timestamp='2005-04-22'
6
7 # This file is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # Originally written by Per Bothner <per@bothner.com>.
27 # Please send patches to <config-patches@gnu.org>. Submit a context
28 # diff and a properly formatted ChangeLog entry.
29 #
30 # This script attempts to guess a canonical system name similar to
31 # config.sub. If it succeeds, it prints the system name on stdout, and
32 # exits with 0. Otherwise, it exits with 1.
33 #
34 # The plan is that this can be called by configure scripts if you
35 # don't specify an explicit build system type.
36
37 me=`echo "$0" | sed -e 's,.*/,,'`
38
39 usage="\
40 Usage: $0 [OPTION]
41
42 Output the configuration name of the system \`$me' is run on.
43
44 Operation modes:
45 -h, --help print this help, then exit
46 -t, --time-stamp print date of last modification, then exit
47 -v, --version print version number, then exit
48
49 Report bugs and patches to <config-patches@gnu.org>."
50
51 version="\
52 GNU config.guess ($timestamp)
53
54 Originally written by Per Bothner.
55 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
56 Free Software Foundation, Inc.
57
58 This is free software; see the source for copying conditions. There is NO
59 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
60
61 help="
62 Try \`$me --help' for more information."
63
64 # Parse command line
65 while test $# -gt 0 ; do
66 case $1 in
67 --time-stamp | --time* | -t )
68 echo "$timestamp" ; exit 0 ;;
69 --version | -v )
70 echo "$version" ; exit 0 ;;
71 --help | --h* | -h )
72 echo "$usage"; exit 0 ;;
73 -- ) # Stop option processing
74 shift; break ;;
75 - ) # Use stdin as input.
76 break ;;
77 -* )
78 echo "$me: invalid option $1$help" >&2
79 exit 1 ;;
80 * )
81 break ;;
82 esac
83 done
84
85 if test $# != 0; then
86 echo "$me: too many arguments$help" >&2
87 exit 1
88 fi
89
90 trap 'exit 1' 1 2 15
91
92 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
93 # compiler to aid in system detection is discouraged as it requires
94 # temporary files to be created and, as you can see below, it is a
95 # headache to deal with in a portable fashion.
96
97 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
98 # use `HOST_CC' if defined, but it is deprecated.
99
100 # Portable tmp directory creation inspired by the Autoconf team.
101
102 set_cc_for_build='
103 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
104 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
105 : ${TMPDIR=/tmp} ;
106 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
107 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
108 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
109 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
110 dummy=$tmp/dummy ;
111 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
112 case $CC_FOR_BUILD,$HOST_CC,$CC in
113 ,,) echo "int x;" > $dummy.c ;
114 for c in cc gcc c89 c99 ; do
115 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
116 CC_FOR_BUILD="$c"; break ;
117 fi ;
118 done ;
119 if test x"$CC_FOR_BUILD" = x ; then
120 CC_FOR_BUILD=no_compiler_found ;
121 fi
122 ;;
123 ,,*) CC_FOR_BUILD=$CC ;;
124 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
125 esac ;'
126
127 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
128 # (ghazi@noc.rutgers.edu 1994-08-24)
129 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
130 PATH=$PATH:/.attbin ; export PATH
131 fi
132
133 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
134 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
135 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
136 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
137
138 # Note: order is significant - the case branches are not exclusive.
139
140 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
141 *:NetBSD:*:*)
142 # NetBSD (nbsd) targets should (where applicable) match one or
143 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
144 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
145 # switched to ELF, *-*-netbsd* would select the old
146 # object file format. This provides both forward
147 # compatibility and a consistent mechanism for selecting the
148 # object file format.
149 #
150 # Note: NetBSD doesn't particularly care about the vendor
151 # portion of the name. We always set it to "unknown".
152 sysctl="sysctl -n hw.machine_arch"
153 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
154 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
155 case "${UNAME_MACHINE_ARCH}" in
156 armeb) machine=armeb-unknown ;;
157 arm*) machine=arm-unknown ;;
158 sh3el) machine=shl-unknown ;;
159 sh3eb) machine=sh-unknown ;;
160 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
161 esac
162 # The Operating System including object format, if it has switched
163 # to ELF recently, or will in the future.
164 case "${UNAME_MACHINE_ARCH}" in
165 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
166 eval $set_cc_for_build
167 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
168 | grep __ELF__ >/dev/null
169 then
170 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
171 # Return netbsd for either. FIX?
172 os=netbsd
173 else
174 os=netbsdelf
175 fi
176 ;;
177 *)
178 os=netbsd
179 ;;
180 esac
181 # The OS release
182 # Debian GNU/NetBSD machines have a different userland, and
183 # thus, need a distinct triplet. However, they do not need
184 # kernel version information, so it can be replaced with a
185 # suitable tag, in the style of linux-gnu.
186 case "${UNAME_VERSION}" in
187 Debian*)
188 release='-gnu'
189 ;;
190 *)
191 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
192 ;;
193 esac
194 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
195 # contains redundant information, the shorter form:
196 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
197 echo "${machine}-${os}${release}"
198 exit 0 ;;
199 amd64:OpenBSD:*:*)
200 echo x86_64-unknown-openbsd${UNAME_RELEASE}
201 exit 0 ;;
202 amiga:OpenBSD:*:*)
203 echo m68k-unknown-openbsd${UNAME_RELEASE}
204 exit 0 ;;
205 cats:OpenBSD:*:*)
206 echo arm-unknown-openbsd${UNAME_RELEASE}
207 exit 0 ;;
208 hp300:OpenBSD:*:*)
209 echo m68k-unknown-openbsd${UNAME_RELEASE}
210 exit 0 ;;
211 luna88k:OpenBSD:*:*)
212 echo m88k-unknown-openbsd${UNAME_RELEASE}
213 exit 0 ;;
214 mac68k:OpenBSD:*:*)
215 echo m68k-unknown-openbsd${UNAME_RELEASE}
216 exit 0 ;;
217 macppc:OpenBSD:*:*)
218 echo powerpc-unknown-openbsd${UNAME_RELEASE}
219 exit 0 ;;
220 mvme68k:OpenBSD:*:*)
221 echo m68k-unknown-openbsd${UNAME_RELEASE}
222 exit 0 ;;
223 mvme88k:OpenBSD:*:*)
224 echo m88k-unknown-openbsd${UNAME_RELEASE}
225 exit 0 ;;
226 mvmeppc:OpenBSD:*:*)
227 echo powerpc-unknown-openbsd${UNAME_RELEASE}
228 exit 0 ;;
229 sgi:OpenBSD:*:*)
230 echo mips64-unknown-openbsd${UNAME_RELEASE}
231 exit 0 ;;
232 sun3:OpenBSD:*:*)
233 echo m68k-unknown-openbsd${UNAME_RELEASE}
234 exit 0 ;;
235 *:OpenBSD:*:*)
236 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
237 exit 0 ;;
238 *:ekkoBSD:*:*)
239 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
240 exit 0 ;;
241 macppc:MirBSD:*:*)
242 echo powerppc-unknown-mirbsd${UNAME_RELEASE}
243 exit 0 ;;
244 *:MirBSD:*:*)
245 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
246 exit 0 ;;
247 alpha:OSF1:*:*)
248 case $UNAME_RELEASE in
249 *4.0)
250 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
251 ;;
252 *5.*)
253 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
254 ;;
255 esac
256 # According to Compaq, /usr/sbin/psrinfo has been available on
257 # OSF/1 and Tru64 systems produced since 1995. I hope that
258 # covers most systems running today. This code pipes the CPU
259 # types through head -n 1, so we only detect the type of CPU 0.
260 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
261 case "$ALPHA_CPU_TYPE" in
262 "EV4 (21064)")
263 UNAME_MACHINE="alpha" ;;
264 "EV4.5 (21064)")
265 UNAME_MACHINE="alpha" ;;
266 "LCA4 (21066/21068)")
267 UNAME_MACHINE="alpha" ;;
268 "EV5 (21164)")
269 UNAME_MACHINE="alphaev5" ;;
270 "EV5.6 (21164A)")
271 UNAME_MACHINE="alphaev56" ;;
272 "EV5.6 (21164PC)")
273 UNAME_MACHINE="alphapca56" ;;
274 "EV5.7 (21164PC)")
275 UNAME_MACHINE="alphapca57" ;;
276 "EV6 (21264)")
277 UNAME_MACHINE="alphaev6" ;;
278 "EV6.7 (21264A)")
279 UNAME_MACHINE="alphaev67" ;;
280 "EV6.8CB (21264C)")
281 UNAME_MACHINE="alphaev68" ;;
282 "EV6.8AL (21264B)")
283 UNAME_MACHINE="alphaev68" ;;
284 "EV6.8CX (21264D)")
285 UNAME_MACHINE="alphaev68" ;;
286 "EV6.9A (21264/EV69A)")
287 UNAME_MACHINE="alphaev69" ;;
288 "EV7 (21364)")
289 UNAME_MACHINE="alphaev7" ;;
290 "EV7.9 (21364A)")
291 UNAME_MACHINE="alphaev79" ;;
292 esac
293 # A Pn.n version is a patched version.
294 # A Vn.n version is a released version.
295 # A Tn.n version is a released field test version.
296 # A Xn.n version is an unreleased experimental baselevel.
297 # 1.2 uses "1.2" for uname -r.
298 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
299 exit 0 ;;
300 Alpha\ *:Windows_NT*:*)
301 # How do we know it's Interix rather than the generic POSIX subsystem?
302 # Should we change UNAME_MACHINE based on the output of uname instead
303 # of the specific Alpha model?
304 echo alpha-pc-interix
305 exit 0 ;;
306 21064:Windows_NT:50:3)
307 echo alpha-dec-winnt3.5
308 exit 0 ;;
309 Amiga*:UNIX_System_V:4.0:*)
310 echo m68k-unknown-sysv4
311 exit 0;;
312 *:[Aa]miga[Oo][Ss]:*:*)
313 echo ${UNAME_MACHINE}-unknown-amigaos
314 exit 0 ;;
315 *:[Mm]orph[Oo][Ss]:*:*)
316 echo ${UNAME_MACHINE}-unknown-morphos
317 exit 0 ;;
318 *:OS/390:*:*)
319 echo i370-ibm-openedition
320 exit 0 ;;
321 *:z/VM:*:*)
322 echo s390-ibm-zvmoe
323 exit 0 ;;
324 *:OS400:*:*)
325 echo powerpc-ibm-os400
326 exit 0 ;;
327 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
328 echo arm-acorn-riscix${UNAME_RELEASE}
329 exit 0;;
330 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
331 echo hppa1.1-hitachi-hiuxmpp
332 exit 0;;
333 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
334 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
335 if test "`(/bin/universe) 2>/dev/null`" = att ; then
336 echo pyramid-pyramid-sysv3
337 else
338 echo pyramid-pyramid-bsd
339 fi
340 exit 0 ;;
341 NILE*:*:*:dcosx)
342 echo pyramid-pyramid-svr4
343 exit 0 ;;
344 DRS?6000:unix:4.0:6*)
345 echo sparc-icl-nx6
346 exit 0 ;;
347 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
348 case `/usr/bin/uname -p` in
349 sparc) echo sparc-icl-nx7 && exit 0 ;;
350 esac ;;
351 sun4H:SunOS:5.*:*)
352 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
353 exit 0 ;;
354 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
355 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
356 exit 0 ;;
357 i86pc:SunOS:5.*:*)
358 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
359 exit 0 ;;
360 sun4*:SunOS:6*:*)
361 # According to config.sub, this is the proper way to canonicalize
362 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
363 # it's likely to be more like Solaris than SunOS4.
364 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
365 exit 0 ;;
366 sun4*:SunOS:*:*)
367 case "`/usr/bin/arch -k`" in
368 Series*|S4*)
369 UNAME_RELEASE=`uname -v`
370 ;;
371 esac
372 # Japanese Language versions have a version number like `4.1.3-JL'.
373 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
374 exit 0 ;;
375 sun3*:SunOS:*:*)
376 echo m68k-sun-sunos${UNAME_RELEASE}
377 exit 0 ;;
378 sun*:*:4.2BSD:*)
379 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
380 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
381 case "`/bin/arch`" in
382 sun3)
383 echo m68k-sun-sunos${UNAME_RELEASE}
384 ;;
385 sun4)
386 echo sparc-sun-sunos${UNAME_RELEASE}
387 ;;
388 esac
389 exit 0 ;;
390 aushp:SunOS:*:*)
391 echo sparc-auspex-sunos${UNAME_RELEASE}
392 exit 0 ;;
393 # The situation for MiNT is a little confusing. The machine name
394 # can be virtually everything (everything which is not
395 # "atarist" or "atariste" at least should have a processor
396 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
397 # to the lowercase version "mint" (or "freemint"). Finally
398 # the system name "TOS" denotes a system which is actually not
399 # MiNT. But MiNT is downward compatible to TOS, so this should
400 # be no problem.
401 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
402 echo m68k-atari-mint${UNAME_RELEASE}
403 exit 0 ;;
404 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
405 echo m68k-atari-mint${UNAME_RELEASE}
406 exit 0 ;;
407 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
408 echo m68k-atari-mint${UNAME_RELEASE}
409 exit 0 ;;
410 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
411 echo m68k-milan-mint${UNAME_RELEASE}
412 exit 0 ;;
413 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
414 echo m68k-hades-mint${UNAME_RELEASE}
415 exit 0 ;;
416 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
417 echo m68k-unknown-mint${UNAME_RELEASE}
418 exit 0 ;;
419 m68k:machten:*:*)
420 echo m68k-apple-machten${UNAME_RELEASE}
421 exit 0 ;;
422 powerpc:machten:*:*)
423 echo powerpc-apple-machten${UNAME_RELEASE}
424 exit 0 ;;
425 RISC*:Mach:*:*)
426 echo mips-dec-mach_bsd4.3
427 exit 0 ;;
428 RISC*:ULTRIX:*:*)
429 echo mips-dec-ultrix${UNAME_RELEASE}
430 exit 0 ;;
431 VAX*:ULTRIX*:*:*)
432 echo vax-dec-ultrix${UNAME_RELEASE}
433 exit 0 ;;
434 2020:CLIX:*:* | 2430:CLIX:*:*)
435 echo clipper-intergraph-clix${UNAME_RELEASE}
436 exit 0 ;;
437 mips:*:*:UMIPS | mips:*:*:RISCos)
438 eval $set_cc_for_build
439 sed 's/^ //' << EOF >$dummy.c
440 #ifdef __cplusplus
441 #include <stdio.h> /* for printf() prototype */
442 int main (int argc, char *argv[]) {
443 #else
444 int main (argc, argv) int argc; char *argv[]; {
445 #endif
446 #if defined (host_mips) && defined (MIPSEB)
447 #if defined (SYSTYPE_SYSV)
448 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
449 #endif
450 #if defined (SYSTYPE_SVR4)
451 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
452 #endif
453 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
454 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
455 #endif
456 #endif
457 exit (-1);
458 }
459 EOF
460 $CC_FOR_BUILD -o $dummy $dummy.c \
461 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
462 && exit 0
463 echo mips-mips-riscos${UNAME_RELEASE}
464 exit 0 ;;
465 Motorola:PowerMAX_OS:*:*)
466 echo powerpc-motorola-powermax
467 exit 0 ;;
468 Motorola:*:4.3:PL8-*)
469 echo powerpc-harris-powermax
470 exit 0 ;;
471 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
472 echo powerpc-harris-powermax
473 exit 0 ;;
474 Night_Hawk:Power_UNIX:*:*)
475 echo powerpc-harris-powerunix
476 exit 0 ;;
477 m88k:CX/UX:7*:*)
478 echo m88k-harris-cxux7
479 exit 0 ;;
480 m88k:*:4*:R4*)
481 echo m88k-motorola-sysv4
482 exit 0 ;;
483 m88k:*:3*:R3*)
484 echo m88k-motorola-sysv3
485 exit 0 ;;
486 AViiON:dgux:*:*)
487 # DG/UX returns AViiON for all architectures
488 UNAME_PROCESSOR=`/usr/bin/uname -p`
489 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
490 then
491 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
492 [ ${TARGET_BINARY_INTERFACE}x = x ]
493 then
494 echo m88k-dg-dgux${UNAME_RELEASE}
495 else
496 echo m88k-dg-dguxbcs${UNAME_RELEASE}
497 fi
498 else
499 echo i586-dg-dgux${UNAME_RELEASE}
500 fi
501 exit 0 ;;
502 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
503 echo m88k-dolphin-sysv3
504 exit 0 ;;
505 M88*:*:R3*:*)
506 # Delta 88k system running SVR3
507 echo m88k-motorola-sysv3
508 exit 0 ;;
509 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
510 echo m88k-tektronix-sysv3
511 exit 0 ;;
512 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
513 echo m68k-tektronix-bsd
514 exit 0 ;;
515 *:IRIX*:*:*)
516 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
517 exit 0 ;;
518 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
519 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
520 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
521 i*86:AIX:*:*)
522 echo i386-ibm-aix
523 exit 0 ;;
524 ia64:AIX:*:*)
525 if [ -x /usr/bin/oslevel ] ; then
526 IBM_REV=`/usr/bin/oslevel`
527 else
528 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
529 fi
530 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
531 exit 0 ;;
532 *:AIX:2:3)
533 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
534 eval $set_cc_for_build
535 sed 's/^ //' << EOF >$dummy.c
536 #include <sys/systemcfg.h>
537
538 main()
539 {
540 if (!__power_pc())
541 exit(1);
542 puts("powerpc-ibm-aix3.2.5");
543 exit(0);
544 }
545 EOF
546 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
547 echo rs6000-ibm-aix3.2.5
548 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
549 echo rs6000-ibm-aix3.2.4
550 else
551 echo rs6000-ibm-aix3.2
552 fi
553 exit 0 ;;
554 *:AIX:*:[45])
555 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
556 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
557 IBM_ARCH=rs6000
558 else
559 IBM_ARCH=powerpc
560 fi
561 if [ -x /usr/bin/oslevel ] ; then
562 IBM_REV=`/usr/bin/oslevel`
563 else
564 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
565 fi
566 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
567 exit 0 ;;
568 *:AIX:*:*)
569 echo rs6000-ibm-aix
570 exit 0 ;;
571 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
572 echo romp-ibm-bsd4.4
573 exit 0 ;;
574 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
575 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
576 exit 0 ;; # report: romp-ibm BSD 4.3
577 *:BOSX:*:*)
578 echo rs6000-bull-bosx
579 exit 0 ;;
580 DPX/2?00:B.O.S.:*:*)
581 echo m68k-bull-sysv3
582 exit 0 ;;
583 9000/[34]??:4.3bsd:1.*:*)
584 echo m68k-hp-bsd
585 exit 0 ;;
586 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
587 echo m68k-hp-bsd4.4
588 exit 0 ;;
589 9000/[34678]??:HP-UX:*:*)
590 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
591 case "${UNAME_MACHINE}" in
592 9000/31? ) HP_ARCH=m68000 ;;
593 9000/[34]?? ) HP_ARCH=m68k ;;
594 9000/[678][0-9][0-9])
595 if [ -x /usr/bin/getconf ]; then
596 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598 case "${sc_cpu_version}" in
599 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601 532) # CPU_PA_RISC2_0
602 case "${sc_kernel_bits}" in
603 32) HP_ARCH="hppa2.0n" ;;
604 64) HP_ARCH="hppa2.0w" ;;
605 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
606 esac ;;
607 esac
608 fi
609 if [ "${HP_ARCH}" = "" ]; then
610 eval $set_cc_for_build
611 sed 's/^ //' << EOF >$dummy.c
612
613 #define _HPUX_SOURCE
614 #include <stdlib.h>
615 #include <unistd.h>
616
617 int main ()
618 {
619 #if defined(_SC_KERNEL_BITS)
620 long bits = sysconf(_SC_KERNEL_BITS);
621 #endif
622 long cpu = sysconf (_SC_CPU_VERSION);
623
624 switch (cpu)
625 {
626 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628 case CPU_PA_RISC2_0:
629 #if defined(_SC_KERNEL_BITS)
630 switch (bits)
631 {
632 case 64: puts ("hppa2.0w"); break;
633 case 32: puts ("hppa2.0n"); break;
634 default: puts ("hppa2.0"); break;
635 } break;
636 #else /* !defined(_SC_KERNEL_BITS) */
637 puts ("hppa2.0"); break;
638 #endif
639 default: puts ("hppa1.0"); break;
640 }
641 exit (0);
642 }
643 EOF
644 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
645 test -z "$HP_ARCH" && HP_ARCH=hppa
646 fi ;;
647 esac
648 if [ ${HP_ARCH} = "hppa2.0w" ]
649 then
650 # avoid double evaluation of $set_cc_for_build
651 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
652 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
653 then
654 HP_ARCH="hppa2.0w"
655 else
656 HP_ARCH="hppa64"
657 fi
658 fi
659 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
660 exit 0 ;;
661 ia64:HP-UX:*:*)
662 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
663 echo ia64-hp-hpux${HPUX_REV}
664 exit 0 ;;
665 3050*:HI-UX:*:*)
666 eval $set_cc_for_build
667 sed 's/^ //' << EOF >$dummy.c
668 #include <unistd.h>
669 int
670 main ()
671 {
672 long cpu = sysconf (_SC_CPU_VERSION);
673 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
674 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
675 results, however. */
676 if (CPU_IS_PA_RISC (cpu))
677 {
678 switch (cpu)
679 {
680 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
681 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
682 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
683 default: puts ("hppa-hitachi-hiuxwe2"); break;
684 }
685 }
686 else if (CPU_IS_HP_MC68K (cpu))
687 puts ("m68k-hitachi-hiuxwe2");
688 else puts ("unknown-hitachi-hiuxwe2");
689 exit (0);
690 }
691 EOF
692 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
693 echo unknown-hitachi-hiuxwe2
694 exit 0 ;;
695 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
696 echo hppa1.1-hp-bsd
697 exit 0 ;;
698 9000/8??:4.3bsd:*:*)
699 echo hppa1.0-hp-bsd
700 exit 0 ;;
701 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
702 echo hppa1.0-hp-mpeix
703 exit 0 ;;
704 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
705 echo hppa1.1-hp-osf
706 exit 0 ;;
707 hp8??:OSF1:*:*)
708 echo hppa1.0-hp-osf
709 exit 0 ;;
710 i*86:OSF1:*:*)
711 if [ -x /usr/sbin/sysversion ] ; then
712 echo ${UNAME_MACHINE}-unknown-osf1mk
713 else
714 echo ${UNAME_MACHINE}-unknown-osf1
715 fi
716 exit 0 ;;
717 parisc*:Lites*:*:*)
718 echo hppa1.1-hp-lites
719 exit 0 ;;
720 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
721 echo c1-convex-bsd
722 exit 0 ;;
723 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
724 if getsysinfo -f scalar_acc
725 then echo c32-convex-bsd
726 else echo c2-convex-bsd
727 fi
728 exit 0 ;;
729 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
730 echo c34-convex-bsd
731 exit 0 ;;
732 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
733 echo c38-convex-bsd
734 exit 0 ;;
735 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
736 echo c4-convex-bsd
737 exit 0 ;;
738 CRAY*Y-MP:*:*:*)
739 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
740 exit 0 ;;
741 CRAY*[A-Z]90:*:*:*)
742 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
743 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
744 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
745 -e 's/\.[^.]*$/.X/'
746 exit 0 ;;
747 CRAY*TS:*:*:*)
748 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749 exit 0 ;;
750 CRAY*T3E:*:*:*)
751 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
752 exit 0 ;;
753 CRAY*SV1:*:*:*)
754 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
755 exit 0 ;;
756 *:UNICOS/mp:*:*)
757 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
758 exit 0 ;;
759 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
760 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
761 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
762 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
763 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
764 exit 0 ;;
765 5000:UNIX_System_V:4.*:*)
766 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
767 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
768 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
769 exit 0 ;;
770 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
771 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
772 exit 0 ;;
773 sparc*:BSD/OS:*:*)
774 echo sparc-unknown-bsdi${UNAME_RELEASE}
775 exit 0 ;;
776 *:BSD/OS:*:*)
777 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
778 exit 0 ;;
779 *:FreeBSD:*:*)
780 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
781 exit 0 ;;
782 i*:CYGWIN*:*)
783 echo ${UNAME_MACHINE}-pc-cygwin
784 exit 0 ;;
785 i*:MINGW*:*)
786 echo ${UNAME_MACHINE}-pc-mingw32
787 exit 0 ;;
788 i*:PW*:*)
789 echo ${UNAME_MACHINE}-pc-pw32
790 exit 0 ;;
791 x86:Interix*:[34]*)
792 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
793 exit 0 ;;
794 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
795 echo i${UNAME_MACHINE}-pc-mks
796 exit 0 ;;
797 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
798 # How do we know it's Interix rather than the generic POSIX subsystem?
799 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
800 # UNAME_MACHINE based on the output of uname instead of i386?
801 echo i586-pc-interix
802 exit 0 ;;
803 i*:UWIN*:*)
804 echo ${UNAME_MACHINE}-pc-uwin
805 exit 0 ;;
806 amd64:CYGWIN*:*:*)
807 echo x86_64-unknown-cygwin
808 exit 0 ;;
809 p*:CYGWIN*:*)
810 echo powerpcle-unknown-cygwin
811 exit 0 ;;
812 prep*:SunOS:5.*:*)
813 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
814 exit 0 ;;
815 *:GNU:*:*)
816 # the GNU system
817 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
818 exit 0 ;;
819 *:GNU/*:*:*)
820 # other systems with GNU libc and userland
821 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
822 exit 0 ;;
823 i*86:Minix:*:*)
824 echo ${UNAME_MACHINE}-pc-minix
825 exit 0 ;;
826 arm*:Linux:*:*)
827 echo ${UNAME_MACHINE}-unknown-linux-gnu
828 exit 0 ;;
829 cris:Linux:*:*)
830 echo cris-axis-linux-gnu
831 exit 0 ;;
832 crisv32:Linux:*:*)
833 echo crisv32-axis-linux-gnu
834 exit 0 ;;
835 frv:Linux:*:*)
836 echo frv-unknown-linux-gnu
837 exit 0 ;;
838 ia64:Linux:*:*)
839 echo ${UNAME_MACHINE}-unknown-linux-gnu
840 exit 0 ;;
841 m32r*:Linux:*:*)
842 echo ${UNAME_MACHINE}-unknown-linux-gnu
843 exit 0 ;;
844 m68*:Linux:*:*)
845 echo ${UNAME_MACHINE}-unknown-linux-gnu
846 exit 0 ;;
847 mips:Linux:*:*)
848 eval $set_cc_for_build
849 sed 's/^ //' << EOF >$dummy.c
850 #undef CPU
851 #undef mips
852 #undef mipsel
853 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
854 CPU=mipsel
855 #else
856 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
857 CPU=mips
858 #else
859 CPU=
860 #endif
861 #endif
862 EOF
863 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
864 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
865 ;;
866 mips64:Linux:*:*)
867 eval $set_cc_for_build
868 sed 's/^ //' << EOF >$dummy.c
869 #undef CPU
870 #undef mips64
871 #undef mips64el
872 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
873 CPU=mips64el
874 #else
875 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
876 CPU=mips64
877 #else
878 CPU=
879 #endif
880 #endif
881 EOF
882 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
883 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
884 ;;
885 ppc:Linux:*:*)
886 echo powerpc-unknown-linux-gnu
887 exit 0 ;;
888 ppc64:Linux:*:*)
889 echo powerpc64-unknown-linux-gnu
890 exit 0 ;;
891 alpha:Linux:*:*)
892 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
893 EV5) UNAME_MACHINE=alphaev5 ;;
894 EV56) UNAME_MACHINE=alphaev56 ;;
895 PCA56) UNAME_MACHINE=alphapca56 ;;
896 PCA57) UNAME_MACHINE=alphapca56 ;;
897 EV6) UNAME_MACHINE=alphaev6 ;;
898 EV67) UNAME_MACHINE=alphaev67 ;;
899 EV68*) UNAME_MACHINE=alphaev68 ;;
900 esac
901 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
902 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
903 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
904 exit 0 ;;
905 parisc:Linux:*:* | hppa:Linux:*:*)
906 # Look for CPU level
907 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
908 PA7*) echo hppa1.1-unknown-linux-gnu ;;
909 PA8*) echo hppa2.0-unknown-linux-gnu ;;
910 *) echo hppa-unknown-linux-gnu ;;
911 esac
912 exit 0 ;;
913 parisc64:Linux:*:* | hppa64:Linux:*:*)
914 echo hppa64-unknown-linux-gnu
915 exit 0 ;;
916 s390:Linux:*:* | s390x:Linux:*:*)
917 echo ${UNAME_MACHINE}-ibm-linux
918 exit 0 ;;
919 sh64*:Linux:*:*)
920 echo ${UNAME_MACHINE}-unknown-linux-gnu
921 exit 0 ;;
922 sh*:Linux:*:*)
923 echo ${UNAME_MACHINE}-unknown-linux-gnu
924 exit 0 ;;
925 sparc:Linux:*:* | sparc64:Linux:*:*)
926 echo ${UNAME_MACHINE}-unknown-linux-gnu
927 exit 0 ;;
928 x86_64:Linux:*:*)
929 echo x86_64-unknown-linux-gnu
930 exit 0 ;;
931 i*86:Linux:*:*)
932 # The BFD linker knows what the default object file format is, so
933 # first see if it will tell us. cd to the root directory to prevent
934 # problems with other programs or directories called `ld' in the path.
935 # Set LC_ALL=C to ensure ld outputs messages in English.
936 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
937 | sed -ne '/supported targets:/!d
938 s/[ ][ ]*/ /g
939 s/.*supported targets: *//
940 s/ .*//
941 p'`
942 case "$ld_supported_targets" in
943 elf32-i386)
944 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
945 ;;
946 a.out-i386-linux)
947 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
948 exit 0 ;;
949 coff-i386)
950 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
951 exit 0 ;;
952 "")
953 # Either a pre-BFD a.out linker (linux-gnuoldld) or
954 # one that does not give us useful --help.
955 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
956 exit 0 ;;
957 esac
958 # Determine whether the default compiler is a.out or elf
959 eval $set_cc_for_build
960 sed 's/^ //' << EOF >$dummy.c
961 #include <features.h>
962 #ifdef __ELF__
963 # ifdef __GLIBC__
964 # if __GLIBC__ >= 2
965 LIBC=gnu
966 # else
967 LIBC=gnulibc1
968 # endif
969 # else
970 LIBC=gnulibc1
971 # endif
972 #else
973 #ifdef __INTEL_COMPILER
974 LIBC=gnu
975 #else
976 LIBC=gnuaout
977 #endif
978 #endif
979 #ifdef __dietlibc__
980 LIBC=dietlibc
981 #endif
982 EOF
983 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
984 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
985 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
986 ;;
987 i*86:DYNIX/ptx:4*:*)
988 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
989 # earlier versions are messed up and put the nodename in both
990 # sysname and nodename.
991 echo i386-sequent-sysv4
992 exit 0 ;;
993 i*86:UNIX_SV:4.2MP:2.*)
994 # Unixware is an offshoot of SVR4, but it has its own version
995 # number series starting with 2...
996 # I am not positive that other SVR4 systems won't match this,
997 # I just have to hope. -- rms.
998 # Use sysv4.2uw... so that sysv4* matches it.
999 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1000 exit 0 ;;
1001 i*86:OS/2:*:*)
1002 # If we were able to find `uname', then EMX Unix compatibility
1003 # is probably installed.
1004 echo ${UNAME_MACHINE}-pc-os2-emx
1005 exit 0 ;;
1006 i*86:XTS-300:*:STOP)
1007 echo ${UNAME_MACHINE}-unknown-stop
1008 exit 0 ;;
1009 i*86:atheos:*:*)
1010 echo ${UNAME_MACHINE}-unknown-atheos
1011 exit 0 ;;
1012 i*86:syllable:*:*)
1013 echo ${UNAME_MACHINE}-pc-syllable
1014 exit 0 ;;
1015 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1016 echo i386-unknown-lynxos${UNAME_RELEASE}
1017 exit 0 ;;
1018 i*86:*DOS:*:*)
1019 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1020 exit 0 ;;
1021 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1022 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1023 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1024 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1025 else
1026 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1027 fi
1028 exit 0 ;;
1029 i*86:*:5:[78]*)
1030 case `/bin/uname -X | grep "^Machine"` in
1031 *486*) UNAME_MACHINE=i486 ;;
1032 *Pentium) UNAME_MACHINE=i586 ;;
1033 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1034 esac
1035 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1036 exit 0 ;;
1037 i*86:*:3.2:*)
1038 if test -f /usr/options/cb.name; then
1039 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1040 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1041 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1042 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1043 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1044 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1045 && UNAME_MACHINE=i586
1046 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1047 && UNAME_MACHINE=i686
1048 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1049 && UNAME_MACHINE=i686
1050 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1051 else
1052 echo ${UNAME_MACHINE}-pc-sysv32
1053 fi
1054 exit 0 ;;
1055 pc:*:*:*)
1056 # Left here for compatibility:
1057 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1058 # the processor, so we play safe by assuming i386.
1059 echo i386-pc-msdosdjgpp
1060 exit 0 ;;
1061 Intel:Mach:3*:*)
1062 echo i386-pc-mach3
1063 exit 0 ;;
1064 paragon:*:*:*)
1065 echo i860-intel-osf1
1066 exit 0 ;;
1067 i860:*:4.*:*) # i860-SVR4
1068 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1069 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1070 else # Add other i860-SVR4 vendors below as they are discovered.
1071 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1072 fi
1073 exit 0 ;;
1074 mini*:CTIX:SYS*5:*)
1075 # "miniframe"
1076 echo m68010-convergent-sysv
1077 exit 0 ;;
1078 mc68k:UNIX:SYSTEM5:3.51m)
1079 echo m68k-convergent-sysv
1080 exit 0 ;;
1081 M680?0:D-NIX:5.3:*)
1082 echo m68k-diab-dnix
1083 exit 0 ;;
1084 M68*:*:R3V[5678]*:*)
1085 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1086 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1087 OS_REL=''
1088 test -r /etc/.relid \
1089 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1090 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1091 && echo i486-ncr-sysv4.3${OS_REL} && exit 0
1092 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1093 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1094 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1095 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1096 && echo i486-ncr-sysv4 && exit 0 ;;
1097 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1098 echo m68k-unknown-lynxos${UNAME_RELEASE}
1099 exit 0 ;;
1100 mc68030:UNIX_System_V:4.*:*)
1101 echo m68k-atari-sysv4
1102 exit 0 ;;
1103 TSUNAMI:LynxOS:2.*:*)
1104 echo sparc-unknown-lynxos${UNAME_RELEASE}
1105 exit 0 ;;
1106 rs6000:LynxOS:2.*:*)
1107 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1108 exit 0 ;;
1109 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1110 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1111 exit 0 ;;
1112 SM[BE]S:UNIX_SV:*:*)
1113 echo mips-dde-sysv${UNAME_RELEASE}
1114 exit 0 ;;
1115 RM*:ReliantUNIX-*:*:*)
1116 echo mips-sni-sysv4
1117 exit 0 ;;
1118 RM*:SINIX-*:*:*)
1119 echo mips-sni-sysv4
1120 exit 0 ;;
1121 *:SINIX-*:*:*)
1122 if uname -p 2>/dev/null >/dev/null ; then
1123 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1124 echo ${UNAME_MACHINE}-sni-sysv4
1125 else
1126 echo ns32k-sni-sysv
1127 fi
1128 exit 0 ;;
1129 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1130 # says <Richard.M.Bartel@ccMail.Census.GOV>
1131 echo i586-unisys-sysv4
1132 exit 0 ;;
1133 *:UNIX_System_V:4*:FTX*)
1134 # From Gerald Hewes <hewes@openmarket.com>.
1135 # How about differentiating between stratus architectures? -djm
1136 echo hppa1.1-stratus-sysv4
1137 exit 0 ;;
1138 *:*:*:FTX*)
1139 # From seanf@swdc.stratus.com.
1140 echo i860-stratus-sysv4
1141 exit 0 ;;
1142 i*86:VOS:*:*)
1143 # From Paul.Green@stratus.com.
1144 echo ${UNAME_MACHINE}-stratus-vos
1145 exit 0 ;;
1146 *:VOS:*:*)
1147 # From Paul.Green@stratus.com.
1148 echo hppa1.1-stratus-vos
1149 exit 0 ;;
1150 mc68*:A/UX:*:*)
1151 echo m68k-apple-aux${UNAME_RELEASE}
1152 exit 0 ;;
1153 news*:NEWS-OS:6*:*)
1154 echo mips-sony-newsos6
1155 exit 0 ;;
1156 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1157 if [ -d /usr/nec ]; then
1158 echo mips-nec-sysv${UNAME_RELEASE}
1159 else
1160 echo mips-unknown-sysv${UNAME_RELEASE}
1161 fi
1162 exit 0 ;;
1163 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1164 echo powerpc-be-beos
1165 exit 0 ;;
1166 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1167 echo powerpc-apple-beos
1168 exit 0 ;;
1169 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1170 echo i586-pc-beos
1171 exit 0 ;;
1172 SX-4:SUPER-UX:*:*)
1173 echo sx4-nec-superux${UNAME_RELEASE}
1174 exit 0 ;;
1175 SX-5:SUPER-UX:*:*)
1176 echo sx5-nec-superux${UNAME_RELEASE}
1177 exit 0 ;;
1178 SX-6:SUPER-UX:*:*)
1179 echo sx6-nec-superux${UNAME_RELEASE}
1180 exit 0 ;;
1181 Power*:Rhapsody:*:*)
1182 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1183 exit 0 ;;
1184 *:Rhapsody:*:*)
1185 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1186 exit 0 ;;
1187 *:Darwin:*:*)
1188 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1189 case $UNAME_PROCESSOR in
1190 *86) UNAME_PROCESSOR=i686 ;;
1191 unknown) UNAME_PROCESSOR=powerpc ;;
1192 esac
1193 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1194 exit 0 ;;
1195 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1196 UNAME_PROCESSOR=`uname -p`
1197 if test "$UNAME_PROCESSOR" = "x86"; then
1198 UNAME_PROCESSOR=i386
1199 UNAME_MACHINE=pc
1200 fi
1201 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1202 exit 0 ;;
1203 *:QNX:*:4*)
1204 echo i386-pc-qnx
1205 exit 0 ;;
1206 NSE-?:NONSTOP_KERNEL:*:*)
1207 echo nse-tandem-nsk${UNAME_RELEASE}
1208 exit 0 ;;
1209 NSR-?:NONSTOP_KERNEL:*:*)
1210 echo nsr-tandem-nsk${UNAME_RELEASE}
1211 exit 0 ;;
1212 *:NonStop-UX:*:*)
1213 echo mips-compaq-nonstopux
1214 exit 0 ;;
1215 BS2000:POSIX*:*:*)
1216 echo bs2000-siemens-sysv
1217 exit 0 ;;
1218 DS/*:UNIX_System_V:*:*)
1219 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1220 exit 0 ;;
1221 *:Plan9:*:*)
1222 # "uname -m" is not consistent, so use $cputype instead. 386
1223 # is converted to i386 for consistency with other x86
1224 # operating systems.
1225 if test "$cputype" = "386"; then
1226 UNAME_MACHINE=i386
1227 else
1228 UNAME_MACHINE="$cputype"
1229 fi
1230 echo ${UNAME_MACHINE}-unknown-plan9
1231 exit 0 ;;
1232 *:TOPS-10:*:*)
1233 echo pdp10-unknown-tops10
1234 exit 0 ;;
1235 *:TENEX:*:*)
1236 echo pdp10-unknown-tenex
1237 exit 0 ;;
1238 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1239 echo pdp10-dec-tops20
1240 exit 0 ;;
1241 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1242 echo pdp10-xkl-tops20
1243 exit 0 ;;
1244 *:TOPS-20:*:*)
1245 echo pdp10-unknown-tops20
1246 exit 0 ;;
1247 *:ITS:*:*)
1248 echo pdp10-unknown-its
1249 exit 0 ;;
1250 SEI:*:*:SEIUX)
1251 echo mips-sei-seiux${UNAME_RELEASE}
1252 exit 0 ;;
1253 *:DragonFly:*:*)
1254 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1255 exit 0 ;;
1256 *:*VMS:*:*)
1257 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1258 case "${UNAME_MACHINE}" in
1259 A*) echo alpha-dec-vms && exit 0 ;;
1260 I*) echo ia64-dec-vms && exit 0 ;;
1261 V*) echo vax-dec-vms && exit 0 ;;
1262 esac ;;
1263 *:XENIX:*:SysV)
1264 echo i386-pc-xenix
1265 exit 0 ;;
1266 esac
1267
1268 #echo '(No uname command or uname output not recognized.)' 1>&2
1269 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1270
1271 eval $set_cc_for_build
1272 cat >$dummy.c <<EOF
1273 #ifdef _SEQUENT_
1274 # include <sys/types.h>
1275 # include <sys/utsname.h>
1276 #endif
1277 main ()
1278 {
1279 #if defined (sony)
1280 #if defined (MIPSEB)
1281 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1282 I don't know.... */
1283 printf ("mips-sony-bsd\n"); exit (0);
1284 #else
1285 #include <sys/param.h>
1286 printf ("m68k-sony-newsos%s\n",
1287 #ifdef NEWSOS4
1288 "4"
1289 #else
1290 ""
1291 #endif
1292 ); exit (0);
1293 #endif
1294 #endif
1295
1296 #if defined (__arm) && defined (__acorn) && defined (__unix)
1297 printf ("arm-acorn-riscix"); exit (0);
1298 #endif
1299
1300 #if defined (hp300) && !defined (hpux)
1301 printf ("m68k-hp-bsd\n"); exit (0);
1302 #endif
1303
1304 #if defined (NeXT)
1305 #if !defined (__ARCHITECTURE__)
1306 #define __ARCHITECTURE__ "m68k"
1307 #endif
1308 int version;
1309 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1310 if (version < 4)
1311 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1312 else
1313 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1314 exit (0);
1315 #endif
1316
1317 #if defined (MULTIMAX) || defined (n16)
1318 #if defined (UMAXV)
1319 printf ("ns32k-encore-sysv\n"); exit (0);
1320 #else
1321 #if defined (CMU)
1322 printf ("ns32k-encore-mach\n"); exit (0);
1323 #else
1324 printf ("ns32k-encore-bsd\n"); exit (0);
1325 #endif
1326 #endif
1327 #endif
1328
1329 #if defined (__386BSD__)
1330 printf ("i386-pc-bsd\n"); exit (0);
1331 #endif
1332
1333 #if defined (sequent)
1334 #if defined (i386)
1335 printf ("i386-sequent-dynix\n"); exit (0);
1336 #endif
1337 #if defined (ns32000)
1338 printf ("ns32k-sequent-dynix\n"); exit (0);
1339 #endif
1340 #endif
1341
1342 #if defined (_SEQUENT_)
1343 struct utsname un;
1344
1345 uname(&un);
1346
1347 if (strncmp(un.version, "V2", 2) == 0) {
1348 printf ("i386-sequent-ptx2\n"); exit (0);
1349 }
1350 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1351 printf ("i386-sequent-ptx1\n"); exit (0);
1352 }
1353 printf ("i386-sequent-ptx\n"); exit (0);
1354
1355 #endif
1356
1357 #if defined (vax)
1358 # if !defined (ultrix)
1359 # include <sys/param.h>
1360 # if defined (BSD)
1361 # if BSD == 43
1362 printf ("vax-dec-bsd4.3\n"); exit (0);
1363 # else
1364 # if BSD == 199006
1365 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1366 # else
1367 printf ("vax-dec-bsd\n"); exit (0);
1368 # endif
1369 # endif
1370 # else
1371 printf ("vax-dec-bsd\n"); exit (0);
1372 # endif
1373 # else
1374 printf ("vax-dec-ultrix\n"); exit (0);
1375 # endif
1376 #endif
1377
1378 #if defined (alliant) && defined (i860)
1379 printf ("i860-alliant-bsd\n"); exit (0);
1380 #endif
1381
1382 exit (1);
1383 }
1384 EOF
1385
1386 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1387
1388 # Apollos put the system type in the environment.
1389
1390 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
1391
1392 # Convex versions that predate uname can use getsysinfo(1)
1393
1394 if [ -x /usr/convex/getsysinfo ]
1395 then
1396 case `getsysinfo -f cpu_type` in
1397 c1*)
1398 echo c1-convex-bsd
1399 exit 0 ;;
1400 c2*)
1401 if getsysinfo -f scalar_acc
1402 then echo c32-convex-bsd
1403 else echo c2-convex-bsd
1404 fi
1405 exit 0 ;;
1406 c34*)
1407 echo c34-convex-bsd
1408 exit 0 ;;
1409 c38*)
1410 echo c38-convex-bsd
1411 exit 0 ;;
1412 c4*)
1413 echo c4-convex-bsd
1414 exit 0 ;;
1415 esac
1416 fi
1417
1418 cat >&2 <<EOF
1419 $0: unable to guess system type
1420
1421 This script, last modified $timestamp, has failed to recognize
1422 the operating system you are using. It is advised that you
1423 download the most up to date version of the config scripts from
1424
1425 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1426 and
1427 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1428
1429 If the version you run ($0) is already up to date, please
1430 send the following data and any information you think might be
1431 pertinent to <config-patches@gnu.org> in order to provide the needed
1432 information to handle your system.
1433
1434 config.guess timestamp = $timestamp
1435
1436 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1437 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1438 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1439 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1440
1441 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1442 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1443
1444 hostinfo = `(hostinfo) 2>/dev/null`
1445 /bin/universe = `(/bin/universe) 2>/dev/null`
1446 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1447 /bin/arch = `(/bin/arch) 2>/dev/null`
1448 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1449 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1450
1451 UNAME_MACHINE = ${UNAME_MACHINE}
1452 UNAME_RELEASE = ${UNAME_RELEASE}
1453 UNAME_SYSTEM = ${UNAME_SYSTEM}
1454 UNAME_VERSION = ${UNAME_VERSION}
1455 EOF
1456
1457 exit 1
1458
1459 # Local variables:
1460 # eval: (add-hook 'write-file-hooks 'time-stamp)
1461 # time-stamp-start: "timestamp='"
1462 # time-stamp-format: "%:y-%02m-%02d"
1463 # time-stamp-end: "'"
1464 # End:
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4
5 timestamp='2005-04-22'
6
7 # This file is (in principle) common to ALL GNU software.
8 # The presence of a machine in this file suggests that SOME GNU software
9 # can handle that machine. It does not imply ALL GNU software can.
10 #
11 # This file is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2 of the License, or
14 # (at your option) any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330,
24 # Boston, MA 02111-1307, USA.
25
26 # As a special exception to the GNU General Public License, if you
27 # distribute this file as part of a program that contains a
28 # configuration script generated by Autoconf, you may include it under
29 # the same distribution terms that you use for the rest of that program.
30
31 # Please send patches to <config-patches@gnu.org>. Submit a context
32 # diff and a properly formatted ChangeLog entry.
33 #
34 # Configuration subroutine to validate and canonicalize a configuration type.
35 # Supply the specified configuration type as an argument.
36 # If it is invalid, we print an error message on stderr and exit with code 1.
37 # Otherwise, we print the canonical config type on stdout and succeed.
38
39 # This file is supposed to be the same for all GNU packages
40 # and recognize all the CPU types, system types and aliases
41 # that are meaningful with *any* GNU software.
42 # Each package is responsible for reporting which valid configurations
43 # it does not support. The user should be able to distinguish
44 # a failure to support a valid configuration from a meaningless
45 # configuration.
46
47 # The goal of this file is to map all the various variations of a given
48 # machine specification into a single specification in the form:
49 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
50 # or in some cases, the newer four-part form:
51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
52 # It is wrong to echo any other type of specification.
53
54 me=`echo "$0" | sed -e 's,.*/,,'`
55
56 usage="\
57 Usage: $0 [OPTION] CPU-MFR-OPSYS
58 $0 [OPTION] ALIAS
59
60 Canonicalize a configuration name.
61
62 Operation modes:
63 -h, --help print this help, then exit
64 -t, --time-stamp print date of last modification, then exit
65 -v, --version print version number, then exit
66
67 Report bugs and patches to <config-patches@gnu.org>."
68
69 version="\
70 GNU config.sub ($timestamp)
71
72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
73 Free Software Foundation, Inc.
74
75 This is free software; see the source for copying conditions. There is NO
76 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
77
78 help="
79 Try \`$me --help' for more information."
80
81 # Parse command line
82 while test $# -gt 0 ; do
83 case $1 in
84 --time-stamp | --time* | -t )
85 echo "$timestamp" ; exit 0 ;;
86 --version | -v )
87 echo "$version" ; exit 0 ;;
88 --help | --h* | -h )
89 echo "$usage"; exit 0 ;;
90 -- ) # Stop option processing
91 shift; break ;;
92 - ) # Use stdin as input.
93 break ;;
94 -* )
95 echo "$me: invalid option $1$help"
96 exit 1 ;;
97
98 *local*)
99 # First pass through any local machine types.
100 echo $1
101 exit 0;;
102
103 * )
104 break ;;
105 esac
106 done
107
108 case $# in
109 0) echo "$me: missing argument$help" >&2
110 exit 1;;
111 1) ;;
112 *) echo "$me: too many arguments$help" >&2
113 exit 1;;
114 esac
115
116 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
117 # Here we must recognize all the valid KERNEL-OS combinations.
118 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119 case $maybe_os in
120 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
121 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 *)
126 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
127 if [ $basic_machine != $1 ]
128 then os=`echo $1 | sed 's/.*-/-/'`
129 else os=; fi
130 ;;
131 esac
132
133 ### Let's recognize common machines as not being operating systems so
134 ### that things like config.sub decstation-3100 work. We also
135 ### recognize some manufacturers as not being operating systems, so we
136 ### can provide default operating systems below.
137 case $os in
138 -sun*os*)
139 # Prevent following clause from handling this invalid input.
140 ;;
141 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
142 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
143 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
144 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147 -apple | -axis | -knuth | -cray)
148 os=
149 basic_machine=$1
150 ;;
151 -sim | -cisco | -oki | -wec | -winbond)
152 os=
153 basic_machine=$1
154 ;;
155 -scout)
156 ;;
157 -wrs)
158 os=-vxworks
159 basic_machine=$1
160 ;;
161 -chorusos*)
162 os=-chorusos
163 basic_machine=$1
164 ;;
165 -chorusrdb)
166 os=-chorusrdb
167 basic_machine=$1
168 ;;
169 -hiux*)
170 os=-hiuxwe2
171 ;;
172 -sco5)
173 os=-sco3.2v5
174 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
175 ;;
176 -sco4)
177 os=-sco3.2v4
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
180 -sco3.2.[4-9]*)
181 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183 ;;
184 -sco3.2v[4-9]*)
185 # Don't forget version if it is 3.2v4 or newer.
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;;
188 -sco*)
189 os=-sco3.2v2
190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191 ;;
192 -udk*)
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -isc)
196 os=-isc2.2
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -clix*)
200 basic_machine=clipper-intergraph
201 ;;
202 -isc*)
203 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 ;;
205 -lynx*)
206 os=-lynxos
207 ;;
208 -ptx*)
209 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
210 ;;
211 -windowsnt*)
212 os=`echo $os | sed -e 's/windowsnt/winnt/'`
213 ;;
214 -psos*)
215 os=-psos
216 ;;
217 -mint | -mint[0-9]*)
218 basic_machine=m68k-atari
219 os=-mint
220 ;;
221 esac
222
223 # Decode aliases for certain CPU-COMPANY combinations.
224 case $basic_machine in
225 # Recognize the basic CPU types without company name.
226 # Some are omitted here because they have special meanings below.
227 1750a | 580 \
228 | a29k \
229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231 | am33_2.0 \
232 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
233 | bfin \
234 | c4x | clipper \
235 | d10v | d30v | dlx | dsp16xx \
236 | fr30 | frv \
237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238 | i370 | i860 | i960 | ia64 \
239 | ip2k | iq2000 \
240 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
241 | mips | mipsbe | mipseb | mipsel | mipsle \
242 | mips16 \
243 | mips64 | mips64el \
244 | mips64vr | mips64vrel \
245 | mips64orion | mips64orionel \
246 | mips64vr4100 | mips64vr4100el \
247 | mips64vr4300 | mips64vr4300el \
248 | mips64vr5000 | mips64vr5000el \
249 | mipsisa32 | mipsisa32el \
250 | mipsisa32r2 | mipsisa32r2el \
251 | mipsisa64 | mipsisa64el \
252 | mipsisa64r2 | mipsisa64r2el \
253 | mipsisa64sb1 | mipsisa64sb1el \
254 | mipsisa64sr71k | mipsisa64sr71kel \
255 | mipstx39 | mipstx39el \
256 | mn10200 | mn10300 \
257 | msp430 \
258 | ns16k | ns32k \
259 | openrisc | or32 \
260 | pdp10 | pdp11 | pj | pjl \
261 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262 | pyramid \
263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
264 | sh64 | sh64le \
265 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
266 | sparcv8 | sparcv9 | sparcv9b \
267 | strongarm \
268 | tahoe | thumb | tic4x | tic80 | tron \
269 | v850 | v850e \
270 | we32k \
271 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
272 | z8k)
273 basic_machine=$basic_machine-unknown
274 ;;
275 m6811 | m68hc11 | m6812 | m68hc12)
276 # Motorola 68HC11/12.
277 basic_machine=$basic_machine-unknown
278 os=-none
279 ;;
280 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
281 ;;
282
283 # We use `pc' rather than `unknown'
284 # because (1) that's what they normally are, and
285 # (2) the word "unknown" tends to confuse beginning users.
286 i*86 | x86_64)
287 basic_machine=$basic_machine-pc
288 ;;
289 # Object if more than one company name word.
290 *-*-*)
291 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
292 exit 1
293 ;;
294 # Recognize the basic CPU types with company name.
295 580-* \
296 | a29k-* \
297 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
298 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
299 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
300 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
301 | avr-* \
302 | bfin-* | bs2000-* \
303 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
304 | clipper-* | craynv-* | cydra-* \
305 | d10v-* | d30v-* | dlx-* \
306 | elxsi-* \
307 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
308 | h8300-* | h8500-* \
309 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
310 | i*86-* | i860-* | i960-* | ia64-* \
311 | ip2k-* | iq2000-* \
312 | m32r-* | m32rle-* \
313 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
314 | m88110-* | m88k-* | maxq-* | mcore-* \
315 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
316 | mips16-* \
317 | mips64-* | mips64el-* \
318 | mips64vr-* | mips64vrel-* \
319 | mips64orion-* | mips64orionel-* \
320 | mips64vr4100-* | mips64vr4100el-* \
321 | mips64vr4300-* | mips64vr4300el-* \
322 | mips64vr5000-* | mips64vr5000el-* \
323 | mipsisa32-* | mipsisa32el-* \
324 | mipsisa32r2-* | mipsisa32r2el-* \
325 | mipsisa64-* | mipsisa64el-* \
326 | mipsisa64r2-* | mipsisa64r2el-* \
327 | mipsisa64sb1-* | mipsisa64sb1el-* \
328 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
329 | mipstx39-* | mipstx39el-* \
330 | mmix-* \
331 | msp430-* \
332 | none-* | np1-* | ns16k-* | ns32k-* \
333 | orion-* \
334 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
335 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
336 | pyramid-* \
337 | romp-* | rs6000-* \
338 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
339 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
340 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
341 | sparclite-* \
342 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
343 | tahoe-* | thumb-* \
344 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
345 | tron-* \
346 | v850-* | v850e-* | vax-* \
347 | we32k-* \
348 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
349 | xstormy16-* | xtensa-* \
350 | ymp-* \
351 | z8k-*)
352 ;;
353 # Recognize the various machine names and aliases which stand
354 # for a CPU type and a company and sometimes even an OS.
355 386bsd)
356 basic_machine=i386-unknown
357 os=-bsd
358 ;;
359 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
360 basic_machine=m68000-att
361 ;;
362 3b*)
363 basic_machine=we32k-att
364 ;;
365 a29khif)
366 basic_machine=a29k-amd
367 os=-udi
368 ;;
369 abacus)
370 basic_machine=abacus-unknown
371 ;;
372 adobe68k)
373 basic_machine=m68010-adobe
374 os=-scout
375 ;;
376 alliant | fx80)
377 basic_machine=fx80-alliant
378 ;;
379 altos | altos3068)
380 basic_machine=m68k-altos
381 ;;
382 am29k)
383 basic_machine=a29k-none
384 os=-bsd
385 ;;
386 amd64)
387 basic_machine=x86_64-pc
388 ;;
389 amd64-*)
390 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
391 ;;
392 amdahl)
393 basic_machine=580-amdahl
394 os=-sysv
395 ;;
396 amiga | amiga-*)
397 basic_machine=m68k-unknown
398 ;;
399 amigaos | amigados)
400 basic_machine=m68k-unknown
401 os=-amigaos
402 ;;
403 amigaunix | amix)
404 basic_machine=m68k-unknown
405 os=-sysv4
406 ;;
407 apollo68)
408 basic_machine=m68k-apollo
409 os=-sysv
410 ;;
411 apollo68bsd)
412 basic_machine=m68k-apollo
413 os=-bsd
414 ;;
415 aux)
416 basic_machine=m68k-apple
417 os=-aux
418 ;;
419 balance)
420 basic_machine=ns32k-sequent
421 os=-dynix
422 ;;
423 c90)
424 basic_machine=c90-cray
425 os=-unicos
426 ;;
427 convex-c1)
428 basic_machine=c1-convex
429 os=-bsd
430 ;;
431 convex-c2)
432 basic_machine=c2-convex
433 os=-bsd
434 ;;
435 convex-c32)
436 basic_machine=c32-convex
437 os=-bsd
438 ;;
439 convex-c34)
440 basic_machine=c34-convex
441 os=-bsd
442 ;;
443 convex-c38)
444 basic_machine=c38-convex
445 os=-bsd
446 ;;
447 cray | j90)
448 basic_machine=j90-cray
449 os=-unicos
450 ;;
451 craynv)
452 basic_machine=craynv-cray
453 os=-unicosmp
454 ;;
455 cr16c)
456 basic_machine=cr16c-unknown
457 os=-elf
458 ;;
459 crds | unos)
460 basic_machine=m68k-crds
461 ;;
462 crisv32 | crisv32-* | etraxfs*)
463 basic_machine=crisv32-axis
464 ;;
465 cris | cris-* | etrax*)
466 basic_machine=cris-axis
467 ;;
468 crx)
469 basic_machine=crx-unknown
470 os=-elf
471 ;;
472 da30 | da30-*)
473 basic_machine=m68k-da30
474 ;;
475 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
476 basic_machine=mips-dec
477 ;;
478 decsystem10* | dec10*)
479 basic_machine=pdp10-dec
480 os=-tops10
481 ;;
482 decsystem20* | dec20*)
483 basic_machine=pdp10-dec
484 os=-tops20
485 ;;
486 delta | 3300 | motorola-3300 | motorola-delta \
487 | 3300-motorola | delta-motorola)
488 basic_machine=m68k-motorola
489 ;;
490 delta88)
491 basic_machine=m88k-motorola
492 os=-sysv3
493 ;;
494 djgpp)
495 basic_machine=i586-pc
496 os=-msdosdjgpp
497 ;;
498 dpx20 | dpx20-*)
499 basic_machine=rs6000-bull
500 os=-bosx
501 ;;
502 dpx2* | dpx2*-bull)
503 basic_machine=m68k-bull
504 os=-sysv3
505 ;;
506 ebmon29k)
507 basic_machine=a29k-amd
508 os=-ebmon
509 ;;
510 elxsi)
511 basic_machine=elxsi-elxsi
512 os=-bsd
513 ;;
514 encore | umax | mmax)
515 basic_machine=ns32k-encore
516 ;;
517 es1800 | OSE68k | ose68k | ose | OSE)
518 basic_machine=m68k-ericsson
519 os=-ose
520 ;;
521 fx2800)
522 basic_machine=i860-alliant
523 ;;
524 genix)
525 basic_machine=ns32k-ns
526 ;;
527 gmicro)
528 basic_machine=tron-gmicro
529 os=-sysv
530 ;;
531 go32)
532 basic_machine=i386-pc
533 os=-go32
534 ;;
535 h3050r* | hiux*)
536 basic_machine=hppa1.1-hitachi
537 os=-hiuxwe2
538 ;;
539 h8300hms)
540 basic_machine=h8300-hitachi
541 os=-hms
542 ;;
543 h8300xray)
544 basic_machine=h8300-hitachi
545 os=-xray
546 ;;
547 h8500hms)
548 basic_machine=h8500-hitachi
549 os=-hms
550 ;;
551 harris)
552 basic_machine=m88k-harris
553 os=-sysv3
554 ;;
555 hp300-*)
556 basic_machine=m68k-hp
557 ;;
558 hp300bsd)
559 basic_machine=m68k-hp
560 os=-bsd
561 ;;
562 hp300hpux)
563 basic_machine=m68k-hp
564 os=-hpux
565 ;;
566 hp3k9[0-9][0-9] | hp9[0-9][0-9])
567 basic_machine=hppa1.0-hp
568 ;;
569 hp9k2[0-9][0-9] | hp9k31[0-9])
570 basic_machine=m68000-hp
571 ;;
572 hp9k3[2-9][0-9])
573 basic_machine=m68k-hp
574 ;;
575 hp9k6[0-9][0-9] | hp6[0-9][0-9])
576 basic_machine=hppa1.0-hp
577 ;;
578 hp9k7[0-79][0-9] | hp7[0-79][0-9])
579 basic_machine=hppa1.1-hp
580 ;;
581 hp9k78[0-9] | hp78[0-9])
582 # FIXME: really hppa2.0-hp
583 basic_machine=hppa1.1-hp
584 ;;
585 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
586 # FIXME: really hppa2.0-hp
587 basic_machine=hppa1.1-hp
588 ;;
589 hp9k8[0-9][13679] | hp8[0-9][13679])
590 basic_machine=hppa1.1-hp
591 ;;
592 hp9k8[0-9][0-9] | hp8[0-9][0-9])
593 basic_machine=hppa1.0-hp
594 ;;
595 hppa-next)
596 os=-nextstep3
597 ;;
598 hppaosf)
599 basic_machine=hppa1.1-hp
600 os=-osf
601 ;;
602 hppro)
603 basic_machine=hppa1.1-hp
604 os=-proelf
605 ;;
606 i370-ibm* | ibm*)
607 basic_machine=i370-ibm
608 ;;
609 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
610 i*86v32)
611 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
612 os=-sysv32
613 ;;
614 i*86v4*)
615 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
616 os=-sysv4
617 ;;
618 i*86v)
619 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
620 os=-sysv
621 ;;
622 i*86sol2)
623 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
624 os=-solaris2
625 ;;
626 i386mach)
627 basic_machine=i386-mach
628 os=-mach
629 ;;
630 i386-vsta | vsta)
631 basic_machine=i386-unknown
632 os=-vsta
633 ;;
634 iris | iris4d)
635 basic_machine=mips-sgi
636 case $os in
637 -irix*)
638 ;;
639 *)
640 os=-irix4
641 ;;
642 esac
643 ;;
644 isi68 | isi)
645 basic_machine=m68k-isi
646 os=-sysv
647 ;;
648 m88k-omron*)
649 basic_machine=m88k-omron
650 ;;
651 magnum | m3230)
652 basic_machine=mips-mips
653 os=-sysv
654 ;;
655 merlin)
656 basic_machine=ns32k-utek
657 os=-sysv
658 ;;
659 mingw32)
660 basic_machine=i386-pc
661 os=-mingw32
662 ;;
663 miniframe)
664 basic_machine=m68000-convergent
665 ;;
666 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
667 basic_machine=m68k-atari
668 os=-mint
669 ;;
670 mips3*-*)
671 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
672 ;;
673 mips3*)
674 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
675 ;;
676 monitor)
677 basic_machine=m68k-rom68k
678 os=-coff
679 ;;
680 morphos)
681 basic_machine=powerpc-unknown
682 os=-morphos
683 ;;
684 msdos)
685 basic_machine=i386-pc
686 os=-msdos
687 ;;
688 mvs)
689 basic_machine=i370-ibm
690 os=-mvs
691 ;;
692 ncr3000)
693 basic_machine=i486-ncr
694 os=-sysv4
695 ;;
696 netbsd386)
697 basic_machine=i386-unknown
698 os=-netbsd
699 ;;
700 netwinder)
701 basic_machine=armv4l-rebel
702 os=-linux
703 ;;
704 news | news700 | news800 | news900)
705 basic_machine=m68k-sony
706 os=-newsos
707 ;;
708 news1000)
709 basic_machine=m68030-sony
710 os=-newsos
711 ;;
712 news-3600 | risc-news)
713 basic_machine=mips-sony
714 os=-newsos
715 ;;
716 necv70)
717 basic_machine=v70-nec
718 os=-sysv
719 ;;
720 next | m*-next )
721 basic_machine=m68k-next
722 case $os in
723 -nextstep* )
724 ;;
725 -ns2*)
726 os=-nextstep2
727 ;;
728 *)
729 os=-nextstep3
730 ;;
731 esac
732 ;;
733 nh3000)
734 basic_machine=m68k-harris
735 os=-cxux
736 ;;
737 nh[45]000)
738 basic_machine=m88k-harris
739 os=-cxux
740 ;;
741 nindy960)
742 basic_machine=i960-intel
743 os=-nindy
744 ;;
745 mon960)
746 basic_machine=i960-intel
747 os=-mon960
748 ;;
749 nonstopux)
750 basic_machine=mips-compaq
751 os=-nonstopux
752 ;;
753 np1)
754 basic_machine=np1-gould
755 ;;
756 nsr-tandem)
757 basic_machine=nsr-tandem
758 ;;
759 op50n-* | op60c-*)
760 basic_machine=hppa1.1-oki
761 os=-proelf
762 ;;
763 or32 | or32-*)
764 basic_machine=or32-unknown
765 os=-coff
766 ;;
767 os400)
768 basic_machine=powerpc-ibm
769 os=-os400
770 ;;
771 OSE68000 | ose68000)
772 basic_machine=m68000-ericsson
773 os=-ose
774 ;;
775 os68k)
776 basic_machine=m68k-none
777 os=-os68k
778 ;;
779 pa-hitachi)
780 basic_machine=hppa1.1-hitachi
781 os=-hiuxwe2
782 ;;
783 paragon)
784 basic_machine=i860-intel
785 os=-osf
786 ;;
787 pbd)
788 basic_machine=sparc-tti
789 ;;
790 pbb)
791 basic_machine=m68k-tti
792 ;;
793 pc532 | pc532-*)
794 basic_machine=ns32k-pc532
795 ;;
796 pentium | p5 | k5 | k6 | nexgen | viac3)
797 basic_machine=i586-pc
798 ;;
799 pentiumpro | p6 | 6x86 | athlon | athlon_*)
800 basic_machine=i686-pc
801 ;;
802 pentiumii | pentium2 | pentiumiii | pentium3)
803 basic_machine=i686-pc
804 ;;
805 pentium4)
806 basic_machine=i786-pc
807 ;;
808 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
809 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
810 ;;
811 pentiumpro-* | p6-* | 6x86-* | athlon-*)
812 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
813 ;;
814 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
815 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
816 ;;
817 pentium4-*)
818 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
819 ;;
820 pn)
821 basic_machine=pn-gould
822 ;;
823 power) basic_machine=power-ibm
824 ;;
825 ppc) basic_machine=powerpc-unknown
826 ;;
827 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
828 ;;
829 ppcle | powerpclittle | ppc-le | powerpc-little)
830 basic_machine=powerpcle-unknown
831 ;;
832 ppcle-* | powerpclittle-*)
833 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
834 ;;
835 ppc64) basic_machine=powerpc64-unknown
836 ;;
837 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
838 ;;
839 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
840 basic_machine=powerpc64le-unknown
841 ;;
842 ppc64le-* | powerpc64little-*)
843 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
844 ;;
845 ps2)
846 basic_machine=i386-ibm
847 ;;
848 pw32)
849 basic_machine=i586-unknown
850 os=-pw32
851 ;;
852 rom68k)
853 basic_machine=m68k-rom68k
854 os=-coff
855 ;;
856 rm[46]00)
857 basic_machine=mips-siemens
858 ;;
859 rtpc | rtpc-*)
860 basic_machine=romp-ibm
861 ;;
862 s390 | s390-*)
863 basic_machine=s390-ibm
864 ;;
865 s390x | s390x-*)
866 basic_machine=s390x-ibm
867 ;;
868 sa29200)
869 basic_machine=a29k-amd
870 os=-udi
871 ;;
872 sb1)
873 basic_machine=mipsisa64sb1-unknown
874 ;;
875 sb1el)
876 basic_machine=mipsisa64sb1el-unknown
877 ;;
878 sei)
879 basic_machine=mips-sei
880 os=-seiux
881 ;;
882 sequent)
883 basic_machine=i386-sequent
884 ;;
885 sh)
886 basic_machine=sh-hitachi
887 os=-hms
888 ;;
889 sh64)
890 basic_machine=sh64-unknown
891 ;;
892 sparclite-wrs | simso-wrs)
893 basic_machine=sparclite-wrs
894 os=-vxworks
895 ;;
896 sps7)
897 basic_machine=m68k-bull
898 os=-sysv2
899 ;;
900 spur)
901 basic_machine=spur-unknown
902 ;;
903 st2000)
904 basic_machine=m68k-tandem
905 ;;
906 stratus)
907 basic_machine=i860-stratus
908 os=-sysv4
909 ;;
910 sun2)
911 basic_machine=m68000-sun
912 ;;
913 sun2os3)
914 basic_machine=m68000-sun
915 os=-sunos3
916 ;;
917 sun2os4)
918 basic_machine=m68000-sun
919 os=-sunos4
920 ;;
921 sun3os3)
922 basic_machine=m68k-sun
923 os=-sunos3
924 ;;
925 sun3os4)
926 basic_machine=m68k-sun
927 os=-sunos4
928 ;;
929 sun4os3)
930 basic_machine=sparc-sun
931 os=-sunos3
932 ;;
933 sun4os4)
934 basic_machine=sparc-sun
935 os=-sunos4
936 ;;
937 sun4sol2)
938 basic_machine=sparc-sun
939 os=-solaris2
940 ;;
941 sun3 | sun3-*)
942 basic_machine=m68k-sun
943 ;;
944 sun4)
945 basic_machine=sparc-sun
946 ;;
947 sun386 | sun386i | roadrunner)
948 basic_machine=i386-sun
949 ;;
950 sv1)
951 basic_machine=sv1-cray
952 os=-unicos
953 ;;
954 symmetry)
955 basic_machine=i386-sequent
956 os=-dynix
957 ;;
958 t3e)
959 basic_machine=alphaev5-cray
960 os=-unicos
961 ;;
962 t90)
963 basic_machine=t90-cray
964 os=-unicos
965 ;;
966 tic54x | c54x*)
967 basic_machine=tic54x-unknown
968 os=-coff
969 ;;
970 tic55x | c55x*)
971 basic_machine=tic55x-unknown
972 os=-coff
973 ;;
974 tic6x | c6x*)
975 basic_machine=tic6x-unknown
976 os=-coff
977 ;;
978 tx39)
979 basic_machine=mipstx39-unknown
980 ;;
981 tx39el)
982 basic_machine=mipstx39el-unknown
983 ;;
984 toad1)
985 basic_machine=pdp10-xkl
986 os=-tops20
987 ;;
988 tower | tower-32)
989 basic_machine=m68k-ncr
990 ;;
991 tpf)
992 basic_machine=s390x-ibm
993 os=-tpf
994 ;;
995 udi29k)
996 basic_machine=a29k-amd
997 os=-udi
998 ;;
999 ultra3)
1000 basic_machine=a29k-nyu
1001 os=-sym1
1002 ;;
1003 v810 | necv810)
1004 basic_machine=v810-nec
1005 os=-none
1006 ;;
1007 vaxv)
1008 basic_machine=vax-dec
1009 os=-sysv
1010 ;;
1011 vms)
1012 basic_machine=vax-dec
1013 os=-vms
1014 ;;
1015 vpp*|vx|vx-*)
1016 basic_machine=f301-fujitsu
1017 ;;
1018 vxworks960)
1019 basic_machine=i960-wrs
1020 os=-vxworks
1021 ;;
1022 vxworks68)
1023 basic_machine=m68k-wrs
1024 os=-vxworks
1025 ;;
1026 vxworks29k)
1027 basic_machine=a29k-wrs
1028 os=-vxworks
1029 ;;
1030 w65*)
1031 basic_machine=w65-wdc
1032 os=-none
1033 ;;
1034 w89k-*)
1035 basic_machine=hppa1.1-winbond
1036 os=-proelf
1037 ;;
1038 xbox)
1039 basic_machine=i686-pc
1040 os=-mingw32
1041 ;;
1042 xps | xps100)
1043 basic_machine=xps100-honeywell
1044 ;;
1045 ymp)
1046 basic_machine=ymp-cray
1047 os=-unicos
1048 ;;
1049 z8k-*-coff)
1050 basic_machine=z8k-unknown
1051 os=-sim
1052 ;;
1053 none)
1054 basic_machine=none-none
1055 os=-none
1056 ;;
1057
1058 # Here we handle the default manufacturer of certain CPU types. It is in
1059 # some cases the only manufacturer, in others, it is the most popular.
1060 w89k)
1061 basic_machine=hppa1.1-winbond
1062 ;;
1063 op50n)
1064 basic_machine=hppa1.1-oki
1065 ;;
1066 op60c)
1067 basic_machine=hppa1.1-oki
1068 ;;
1069 romp)
1070 basic_machine=romp-ibm
1071 ;;
1072 mmix)
1073 basic_machine=mmix-knuth
1074 ;;
1075 rs6000)
1076 basic_machine=rs6000-ibm
1077 ;;
1078 vax)
1079 basic_machine=vax-dec
1080 ;;
1081 pdp10)
1082 # there are many clones, so DEC is not a safe bet
1083 basic_machine=pdp10-unknown
1084 ;;
1085 pdp11)
1086 basic_machine=pdp11-dec
1087 ;;
1088 we32k)
1089 basic_machine=we32k-att
1090 ;;
1091 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1092 basic_machine=sh-unknown
1093 ;;
1094 sh64)
1095 basic_machine=sh64-unknown
1096 ;;
1097 sparc | sparcv8 | sparcv9 | sparcv9b)
1098 basic_machine=sparc-sun
1099 ;;
1100 cydra)
1101 basic_machine=cydra-cydrome
1102 ;;
1103 orion)
1104 basic_machine=orion-highlevel
1105 ;;
1106 orion105)
1107 basic_machine=clipper-highlevel
1108 ;;
1109 mac | mpw | mac-mpw)
1110 basic_machine=m68k-apple
1111 ;;
1112 pmac | pmac-mpw)
1113 basic_machine=powerpc-apple
1114 ;;
1115 *-unknown)
1116 # Make sure to match an already-canonicalized machine name.
1117 ;;
1118 *)
1119 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1120 exit 1
1121 ;;
1122 esac
1123
1124 # Here we canonicalize certain aliases for manufacturers.
1125 case $basic_machine in
1126 *-digital*)
1127 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1128 ;;
1129 *-commodore*)
1130 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1131 ;;
1132 *)
1133 ;;
1134 esac
1135
1136 # Decode manufacturer-specific aliases for certain operating systems.
1137
1138 if [ x"$os" != x"" ]
1139 then
1140 case $os in
1141 # First match some system type aliases
1142 # that might get confused with valid system types.
1143 # -solaris* is a basic system type, with this one exception.
1144 -solaris1 | -solaris1.*)
1145 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1146 ;;
1147 -solaris)
1148 os=-solaris2
1149 ;;
1150 -svr4*)
1151 os=-sysv4
1152 ;;
1153 -unixware*)
1154 os=-sysv4.2uw
1155 ;;
1156 -gnu/linux*)
1157 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1158 ;;
1159 # First accept the basic system types.
1160 # The portable systems comes first.
1161 # Each alternative MUST END IN A *, to match a version number.
1162 # -sysv* is not here because it comes later, after sysvr4.
1163 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1164 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1165 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1166 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1167 | -aos* \
1168 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1169 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1170 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1171 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1172 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1173 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1174 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1175 | -chorusos* | -chorusrdb* \
1176 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1177 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1178 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1179 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1180 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1181 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1182 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1183 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1184 # Remember, each alternative MUST END IN *, to match a version number.
1185 ;;
1186 -qnx*)
1187 case $basic_machine in
1188 x86-* | i*86-*)
1189 ;;
1190 *)
1191 os=-nto$os
1192 ;;
1193 esac
1194 ;;
1195 -nto-qnx*)
1196 ;;
1197 -nto*)
1198 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1199 ;;
1200 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1201 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1202 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1203 ;;
1204 -mac*)
1205 os=`echo $os | sed -e 's|mac|macos|'`
1206 ;;
1207 -linux-dietlibc)
1208 os=-linux-dietlibc
1209 ;;
1210 -linux*)
1211 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1212 ;;
1213 -sunos5*)
1214 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1215 ;;
1216 -sunos6*)
1217 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1218 ;;
1219 -opened*)
1220 os=-openedition
1221 ;;
1222 -os400*)
1223 os=-os400
1224 ;;
1225 -wince*)
1226 os=-wince
1227 ;;
1228 -osfrose*)
1229 os=-osfrose
1230 ;;
1231 -osf*)
1232 os=-osf
1233 ;;
1234 -utek*)
1235 os=-bsd
1236 ;;
1237 -dynix*)
1238 os=-bsd
1239 ;;
1240 -acis*)
1241 os=-aos
1242 ;;
1243 -atheos*)
1244 os=-atheos
1245 ;;
1246 -syllable*)
1247 os=-syllable
1248 ;;
1249 -386bsd)
1250 os=-bsd
1251 ;;
1252 -ctix* | -uts*)
1253 os=-sysv
1254 ;;
1255 -nova*)
1256 os=-rtmk-nova
1257 ;;
1258 -ns2 )
1259 os=-nextstep2
1260 ;;
1261 -nsk*)
1262 os=-nsk
1263 ;;
1264 # Preserve the version number of sinix5.
1265 -sinix5.*)
1266 os=`echo $os | sed -e 's|sinix|sysv|'`
1267 ;;
1268 -sinix*)
1269 os=-sysv4
1270 ;;
1271 -tpf*)
1272 os=-tpf
1273 ;;
1274 -triton*)
1275 os=-sysv3
1276 ;;
1277 -oss*)
1278 os=-sysv3
1279 ;;
1280 -svr4)
1281 os=-sysv4
1282 ;;
1283 -svr3)
1284 os=-sysv3
1285 ;;
1286 -sysvr4)
1287 os=-sysv4
1288 ;;
1289 # This must come after -sysvr4.
1290 -sysv*)
1291 ;;
1292 -ose*)
1293 os=-ose
1294 ;;
1295 -es1800*)
1296 os=-ose
1297 ;;
1298 -xenix)
1299 os=-xenix
1300 ;;
1301 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1302 os=-mint
1303 ;;
1304 -aros*)
1305 os=-aros
1306 ;;
1307 -kaos*)
1308 os=-kaos
1309 ;;
1310 -zvmoe)
1311 os=-zvmoe
1312 ;;
1313 -none)
1314 ;;
1315 *)
1316 # Get rid of the `-' at the beginning of $os.
1317 os=`echo $os | sed 's/[^-]*-//'`
1318 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1319 exit 1
1320 ;;
1321 esac
1322 else
1323
1324 # Here we handle the default operating systems that come with various machines.
1325 # The value should be what the vendor currently ships out the door with their
1326 # machine or put another way, the most popular os provided with the machine.
1327
1328 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1329 # "-sun"), then you have to tell the case statement up towards the top
1330 # that MANUFACTURER isn't an operating system. Otherwise, code above
1331 # will signal an error saying that MANUFACTURER isn't an operating
1332 # system, and we'll never get to this point.
1333
1334 case $basic_machine in
1335 *-acorn)
1336 os=-riscix1.2
1337 ;;
1338 arm*-rebel)
1339 os=-linux
1340 ;;
1341 arm*-semi)
1342 os=-aout
1343 ;;
1344 c4x-* | tic4x-*)
1345 os=-coff
1346 ;;
1347 # This must come before the *-dec entry.
1348 pdp10-*)
1349 os=-tops20
1350 ;;
1351 pdp11-*)
1352 os=-none
1353 ;;
1354 *-dec | vax-*)
1355 os=-ultrix4.2
1356 ;;
1357 m68*-apollo)
1358 os=-domain
1359 ;;
1360 i386-sun)
1361 os=-sunos4.0.2
1362 ;;
1363 m68000-sun)
1364 os=-sunos3
1365 # This also exists in the configure program, but was not the
1366 # default.
1367 # os=-sunos4
1368 ;;
1369 m68*-cisco)
1370 os=-aout
1371 ;;
1372 mips*-cisco)
1373 os=-elf
1374 ;;
1375 mips*-*)
1376 os=-elf
1377 ;;
1378 or32-*)
1379 os=-coff
1380 ;;
1381 *-tti) # must be before sparc entry or we get the wrong os.
1382 os=-sysv3
1383 ;;
1384 sparc-* | *-sun)
1385 os=-sunos4.1.1
1386 ;;
1387 *-be)
1388 os=-beos
1389 ;;
1390 *-ibm)
1391 os=-aix
1392 ;;
1393 *-knuth)
1394 os=-mmixware
1395 ;;
1396 *-wec)
1397 os=-proelf
1398 ;;
1399 *-winbond)
1400 os=-proelf
1401 ;;
1402 *-oki)
1403 os=-proelf
1404 ;;
1405 *-hp)
1406 os=-hpux
1407 ;;
1408 *-hitachi)
1409 os=-hiux
1410 ;;
1411 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1412 os=-sysv
1413 ;;
1414 *-cbm)
1415 os=-amigaos
1416 ;;
1417 *-dg)
1418 os=-dgux
1419 ;;
1420 *-dolphin)
1421 os=-sysv3
1422 ;;
1423 m68k-ccur)
1424 os=-rtu
1425 ;;
1426 m88k-omron*)
1427 os=-luna
1428 ;;
1429 *-next )
1430 os=-nextstep
1431 ;;
1432 *-sequent)
1433 os=-ptx
1434 ;;
1435 *-crds)
1436 os=-unos
1437 ;;
1438 *-ns)
1439 os=-genix
1440 ;;
1441 i370-*)
1442 os=-mvs
1443 ;;
1444 *-next)
1445 os=-nextstep3
1446 ;;
1447 *-gould)
1448 os=-sysv
1449 ;;
1450 *-highlevel)
1451 os=-bsd
1452 ;;
1453 *-encore)
1454 os=-bsd
1455 ;;
1456 *-sgi)
1457 os=-irix
1458 ;;
1459 *-siemens)
1460 os=-sysv4
1461 ;;
1462 *-masscomp)
1463 os=-rtu
1464 ;;
1465 f30[01]-fujitsu | f700-fujitsu)
1466 os=-uxpv
1467 ;;
1468 *-rom68k)
1469 os=-coff
1470 ;;
1471 *-*bug)
1472 os=-coff
1473 ;;
1474 *-apple)
1475 os=-macos
1476 ;;
1477 *-atari*)
1478 os=-mint
1479 ;;
1480 *)
1481 os=-none
1482 ;;
1483 esac
1484 fi
1485
1486 # Here we handle the case where we know the os, and the CPU type, but not the
1487 # manufacturer. We pick the logical manufacturer.
1488 vendor=unknown
1489 case $basic_machine in
1490 *-unknown)
1491 case $os in
1492 -riscix*)
1493 vendor=acorn
1494 ;;
1495 -sunos*)
1496 vendor=sun
1497 ;;
1498 -aix*)
1499 vendor=ibm
1500 ;;
1501 -beos*)
1502 vendor=be
1503 ;;
1504 -hpux*)
1505 vendor=hp
1506 ;;
1507 -mpeix*)
1508 vendor=hp
1509 ;;
1510 -hiux*)
1511 vendor=hitachi
1512 ;;
1513 -unos*)
1514 vendor=crds
1515 ;;
1516 -dgux*)
1517 vendor=dg
1518 ;;
1519 -luna*)
1520 vendor=omron
1521 ;;
1522 -genix*)
1523 vendor=ns
1524 ;;
1525 -mvs* | -opened*)
1526 vendor=ibm
1527 ;;
1528 -os400*)
1529 vendor=ibm
1530 ;;
1531 -ptx*)
1532 vendor=sequent
1533 ;;
1534 -tpf*)
1535 vendor=ibm
1536 ;;
1537 -vxsim* | -vxworks* | -windiss*)
1538 vendor=wrs
1539 ;;
1540 -aux*)
1541 vendor=apple
1542 ;;
1543 -hms*)
1544 vendor=hitachi
1545 ;;
1546 -mpw* | -macos*)
1547 vendor=apple
1548 ;;
1549 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1550 vendor=atari
1551 ;;
1552 -vos*)
1553 vendor=stratus
1554 ;;
1555 esac
1556 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1557 ;;
1558 esac
1559
1560 echo $basic_machine$os
1561 exit 0
1562
1563 # Local variables:
1564 # eval: (add-hook 'write-file-hooks 'time-stamp)
1565 # time-stamp-start: "timestamp='"
1566 # time-stamp-format: "%:y-%02m-%02d"
1567 # time-stamp-end: "'"
1568 # End:
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59.
3 #
4 # Copyright (C) 2003 Free Software Foundation, Inc.
5 # This configure script is free software; the Free Software Foundation
6 # gives unlimited permission to copy, distribute and modify it.
7 ## --------------------- ##
8 ## M4sh Initialization. ##
9 ## --------------------- ##
10
11 # Be Bourne compatible
12 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13 emulate sh
14 NULLCMD=:
15 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16 # is contrary to our usage. Disable this feature.
17 alias -g '${1+"$@"}'='"$@"'
18 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19 set -o posix
20 fi
21 DUALCASE=1; export DUALCASE # for MKS sh
22
23 # Support unset when possible.
24 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
28 fi
29
30
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
36
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
42 do
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
47 fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conf$$.sh
88 echo "exit 0" >>conf$$.sh
89 chmod +x conf$$.sh
90 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
94 fi
95 rm -f conf$$.sh
96 fi
97
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
110 do
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
115
116 ;;
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
122 fi
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
126 fi
127 case $CONFIG_SHELL in
128 '')
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 do
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
136 /*)
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
152 ;;
153 esac
154
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
164 sed '
165 N
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
172 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
176
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
181 # Exit status is that of the last command.
182 exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194 as_expr=expr
195 else
196 as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
206 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
209 fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211 as_ln_s=ln
212 else
213 as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 if mkdir -p . 2>/dev/null; then
218 as_mkdir_p=:
219 else
220 test -d ./-p && rmdir ./-p
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243
244 # Check that we are running under the correct shell.
245 SHELL=${CONFIG_SHELL-/bin/sh}
246
247 case X$ECHO in
248 X*--fallback-echo)
249 # Remove one level of quotation (which was required for Make).
250 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251 ;;
252 esac
253
254 echo=${ECHO-echo}
255 if test "X$1" = X--no-reexec; then
256 # Discard the --no-reexec flag, and continue.
257 shift
258 elif test "X$1" = X--fallback-echo; then
259 # Avoid inline document here, it may be left over
260 :
261 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262 # Yippee, $echo works!
263 :
264 else
265 # Restart under the correct shell.
266 exec $SHELL "$0" --no-reexec ${1+"$@"}
267 fi
268
269 if test "X$1" = X--fallback-echo; then
270 # used as fallback echo
271 shift
272 cat <<EOF
273 $*
274 EOF
275 exit 0
276 fi
277
278 # The HP-UX ksh and POSIX shell print the target directory to stdout
279 # if CDPATH is set.
280 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281
282 if test -z "$ECHO"; then
283 if test "X${echo_test_string+set}" != Xset; then
284 # find a string as large as possible, as long as the shell can cope with it
285 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288 echo_test_string="`eval $cmd`" &&
289 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 echo="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$echo" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 echo='print -r'
327 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 echo='printf %s\n'
338 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 echo="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 echo=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 ECHO=$echo
386 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 tagnames=${tagnames+${tagnames},}CXX
394
395 tagnames=${tagnames+${tagnames},}F77
396
397 # Name of the host.
398 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399 # so uname gets run too.
400 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401
402 exec 6>&1
403
404 #
405 # Initializations.
406 #
407 ac_default_prefix=/usr/local
408 ac_config_libobj_dir=.
409 cross_compiling=no
410 subdirs=
411 MFLAGS=
412 MAKEFLAGS=
413 SHELL=${CONFIG_SHELL-/bin/sh}
414
415 # Maximum number of lines to put in a shell here document.
416 # This variable seems obsolete. It should probably be removed, and
417 # only ac_max_sed_lines should be used.
418 : ${ac_max_here_lines=38}
419
420 # Identity of this package.
421 PACKAGE_NAME=
422 PACKAGE_TARNAME=
423 PACKAGE_VERSION=
424 PACKAGE_STRING=
425 PACKAGE_BUGREPORT=
426
427 ac_unique_file="src/hdate.h"
428 # Factoring default headers for most tests.
429 ac_includes_default="\
430 #include <stdio.h>
431 #if HAVE_SYS_TYPES_H
432 # include <sys/types.h>
433 #endif
434 #if HAVE_SYS_STAT_H
435 # include <sys/stat.h>
436 #endif
437 #if STDC_HEADERS
438 # include <stdlib.h>
439 # include <stddef.h>
440 #else
441 # if HAVE_STDLIB_H
442 # include <stdlib.h>
443 # endif
444 #endif
445 #if HAVE_STRING_H
446 # if !STDC_HEADERS && HAVE_MEMORY_H
447 # include <memory.h>
448 # endif
449 # include <string.h>
450 #endif
451 #if HAVE_STRINGS_H
452 # include <strings.h>
453 #endif
454 #if HAVE_INTTYPES_H
455 # include <inttypes.h>
456 #else
457 # if HAVE_STDINT_H
458 # include <stdint.h>
459 # endif
460 #endif
461 #if HAVE_UNISTD_H
462 # include <unistd.h>
463 #endif"
464
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG have_swig have_pascal PA_MODULES_PATH WITH_PASCAL_TRUE WITH_PASCAL_FALSE have_python PY_CFLAGS PY_MODULES_PATH WITH_PYTHON_TRUE WITH_PYTHON_FALSE have_perl PE_CFLAGS PE_MODULES_PATH WITH_PERL_TRUE WITH_PERL_FALSE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB WITH_EXAMPLES_TRUE WITH_EXAMPLES_FALSE WITH_HCAL_TRUE WITH_HCAL_FALSE LIBOBJS LTLIBOBJS'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
487
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518 # Accept the important Cygnus configure options, so we can diagnose typos.
519
520 case $ac_option in
521
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
523 ac_prev=bindir ;;
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525 bindir=$ac_optarg ;;
526
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
531
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
538
539 --config-cache | -C)
540 cache_file=config.cache ;;
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir=$ac_optarg ;;
547
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
556
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564 case $ac_option in
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_$ac_feature='$ac_optarg'" ;;
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
583 -help | --help | --hel | --he | -h)
584 ac_init_help=long ;;
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
589
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
594
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
601
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
603 ac_prev=infodir ;;
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
606
607 -libdir | --libdir | --libdi | --libd)
608 ac_prev=libdir ;;
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
610 libdir=$ac_optarg ;;
611
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
618
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
627
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629 ac_prev=mandir ;;
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 mandir=$ac_optarg ;;
632
633 -nfp | --nfp | --nf)
634 # Obsolete; use --without-fp.
635 with_fp=no ;;
636
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
639 no_create=yes ;;
640
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643 no_recursion=yes ;;
644
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
653
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655 ac_prev=prefix ;;
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657 prefix=$ac_optarg ;;
658
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
665
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
672
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
689
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
692 silent=yes ;;
693
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695 ac_prev=sbindir ;;
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697 | --sbi=* | --sb=*)
698 sbindir=$ac_optarg ;;
699
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
703 | --sha | --sh)
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708 | --sha=* | --sh=*)
709 sharedstatedir=$ac_optarg ;;
710
711 -site | --site | --sit)
712 ac_prev=site ;;
713 -site=* | --site=* | --sit=*)
714 site=$ac_optarg ;;
715
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717 ac_prev=srcdir ;;
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719 srcdir=$ac_optarg ;;
720
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
727
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
732
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
734 verbose=yes ;;
735
736 -version | --version | --versio | --versi | --vers | -V)
737 ac_init_version=: ;;
738
739 -with-* | --with-*)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
746 case $ac_option in
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748 *) ac_optarg=yes ;;
749 esac
750 eval "with_$ac_package='$ac_optarg'" ;;
751
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
760
761 --x)
762 # Obsolete; use --with-x.
763 with_x=yes ;;
764
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
771
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
778
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
782 ;;
783
784 *=*)
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
792 export $ac_envvar ;;
793
794 *)
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 ;;
801
802 esac
803 done
804
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
814 eval ac_val=$`echo $ac_var`
815 case $ac_val in
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
819 esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
825 do
826 eval ac_val=$`echo $ac_var`
827 case $ac_val in
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
831 esac
832 done
833
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
848 cross_compiling=yes
849 fi
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
873 s/.*/./; q'`
874 srcdir=$ac_confdir
875 if test ! -r $srcdir/$ac_unique_file; then
876 srcdir=..
877 fi
878 else
879 ac_srcdir_defaulted=no
880 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
885 else
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
888 fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
946
947 #
948 # Report the --help message.
949 #
950 if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
953 cat <<_ACEOF
954 \`configure' configures this package to adapt to many kinds of systems.
955
956 Usage: $0 [OPTION]... [VAR=VALUE]...
957
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
960
961 Defaults for the options are specified in brackets.
962
963 Configuration:
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973
974 _ACEOF
975
976 cat <<_ACEOF
977 Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
979 [$ac_default_prefix]
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
981 [PREFIX]
982
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
987
988 For better control, use the options below.
989
990 Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1003 _ACEOF
1004
1005 cat <<\_ACEOF
1006
1007 Program names:
1008 --program-prefix=PREFIX prepend PREFIX to installed program names
1009 --program-suffix=SUFFIX append SUFFIX to installed program names
1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1011
1012 System types:
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 _ACEOF
1016 fi
1017
1018 if test -n "$ac_init_help"; then
1019
1020 cat <<\_ACEOF
1021
1022 Optional Features:
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025 --enable-maintainer-mode enable make rules and dependencies not useful
1026 (and sometimes confusing) to the casual installer
1027 --disable-dependency-tracking Speeds up one-time builds
1028 --enable-dependency-tracking Do not reject slow dependency extractors
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1036 --enable-pascal build pascal binding default=no
1037 --enable-python build python binding default=no
1038 --enable-perl build perl binding default=no
1039 --disable-nls do not use Native Language Support
1040 --disable-rpath do not hardcode runtime library paths
1041 --enable-examples build examples default=no
1042 --disable-hcal build hcal/hdate default=yes
1043
1044 Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
1052 --with-python-sitelib-dir=PATH path to python site lib
1053 --with-perl-sitelib-dir=PATH path to perl site lib
1054 --with-gnu-ld assume the C compiler uses GNU ld default=no
1055 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1056 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1057 --with-included-gettext use the GNU gettext library included here
1058 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1059 --without-libintl-prefix don't search for libintl in includedir and libdir
1060
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1068 CPP C preprocessor
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 _ACEOF
1079 fi
1080
1081 if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1083 ac_popdir=`pwd`
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1086 ac_builddir=.
1087
1088 if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 else
1093 ac_dir_suffix= ac_top_builddir=
1094 fi
1095
1096 case $srcdir in
1097 .) # No --srcdir option. We are building in place.
1098 ac_srcdir=.
1099 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=.
1101 else
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 fi ;;
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1107 *) # Relative path.
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 esac
1111
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1114 case `pwd` in
1115 .) ac_abs_builddir="$ac_dir";;
1116 *)
1117 case "$ac_dir" in
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1134 *)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 esac;;
1140 esac
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 esac;;
1149 esac
1150
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
1160 test -f $ac_srcdir/configure.in; then
1161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd "$ac_popdir"
1167 done
1168 fi
1169
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1172 cat <<\_ACEOF
1173
1174 Copyright (C) 2003 Free Software Foundation, Inc.
1175 This configure script is free software; the Free Software Foundation
1176 gives unlimited permission to copy, distribute and modify it.
1177 _ACEOF
1178 exit 0
1179 fi
1180 exec 5>config.log
1181 cat >&5 <<_ACEOF
1182 This file contains any messages produced by compilers while
1183 running configure, to aid debugging if configure makes a mistake.
1184
1185 It was created by $as_me, which was
1186 generated by GNU Autoconf 2.59. Invocation command line was
1187
1188 $ $0 $@
1189
1190 _ACEOF
1191 {
1192 cat <<_ASUNAME
1193 ## --------- ##
1194 ## Platform. ##
1195 ## --------- ##
1196
1197 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1198 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1199 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1200 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1201 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1202
1203 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1204 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1205
1206 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1207 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1208 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1209 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1210 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1211 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1212 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213
1214 _ASUNAME
1215
1216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 for as_dir in $PATH
1218 do
1219 IFS=$as_save_IFS
1220 test -z "$as_dir" && as_dir=.
1221 echo "PATH: $as_dir"
1222 done
1223
1224 } >&5
1225
1226 cat >&5 <<_ACEOF
1227
1228
1229 ## ----------- ##
1230 ## Core tests. ##
1231 ## ----------- ##
1232
1233 _ACEOF
1234
1235
1236 # Keep a trace of the command line.
1237 # Strip out --no-create and --no-recursion so they do not pile up.
1238 # Strip out --silent because we don't want to record it for future runs.
1239 # Also quote any args containing shell meta-characters.
1240 # Make two passes to allow for proper duplicate-argument suppression.
1241 ac_configure_args=
1242 ac_configure_args0=
1243 ac_configure_args1=
1244 ac_sep=
1245 ac_must_keep_next=false
1246 for ac_pass in 1 2
1247 do
1248 for ac_arg
1249 do
1250 case $ac_arg in
1251 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1253 | -silent | --silent | --silen | --sile | --sil)
1254 continue ;;
1255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 esac
1258 case $ac_pass in
1259 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1260 2)
1261 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1262 if test $ac_must_keep_next = true; then
1263 ac_must_keep_next=false # Got value, back to normal.
1264 else
1265 case $ac_arg in
1266 *=* | --config-cache | -C | -disable-* | --disable-* \
1267 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1268 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1269 | -with-* | --with-* | -without-* | --without-* | --x)
1270 case "$ac_configure_args0 " in
1271 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1272 esac
1273 ;;
1274 -* ) ac_must_keep_next=true ;;
1275 esac
1276 fi
1277 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1278 # Get rid of the leading space.
1279 ac_sep=" "
1280 ;;
1281 esac
1282 done
1283 done
1284 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1285 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1286
1287 # When interrupted or exit'd, cleanup temporary files, and complete
1288 # config.log. We remove comments because anyway the quotes in there
1289 # would cause problems or look ugly.
1290 # WARNING: Be sure not to use single quotes in there, as some shells,
1291 # such as our DU 5.0 friend, will then `close' the trap.
1292 trap 'exit_status=$?
1293 # Save into config.log some information that might help in debugging.
1294 {
1295 echo
1296
1297 cat <<\_ASBOX
1298 ## ---------------- ##
1299 ## Cache variables. ##
1300 ## ---------------- ##
1301 _ASBOX
1302 echo
1303 # The following way of writing the cache mishandles newlines in values,
1304 {
1305 (set) 2>&1 |
1306 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1307 *ac_space=\ *)
1308 sed -n \
1309 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 ;;
1312 *)
1313 sed -n \
1314 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1315 ;;
1316 esac;
1317 }
1318 echo
1319
1320 cat <<\_ASBOX
1321 ## ----------------- ##
1322 ## Output variables. ##
1323 ## ----------------- ##
1324 _ASBOX
1325 echo
1326 for ac_var in $ac_subst_vars
1327 do
1328 eval ac_val=$`echo $ac_var`
1329 echo "$ac_var='"'"'$ac_val'"'"'"
1330 done | sort
1331 echo
1332
1333 if test -n "$ac_subst_files"; then
1334 cat <<\_ASBOX
1335 ## ------------- ##
1336 ## Output files. ##
1337 ## ------------- ##
1338 _ASBOX
1339 echo
1340 for ac_var in $ac_subst_files
1341 do
1342 eval ac_val=$`echo $ac_var`
1343 echo "$ac_var='"'"'$ac_val'"'"'"
1344 done | sort
1345 echo
1346 fi
1347
1348 if test -s confdefs.h; then
1349 cat <<\_ASBOX
1350 ## ----------- ##
1351 ## confdefs.h. ##
1352 ## ----------- ##
1353 _ASBOX
1354 echo
1355 sed "/^$/d" confdefs.h | sort
1356 echo
1357 fi
1358 test "$ac_signal" != 0 &&
1359 echo "$as_me: caught signal $ac_signal"
1360 echo "$as_me: exit $exit_status"
1361 } >&5
1362 rm -f core *.core &&
1363 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1364 exit $exit_status
1365 ' 0
1366 for ac_signal in 1 2 13 15; do
1367 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 done
1369 ac_signal=0
1370
1371 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1372 rm -rf conftest* confdefs.h
1373 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1374 echo >confdefs.h
1375
1376 # Predefined preprocessor variables.
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 _ACEOF
1401
1402
1403 # Let the site file select an alternate cache file if it wants to.
1404 # Prefer explicitly selected file to automatically selected ones.
1405 if test -z "$CONFIG_SITE"; then
1406 if test "x$prefix" != xNONE; then
1407 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1408 else
1409 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1410 fi
1411 fi
1412 for ac_site_file in $CONFIG_SITE; do
1413 if test -r "$ac_site_file"; then
1414 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1415 echo "$as_me: loading site script $ac_site_file" >&6;}
1416 sed 's/^/| /' "$ac_site_file" >&5
1417 . "$ac_site_file"
1418 fi
1419 done
1420
1421 if test -r "$cache_file"; then
1422 # Some versions of bash will fail to source /dev/null (special
1423 # files actually), so we avoid doing that.
1424 if test -f "$cache_file"; then
1425 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1426 echo "$as_me: loading cache $cache_file" >&6;}
1427 case $cache_file in
1428 [\\/]* | ?:[\\/]* ) . $cache_file;;
1429 *) . ./$cache_file;;
1430 esac
1431 fi
1432 else
1433 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1434 echo "$as_me: creating cache $cache_file" >&6;}
1435 >$cache_file
1436 fi
1437
1438 # Check that the precious variables saved in the cache have kept the same
1439 # value.
1440 ac_cache_corrupted=false
1441 for ac_var in `(set) 2>&1 |
1442 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1443 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1444 eval ac_new_set=\$ac_env_${ac_var}_set
1445 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1446 eval ac_new_val="\$ac_env_${ac_var}_value"
1447 case $ac_old_set,$ac_new_set in
1448 set,)
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1452 ,set)
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1456 ,);;
1457 *)
1458 if test "x$ac_old_val" != "x$ac_new_val"; then
1459 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1460 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1461 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1462 echo "$as_me: former value: $ac_old_val" >&2;}
1463 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1464 echo "$as_me: current value: $ac_new_val" >&2;}
1465 ac_cache_corrupted=:
1466 fi;;
1467 esac
1468 # Pass precious variables to config.status.
1469 if test "$ac_new_set" = set; then
1470 case $ac_new_val in
1471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1472 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1473 *) ac_arg=$ac_var=$ac_new_val ;;
1474 esac
1475 case " $ac_configure_args " in
1476 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1477 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 esac
1479 fi
1480 done
1481 if $ac_cache_corrupted; then
1482 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1483 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1484 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1485 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1486 { (exit 1); exit 1; }; }
1487 fi
1488
1489 ac_ext=c
1490 ac_cpp='$CPP $CPPFLAGS'
1491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514 PACKAGE=libhdate
1515 LIBHDATE_MAJOR_VERSION=1
1516 LIBHDATE_MINOR_VERSION=3
1517 LIBHDATE_MICRO_VERSION=0
1518
1519 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
1520 VERSION_INFO=$LIBHDATE_MAJOR_VERSION:$LIBHDATE_MINOR_VERSION:$LIBHDATE_MICRO_VERSION
1521
1522
1523
1524 am__api_version="1.7"
1525 ac_aux_dir=
1526 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1527 if test -f $ac_dir/install-sh; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/install-sh -c"
1530 break
1531 elif test -f $ac_dir/install.sh; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/install.sh -c"
1534 break
1535 elif test -f $ac_dir/shtool; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/shtool install -c"
1538 break
1539 fi
1540 done
1541 if test -z "$ac_aux_dir"; then
1542 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1543 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1544 { (exit 1); exit 1; }; }
1545 fi
1546 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1547 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1548 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1549
1550 # Find a good install program. We prefer a C program (faster),
1551 # so one script is as good as another. But avoid the broken or
1552 # incompatible versions:
1553 # SysV /etc/install, /usr/sbin/install
1554 # SunOS /usr/etc/install
1555 # IRIX /sbin/install
1556 # AIX /bin/install
1557 # AmigaOS /C/install, which installs bootblocks on floppy discs
1558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1561 # OS/2's system install, which has a completely different semantic
1562 # ./install, which can be erroneously created by make from ./install.sh.
1563 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1564 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1565 if test -z "$INSTALL"; then
1566 if test "${ac_cv_path_install+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1571 do
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 # Account for people who put trailing slashes in PATH elements.
1575 case $as_dir/ in
1576 ./ | .// | /cC/* | \
1577 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1578 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1579 /usr/ucb/* ) ;;
1580 *)
1581 # OSF1 and SCO ODT 3.0 have their own names for install.
1582 # Don't use installbsd from OSF since it installs stuff as root
1583 # by default.
1584 for ac_prog in ginstall scoinst install; do
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1587 if test $ac_prog = install &&
1588 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589 # AIX install. It has an incompatible calling convention.
1590 :
1591 elif test $ac_prog = install &&
1592 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1593 # program-specific install script used by HP pwplus--don't use.
1594 :
1595 else
1596 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1597 break 3
1598 fi
1599 fi
1600 done
1601 done
1602 ;;
1603 esac
1604 done
1605
1606
1607 fi
1608 if test "${ac_cv_path_install+set}" = set; then
1609 INSTALL=$ac_cv_path_install
1610 else
1611 # As a last resort, use the slow shell script. We don't cache a
1612 # path for INSTALL within a source directory, because that will
1613 # break other packages using the cache if that directory is
1614 # removed, or if the path is relative.
1615 INSTALL=$ac_install_sh
1616 fi
1617 fi
1618 echo "$as_me:$LINENO: result: $INSTALL" >&5
1619 echo "${ECHO_T}$INSTALL" >&6
1620
1621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1622 # It thinks the first close brace ends the variable substitution.
1623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1624
1625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1626
1627 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1628
1629 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1630 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1631 # Just in case
1632 sleep 1
1633 echo timestamp > conftest.file
1634 # Do `set' in a subshell so we don't clobber the current shell's
1635 # arguments. Must try -L first in case configure is actually a
1636 # symlink; some systems play weird games with the mod time of symlinks
1637 # (eg FreeBSD returns the mod time of the symlink's containing
1638 # directory).
1639 if (
1640 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1641 if test "$*" = "X"; then
1642 # -L didn't work.
1643 set X `ls -t $srcdir/configure conftest.file`
1644 fi
1645 rm -f conftest.file
1646 if test "$*" != "X $srcdir/configure conftest.file" \
1647 && test "$*" != "X conftest.file $srcdir/configure"; then
1648
1649 # If neither matched, then we have a broken ls. This can happen
1650 # if, for instance, CONFIG_SHELL is bash and it inherits a
1651 # broken ls alias from the environment. This has actually
1652 # happened. Such a system could not be considered "sane".
1653 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1654 alias in your environment" >&5
1655 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1656 alias in your environment" >&2;}
1657 { (exit 1); exit 1; }; }
1658 fi
1659
1660 test "$2" = conftest.file
1661 )
1662 then
1663 # Ok.
1664 :
1665 else
1666 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1667 Check your system clock" >&5
1668 echo "$as_me: error: newly created file is older than distributed files!
1669 Check your system clock" >&2;}
1670 { (exit 1); exit 1; }; }
1671 fi
1672 echo "$as_me:$LINENO: result: yes" >&5
1673 echo "${ECHO_T}yes" >&6
1674 test "$program_prefix" != NONE &&
1675 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1676 # Use a double $ so make ignores it.
1677 test "$program_suffix" != NONE &&
1678 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1679 # Double any \ or $. echo might interpret backslashes.
1680 # By default was `s,x,x', remove it if useless.
1681 cat <<\_ACEOF >conftest.sed
1682 s/[\\$]/&&/g;s/;s,x,x,$//
1683 _ACEOF
1684 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1685 rm conftest.sed
1686
1687
1688 # expand $ac_aux_dir to an absolute path
1689 am_aux_dir=`cd $ac_aux_dir && pwd`
1690
1691 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1692 # Use eval to expand $SHELL
1693 if eval "$MISSING --run true"; then
1694 am_missing_run="$MISSING --run "
1695 else
1696 am_missing_run=
1697 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1698 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1699 fi
1700
1701 for ac_prog in gawk mawk nawk awk
1702 do
1703 # Extract the first word of "$ac_prog", so it can be a program name with args.
1704 set dummy $ac_prog; ac_word=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_AWK+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710 if test -n "$AWK"; then
1711 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1712 else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1715 do
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720 ac_cv_prog_AWK="$ac_prog"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 break 2
1723 fi
1724 done
1725 done
1726
1727 fi
1728 fi
1729 AWK=$ac_cv_prog_AWK
1730 if test -n "$AWK"; then
1731 echo "$as_me:$LINENO: result: $AWK" >&5
1732 echo "${ECHO_T}$AWK" >&6
1733 else
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 test -n "$AWK" && break
1739 done
1740
1741 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1742 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1743 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1744 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747 cat >conftest.make <<\_ACEOF
1748 all:
1749 @echo 'ac_maketemp="$(MAKE)"'
1750 _ACEOF
1751 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1752 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1753 if test -n "$ac_maketemp"; then
1754 eval ac_cv_prog_make_${ac_make}_set=yes
1755 else
1756 eval ac_cv_prog_make_${ac_make}_set=no
1757 fi
1758 rm -f conftest.make
1759 fi
1760 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1761 echo "$as_me:$LINENO: result: yes" >&5
1762 echo "${ECHO_T}yes" >&6
1763 SET_MAKE=
1764 else
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 SET_MAKE="MAKE=${MAKE-make}"
1768 fi
1769
1770 rm -rf .tst 2>/dev/null
1771 mkdir .tst 2>/dev/null
1772 if test -d .tst; then
1773 am__leading_dot=.
1774 else
1775 am__leading_dot=_
1776 fi
1777 rmdir .tst 2>/dev/null
1778
1779 # test to see if srcdir already configured
1780 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1781 test -f $srcdir/config.status; then
1782 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1783 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1784 { (exit 1); exit 1; }; }
1785 fi
1786
1787 # test whether we have cygpath
1788 if test -z "$CYGPATH_W"; then
1789 if (cygpath --version) >/dev/null 2>/dev/null; then
1790 CYGPATH_W='cygpath -w'
1791 else
1792 CYGPATH_W=echo
1793 fi
1794 fi
1795
1796
1797 # Define the identity of the package.
1798 PACKAGE=$PACKAGE
1799 VERSION=$VERSION
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE "$PACKAGE"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define VERSION "$VERSION"
1809 _ACEOF
1810
1811 # Some tools Automake needs.
1812
1813 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1814
1815
1816 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1817
1818
1819 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1820
1821
1822 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1823
1824
1825 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1826
1827
1828 AMTAR=${AMTAR-"${am_missing_run}tar"}
1829
1830 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1831
1832 # Installed binaries are usually stripped using `strip' when the user
1833 # run `make install-strip'. However `strip' might not be the right
1834 # tool to use in cross-compilation environments, therefore Automake
1835 # will honor the `STRIP' environment variable to overrule this program.
1836 if test "$cross_compiling" != no; then
1837 if test -n "$ac_tool_prefix"; then
1838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1839 set dummy ${ac_tool_prefix}strip; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_STRIP+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 if test -n "$STRIP"; then
1846 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1850 do
1851 IFS=$as_save_IFS
1852 test -z "$as_dir" && as_dir=.
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 break 2
1858 fi
1859 done
1860 done
1861
1862 fi
1863 fi
1864 STRIP=$ac_cv_prog_STRIP
1865 if test -n "$STRIP"; then
1866 echo "$as_me:$LINENO: result: $STRIP" >&5
1867 echo "${ECHO_T}$STRIP" >&6
1868 else
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1871 fi
1872
1873 fi
1874 if test -z "$ac_cv_prog_STRIP"; then
1875 ac_ct_STRIP=$STRIP
1876 # Extract the first word of "strip", so it can be a program name with args.
1877 set dummy strip; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test -n "$ac_ct_STRIP"; then
1884 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_ac_ct_STRIP="strip"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1896 fi
1897 done
1898 done
1899
1900 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1901 fi
1902 fi
1903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1904 if test -n "$ac_ct_STRIP"; then
1905 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1906 echo "${ECHO_T}$ac_ct_STRIP" >&6
1907 else
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912 STRIP=$ac_ct_STRIP
1913 else
1914 STRIP="$ac_cv_prog_STRIP"
1915 fi
1916
1917 fi
1918 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1919
1920 # We need awk for the "check" target. The system "awk" is bad on
1921 # some platforms.
1922
1923
1924
1925 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1926 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1927 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1928 if test "${enable_maintainer_mode+set}" = set; then
1929 enableval="$enable_maintainer_mode"
1930 USE_MAINTAINER_MODE=$enableval
1931 else
1932 USE_MAINTAINER_MODE=no
1933 fi;
1934 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1935 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1936
1937
1938 if test $USE_MAINTAINER_MODE = yes; then
1939 MAINTAINER_MODE_TRUE=
1940 MAINTAINER_MODE_FALSE='#'
1941 else
1942 MAINTAINER_MODE_TRUE='#'
1943 MAINTAINER_MODE_FALSE=
1944 fi
1945
1946 MAINT=$MAINTAINER_MODE_TRUE
1947
1948
1949
1950 DEPDIR="${am__leading_dot}deps"
1951
1952 ac_config_commands="$ac_config_commands depfiles"
1953
1954
1955 am_make=${MAKE-make}
1956 cat > confinc << 'END'
1957 am__doit:
1958 @echo done
1959 .PHONY: am__doit
1960 END
1961 # If we don't find an include directive, just comment out the code.
1962 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1963 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1964 am__include="#"
1965 am__quote=
1966 _am_result=none
1967 # First try GNU make style include.
1968 echo "include confinc" > confmf
1969 # We grep out `Entering directory' and `Leaving directory'
1970 # messages which can occur if `w' ends up in MAKEFLAGS.
1971 # In particular we don't look at `^make:' because GNU make might
1972 # be invoked under some other name (usually "gmake"), in which
1973 # case it prints its new name instead of `make'.
1974 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1975 am__include=include
1976 am__quote=
1977 _am_result=GNU
1978 fi
1979 # Now try BSD make style include.
1980 if test "$am__include" = "#"; then
1981 echo '.include "confinc"' > confmf
1982 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1983 am__include=.include
1984 am__quote="\""
1985 _am_result=BSD
1986 fi
1987 fi
1988
1989
1990 echo "$as_me:$LINENO: result: $_am_result" >&5
1991 echo "${ECHO_T}$_am_result" >&6
1992 rm -f confinc confmf
1993
1994 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1995 if test "${enable_dependency_tracking+set}" = set; then
1996 enableval="$enable_dependency_tracking"
1997
1998 fi;
1999 if test "x$enable_dependency_tracking" != xno; then
2000 am_depcomp="$ac_aux_dir/depcomp"
2001 AMDEPBACKSLASH='\'
2002 fi
2003
2004
2005 if test "x$enable_dependency_tracking" != xno; then
2006 AMDEP_TRUE=
2007 AMDEP_FALSE='#'
2008 else
2009 AMDEP_TRUE='#'
2010 AMDEP_FALSE=
2011 fi
2012
2013
2014
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 if test -n "$ac_tool_prefix"; then
2021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2041 fi
2042 done
2043 done
2044
2045 fi
2046 fi
2047 CC=$ac_cv_prog_CC
2048 if test -n "$CC"; then
2049 echo "$as_me:$LINENO: result: $CC" >&5
2050 echo "${ECHO_T}$CC" >&6
2051 else
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2054 fi
2055
2056 fi
2057 if test -z "$ac_cv_prog_CC"; then
2058 ac_ct_CC=$CC
2059 # Extract the first word of "gcc", so it can be a program name with args.
2060 set dummy gcc; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$ac_ct_CC"; then
2067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_ac_ct_CC="gcc"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2079 fi
2080 done
2081 done
2082
2083 fi
2084 fi
2085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2086 if test -n "$ac_ct_CC"; then
2087 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2088 echo "${ECHO_T}$ac_ct_CC" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2092 fi
2093
2094 CC=$ac_ct_CC
2095 else
2096 CC="$ac_cv_prog_CC"
2097 fi
2098
2099 if test -z "$CC"; then
2100 if test -n "$ac_tool_prefix"; then
2101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}cc; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_CC="${ac_tool_prefix}cc"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2121 fi
2122 done
2123 done
2124
2125 fi
2126 fi
2127 CC=$ac_cv_prog_CC
2128 if test -n "$CC"; then
2129 echo "$as_me:$LINENO: result: $CC" >&5
2130 echo "${ECHO_T}$CC" >&6
2131 else
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2134 fi
2135
2136 fi
2137 if test -z "$ac_cv_prog_CC"; then
2138 ac_ct_CC=$CC
2139 # Extract the first word of "cc", so it can be a program name with args.
2140 set dummy cc; ac_word=$2
2141 echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 if test -n "$ac_ct_CC"; then
2147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156 ac_cv_prog_ac_ct_CC="cc"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2159 fi
2160 done
2161 done
2162
2163 fi
2164 fi
2165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2166 if test -n "$ac_ct_CC"; then
2167 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2168 echo "${ECHO_T}$ac_ct_CC" >&6
2169 else
2170 echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6
2172 fi
2173
2174 CC=$ac_ct_CC
2175 else
2176 CC="$ac_cv_prog_CC"
2177 fi
2178
2179 fi
2180 if test -z "$CC"; then
2181 # Extract the first word of "cc", so it can be a program name with args.
2182 set dummy cc; ac_word=$2
2183 echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2185 if test "${ac_cv_prog_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test -n "$CC"; then
2189 ac_cv_prog_CC="$CC" # Let the user override the test.
2190 else
2191 ac_prog_rejected=no
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2200 ac_prog_rejected=yes
2201 continue
2202 fi
2203 ac_cv_prog_CC="cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2206 fi
2207 done
2208 done
2209
2210 if test $ac_prog_rejected = yes; then
2211 # We found a bogon in the path, so make sure we never use it.
2212 set dummy $ac_cv_prog_CC
2213 shift
2214 if test $# != 0; then
2215 # We chose a different compiler from the bogus one.
2216 # However, it has the same basename, so the bogon will be chosen
2217 # first if we set CC to just the basename; use the full file name.
2218 shift
2219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2220 fi
2221 fi
2222 fi
2223 fi
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226 echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2228 else
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233 fi
2234 if test -z "$CC"; then
2235 if test -n "$ac_tool_prefix"; then
2236 for ac_prog in cl
2237 do
2238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2240 echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2258 fi
2259 done
2260 done
2261
2262 fi
2263 fi
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6
2268 else
2269 echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
2271 fi
2272
2273 test -n "$CC" && break
2274 done
2275 fi
2276 if test -z "$CC"; then
2277 ac_ct_CC=$CC
2278 for ac_prog in cl
2279 do
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$ac_ct_CC"; then
2288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297 ac_cv_prog_ac_ct_CC="$ac_prog"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2300 fi
2301 done
2302 done
2303
2304 fi
2305 fi
2306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2307 if test -n "$ac_ct_CC"; then
2308 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2309 echo "${ECHO_T}$ac_ct_CC" >&6
2310 else
2311 echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2313 fi
2314
2315 test -n "$ac_ct_CC" && break
2316 done
2317
2318 CC=$ac_ct_CC
2319 fi
2320
2321 fi
2322
2323
2324 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: no acceptable C compiler found in \$PATH
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2329
2330 # Provide some information about the compiler.
2331 echo "$as_me:$LINENO:" \
2332 "checking for C compiler version" >&5
2333 ac_compiler=`set X $ac_compile; echo $2`
2334 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2335 (eval $ac_compiler --version </dev/null >&5) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }
2339 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2340 (eval $ac_compiler -v </dev/null >&5) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }
2344 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2345 (eval $ac_compiler -V </dev/null >&5) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349
2350 cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h. */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2356
2357 int
2358 main ()
2359 {
2360
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 ac_clean_files_save=$ac_clean_files
2366 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2369 # of exeext.
2370 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2371 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2372 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2373 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2374 (eval $ac_link_default) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 # Find the output, starting from the most likely. This scheme is
2379 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2380 # resort.
2381
2382 # Be careful to initialize this variable, since it used to be cached.
2383 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2384 ac_cv_exeext=
2385 # b.out is created by i960 compilers.
2386 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2387 do
2388 test -f "$ac_file" || continue
2389 case $ac_file in
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2391 ;;
2392 conftest.$ac_ext )
2393 # This is the source file.
2394 ;;
2395 [ab].out )
2396 # We found the default executable, but exeext='' is most
2397 # certainly right.
2398 break;;
2399 *.* )
2400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401 # FIXME: I believe we export ac_cv_exeext for Libtool,
2402 # but it would be cool to find out if it's true. Does anybody
2403 # maintain Libtool? --akim.
2404 export ac_cv_exeext
2405 break;;
2406 * )
2407 break;;
2408 esac
2409 done
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: C compiler cannot create executables
2417 See \`config.log' for more details." >&2;}
2418 { (exit 77); exit 77; }; }
2419 fi
2420
2421 ac_exeext=$ac_cv_exeext
2422 echo "$as_me:$LINENO: result: $ac_file" >&5
2423 echo "${ECHO_T}$ac_file" >&6
2424
2425 # Check the compiler produces executables we can run. If not, either
2426 # the compiler is broken, or we cross compile.
2427 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2428 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2429 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2430 # If not cross compiling, check that we can run a simple program.
2431 if test "$cross_compiling" != yes; then
2432 if { ac_try='./$ac_file'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 cross_compiling=no
2439 else
2440 if test "$cross_compiling" = maybe; then
2441 cross_compiling=yes
2442 else
2443 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2444 If you meant to cross compile, use \`--host'.
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: cannot run C compiled programs.
2447 If you meant to cross compile, use \`--host'.
2448 See \`config.log' for more details." >&2;}
2449 { (exit 1); exit 1; }; }
2450 fi
2451 fi
2452 fi
2453 echo "$as_me:$LINENO: result: yes" >&5
2454 echo "${ECHO_T}yes" >&6
2455
2456 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2457 ac_clean_files=$ac_clean_files_save
2458 # Check the compiler produces executables we can run. If not, either
2459 # the compiler is broken, or we cross compile.
2460 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2461 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2462 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2463 echo "${ECHO_T}$cross_compiling" >&6
2464
2465 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2466 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2468 (eval $ac_link) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2473 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2474 # work properly (i.e., refer to `conftest.exe'), while it won't with
2475 # `rm'.
2476 for ac_file in conftest.exe conftest conftest.*; do
2477 test -f "$ac_file" || continue
2478 case $ac_file in
2479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2481 export ac_cv_exeext
2482 break;;
2483 * ) break;;
2484 esac
2485 done
2486 else
2487 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2490 See \`config.log' for more details." >&2;}
2491 { (exit 1); exit 1; }; }
2492 fi
2493
2494 rm -f conftest$ac_cv_exeext
2495 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2496 echo "${ECHO_T}$ac_cv_exeext" >&6
2497
2498 rm -f conftest.$ac_ext
2499 EXEEXT=$ac_cv_exeext
2500 ac_exeext=$EXEEXT
2501 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2502 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2503 if test "${ac_cv_objext+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506 cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h. */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2512
2513 int
2514 main ()
2515 {
2516
2517 ;
2518 return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.o conftest.obj
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; then
2527 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2528 case $ac_file in
2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2531 break;;
2532 esac
2533 done
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2543 fi
2544
2545 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2546 fi
2547 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2548 echo "${ECHO_T}$ac_cv_objext" >&6
2549 OBJEXT=$ac_cv_objext
2550 ac_objext=$OBJEXT
2551 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2552 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2553 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2562
2563 int
2564 main ()
2565 {
2566 #ifndef __GNUC__
2567 choke me
2568 #endif
2569
2570 ;
2571 return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 ac_compiler_gnu=yes
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 ac_compiler_gnu=no
2601 fi
2602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2604
2605 fi
2606 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2608 GCC=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CFLAGS=${CFLAGS+set}
2610 ac_save_CFLAGS=$CFLAGS
2611 CFLAGS="-g"
2612 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2613 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2614 if test "${ac_cv_prog_cc_g+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h. */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2623
2624 int
2625 main ()
2626 {
2627
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634 (eval $ac_compile) 2>conftest.er1
2635 ac_status=$?
2636 grep -v '^ *+' conftest.er1 >conftest.err
2637 rm -f conftest.er1
2638 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
2641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 ac_cv_prog_cc_g=yes
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 ac_cv_prog_cc_g=no
2659 fi
2660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661 fi
2662 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2664 if test "$ac_test_CFLAGS" = set; then
2665 CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667 if test "$GCC" = yes; then
2668 CFLAGS="-g -O2"
2669 else
2670 CFLAGS="-g"
2671 fi
2672 else
2673 if test "$GCC" = yes; then
2674 CFLAGS="-O2"
2675 else
2676 CFLAGS=
2677 fi
2678 fi
2679 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2680 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2681 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 ac_cv_prog_cc_stdc=no
2685 ac_save_CC=$CC
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692 #include <stdarg.h>
2693 #include <stdio.h>
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2700 char **p;
2701 int i;
2702 {
2703 return p[i];
2704 }
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2706 {
2707 char *s;
2708 va_list v;
2709 va_start (v,p);
2710 s = g (p, va_arg (v,int));
2711 va_end (v);
2712 return s;
2713 }
2714
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2716 function prototypes and stuff, but not '\xHH' hex character constants.
2717 These don't provoke an error unfortunately, instead are silently treated
2718 as 'x'. The following induces an error, until -std1 is added to get
2719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2720 array size at least. It's necessary to write '\x00'==0 to get something
2721 that's true only with -std1. */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2723
2724 int test (int i, double x);
2725 struct s1 {int (*f) (int a);};
2726 struct s2 {int (*f) (double a);};
2727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2728 int argc;
2729 char **argv;
2730 int
2731 main ()
2732 {
2733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2734 ;
2735 return 0;
2736 }
2737 _ACEOF
2738 # Don't try gcc -ansi; that turns off useful extensions and
2739 # breaks some systems' header files.
2740 # AIX -qlanglvl=ansi
2741 # Ultrix and OSF/1 -std1
2742 # HP-UX 10.20 and later -Ae
2743 # HP-UX older versions -Aa -D_HPUX_SOURCE
2744 # SVR4 -Xc -D__EXTENSIONS__
2745 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2746 do
2747 CC="$ac_save_CC $ac_arg"
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 ac_cv_prog_cc_stdc=$ac_arg
2770 break
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 fi
2776 rm -f conftest.err conftest.$ac_objext
2777 done
2778 rm -f conftest.$ac_ext conftest.$ac_objext
2779 CC=$ac_save_CC
2780
2781 fi
2782
2783 case "x$ac_cv_prog_cc_stdc" in
2784 x|xno)
2785 echo "$as_me:$LINENO: result: none needed" >&5
2786 echo "${ECHO_T}none needed" >&6 ;;
2787 *)
2788 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2790 CC="$CC $ac_cv_prog_cc_stdc" ;;
2791 esac
2792
2793 # Some people use a C++ compiler to compile C. Since we use `exit',
2794 # in C++ we need to declare it. In case someone uses the same compiler
2795 # for both compiling C and C++ we need to have the C++ compiler decide
2796 # the declaration of exit, since it's the most demanding environment.
2797 cat >conftest.$ac_ext <<_ACEOF
2798 #ifndef __cplusplus
2799 choke me
2800 #endif
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2823 for ac_declaration in \
2824 '' \
2825 'extern "C" void std::exit (int) throw (); using std::exit;' \
2826 'extern "C" void std::exit (int); using std::exit;' \
2827 'extern "C" void exit (int) throw ();' \
2828 'extern "C" void exit (int);' \
2829 'void exit (int);'
2830 do
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 $ac_declaration
2838 #include <stdlib.h>
2839 int
2840 main ()
2841 {
2842 exit (42);
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 (eval $ac_try) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; } &&
2862 { ac_try='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 :
2869 else
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 continue
2874 fi
2875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882 $ac_declaration
2883 int
2884 main ()
2885 {
2886 exit (42);
2887 ;
2888 return 0;
2889 }
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 break
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917 fi
2918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2919 done
2920 rm -f conftest*
2921 if test -n "$ac_declaration"; then
2922 echo '#ifdef __cplusplus' >>confdefs.h
2923 echo $ac_declaration >>confdefs.h
2924 echo '#endif' >>confdefs.h
2925 fi
2926
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 fi
2932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938
2939 depcc="$CC" am_compiler_list=
2940
2941 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2942 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2943 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2947 # We make a subdir and do the tests there. Otherwise we can end up
2948 # making bogus files that we don't know about and never remove. For
2949 # instance it was reported that on HP-UX the gcc test will end up
2950 # making a dummy file named `D' -- because `-MD' means `put the output
2951 # in D'.
2952 mkdir conftest.dir
2953 # Copy depcomp to subdir because otherwise we won't find it if we're
2954 # using a relative directory.
2955 cp "$am_depcomp" conftest.dir
2956 cd conftest.dir
2957 # We will build objects and dependencies in a subdirectory because
2958 # it helps to detect inapplicable dependency modes. For instance
2959 # both Tru64's cc and ICC support -MD to output dependencies as a
2960 # side effect of compilation, but ICC will put the dependencies in
2961 # the current directory while Tru64 will put them in the object
2962 # directory.
2963 mkdir sub
2964
2965 am_cv_CC_dependencies_compiler_type=none
2966 if test "$am_compiler_list" = ""; then
2967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2968 fi
2969 for depmode in $am_compiler_list; do
2970 # Setup a source with many dependencies, because some compilers
2971 # like to wrap large dependency lists on column 80 (with \), and
2972 # we should not choose a depcomp mode which is confused by this.
2973 #
2974 # We need to recreate these files for each test, as the compiler may
2975 # overwrite some of them when testing with obscure command lines.
2976 # This happens at least with the AIX C compiler.
2977 : > sub/conftest.c
2978 for i in 1 2 3 4 5 6; do
2979 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2980 : > sub/conftst$i.h
2981 done
2982 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2983
2984 case $depmode in
2985 nosideeffect)
2986 # after this tag, mechanisms are not by side-effect, so they'll
2987 # only be used when explicitly requested
2988 if test "x$enable_dependency_tracking" = xyes; then
2989 continue
2990 else
2991 break
2992 fi
2993 ;;
2994 none) break ;;
2995 esac
2996 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2997 # mode. It turns out that the SunPro C++ compiler does not properly
2998 # handle `-M -o', and we need to detect this.
2999 if depmode=$depmode \
3000 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3002 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3003 >/dev/null 2>conftest.err &&
3004 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3005 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3006 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3007 # icc doesn't choke on unknown options, it will just issue warnings
3008 # (even with -Werror). So we grep stderr for any message
3009 # that says an option was ignored.
3010 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3011 am_cv_CC_dependencies_compiler_type=$depmode
3012 break
3013 fi
3014 fi
3015 done
3016
3017 cd ..
3018 rm -rf conftest.dir
3019 else
3020 am_cv_CC_dependencies_compiler_type=none
3021 fi
3022
3023 fi
3024 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3025 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3027
3028
3029
3030 if
3031 test "x$enable_dependency_tracking" != xno \
3032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3033 am__fastdepCC_TRUE=
3034 am__fastdepCC_FALSE='#'
3035 else
3036 am__fastdepCC_TRUE='#'
3037 am__fastdepCC_FALSE=
3038 fi
3039
3040
3041
3042
3043 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3044 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3045 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048 ac_check_lib_save_LIBS=$LIBS
3049 LIBS="-lcposix $LIBS"
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056
3057 /* Override any gcc2 internal prototype to avoid an error. */
3058 #ifdef __cplusplus
3059 extern "C"
3060 #endif
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3063 char strerror ();
3064 int
3065 main ()
3066 {
3067 strerror ();
3068 ;
3069 return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.$ac_objext conftest$ac_exeext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3074 (eval $ac_link) 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try='test -s conftest$ac_exeext'
3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 (eval $ac_try) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3093 ac_cv_lib_cposix_strerror=yes
3094 else
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3097
3098 ac_cv_lib_cposix_strerror=no
3099 fi
3100 rm -f conftest.err conftest.$ac_objext \
3101 conftest$ac_exeext conftest.$ac_ext
3102 LIBS=$ac_check_lib_save_LIBS
3103 fi
3104 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3105 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3106 if test $ac_cv_lib_cposix_strerror = yes; then
3107 LIBS="$LIBS -lcposix"
3108 fi
3109
3110
3111
3112 ac_ext=c
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3119 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3120 echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122 if test "${ac_cv_prog_CC+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141
3142 fi
3143 fi
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 echo "$as_me:$LINENO: result: $CC" >&5
3147 echo "${ECHO_T}$CC" >&6
3148 else
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3151 fi
3152
3153 fi
3154 if test -z "$ac_cv_prog_CC"; then
3155 ac_ct_CC=$CC
3156 # Extract the first word of "gcc", so it can be a program name with args.
3157 set dummy gcc; ac_word=$2
3158 echo "$as_me:$LINENO: checking for $ac_word" >&5
3159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163 if test -n "$ac_ct_CC"; then
3164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_ac_ct_CC="gcc"
3174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179
3180 fi
3181 fi
3182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183 if test -n "$ac_ct_CC"; then
3184 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3185 echo "${ECHO_T}$ac_ct_CC" >&6
3186 else
3187 echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3189 fi
3190
3191 CC=$ac_ct_CC
3192 else
3193 CC="$ac_cv_prog_CC"
3194 fi
3195
3196 if test -z "$CC"; then
3197 if test -n "$ac_tool_prefix"; then
3198 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3199 set dummy ${ac_tool_prefix}cc; ac_word=$2
3200 echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_CC+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 if test -n "$CC"; then
3206 ac_cv_prog_CC="$CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_CC="${ac_tool_prefix}cc"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219 done
3220 done
3221
3222 fi
3223 fi
3224 CC=$ac_cv_prog_CC
3225 if test -n "$CC"; then
3226 echo "$as_me:$LINENO: result: $CC" >&5
3227 echo "${ECHO_T}$CC" >&6
3228 else
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3231 fi
3232
3233 fi
3234 if test -z "$ac_cv_prog_CC"; then
3235 ac_ct_CC=$CC
3236 # Extract the first word of "cc", so it can be a program name with args.
3237 set dummy cc; ac_word=$2
3238 echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_ac_ct_CC="cc"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259
3260 fi
3261 fi
3262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263 if test -n "$ac_ct_CC"; then
3264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3265 echo "${ECHO_T}$ac_ct_CC" >&6
3266 else
3267 echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3269 fi
3270
3271 CC=$ac_ct_CC
3272 else
3273 CC="$ac_cv_prog_CC"
3274 fi
3275
3276 fi
3277 if test -z "$CC"; then
3278 # Extract the first word of "cc", so it can be a program name with args.
3279 set dummy cc; ac_word=$2
3280 echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282 if test "${ac_cv_prog_CC+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 ac_prog_rejected=no
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3297 ac_prog_rejected=yes
3298 continue
3299 fi
3300 ac_cv_prog_CC="cc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306
3307 if test $ac_prog_rejected = yes; then
3308 # We found a bogon in the path, so make sure we never use it.
3309 set dummy $ac_cv_prog_CC
3310 shift
3311 if test $# != 0; then
3312 # We chose a different compiler from the bogus one.
3313 # However, it has the same basename, so the bogon will be chosen
3314 # first if we set CC to just the basename; use the full file name.
3315 shift
3316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317 fi
3318 fi
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323 echo "$as_me:$LINENO: result: $CC" >&5
3324 echo "${ECHO_T}$CC" >&6
3325 else
3326 echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3328 fi
3329
3330 fi
3331 if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 for ac_prog in cl
3334 do
3335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_CC+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363 echo "$as_me:$LINENO: result: $CC" >&5
3364 echo "${ECHO_T}$CC" >&6
3365 else
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3368 fi
3369
3370 test -n "$CC" && break
3371 done
3372 fi
3373 if test -z "$CC"; then
3374 ac_ct_CC=$CC
3375 for ac_prog in cl
3376 do
3377 # Extract the first word of "$ac_prog", so it can be a program name with args.
3378 set dummy $ac_prog; ac_word=$2
3379 echo "$as_me:$LINENO: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 if test -n "$ac_ct_CC"; then
3385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_ac_ct_CC="$ac_prog"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398 done
3399 done
3400
3401 fi
3402 fi
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3406 echo "${ECHO_T}$ac_ct_CC" >&6
3407 else
3408 echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6
3410 fi
3411
3412 test -n "$ac_ct_CC" && break
3413 done
3414
3415 CC=$ac_ct_CC
3416 fi
3417
3418 fi
3419
3420
3421 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3422 See \`config.log' for more details." >&5
3423 echo "$as_me: error: no acceptable C compiler found in \$PATH
3424 See \`config.log' for more details." >&2;}
3425 { (exit 1); exit 1; }; }
3426
3427 # Provide some information about the compiler.
3428 echo "$as_me:$LINENO:" \
3429 "checking for C compiler version" >&5
3430 ac_compiler=`set X $ac_compile; echo $2`
3431 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3432 (eval $ac_compiler --version </dev/null >&5) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }
3436 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3437 (eval $ac_compiler -v </dev/null >&5) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }
3441 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3442 (eval $ac_compiler -V </dev/null >&5) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }
3446
3447 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3448 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3449 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458
3459 int
3460 main ()
3461 {
3462 #ifndef __GNUC__
3463 choke me
3464 #endif
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
3479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; } &&
3485 { ac_try='test -s conftest.$ac_objext'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3491 ac_compiler_gnu=yes
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496 ac_compiler_gnu=no
3497 fi
3498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500
3501 fi
3502 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3504 GCC=`test $ac_compiler_gnu = yes && echo yes`
3505 ac_test_CFLAGS=${CFLAGS+set}
3506 ac_save_CFLAGS=$CFLAGS
3507 CFLAGS="-g"
3508 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3509 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3510 if test "${ac_cv_prog_cc_g+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519
3520 int
3521 main ()
3522 {
3523
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3530 (eval $ac_compile) 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; } &&
3543 { ac_try='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 ac_cv_prog_cc_g=yes
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 ac_cv_prog_cc_g=no
3555 fi
3556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557 fi
3558 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3559 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3560 if test "$ac_test_CFLAGS" = set; then
3561 CFLAGS=$ac_save_CFLAGS
3562 elif test $ac_cv_prog_cc_g = yes; then
3563 if test "$GCC" = yes; then
3564 CFLAGS="-g -O2"
3565 else
3566 CFLAGS="-g"
3567 fi
3568 else
3569 if test "$GCC" = yes; then
3570 CFLAGS="-O2"
3571 else
3572 CFLAGS=
3573 fi
3574 fi
3575 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3576 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3577 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 ac_cv_prog_cc_stdc=no
3581 ac_save_CC=$CC
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h. */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #include <stdarg.h>
3589 #include <stdio.h>
3590 #include <sys/types.h>
3591 #include <sys/stat.h>
3592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3593 struct buf { int x; };
3594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3595 static char *e (p, i)
3596 char **p;
3597 int i;
3598 {
3599 return p[i];
3600 }
3601 static char *f (char * (*g) (char **, int), char **p, ...)
3602 {
3603 char *s;
3604 va_list v;
3605 va_start (v,p);
3606 s = g (p, va_arg (v,int));
3607 va_end (v);
3608 return s;
3609 }
3610
3611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3612 function prototypes and stuff, but not '\xHH' hex character constants.
3613 These don't provoke an error unfortunately, instead are silently treated
3614 as 'x'. The following induces an error, until -std1 is added to get
3615 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3616 array size at least. It's necessary to write '\x00'==0 to get something
3617 that's true only with -std1. */
3618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3619
3620 int test (int i, double x);
3621 struct s1 {int (*f) (int a);};
3622 struct s2 {int (*f) (double a);};
3623 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3624 int argc;
3625 char **argv;
3626 int
3627 main ()
3628 {
3629 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 # Don't try gcc -ansi; that turns off useful extensions and
3635 # breaks some systems' header files.
3636 # AIX -qlanglvl=ansi
3637 # Ultrix and OSF/1 -std1
3638 # HP-UX 10.20 and later -Ae
3639 # HP-UX older versions -Aa -D_HPUX_SOURCE
3640 # SVR4 -Xc -D__EXTENSIONS__
3641 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642 do
3643 CC="$ac_save_CC $ac_arg"
3644 rm -f conftest.$ac_objext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646 (eval $ac_compile) 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_prog_cc_stdc=$ac_arg
3666 break
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 fi
3672 rm -f conftest.err conftest.$ac_objext
3673 done
3674 rm -f conftest.$ac_ext conftest.$ac_objext
3675 CC=$ac_save_CC
3676
3677 fi
3678
3679 case "x$ac_cv_prog_cc_stdc" in
3680 x|xno)
3681 echo "$as_me:$LINENO: result: none needed" >&5
3682 echo "${ECHO_T}none needed" >&6 ;;
3683 *)
3684 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3685 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3686 CC="$CC $ac_cv_prog_cc_stdc" ;;
3687 esac
3688
3689 # Some people use a C++ compiler to compile C. Since we use `exit',
3690 # in C++ we need to declare it. In case someone uses the same compiler
3691 # for both compiling C and C++ we need to have the C++ compiler decide
3692 # the declaration of exit, since it's the most demanding environment.
3693 cat >conftest.$ac_ext <<_ACEOF
3694 #ifndef __cplusplus
3695 choke me
3696 #endif
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 (eval $ac_try) 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; } &&
3713 { ac_try='test -s conftest.$ac_objext'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 for ac_declaration in \
3720 '' \
3721 'extern "C" void std::exit (int) throw (); using std::exit;' \
3722 'extern "C" void std::exit (int); using std::exit;' \
3723 'extern "C" void exit (int) throw ();' \
3724 'extern "C" void exit (int);' \
3725 'void exit (int);'
3726 do
3727 cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 $ac_declaration
3734 #include <stdlib.h>
3735 int
3736 main ()
3737 {
3738 exit (42);
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try='test -s conftest.$ac_objext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 (eval $ac_try) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 :
3765 else
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 continue
3770 fi
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 $ac_declaration
3779 int
3780 main ()
3781 {
3782 exit (42);
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 (eval $ac_compile) 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 break
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 fi
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 done
3816 rm -f conftest*
3817 if test -n "$ac_declaration"; then
3818 echo '#ifdef __cplusplus' >>confdefs.h
3819 echo $ac_declaration >>confdefs.h
3820 echo '#endif' >>confdefs.h
3821 fi
3822
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 fi
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_ext=c
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
3835 depcc="$CC" am_compiler_list=
3836
3837 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3838 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3839 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3843 # We make a subdir and do the tests there. Otherwise we can end up
3844 # making bogus files that we don't know about and never remove. For
3845 # instance it was reported that on HP-UX the gcc test will end up
3846 # making a dummy file named `D' -- because `-MD' means `put the output
3847 # in D'.
3848 mkdir conftest.dir
3849 # Copy depcomp to subdir because otherwise we won't find it if we're
3850 # using a relative directory.
3851 cp "$am_depcomp" conftest.dir
3852 cd conftest.dir
3853 # We will build objects and dependencies in a subdirectory because
3854 # it helps to detect inapplicable dependency modes. For instance
3855 # both Tru64's cc and ICC support -MD to output dependencies as a
3856 # side effect of compilation, but ICC will put the dependencies in
3857 # the current directory while Tru64 will put them in the object
3858 # directory.
3859 mkdir sub
3860
3861 am_cv_CC_dependencies_compiler_type=none
3862 if test "$am_compiler_list" = ""; then
3863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3864 fi
3865 for depmode in $am_compiler_list; do
3866 # Setup a source with many dependencies, because some compilers
3867 # like to wrap large dependency lists on column 80 (with \), and
3868 # we should not choose a depcomp mode which is confused by this.
3869 #
3870 # We need to recreate these files for each test, as the compiler may
3871 # overwrite some of them when testing with obscure command lines.
3872 # This happens at least with the AIX C compiler.
3873 : > sub/conftest.c
3874 for i in 1 2 3 4 5 6; do
3875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876 : > sub/conftst$i.h
3877 done
3878 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3879
3880 case $depmode in
3881 nosideeffect)
3882 # after this tag, mechanisms are not by side-effect, so they'll
3883 # only be used when explicitly requested
3884 if test "x$enable_dependency_tracking" = xyes; then
3885 continue
3886 else
3887 break
3888 fi
3889 ;;
3890 none) break ;;
3891 esac
3892 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3893 # mode. It turns out that the SunPro C++ compiler does not properly
3894 # handle `-M -o', and we need to detect this.
3895 if depmode=$depmode \
3896 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3897 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3898 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3899 >/dev/null 2>conftest.err &&
3900 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3901 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3902 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3903 # icc doesn't choke on unknown options, it will just issue warnings
3904 # (even with -Werror). So we grep stderr for any message
3905 # that says an option was ignored.
3906 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3907 am_cv_CC_dependencies_compiler_type=$depmode
3908 break
3909 fi
3910 fi
3911 done
3912
3913 cd ..
3914 rm -rf conftest.dir
3915 else
3916 am_cv_CC_dependencies_compiler_type=none
3917 fi
3918
3919 fi
3920 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3921 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3923
3924
3925
3926 if
3927 test "x$enable_dependency_tracking" != xno \
3928 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3929 am__fastdepCC_TRUE=
3930 am__fastdepCC_FALSE='#'
3931 else
3932 am__fastdepCC_TRUE='#'
3933 am__fastdepCC_FALSE=
3934 fi
3935
3936
3937 # Find a good install program. We prefer a C program (faster),
3938 # so one script is as good as another. But avoid the broken or
3939 # incompatible versions:
3940 # SysV /etc/install, /usr/sbin/install
3941 # SunOS /usr/etc/install
3942 # IRIX /sbin/install
3943 # AIX /bin/install
3944 # AmigaOS /C/install, which installs bootblocks on floppy discs
3945 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3946 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3947 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3948 # OS/2's system install, which has a completely different semantic
3949 # ./install, which can be erroneously created by make from ./install.sh.
3950 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3951 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3952 if test -z "$INSTALL"; then
3953 if test "${ac_cv_path_install+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 # Account for people who put trailing slashes in PATH elements.
3962 case $as_dir/ in
3963 ./ | .// | /cC/* | \
3964 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3965 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3966 /usr/ucb/* ) ;;
3967 *)
3968 # OSF1 and SCO ODT 3.0 have their own names for install.
3969 # Don't use installbsd from OSF since it installs stuff as root
3970 # by default.
3971 for ac_prog in ginstall scoinst install; do
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3974 if test $ac_prog = install &&
3975 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3976 # AIX install. It has an incompatible calling convention.
3977 :
3978 elif test $ac_prog = install &&
3979 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3980 # program-specific install script used by HP pwplus--don't use.
3981 :
3982 else
3983 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3984 break 3
3985 fi
3986 fi
3987 done
3988 done
3989 ;;
3990 esac
3991 done
3992
3993
3994 fi
3995 if test "${ac_cv_path_install+set}" = set; then
3996 INSTALL=$ac_cv_path_install
3997 else
3998 # As a last resort, use the slow shell script. We don't cache a
3999 # path for INSTALL within a source directory, because that will
4000 # break other packages using the cache if that directory is
4001 # removed, or if the path is relative.
4002 INSTALL=$ac_install_sh
4003 fi
4004 fi
4005 echo "$as_me:$LINENO: result: $INSTALL" >&5
4006 echo "${ECHO_T}$INSTALL" >&6
4007
4008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4009 # It thinks the first close brace ends the variable substitution.
4010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4011
4012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4013
4014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4015
4016 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4017 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4018 LN_S=$as_ln_s
4019 if test "$LN_S" = "ln -s"; then
4020 echo "$as_me:$LINENO: result: yes" >&5
4021 echo "${ECHO_T}yes" >&6
4022 else
4023 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4024 echo "${ECHO_T}no, using $LN_S" >&6
4025 fi
4026
4027 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4028 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4029 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4030 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033 cat >conftest.make <<\_ACEOF
4034 all:
4035 @echo 'ac_maketemp="$(MAKE)"'
4036 _ACEOF
4037 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4038 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4039 if test -n "$ac_maketemp"; then
4040 eval ac_cv_prog_make_${ac_make}_set=yes
4041 else
4042 eval ac_cv_prog_make_${ac_make}_set=no
4043 fi
4044 rm -f conftest.make
4045 fi
4046 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4047 echo "$as_me:$LINENO: result: yes" >&5
4048 echo "${ECHO_T}yes" >&6
4049 SET_MAKE=
4050 else
4051 echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6
4053 SET_MAKE="MAKE=${MAKE-make}"
4054 fi
4055
4056 ac_ext=c
4057 ac_cpp='$CPP $CPPFLAGS'
4058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4062 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4063 # On Suns, sometimes $CPP names a directory.
4064 if test -n "$CPP" && test -d "$CPP"; then
4065 CPP=
4066 fi
4067 if test -z "$CPP"; then
4068 if test "${ac_cv_prog_CPP+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 # Double quotes because CPP needs to be expanded
4072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4073 do
4074 ac_preproc_ok=false
4075 for ac_c_preproc_warn_flag in '' yes
4076 do
4077 # Use a header file that comes with gcc, so configuring glibc
4078 # with a fresh cross-compiler works.
4079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4080 # <limits.h> exists even on freestanding compilers.
4081 # On the NeXT, cc -E runs the code through the compiler's parser,
4082 # not just through cpp. "Syntax error" is here to catch this case.
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #ifdef __STDC__
4090 # include <limits.h>
4091 #else
4092 # include <assert.h>
4093 #endif
4094 Syntax error
4095 _ACEOF
4096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null; then
4104 if test -s conftest.err; then
4105 ac_cpp_err=$ac_c_preproc_warn_flag
4106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4107 else
4108 ac_cpp_err=
4109 fi
4110 else
4111 ac_cpp_err=yes
4112 fi
4113 if test -z "$ac_cpp_err"; then
4114 :
4115 else
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 # Broken: fails on valid input.
4120 continue
4121 fi
4122 rm -f conftest.err conftest.$ac_ext
4123
4124 # OK, works on sane cases. Now check whether non-existent headers
4125 # can be detected and how.
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h. */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4132 #include <ac_nonexistent.h>
4133 _ACEOF
4134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } >/dev/null; then
4142 if test -s conftest.err; then
4143 ac_cpp_err=$ac_c_preproc_warn_flag
4144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4145 else
4146 ac_cpp_err=
4147 fi
4148 else
4149 ac_cpp_err=yes
4150 fi
4151 if test -z "$ac_cpp_err"; then
4152 # Broken: success on invalid input.
4153 continue
4154 else
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4157
4158 # Passes both tests.
4159 ac_preproc_ok=:
4160 break
4161 fi
4162 rm -f conftest.err conftest.$ac_ext
4163
4164 done
4165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4166 rm -f conftest.err conftest.$ac_ext
4167 if $ac_preproc_ok; then
4168 break
4169 fi
4170
4171 done
4172 ac_cv_prog_CPP=$CPP
4173
4174 fi
4175 CPP=$ac_cv_prog_CPP
4176 else
4177 ac_cv_prog_CPP=$CPP
4178 fi
4179 echo "$as_me:$LINENO: result: $CPP" >&5
4180 echo "${ECHO_T}$CPP" >&6
4181 ac_preproc_ok=false
4182 for ac_c_preproc_warn_flag in '' yes
4183 do
4184 # Use a header file that comes with gcc, so configuring glibc
4185 # with a fresh cross-compiler works.
4186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4187 # <limits.h> exists even on freestanding compilers.
4188 # On the NeXT, cc -E runs the code through the compiler's parser,
4189 # not just through cpp. "Syntax error" is here to catch this case.
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #ifdef __STDC__
4197 # include <limits.h>
4198 #else
4199 # include <assert.h>
4200 #endif
4201 Syntax error
4202 _ACEOF
4203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null; then
4211 if test -s conftest.err; then
4212 ac_cpp_err=$ac_c_preproc_warn_flag
4213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4214 else
4215 ac_cpp_err=
4216 fi
4217 else
4218 ac_cpp_err=yes
4219 fi
4220 if test -z "$ac_cpp_err"; then
4221 :
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 # Broken: fails on valid input.
4227 continue
4228 fi
4229 rm -f conftest.err conftest.$ac_ext
4230
4231 # OK, works on sane cases. Now check whether non-existent headers
4232 # can be detected and how.
4233 cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h. */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 #include <ac_nonexistent.h>
4240 _ACEOF
4241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null; then
4249 if test -s conftest.err; then
4250 ac_cpp_err=$ac_c_preproc_warn_flag
4251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4252 else
4253 ac_cpp_err=
4254 fi
4255 else
4256 ac_cpp_err=yes
4257 fi
4258 if test -z "$ac_cpp_err"; then
4259 # Broken: success on invalid input.
4260 continue
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265 # Passes both tests.
4266 ac_preproc_ok=:
4267 break
4268 fi
4269 rm -f conftest.err conftest.$ac_ext
4270
4271 done
4272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273 rm -f conftest.err conftest.$ac_ext
4274 if $ac_preproc_ok; then
4275 :
4276 else
4277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4278 See \`config.log' for more details." >&5
4279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4280 See \`config.log' for more details." >&2;}
4281 { (exit 1); exit 1; }; }
4282 fi
4283
4284 ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290
4291 echo "$as_me:$LINENO: checking for egrep" >&5
4292 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4293 if test "${ac_cv_prog_egrep+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4297 then ac_cv_prog_egrep='grep -E'
4298 else ac_cv_prog_egrep='egrep'
4299 fi
4300 fi
4301 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4302 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4303 EGREP=$ac_cv_prog_egrep
4304
4305
4306 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4307 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4308 if test "${ac_cv_header_stdc+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <stdlib.h>
4318 #include <stdarg.h>
4319 #include <string.h>
4320 #include <float.h>
4321
4322 int
4323 main ()
4324 {
4325
4326 ;
4327 return 0;
4328 }
4329 _ACEOF
4330 rm -f conftest.$ac_objext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; } &&
4345 { ac_try='test -s conftest.$ac_objext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_cv_header_stdc=yes
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 ac_cv_header_stdc=no
4357 fi
4358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4359
4360 if test $ac_cv_header_stdc = yes; then
4361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #include <string.h>
4369
4370 _ACEOF
4371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4372 $EGREP "memchr" >/dev/null 2>&1; then
4373 :
4374 else
4375 ac_cv_header_stdc=no
4376 fi
4377 rm -f conftest*
4378
4379 fi
4380
4381 if test $ac_cv_header_stdc = yes; then
4382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4383 cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h. */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4389 #include <stdlib.h>
4390
4391 _ACEOF
4392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4393 $EGREP "free" >/dev/null 2>&1; then
4394 :
4395 else
4396 ac_cv_header_stdc=no
4397 fi
4398 rm -f conftest*
4399
4400 fi
4401
4402 if test $ac_cv_header_stdc = yes; then
4403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4404 if test "$cross_compiling" = yes; then
4405 :
4406 else
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <ctype.h>
4414 #if ((' ' & 0x0FF) == 0x020)
4415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4417 #else
4418 # define ISLOWER(c) \
4419 (('a' <= (c) && (c) <= 'i') \
4420 || ('j' <= (c) && (c) <= 'r') \
4421 || ('s' <= (c) && (c) <= 'z'))
4422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4423 #endif
4424
4425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4426 int
4427 main ()
4428 {
4429 int i;
4430 for (i = 0; i < 256; i++)
4431 if (XOR (islower (i), ISLOWER (i))
4432 || toupper (i) != TOUPPER (i))
4433 exit(2);
4434 exit (0);
4435 }
4436 _ACEOF
4437 rm -f conftest$ac_exeext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4439 (eval $ac_link) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 :
4449 else
4450 echo "$as_me: program exited with status $ac_status" >&5
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 ( exit $ac_status )
4455 ac_cv_header_stdc=no
4456 fi
4457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4458 fi
4459 fi
4460 fi
4461 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4462 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4463 if test $ac_cv_header_stdc = yes; then
4464
4465 cat >>confdefs.h <<\_ACEOF
4466 #define STDC_HEADERS 1
4467 _ACEOF
4468
4469 fi
4470
4471 # Check whether --enable-shared or --disable-shared was given.
4472 if test "${enable_shared+set}" = set; then
4473 enableval="$enable_shared"
4474 p=${PACKAGE-default}
4475 case $enableval in
4476 yes) enable_shared=yes ;;
4477 no) enable_shared=no ;;
4478 *)
4479 enable_shared=no
4480 # Look at the argument we got. We use all the common list separators.
4481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4482 for pkg in $enableval; do
4483 IFS="$lt_save_ifs"
4484 if test "X$pkg" = "X$p"; then
4485 enable_shared=yes
4486 fi
4487 done
4488 IFS="$lt_save_ifs"
4489 ;;
4490 esac
4491 else
4492 enable_shared=yes
4493 fi;
4494
4495 # Check whether --enable-static or --disable-static was given.
4496 if test "${enable_static+set}" = set; then
4497 enableval="$enable_static"
4498 p=${PACKAGE-default}
4499 case $enableval in
4500 yes) enable_static=yes ;;
4501 no) enable_static=no ;;
4502 *)
4503 enable_static=no
4504 # Look at the argument we got. We use all the common list separators.
4505 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4506 for pkg in $enableval; do
4507 IFS="$lt_save_ifs"
4508 if test "X$pkg" = "X$p"; then
4509 enable_static=yes
4510 fi
4511 done
4512 IFS="$lt_save_ifs"
4513 ;;
4514 esac
4515 else
4516 enable_static=yes
4517 fi;
4518
4519 # Check whether --enable-fast-install or --disable-fast-install was given.
4520 if test "${enable_fast_install+set}" = set; then
4521 enableval="$enable_fast_install"
4522 p=${PACKAGE-default}
4523 case $enableval in
4524 yes) enable_fast_install=yes ;;
4525 no) enable_fast_install=no ;;
4526 *)
4527 enable_fast_install=no
4528 # Look at the argument we got. We use all the common list separators.
4529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4530 for pkg in $enableval; do
4531 IFS="$lt_save_ifs"
4532 if test "X$pkg" = "X$p"; then
4533 enable_fast_install=yes
4534 fi
4535 done
4536 IFS="$lt_save_ifs"
4537 ;;
4538 esac
4539 else
4540 enable_fast_install=yes
4541 fi;
4542
4543 # Make sure we can run config.sub.
4544 $ac_config_sub sun4 >/dev/null 2>&1 ||
4545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4546 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4547 { (exit 1); exit 1; }; }
4548
4549 echo "$as_me:$LINENO: checking build system type" >&5
4550 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4551 if test "${ac_cv_build+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 ac_cv_build_alias=$build_alias
4555 test -z "$ac_cv_build_alias" &&
4556 ac_cv_build_alias=`$ac_config_guess`
4557 test -z "$ac_cv_build_alias" &&
4558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4560 { (exit 1); exit 1; }; }
4561 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4563 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4564 { (exit 1); exit 1; }; }
4565
4566 fi
4567 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4568 echo "${ECHO_T}$ac_cv_build" >&6
4569 build=$ac_cv_build
4570 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4571 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4572 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4573
4574
4575 echo "$as_me:$LINENO: checking host system type" >&5
4576 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4577 if test "${ac_cv_host+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580 ac_cv_host_alias=$host_alias
4581 test -z "$ac_cv_host_alias" &&
4582 ac_cv_host_alias=$ac_cv_build_alias
4583 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4585 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4586 { (exit 1); exit 1; }; }
4587
4588 fi
4589 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4590 echo "${ECHO_T}$ac_cv_host" >&6
4591 host=$ac_cv_host
4592 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4593 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4594 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4595
4596
4597 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4598 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4599 if test "${lt_cv_path_SED+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 # Loop through the user's path and test for sed and gsed.
4603 # Then use that list of sed's as ones to test for truncation.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for lt_ac_prog in sed gsed; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4612 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4613 fi
4614 done
4615 done
4616 done
4617 lt_ac_max=0
4618 lt_ac_count=0
4619 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4620 # along with /bin/sed that truncates output.
4621 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4622 test ! -f $lt_ac_sed && break
4623 cat /dev/null > conftest.in
4624 lt_ac_count=0
4625 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4626 # Check for GNU sed and select it if it is found.
4627 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4628 lt_cv_path_SED=$lt_ac_sed
4629 break
4630 fi
4631 while true; do
4632 cat conftest.in conftest.in >conftest.tmp
4633 mv conftest.tmp conftest.in
4634 cp conftest.in conftest.nl
4635 echo >>conftest.nl
4636 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4637 cmp -s conftest.out conftest.nl || break
4638 # 10000 chars as input seems more than enough
4639 test $lt_ac_count -gt 10 && break
4640 lt_ac_count=`expr $lt_ac_count + 1`
4641 if test $lt_ac_count -gt $lt_ac_max; then
4642 lt_ac_max=$lt_ac_count
4643 lt_cv_path_SED=$lt_ac_sed
4644 fi
4645 done
4646 done
4647 SED=$lt_cv_path_SED
4648
4649 fi
4650
4651 echo "$as_me:$LINENO: result: $SED" >&5
4652 echo "${ECHO_T}$SED" >&6
4653
4654
4655 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4656 if test "${with_gnu_ld+set}" = set; then
4657 withval="$with_gnu_ld"
4658 test "$withval" = no || with_gnu_ld=yes
4659 else
4660 with_gnu_ld=no
4661 fi;
4662 ac_prog=ld
4663 if test "$GCC" = yes; then
4664 # Check if gcc -print-prog-name=ld gives a path.
4665 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4666 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4667 case $host in
4668 *-*-mingw*)
4669 # gcc leaves a trailing carriage return which upsets mingw
4670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4671 *)
4672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4673 esac
4674 case $ac_prog in
4675 # Accept absolute paths.
4676 [\\/]* | ?:[\\/]*)
4677 re_direlt='/[^/][^/]*/\.\./'
4678 # Canonicalize the pathname of ld
4679 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4680 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4681 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4682 done
4683 test -z "$LD" && LD="$ac_prog"
4684 ;;
4685 "")
4686 # If it fails, then pretend we aren't using GCC.
4687 ac_prog=ld
4688 ;;
4689 *)
4690 # If it is relative, then search for the first ld in PATH.
4691 with_gnu_ld=unknown
4692 ;;
4693 esac
4694 elif test "$with_gnu_ld" = yes; then
4695 echo "$as_me:$LINENO: checking for GNU ld" >&5
4696 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4697 else
4698 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4699 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4700 fi
4701 if test "${lt_cv_path_LD+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 if test -z "$LD"; then
4705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4706 for ac_dir in $PATH; do
4707 IFS="$lt_save_ifs"
4708 test -z "$ac_dir" && ac_dir=.
4709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4710 lt_cv_path_LD="$ac_dir/$ac_prog"
4711 # Check to see if the program is GNU ld. I'd rather use --version,
4712 # but apparently some GNU ld's only accept -v.
4713 # Break only if it was the GNU/non-GNU ld that we prefer.
4714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4715 *GNU* | *'with BFD'*)
4716 test "$with_gnu_ld" != no && break
4717 ;;
4718 *)
4719 test "$with_gnu_ld" != yes && break
4720 ;;
4721 esac
4722 fi
4723 done
4724 IFS="$lt_save_ifs"
4725 else
4726 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4727 fi
4728 fi
4729
4730 LD="$lt_cv_path_LD"
4731 if test -n "$LD"; then
4732 echo "$as_me:$LINENO: result: $LD" >&5
4733 echo "${ECHO_T}$LD" >&6
4734 else
4735 echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6
4737 fi
4738 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4739 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4740 { (exit 1); exit 1; }; }
4741 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4742 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4743 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4747 case `$LD -v 2>&1 </dev/null` in
4748 *GNU* | *'with BFD'*)
4749 lt_cv_prog_gnu_ld=yes
4750 ;;
4751 *)
4752 lt_cv_prog_gnu_ld=no
4753 ;;
4754 esac
4755 fi
4756 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4757 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4758 with_gnu_ld=$lt_cv_prog_gnu_ld
4759
4760
4761 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4762 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4763 if test "${lt_cv_ld_reload_flag+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 lt_cv_ld_reload_flag='-r'
4767 fi
4768 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4769 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4770 reload_flag=$lt_cv_ld_reload_flag
4771 case $reload_flag in
4772 "" | " "*) ;;
4773 *) reload_flag=" $reload_flag" ;;
4774 esac
4775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4776
4777 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4778 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4779 if test "${lt_cv_path_NM+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782 if test -n "$NM"; then
4783 # Let the user override the test.
4784 lt_cv_path_NM="$NM"
4785 else
4786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4787 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4788 IFS="$lt_save_ifs"
4789 test -z "$ac_dir" && ac_dir=.
4790 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4791 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4792 # Check to see if the nm accepts a BSD-compat flag.
4793 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4794 # nm: unknown option "B" ignored
4795 # Tru64's nm complains that /dev/null is an invalid object file
4796 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4797 */dev/null* | *'Invalid file or object type'*)
4798 lt_cv_path_NM="$tmp_nm -B"
4799 break
4800 ;;
4801 *)
4802 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4803 */dev/null*)
4804 lt_cv_path_NM="$tmp_nm -p"
4805 break
4806 ;;
4807 *)
4808 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4809 continue # so that we can try to find one that supports BSD flags
4810 ;;
4811 esac
4812 esac
4813 fi
4814 done
4815 IFS="$lt_save_ifs"
4816 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4817 fi
4818 fi
4819 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4820 echo "${ECHO_T}$lt_cv_path_NM" >&6
4821 NM="$lt_cv_path_NM"
4822
4823 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4824 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4825 if test "${lt_cv_deplibs_check_method+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828 lt_cv_file_magic_cmd='$MAGIC_CMD'
4829 lt_cv_file_magic_test_file=
4830 lt_cv_deplibs_check_method='unknown'
4831 # Need to set the preceding variable on all platforms that support
4832 # interlibrary dependencies.
4833 # 'none' -- dependencies not supported.
4834 # `unknown' -- same as none, but documents that we really don't know.
4835 # 'pass_all' -- all dependencies passed with no checks.
4836 # 'test_compile' -- check by making test program.
4837 # 'file_magic [[regex]]' -- check by looking for files in library path
4838 # which responds to the $file_magic_cmd with a given extended regex.
4839 # If you have `file' or equivalent on your system and you're not sure
4840 # whether `pass_all' will *always* work, you probably want this one.
4841
4842 case $host_os in
4843 aix4* | aix5*)
4844 lt_cv_deplibs_check_method=pass_all
4845 ;;
4846
4847 beos*)
4848 lt_cv_deplibs_check_method=pass_all
4849 ;;
4850
4851 bsdi4*)
4852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4853 lt_cv_file_magic_cmd='/usr/bin/file -L'
4854 lt_cv_file_magic_test_file=/shlib/libc.so
4855 ;;
4856
4857 cygwin*)
4858 # func_win32_libid is a shell function defined in ltmain.sh
4859 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4860 lt_cv_file_magic_cmd='func_win32_libid'
4861 ;;
4862
4863 mingw* | pw32*)
4864 # Base MSYS/MinGW do not provide the 'file' command needed by
4865 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4866 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4867 lt_cv_file_magic_cmd='$OBJDUMP -f'
4868 ;;
4869
4870 darwin* | rhapsody*)
4871 lt_cv_deplibs_check_method=pass_all
4872 ;;
4873
4874 freebsd* | kfreebsd*-gnu)
4875 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4876 case $host_cpu in
4877 i*86 )
4878 # Not sure whether the presence of OpenBSD here was a mistake.
4879 # Let's accept both of them until this is cleared up.
4880 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4881 lt_cv_file_magic_cmd=/usr/bin/file
4882 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4883 ;;
4884 esac
4885 else
4886 lt_cv_deplibs_check_method=pass_all
4887 fi
4888 ;;
4889
4890 gnu*)
4891 lt_cv_deplibs_check_method=pass_all
4892 ;;
4893
4894 hpux10.20* | hpux11*)
4895 lt_cv_file_magic_cmd=/usr/bin/file
4896 case "$host_cpu" in
4897 ia64*)
4898 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4899 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4900 ;;
4901 hppa*64*)
4902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4903 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4904 ;;
4905 *)
4906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4907 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4908 ;;
4909 esac
4910 ;;
4911
4912 irix5* | irix6* | nonstopux*)
4913 case $LD in
4914 *-32|*"-32 ") libmagic=32-bit;;
4915 *-n32|*"-n32 ") libmagic=N32;;
4916 *-64|*"-64 ") libmagic=64-bit;;
4917 *) libmagic=never-match;;
4918 esac
4919 lt_cv_deplibs_check_method=pass_all
4920 ;;
4921
4922 # This must be Linux ELF.
4923 linux*)
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4928 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4930 else
4931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4932 fi
4933 ;;
4934
4935 newos6*)
4936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4937 lt_cv_file_magic_cmd=/usr/bin/file
4938 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4939 ;;
4940
4941 nto-qnx*)
4942 lt_cv_deplibs_check_method=unknown
4943 ;;
4944
4945 openbsd*)
4946 lt_cv_file_magic_cmd=/usr/bin/file
4947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4948 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4950 else
4951 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4952 fi
4953 ;;
4954
4955 osf3* | osf4* | osf5*)
4956 lt_cv_deplibs_check_method=pass_all
4957 ;;
4958
4959 sco3.2v5*)
4960 lt_cv_deplibs_check_method=pass_all
4961 ;;
4962
4963 solaris*)
4964 lt_cv_deplibs_check_method=pass_all
4965 ;;
4966
4967 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4968 case $host_vendor in
4969 motorola)
4970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4972 ;;
4973 ncr)
4974 lt_cv_deplibs_check_method=pass_all
4975 ;;
4976 sequent)
4977 lt_cv_file_magic_cmd='/bin/file'
4978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4979 ;;
4980 sni)
4981 lt_cv_file_magic_cmd='/bin/file'
4982 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4983 lt_cv_file_magic_test_file=/lib/libc.so
4984 ;;
4985 siemens)
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988 esac
4989 ;;
4990
4991 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4992 lt_cv_deplibs_check_method=pass_all
4993 ;;
4994 esac
4995
4996 fi
4997 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4998 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4999 file_magic_cmd=$lt_cv_file_magic_cmd
5000 deplibs_check_method=$lt_cv_deplibs_check_method
5001 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5002
5003
5004
5005
5006 # If no C compiler was specified, use CC.
5007 LTCC=${LTCC-"$CC"}
5008
5009 # Allow CC to be a program name with arguments.
5010 compiler=$CC
5011
5012 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5013 if test "${enable_libtool_lock+set}" = set; then
5014 enableval="$enable_libtool_lock"
5015
5016 fi;
5017 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5018
5019 # Some flags need to be propagated to the compiler or linker for good
5020 # libtool support.
5021 case $host in
5022 ia64-*-hpux*)
5023 # Find out which ABI we are using.
5024 echo 'int i;' > conftest.$ac_ext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; then
5030 case `/usr/bin/file conftest.$ac_objext` in
5031 *ELF-32*)
5032 HPUX_IA64_MODE="32"
5033 ;;
5034 *ELF-64*)
5035 HPUX_IA64_MODE="64"
5036 ;;
5037 esac
5038 fi
5039 rm -rf conftest*
5040 ;;
5041 *-*-irix6*)
5042 # Find out which ABI we are using.
5043 echo '#line 5044 "configure"' > conftest.$ac_ext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; then
5049 if test "$lt_cv_prog_gnu_ld" = yes; then
5050 case `/usr/bin/file conftest.$ac_objext` in
5051 *32-bit*)
5052 LD="${LD-ld} -melf32bsmip"
5053 ;;
5054 *N32*)
5055 LD="${LD-ld} -melf32bmipn32"
5056 ;;
5057 *64-bit*)
5058 LD="${LD-ld} -melf64bmip"
5059 ;;
5060 esac
5061 else
5062 case `/usr/bin/file conftest.$ac_objext` in
5063 *32-bit*)
5064 LD="${LD-ld} -32"
5065 ;;
5066 *N32*)
5067 LD="${LD-ld} -n32"
5068 ;;
5069 *64-bit*)
5070 LD="${LD-ld} -64"
5071 ;;
5072 esac
5073 fi
5074 fi
5075 rm -rf conftest*
5076 ;;
5077
5078 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5079 # Find out which ABI we are using.
5080 echo 'int i;' > conftest.$ac_ext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082 (eval $ac_compile) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; then
5086 case "`/usr/bin/file conftest.o`" in
5087 *32-bit*)
5088 case $host in
5089 x86_64-*linux*)
5090 LD="${LD-ld} -m elf_i386"
5091 ;;
5092 ppc64-*linux*|powerpc64-*linux*)
5093 LD="${LD-ld} -m elf32ppclinux"
5094 ;;
5095 s390x-*linux*)
5096 LD="${LD-ld} -m elf_s390"
5097 ;;
5098 sparc64-*linux*)
5099 LD="${LD-ld} -m elf32_sparc"
5100 ;;
5101 esac
5102 ;;
5103 *64-bit*)
5104 case $host in
5105 x86_64-*linux*)
5106 LD="${LD-ld} -m elf_x86_64"
5107 ;;
5108 ppc*-*linux*|powerpc*-*linux*)
5109 LD="${LD-ld} -m elf64ppc"
5110 ;;
5111 s390*-*linux*)
5112 LD="${LD-ld} -m elf64_s390"
5113 ;;
5114 sparc*-*linux*)
5115 LD="${LD-ld} -m elf64_sparc"
5116 ;;
5117 esac
5118 ;;
5119 esac
5120 fi
5121 rm -rf conftest*
5122 ;;
5123
5124 *-*-sco3.2v5*)
5125 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5126 SAVE_CFLAGS="$CFLAGS"
5127 CFLAGS="$CFLAGS -belf"
5128 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5129 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5130 if test "${lt_cv_cc_needs_belf+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 ac_ext=c
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145
5146 int
5147 main ()
5148 {
5149
5150 ;
5151 return 0;
5152 }
5153 _ACEOF
5154 rm -f conftest.$ac_objext conftest$ac_exeext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; } &&
5169 { ac_try='test -s conftest$ac_exeext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 lt_cv_cc_needs_belf=yes
5176 else
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 lt_cv_cc_needs_belf=no
5181 fi
5182 rm -f conftest.err conftest.$ac_objext \
5183 conftest$ac_exeext conftest.$ac_ext
5184 ac_ext=c
5185 ac_cpp='$CPP $CPPFLAGS'
5186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189
5190 fi
5191 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5192 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5193 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5194 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5195 CFLAGS="$SAVE_CFLAGS"
5196 fi
5197 ;;
5198
5199 esac
5200
5201 need_locks="$enable_libtool_lock"
5202
5203
5204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5215 inttypes.h stdint.h unistd.h
5216 do
5217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218 echo "$as_me:$LINENO: checking for $ac_header" >&5
5219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h. */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 $ac_includes_default
5230
5231 #include <$ac_header>
5232 _ACEOF
5233 rm -f conftest.$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235 (eval $ac_compile) 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 eval "$as_ac_Header=yes"
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 eval "$as_ac_Header=no"
5260 fi
5261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5262 fi
5263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5266 cat >>confdefs.h <<_ACEOF
5267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5268 _ACEOF
5269
5270 fi
5271
5272 done
5273
5274
5275
5276 for ac_header in dlfcn.h
5277 do
5278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5280 echo "$as_me:$LINENO: checking for $ac_header" >&5
5281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 fi
5285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5287 else
5288 # Is the header compilable?
5289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 #include <$ac_header>
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_header_compiler=yes
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 ac_header_compiler=no
5327 fi
5328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5330 echo "${ECHO_T}$ac_header_compiler" >&6
5331
5332 # Is the header present?
5333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 #include <$ac_header>
5342 _ACEOF
5343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev/null; then
5351 if test -s conftest.err; then
5352 ac_cpp_err=$ac_c_preproc_warn_flag
5353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5354 else
5355 ac_cpp_err=
5356 fi
5357 else
5358 ac_cpp_err=yes
5359 fi
5360 if test -z "$ac_cpp_err"; then
5361 ac_header_preproc=yes
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 ac_header_preproc=no
5367 fi
5368 rm -f conftest.err conftest.$ac_ext
5369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5370 echo "${ECHO_T}$ac_header_preproc" >&6
5371
5372 # So? What about this header?
5373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5374 yes:no: )
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5379 ac_header_preproc=yes
5380 ;;
5381 no:yes:* )
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5394 (
5395 cat <<\_ASBOX
5396 ## ------------------------------------------ ##
5397 ## Report this to the AC_PACKAGE_NAME lists. ##
5398 ## ------------------------------------------ ##
5399 _ASBOX
5400 ) |
5401 sed "s/^/$as_me: WARNING: /" >&2
5402 ;;
5403 esac
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 eval "$as_ac_Header=\$ac_header_preproc"
5410 fi
5411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5413
5414 fi
5415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418 _ACEOF
5419
5420 fi
5421
5422 done
5423
5424 ac_ext=cc
5425 ac_cpp='$CXXCPP $CPPFLAGS'
5426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5429 if test -n "$ac_tool_prefix"; then
5430 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5431 do
5432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_prog_CXX+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439 if test -n "$CXX"; then
5440 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453 done
5454 done
5455
5456 fi
5457 fi
5458 CXX=$ac_cv_prog_CXX
5459 if test -n "$CXX"; then
5460 echo "$as_me:$LINENO: result: $CXX" >&5
5461 echo "${ECHO_T}$CXX" >&6
5462 else
5463 echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6
5465 fi
5466
5467 test -n "$CXX" && break
5468 done
5469 fi
5470 if test -z "$CXX"; then
5471 ac_ct_CXX=$CXX
5472 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5473 do
5474 # Extract the first word of "$ac_prog", so it can be a program name with args.
5475 set dummy $ac_prog; ac_word=$2
5476 echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 if test -n "$ac_ct_CXX"; then
5482 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_ac_ct_CXX="$ac_prog"
5492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497
5498 fi
5499 fi
5500 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5501 if test -n "$ac_ct_CXX"; then
5502 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5503 echo "${ECHO_T}$ac_ct_CXX" >&6
5504 else
5505 echo "$as_me:$LINENO: result: no" >&5
5506 echo "${ECHO_T}no" >&6
5507 fi
5508
5509 test -n "$ac_ct_CXX" && break
5510 done
5511 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5512
5513 CXX=$ac_ct_CXX
5514 fi
5515
5516
5517 # Provide some information about the compiler.
5518 echo "$as_me:$LINENO:" \
5519 "checking for C++ compiler version" >&5
5520 ac_compiler=`set X $ac_compile; echo $2`
5521 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5522 (eval $ac_compiler --version </dev/null >&5) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }
5526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5527 (eval $ac_compiler -v </dev/null >&5) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }
5531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5532 (eval $ac_compiler -V </dev/null >&5) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }
5536
5537 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5538 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5539 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548
5549 int
5550 main ()
5551 {
5552 #ifndef __GNUC__
5553 choke me
5554 #endif
5555
5556 ;
5557 return 0;
5558 }
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest.$ac_objext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_compiler_gnu=yes
5582 else
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 ac_compiler_gnu=no
5587 fi
5588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5590
5591 fi
5592 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5593 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5594 GXX=`test $ac_compiler_gnu = yes && echo yes`
5595 ac_test_CXXFLAGS=${CXXFLAGS+set}
5596 ac_save_CXXFLAGS=$CXXFLAGS
5597 CXXFLAGS="-g"
5598 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5599 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5600 if test "${ac_cv_prog_cxx_g+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 cat >conftest.$ac_ext <<_ACEOF
5604 /* confdefs.h. */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609
5610 int
5611 main ()
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_prog_cxx_g=yes
5640 else
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 ac_cv_prog_cxx_g=no
5645 fi
5646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5647 fi
5648 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5649 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5650 if test "$ac_test_CXXFLAGS" = set; then
5651 CXXFLAGS=$ac_save_CXXFLAGS
5652 elif test $ac_cv_prog_cxx_g = yes; then
5653 if test "$GXX" = yes; then
5654 CXXFLAGS="-g -O2"
5655 else
5656 CXXFLAGS="-g"
5657 fi
5658 else
5659 if test "$GXX" = yes; then
5660 CXXFLAGS="-O2"
5661 else
5662 CXXFLAGS=
5663 fi
5664 fi
5665 for ac_declaration in \
5666 '' \
5667 'extern "C" void std::exit (int) throw (); using std::exit;' \
5668 'extern "C" void std::exit (int); using std::exit;' \
5669 'extern "C" void exit (int) throw ();' \
5670 'extern "C" void exit (int);' \
5671 'void exit (int);'
5672 do
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 $ac_declaration
5680 #include <stdlib.h>
5681 int
5682 main ()
5683 {
5684 exit (42);
5685 ;
5686 return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>conftest.er1
5692 ac_status=$?
5693 grep -v '^ *+' conftest.er1 >conftest.err
5694 rm -f conftest.er1
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 (eval $ac_try) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; } &&
5704 { ac_try='test -s conftest.$ac_objext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5710 :
5711 else
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 continue
5716 fi
5717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 $ac_declaration
5725 int
5726 main ()
5727 {
5728 exit (42);
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; } &&
5748 { ac_try='test -s conftest.$ac_objext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 (eval $ac_try) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 break
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 fi
5760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5761 done
5762 rm -f conftest*
5763 if test -n "$ac_declaration"; then
5764 echo '#ifdef __cplusplus' >>confdefs.h
5765 echo $ac_declaration >>confdefs.h
5766 echo '#endif' >>confdefs.h
5767 fi
5768
5769 ac_ext=cc
5770 ac_cpp='$CXXCPP $CPPFLAGS'
5771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5774
5775 depcc="$CXX" am_compiler_list=
5776
5777 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5778 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5779 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5783 # We make a subdir and do the tests there. Otherwise we can end up
5784 # making bogus files that we don't know about and never remove. For
5785 # instance it was reported that on HP-UX the gcc test will end up
5786 # making a dummy file named `D' -- because `-MD' means `put the output
5787 # in D'.
5788 mkdir conftest.dir
5789 # Copy depcomp to subdir because otherwise we won't find it if we're
5790 # using a relative directory.
5791 cp "$am_depcomp" conftest.dir
5792 cd conftest.dir
5793 # We will build objects and dependencies in a subdirectory because
5794 # it helps to detect inapplicable dependency modes. For instance
5795 # both Tru64's cc and ICC support -MD to output dependencies as a
5796 # side effect of compilation, but ICC will put the dependencies in
5797 # the current directory while Tru64 will put them in the object
5798 # directory.
5799 mkdir sub
5800
5801 am_cv_CXX_dependencies_compiler_type=none
5802 if test "$am_compiler_list" = ""; then
5803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5804 fi
5805 for depmode in $am_compiler_list; do
5806 # Setup a source with many dependencies, because some compilers
5807 # like to wrap large dependency lists on column 80 (with \), and
5808 # we should not choose a depcomp mode which is confused by this.
5809 #
5810 # We need to recreate these files for each test, as the compiler may
5811 # overwrite some of them when testing with obscure command lines.
5812 # This happens at least with the AIX C compiler.
5813 : > sub/conftest.c
5814 for i in 1 2 3 4 5 6; do
5815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5816 : > sub/conftst$i.h
5817 done
5818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5819
5820 case $depmode in
5821 nosideeffect)
5822 # after this tag, mechanisms are not by side-effect, so they'll
5823 # only be used when explicitly requested
5824 if test "x$enable_dependency_tracking" = xyes; then
5825 continue
5826 else
5827 break
5828 fi
5829 ;;
5830 none) break ;;
5831 esac
5832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5833 # mode. It turns out that the SunPro C++ compiler does not properly
5834 # handle `-M -o', and we need to detect this.
5835 if depmode=$depmode \
5836 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5838 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5839 >/dev/null 2>conftest.err &&
5840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5841 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5843 # icc doesn't choke on unknown options, it will just issue warnings
5844 # (even with -Werror). So we grep stderr for any message
5845 # that says an option was ignored.
5846 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5847 am_cv_CXX_dependencies_compiler_type=$depmode
5848 break
5849 fi
5850 fi
5851 done
5852
5853 cd ..
5854 rm -rf conftest.dir
5855 else
5856 am_cv_CXX_dependencies_compiler_type=none
5857 fi
5858
5859 fi
5860 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5861 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5862 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5863
5864
5865
5866 if
5867 test "x$enable_dependency_tracking" != xno \
5868 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5869 am__fastdepCXX_TRUE=
5870 am__fastdepCXX_FALSE='#'
5871 else
5872 am__fastdepCXX_TRUE='#'
5873 am__fastdepCXX_FALSE=
5874 fi
5875
5876
5877 ac_ext=cc
5878 ac_cpp='$CXXCPP $CPPFLAGS'
5879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5882 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5883 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5884 if test -z "$CXXCPP"; then
5885 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888 # Double quotes because CXXCPP needs to be expanded
5889 for CXXCPP in "$CXX -E" "/lib/cpp"
5890 do
5891 ac_preproc_ok=false
5892 for ac_cxx_preproc_warn_flag in '' yes
5893 do
5894 # Use a header file that comes with gcc, so configuring glibc
5895 # with a fresh cross-compiler works.
5896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5897 # <limits.h> exists even on freestanding compilers.
5898 # On the NeXT, cc -E runs the code through the compiler's parser,
5899 # not just through cpp. "Syntax error" is here to catch this case.
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #ifdef __STDC__
5907 # include <limits.h>
5908 #else
5909 # include <assert.h>
5910 #endif
5911 Syntax error
5912 _ACEOF
5913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } >/dev/null; then
5921 if test -s conftest.err; then
5922 ac_cpp_err=$ac_cxx_preproc_warn_flag
5923 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5924 else
5925 ac_cpp_err=
5926 fi
5927 else
5928 ac_cpp_err=yes
5929 fi
5930 if test -z "$ac_cpp_err"; then
5931 :
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936 # Broken: fails on valid input.
5937 continue
5938 fi
5939 rm -f conftest.err conftest.$ac_ext
5940
5941 # OK, works on sane cases. Now check whether non-existent headers
5942 # can be detected and how.
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <ac_nonexistent.h>
5950 _ACEOF
5951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } >/dev/null; then
5959 if test -s conftest.err; then
5960 ac_cpp_err=$ac_cxx_preproc_warn_flag
5961 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5962 else
5963 ac_cpp_err=
5964 fi
5965 else
5966 ac_cpp_err=yes
5967 fi
5968 if test -z "$ac_cpp_err"; then
5969 # Broken: success on invalid input.
5970 continue
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 # Passes both tests.
5976 ac_preproc_ok=:
5977 break
5978 fi
5979 rm -f conftest.err conftest.$ac_ext
5980
5981 done
5982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5983 rm -f conftest.err conftest.$ac_ext
5984 if $ac_preproc_ok; then
5985 break
5986 fi
5987
5988 done
5989 ac_cv_prog_CXXCPP=$CXXCPP
5990
5991 fi
5992 CXXCPP=$ac_cv_prog_CXXCPP
5993 else
5994 ac_cv_prog_CXXCPP=$CXXCPP
5995 fi
5996 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5997 echo "${ECHO_T}$CXXCPP" >&6
5998 ac_preproc_ok=false
5999 for ac_cxx_preproc_warn_flag in '' yes
6000 do
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #ifdef __STDC__
6014 # include <limits.h>
6015 #else
6016 # include <assert.h>
6017 #endif
6018 Syntax error
6019 _ACEOF
6020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } >/dev/null; then
6028 if test -s conftest.err; then
6029 ac_cpp_err=$ac_cxx_preproc_warn_flag
6030 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6031 else
6032 ac_cpp_err=
6033 fi
6034 else
6035 ac_cpp_err=yes
6036 fi
6037 if test -z "$ac_cpp_err"; then
6038 :
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 # Broken: fails on valid input.
6044 continue
6045 fi
6046 rm -f conftest.err conftest.$ac_ext
6047
6048 # OK, works on sane cases. Now check whether non-existent headers
6049 # can be detected and how.
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <ac_nonexistent.h>
6057 _ACEOF
6058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } >/dev/null; then
6066 if test -s conftest.err; then
6067 ac_cpp_err=$ac_cxx_preproc_warn_flag
6068 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6069 else
6070 ac_cpp_err=
6071 fi
6072 else
6073 ac_cpp_err=yes
6074 fi
6075 if test -z "$ac_cpp_err"; then
6076 # Broken: success on invalid input.
6077 continue
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 # Passes both tests.
6083 ac_preproc_ok=:
6084 break
6085 fi
6086 rm -f conftest.err conftest.$ac_ext
6087
6088 done
6089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6090 rm -f conftest.err conftest.$ac_ext
6091 if $ac_preproc_ok; then
6092 :
6093 else
6094 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6095 See \`config.log' for more details." >&5
6096 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6097 See \`config.log' for more details." >&2;}
6098 { (exit 1); exit 1; }; }
6099 fi
6100
6101 ac_ext=cc
6102 ac_cpp='$CXXCPP $CPPFLAGS'
6103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6106
6107
6108 ac_ext=f
6109 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6110 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6112 if test -n "$ac_tool_prefix"; then
6113 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6114 do
6115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6117 echo "$as_me:$LINENO: checking for $ac_word" >&5
6118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6119 if test "${ac_cv_prog_F77+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 if test -n "$F77"; then
6123 ac_cv_prog_F77="$F77" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6132 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6135 fi
6136 done
6137 done
6138
6139 fi
6140 fi
6141 F77=$ac_cv_prog_F77
6142 if test -n "$F77"; then
6143 echo "$as_me:$LINENO: result: $F77" >&5
6144 echo "${ECHO_T}$F77" >&6
6145 else
6146 echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6148 fi
6149
6150 test -n "$F77" && break
6151 done
6152 fi
6153 if test -z "$F77"; then
6154 ac_ct_F77=$F77
6155 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6156 do
6157 # Extract the first word of "$ac_prog", so it can be a program name with args.
6158 set dummy $ac_prog; ac_word=$2
6159 echo "$as_me:$LINENO: checking for $ac_word" >&5
6160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6161 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 if test -n "$ac_ct_F77"; then
6165 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174 ac_cv_prog_ac_ct_F77="$ac_prog"
6175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178 done
6179 done
6180
6181 fi
6182 fi
6183 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6184 if test -n "$ac_ct_F77"; then
6185 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6186 echo "${ECHO_T}$ac_ct_F77" >&6
6187 else
6188 echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6
6190 fi
6191
6192 test -n "$ac_ct_F77" && break
6193 done
6194
6195 F77=$ac_ct_F77
6196 fi
6197
6198
6199 # Provide some information about the compiler.
6200 echo "$as_me:6201:" \
6201 "checking for Fortran 77 compiler version" >&5
6202 ac_compiler=`set X $ac_compile; echo $2`
6203 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6204 (eval $ac_compiler --version </dev/null >&5) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }
6208 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6209 (eval $ac_compiler -v </dev/null >&5) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }
6213 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6214 (eval $ac_compiler -V </dev/null >&5) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }
6218 rm -f a.out
6219
6220 # If we don't use `.F' as extension, the preprocessor is not run on the
6221 # input file. (Note that this only needs to work for GNU compilers.)
6222 ac_save_ext=$ac_ext
6223 ac_ext=F
6224 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6225 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6226 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 cat >conftest.$ac_ext <<_ACEOF
6230 program main
6231 #ifndef __GNUC__
6232 choke me
6233 #endif
6234
6235 end
6236 _ACEOF
6237 rm -f conftest.$ac_objext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239 (eval $ac_compile) 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_compiler_gnu=yes
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 ac_compiler_gnu=no
6264 fi
6265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6266 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6267
6268 fi
6269 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6270 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6271 ac_ext=$ac_save_ext
6272 ac_test_FFLAGS=${FFLAGS+set}
6273 ac_save_FFLAGS=$FFLAGS
6274 FFLAGS=
6275 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6276 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6277 if test "${ac_cv_prog_f77_g+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 FFLAGS=-g
6281 cat >conftest.$ac_ext <<_ACEOF
6282 program main
6283
6284 end
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_prog_f77_g=yes
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ac_cv_prog_f77_g=no
6313 fi
6314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6315
6316 fi
6317 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6318 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6319 if test "$ac_test_FFLAGS" = set; then
6320 FFLAGS=$ac_save_FFLAGS
6321 elif test $ac_cv_prog_f77_g = yes; then
6322 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6323 FFLAGS="-g -O2"
6324 else
6325 FFLAGS="-g"
6326 fi
6327 else
6328 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6329 FFLAGS="-O2"
6330 else
6331 FFLAGS=
6332 fi
6333 fi
6334
6335 G77=`test $ac_compiler_gnu = yes && echo yes`
6336 ac_ext=c
6337 ac_cpp='$CPP $CPPFLAGS'
6338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341
6342
6343
6344 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6345
6346 # find the maximum length of command line arguments
6347 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6348 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6349 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352 i=0
6353 teststring="ABCD"
6354
6355 case $build_os in
6356 msdosdjgpp*)
6357 # On DJGPP, this test can blow up pretty badly due to problems in libc
6358 # (any single argument exceeding 2000 bytes causes a buffer overrun
6359 # during glob expansion). Even if it were fixed, the result of this
6360 # check would be larger than it should be.
6361 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6362 ;;
6363
6364 gnu*)
6365 # Under GNU Hurd, this test is not required because there is
6366 # no limit to the length of command line arguments.
6367 # Libtool will interpret -1 as no limit whatsoever
6368 lt_cv_sys_max_cmd_len=-1;
6369 ;;
6370
6371 cygwin* | mingw*)
6372 # On Win9x/ME, this test blows up -- it succeeds, but takes
6373 # about 5 minutes as the teststring grows exponentially.
6374 # Worse, since 9x/ME are not pre-emptively multitasking,
6375 # you end up with a "frozen" computer, even though with patience
6376 # the test eventually succeeds (with a max line length of 256k).
6377 # Instead, let's just punt: use the minimum linelength reported by
6378 # all of the supported platforms: 8192 (on NT/2K/XP).
6379 lt_cv_sys_max_cmd_len=8192;
6380 ;;
6381
6382 amigaos*)
6383 # On AmigaOS with pdksh, this test takes hours, literally.
6384 # So we just punt and use a minimum line length of 8192.
6385 lt_cv_sys_max_cmd_len=8192;
6386 ;;
6387
6388 *)
6389 # If test is not a shell built-in, we'll probably end up computing a
6390 # maximum length that is only half of the actual maximum length, but
6391 # we can't tell.
6392 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6393 = "XX$teststring") >/dev/null 2>&1 &&
6394 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6395 lt_cv_sys_max_cmd_len=$new_result &&
6396 test $i != 17 # 1/2 MB should be enough
6397 do
6398 i=`expr $i + 1`
6399 teststring=$teststring$teststring
6400 done
6401 teststring=
6402 # Add a significant safety factor because C++ compilers can tack on massive
6403 # amounts of additional arguments before passing them to the linker.
6404 # It appears as though 1/2 is a usable value.
6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6406 ;;
6407 esac
6408
6409 fi
6410
6411 if test -n $lt_cv_sys_max_cmd_len ; then
6412 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6413 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6414 else
6415 echo "$as_me:$LINENO: result: none" >&5
6416 echo "${ECHO_T}none" >&6
6417 fi
6418
6419
6420
6421
6422 # Check for command to grab the raw symbol name followed by C symbol from nm.
6423 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6424 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6425 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428
6429 # These are sane defaults that work on at least a few old systems.
6430 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6431
6432 # Character class describing NM global symbol codes.
6433 symcode='[BCDEGRST]'
6434
6435 # Regexp to match symbols that can be accessed directly from C.
6436 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6437
6438 # Transform the above into a raw symbol and a C symbol.
6439 symxfrm='\1 \2\3 \3'
6440
6441 # Transform an extracted symbol line into a proper C declaration
6442 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6443
6444 # Transform an extracted symbol line into symbol name and symbol address
6445 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6446
6447 # Define system-specific variables.
6448 case $host_os in
6449 aix*)
6450 symcode='[BCDT]'
6451 ;;
6452 cygwin* | mingw* | pw32*)
6453 symcode='[ABCDGISTW]'
6454 ;;
6455 hpux*) # Its linker distinguishes data from code symbols
6456 if test "$host_cpu" = ia64; then
6457 symcode='[ABCDEGRST]'
6458 fi
6459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6460 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6461 ;;
6462 irix* | nonstopux*)
6463 symcode='[BCDEGRST]'
6464 ;;
6465 osf*)
6466 symcode='[BCDEGQRST]'
6467 ;;
6468 solaris* | sysv5*)
6469 symcode='[BDRT]'
6470 ;;
6471 sysv4)
6472 symcode='[DFNSTU]'
6473 ;;
6474 esac
6475
6476 # Handle CRLF in mingw tool chain
6477 opt_cr=
6478 case $build_os in
6479 mingw*)
6480 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6481 ;;
6482 esac
6483
6484 # If we're using GNU nm, then use its standard symbol codes.
6485 case `$NM -V 2>&1` in
6486 *GNU* | *'with BFD'*)
6487 symcode='[ABCDGIRSTW]' ;;
6488 esac
6489
6490 # Try without a prefix undercore, then with it.
6491 for ac_symprfx in "" "_"; do
6492
6493 # Write the raw and C identifiers.
6494 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6495
6496 # Check to see that the pipe works correctly.
6497 pipe_works=no
6498
6499 rm -f conftest*
6500 cat > conftest.$ac_ext <<EOF
6501 #ifdef __cplusplus
6502 extern "C" {
6503 #endif
6504 char nm_test_var;
6505 void nm_test_func(){}
6506 #ifdef __cplusplus
6507 }
6508 #endif
6509 int main(){nm_test_var='a';nm_test_func();return(0);}
6510 EOF
6511
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; then
6517 # Now try to grab the symbols.
6518 nlist=conftest.nm
6519 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6520 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } && test -s "$nlist"; then
6524 # Try sorting and uniquifying the output.
6525 if sort "$nlist" | uniq > "$nlist"T; then
6526 mv -f "$nlist"T "$nlist"
6527 else
6528 rm -f "$nlist"T
6529 fi
6530
6531 # Make sure that we snagged all the symbols we need.
6532 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6533 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6534 cat <<EOF > conftest.$ac_ext
6535 #ifdef __cplusplus
6536 extern "C" {
6537 #endif
6538
6539 EOF
6540 # Now generate the symbol file.
6541 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6542
6543 cat <<EOF >> conftest.$ac_ext
6544 #if defined (__STDC__) && __STDC__
6545 # define lt_ptr_t void *
6546 #else
6547 # define lt_ptr_t char *
6548 # define const
6549 #endif
6550
6551 /* The mapping between symbol names and symbols. */
6552 const struct {
6553 const char *name;
6554 lt_ptr_t address;
6555 }
6556 lt_preloaded_symbols[] =
6557 {
6558 EOF
6559 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6560 cat <<\EOF >> conftest.$ac_ext
6561 {0, (lt_ptr_t) 0}
6562 };
6563
6564 #ifdef __cplusplus
6565 }
6566 #endif
6567 EOF
6568 # Now try linking the two files.
6569 mv conftest.$ac_objext conftstm.$ac_objext
6570 lt_save_LIBS="$LIBS"
6571 lt_save_CFLAGS="$CFLAGS"
6572 LIBS="conftstm.$ac_objext"
6573 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6579 pipe_works=yes
6580 fi
6581 LIBS="$lt_save_LIBS"
6582 CFLAGS="$lt_save_CFLAGS"
6583 else
6584 echo "cannot find nm_test_func in $nlist" >&5
6585 fi
6586 else
6587 echo "cannot find nm_test_var in $nlist" >&5
6588 fi
6589 else
6590 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6591 fi
6592 else
6593 echo "$progname: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 fi
6596 rm -f conftest* conftst*
6597
6598 # Do not use the global_symbol_pipe unless it works.
6599 if test "$pipe_works" = yes; then
6600 break
6601 else
6602 lt_cv_sys_global_symbol_pipe=
6603 fi
6604 done
6605
6606 fi
6607
6608 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6609 lt_cv_sys_global_symbol_to_cdecl=
6610 fi
6611 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6612 echo "$as_me:$LINENO: result: failed" >&5
6613 echo "${ECHO_T}failed" >&6
6614 else
6615 echo "$as_me:$LINENO: result: ok" >&5
6616 echo "${ECHO_T}ok" >&6
6617 fi
6618
6619 echo "$as_me:$LINENO: checking for objdir" >&5
6620 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6621 if test "${lt_cv_objdir+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624 rm -f .libs 2>/dev/null
6625 mkdir .libs 2>/dev/null
6626 if test -d .libs; then
6627 lt_cv_objdir=.libs
6628 else
6629 # MS-DOS does not allow filenames that begin with a dot.
6630 lt_cv_objdir=_libs
6631 fi
6632 rmdir .libs 2>/dev/null
6633 fi
6634 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6635 echo "${ECHO_T}$lt_cv_objdir" >&6
6636 objdir=$lt_cv_objdir
6637
6638
6639
6640
6641
6642 case $host_os in
6643 aix3*)
6644 # AIX sometimes has problems with the GCC collect2 program. For some
6645 # reason, if we set the COLLECT_NAMES environment variable, the problems
6646 # vanish in a puff of smoke.
6647 if test "X${COLLECT_NAMES+set}" != Xset; then
6648 COLLECT_NAMES=
6649 export COLLECT_NAMES
6650 fi
6651 ;;
6652 esac
6653
6654 # Sed substitution that helps us do robust quoting. It backslashifies
6655 # metacharacters that are still active within double-quoted strings.
6656 Xsed='sed -e s/^X//'
6657 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6658
6659 # Same as above, but do not quote variable references.
6660 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6661
6662 # Sed substitution to delay expansion of an escaped shell variable in a
6663 # double_quote_subst'ed string.
6664 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6665
6666 # Sed substitution to avoid accidental globbing in evaled expressions
6667 no_glob_subst='s/\*/\\\*/g'
6668
6669 # Constants:
6670 rm="rm -f"
6671
6672 # Global variables:
6673 default_ofile=libtool
6674 can_build_shared=yes
6675
6676 # All known linkers require a `.a' archive for static linking (except M$VC,
6677 # which needs '.lib').
6678 libext=a
6679 ltmain="$ac_aux_dir/ltmain.sh"
6680 ofile="$default_ofile"
6681 with_gnu_ld="$lt_cv_prog_gnu_ld"
6682
6683 if test -n "$ac_tool_prefix"; then
6684 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6685 set dummy ${ac_tool_prefix}ar; ac_word=$2
6686 echo "$as_me:$LINENO: checking for $ac_word" >&5
6687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6688 if test "${ac_cv_prog_AR+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691 if test -n "$AR"; then
6692 ac_cv_prog_AR="$AR" # Let the user override the test.
6693 else
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_AR="${ac_tool_prefix}ar"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705 done
6706 done
6707
6708 fi
6709 fi
6710 AR=$ac_cv_prog_AR
6711 if test -n "$AR"; then
6712 echo "$as_me:$LINENO: result: $AR" >&5
6713 echo "${ECHO_T}$AR" >&6
6714 else
6715 echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6
6717 fi
6718
6719 fi
6720 if test -z "$ac_cv_prog_AR"; then
6721 ac_ct_AR=$AR
6722 # Extract the first word of "ar", so it can be a program name with args.
6723 set dummy ar; ac_word=$2
6724 echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6726 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729 if test -n "$ac_ct_AR"; then
6730 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739 ac_cv_prog_ac_ct_AR="ar"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743 done
6744 done
6745
6746 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6747 fi
6748 fi
6749 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6750 if test -n "$ac_ct_AR"; then
6751 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6752 echo "${ECHO_T}$ac_ct_AR" >&6
6753 else
6754 echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6
6756 fi
6757
6758 AR=$ac_ct_AR
6759 else
6760 AR="$ac_cv_prog_AR"
6761 fi
6762
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6765 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6766 echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6768 if test "${ac_cv_prog_RANLIB+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771 if test -n "$RANLIB"; then
6772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785 done
6786 done
6787
6788 fi
6789 fi
6790 RANLIB=$ac_cv_prog_RANLIB
6791 if test -n "$RANLIB"; then
6792 echo "$as_me:$LINENO: result: $RANLIB" >&5
6793 echo "${ECHO_T}$RANLIB" >&6
6794 else
6795 echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6
6797 fi
6798
6799 fi
6800 if test -z "$ac_cv_prog_RANLIB"; then
6801 ac_ct_RANLIB=$RANLIB
6802 # Extract the first word of "ranlib", so it can be a program name with args.
6803 set dummy ranlib; ac_word=$2
6804 echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6806 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809 if test -n "$ac_ct_RANLIB"; then
6810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_RANLIB="ranlib"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823 done
6824 done
6825
6826 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6827 fi
6828 fi
6829 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6830 if test -n "$ac_ct_RANLIB"; then
6831 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6832 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6833 else
6834 echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6
6836 fi
6837
6838 RANLIB=$ac_ct_RANLIB
6839 else
6840 RANLIB="$ac_cv_prog_RANLIB"
6841 fi
6842
6843 if test -n "$ac_tool_prefix"; then
6844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}strip; ac_word=$2
6846 echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6848 if test "${ac_cv_prog_STRIP+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 if test -n "$STRIP"; then
6852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865 done
6866 done
6867
6868 fi
6869 fi
6870 STRIP=$ac_cv_prog_STRIP
6871 if test -n "$STRIP"; then
6872 echo "$as_me:$LINENO: result: $STRIP" >&5
6873 echo "${ECHO_T}$STRIP" >&6
6874 else
6875 echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6
6877 fi
6878
6879 fi
6880 if test -z "$ac_cv_prog_STRIP"; then
6881 ac_ct_STRIP=$STRIP
6882 # Extract the first word of "strip", so it can be a program name with args.
6883 set dummy strip; ac_word=$2
6884 echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889 if test -n "$ac_ct_STRIP"; then
6890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_ac_ct_STRIP="strip"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903 done
6904 done
6905
6906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6907 fi
6908 fi
6909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6910 if test -n "$ac_ct_STRIP"; then
6911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6912 echo "${ECHO_T}$ac_ct_STRIP" >&6
6913 else
6914 echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6
6916 fi
6917
6918 STRIP=$ac_ct_STRIP
6919 else
6920 STRIP="$ac_cv_prog_STRIP"
6921 fi
6922
6923
6924 old_CC="$CC"
6925 old_CFLAGS="$CFLAGS"
6926
6927 # Set sane defaults for various variables
6928 test -z "$AR" && AR=ar
6929 test -z "$AR_FLAGS" && AR_FLAGS=cru
6930 test -z "$AS" && AS=as
6931 test -z "$CC" && CC=cc
6932 test -z "$LTCC" && LTCC=$CC
6933 test -z "$DLLTOOL" && DLLTOOL=dlltool
6934 test -z "$LD" && LD=ld
6935 test -z "$LN_S" && LN_S="ln -s"
6936 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6937 test -z "$NM" && NM=nm
6938 test -z "$SED" && SED=sed
6939 test -z "$OBJDUMP" && OBJDUMP=objdump
6940 test -z "$RANLIB" && RANLIB=:
6941 test -z "$STRIP" && STRIP=:
6942 test -z "$ac_objext" && ac_objext=o
6943
6944 # Determine commands to create old-style static archives.
6945 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6946 old_postinstall_cmds='chmod 644 $oldlib'
6947 old_postuninstall_cmds=
6948
6949 if test -n "$RANLIB"; then
6950 case $host_os in
6951 openbsd*)
6952 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6953 ;;
6954 *)
6955 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6956 ;;
6957 esac
6958 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6959 fi
6960
6961 # Only perform the check for file, if the check method requires it
6962 case $deplibs_check_method in
6963 file_magic*)
6964 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6965 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6966 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970 case $MAGIC_CMD in
6971 [\\/*] | ?:[\\/]*)
6972 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6973 ;;
6974 *)
6975 lt_save_MAGIC_CMD="$MAGIC_CMD"
6976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6978 for ac_dir in $ac_dummy; do
6979 IFS="$lt_save_ifs"
6980 test -z "$ac_dir" && ac_dir=.
6981 if test -f $ac_dir/${ac_tool_prefix}file; then
6982 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6983 if test -n "$file_magic_test_file"; then
6984 case $deplibs_check_method in
6985 "file_magic "*)
6986 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6989 $EGREP "$file_magic_regex" > /dev/null; then
6990 :
6991 else
6992 cat <<EOF 1>&2
6993
6994 *** Warning: the command libtool uses to detect shared libraries,
6995 *** $file_magic_cmd, produces output that libtool cannot recognize.
6996 *** The result is that libtool may fail to recognize shared libraries
6997 *** as such. This will affect the creation of libtool libraries that
6998 *** depend on shared libraries, but programs linked with such libtool
6999 *** libraries will work regardless of this problem. Nevertheless, you
7000 *** may want to report the problem to your system manager and/or to
7001 *** bug-libtool@gnu.org
7002
7003 EOF
7004 fi ;;
7005 esac
7006 fi
7007 break
7008 fi
7009 done
7010 IFS="$lt_save_ifs"
7011 MAGIC_CMD="$lt_save_MAGIC_CMD"
7012 ;;
7013 esac
7014 fi
7015
7016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7017 if test -n "$MAGIC_CMD"; then
7018 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7019 echo "${ECHO_T}$MAGIC_CMD" >&6
7020 else
7021 echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6
7023 fi
7024
7025 if test -z "$lt_cv_path_MAGIC_CMD"; then
7026 if test -n "$ac_tool_prefix"; then
7027 echo "$as_me:$LINENO: checking for file" >&5
7028 echo $ECHO_N "checking for file... $ECHO_C" >&6
7029 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 case $MAGIC_CMD in
7033 [\\/*] | ?:[\\/]*)
7034 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7035 ;;
7036 *)
7037 lt_save_MAGIC_CMD="$MAGIC_CMD"
7038 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7039 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7040 for ac_dir in $ac_dummy; do
7041 IFS="$lt_save_ifs"
7042 test -z "$ac_dir" && ac_dir=.
7043 if test -f $ac_dir/file; then
7044 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7045 if test -n "$file_magic_test_file"; then
7046 case $deplibs_check_method in
7047 "file_magic "*)
7048 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7050 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7051 $EGREP "$file_magic_regex" > /dev/null; then
7052 :
7053 else
7054 cat <<EOF 1>&2
7055
7056 *** Warning: the command libtool uses to detect shared libraries,
7057 *** $file_magic_cmd, produces output that libtool cannot recognize.
7058 *** The result is that libtool may fail to recognize shared libraries
7059 *** as such. This will affect the creation of libtool libraries that
7060 *** depend on shared libraries, but programs linked with such libtool
7061 *** libraries will work regardless of this problem. Nevertheless, you
7062 *** may want to report the problem to your system manager and/or to
7063 *** bug-libtool@gnu.org
7064
7065 EOF
7066 fi ;;
7067 esac
7068 fi
7069 break
7070 fi
7071 done
7072 IFS="$lt_save_ifs"
7073 MAGIC_CMD="$lt_save_MAGIC_CMD"
7074 ;;
7075 esac
7076 fi
7077
7078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7079 if test -n "$MAGIC_CMD"; then
7080 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7081 echo "${ECHO_T}$MAGIC_CMD" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7085 fi
7086
7087 else
7088 MAGIC_CMD=:
7089 fi
7090 fi
7091
7092 fi
7093 ;;
7094 esac
7095
7096 enable_dlopen=no
7097 enable_win32_dll=no
7098
7099 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7100 if test "${enable_libtool_lock+set}" = set; then
7101 enableval="$enable_libtool_lock"
7102
7103 fi;
7104 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7105
7106
7107 # Check whether --with-pic or --without-pic was given.
7108 if test "${with_pic+set}" = set; then
7109 withval="$with_pic"
7110 pic_mode="$withval"
7111 else
7112 pic_mode=default
7113 fi;
7114 test -z "$pic_mode" && pic_mode=default
7115
7116 # Use C for the default configuration in the libtool script
7117 tagname=
7118 lt_save_CC="$CC"
7119 ac_ext=c
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124
7125
7126 # Source file extension for C test sources.
7127 ac_ext=c
7128
7129 # Object file extension for compiled C test sources.
7130 objext=o
7131 objext=$objext
7132
7133 # Code to be used in simple compile tests
7134 lt_simple_compile_test_code="int some_variable = 0;\n"
7135
7136 # Code to be used in simple link tests
7137 lt_simple_link_test_code='int main(){return(0);}\n'
7138
7139
7140 # If no C compiler was specified, use CC.
7141 LTCC=${LTCC-"$CC"}
7142
7143 # Allow CC to be a program name with arguments.
7144 compiler=$CC
7145
7146
7147 #
7148 # Check for any special shared library compilation flags.
7149 #
7150 lt_prog_cc_shlib=
7151 if test "$GCC" = no; then
7152 case $host_os in
7153 sco3.2v5*)
7154 lt_prog_cc_shlib='-belf'
7155 ;;
7156 esac
7157 fi
7158 if test -n "$lt_prog_cc_shlib"; then
7159 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7160 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7161 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7162 else
7163 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7164 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7165 lt_cv_prog_cc_can_build_shared=no
7166 fi
7167 fi
7168
7169
7170 #
7171 # Check to make sure the static flag actually works.
7172 #
7173 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7174 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7175 if test "${lt_prog_compiler_static_works+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 lt_prog_compiler_static_works=no
7179 save_LDFLAGS="$LDFLAGS"
7180 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7181 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7182 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7183 # The compiler can only warn and ignore the option if not recognized
7184 # So say no if there are warnings
7185 if test -s conftest.err; then
7186 # Append any errors to the config.log.
7187 cat conftest.err 1>&5
7188 else
7189 lt_prog_compiler_static_works=yes
7190 fi
7191 fi
7192 $rm conftest*
7193 LDFLAGS="$save_LDFLAGS"
7194
7195 fi
7196 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7197 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7198
7199 if test x"$lt_prog_compiler_static_works" = xyes; then
7200 :
7201 else
7202 lt_prog_compiler_static=
7203 fi
7204
7205
7206
7207
7208 lt_prog_compiler_no_builtin_flag=
7209
7210 if test "$GCC" = yes; then
7211 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7212
7213
7214 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7215 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7216 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219 lt_cv_prog_compiler_rtti_exceptions=no
7220 ac_outfile=conftest.$ac_objext
7221 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7222 lt_compiler_flag="-fno-rtti -fno-exceptions"
7223 # Insert the option either (1) after the last *FLAGS variable, or
7224 # (2) before a word containing "conftest.", or (3) at the end.
7225 # Note that $ac_compile itself does not contain backslashes and begins
7226 # with a dollar sign (not a hyphen), so the echo should work correctly.
7227 # The option is referenced via a variable to avoid confusing sed.
7228 lt_compile=`echo "$ac_compile" | $SED \
7229 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7231 -e 's:$: $lt_compiler_flag:'`
7232 (eval echo "\"\$as_me:7233: $lt_compile\"" >&5)
7233 (eval "$lt_compile" 2>conftest.err)
7234 ac_status=$?
7235 cat conftest.err >&5
7236 echo "$as_me:7237: \$? = $ac_status" >&5
7237 if (exit $ac_status) && test -s "$ac_outfile"; then
7238 # The compiler can only warn and ignore the option if not recognized
7239 # So say no if there are warnings
7240 if test ! -s conftest.err; then
7241 lt_cv_prog_compiler_rtti_exceptions=yes
7242 fi
7243 fi
7244 $rm conftest*
7245
7246 fi
7247 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7248 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7249
7250 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7251 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7252 else
7253 :
7254 fi
7255
7256 fi
7257
7258 lt_prog_compiler_wl=
7259 lt_prog_compiler_pic=
7260 lt_prog_compiler_static=
7261
7262 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7263 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7264
7265 if test "$GCC" = yes; then
7266 lt_prog_compiler_wl='-Wl,'
7267 lt_prog_compiler_static='-static'
7268
7269 case $host_os in
7270 aix*)
7271 # All AIX code is PIC.
7272 if test "$host_cpu" = ia64; then
7273 # AIX 5 now supports IA64 processor
7274 lt_prog_compiler_static='-Bstatic'
7275 fi
7276 ;;
7277
7278 amigaos*)
7279 # FIXME: we need at least 68020 code to build shared libraries, but
7280 # adding the `-m68020' flag to GCC prevents building anything better,
7281 # like `-m68040'.
7282 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7283 ;;
7284
7285 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7286 # PIC is the default for these OSes.
7287 ;;
7288
7289 mingw* | pw32* | os2*)
7290 # This hack is so that the source file can tell whether it is being
7291 # built for inclusion in a dll (and should export symbols for example).
7292 lt_prog_compiler_pic='-DDLL_EXPORT'
7293 ;;
7294
7295 darwin* | rhapsody*)
7296 # PIC is the default on this platform
7297 # Common symbols not allowed in MH_DYLIB files
7298 lt_prog_compiler_pic='-fno-common'
7299 ;;
7300
7301 msdosdjgpp*)
7302 # Just because we use GCC doesn't mean we suddenly get shared libraries
7303 # on systems that don't support them.
7304 lt_prog_compiler_can_build_shared=no
7305 enable_shared=no
7306 ;;
7307
7308 sysv4*MP*)
7309 if test -d /usr/nec; then
7310 lt_prog_compiler_pic=-Kconform_pic
7311 fi
7312 ;;
7313
7314 hpux*)
7315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7316 # not for PA HP-UX.
7317 case "$host_cpu" in
7318 hppa*64*|ia64*)
7319 # +Z the default
7320 ;;
7321 *)
7322 lt_prog_compiler_pic='-fPIC'
7323 ;;
7324 esac
7325 ;;
7326
7327 *)
7328 lt_prog_compiler_pic='-fPIC'
7329 ;;
7330 esac
7331 else
7332 # PORTME Check for flag to pass linker flags through the system compiler.
7333 case $host_os in
7334 aix*)
7335 lt_prog_compiler_wl='-Wl,'
7336 if test "$host_cpu" = ia64; then
7337 # AIX 5 now supports IA64 processor
7338 lt_prog_compiler_static='-Bstatic'
7339 else
7340 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7341 fi
7342 ;;
7343
7344 mingw* | pw32* | os2*)
7345 # This hack is so that the source file can tell whether it is being
7346 # built for inclusion in a dll (and should export symbols for example).
7347 lt_prog_compiler_pic='-DDLL_EXPORT'
7348 ;;
7349
7350 hpux9* | hpux10* | hpux11*)
7351 lt_prog_compiler_wl='-Wl,'
7352 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7353 # not for PA HP-UX.
7354 case "$host_cpu" in
7355 hppa*64*|ia64*)
7356 # +Z the default
7357 ;;
7358 *)
7359 lt_prog_compiler_pic='+Z'
7360 ;;
7361 esac
7362 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7363 lt_prog_compiler_static='${wl}-a ${wl}archive'
7364 ;;
7365
7366 irix5* | irix6* | nonstopux*)
7367 lt_prog_compiler_wl='-Wl,'
7368 # PIC (with -KPIC) is the default.
7369 lt_prog_compiler_static='-non_shared'
7370 ;;
7371
7372 newsos6)
7373 lt_prog_compiler_pic='-KPIC'
7374 lt_prog_compiler_static='-Bstatic'
7375 ;;
7376
7377 linux*)
7378 case $CC in
7379 icc* | ecc*)
7380 lt_prog_compiler_wl='-Wl,'
7381 lt_prog_compiler_pic='-KPIC'
7382 lt_prog_compiler_static='-static'
7383 ;;
7384 ccc*)
7385 lt_prog_compiler_wl='-Wl,'
7386 # All Alpha code is PIC.
7387 lt_prog_compiler_static='-non_shared'
7388 ;;
7389 esac
7390 ;;
7391
7392 osf3* | osf4* | osf5*)
7393 lt_prog_compiler_wl='-Wl,'
7394 # All OSF/1 code is PIC.
7395 lt_prog_compiler_static='-non_shared'
7396 ;;
7397
7398 sco3.2v5*)
7399 lt_prog_compiler_pic='-Kpic'
7400 lt_prog_compiler_static='-dn'
7401 ;;
7402
7403 solaris*)
7404 lt_prog_compiler_wl='-Wl,'
7405 lt_prog_compiler_pic='-KPIC'
7406 lt_prog_compiler_static='-Bstatic'
7407 ;;
7408
7409 sunos4*)
7410 lt_prog_compiler_wl='-Qoption ld '
7411 lt_prog_compiler_pic='-PIC'
7412 lt_prog_compiler_static='-Bstatic'
7413 ;;
7414
7415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7416 lt_prog_compiler_wl='-Wl,'
7417 lt_prog_compiler_pic='-KPIC'
7418 lt_prog_compiler_static='-Bstatic'
7419 ;;
7420
7421 sysv4*MP*)
7422 if test -d /usr/nec ;then
7423 lt_prog_compiler_pic='-Kconform_pic'
7424 lt_prog_compiler_static='-Bstatic'
7425 fi
7426 ;;
7427
7428 uts4*)
7429 lt_prog_compiler_pic='-pic'
7430 lt_prog_compiler_static='-Bstatic'
7431 ;;
7432
7433 *)
7434 lt_prog_compiler_can_build_shared=no
7435 ;;
7436 esac
7437 fi
7438
7439 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7440 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7441
7442 #
7443 # Check to make sure the PIC flag actually works.
7444 #
7445 if test -n "$lt_prog_compiler_pic"; then
7446
7447 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7448 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7449 if test "${lt_prog_compiler_pic_works+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 lt_prog_compiler_pic_works=no
7453 ac_outfile=conftest.$ac_objext
7454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7455 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7456 # Insert the option either (1) after the last *FLAGS variable, or
7457 # (2) before a word containing "conftest.", or (3) at the end.
7458 # Note that $ac_compile itself does not contain backslashes and begins
7459 # with a dollar sign (not a hyphen), so the echo should work correctly.
7460 # The option is referenced via a variable to avoid confusing sed.
7461 lt_compile=`echo "$ac_compile" | $SED \
7462 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7464 -e 's:$: $lt_compiler_flag:'`
7465 (eval echo "\"\$as_me:7466: $lt_compile\"" >&5)
7466 (eval "$lt_compile" 2>conftest.err)
7467 ac_status=$?
7468 cat conftest.err >&5
7469 echo "$as_me:7470: \$? = $ac_status" >&5
7470 if (exit $ac_status) && test -s "$ac_outfile"; then
7471 # The compiler can only warn and ignore the option if not recognized
7472 # So say no if there are warnings
7473 if test ! -s conftest.err; then
7474 lt_prog_compiler_pic_works=yes
7475 fi
7476 fi
7477 $rm conftest*
7478
7479 fi
7480 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7481 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7482
7483 if test x"$lt_prog_compiler_pic_works" = xyes; then
7484 case $lt_prog_compiler_pic in
7485 "" | " "*) ;;
7486 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7487 esac
7488 else
7489 lt_prog_compiler_pic=
7490 lt_prog_compiler_can_build_shared=no
7491 fi
7492
7493 fi
7494 case "$host_os" in
7495 # For platforms which do not support PIC, -DPIC is meaningless:
7496 *djgpp*)
7497 lt_prog_compiler_pic=
7498 ;;
7499 *)
7500 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7501 ;;
7502 esac
7503
7504 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7505 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7506 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509 lt_cv_prog_compiler_c_o=no
7510 $rm -r conftest 2>/dev/null
7511 mkdir conftest
7512 cd conftest
7513 mkdir out
7514 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7515
7516 lt_compiler_flag="-o out/conftest2.$ac_objext"
7517 # Insert the option either (1) after the last *FLAGS variable, or
7518 # (2) before a word containing "conftest.", or (3) at the end.
7519 # Note that $ac_compile itself does not contain backslashes and begins
7520 # with a dollar sign (not a hyphen), so the echo should work correctly.
7521 lt_compile=`echo "$ac_compile" | $SED \
7522 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7524 -e 's:$: $lt_compiler_flag:'`
7525 (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
7526 (eval "$lt_compile" 2>out/conftest.err)
7527 ac_status=$?
7528 cat out/conftest.err >&5
7529 echo "$as_me:7530: \$? = $ac_status" >&5
7530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7531 then
7532 # The compiler can only warn and ignore the option if not recognized
7533 # So say no if there are warnings
7534 if test ! -s out/conftest.err; then
7535 lt_cv_prog_compiler_c_o=yes
7536 fi
7537 fi
7538 chmod u+w .
7539 $rm conftest*
7540 # SGI C++ compiler will create directory out/ii_files/ for
7541 # template instantiation
7542 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7543 $rm out/* && rmdir out
7544 cd ..
7545 rmdir conftest
7546 $rm conftest*
7547
7548 fi
7549 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7550 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7551
7552
7553 hard_links="nottested"
7554 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7555 # do not overwrite the value of need_locks provided by the user
7556 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7557 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7558 hard_links=yes
7559 $rm conftest*
7560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7561 touch conftest.a
7562 ln conftest.a conftest.b 2>&5 || hard_links=no
7563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7564 echo "$as_me:$LINENO: result: $hard_links" >&5
7565 echo "${ECHO_T}$hard_links" >&6
7566 if test "$hard_links" = no; then
7567 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7568 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7569 need_locks=warn
7570 fi
7571 else
7572 need_locks=no
7573 fi
7574
7575 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7576 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7577
7578 runpath_var=
7579 allow_undefined_flag=
7580 enable_shared_with_static_runtimes=no
7581 archive_cmds=
7582 archive_expsym_cmds=
7583 old_archive_From_new_cmds=
7584 old_archive_from_expsyms_cmds=
7585 export_dynamic_flag_spec=
7586 whole_archive_flag_spec=
7587 thread_safe_flag_spec=
7588 hardcode_libdir_flag_spec=
7589 hardcode_libdir_flag_spec_ld=
7590 hardcode_libdir_separator=
7591 hardcode_direct=no
7592 hardcode_minus_L=no
7593 hardcode_shlibpath_var=unsupported
7594 link_all_deplibs=unknown
7595 hardcode_automatic=no
7596 module_cmds=
7597 module_expsym_cmds=
7598 always_export_symbols=no
7599 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7600 # include_expsyms should be a list of space-separated symbols to be *always*
7601 # included in the symbol list
7602 include_expsyms=
7603 # exclude_expsyms can be an extended regexp of symbols to exclude
7604 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7605 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7606 # as well as any symbol that contains `d'.
7607 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7609 # platforms (ab)use it in PIC code, but their linkers get confused if
7610 # the symbol is explicitly referenced. Since portable code cannot
7611 # rely on this symbol name, it's probably fine to never include it in
7612 # preloaded symbol tables.
7613 extract_expsyms_cmds=
7614
7615 case $host_os in
7616 cygwin* | mingw* | pw32*)
7617 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7618 # When not using gcc, we currently assume that we are using
7619 # Microsoft Visual C++.
7620 if test "$GCC" != yes; then
7621 with_gnu_ld=no
7622 fi
7623 ;;
7624 openbsd*)
7625 with_gnu_ld=no
7626 ;;
7627 esac
7628
7629 ld_shlibs=yes
7630 if test "$with_gnu_ld" = yes; then
7631 # If archive_cmds runs LD, not CC, wlarc should be empty
7632 wlarc='${wl}'
7633
7634 # See if GNU ld supports shared libraries.
7635 case $host_os in
7636 aix3* | aix4* | aix5*)
7637 # On AIX/PPC, the GNU linker is very broken
7638 if test "$host_cpu" != ia64; then
7639 ld_shlibs=no
7640 cat <<EOF 1>&2
7641
7642 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7643 *** to be unable to reliably create shared libraries on AIX.
7644 *** Therefore, libtool is disabling shared libraries support. If you
7645 *** really care for shared libraries, you may want to modify your PATH
7646 *** so that a non-GNU linker is found, and then restart.
7647
7648 EOF
7649 fi
7650 ;;
7651
7652 amigaos*)
7653 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7654 hardcode_libdir_flag_spec='-L$libdir'
7655 hardcode_minus_L=yes
7656
7657 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7658 # that the semantics of dynamic libraries on AmigaOS, at least up
7659 # to version 4, is to share data among multiple programs linked
7660 # with the same dynamic library. Since this doesn't match the
7661 # behavior of shared libraries on other platforms, we can't use
7662 # them.
7663 ld_shlibs=no
7664 ;;
7665
7666 beos*)
7667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7668 allow_undefined_flag=unsupported
7669 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7670 # support --undefined. This deserves some investigation. FIXME
7671 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7672 else
7673 ld_shlibs=no
7674 fi
7675 ;;
7676
7677 cygwin* | mingw* | pw32*)
7678 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7679 # as there is no search path for DLLs.
7680 hardcode_libdir_flag_spec='-L$libdir'
7681 allow_undefined_flag=unsupported
7682 always_export_symbols=no
7683 enable_shared_with_static_runtimes=yes
7684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7685
7686 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7688 # If the export-symbols file already is a .def file (1st line
7689 # is EXPORTS), use it as is; otherwise, prepend...
7690 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7691 cp $export_symbols $output_objdir/$soname.def;
7692 else
7693 echo EXPORTS > $output_objdir/$soname.def;
7694 cat $export_symbols >> $output_objdir/$soname.def;
7695 fi~
7696 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7697 else
7698 ld_shlibs=no
7699 fi
7700 ;;
7701
7702 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7703 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7704 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7705 wlarc=
7706 else
7707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7709 fi
7710 ;;
7711
7712 solaris* | sysv5*)
7713 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7714 ld_shlibs=no
7715 cat <<EOF 1>&2
7716
7717 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7718 *** create shared libraries on Solaris systems. Therefore, libtool
7719 *** is disabling shared libraries support. We urge you to upgrade GNU
7720 *** binutils to release 2.9.1 or newer. Another option is to modify
7721 *** your PATH or compiler configuration so that the native linker is
7722 *** used, and then restart.
7723
7724 EOF
7725 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7728 else
7729 ld_shlibs=no
7730 fi
7731 ;;
7732
7733 sunos4*)
7734 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7735 wlarc=
7736 hardcode_direct=yes
7737 hardcode_shlibpath_var=no
7738 ;;
7739
7740 linux*)
7741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7742 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7743 archive_cmds="$tmp_archive_cmds"
7744 supports_anon_versioning=no
7745 case `$LD -v 2>/dev/null` in
7746 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7749 *\ 2.11.*) ;; # other 2.11 versions
7750 *) supports_anon_versioning=yes ;;
7751 esac
7752 if test $supports_anon_versioning = yes; then
7753 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7755 $echo "local: *; };" >> $output_objdir/$libname.ver~
7756 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7757 else
7758 archive_expsym_cmds="$tmp_archive_cmds"
7759 fi
7760 link_all_deplibs=no
7761 else
7762 ld_shlibs=no
7763 fi
7764 ;;
7765
7766 *)
7767 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7770 else
7771 ld_shlibs=no
7772 fi
7773 ;;
7774 esac
7775
7776 if test "$ld_shlibs" = yes; then
7777 runpath_var=LD_RUN_PATH
7778 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7779 export_dynamic_flag_spec='${wl}--export-dynamic'
7780 # ancient GNU ld didn't support --whole-archive et. al.
7781 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7783 else
7784 whole_archive_flag_spec=
7785 fi
7786 fi
7787 else
7788 # PORTME fill in a description of your system's linker (not GNU ld)
7789 case $host_os in
7790 aix3*)
7791 allow_undefined_flag=unsupported
7792 always_export_symbols=yes
7793 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7794 # Note: this linker hardcodes the directories in LIBPATH if there
7795 # are no directories specified by -L.
7796 hardcode_minus_L=yes
7797 if test "$GCC" = yes && test -z "$link_static_flag"; then
7798 # Neither direct hardcoding nor static linking is supported with a
7799 # broken collect2.
7800 hardcode_direct=unsupported
7801 fi
7802 ;;
7803
7804 aix4* | aix5*)
7805 if test "$host_cpu" = ia64; then
7806 # On IA64, the linker does run time linking by default, so we don't
7807 # have to do anything special.
7808 aix_use_runtimelinking=no
7809 exp_sym_flag='-Bexport'
7810 no_entry_flag=""
7811 else
7812 # If we're using GNU nm, then we don't want the "-C" option.
7813 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7814 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7815 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7816 else
7817 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7818 fi
7819 aix_use_runtimelinking=no
7820
7821 # Test if we are trying to use run time linking or normal
7822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7823 # need to do runtime linking.
7824 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7825 for ld_flag in $LDFLAGS; do
7826 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7827 aix_use_runtimelinking=yes
7828 break
7829 fi
7830 done
7831 esac
7832
7833 exp_sym_flag='-bexport'
7834 no_entry_flag='-bnoentry'
7835 fi
7836
7837 # When large executables or shared objects are built, AIX ld can
7838 # have problems creating the table of contents. If linking a library
7839 # or program results in "error TOC overflow" add -mminimal-toc to
7840 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7841 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7842
7843 archive_cmds=''
7844 hardcode_direct=yes
7845 hardcode_libdir_separator=':'
7846 link_all_deplibs=yes
7847
7848 if test "$GCC" = yes; then
7849 case $host_os in aix4.012|aix4.012.*)
7850 # We only want to do this on AIX 4.2 and lower, the check
7851 # below for broken collect2 doesn't work under 4.3+
7852 collect2name=`${CC} -print-prog-name=collect2`
7853 if test -f "$collect2name" && \
7854 strings "$collect2name" | grep resolve_lib_name >/dev/null
7855 then
7856 # We have reworked collect2
7857 hardcode_direct=yes
7858 else
7859 # We have old collect2
7860 hardcode_direct=unsupported
7861 # It fails to find uninstalled libraries when the uninstalled
7862 # path is not listed in the libpath. Setting hardcode_minus_L
7863 # to unsupported forces relinking
7864 hardcode_minus_L=yes
7865 hardcode_libdir_flag_spec='-L$libdir'
7866 hardcode_libdir_separator=
7867 fi
7868 esac
7869 shared_flag='-shared'
7870 else
7871 # not using gcc
7872 if test "$host_cpu" = ia64; then
7873 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7874 # chokes on -Wl,-G. The following line is correct:
7875 shared_flag='-G'
7876 else
7877 if test "$aix_use_runtimelinking" = yes; then
7878 shared_flag='${wl}-G'
7879 else
7880 shared_flag='${wl}-bM:SRE'
7881 fi
7882 fi
7883 fi
7884
7885 # It seems that -bexpall does not export symbols beginning with
7886 # underscore (_), so it is better to generate a list of symbols to export.
7887 always_export_symbols=yes
7888 if test "$aix_use_runtimelinking" = yes; then
7889 # Warning - without using the other runtime loading flags (-brtl),
7890 # -berok will link without error, but may produce a broken library.
7891 allow_undefined_flag='-berok'
7892 # Determine the default libpath from the value encoded in an empty executable.
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899
7900 int
7901 main ()
7902 {
7903
7904 ;
7905 return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910 (eval $ac_link) 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929
7930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7931 }'`
7932 # Check for a 64-bit object if we didn't find anything.
7933 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7934 }'`; fi
7935 else
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 fi
7940 rm -f conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7943
7944 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7945 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7946 else
7947 if test "$host_cpu" = ia64; then
7948 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7949 allow_undefined_flag="-z nodefs"
7950 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7951 else
7952 # Determine the default libpath from the value encoded in an empty executable.
7953 cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h. */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959
7960 int
7961 main ()
7962 {
7963
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970 (eval $ac_link) 2>conftest.er1
7971 ac_status=$?
7972 grep -v '^ *+' conftest.er1 >conftest.err
7973 rm -f conftest.er1
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; } &&
7983 { ac_try='test -s conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989
7990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7991 }'`
7992 # Check for a 64-bit object if we didn't find anything.
7993 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7994 }'`; fi
7995 else
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 fi
8000 rm -f conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
8002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8003
8004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8005 # Warning - without using the other run time loading flags,
8006 # -berok will link without error, but may produce a broken library.
8007 no_undefined_flag=' ${wl}-bernotok'
8008 allow_undefined_flag=' ${wl}-berok'
8009 # -bexpall does not export symbols beginning with underscore (_)
8010 always_export_symbols=yes
8011 # Exported symbols can be pulled into shared objects from archives
8012 whole_archive_flag_spec=' '
8013 archive_cmds_need_lc=yes
8014 # This is similar to how AIX traditionally builds it's shared libraries.
8015 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8016 fi
8017 fi
8018 ;;
8019
8020 amigaos*)
8021 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 hardcode_minus_L=yes
8024 # see comment about different semantics on the GNU ld section
8025 ld_shlibs=no
8026 ;;
8027
8028 bsdi4*)
8029 export_dynamic_flag_spec=-rdynamic
8030 ;;
8031
8032 cygwin* | mingw* | pw32*)
8033 # When not using gcc, we currently assume that we are using
8034 # Microsoft Visual C++.
8035 # hardcode_libdir_flag_spec is actually meaningless, as there is
8036 # no search path for DLLs.
8037 hardcode_libdir_flag_spec=' '
8038 allow_undefined_flag=unsupported
8039 # Tell ltmain to make .lib files, not .a files.
8040 libext=lib
8041 # Tell ltmain to make .dll files, not .so files.
8042 shrext_cmds=".dll"
8043 # FIXME: Setting linknames here is a bad hack.
8044 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8045 # The linker will automatically build a .lib file if we build a DLL.
8046 old_archive_From_new_cmds='true'
8047 # FIXME: Should let the user specify the lib program.
8048 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8049 fix_srcfile_path='`cygpath -w "$srcfile"`'
8050 enable_shared_with_static_runtimes=yes
8051 ;;
8052
8053 darwin* | rhapsody*)
8054 if test "$GXX" = yes ; then
8055 archive_cmds_need_lc=no
8056 case "$host_os" in
8057 rhapsody* | darwin1.[012])
8058 allow_undefined_flag='-undefined suppress'
8059 ;;
8060 *) # Darwin 1.3 on
8061 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8062 allow_undefined_flag='-flat_namespace -undefined suppress'
8063 else
8064 case ${MACOSX_DEPLOYMENT_TARGET} in
8065 10.[012])
8066 allow_undefined_flag='-flat_namespace -undefined suppress'
8067 ;;
8068 10.*)
8069 allow_undefined_flag='-undefined dynamic_lookup'
8070 ;;
8071 esac
8072 fi
8073 ;;
8074 esac
8075 lt_int_apple_cc_single_mod=no
8076 output_verbose_link_cmd='echo'
8077 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8078 lt_int_apple_cc_single_mod=yes
8079 fi
8080 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8081 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8082 else
8083 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8084 fi
8085 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8086 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8087 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8088 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8089 else
8090 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8091 fi
8092 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8093 hardcode_direct=no
8094 hardcode_automatic=yes
8095 hardcode_shlibpath_var=unsupported
8096 whole_archive_flag_spec='-all_load $convenience'
8097 link_all_deplibs=yes
8098 else
8099 ld_shlibs=no
8100 fi
8101 ;;
8102
8103 dgux*)
8104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8105 hardcode_libdir_flag_spec='-L$libdir'
8106 hardcode_shlibpath_var=no
8107 ;;
8108
8109 freebsd1*)
8110 ld_shlibs=no
8111 ;;
8112
8113 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8114 # support. Future versions do this automatically, but an explicit c++rt0.o
8115 # does not break anything, and helps significantly (at the cost of a little
8116 # extra space).
8117 freebsd2.2*)
8118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8119 hardcode_libdir_flag_spec='-R$libdir'
8120 hardcode_direct=yes
8121 hardcode_shlibpath_var=no
8122 ;;
8123
8124 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8125 freebsd2*)
8126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8127 hardcode_direct=yes
8128 hardcode_minus_L=yes
8129 hardcode_shlibpath_var=no
8130 ;;
8131
8132 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8133 freebsd* | kfreebsd*-gnu)
8134 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8135 hardcode_libdir_flag_spec='-R$libdir'
8136 hardcode_direct=yes
8137 hardcode_shlibpath_var=no
8138 ;;
8139
8140 hpux9*)
8141 if test "$GCC" = yes; then
8142 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8143 else
8144 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8145 fi
8146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8147 hardcode_libdir_separator=:
8148 hardcode_direct=yes
8149
8150 # hardcode_minus_L: Not really in the search PATH,
8151 # but as the default location of the library.
8152 hardcode_minus_L=yes
8153 export_dynamic_flag_spec='${wl}-E'
8154 ;;
8155
8156 hpux10* | hpux11*)
8157 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8158 case "$host_cpu" in
8159 hppa*64*|ia64*)
8160 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8161 ;;
8162 *)
8163 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8164 ;;
8165 esac
8166 else
8167 case "$host_cpu" in
8168 hppa*64*|ia64*)
8169 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8170 ;;
8171 *)
8172 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8173 ;;
8174 esac
8175 fi
8176 if test "$with_gnu_ld" = no; then
8177 case "$host_cpu" in
8178 hppa*64*)
8179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8180 hardcode_libdir_flag_spec_ld='+b $libdir'
8181 hardcode_libdir_separator=:
8182 hardcode_direct=no
8183 hardcode_shlibpath_var=no
8184 ;;
8185 ia64*)
8186 hardcode_libdir_flag_spec='-L$libdir'
8187 hardcode_direct=no
8188 hardcode_shlibpath_var=no
8189
8190 # hardcode_minus_L: Not really in the search PATH,
8191 # but as the default location of the library.
8192 hardcode_minus_L=yes
8193 ;;
8194 *)
8195 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8196 hardcode_libdir_separator=:
8197 hardcode_direct=yes
8198 export_dynamic_flag_spec='${wl}-E'
8199
8200 # hardcode_minus_L: Not really in the search PATH,
8201 # but as the default location of the library.
8202 hardcode_minus_L=yes
8203 ;;
8204 esac
8205 fi
8206 ;;
8207
8208 irix5* | irix6* | nonstopux*)
8209 if test "$GCC" = yes; then
8210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8211 else
8212 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8213 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8214 fi
8215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8216 hardcode_libdir_separator=:
8217 link_all_deplibs=yes
8218 ;;
8219
8220 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8223 else
8224 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8225 fi
8226 hardcode_libdir_flag_spec='-R$libdir'
8227 hardcode_direct=yes
8228 hardcode_shlibpath_var=no
8229 ;;
8230
8231 newsos6)
8232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8233 hardcode_direct=yes
8234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8235 hardcode_libdir_separator=:
8236 hardcode_shlibpath_var=no
8237 ;;
8238
8239 openbsd*)
8240 hardcode_direct=yes
8241 hardcode_shlibpath_var=no
8242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8243 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8245 export_dynamic_flag_spec='${wl}-E'
8246 else
8247 case $host_os in
8248 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8250 hardcode_libdir_flag_spec='-R$libdir'
8251 ;;
8252 *)
8253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8255 ;;
8256 esac
8257 fi
8258 ;;
8259
8260 os2*)
8261 hardcode_libdir_flag_spec='-L$libdir'
8262 hardcode_minus_L=yes
8263 allow_undefined_flag=unsupported
8264 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8265 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8266 ;;
8267
8268 osf3*)
8269 if test "$GCC" = yes; then
8270 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8271 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8272 else
8273 allow_undefined_flag=' -expect_unresolved \*'
8274 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8275 fi
8276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8277 hardcode_libdir_separator=:
8278 ;;
8279
8280 osf4* | osf5*) # as osf3* with the addition of -msym flag
8281 if test "$GCC" = yes; then
8282 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8283 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8285 else
8286 allow_undefined_flag=' -expect_unresolved \*'
8287 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8288 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8289 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8290
8291 # Both c and cxx compiler support -rpath directly
8292 hardcode_libdir_flag_spec='-rpath $libdir'
8293 fi
8294 hardcode_libdir_separator=:
8295 ;;
8296
8297 sco3.2v5*)
8298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8299 hardcode_shlibpath_var=no
8300 export_dynamic_flag_spec='${wl}-Bexport'
8301 runpath_var=LD_RUN_PATH
8302 hardcode_runpath_var=yes
8303 ;;
8304
8305 solaris*)
8306 no_undefined_flag=' -z text'
8307 if test "$GCC" = yes; then
8308 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8310 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8311 else
8312 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8313 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8315 fi
8316 hardcode_libdir_flag_spec='-R$libdir'
8317 hardcode_shlibpath_var=no
8318 case $host_os in
8319 solaris2.[0-5] | solaris2.[0-5].*) ;;
8320 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8321 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8322 esac
8323 link_all_deplibs=yes
8324 ;;
8325
8326 sunos4*)
8327 if test "x$host_vendor" = xsequent; then
8328 # Use $CC to link under sequent, because it throws in some extra .o
8329 # files that make .init and .fini sections work.
8330 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8331 else
8332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8333 fi
8334 hardcode_libdir_flag_spec='-L$libdir'
8335 hardcode_direct=yes
8336 hardcode_minus_L=yes
8337 hardcode_shlibpath_var=no
8338 ;;
8339
8340 sysv4)
8341 case $host_vendor in
8342 sni)
8343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8344 hardcode_direct=yes # is this really true???
8345 ;;
8346 siemens)
8347 ## LD is ld it makes a PLAMLIB
8348 ## CC just makes a GrossModule.
8349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8350 reload_cmds='$CC -r -o $output$reload_objs'
8351 hardcode_direct=no
8352 ;;
8353 motorola)
8354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8356 ;;
8357 esac
8358 runpath_var='LD_RUN_PATH'
8359 hardcode_shlibpath_var=no
8360 ;;
8361
8362 sysv4.3*)
8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364 hardcode_shlibpath_var=no
8365 export_dynamic_flag_spec='-Bexport'
8366 ;;
8367
8368 sysv4*MP*)
8369 if test -d /usr/nec; then
8370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371 hardcode_shlibpath_var=no
8372 runpath_var=LD_RUN_PATH
8373 hardcode_runpath_var=yes
8374 ld_shlibs=yes
8375 fi
8376 ;;
8377
8378 sysv4.2uw2*)
8379 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8380 hardcode_direct=yes
8381 hardcode_minus_L=no
8382 hardcode_shlibpath_var=no
8383 hardcode_runpath_var=yes
8384 runpath_var=LD_RUN_PATH
8385 ;;
8386
8387 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8388 no_undefined_flag='${wl}-z ${wl}text'
8389 if test "$GCC" = yes; then
8390 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8391 else
8392 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8393 fi
8394 runpath_var='LD_RUN_PATH'
8395 hardcode_shlibpath_var=no
8396 ;;
8397
8398 sysv5*)
8399 no_undefined_flag=' -z text'
8400 # $CC -shared without GNU ld will not create a library from C++
8401 # object files and a static libstdc++, better avoid it by now
8402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8403 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8405 hardcode_libdir_flag_spec=
8406 hardcode_shlibpath_var=no
8407 runpath_var='LD_RUN_PATH'
8408 ;;
8409
8410 uts4*)
8411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8412 hardcode_libdir_flag_spec='-L$libdir'
8413 hardcode_shlibpath_var=no
8414 ;;
8415
8416 *)
8417 ld_shlibs=no
8418 ;;
8419 esac
8420 fi
8421
8422 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8423 echo "${ECHO_T}$ld_shlibs" >&6
8424 test "$ld_shlibs" = no && can_build_shared=no
8425
8426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8427 if test "$GCC" = yes; then
8428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8429 fi
8430
8431 #
8432 # Do we need to explicitly link libc?
8433 #
8434 case "x$archive_cmds_need_lc" in
8435 x|xyes)
8436 # Assume -lc should be added
8437 archive_cmds_need_lc=yes
8438
8439 if test "$enable_shared" = yes && test "$GCC" = yes; then
8440 case $archive_cmds in
8441 *'~'*)
8442 # FIXME: we may have to deal with multi-command sequences.
8443 ;;
8444 '$CC '*)
8445 # Test whether the compiler implicitly links with -lc since on some
8446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8447 # to ld, don't add -lc before -lgcc.
8448 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8450 $rm conftest*
8451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8452
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } 2>conftest.err; then
8458 soname=conftest
8459 lib=conftest
8460 libobjs=conftest.$ac_objext
8461 deplibs=
8462 wl=$lt_prog_compiler_wl
8463 compiler_flags=-v
8464 linker_flags=-v
8465 verstring=
8466 output_objdir=.
8467 libname=conftest
8468 lt_save_allow_undefined_flag=$allow_undefined_flag
8469 allow_undefined_flag=
8470 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8471 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }
8475 then
8476 archive_cmds_need_lc=no
8477 else
8478 archive_cmds_need_lc=yes
8479 fi
8480 allow_undefined_flag=$lt_save_allow_undefined_flag
8481 else
8482 cat conftest.err 1>&5
8483 fi
8484 $rm conftest*
8485 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8486 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8487 ;;
8488 esac
8489 fi
8490 ;;
8491 esac
8492
8493 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8494 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8495 library_names_spec=
8496 libname_spec='lib$name'
8497 soname_spec=
8498 shrext_cmds=".so"
8499 postinstall_cmds=
8500 postuninstall_cmds=
8501 finish_cmds=
8502 finish_eval=
8503 shlibpath_var=
8504 shlibpath_overrides_runpath=unknown
8505 version_type=none
8506 dynamic_linker="$host_os ld.so"
8507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8508 if test "$GCC" = yes; then
8509 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8510 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8511 # if the path contains ";" then we assume it to be the separator
8512 # otherwise default to the standard path separator (i.e. ":") - it is
8513 # assumed that no part of a normal pathname contains ";" but that should
8514 # okay in the real world where ";" in dirpaths is itself problematic.
8515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8516 else
8517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8518 fi
8519 else
8520 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8521 fi
8522 need_lib_prefix=unknown
8523 hardcode_into_libs=no
8524
8525 # when you set need_version to no, make sure it does not cause -set_version
8526 # flags to be left without arguments
8527 need_version=unknown
8528
8529 case $host_os in
8530 aix3*)
8531 version_type=linux
8532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8533 shlibpath_var=LIBPATH
8534
8535 # AIX 3 has no versioning support, so we append a major version to the name.
8536 soname_spec='${libname}${release}${shared_ext}$major'
8537 ;;
8538
8539 aix4* | aix5*)
8540 version_type=linux
8541 need_lib_prefix=no
8542 need_version=no
8543 hardcode_into_libs=yes
8544 if test "$host_cpu" = ia64; then
8545 # AIX 5 supports IA64
8546 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8547 shlibpath_var=LD_LIBRARY_PATH
8548 else
8549 # With GCC up to 2.95.x, collect2 would create an import file
8550 # for dependence libraries. The import file would start with
8551 # the line `#! .'. This would cause the generated library to
8552 # depend on `.', always an invalid library. This was fixed in
8553 # development snapshots of GCC prior to 3.0.
8554 case $host_os in
8555 aix4 | aix4.[01] | aix4.[01].*)
8556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8557 echo ' yes '
8558 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8559 :
8560 else
8561 can_build_shared=no
8562 fi
8563 ;;
8564 esac
8565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8566 # soname into executable. Probably we can add versioning support to
8567 # collect2, so additional links can be useful in future.
8568 if test "$aix_use_runtimelinking" = yes; then
8569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8570 # instead of lib<name>.a to let people know that these are not
8571 # typical AIX shared libraries.
8572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8573 else
8574 # We preserve .a as extension for shared libraries through AIX4.2
8575 # and later when we are not doing run time linking.
8576 library_names_spec='${libname}${release}.a $libname.a'
8577 soname_spec='${libname}${release}${shared_ext}$major'
8578 fi
8579 shlibpath_var=LIBPATH
8580 fi
8581 ;;
8582
8583 amigaos*)
8584 library_names_spec='$libname.ixlibrary $libname.a'
8585 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8586 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8587 ;;
8588
8589 beos*)
8590 library_names_spec='${libname}${shared_ext}'
8591 dynamic_linker="$host_os ld.so"
8592 shlibpath_var=LIBRARY_PATH
8593 ;;
8594
8595 bsdi4*)
8596 version_type=linux
8597 need_version=no
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8601 shlibpath_var=LD_LIBRARY_PATH
8602 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8603 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8604 # the default ld.so.conf also contains /usr/contrib/lib and
8605 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8606 # libtool to hard-code these into programs
8607 ;;
8608
8609 cygwin* | mingw* | pw32*)
8610 version_type=windows
8611 shrext_cmds=".dll"
8612 need_version=no
8613 need_lib_prefix=no
8614
8615 case $GCC,$host_os in
8616 yes,cygwin* | yes,mingw* | yes,pw32*)
8617 library_names_spec='$libname.dll.a'
8618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8619 postinstall_cmds='base_file=`basename \${file}`~
8620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8621 dldir=$destdir/`dirname \$dlpath`~
8622 test -d \$dldir || mkdir -p \$dldir~
8623 $install_prog $dir/$dlname \$dldir/$dlname'
8624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8625 dlpath=$dir/\$dldll~
8626 $rm \$dlpath'
8627 shlibpath_overrides_runpath=yes
8628
8629 case $host_os in
8630 cygwin*)
8631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8633 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8634 ;;
8635 mingw*)
8636 # MinGW DLLs use traditional 'lib' prefix
8637 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8638 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8639 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8640 # It is most probably a Windows format PATH printed by
8641 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8642 # path with ; separators, and with drive letters. We can handle the
8643 # drive letters (cygwin fileutils understands them), so leave them,
8644 # especially as we might pass files found there to a mingw objdump,
8645 # which wouldn't understand a cygwinified path. Ahh.
8646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8647 else
8648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8649 fi
8650 ;;
8651 pw32*)
8652 # pw32 DLLs use 'pw' prefix rather than 'lib'
8653 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8654 ;;
8655 esac
8656 ;;
8657
8658 *)
8659 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8660 ;;
8661 esac
8662 dynamic_linker='Win32 ld.exe'
8663 # FIXME: first we should search . and the directory the executable is in
8664 shlibpath_var=PATH
8665 ;;
8666
8667 darwin* | rhapsody*)
8668 dynamic_linker="$host_os dyld"
8669 version_type=darwin
8670 need_lib_prefix=no
8671 need_version=no
8672 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8673 soname_spec='${libname}${release}${major}$shared_ext'
8674 shlibpath_overrides_runpath=yes
8675 shlibpath_var=DYLD_LIBRARY_PATH
8676 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8677 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8678 if test "$GCC" = yes; then
8679 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8680 else
8681 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8682 fi
8683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8684 ;;
8685
8686 dgux*)
8687 version_type=linux
8688 need_lib_prefix=no
8689 need_version=no
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 ;;
8694
8695 freebsd1*)
8696 dynamic_linker=no
8697 ;;
8698
8699 kfreebsd*-gnu)
8700 version_type=linux
8701 need_lib_prefix=no
8702 need_version=no
8703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8704 soname_spec='${libname}${release}${shared_ext}$major'
8705 shlibpath_var=LD_LIBRARY_PATH
8706 shlibpath_overrides_runpath=no
8707 hardcode_into_libs=yes
8708 dynamic_linker='GNU ld.so'
8709 ;;
8710
8711 freebsd*)
8712 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8713 version_type=freebsd-$objformat
8714 case $version_type in
8715 freebsd-elf*)
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8717 need_version=no
8718 need_lib_prefix=no
8719 ;;
8720 freebsd-*)
8721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8722 need_version=yes
8723 ;;
8724 esac
8725 shlibpath_var=LD_LIBRARY_PATH
8726 case $host_os in
8727 freebsd2*)
8728 shlibpath_overrides_runpath=yes
8729 ;;
8730 freebsd3.01* | freebsdelf3.01*)
8731 shlibpath_overrides_runpath=yes
8732 hardcode_into_libs=yes
8733 ;;
8734 *) # from 3.2 on
8735 shlibpath_overrides_runpath=no
8736 hardcode_into_libs=yes
8737 ;;
8738 esac
8739 ;;
8740
8741 gnu*)
8742 version_type=linux
8743 need_lib_prefix=no
8744 need_version=no
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8748 hardcode_into_libs=yes
8749 ;;
8750
8751 hpux9* | hpux10* | hpux11*)
8752 # Give a soname corresponding to the major version so that dld.sl refuses to
8753 # link against other versions.
8754 version_type=sunos
8755 need_lib_prefix=no
8756 need_version=no
8757 case "$host_cpu" in
8758 ia64*)
8759 shrext_cmds='.so'
8760 hardcode_into_libs=yes
8761 dynamic_linker="$host_os dld.so"
8762 shlibpath_var=LD_LIBRARY_PATH
8763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 if test "X$HPUX_IA64_MODE" = X32; then
8767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8768 else
8769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8770 fi
8771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8772 ;;
8773 hppa*64*)
8774 shrext_cmds='.sl'
8775 hardcode_into_libs=yes
8776 dynamic_linker="$host_os dld.sl"
8777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8783 ;;
8784 *)
8785 shrext_cmds='.sl'
8786 dynamic_linker="$host_os dld.sl"
8787 shlibpath_var=SHLIB_PATH
8788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790 soname_spec='${libname}${release}${shared_ext}$major'
8791 ;;
8792 esac
8793 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8794 postinstall_cmds='chmod 555 $lib'
8795 ;;
8796
8797 irix5* | irix6* | nonstopux*)
8798 case $host_os in
8799 nonstopux*) version_type=nonstopux ;;
8800 *)
8801 if test "$lt_cv_prog_gnu_ld" = yes; then
8802 version_type=linux
8803 else
8804 version_type=irix
8805 fi ;;
8806 esac
8807 need_lib_prefix=no
8808 need_version=no
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8811 case $host_os in
8812 irix5* | nonstopux*)
8813 libsuff= shlibsuff=
8814 ;;
8815 *)
8816 case $LD in # libtool.m4 will add one of these switches to LD
8817 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8818 libsuff= shlibsuff= libmagic=32-bit;;
8819 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8820 libsuff=32 shlibsuff=N32 libmagic=N32;;
8821 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8822 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8823 *) libsuff= shlibsuff= libmagic=never-match;;
8824 esac
8825 ;;
8826 esac
8827 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8828 shlibpath_overrides_runpath=no
8829 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8830 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8831 hardcode_into_libs=yes
8832 ;;
8833
8834 # No shared lib support for Linux oldld, aout, or coff.
8835 linux*oldld* | linux*aout* | linux*coff*)
8836 dynamic_linker=no
8837 ;;
8838
8839 # This must be Linux ELF.
8840 linux*)
8841 version_type=linux
8842 need_lib_prefix=no
8843 need_version=no
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8847 shlibpath_var=LD_LIBRARY_PATH
8848 shlibpath_overrides_runpath=no
8849 # This implies no fast_install, which is unacceptable.
8850 # Some rework will be needed to allow for fast_install
8851 # before this can be enabled.
8852 hardcode_into_libs=yes
8853
8854 # Append ld.so.conf contents to the search path
8855 if test -f /etc/ld.so.conf; then
8856 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8857 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8858 fi
8859
8860 # We used to test for /lib/ld.so.1 and disable shared libraries on
8861 # powerpc, because MkLinux only supported shared libraries with the
8862 # GNU dynamic linker. Since this was broken with cross compilers,
8863 # most powerpc-linux boxes support dynamic linking these days and
8864 # people can always --disable-shared, the test was removed, and we
8865 # assume the GNU/Linux dynamic linker is in use.
8866 dynamic_linker='GNU/Linux ld.so'
8867 ;;
8868
8869 netbsdelf*-gnu)
8870 version_type=linux
8871 need_lib_prefix=no
8872 need_version=no
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 shlibpath_var=LD_LIBRARY_PATH
8876 shlibpath_overrides_runpath=no
8877 hardcode_into_libs=yes
8878 dynamic_linker='NetBSD ld.elf_so'
8879 ;;
8880
8881 knetbsd*-gnu)
8882 version_type=linux
8883 need_lib_prefix=no
8884 need_version=no
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=no
8889 hardcode_into_libs=yes
8890 dynamic_linker='GNU ld.so'
8891 ;;
8892
8893 netbsd*)
8894 version_type=sunos
8895 need_lib_prefix=no
8896 need_version=no
8897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8900 dynamic_linker='NetBSD (a.out) ld.so'
8901 else
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 dynamic_linker='NetBSD ld.elf_so'
8905 fi
8906 shlibpath_var=LD_LIBRARY_PATH
8907 shlibpath_overrides_runpath=yes
8908 hardcode_into_libs=yes
8909 ;;
8910
8911 newsos6)
8912 version_type=linux
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=yes
8916 ;;
8917
8918 nto-qnx*)
8919 version_type=linux
8920 need_lib_prefix=no
8921 need_version=no
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=yes
8926 ;;
8927
8928 openbsd*)
8929 version_type=sunos
8930 need_lib_prefix=no
8931 need_version=yes
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8936 case $host_os in
8937 openbsd2.[89] | openbsd2.[89].*)
8938 shlibpath_overrides_runpath=no
8939 ;;
8940 *)
8941 shlibpath_overrides_runpath=yes
8942 ;;
8943 esac
8944 else
8945 shlibpath_overrides_runpath=yes
8946 fi
8947 ;;
8948
8949 os2*)
8950 libname_spec='$name'
8951 shrext_cmds=".dll"
8952 need_lib_prefix=no
8953 library_names_spec='$libname${shared_ext} $libname.a'
8954 dynamic_linker='OS/2 ld.exe'
8955 shlibpath_var=LIBPATH
8956 ;;
8957
8958 osf3* | osf4* | osf5*)
8959 version_type=osf
8960 need_lib_prefix=no
8961 need_version=no
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8967 ;;
8968
8969 sco3.2v5*)
8970 version_type=osf
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973 shlibpath_var=LD_LIBRARY_PATH
8974 ;;
8975
8976 solaris*)
8977 version_type=linux
8978 need_lib_prefix=no
8979 need_version=no
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=yes
8984 hardcode_into_libs=yes
8985 # ldd complains unless libraries are executable
8986 postinstall_cmds='chmod +x $lib'
8987 ;;
8988
8989 sunos4*)
8990 version_type=sunos
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes
8995 if test "$with_gnu_ld" = yes; then
8996 need_lib_prefix=no
8997 fi
8998 need_version=yes
8999 ;;
9000
9001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9002 version_type=linux
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 case $host_vendor in
9007 sni)
9008 shlibpath_overrides_runpath=no
9009 need_lib_prefix=no
9010 export_dynamic_flag_spec='${wl}-Blargedynsym'
9011 runpath_var=LD_RUN_PATH
9012 ;;
9013 siemens)
9014 need_lib_prefix=no
9015 ;;
9016 motorola)
9017 need_lib_prefix=no
9018 need_version=no
9019 shlibpath_overrides_runpath=no
9020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9021 ;;
9022 esac
9023 ;;
9024
9025 sysv4*MP*)
9026 if test -d /usr/nec ;then
9027 version_type=linux
9028 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9029 soname_spec='$libname${shared_ext}.$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 fi
9032 ;;
9033
9034 uts4*)
9035 version_type=linux
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 ;;
9040
9041 *)
9042 dynamic_linker=no
9043 ;;
9044 esac
9045 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9046 echo "${ECHO_T}$dynamic_linker" >&6
9047 test "$dynamic_linker" = no && can_build_shared=no
9048
9049 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9050 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9051 hardcode_action=
9052 if test -n "$hardcode_libdir_flag_spec" || \
9053 test -n "$runpath_var " || \
9054 test "X$hardcode_automatic"="Xyes" ; then
9055
9056 # We can hardcode non-existant directories.
9057 if test "$hardcode_direct" != no &&
9058 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9059 # have to relink, otherwise we might link with an installed library
9060 # when we should be linking with a yet-to-be-installed one
9061 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9062 test "$hardcode_minus_L" != no; then
9063 # Linking always hardcodes the temporary library directory.
9064 hardcode_action=relink
9065 else
9066 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9067 hardcode_action=immediate
9068 fi
9069 else
9070 # We cannot hardcode anything, or else we can only hardcode existing
9071 # directories.
9072 hardcode_action=unsupported
9073 fi
9074 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9075 echo "${ECHO_T}$hardcode_action" >&6
9076
9077 if test "$hardcode_action" = relink; then
9078 # Fast installation is not supported
9079 enable_fast_install=no
9080 elif test "$shlibpath_overrides_runpath" = yes ||
9081 test "$enable_shared" = no; then
9082 # Fast installation is not necessary
9083 enable_fast_install=needless
9084 fi
9085
9086 striplib=
9087 old_striplib=
9088 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9089 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9090 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9091 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9092 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9093 echo "$as_me:$LINENO: result: yes" >&5
9094 echo "${ECHO_T}yes" >&6
9095 else
9096 # FIXME - insert some real tests, host_os isn't really good enough
9097 case $host_os in
9098 darwin*)
9099 if test -n "$STRIP" ; then
9100 striplib="$STRIP -x"
9101 echo "$as_me:$LINENO: result: yes" >&5
9102 echo "${ECHO_T}yes" >&6
9103 else
9104 echo "$as_me:$LINENO: result: no" >&5
9105 echo "${ECHO_T}no" >&6
9106 fi
9107 ;;
9108 *)
9109 echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9111 ;;
9112 esac
9113 fi
9114
9115 if test "x$enable_dlopen" != xyes; then
9116 enable_dlopen=unknown
9117 enable_dlopen_self=unknown
9118 enable_dlopen_self_static=unknown
9119 else
9120 lt_cv_dlopen=no
9121 lt_cv_dlopen_libs=
9122
9123 case $host_os in
9124 beos*)
9125 lt_cv_dlopen="load_add_on"
9126 lt_cv_dlopen_libs=
9127 lt_cv_dlopen_self=yes
9128 ;;
9129
9130 mingw* | pw32*)
9131 lt_cv_dlopen="LoadLibrary"
9132 lt_cv_dlopen_libs=
9133 ;;
9134
9135 cygwin*)
9136 lt_cv_dlopen="dlopen"
9137 lt_cv_dlopen_libs=
9138 ;;
9139
9140 darwin*)
9141 # if libdl is installed we need to link against it
9142 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9143 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9144 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147 ac_check_lib_save_LIBS=$LIBS
9148 LIBS="-ldl $LIBS"
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155
9156 /* Override any gcc2 internal prototype to avoid an error. */
9157 #ifdef __cplusplus
9158 extern "C"
9159 #endif
9160 /* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9162 char dlopen ();
9163 int
9164 main ()
9165 {
9166 dlopen ();
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9173 (eval $ac_link) 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_cv_lib_dl_dlopen=yes
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 ac_cv_lib_dl_dlopen=no
9198 fi
9199 rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201 LIBS=$ac_check_lib_save_LIBS
9202 fi
9203 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9205 if test $ac_cv_lib_dl_dlopen = yes; then
9206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9207 else
9208
9209 lt_cv_dlopen="dyld"
9210 lt_cv_dlopen_libs=
9211 lt_cv_dlopen_self=yes
9212
9213 fi
9214
9215 ;;
9216
9217 *)
9218 echo "$as_me:$LINENO: checking for shl_load" >&5
9219 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9220 if test "${ac_cv_func_shl_load+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h. */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9231 #define shl_load innocuous_shl_load
9232
9233 /* System header to define __stub macros and hopefully few prototypes,
9234 which can conflict with char shl_load (); below.
9235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9236 <limits.h> exists even on freestanding compilers. */
9237
9238 #ifdef __STDC__
9239 # include <limits.h>
9240 #else
9241 # include <assert.h>
9242 #endif
9243
9244 #undef shl_load
9245
9246 /* Override any gcc2 internal prototype to avoid an error. */
9247 #ifdef __cplusplus
9248 extern "C"
9249 {
9250 #endif
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9253 char shl_load ();
9254 /* The GNU C library defines this for functions which it implements
9255 to always fail with ENOSYS. Some functions are actually named
9256 something starting with __ and the normal name is an alias. */
9257 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9258 choke me
9259 #else
9260 char (*f) () = shl_load;
9261 #endif
9262 #ifdef __cplusplus
9263 }
9264 #endif
9265
9266 int
9267 main ()
9268 {
9269 return f != shl_load;
9270 ;
9271 return 0;
9272 }
9273 _ACEOF
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276 (eval $ac_link) 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_func_shl_load=yes
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ac_cv_func_shl_load=no
9301 fi
9302 rm -f conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304 fi
9305 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9306 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9307 if test $ac_cv_func_shl_load = yes; then
9308 lt_cv_dlopen="shl_load"
9309 else
9310 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9311 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9312 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315 ac_check_lib_save_LIBS=$LIBS
9316 LIBS="-ldld $LIBS"
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h. */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9323
9324 /* Override any gcc2 internal prototype to avoid an error. */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 /* We use char because int might match the return type of a gcc2
9329 builtin and then its argument prototype would still apply. */
9330 char shl_load ();
9331 int
9332 main ()
9333 {
9334 shl_load ();
9335 ;
9336 return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341 (eval $ac_link) 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest$ac_exeext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_cv_lib_dld_shl_load=yes
9361 else
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9364
9365 ac_cv_lib_dld_shl_load=no
9366 fi
9367 rm -f conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
9369 LIBS=$ac_check_lib_save_LIBS
9370 fi
9371 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9372 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9373 if test $ac_cv_lib_dld_shl_load = yes; then
9374 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9375 else
9376 echo "$as_me:$LINENO: checking for dlopen" >&5
9377 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9378 if test "${ac_cv_func_dlopen+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9389 #define dlopen innocuous_dlopen
9390
9391 /* System header to define __stub macros and hopefully few prototypes,
9392 which can conflict with char dlopen (); below.
9393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9394 <limits.h> exists even on freestanding compilers. */
9395
9396 #ifdef __STDC__
9397 # include <limits.h>
9398 #else
9399 # include <assert.h>
9400 #endif
9401
9402 #undef dlopen
9403
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 #ifdef __cplusplus
9406 extern "C"
9407 {
9408 #endif
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411 char dlopen ();
9412 /* The GNU C library defines this for functions which it implements
9413 to always fail with ENOSYS. Some functions are actually named
9414 something starting with __ and the normal name is an alias. */
9415 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9416 choke me
9417 #else
9418 char (*f) () = dlopen;
9419 #endif
9420 #ifdef __cplusplus
9421 }
9422 #endif
9423
9424 int
9425 main ()
9426 {
9427 return f != dlopen;
9428 ;
9429 return 0;
9430 }
9431 _ACEOF
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434 (eval $ac_link) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_func_dlopen=yes
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458 ac_cv_func_dlopen=no
9459 fi
9460 rm -f conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462 fi
9463 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9464 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9465 if test $ac_cv_func_dlopen = yes; then
9466 lt_cv_dlopen="dlopen"
9467 else
9468 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 ac_check_lib_save_LIBS=$LIBS
9474 LIBS="-ldl $LIBS"
9475 cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h. */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481
9482 /* Override any gcc2 internal prototype to avoid an error. */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 /* We use char because int might match the return type of a gcc2
9487 builtin and then its argument prototype would still apply. */
9488 char dlopen ();
9489 int
9490 main ()
9491 {
9492 dlopen ();
9493 ;
9494 return 0;
9495 }
9496 _ACEOF
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499 (eval $ac_link) 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_cv_lib_dl_dlopen=yes
9519 else
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 ac_cv_lib_dl_dlopen=no
9524 fi
9525 rm -f conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9528 fi
9529 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9531 if test $ac_cv_lib_dl_dlopen = yes; then
9532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9533 else
9534 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9535 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9536 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539 ac_check_lib_save_LIBS=$LIBS
9540 LIBS="-lsvld $LIBS"
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547
9548 /* Override any gcc2 internal prototype to avoid an error. */
9549 #ifdef __cplusplus
9550 extern "C"
9551 #endif
9552 /* We use char because int might match the return type of a gcc2
9553 builtin and then its argument prototype would still apply. */
9554 char dlopen ();
9555 int
9556 main ()
9557 {
9558 dlopen ();
9559 ;
9560 return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_lib_svld_dlopen=yes
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_cv_lib_svld_dlopen=no
9590 fi
9591 rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9594 fi
9595 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9596 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9597 if test $ac_cv_lib_svld_dlopen = yes; then
9598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9599 else
9600 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9601 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9602 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605 ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-ldld $LIBS"
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613
9614 /* Override any gcc2 internal prototype to avoid an error. */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 /* We use char because int might match the return type of a gcc2
9619 builtin and then its argument prototype would still apply. */
9620 char dld_link ();
9621 int
9622 main ()
9623 {
9624 dld_link ();
9625 ;
9626 return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; } &&
9644 { ac_try='test -s conftest$ac_exeext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_lib_dld_dld_link=yes
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655 ac_cv_lib_dld_dld_link=no
9656 fi
9657 rm -f conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_check_lib_save_LIBS
9660 fi
9661 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9662 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9663 if test $ac_cv_lib_dld_dld_link = yes; then
9664 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9665 fi
9666
9667
9668 fi
9669
9670
9671 fi
9672
9673
9674 fi
9675
9676
9677 fi
9678
9679
9680 fi
9681
9682 ;;
9683 esac
9684
9685 if test "x$lt_cv_dlopen" != xno; then
9686 enable_dlopen=yes
9687 else
9688 enable_dlopen=no
9689 fi
9690
9691 case $lt_cv_dlopen in
9692 dlopen)
9693 save_CPPFLAGS="$CPPFLAGS"
9694 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9695
9696 save_LDFLAGS="$LDFLAGS"
9697 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9698
9699 save_LIBS="$LIBS"
9700 LIBS="$lt_cv_dlopen_libs $LIBS"
9701
9702 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9703 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9704 if test "${lt_cv_dlopen_self+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707 if test "$cross_compiling" = yes; then :
9708 lt_cv_dlopen_self=cross
9709 else
9710 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9711 lt_status=$lt_dlunknown
9712 cat > conftest.$ac_ext <<EOF
9713 #line 9714 "configure"
9714 #include "confdefs.h"
9715
9716 #if HAVE_DLFCN_H
9717 #include <dlfcn.h>
9718 #endif
9719
9720 #include <stdio.h>
9721
9722 #ifdef RTLD_GLOBAL
9723 # define LT_DLGLOBAL RTLD_GLOBAL
9724 #else
9725 # ifdef DL_GLOBAL
9726 # define LT_DLGLOBAL DL_GLOBAL
9727 # else
9728 # define LT_DLGLOBAL 0
9729 # endif
9730 #endif
9731
9732 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9733 find out it does not work in some platform. */
9734 #ifndef LT_DLLAZY_OR_NOW
9735 # ifdef RTLD_LAZY
9736 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9737 # else
9738 # ifdef DL_LAZY
9739 # define LT_DLLAZY_OR_NOW DL_LAZY
9740 # else
9741 # ifdef RTLD_NOW
9742 # define LT_DLLAZY_OR_NOW RTLD_NOW
9743 # else
9744 # ifdef DL_NOW
9745 # define LT_DLLAZY_OR_NOW DL_NOW
9746 # else
9747 # define LT_DLLAZY_OR_NOW 0
9748 # endif
9749 # endif
9750 # endif
9751 # endif
9752 #endif
9753
9754 #ifdef __cplusplus
9755 extern "C" void exit (int);
9756 #endif
9757
9758 void fnord() { int i=42;}
9759 int main ()
9760 {
9761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9762 int status = $lt_dlunknown;
9763
9764 if (self)
9765 {
9766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9767 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9768 /* dlclose (self); */
9769 }
9770
9771 exit (status);
9772 }
9773 EOF
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9779 (./conftest; exit; ) 2>/dev/null
9780 lt_status=$?
9781 case x$lt_status in
9782 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9783 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9784 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9785 esac
9786 else :
9787 # compilation failed
9788 lt_cv_dlopen_self=no
9789 fi
9790 fi
9791 rm -fr conftest*
9792
9793
9794 fi
9795 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9796 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9797
9798 if test "x$lt_cv_dlopen_self" = xyes; then
9799 LDFLAGS="$LDFLAGS $link_static_flag"
9800 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9801 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9802 if test "${lt_cv_dlopen_self_static+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805 if test "$cross_compiling" = yes; then :
9806 lt_cv_dlopen_self_static=cross
9807 else
9808 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9809 lt_status=$lt_dlunknown
9810 cat > conftest.$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9813
9814 #if HAVE_DLFCN_H
9815 #include <dlfcn.h>
9816 #endif
9817
9818 #include <stdio.h>
9819
9820 #ifdef RTLD_GLOBAL
9821 # define LT_DLGLOBAL RTLD_GLOBAL
9822 #else
9823 # ifdef DL_GLOBAL
9824 # define LT_DLGLOBAL DL_GLOBAL
9825 # else
9826 # define LT_DLGLOBAL 0
9827 # endif
9828 #endif
9829
9830 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9831 find out it does not work in some platform. */
9832 #ifndef LT_DLLAZY_OR_NOW
9833 # ifdef RTLD_LAZY
9834 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9835 # else
9836 # ifdef DL_LAZY
9837 # define LT_DLLAZY_OR_NOW DL_LAZY
9838 # else
9839 # ifdef RTLD_NOW
9840 # define LT_DLLAZY_OR_NOW RTLD_NOW
9841 # else
9842 # ifdef DL_NOW
9843 # define LT_DLLAZY_OR_NOW DL_NOW
9844 # else
9845 # define LT_DLLAZY_OR_NOW 0
9846 # endif
9847 # endif
9848 # endif
9849 # endif
9850 #endif
9851
9852 #ifdef __cplusplus
9853 extern "C" void exit (int);
9854 #endif
9855
9856 void fnord() { int i=42;}
9857 int main ()
9858 {
9859 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9860 int status = $lt_dlunknown;
9861
9862 if (self)
9863 {
9864 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9865 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9866 /* dlclose (self); */
9867 }
9868
9869 exit (status);
9870 }
9871 EOF
9872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873 (eval $ac_link) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9877 (./conftest; exit; ) 2>/dev/null
9878 lt_status=$?
9879 case x$lt_status in
9880 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9881 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9882 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9883 esac
9884 else :
9885 # compilation failed
9886 lt_cv_dlopen_self_static=no
9887 fi
9888 fi
9889 rm -fr conftest*
9890
9891
9892 fi
9893 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9894 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9895 fi
9896
9897 CPPFLAGS="$save_CPPFLAGS"
9898 LDFLAGS="$save_LDFLAGS"
9899 LIBS="$save_LIBS"
9900 ;;
9901 esac
9902
9903 case $lt_cv_dlopen_self in
9904 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9905 *) enable_dlopen_self=unknown ;;
9906 esac
9907
9908 case $lt_cv_dlopen_self_static in
9909 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9910 *) enable_dlopen_self_static=unknown ;;
9911 esac
9912 fi
9913
9914
9915 # Report which librarie types wil actually be built
9916 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9917 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9918 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9919 echo "${ECHO_T}$can_build_shared" >&6
9920
9921 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9922 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9923 test "$can_build_shared" = "no" && enable_shared=no
9924
9925 # On AIX, shared libraries and static libraries use the same namespace, and
9926 # are all built from PIC.
9927 case "$host_os" in
9928 aix3*)
9929 test "$enable_shared" = yes && enable_static=no
9930 if test -n "$RANLIB"; then
9931 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9932 postinstall_cmds='$RANLIB $lib'
9933 fi
9934 ;;
9935
9936 aix4* | aix5*)
9937 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9938 test "$enable_shared" = yes && enable_static=no
9939 fi
9940 ;;
9941 darwin* | rhapsody*)
9942 if test "$GCC" = yes; then
9943 archive_cmds_need_lc=no
9944 case "$host_os" in
9945 rhapsody* | darwin1.[012])
9946 allow_undefined_flag='-undefined suppress'
9947 ;;
9948 *) # Darwin 1.3 on
9949 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9950 allow_undefined_flag='-flat_namespace -undefined suppress'
9951 else
9952 case ${MACOSX_DEPLOYMENT_TARGET} in
9953 10.[012])
9954 allow_undefined_flag='-flat_namespace -undefined suppress'
9955 ;;
9956 10.*)
9957 allow_undefined_flag='-undefined dynamic_lookup'
9958 ;;
9959 esac
9960 fi
9961 ;;
9962 esac
9963 output_verbose_link_cmd='echo'
9964 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9965 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9966 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9967 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9968 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9969 hardcode_direct=no
9970 hardcode_automatic=yes
9971 hardcode_shlibpath_var=unsupported
9972 whole_archive_flag_spec='-all_load $convenience'
9973 link_all_deplibs=yes
9974 else
9975 ld_shlibs=no
9976 fi
9977 ;;
9978 esac
9979 echo "$as_me:$LINENO: result: $enable_shared" >&5
9980 echo "${ECHO_T}$enable_shared" >&6
9981
9982 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9983 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9984 # Make sure either enable_shared or enable_static is yes.
9985 test "$enable_shared" = yes || enable_static=yes
9986 echo "$as_me:$LINENO: result: $enable_static" >&5
9987 echo "${ECHO_T}$enable_static" >&6
9988
9989 # The else clause should only fire when bootstrapping the
9990 # libtool distribution, otherwise you forgot to ship ltmain.sh
9991 # with your package, and you will get complaints that there are
9992 # no rules to generate ltmain.sh.
9993 if test -f "$ltmain"; then
9994 # See if we are running on zsh, and set the options which allow our commands through
9995 # without removal of \ escapes.
9996 if test -n "${ZSH_VERSION+set}" ; then
9997 setopt NO_GLOB_SUBST
9998 fi
9999 # Now quote all the things that may contain metacharacters while being
10000 # careful not to overquote the AC_SUBSTed values. We take copies of the
10001 # variables and quote the copies for generation of the libtool script.
10002 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10003 SED SHELL STRIP \
10004 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10005 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10006 deplibs_check_method reload_flag reload_cmds need_locks \
10007 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10008 lt_cv_sys_global_symbol_to_c_name_address \
10009 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10010 old_postinstall_cmds old_postuninstall_cmds \
10011 compiler \
10012 CC \
10013 LD \
10014 lt_prog_compiler_wl \
10015 lt_prog_compiler_pic \
10016 lt_prog_compiler_static \
10017 lt_prog_compiler_no_builtin_flag \
10018 export_dynamic_flag_spec \
10019 thread_safe_flag_spec \
10020 whole_archive_flag_spec \
10021 enable_shared_with_static_runtimes \
10022 old_archive_cmds \
10023 old_archive_from_new_cmds \
10024 predep_objects \
10025 postdep_objects \
10026 predeps \
10027 postdeps \
10028 compiler_lib_search_path \
10029 archive_cmds \
10030 archive_expsym_cmds \
10031 postinstall_cmds \
10032 postuninstall_cmds \
10033 old_archive_from_expsyms_cmds \
10034 allow_undefined_flag \
10035 no_undefined_flag \
10036 export_symbols_cmds \
10037 hardcode_libdir_flag_spec \
10038 hardcode_libdir_flag_spec_ld \
10039 hardcode_libdir_separator \
10040 hardcode_automatic \
10041 module_cmds \
10042 module_expsym_cmds \
10043 lt_cv_prog_compiler_c_o \
10044 exclude_expsyms \
10045 include_expsyms; do
10046
10047 case $var in
10048 old_archive_cmds | \
10049 old_archive_from_new_cmds | \
10050 archive_cmds | \
10051 archive_expsym_cmds | \
10052 module_cmds | \
10053 module_expsym_cmds | \
10054 old_archive_from_expsyms_cmds | \
10055 export_symbols_cmds | \
10056 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10057 postinstall_cmds | postuninstall_cmds | \
10058 old_postinstall_cmds | old_postuninstall_cmds | \
10059 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10060 # Double-quote double-evaled strings.
10061 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10062 ;;
10063 *)
10064 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10065 ;;
10066 esac
10067 done
10068
10069 case $lt_echo in
10070 *'\$0 --fallback-echo"')
10071 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10072 ;;
10073 esac
10074
10075 cfgfile="${ofile}T"
10076 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10077 $rm -f "$cfgfile"
10078 { echo "$as_me:$LINENO: creating $ofile" >&5
10079 echo "$as_me: creating $ofile" >&6;}
10080
10081 cat <<__EOF__ >> "$cfgfile"
10082 #! $SHELL
10083
10084 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10085 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10086 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10087 #
10088 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10089 # Free Software Foundation, Inc.
10090 #
10091 # This file is part of GNU Libtool:
10092 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10093 #
10094 # This program is free software; you can redistribute it and/or modify
10095 # it under the terms of the GNU General Public License as published by
10096 # the Free Software Foundation; either version 2 of the License, or
10097 # (at your option) any later version.
10098 #
10099 # This program is distributed in the hope that it will be useful, but
10100 # WITHOUT ANY WARRANTY; without even the implied warranty of
10101 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10102 # General Public License for more details.
10103 #
10104 # You should have received a copy of the GNU General Public License
10105 # along with this program; if not, write to the Free Software
10106 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10107 #
10108 # As a special exception to the GNU General Public License, if you
10109 # distribute this file as part of a program that contains a
10110 # configuration script generated by Autoconf, you may include it under
10111 # the same distribution terms that you use for the rest of that program.
10112
10113 # A sed program that does not truncate output.
10114 SED=$lt_SED
10115
10116 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10117 Xsed="$SED -e s/^X//"
10118
10119 # The HP-UX ksh and POSIX shell print the target directory to stdout
10120 # if CDPATH is set.
10121 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10122
10123 # The names of the tagged configurations supported by this script.
10124 available_tags=
10125
10126 # ### BEGIN LIBTOOL CONFIG
10127
10128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10129
10130 # Shell to use when invoking shell scripts.
10131 SHELL=$lt_SHELL
10132
10133 # Whether or not to build shared libraries.
10134 build_libtool_libs=$enable_shared
10135
10136 # Whether or not to build static libraries.
10137 build_old_libs=$enable_static
10138
10139 # Whether or not to add -lc for building shared libraries.
10140 build_libtool_need_lc=$archive_cmds_need_lc
10141
10142 # Whether or not to disallow shared libs when runtime libs are static
10143 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10144
10145 # Whether or not to optimize for fast installation.
10146 fast_install=$enable_fast_install
10147
10148 # The host system.
10149 host_alias=$host_alias
10150 host=$host
10151
10152 # An echo program that does not interpret backslashes.
10153 echo=$lt_echo
10154
10155 # The archiver.
10156 AR=$lt_AR
10157 AR_FLAGS=$lt_AR_FLAGS
10158
10159 # A C compiler.
10160 LTCC=$lt_LTCC
10161
10162 # A language-specific compiler.
10163 CC=$lt_compiler
10164
10165 # Is the compiler the GNU C compiler?
10166 with_gcc=$GCC
10167
10168 # An ERE matcher.
10169 EGREP=$lt_EGREP
10170
10171 # The linker used to build libraries.
10172 LD=$lt_LD
10173
10174 # Whether we need hard or soft links.
10175 LN_S=$lt_LN_S
10176
10177 # A BSD-compatible nm program.
10178 NM=$lt_NM
10179
10180 # A symbol stripping program
10181 STRIP=$lt_STRIP
10182
10183 # Used to examine libraries when file_magic_cmd begins "file"
10184 MAGIC_CMD=$MAGIC_CMD
10185
10186 # Used on cygwin: DLL creation program.
10187 DLLTOOL="$DLLTOOL"
10188
10189 # Used on cygwin: object dumper.
10190 OBJDUMP="$OBJDUMP"
10191
10192 # Used on cygwin: assembler.
10193 AS="$AS"
10194
10195 # The name of the directory that contains temporary libtool files.
10196 objdir=$objdir
10197
10198 # How to create reloadable object files.
10199 reload_flag=$lt_reload_flag
10200 reload_cmds=$lt_reload_cmds
10201
10202 # How to pass a linker flag through the compiler.
10203 wl=$lt_lt_prog_compiler_wl
10204
10205 # Object file suffix (normally "o").
10206 objext="$ac_objext"
10207
10208 # Old archive suffix (normally "a").
10209 libext="$libext"
10210
10211 # Shared library suffix (normally ".so").
10212 shrext_cmds='$shrext_cmds'
10213
10214 # Executable file suffix (normally "").
10215 exeext="$exeext"
10216
10217 # Additional compiler flags for building library objects.
10218 pic_flag=$lt_lt_prog_compiler_pic
10219 pic_mode=$pic_mode
10220
10221 # What is the maximum length of a command?
10222 max_cmd_len=$lt_cv_sys_max_cmd_len
10223
10224 # Does compiler simultaneously support -c and -o options?
10225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10226
10227 # Must we lock files when doing compilation ?
10228 need_locks=$lt_need_locks
10229
10230 # Do we need the lib prefix for modules?
10231 need_lib_prefix=$need_lib_prefix
10232
10233 # Do we need a version for libraries?
10234 need_version=$need_version
10235
10236 # Whether dlopen is supported.
10237 dlopen_support=$enable_dlopen
10238
10239 # Whether dlopen of programs is supported.
10240 dlopen_self=$enable_dlopen_self
10241
10242 # Whether dlopen of statically linked programs is supported.
10243 dlopen_self_static=$enable_dlopen_self_static
10244
10245 # Compiler flag to prevent dynamic linking.
10246 link_static_flag=$lt_lt_prog_compiler_static
10247
10248 # Compiler flag to turn off builtin functions.
10249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10250
10251 # Compiler flag to allow reflexive dlopens.
10252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10253
10254 # Compiler flag to generate shared objects directly from archives.
10255 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10256
10257 # Compiler flag to generate thread-safe objects.
10258 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10259
10260 # Library versioning type.
10261 version_type=$version_type
10262
10263 # Format of library name prefix.
10264 libname_spec=$lt_libname_spec
10265
10266 # List of archive names. First name is the real one, the rest are links.
10267 # The last name is the one that the linker finds with -lNAME.
10268 library_names_spec=$lt_library_names_spec
10269
10270 # The coded name of the library, if different from the real name.
10271 soname_spec=$lt_soname_spec
10272
10273 # Commands used to build and install an old-style archive.
10274 RANLIB=$lt_RANLIB
10275 old_archive_cmds=$lt_old_archive_cmds
10276 old_postinstall_cmds=$lt_old_postinstall_cmds
10277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10278
10279 # Create an old-style archive from a shared archive.
10280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10281
10282 # Create a temporary old-style archive to link instead of a shared archive.
10283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10284
10285 # Commands used to build and install a shared archive.
10286 archive_cmds=$lt_archive_cmds
10287 archive_expsym_cmds=$lt_archive_expsym_cmds
10288 postinstall_cmds=$lt_postinstall_cmds
10289 postuninstall_cmds=$lt_postuninstall_cmds
10290
10291 # Commands used to build a loadable module (assumed same as above if empty)
10292 module_cmds=$lt_module_cmds
10293 module_expsym_cmds=$lt_module_expsym_cmds
10294
10295 # Commands to strip libraries.
10296 old_striplib=$lt_old_striplib
10297 striplib=$lt_striplib
10298
10299 # Dependencies to place before the objects being linked to create a
10300 # shared library.
10301 predep_objects=$lt_predep_objects
10302
10303 # Dependencies to place after the objects being linked to create a
10304 # shared library.
10305 postdep_objects=$lt_postdep_objects
10306
10307 # Dependencies to place before the objects being linked to create a
10308 # shared library.
10309 predeps=$lt_predeps
10310
10311 # Dependencies to place after the objects being linked to create a
10312 # shared library.
10313 postdeps=$lt_postdeps
10314
10315 # The library search path used internally by the compiler when linking
10316 # a shared library.
10317 compiler_lib_search_path=$lt_compiler_lib_search_path
10318
10319 # Method to check whether dependent libraries are shared objects.
10320 deplibs_check_method=$lt_deplibs_check_method
10321
10322 # Command to use when deplibs_check_method == file_magic.
10323 file_magic_cmd=$lt_file_magic_cmd
10324
10325 # Flag that allows shared libraries with undefined symbols to be built.
10326 allow_undefined_flag=$lt_allow_undefined_flag
10327
10328 # Flag that forces no undefined symbols.
10329 no_undefined_flag=$lt_no_undefined_flag
10330
10331 # Commands used to finish a libtool library installation in a directory.
10332 finish_cmds=$lt_finish_cmds
10333
10334 # Same as above, but a single script fragment to be evaled but not shown.
10335 finish_eval=$lt_finish_eval
10336
10337 # Take the output of nm and produce a listing of raw symbols and C names.
10338 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10339
10340 # Transform the output of nm in a proper C declaration
10341 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10342
10343 # Transform the output of nm in a C name address pair
10344 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10345
10346 # This is the shared library runtime path variable.
10347 runpath_var=$runpath_var
10348
10349 # This is the shared library path variable.
10350 shlibpath_var=$shlibpath_var
10351
10352 # Is shlibpath searched before the hard-coded library search path?
10353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10354
10355 # How to hardcode a shared library path into an executable.
10356 hardcode_action=$hardcode_action
10357
10358 # Whether we should hardcode library paths into libraries.
10359 hardcode_into_libs=$hardcode_into_libs
10360
10361 # Flag to hardcode \$libdir into a binary during linking.
10362 # This must work even if \$libdir does not exist.
10363 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10364
10365 # If ld is used when linking, flag to hardcode \$libdir into
10366 # a binary during linking. This must work even if \$libdir does
10367 # not exist.
10368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10369
10370 # Whether we need a single -rpath flag with a separated argument.
10371 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10372
10373 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10374 # resulting binary.
10375 hardcode_direct=$hardcode_direct
10376
10377 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10378 # resulting binary.
10379 hardcode_minus_L=$hardcode_minus_L
10380
10381 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10382 # the resulting binary.
10383 hardcode_shlibpath_var=$hardcode_shlibpath_var
10384
10385 # Set to yes if building a shared library automatically hardcodes DIR into the library
10386 # and all subsequent libraries and executables linked against it.
10387 hardcode_automatic=$hardcode_automatic
10388
10389 # Variables whose values should be saved in libtool wrapper scripts and
10390 # restored at relink time.
10391 variables_saved_for_relink="$variables_saved_for_relink"
10392
10393 # Whether libtool must link a program against all its dependency libraries.
10394 link_all_deplibs=$link_all_deplibs
10395
10396 # Compile-time system search path for libraries
10397 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10398
10399 # Run-time system search path for libraries
10400 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10401
10402 # Fix the shell variable \$srcfile for the compiler.
10403 fix_srcfile_path="$fix_srcfile_path"
10404
10405 # Set to yes if exported symbols are required.
10406 always_export_symbols=$always_export_symbols
10407
10408 # The commands to list exported symbols.
10409 export_symbols_cmds=$lt_export_symbols_cmds
10410
10411 # The commands to extract the exported symbol list from a shared archive.
10412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10413
10414 # Symbols that should not be listed in the preloaded symbols.
10415 exclude_expsyms=$lt_exclude_expsyms
10416
10417 # Symbols that must always be exported.
10418 include_expsyms=$lt_include_expsyms
10419
10420 # ### END LIBTOOL CONFIG
10421
10422 __EOF__
10423
10424
10425 case $host_os in
10426 aix3*)
10427 cat <<\EOF >> "$cfgfile"
10428
10429 # AIX sometimes has problems with the GCC collect2 program. For some
10430 # reason, if we set the COLLECT_NAMES environment variable, the problems
10431 # vanish in a puff of smoke.
10432 if test "X${COLLECT_NAMES+set}" != Xset; then
10433 COLLECT_NAMES=
10434 export COLLECT_NAMES
10435 fi
10436 EOF
10437 ;;
10438 esac
10439
10440 # We use sed instead of cat because bash on DJGPP gets confused if
10441 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10442 # text mode, it properly converts lines to CR/LF. This bash problem
10443 # is reportedly fixed, but why not run on old versions too?
10444 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10445
10446 mv -f "$cfgfile" "$ofile" || \
10447 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10448 chmod +x "$ofile"
10449
10450 else
10451 # If there is no Makefile yet, we rely on a make rule to execute
10452 # `config.status --recheck' to rerun these tests and create the
10453 # libtool script then.
10454 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10455 if test -f "$ltmain_in"; then
10456 test -f Makefile && make "$ltmain"
10457 fi
10458 fi
10459
10460
10461 ac_ext=c
10462 ac_cpp='$CPP $CPPFLAGS'
10463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466
10467 CC="$lt_save_CC"
10468
10469
10470 # Check whether --with-tags or --without-tags was given.
10471 if test "${with_tags+set}" = set; then
10472 withval="$with_tags"
10473 tagnames="$withval"
10474 fi;
10475
10476 if test -f "$ltmain" && test -n "$tagnames"; then
10477 if test ! -f "${ofile}"; then
10478 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10479 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10480 fi
10481
10482 if test -z "$LTCC"; then
10483 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10484 if test -z "$LTCC"; then
10485 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10486 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10487 else
10488 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10489 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10490 fi
10491 fi
10492
10493 # Extract list of available tagged configurations in $ofile.
10494 # Note that this assumes the entire list is on one line.
10495 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10496
10497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10498 for tagname in $tagnames; do
10499 IFS="$lt_save_ifs"
10500 # Check whether tagname contains only valid characters
10501 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10502 "") ;;
10503 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10504 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10505 { (exit 1); exit 1; }; }
10506 ;;
10507 esac
10508
10509 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10510 then
10511 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10512 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10513 { (exit 1); exit 1; }; }
10514 fi
10515
10516 # Update the list of available tags.
10517 if test -n "$tagname"; then
10518 echo appending configuration tag \"$tagname\" to $ofile
10519
10520 case $tagname in
10521 CXX)
10522 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10523 ac_ext=cc
10524 ac_cpp='$CXXCPP $CPPFLAGS'
10525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10528
10529
10530
10531
10532 archive_cmds_need_lc_CXX=no
10533 allow_undefined_flag_CXX=
10534 always_export_symbols_CXX=no
10535 archive_expsym_cmds_CXX=
10536 export_dynamic_flag_spec_CXX=
10537 hardcode_direct_CXX=no
10538 hardcode_libdir_flag_spec_CXX=
10539 hardcode_libdir_flag_spec_ld_CXX=
10540 hardcode_libdir_separator_CXX=
10541 hardcode_minus_L_CXX=no
10542 hardcode_automatic_CXX=no
10543 module_cmds_CXX=
10544 module_expsym_cmds_CXX=
10545 link_all_deplibs_CXX=unknown
10546 old_archive_cmds_CXX=$old_archive_cmds
10547 no_undefined_flag_CXX=
10548 whole_archive_flag_spec_CXX=
10549 enable_shared_with_static_runtimes_CXX=no
10550
10551 # Dependencies to place before and after the object being linked:
10552 predep_objects_CXX=
10553 postdep_objects_CXX=
10554 predeps_CXX=
10555 postdeps_CXX=
10556 compiler_lib_search_path_CXX=
10557
10558 # Source file extension for C++ test sources.
10559 ac_ext=cc
10560
10561 # Object file extension for compiled C++ test sources.
10562 objext=o
10563 objext_CXX=$objext
10564
10565 # Code to be used in simple compile tests
10566 lt_simple_compile_test_code="int some_variable = 0;\n"
10567
10568 # Code to be used in simple link tests
10569 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10570
10571 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10572
10573 # If no C compiler was specified, use CC.
10574 LTCC=${LTCC-"$CC"}
10575
10576 # Allow CC to be a program name with arguments.
10577 compiler=$CC
10578
10579
10580 # Allow CC to be a program name with arguments.
10581 lt_save_CC=$CC
10582 lt_save_LD=$LD
10583 lt_save_GCC=$GCC
10584 GCC=$GXX
10585 lt_save_with_gnu_ld=$with_gnu_ld
10586 lt_save_path_LD=$lt_cv_path_LD
10587 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10588 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10589 else
10590 unset lt_cv_prog_gnu_ld
10591 fi
10592 if test -n "${lt_cv_path_LDCXX+set}"; then
10593 lt_cv_path_LD=$lt_cv_path_LDCXX
10594 else
10595 unset lt_cv_path_LD
10596 fi
10597 test -z "${LDCXX+set}" || LD=$LDCXX
10598 CC=${CXX-"c++"}
10599 compiler=$CC
10600 compiler_CXX=$CC
10601 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10602
10603 # We don't want -fno-exception wen compiling C++ code, so set the
10604 # no_builtin_flag separately
10605 if test "$GXX" = yes; then
10606 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10607 else
10608 lt_prog_compiler_no_builtin_flag_CXX=
10609 fi
10610
10611 if test "$GXX" = yes; then
10612 # Set up default GNU C++ configuration
10613
10614
10615 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10616 if test "${with_gnu_ld+set}" = set; then
10617 withval="$with_gnu_ld"
10618 test "$withval" = no || with_gnu_ld=yes
10619 else
10620 with_gnu_ld=no
10621 fi;
10622 ac_prog=ld
10623 if test "$GCC" = yes; then
10624 # Check if gcc -print-prog-name=ld gives a path.
10625 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10626 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10627 case $host in
10628 *-*-mingw*)
10629 # gcc leaves a trailing carriage return which upsets mingw
10630 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10631 *)
10632 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10633 esac
10634 case $ac_prog in
10635 # Accept absolute paths.
10636 [\\/]* | ?:[\\/]*)
10637 re_direlt='/[^/][^/]*/\.\./'
10638 # Canonicalize the pathname of ld
10639 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10640 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10641 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10642 done
10643 test -z "$LD" && LD="$ac_prog"
10644 ;;
10645 "")
10646 # If it fails, then pretend we aren't using GCC.
10647 ac_prog=ld
10648 ;;
10649 *)
10650 # If it is relative, then search for the first ld in PATH.
10651 with_gnu_ld=unknown
10652 ;;
10653 esac
10654 elif test "$with_gnu_ld" = yes; then
10655 echo "$as_me:$LINENO: checking for GNU ld" >&5
10656 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10657 else
10658 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10659 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10660 fi
10661 if test "${lt_cv_path_LD+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664 if test -z "$LD"; then
10665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10666 for ac_dir in $PATH; do
10667 IFS="$lt_save_ifs"
10668 test -z "$ac_dir" && ac_dir=.
10669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10670 lt_cv_path_LD="$ac_dir/$ac_prog"
10671 # Check to see if the program is GNU ld. I'd rather use --version,
10672 # but apparently some GNU ld's only accept -v.
10673 # Break only if it was the GNU/non-GNU ld that we prefer.
10674 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10675 *GNU* | *'with BFD'*)
10676 test "$with_gnu_ld" != no && break
10677 ;;
10678 *)
10679 test "$with_gnu_ld" != yes && break
10680 ;;
10681 esac
10682 fi
10683 done
10684 IFS="$lt_save_ifs"
10685 else
10686 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10687 fi
10688 fi
10689
10690 LD="$lt_cv_path_LD"
10691 if test -n "$LD"; then
10692 echo "$as_me:$LINENO: result: $LD" >&5
10693 echo "${ECHO_T}$LD" >&6
10694 else
10695 echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6
10697 fi
10698 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10699 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10700 { (exit 1); exit 1; }; }
10701 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10702 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10703 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10707 case `$LD -v 2>&1 </dev/null` in
10708 *GNU* | *'with BFD'*)
10709 lt_cv_prog_gnu_ld=yes
10710 ;;
10711 *)
10712 lt_cv_prog_gnu_ld=no
10713 ;;
10714 esac
10715 fi
10716 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10717 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10718 with_gnu_ld=$lt_cv_prog_gnu_ld
10719
10720
10721
10722 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10723 # archiving commands below assume that GNU ld is being used.
10724 if test "$with_gnu_ld" = yes; then
10725 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10726 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10727
10728 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10730
10731 # If archive_cmds runs LD, not CC, wlarc should be empty
10732 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10733 # investigate it a little bit more. (MM)
10734 wlarc='${wl}'
10735
10736 # ancient GNU ld didn't support --whole-archive et. al.
10737 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10738 grep 'no-whole-archive' > /dev/null; then
10739 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10740 else
10741 whole_archive_flag_spec_CXX=
10742 fi
10743 else
10744 with_gnu_ld=no
10745 wlarc=
10746
10747 # A generic and very simple default shared library creation
10748 # command for GNU C++ for the case where it uses the native
10749 # linker, instead of GNU ld. If possible, this setting should
10750 # overridden to take advantage of the native linker features on
10751 # the platform it is being used on.
10752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10753 fi
10754
10755 # Commands to make compiler produce verbose output that lists
10756 # what "hidden" libraries, object files and flags are used when
10757 # linking a shared library.
10758 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10759
10760 else
10761 GXX=no
10762 with_gnu_ld=no
10763 wlarc=
10764 fi
10765
10766 # PORTME: fill in a description of your system's C++ link characteristics
10767 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10768 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10769 ld_shlibs_CXX=yes
10770 case $host_os in
10771 aix3*)
10772 # FIXME: insert proper C++ library support
10773 ld_shlibs_CXX=no
10774 ;;
10775 aix4* | aix5*)
10776 if test "$host_cpu" = ia64; then
10777 # On IA64, the linker does run time linking by default, so we don't
10778 # have to do anything special.
10779 aix_use_runtimelinking=no
10780 exp_sym_flag='-Bexport'
10781 no_entry_flag=""
10782 else
10783 aix_use_runtimelinking=no
10784
10785 # Test if we are trying to use run time linking or normal
10786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10787 # need to do runtime linking.
10788 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10789 for ld_flag in $LDFLAGS; do
10790 case $ld_flag in
10791 *-brtl*)
10792 aix_use_runtimelinking=yes
10793 break
10794 ;;
10795 esac
10796 done
10797 esac
10798
10799 exp_sym_flag='-bexport'
10800 no_entry_flag='-bnoentry'
10801 fi
10802
10803 # When large executables or shared objects are built, AIX ld can
10804 # have problems creating the table of contents. If linking a library
10805 # or program results in "error TOC overflow" add -mminimal-toc to
10806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10808
10809 archive_cmds_CXX=''
10810 hardcode_direct_CXX=yes
10811 hardcode_libdir_separator_CXX=':'
10812 link_all_deplibs_CXX=yes
10813
10814 if test "$GXX" = yes; then
10815 case $host_os in aix4.012|aix4.012.*)
10816 # We only want to do this on AIX 4.2 and lower, the check
10817 # below for broken collect2 doesn't work under 4.3+
10818 collect2name=`${CC} -print-prog-name=collect2`
10819 if test -f "$collect2name" && \
10820 strings "$collect2name" | grep resolve_lib_name >/dev/null
10821 then
10822 # We have reworked collect2
10823 hardcode_direct_CXX=yes
10824 else
10825 # We have old collect2
10826 hardcode_direct_CXX=unsupported
10827 # It fails to find uninstalled libraries when the uninstalled
10828 # path is not listed in the libpath. Setting hardcode_minus_L
10829 # to unsupported forces relinking
10830 hardcode_minus_L_CXX=yes
10831 hardcode_libdir_flag_spec_CXX='-L$libdir'
10832 hardcode_libdir_separator_CXX=
10833 fi
10834 esac
10835 shared_flag='-shared'
10836 else
10837 # not using gcc
10838 if test "$host_cpu" = ia64; then
10839 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10840 # chokes on -Wl,-G. The following line is correct:
10841 shared_flag='-G'
10842 else
10843 if test "$aix_use_runtimelinking" = yes; then
10844 shared_flag='${wl}-G'
10845 else
10846 shared_flag='${wl}-bM:SRE'
10847 fi
10848 fi
10849 fi
10850
10851 # It seems that -bexpall does not export symbols beginning with
10852 # underscore (_), so it is better to generate a list of symbols to export.
10853 always_export_symbols_CXX=yes
10854 if test "$aix_use_runtimelinking" = yes; then
10855 # Warning - without using the other runtime loading flags (-brtl),
10856 # -berok will link without error, but may produce a broken library.
10857 allow_undefined_flag_CXX='-berok'
10858 # Determine the default libpath from the value encoded in an empty executable.
10859 cat >conftest.$ac_ext <<_ACEOF
10860 /* confdefs.h. */
10861 _ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10865
10866 int
10867 main ()
10868 {
10869
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876 (eval $ac_link) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest$ac_exeext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895
10896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10897 }'`
10898 # Check for a 64-bit object if we didn't find anything.
10899 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10900 }'`; fi
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 fi
10906 rm -f conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10909
10910 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10911
10912 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10913 else
10914 if test "$host_cpu" = ia64; then
10915 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10916 allow_undefined_flag_CXX="-z nodefs"
10917 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10918 else
10919 # Determine the default libpath from the value encoded in an empty executable.
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926
10927 int
10928 main ()
10929 {
10930
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 rm -f conftest.$ac_objext conftest$ac_exeext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10937 (eval $ac_link) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest$ac_exeext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956
10957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10958 }'`
10959 # Check for a 64-bit object if we didn't find anything.
10960 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10961 }'`; fi
10962 else
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966 fi
10967 rm -f conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10970
10971 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10972 # Warning - without using the other run time loading flags,
10973 # -berok will link without error, but may produce a broken library.
10974 no_undefined_flag_CXX=' ${wl}-bernotok'
10975 allow_undefined_flag_CXX=' ${wl}-berok'
10976 # -bexpall does not export symbols beginning with underscore (_)
10977 always_export_symbols_CXX=yes
10978 # Exported symbols can be pulled into shared objects from archives
10979 whole_archive_flag_spec_CXX=' '
10980 archive_cmds_need_lc_CXX=yes
10981 # This is similar to how AIX traditionally builds it's shared libraries.
10982 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10983 fi
10984 fi
10985 ;;
10986 chorus*)
10987 case $cc_basename in
10988 *)
10989 # FIXME: insert proper C++ library support
10990 ld_shlibs_CXX=no
10991 ;;
10992 esac
10993 ;;
10994
10995 cygwin* | mingw* | pw32*)
10996 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10997 # as there is no search path for DLLs.
10998 hardcode_libdir_flag_spec_CXX='-L$libdir'
10999 allow_undefined_flag_CXX=unsupported
11000 always_export_symbols_CXX=no
11001 enable_shared_with_static_runtimes_CXX=yes
11002
11003 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11005 # If the export-symbols file already is a .def file (1st line
11006 # is EXPORTS), use it as is; otherwise, prepend...
11007 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11008 cp $export_symbols $output_objdir/$soname.def;
11009 else
11010 echo EXPORTS > $output_objdir/$soname.def;
11011 cat $export_symbols >> $output_objdir/$soname.def;
11012 fi~
11013 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11014 else
11015 ld_shlibs_CXX=no
11016 fi
11017 ;;
11018
11019 darwin* | rhapsody*)
11020 if test "$GXX" = yes; then
11021 archive_cmds_need_lc_CXX=no
11022 case "$host_os" in
11023 rhapsody* | darwin1.[012])
11024 allow_undefined_flag_CXX='-undefined suppress'
11025 ;;
11026 *) # Darwin 1.3 on
11027 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11028 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11029 else
11030 case ${MACOSX_DEPLOYMENT_TARGET} in
11031 10.[012])
11032 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11033 ;;
11034 10.*)
11035 allow_undefined_flag_CXX='-undefined dynamic_lookup'
11036 ;;
11037 esac
11038 fi
11039 ;;
11040 esac
11041 lt_int_apple_cc_single_mod=no
11042 output_verbose_link_cmd='echo'
11043 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11044 lt_int_apple_cc_single_mod=yes
11045 fi
11046 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11047 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11048 else
11049 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11050 fi
11051 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11052
11053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11054 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11055 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11056 else
11057 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11058 fi
11059 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11060 hardcode_direct_CXX=no
11061 hardcode_automatic_CXX=yes
11062 hardcode_shlibpath_var_CXX=unsupported
11063 whole_archive_flag_spec_CXX='-all_load $convenience'
11064 link_all_deplibs_CXX=yes
11065 else
11066 ld_shlibs_CXX=no
11067 fi
11068 ;;
11069
11070 dgux*)
11071 case $cc_basename in
11072 ec++)
11073 # FIXME: insert proper C++ library support
11074 ld_shlibs_CXX=no
11075 ;;
11076 ghcx)
11077 # Green Hills C++ Compiler
11078 # FIXME: insert proper C++ library support
11079 ld_shlibs_CXX=no
11080 ;;
11081 *)
11082 # FIXME: insert proper C++ library support
11083 ld_shlibs_CXX=no
11084 ;;
11085 esac
11086 ;;
11087 freebsd12*)
11088 # C++ shared libraries reported to be fairly broken before switch to ELF
11089 ld_shlibs_CXX=no
11090 ;;
11091 freebsd-elf*)
11092 archive_cmds_need_lc_CXX=no
11093 ;;
11094 freebsd* | kfreebsd*-gnu)
11095 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11096 # conventions
11097 ld_shlibs_CXX=yes
11098 ;;
11099 gnu*)
11100 ;;
11101 hpux9*)
11102 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11103 hardcode_libdir_separator_CXX=:
11104 export_dynamic_flag_spec_CXX='${wl}-E'
11105 hardcode_direct_CXX=yes
11106 hardcode_minus_L_CXX=yes # Not in the search PATH,
11107 # but as the default
11108 # location of the library.
11109
11110 case $cc_basename in
11111 CC)
11112 # FIXME: insert proper C++ library support
11113 ld_shlibs_CXX=no
11114 ;;
11115 aCC)
11116 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11117 # Commands to make compiler produce verbose output that lists
11118 # what "hidden" libraries, object files and flags are used when
11119 # linking a shared library.
11120 #
11121 # There doesn't appear to be a way to prevent this compiler from
11122 # explicitly linking system object files so we need to strip them
11123 # from the output so that they don't get included in the library
11124 # dependencies.
11125 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11126 ;;
11127 *)
11128 if test "$GXX" = yes; then
11129 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11130 else
11131 # FIXME: insert proper C++ library support
11132 ld_shlibs_CXX=no
11133 fi
11134 ;;
11135 esac
11136 ;;
11137 hpux10*|hpux11*)
11138 if test $with_gnu_ld = no; then
11139 case "$host_cpu" in
11140 hppa*64*)
11141 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11142 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11143 hardcode_libdir_separator_CXX=:
11144 ;;
11145 ia64*)
11146 hardcode_libdir_flag_spec_CXX='-L$libdir'
11147 ;;
11148 *)
11149 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11150 hardcode_libdir_separator_CXX=:
11151 export_dynamic_flag_spec_CXX='${wl}-E'
11152 ;;
11153 esac
11154 fi
11155 case "$host_cpu" in
11156 hppa*64*)
11157 hardcode_direct_CXX=no
11158 hardcode_shlibpath_var_CXX=no
11159 ;;
11160 ia64*)
11161 hardcode_direct_CXX=no
11162 hardcode_shlibpath_var_CXX=no
11163 hardcode_minus_L_CXX=yes # Not in the search PATH,
11164 # but as the default
11165 # location of the library.
11166 ;;
11167 *)
11168 hardcode_direct_CXX=yes
11169 hardcode_minus_L_CXX=yes # Not in the search PATH,
11170 # but as the default
11171 # location of the library.
11172 ;;
11173 esac
11174
11175 case $cc_basename in
11176 CC)
11177 # FIXME: insert proper C++ library support
11178 ld_shlibs_CXX=no
11179 ;;
11180 aCC)
11181 case "$host_cpu" in
11182 hppa*64*|ia64*)
11183 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11184 ;;
11185 *)
11186 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11187 ;;
11188 esac
11189 # Commands to make compiler produce verbose output that lists
11190 # what "hidden" libraries, object files and flags are used when
11191 # linking a shared library.
11192 #
11193 # There doesn't appear to be a way to prevent this compiler from
11194 # explicitly linking system object files so we need to strip them
11195 # from the output so that they don't get included in the library
11196 # dependencies.
11197 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11198 ;;
11199 *)
11200 if test "$GXX" = yes; then
11201 if test $with_gnu_ld = no; then
11202 case "$host_cpu" in
11203 ia64*|hppa*64*)
11204 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11205 ;;
11206 *)
11207 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11208 ;;
11209 esac
11210 fi
11211 else
11212 # FIXME: insert proper C++ library support
11213 ld_shlibs_CXX=no
11214 fi
11215 ;;
11216 esac
11217 ;;
11218 irix5* | irix6*)
11219 case $cc_basename in
11220 CC)
11221 # SGI C++
11222 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11223
11224 # Archives containing C++ object files must be created using
11225 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11226 # necessary to make sure instantiated templates are included
11227 # in the archive.
11228 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11229 ;;
11230 *)
11231 if test "$GXX" = yes; then
11232 if test "$with_gnu_ld" = no; then
11233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11234 else
11235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11236 fi
11237 fi
11238 link_all_deplibs_CXX=yes
11239 ;;
11240 esac
11241 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11242 hardcode_libdir_separator_CXX=:
11243 ;;
11244 linux*)
11245 case $cc_basename in
11246 KCC)
11247 # Kuck and Associates, Inc. (KAI) C++ Compiler
11248
11249 # KCC will only create a shared library if the output file
11250 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11251 # to its proper name (with version) after linking.
11252 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11253 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11254 # Commands to make compiler produce verbose output that lists
11255 # what "hidden" libraries, object files and flags are used when
11256 # linking a shared library.
11257 #
11258 # There doesn't appear to be a way to prevent this compiler from
11259 # explicitly linking system object files so we need to strip them
11260 # from the output so that they don't get included in the library
11261 # dependencies.
11262 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11263
11264 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11265 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11266
11267 # Archives containing C++ object files must be created using
11268 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11269 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11270 ;;
11271 icpc)
11272 # Intel C++
11273 with_gnu_ld=yes
11274 archive_cmds_need_lc_CXX=no
11275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11276 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11277 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11278 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11279 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11280 ;;
11281 cxx)
11282 # Compaq C++
11283 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11284 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11285
11286 runpath_var=LD_RUN_PATH
11287 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11288 hardcode_libdir_separator_CXX=:
11289
11290 # Commands to make compiler produce verbose output that lists
11291 # what "hidden" libraries, object files and flags are used when
11292 # linking a shared library.
11293 #
11294 # There doesn't appear to be a way to prevent this compiler from
11295 # explicitly linking system object files so we need to strip them
11296 # from the output so that they don't get included in the library
11297 # dependencies.
11298 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11299 ;;
11300 esac
11301 ;;
11302 lynxos*)
11303 # FIXME: insert proper C++ library support
11304 ld_shlibs_CXX=no
11305 ;;
11306 m88k*)
11307 # FIXME: insert proper C++ library support
11308 ld_shlibs_CXX=no
11309 ;;
11310 mvs*)
11311 case $cc_basename in
11312 cxx)
11313 # FIXME: insert proper C++ library support
11314 ld_shlibs_CXX=no
11315 ;;
11316 *)
11317 # FIXME: insert proper C++ library support
11318 ld_shlibs_CXX=no
11319 ;;
11320 esac
11321 ;;
11322 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11324 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11325 wlarc=
11326 hardcode_libdir_flag_spec_CXX='-R$libdir'
11327 hardcode_direct_CXX=yes
11328 hardcode_shlibpath_var_CXX=no
11329 fi
11330 # Workaround some broken pre-1.5 toolchains
11331 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11332 ;;
11333 osf3*)
11334 case $cc_basename in
11335 KCC)
11336 # Kuck and Associates, Inc. (KAI) C++ Compiler
11337
11338 # KCC will only create a shared library if the output file
11339 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11340 # to its proper name (with version) after linking.
11341 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11342
11343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11344 hardcode_libdir_separator_CXX=:
11345
11346 # Archives containing C++ object files must be created using
11347 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11348 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11349
11350 ;;
11351 RCC)
11352 # Rational C++ 2.4.1
11353 # FIXME: insert proper C++ library support
11354 ld_shlibs_CXX=no
11355 ;;
11356 cxx)
11357 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11358 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11359
11360 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11361 hardcode_libdir_separator_CXX=:
11362
11363 # Commands to make compiler produce verbose output that lists
11364 # what "hidden" libraries, object files and flags are used when
11365 # linking a shared library.
11366 #
11367 # There doesn't appear to be a way to prevent this compiler from
11368 # explicitly linking system object files so we need to strip them
11369 # from the output so that they don't get included in the library
11370 # dependencies.
11371 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11372 ;;
11373 *)
11374 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11375 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11376 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11377
11378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11379 hardcode_libdir_separator_CXX=:
11380
11381 # Commands to make compiler produce verbose output that lists
11382 # what "hidden" libraries, object files and flags are used when
11383 # linking a shared library.
11384 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11385
11386 else
11387 # FIXME: insert proper C++ library support
11388 ld_shlibs_CXX=no
11389 fi
11390 ;;
11391 esac
11392 ;;
11393 osf4* | osf5*)
11394 case $cc_basename in
11395 KCC)
11396 # Kuck and Associates, Inc. (KAI) C++ Compiler
11397
11398 # KCC will only create a shared library if the output file
11399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11400 # to its proper name (with version) after linking.
11401 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11402
11403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11404 hardcode_libdir_separator_CXX=:
11405
11406 # Archives containing C++ object files must be created using
11407 # the KAI C++ compiler.
11408 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11409 ;;
11410 RCC)
11411 # Rational C++ 2.4.1
11412 # FIXME: insert proper C++ library support
11413 ld_shlibs_CXX=no
11414 ;;
11415 cxx)
11416 allow_undefined_flag_CXX=' -expect_unresolved \*'
11417 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11418 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11419 echo "-hidden">> $lib.exp~
11420 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11421 $rm $lib.exp'
11422
11423 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11424 hardcode_libdir_separator_CXX=:
11425
11426 # Commands to make compiler produce verbose output that lists
11427 # what "hidden" libraries, object files and flags are used when
11428 # linking a shared library.
11429 #
11430 # There doesn't appear to be a way to prevent this compiler from
11431 # explicitly linking system object files so we need to strip them
11432 # from the output so that they don't get included in the library
11433 # dependencies.
11434 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11435 ;;
11436 *)
11437 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11438 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11439 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11440
11441 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11442 hardcode_libdir_separator_CXX=:
11443
11444 # Commands to make compiler produce verbose output that lists
11445 # what "hidden" libraries, object files and flags are used when
11446 # linking a shared library.
11447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11448
11449 else
11450 # FIXME: insert proper C++ library support
11451 ld_shlibs_CXX=no
11452 fi
11453 ;;
11454 esac
11455 ;;
11456 psos*)
11457 # FIXME: insert proper C++ library support
11458 ld_shlibs_CXX=no
11459 ;;
11460 sco*)
11461 archive_cmds_need_lc_CXX=no
11462 case $cc_basename in
11463 CC)
11464 # FIXME: insert proper C++ library support
11465 ld_shlibs_CXX=no
11466 ;;
11467 *)
11468 # FIXME: insert proper C++ library support
11469 ld_shlibs_CXX=no
11470 ;;
11471 esac
11472 ;;
11473 sunos4*)
11474 case $cc_basename in
11475 CC)
11476 # Sun C++ 4.x
11477 # FIXME: insert proper C++ library support
11478 ld_shlibs_CXX=no
11479 ;;
11480 lcc)
11481 # Lucid
11482 # FIXME: insert proper C++ library support
11483 ld_shlibs_CXX=no
11484 ;;
11485 *)
11486 # FIXME: insert proper C++ library support
11487 ld_shlibs_CXX=no
11488 ;;
11489 esac
11490 ;;
11491 solaris*)
11492 case $cc_basename in
11493 CC)
11494 # Sun C++ 4.2, 5.x and Centerline C++
11495 no_undefined_flag_CXX=' -zdefs'
11496 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11497 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11498 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11499
11500 hardcode_libdir_flag_spec_CXX='-R$libdir'
11501 hardcode_shlibpath_var_CXX=no
11502 case $host_os in
11503 solaris2.0-5 | solaris2.0-5.*) ;;
11504 *)
11505 # The C++ compiler is used as linker so we must use $wl
11506 # flag to pass the commands to the underlying system
11507 # linker.
11508 # Supported since Solaris 2.6 (maybe 2.5.1?)
11509 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11510 ;;
11511 esac
11512 link_all_deplibs_CXX=yes
11513
11514 # Commands to make compiler produce verbose output that lists
11515 # what "hidden" libraries, object files and flags are used when
11516 # linking a shared library.
11517 #
11518 # There doesn't appear to be a way to prevent this compiler from
11519 # explicitly linking system object files so we need to strip them
11520 # from the output so that they don't get included in the library
11521 # dependencies.
11522 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11523
11524 # Archives containing C++ object files must be created using
11525 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11526 # necessary to make sure instantiated templates are included
11527 # in the archive.
11528 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11529 ;;
11530 gcx)
11531 # Green Hills C++ Compiler
11532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11533
11534 # The C++ compiler must be used to create the archive.
11535 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11536 ;;
11537 *)
11538 # GNU C++ compiler with Solaris linker
11539 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11540 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11541 if $CC --version | grep -v '^2\.7' > /dev/null; then
11542 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11543 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11544 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11545
11546 # Commands to make compiler produce verbose output that lists
11547 # what "hidden" libraries, object files and flags are used when
11548 # linking a shared library.
11549 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11550 else
11551 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11552 # platform.
11553 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11554 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11555 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11556
11557 # Commands to make compiler produce verbose output that lists
11558 # what "hidden" libraries, object files and flags are used when
11559 # linking a shared library.
11560 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11561 fi
11562
11563 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11564 fi
11565 ;;
11566 esac
11567 ;;
11568 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11569 archive_cmds_need_lc_CXX=no
11570 ;;
11571 tandem*)
11572 case $cc_basename in
11573 NCC)
11574 # NonStop-UX NCC 3.20
11575 # FIXME: insert proper C++ library support
11576 ld_shlibs_CXX=no
11577 ;;
11578 *)
11579 # FIXME: insert proper C++ library support
11580 ld_shlibs_CXX=no
11581 ;;
11582 esac
11583 ;;
11584 vxworks*)
11585 # FIXME: insert proper C++ library support
11586 ld_shlibs_CXX=no
11587 ;;
11588 *)
11589 # FIXME: insert proper C++ library support
11590 ld_shlibs_CXX=no
11591 ;;
11592 esac
11593 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11594 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11595 test "$ld_shlibs_CXX" = no && can_build_shared=no
11596
11597 GCC_CXX="$GXX"
11598 LD_CXX="$LD"
11599
11600
11601 cat > conftest.$ac_ext <<EOF
11602 class Foo
11603 {
11604 public:
11605 Foo (void) { a = 0; }
11606 private:
11607 int a;
11608 };
11609 EOF
11610
11611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612 (eval $ac_compile) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; then
11616 # Parse the compiler output and extract the necessary
11617 # objects, libraries and library flags.
11618
11619 # Sentinel used to keep track of whether or not we are before
11620 # the conftest object file.
11621 pre_test_object_deps_done=no
11622
11623 # The `*' in the case matches for architectures that use `case' in
11624 # $output_verbose_cmd can trigger glob expansion during the loop
11625 # eval without this substitution.
11626 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11627
11628 for p in `eval $output_verbose_link_cmd`; do
11629 case $p in
11630
11631 -L* | -R* | -l*)
11632 # Some compilers place space between "-{L,R}" and the path.
11633 # Remove the space.
11634 if test $p = "-L" \
11635 || test $p = "-R"; then
11636 prev=$p
11637 continue
11638 else
11639 prev=
11640 fi
11641
11642 if test "$pre_test_object_deps_done" = no; then
11643 case $p in
11644 -L* | -R*)
11645 # Internal compiler library paths should come after those
11646 # provided the user. The postdeps already come after the
11647 # user supplied libs so there is no need to process them.
11648 if test -z "$compiler_lib_search_path_CXX"; then
11649 compiler_lib_search_path_CXX="${prev}${p}"
11650 else
11651 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11652 fi
11653 ;;
11654 # The "-l" case would never come before the object being
11655 # linked, so don't bother handling this case.
11656 esac
11657 else
11658 if test -z "$postdeps_CXX"; then
11659 postdeps_CXX="${prev}${p}"
11660 else
11661 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11662 fi
11663 fi
11664 ;;
11665
11666 *.$objext)
11667 # This assumes that the test object file only shows up
11668 # once in the compiler output.
11669 if test "$p" = "conftest.$objext"; then
11670 pre_test_object_deps_done=yes
11671 continue
11672 fi
11673
11674 if test "$pre_test_object_deps_done" = no; then
11675 if test -z "$predep_objects_CXX"; then
11676 predep_objects_CXX="$p"
11677 else
11678 predep_objects_CXX="$predep_objects_CXX $p"
11679 fi
11680 else
11681 if test -z "$postdep_objects_CXX"; then
11682 postdep_objects_CXX="$p"
11683 else
11684 postdep_objects_CXX="$postdep_objects_CXX $p"
11685 fi
11686 fi
11687 ;;
11688
11689 *) ;; # Ignore the rest.
11690
11691 esac
11692 done
11693
11694 # Clean up.
11695 rm -f a.out a.exe
11696 else
11697 echo "libtool.m4: error: problem compiling CXX test program"
11698 fi
11699
11700 $rm -f confest.$objext
11701
11702 case " $postdeps_CXX " in
11703 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11704 esac
11705
11706 lt_prog_compiler_wl_CXX=
11707 lt_prog_compiler_pic_CXX=
11708 lt_prog_compiler_static_CXX=
11709
11710 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11711 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11712
11713 # C++ specific cases for pic, static, wl, etc.
11714 if test "$GXX" = yes; then
11715 lt_prog_compiler_wl_CXX='-Wl,'
11716 lt_prog_compiler_static_CXX='-static'
11717
11718 case $host_os in
11719 aix*)
11720 # All AIX code is PIC.
11721 if test "$host_cpu" = ia64; then
11722 # AIX 5 now supports IA64 processor
11723 lt_prog_compiler_static_CXX='-Bstatic'
11724 fi
11725 ;;
11726 amigaos*)
11727 # FIXME: we need at least 68020 code to build shared libraries, but
11728 # adding the `-m68020' flag to GCC prevents building anything better,
11729 # like `-m68040'.
11730 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11731 ;;
11732 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11733 # PIC is the default for these OSes.
11734 ;;
11735 mingw* | os2* | pw32*)
11736 # This hack is so that the source file can tell whether it is being
11737 # built for inclusion in a dll (and should export symbols for example).
11738 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11739 ;;
11740 darwin* | rhapsody*)
11741 # PIC is the default on this platform
11742 # Common symbols not allowed in MH_DYLIB files
11743 lt_prog_compiler_pic_CXX='-fno-common'
11744 ;;
11745 *djgpp*)
11746 # DJGPP does not support shared libraries at all
11747 lt_prog_compiler_pic_CXX=
11748 ;;
11749 sysv4*MP*)
11750 if test -d /usr/nec; then
11751 lt_prog_compiler_pic_CXX=-Kconform_pic
11752 fi
11753 ;;
11754 hpux*)
11755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11756 # not for PA HP-UX.
11757 case "$host_cpu" in
11758 hppa*64*|ia64*)
11759 ;;
11760 *)
11761 lt_prog_compiler_pic_CXX='-fPIC'
11762 ;;
11763 esac
11764 ;;
11765 *)
11766 lt_prog_compiler_pic_CXX='-fPIC'
11767 ;;
11768 esac
11769 else
11770 case $host_os in
11771 aix4* | aix5*)
11772 # All AIX code is PIC.
11773 if test "$host_cpu" = ia64; then
11774 # AIX 5 now supports IA64 processor
11775 lt_prog_compiler_static_CXX='-Bstatic'
11776 else
11777 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11778 fi
11779 ;;
11780 chorus*)
11781 case $cc_basename in
11782 cxch68)
11783 # Green Hills C++ Compiler
11784 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11785 ;;
11786 esac
11787 ;;
11788 dgux*)
11789 case $cc_basename in
11790 ec++)
11791 lt_prog_compiler_pic_CXX='-KPIC'
11792 ;;
11793 ghcx)
11794 # Green Hills C++ Compiler
11795 lt_prog_compiler_pic_CXX='-pic'
11796 ;;
11797 *)
11798 ;;
11799 esac
11800 ;;
11801 freebsd* | kfreebsd*-gnu)
11802 # FreeBSD uses GNU C++
11803 ;;
11804 hpux9* | hpux10* | hpux11*)
11805 case $cc_basename in
11806 CC)
11807 lt_prog_compiler_wl_CXX='-Wl,'
11808 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11809 if test "$host_cpu" != ia64; then
11810 lt_prog_compiler_pic_CXX='+Z'
11811 fi
11812 ;;
11813 aCC)
11814 lt_prog_compiler_wl_CXX='-Wl,'
11815 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11816 case "$host_cpu" in
11817 hppa*64*|ia64*)
11818 # +Z the default
11819 ;;
11820 *)
11821 lt_prog_compiler_pic_CXX='+Z'
11822 ;;
11823 esac
11824 ;;
11825 *)
11826 ;;
11827 esac
11828 ;;
11829 irix5* | irix6* | nonstopux*)
11830 case $cc_basename in
11831 CC)
11832 lt_prog_compiler_wl_CXX='-Wl,'
11833 lt_prog_compiler_static_CXX='-non_shared'
11834 # CC pic flag -KPIC is the default.
11835 ;;
11836 *)
11837 ;;
11838 esac
11839 ;;
11840 linux*)
11841 case $cc_basename in
11842 KCC)
11843 # KAI C++ Compiler
11844 lt_prog_compiler_wl_CXX='--backend -Wl,'
11845 lt_prog_compiler_pic_CXX='-fPIC'
11846 ;;
11847 icpc)
11848 # Intel C++
11849 lt_prog_compiler_wl_CXX='-Wl,'
11850 lt_prog_compiler_pic_CXX='-KPIC'
11851 lt_prog_compiler_static_CXX='-static'
11852 ;;
11853 cxx)
11854 # Compaq C++
11855 # Make sure the PIC flag is empty. It appears that all Alpha
11856 # Linux and Compaq Tru64 Unix objects are PIC.
11857 lt_prog_compiler_pic_CXX=
11858 lt_prog_compiler_static_CXX='-non_shared'
11859 ;;
11860 *)
11861 ;;
11862 esac
11863 ;;
11864 lynxos*)
11865 ;;
11866 m88k*)
11867 ;;
11868 mvs*)
11869 case $cc_basename in
11870 cxx)
11871 lt_prog_compiler_pic_CXX='-W c,exportall'
11872 ;;
11873 *)
11874 ;;
11875 esac
11876 ;;
11877 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11878 ;;
11879 osf3* | osf4* | osf5*)
11880 case $cc_basename in
11881 KCC)
11882 lt_prog_compiler_wl_CXX='--backend -Wl,'
11883 ;;
11884 RCC)
11885 # Rational C++ 2.4.1
11886 lt_prog_compiler_pic_CXX='-pic'
11887 ;;
11888 cxx)
11889 # Digital/Compaq C++
11890 lt_prog_compiler_wl_CXX='-Wl,'
11891 # Make sure the PIC flag is empty. It appears that all Alpha
11892 # Linux and Compaq Tru64 Unix objects are PIC.
11893 lt_prog_compiler_pic_CXX=
11894 lt_prog_compiler_static_CXX='-non_shared'
11895 ;;
11896 *)
11897 ;;
11898 esac
11899 ;;
11900 psos*)
11901 ;;
11902 sco*)
11903 case $cc_basename in
11904 CC)
11905 lt_prog_compiler_pic_CXX='-fPIC'
11906 ;;
11907 *)
11908 ;;
11909 esac
11910 ;;
11911 solaris*)
11912 case $cc_basename in
11913 CC)
11914 # Sun C++ 4.2, 5.x and Centerline C++
11915 lt_prog_compiler_pic_CXX='-KPIC'
11916 lt_prog_compiler_static_CXX='-Bstatic'
11917 lt_prog_compiler_wl_CXX='-Qoption ld '
11918 ;;
11919 gcx)
11920 # Green Hills C++ Compiler
11921 lt_prog_compiler_pic_CXX='-PIC'
11922 ;;
11923 *)
11924 ;;
11925 esac
11926 ;;
11927 sunos4*)
11928 case $cc_basename in
11929 CC)
11930 # Sun C++ 4.x
11931 lt_prog_compiler_pic_CXX='-pic'
11932 lt_prog_compiler_static_CXX='-Bstatic'
11933 ;;
11934 lcc)
11935 # Lucid
11936 lt_prog_compiler_pic_CXX='-pic'
11937 ;;
11938 *)
11939 ;;
11940 esac
11941 ;;
11942 tandem*)
11943 case $cc_basename in
11944 NCC)
11945 # NonStop-UX NCC 3.20
11946 lt_prog_compiler_pic_CXX='-KPIC'
11947 ;;
11948 *)
11949 ;;
11950 esac
11951 ;;
11952 unixware*)
11953 ;;
11954 vxworks*)
11955 ;;
11956 *)
11957 lt_prog_compiler_can_build_shared_CXX=no
11958 ;;
11959 esac
11960 fi
11961
11962 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11963 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11964
11965 #
11966 # Check to make sure the PIC flag actually works.
11967 #
11968 if test -n "$lt_prog_compiler_pic_CXX"; then
11969
11970 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11971 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11972 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 lt_prog_compiler_pic_works_CXX=no
11976 ac_outfile=conftest.$ac_objext
11977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11978 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11979 # Insert the option either (1) after the last *FLAGS variable, or
11980 # (2) before a word containing "conftest.", or (3) at the end.
11981 # Note that $ac_compile itself does not contain backslashes and begins
11982 # with a dollar sign (not a hyphen), so the echo should work correctly.
11983 # The option is referenced via a variable to avoid confusing sed.
11984 lt_compile=`echo "$ac_compile" | $SED \
11985 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11987 -e 's:$: $lt_compiler_flag:'`
11988 (eval echo "\"\$as_me:11989: $lt_compile\"" >&5)
11989 (eval "$lt_compile" 2>conftest.err)
11990 ac_status=$?
11991 cat conftest.err >&5
11992 echo "$as_me:11993: \$? = $ac_status" >&5
11993 if (exit $ac_status) && test -s "$ac_outfile"; then
11994 # The compiler can only warn and ignore the option if not recognized
11995 # So say no if there are warnings
11996 if test ! -s conftest.err; then
11997 lt_prog_compiler_pic_works_CXX=yes
11998 fi
11999 fi
12000 $rm conftest*
12001
12002 fi
12003 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12004 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12005
12006 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12007 case $lt_prog_compiler_pic_CXX in
12008 "" | " "*) ;;
12009 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12010 esac
12011 else
12012 lt_prog_compiler_pic_CXX=
12013 lt_prog_compiler_can_build_shared_CXX=no
12014 fi
12015
12016 fi
12017 case "$host_os" in
12018 # For platforms which do not support PIC, -DPIC is meaningless:
12019 *djgpp*)
12020 lt_prog_compiler_pic_CXX=
12021 ;;
12022 *)
12023 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12024 ;;
12025 esac
12026
12027 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12028 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12029 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032 lt_cv_prog_compiler_c_o_CXX=no
12033 $rm -r conftest 2>/dev/null
12034 mkdir conftest
12035 cd conftest
12036 mkdir out
12037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12038
12039 lt_compiler_flag="-o out/conftest2.$ac_objext"
12040 # Insert the option either (1) after the last *FLAGS variable, or
12041 # (2) before a word containing "conftest.", or (3) at the end.
12042 # Note that $ac_compile itself does not contain backslashes and begins
12043 # with a dollar sign (not a hyphen), so the echo should work correctly.
12044 lt_compile=`echo "$ac_compile" | $SED \
12045 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12047 -e 's:$: $lt_compiler_flag:'`
12048 (eval echo "\"\$as_me:12049: $lt_compile\"" >&5)
12049 (eval "$lt_compile" 2>out/conftest.err)
12050 ac_status=$?
12051 cat out/conftest.err >&5
12052 echo "$as_me:12053: \$? = $ac_status" >&5
12053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12054 then
12055 # The compiler can only warn and ignore the option if not recognized
12056 # So say no if there are warnings
12057 if test ! -s out/conftest.err; then
12058 lt_cv_prog_compiler_c_o_CXX=yes
12059 fi
12060 fi
12061 chmod u+w .
12062 $rm conftest*
12063 # SGI C++ compiler will create directory out/ii_files/ for
12064 # template instantiation
12065 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12066 $rm out/* && rmdir out
12067 cd ..
12068 rmdir conftest
12069 $rm conftest*
12070
12071 fi
12072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12074
12075
12076 hard_links="nottested"
12077 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12078 # do not overwrite the value of need_locks provided by the user
12079 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12081 hard_links=yes
12082 $rm conftest*
12083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12084 touch conftest.a
12085 ln conftest.a conftest.b 2>&5 || hard_links=no
12086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12087 echo "$as_me:$LINENO: result: $hard_links" >&5
12088 echo "${ECHO_T}$hard_links" >&6
12089 if test "$hard_links" = no; then
12090 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12092 need_locks=warn
12093 fi
12094 else
12095 need_locks=no
12096 fi
12097
12098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12100
12101 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12102 case $host_os in
12103 aix4* | aix5*)
12104 # If we're using GNU nm, then we don't want the "-C" option.
12105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12106 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12107 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12108 else
12109 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12110 fi
12111 ;;
12112 pw32*)
12113 export_symbols_cmds_CXX="$ltdll_cmds"
12114 ;;
12115 cygwin* | mingw*)
12116 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12117 ;;
12118 linux*)
12119 link_all_deplibs_CXX=no
12120 ;;
12121 *)
12122 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12123 ;;
12124 esac
12125
12126 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12127 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12128 test "$ld_shlibs_CXX" = no && can_build_shared=no
12129
12130 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12131 if test "$GCC" = yes; then
12132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12133 fi
12134
12135 #
12136 # Do we need to explicitly link libc?
12137 #
12138 case "x$archive_cmds_need_lc_CXX" in
12139 x|xyes)
12140 # Assume -lc should be added
12141 archive_cmds_need_lc_CXX=yes
12142
12143 if test "$enable_shared" = yes && test "$GCC" = yes; then
12144 case $archive_cmds_CXX in
12145 *'~'*)
12146 # FIXME: we may have to deal with multi-command sequences.
12147 ;;
12148 '$CC '*)
12149 # Test whether the compiler implicitly links with -lc since on some
12150 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12151 # to ld, don't add -lc before -lgcc.
12152 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12153 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12154 $rm conftest*
12155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12156
12157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158 (eval $ac_compile) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } 2>conftest.err; then
12162 soname=conftest
12163 lib=conftest
12164 libobjs=conftest.$ac_objext
12165 deplibs=
12166 wl=$lt_prog_compiler_wl_CXX
12167 compiler_flags=-v
12168 linker_flags=-v
12169 verstring=
12170 output_objdir=.
12171 libname=conftest
12172 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12173 allow_undefined_flag_CXX=
12174 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12175 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }
12179 then
12180 archive_cmds_need_lc_CXX=no
12181 else
12182 archive_cmds_need_lc_CXX=yes
12183 fi
12184 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12185 else
12186 cat conftest.err 1>&5
12187 fi
12188 $rm conftest*
12189 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12190 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12191 ;;
12192 esac
12193 fi
12194 ;;
12195 esac
12196
12197 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12198 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12199 library_names_spec=
12200 libname_spec='lib$name'
12201 soname_spec=
12202 shrext_cmds=".so"
12203 postinstall_cmds=
12204 postuninstall_cmds=
12205 finish_cmds=
12206 finish_eval=
12207 shlibpath_var=
12208 shlibpath_overrides_runpath=unknown
12209 version_type=none
12210 dynamic_linker="$host_os ld.so"
12211 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12212 if test "$GCC" = yes; then
12213 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12214 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12215 # if the path contains ";" then we assume it to be the separator
12216 # otherwise default to the standard path separator (i.e. ":") - it is
12217 # assumed that no part of a normal pathname contains ";" but that should
12218 # okay in the real world where ";" in dirpaths is itself problematic.
12219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12220 else
12221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12222 fi
12223 else
12224 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12225 fi
12226 need_lib_prefix=unknown
12227 hardcode_into_libs=no
12228
12229 # when you set need_version to no, make sure it does not cause -set_version
12230 # flags to be left without arguments
12231 need_version=unknown
12232
12233 case $host_os in
12234 aix3*)
12235 version_type=linux
12236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12237 shlibpath_var=LIBPATH
12238
12239 # AIX 3 has no versioning support, so we append a major version to the name.
12240 soname_spec='${libname}${release}${shared_ext}$major'
12241 ;;
12242
12243 aix4* | aix5*)
12244 version_type=linux
12245 need_lib_prefix=no
12246 need_version=no
12247 hardcode_into_libs=yes
12248 if test "$host_cpu" = ia64; then
12249 # AIX 5 supports IA64
12250 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 else
12253 # With GCC up to 2.95.x, collect2 would create an import file
12254 # for dependence libraries. The import file would start with
12255 # the line `#! .'. This would cause the generated library to
12256 # depend on `.', always an invalid library. This was fixed in
12257 # development snapshots of GCC prior to 3.0.
12258 case $host_os in
12259 aix4 | aix4.[01] | aix4.[01].*)
12260 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12261 echo ' yes '
12262 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12263 :
12264 else
12265 can_build_shared=no
12266 fi
12267 ;;
12268 esac
12269 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12270 # soname into executable. Probably we can add versioning support to
12271 # collect2, so additional links can be useful in future.
12272 if test "$aix_use_runtimelinking" = yes; then
12273 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12274 # instead of lib<name>.a to let people know that these are not
12275 # typical AIX shared libraries.
12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12277 else
12278 # We preserve .a as extension for shared libraries through AIX4.2
12279 # and later when we are not doing run time linking.
12280 library_names_spec='${libname}${release}.a $libname.a'
12281 soname_spec='${libname}${release}${shared_ext}$major'
12282 fi
12283 shlibpath_var=LIBPATH
12284 fi
12285 ;;
12286
12287 amigaos*)
12288 library_names_spec='$libname.ixlibrary $libname.a'
12289 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12290 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12291 ;;
12292
12293 beos*)
12294 library_names_spec='${libname}${shared_ext}'
12295 dynamic_linker="$host_os ld.so"
12296 shlibpath_var=LIBRARY_PATH
12297 ;;
12298
12299 bsdi4*)
12300 version_type=linux
12301 need_version=no
12302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12303 soname_spec='${libname}${release}${shared_ext}$major'
12304 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12307 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12308 # the default ld.so.conf also contains /usr/contrib/lib and
12309 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12310 # libtool to hard-code these into programs
12311 ;;
12312
12313 cygwin* | mingw* | pw32*)
12314 version_type=windows
12315 shrext_cmds=".dll"
12316 need_version=no
12317 need_lib_prefix=no
12318
12319 case $GCC,$host_os in
12320 yes,cygwin* | yes,mingw* | yes,pw32*)
12321 library_names_spec='$libname.dll.a'
12322 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12323 postinstall_cmds='base_file=`basename \${file}`~
12324 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12325 dldir=$destdir/`dirname \$dlpath`~
12326 test -d \$dldir || mkdir -p \$dldir~
12327 $install_prog $dir/$dlname \$dldir/$dlname'
12328 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12329 dlpath=$dir/\$dldll~
12330 $rm \$dlpath'
12331 shlibpath_overrides_runpath=yes
12332
12333 case $host_os in
12334 cygwin*)
12335 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12336 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12337 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12338 ;;
12339 mingw*)
12340 # MinGW DLLs use traditional 'lib' prefix
12341 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12343 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12344 # It is most probably a Windows format PATH printed by
12345 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12346 # path with ; separators, and with drive letters. We can handle the
12347 # drive letters (cygwin fileutils understands them), so leave them,
12348 # especially as we might pass files found there to a mingw objdump,
12349 # which wouldn't understand a cygwinified path. Ahh.
12350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12351 else
12352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12353 fi
12354 ;;
12355 pw32*)
12356 # pw32 DLLs use 'pw' prefix rather than 'lib'
12357 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12358 ;;
12359 esac
12360 ;;
12361
12362 *)
12363 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12364 ;;
12365 esac
12366 dynamic_linker='Win32 ld.exe'
12367 # FIXME: first we should search . and the directory the executable is in
12368 shlibpath_var=PATH
12369 ;;
12370
12371 darwin* | rhapsody*)
12372 dynamic_linker="$host_os dyld"
12373 version_type=darwin
12374 need_lib_prefix=no
12375 need_version=no
12376 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12377 soname_spec='${libname}${release}${major}$shared_ext'
12378 shlibpath_overrides_runpath=yes
12379 shlibpath_var=DYLD_LIBRARY_PATH
12380 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12381 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12382 if test "$GCC" = yes; then
12383 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12384 else
12385 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12386 fi
12387 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12388 ;;
12389
12390 dgux*)
12391 version_type=linux
12392 need_lib_prefix=no
12393 need_version=no
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12395 soname_spec='${libname}${release}${shared_ext}$major'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 ;;
12398
12399 freebsd1*)
12400 dynamic_linker=no
12401 ;;
12402
12403 kfreebsd*-gnu)
12404 version_type=linux
12405 need_lib_prefix=no
12406 need_version=no
12407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12408 soname_spec='${libname}${release}${shared_ext}$major'
12409 shlibpath_var=LD_LIBRARY_PATH
12410 shlibpath_overrides_runpath=no
12411 hardcode_into_libs=yes
12412 dynamic_linker='GNU ld.so'
12413 ;;
12414
12415 freebsd*)
12416 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12417 version_type=freebsd-$objformat
12418 case $version_type in
12419 freebsd-elf*)
12420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12421 need_version=no
12422 need_lib_prefix=no
12423 ;;
12424 freebsd-*)
12425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12426 need_version=yes
12427 ;;
12428 esac
12429 shlibpath_var=LD_LIBRARY_PATH
12430 case $host_os in
12431 freebsd2*)
12432 shlibpath_overrides_runpath=yes
12433 ;;
12434 freebsd3.01* | freebsdelf3.01*)
12435 shlibpath_overrides_runpath=yes
12436 hardcode_into_libs=yes
12437 ;;
12438 *) # from 3.2 on
12439 shlibpath_overrides_runpath=no
12440 hardcode_into_libs=yes
12441 ;;
12442 esac
12443 ;;
12444
12445 gnu*)
12446 version_type=linux
12447 need_lib_prefix=no
12448 need_version=no
12449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12450 soname_spec='${libname}${release}${shared_ext}$major'
12451 shlibpath_var=LD_LIBRARY_PATH
12452 hardcode_into_libs=yes
12453 ;;
12454
12455 hpux9* | hpux10* | hpux11*)
12456 # Give a soname corresponding to the major version so that dld.sl refuses to
12457 # link against other versions.
12458 version_type=sunos
12459 need_lib_prefix=no
12460 need_version=no
12461 case "$host_cpu" in
12462 ia64*)
12463 shrext_cmds='.so'
12464 hardcode_into_libs=yes
12465 dynamic_linker="$host_os dld.so"
12466 shlibpath_var=LD_LIBRARY_PATH
12467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12469 soname_spec='${libname}${release}${shared_ext}$major'
12470 if test "X$HPUX_IA64_MODE" = X32; then
12471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12472 else
12473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12474 fi
12475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12476 ;;
12477 hppa*64*)
12478 shrext_cmds='.sl'
12479 hardcode_into_libs=yes
12480 dynamic_linker="$host_os dld.sl"
12481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484 soname_spec='${libname}${release}${shared_ext}$major'
12485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12487 ;;
12488 *)
12489 shrext_cmds='.sl'
12490 dynamic_linker="$host_os dld.sl"
12491 shlibpath_var=SHLIB_PATH
12492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12494 soname_spec='${libname}${release}${shared_ext}$major'
12495 ;;
12496 esac
12497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12498 postinstall_cmds='chmod 555 $lib'
12499 ;;
12500
12501 irix5* | irix6* | nonstopux*)
12502 case $host_os in
12503 nonstopux*) version_type=nonstopux ;;
12504 *)
12505 if test "$lt_cv_prog_gnu_ld" = yes; then
12506 version_type=linux
12507 else
12508 version_type=irix
12509 fi ;;
12510 esac
12511 need_lib_prefix=no
12512 need_version=no
12513 soname_spec='${libname}${release}${shared_ext}$major'
12514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12515 case $host_os in
12516 irix5* | nonstopux*)
12517 libsuff= shlibsuff=
12518 ;;
12519 *)
12520 case $LD in # libtool.m4 will add one of these switches to LD
12521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12522 libsuff= shlibsuff= libmagic=32-bit;;
12523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12524 libsuff=32 shlibsuff=N32 libmagic=N32;;
12525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12527 *) libsuff= shlibsuff= libmagic=never-match;;
12528 esac
12529 ;;
12530 esac
12531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12532 shlibpath_overrides_runpath=no
12533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12535 hardcode_into_libs=yes
12536 ;;
12537
12538 # No shared lib support for Linux oldld, aout, or coff.
12539 linux*oldld* | linux*aout* | linux*coff*)
12540 dynamic_linker=no
12541 ;;
12542
12543 # This must be Linux ELF.
12544 linux*)
12545 version_type=linux
12546 need_lib_prefix=no
12547 need_version=no
12548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12549 soname_spec='${libname}${release}${shared_ext}$major'
12550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12551 shlibpath_var=LD_LIBRARY_PATH
12552 shlibpath_overrides_runpath=no
12553 # This implies no fast_install, which is unacceptable.
12554 # Some rework will be needed to allow for fast_install
12555 # before this can be enabled.
12556 hardcode_into_libs=yes
12557
12558 # Append ld.so.conf contents to the search path
12559 if test -f /etc/ld.so.conf; then
12560 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12561 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12562 fi
12563
12564 # We used to test for /lib/ld.so.1 and disable shared libraries on
12565 # powerpc, because MkLinux only supported shared libraries with the
12566 # GNU dynamic linker. Since this was broken with cross compilers,
12567 # most powerpc-linux boxes support dynamic linking these days and
12568 # people can always --disable-shared, the test was removed, and we
12569 # assume the GNU/Linux dynamic linker is in use.
12570 dynamic_linker='GNU/Linux ld.so'
12571 ;;
12572
12573 netbsdelf*-gnu)
12574 version_type=linux
12575 need_lib_prefix=no
12576 need_version=no
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12579 shlibpath_var=LD_LIBRARY_PATH
12580 shlibpath_overrides_runpath=no
12581 hardcode_into_libs=yes
12582 dynamic_linker='NetBSD ld.elf_so'
12583 ;;
12584
12585 knetbsd*-gnu)
12586 version_type=linux
12587 need_lib_prefix=no
12588 need_version=no
12589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12590 soname_spec='${libname}${release}${shared_ext}$major'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 shlibpath_overrides_runpath=no
12593 hardcode_into_libs=yes
12594 dynamic_linker='GNU ld.so'
12595 ;;
12596
12597 netbsd*)
12598 version_type=sunos
12599 need_lib_prefix=no
12600 need_version=no
12601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12604 dynamic_linker='NetBSD (a.out) ld.so'
12605 else
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 dynamic_linker='NetBSD ld.elf_so'
12609 fi
12610 shlibpath_var=LD_LIBRARY_PATH
12611 shlibpath_overrides_runpath=yes
12612 hardcode_into_libs=yes
12613 ;;
12614
12615 newsos6)
12616 version_type=linux
12617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12618 shlibpath_var=LD_LIBRARY_PATH
12619 shlibpath_overrides_runpath=yes
12620 ;;
12621
12622 nto-qnx*)
12623 version_type=linux
12624 need_lib_prefix=no
12625 need_version=no
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 shlibpath_var=LD_LIBRARY_PATH
12629 shlibpath_overrides_runpath=yes
12630 ;;
12631
12632 openbsd*)
12633 version_type=sunos
12634 need_lib_prefix=no
12635 need_version=yes
12636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12638 shlibpath_var=LD_LIBRARY_PATH
12639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12640 case $host_os in
12641 openbsd2.[89] | openbsd2.[89].*)
12642 shlibpath_overrides_runpath=no
12643 ;;
12644 *)
12645 shlibpath_overrides_runpath=yes
12646 ;;
12647 esac
12648 else
12649 shlibpath_overrides_runpath=yes
12650 fi
12651 ;;
12652
12653 os2*)
12654 libname_spec='$name'
12655 shrext_cmds=".dll"
12656 need_lib_prefix=no
12657 library_names_spec='$libname${shared_ext} $libname.a'
12658 dynamic_linker='OS/2 ld.exe'
12659 shlibpath_var=LIBPATH
12660 ;;
12661
12662 osf3* | osf4* | osf5*)
12663 version_type=osf
12664 need_lib_prefix=no
12665 need_version=no
12666 soname_spec='${libname}${release}${shared_ext}$major'
12667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12668 shlibpath_var=LD_LIBRARY_PATH
12669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12671 ;;
12672
12673 sco3.2v5*)
12674 version_type=osf
12675 soname_spec='${libname}${release}${shared_ext}$major'
12676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 ;;
12679
12680 solaris*)
12681 version_type=linux
12682 need_lib_prefix=no
12683 need_version=no
12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12685 soname_spec='${libname}${release}${shared_ext}$major'
12686 shlibpath_var=LD_LIBRARY_PATH
12687 shlibpath_overrides_runpath=yes
12688 hardcode_into_libs=yes
12689 # ldd complains unless libraries are executable
12690 postinstall_cmds='chmod +x $lib'
12691 ;;
12692
12693 sunos4*)
12694 version_type=sunos
12695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12696 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12697 shlibpath_var=LD_LIBRARY_PATH
12698 shlibpath_overrides_runpath=yes
12699 if test "$with_gnu_ld" = yes; then
12700 need_lib_prefix=no
12701 fi
12702 need_version=yes
12703 ;;
12704
12705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12706 version_type=linux
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12708 soname_spec='${libname}${release}${shared_ext}$major'
12709 shlibpath_var=LD_LIBRARY_PATH
12710 case $host_vendor in
12711 sni)
12712 shlibpath_overrides_runpath=no
12713 need_lib_prefix=no
12714 export_dynamic_flag_spec='${wl}-Blargedynsym'
12715 runpath_var=LD_RUN_PATH
12716 ;;
12717 siemens)
12718 need_lib_prefix=no
12719 ;;
12720 motorola)
12721 need_lib_prefix=no
12722 need_version=no
12723 shlibpath_overrides_runpath=no
12724 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12725 ;;
12726 esac
12727 ;;
12728
12729 sysv4*MP*)
12730 if test -d /usr/nec ;then
12731 version_type=linux
12732 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12733 soname_spec='$libname${shared_ext}.$major'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 fi
12736 ;;
12737
12738 uts4*)
12739 version_type=linux
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12741 soname_spec='${libname}${release}${shared_ext}$major'
12742 shlibpath_var=LD_LIBRARY_PATH
12743 ;;
12744
12745 *)
12746 dynamic_linker=no
12747 ;;
12748 esac
12749 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12750 echo "${ECHO_T}$dynamic_linker" >&6
12751 test "$dynamic_linker" = no && can_build_shared=no
12752
12753 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12754 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12755 hardcode_action_CXX=
12756 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12757 test -n "$runpath_var CXX" || \
12758 test "X$hardcode_automatic_CXX"="Xyes" ; then
12759
12760 # We can hardcode non-existant directories.
12761 if test "$hardcode_direct_CXX" != no &&
12762 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12763 # have to relink, otherwise we might link with an installed library
12764 # when we should be linking with a yet-to-be-installed one
12765 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12766 test "$hardcode_minus_L_CXX" != no; then
12767 # Linking always hardcodes the temporary library directory.
12768 hardcode_action_CXX=relink
12769 else
12770 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12771 hardcode_action_CXX=immediate
12772 fi
12773 else
12774 # We cannot hardcode anything, or else we can only hardcode existing
12775 # directories.
12776 hardcode_action_CXX=unsupported
12777 fi
12778 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12779 echo "${ECHO_T}$hardcode_action_CXX" >&6
12780
12781 if test "$hardcode_action_CXX" = relink; then
12782 # Fast installation is not supported
12783 enable_fast_install=no
12784 elif test "$shlibpath_overrides_runpath" = yes ||
12785 test "$enable_shared" = no; then
12786 # Fast installation is not necessary
12787 enable_fast_install=needless
12788 fi
12789
12790 striplib=
12791 old_striplib=
12792 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12793 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12794 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12795 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12796 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12797 echo "$as_me:$LINENO: result: yes" >&5
12798 echo "${ECHO_T}yes" >&6
12799 else
12800 # FIXME - insert some real tests, host_os isn't really good enough
12801 case $host_os in
12802 darwin*)
12803 if test -n "$STRIP" ; then
12804 striplib="$STRIP -x"
12805 echo "$as_me:$LINENO: result: yes" >&5
12806 echo "${ECHO_T}yes" >&6
12807 else
12808 echo "$as_me:$LINENO: result: no" >&5
12809 echo "${ECHO_T}no" >&6
12810 fi
12811 ;;
12812 *)
12813 echo "$as_me:$LINENO: result: no" >&5
12814 echo "${ECHO_T}no" >&6
12815 ;;
12816 esac
12817 fi
12818
12819 if test "x$enable_dlopen" != xyes; then
12820 enable_dlopen=unknown
12821 enable_dlopen_self=unknown
12822 enable_dlopen_self_static=unknown
12823 else
12824 lt_cv_dlopen=no
12825 lt_cv_dlopen_libs=
12826
12827 case $host_os in
12828 beos*)
12829 lt_cv_dlopen="load_add_on"
12830 lt_cv_dlopen_libs=
12831 lt_cv_dlopen_self=yes
12832 ;;
12833
12834 mingw* | pw32*)
12835 lt_cv_dlopen="LoadLibrary"
12836 lt_cv_dlopen_libs=
12837 ;;
12838
12839 cygwin*)
12840 lt_cv_dlopen="dlopen"
12841 lt_cv_dlopen_libs=
12842 ;;
12843
12844 darwin*)
12845 # if libdl is installed we need to link against it
12846 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12847 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12848 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851 ac_check_lib_save_LIBS=$LIBS
12852 LIBS="-ldl $LIBS"
12853 cat >conftest.$ac_ext <<_ACEOF
12854 /* confdefs.h. */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12859
12860 /* Override any gcc2 internal prototype to avoid an error. */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 /* We use char because int might match the return type of a gcc2
12865 builtin and then its argument prototype would still apply. */
12866 char dlopen ();
12867 int
12868 main ()
12869 {
12870 dlopen ();
12871 ;
12872 return 0;
12873 }
12874 _ACEOF
12875 rm -f conftest.$ac_objext conftest$ac_exeext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12877 (eval $ac_link) 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_lib_dl_dlopen=yes
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 ac_cv_lib_dl_dlopen=no
12902 fi
12903 rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12906 fi
12907 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12908 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12909 if test $ac_cv_lib_dl_dlopen = yes; then
12910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12911 else
12912
12913 lt_cv_dlopen="dyld"
12914 lt_cv_dlopen_libs=
12915 lt_cv_dlopen_self=yes
12916
12917 fi
12918
12919 ;;
12920
12921 *)
12922 echo "$as_me:$LINENO: checking for shl_load" >&5
12923 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12924 if test "${ac_cv_func_shl_load+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h. */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12935 #define shl_load innocuous_shl_load
12936
12937 /* System header to define __stub macros and hopefully few prototypes,
12938 which can conflict with char shl_load (); below.
12939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12940 <limits.h> exists even on freestanding compilers. */
12941
12942 #ifdef __STDC__
12943 # include <limits.h>
12944 #else
12945 # include <assert.h>
12946 #endif
12947
12948 #undef shl_load
12949
12950 /* Override any gcc2 internal prototype to avoid an error. */
12951 #ifdef __cplusplus
12952 extern "C"
12953 {
12954 #endif
12955 /* We use char because int might match the return type of a gcc2
12956 builtin and then its argument prototype would still apply. */
12957 char shl_load ();
12958 /* The GNU C library defines this for functions which it implements
12959 to always fail with ENOSYS. Some functions are actually named
12960 something starting with __ and the normal name is an alias. */
12961 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12962 choke me
12963 #else
12964 char (*f) () = shl_load;
12965 #endif
12966 #ifdef __cplusplus
12967 }
12968 #endif
12969
12970 int
12971 main ()
12972 {
12973 return f != shl_load;
12974 ;
12975 return 0;
12976 }
12977 _ACEOF
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12980 (eval $ac_link) 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
12987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest$ac_exeext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 ac_cv_func_shl_load=yes
13000 else
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004 ac_cv_func_shl_load=no
13005 fi
13006 rm -f conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13008 fi
13009 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13010 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13011 if test $ac_cv_func_shl_load = yes; then
13012 lt_cv_dlopen="shl_load"
13013 else
13014 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13015 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13016 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019 ac_check_lib_save_LIBS=$LIBS
13020 LIBS="-ldld $LIBS"
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027
13028 /* Override any gcc2 internal prototype to avoid an error. */
13029 #ifdef __cplusplus
13030 extern "C"
13031 #endif
13032 /* We use char because int might match the return type of a gcc2
13033 builtin and then its argument prototype would still apply. */
13034 char shl_load ();
13035 int
13036 main ()
13037 {
13038 shl_load ();
13039 ;
13040 return 0;
13041 }
13042 _ACEOF
13043 rm -f conftest.$ac_objext conftest$ac_exeext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13045 (eval $ac_link) 2>conftest.er1
13046 ac_status=$?
13047 grep -v '^ *+' conftest.er1 >conftest.err
13048 rm -f conftest.er1
13049 cat conftest.err >&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } &&
13052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 ac_cv_lib_dld_shl_load=yes
13065 else
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069 ac_cv_lib_dld_shl_load=no
13070 fi
13071 rm -f conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13073 LIBS=$ac_check_lib_save_LIBS
13074 fi
13075 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13076 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13077 if test $ac_cv_lib_dld_shl_load = yes; then
13078 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13079 else
13080 echo "$as_me:$LINENO: checking for dlopen" >&5
13081 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13082 if test "${ac_cv_func_dlopen+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h. */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13093 #define dlopen innocuous_dlopen
13094
13095 /* System header to define __stub macros and hopefully few prototypes,
13096 which can conflict with char dlopen (); below.
13097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13098 <limits.h> exists even on freestanding compilers. */
13099
13100 #ifdef __STDC__
13101 # include <limits.h>
13102 #else
13103 # include <assert.h>
13104 #endif
13105
13106 #undef dlopen
13107
13108 /* Override any gcc2 internal prototype to avoid an error. */
13109 #ifdef __cplusplus
13110 extern "C"
13111 {
13112 #endif
13113 /* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */
13115 char dlopen ();
13116 /* The GNU C library defines this for functions which it implements
13117 to always fail with ENOSYS. Some functions are actually named
13118 something starting with __ and the normal name is an alias. */
13119 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13120 choke me
13121 #else
13122 char (*f) () = dlopen;
13123 #endif
13124 #ifdef __cplusplus
13125 }
13126 #endif
13127
13128 int
13129 main ()
13130 {
13131 return f != dlopen;
13132 ;
13133 return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_func_dlopen=yes
13158 else
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 ac_cv_func_dlopen=no
13163 fi
13164 rm -f conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166 fi
13167 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13168 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13169 if test $ac_cv_func_dlopen = yes; then
13170 lt_cv_dlopen="dlopen"
13171 else
13172 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13173 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177 ac_check_lib_save_LIBS=$LIBS
13178 LIBS="-ldl $LIBS"
13179 cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h. */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185
13186 /* Override any gcc2 internal prototype to avoid an error. */
13187 #ifdef __cplusplus
13188 extern "C"
13189 #endif
13190 /* We use char because int might match the return type of a gcc2
13191 builtin and then its argument prototype would still apply. */
13192 char dlopen ();
13193 int
13194 main ()
13195 {
13196 dlopen ();
13197 ;
13198 return 0;
13199 }
13200 _ACEOF
13201 rm -f conftest.$ac_objext conftest$ac_exeext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; } &&
13216 { ac_try='test -s conftest$ac_exeext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_cv_lib_dl_dlopen=yes
13223 else
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227 ac_cv_lib_dl_dlopen=no
13228 fi
13229 rm -f conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231 LIBS=$ac_check_lib_save_LIBS
13232 fi
13233 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13235 if test $ac_cv_lib_dl_dlopen = yes; then
13236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13237 else
13238 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13239 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13240 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243 ac_check_lib_save_LIBS=$LIBS
13244 LIBS="-lsvld $LIBS"
13245 cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h. */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251
13252 /* Override any gcc2 internal prototype to avoid an error. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 /* We use char because int might match the return type of a gcc2
13257 builtin and then its argument prototype would still apply. */
13258 char dlopen ();
13259 int
13260 main ()
13261 {
13262 dlopen ();
13263 ;
13264 return 0;
13265 }
13266 _ACEOF
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269 (eval $ac_link) 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_cv_lib_svld_dlopen=yes
13289 else
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293 ac_cv_lib_svld_dlopen=no
13294 fi
13295 rm -f conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13297 LIBS=$ac_check_lib_save_LIBS
13298 fi
13299 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13300 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13301 if test $ac_cv_lib_svld_dlopen = yes; then
13302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13303 else
13304 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13305 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13306 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309 ac_check_lib_save_LIBS=$LIBS
13310 LIBS="-ldld $LIBS"
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h. */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317
13318 /* Override any gcc2 internal prototype to avoid an error. */
13319 #ifdef __cplusplus
13320 extern "C"
13321 #endif
13322 /* We use char because int might match the return type of a gcc2
13323 builtin and then its argument prototype would still apply. */
13324 char dld_link ();
13325 int
13326 main ()
13327 {
13328 dld_link ();
13329 ;
13330 return 0;
13331 }
13332 _ACEOF
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13335 (eval $ac_link) 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; } &&
13348 { ac_try='test -s conftest$ac_exeext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_cv_lib_dld_dld_link=yes
13355 else
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359 ac_cv_lib_dld_dld_link=no
13360 fi
13361 rm -f conftest.err conftest.$ac_objext \
13362 conftest$ac_exeext conftest.$ac_ext
13363 LIBS=$ac_check_lib_save_LIBS
13364 fi
13365 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13366 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13367 if test $ac_cv_lib_dld_dld_link = yes; then
13368 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13369 fi
13370
13371
13372 fi
13373
13374
13375 fi
13376
13377
13378 fi
13379
13380
13381 fi
13382
13383
13384 fi
13385
13386 ;;
13387 esac
13388
13389 if test "x$lt_cv_dlopen" != xno; then
13390 enable_dlopen=yes
13391 else
13392 enable_dlopen=no
13393 fi
13394
13395 case $lt_cv_dlopen in
13396 dlopen)
13397 save_CPPFLAGS="$CPPFLAGS"
13398 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13399
13400 save_LDFLAGS="$LDFLAGS"
13401 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13402
13403 save_LIBS="$LIBS"
13404 LIBS="$lt_cv_dlopen_libs $LIBS"
13405
13406 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13407 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13408 if test "${lt_cv_dlopen_self+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411 if test "$cross_compiling" = yes; then :
13412 lt_cv_dlopen_self=cross
13413 else
13414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13415 lt_status=$lt_dlunknown
13416 cat > conftest.$ac_ext <<EOF
13417 #line 13418 "configure"
13418 #include "confdefs.h"
13419
13420 #if HAVE_DLFCN_H
13421 #include <dlfcn.h>
13422 #endif
13423
13424 #include <stdio.h>
13425
13426 #ifdef RTLD_GLOBAL
13427 # define LT_DLGLOBAL RTLD_GLOBAL
13428 #else
13429 # ifdef DL_GLOBAL
13430 # define LT_DLGLOBAL DL_GLOBAL
13431 # else
13432 # define LT_DLGLOBAL 0
13433 # endif
13434 #endif
13435
13436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13437 find out it does not work in some platform. */
13438 #ifndef LT_DLLAZY_OR_NOW
13439 # ifdef RTLD_LAZY
13440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13441 # else
13442 # ifdef DL_LAZY
13443 # define LT_DLLAZY_OR_NOW DL_LAZY
13444 # else
13445 # ifdef RTLD_NOW
13446 # define LT_DLLAZY_OR_NOW RTLD_NOW
13447 # else
13448 # ifdef DL_NOW
13449 # define LT_DLLAZY_OR_NOW DL_NOW
13450 # else
13451 # define LT_DLLAZY_OR_NOW 0
13452 # endif
13453 # endif
13454 # endif
13455 # endif
13456 #endif
13457
13458 #ifdef __cplusplus
13459 extern "C" void exit (int);
13460 #endif
13461
13462 void fnord() { int i=42;}
13463 int main ()
13464 {
13465 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13466 int status = $lt_dlunknown;
13467
13468 if (self)
13469 {
13470 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13471 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13472 /* dlclose (self); */
13473 }
13474
13475 exit (status);
13476 }
13477 EOF
13478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13479 (eval $ac_link) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13483 (./conftest; exit; ) 2>/dev/null
13484 lt_status=$?
13485 case x$lt_status in
13486 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13487 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13488 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13489 esac
13490 else :
13491 # compilation failed
13492 lt_cv_dlopen_self=no
13493 fi
13494 fi
13495 rm -fr conftest*
13496
13497
13498 fi
13499 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13500 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13501
13502 if test "x$lt_cv_dlopen_self" = xyes; then
13503 LDFLAGS="$LDFLAGS $link_static_flag"
13504 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13505 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13506 if test "${lt_cv_dlopen_self_static+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 if test "$cross_compiling" = yes; then :
13510 lt_cv_dlopen_self_static=cross
13511 else
13512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13513 lt_status=$lt_dlunknown
13514 cat > conftest.$ac_ext <<EOF
13515 #line 13516 "configure"
13516 #include "confdefs.h"
13517
13518 #if HAVE_DLFCN_H
13519 #include <dlfcn.h>
13520 #endif
13521
13522 #include <stdio.h>
13523
13524 #ifdef RTLD_GLOBAL
13525 # define LT_DLGLOBAL RTLD_GLOBAL
13526 #else
13527 # ifdef DL_GLOBAL
13528 # define LT_DLGLOBAL DL_GLOBAL
13529 # else
13530 # define LT_DLGLOBAL 0
13531 # endif
13532 #endif
13533
13534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13535 find out it does not work in some platform. */
13536 #ifndef LT_DLLAZY_OR_NOW
13537 # ifdef RTLD_LAZY
13538 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13539 # else
13540 # ifdef DL_LAZY
13541 # define LT_DLLAZY_OR_NOW DL_LAZY
13542 # else
13543 # ifdef RTLD_NOW
13544 # define LT_DLLAZY_OR_NOW RTLD_NOW
13545 # else
13546 # ifdef DL_NOW
13547 # define LT_DLLAZY_OR_NOW DL_NOW
13548 # else
13549 # define LT_DLLAZY_OR_NOW 0
13550 # endif
13551 # endif
13552 # endif
13553 # endif
13554 #endif
13555
13556 #ifdef __cplusplus
13557 extern "C" void exit (int);
13558 #endif
13559
13560 void fnord() { int i=42;}
13561 int main ()
13562 {
13563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13564 int status = $lt_dlunknown;
13565
13566 if (self)
13567 {
13568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13569 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13570 /* dlclose (self); */
13571 }
13572
13573 exit (status);
13574 }
13575 EOF
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577 (eval $ac_link) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13581 (./conftest; exit; ) 2>/dev/null
13582 lt_status=$?
13583 case x$lt_status in
13584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13586 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13587 esac
13588 else :
13589 # compilation failed
13590 lt_cv_dlopen_self_static=no
13591 fi
13592 fi
13593 rm -fr conftest*
13594
13595
13596 fi
13597 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13598 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13599 fi
13600
13601 CPPFLAGS="$save_CPPFLAGS"
13602 LDFLAGS="$save_LDFLAGS"
13603 LIBS="$save_LIBS"
13604 ;;
13605 esac
13606
13607 case $lt_cv_dlopen_self in
13608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13609 *) enable_dlopen_self=unknown ;;
13610 esac
13611
13612 case $lt_cv_dlopen_self_static in
13613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13614 *) enable_dlopen_self_static=unknown ;;
13615 esac
13616 fi
13617
13618
13619 # The else clause should only fire when bootstrapping the
13620 # libtool distribution, otherwise you forgot to ship ltmain.sh
13621 # with your package, and you will get complaints that there are
13622 # no rules to generate ltmain.sh.
13623 if test -f "$ltmain"; then
13624 # See if we are running on zsh, and set the options which allow our commands through
13625 # without removal of \ escapes.
13626 if test -n "${ZSH_VERSION+set}" ; then
13627 setopt NO_GLOB_SUBST
13628 fi
13629 # Now quote all the things that may contain metacharacters while being
13630 # careful not to overquote the AC_SUBSTed values. We take copies of the
13631 # variables and quote the copies for generation of the libtool script.
13632 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13633 SED SHELL STRIP \
13634 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13635 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13636 deplibs_check_method reload_flag reload_cmds need_locks \
13637 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13638 lt_cv_sys_global_symbol_to_c_name_address \
13639 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13640 old_postinstall_cmds old_postuninstall_cmds \
13641 compiler_CXX \
13642 CC_CXX \
13643 LD_CXX \
13644 lt_prog_compiler_wl_CXX \
13645 lt_prog_compiler_pic_CXX \
13646 lt_prog_compiler_static_CXX \
13647 lt_prog_compiler_no_builtin_flag_CXX \
13648 export_dynamic_flag_spec_CXX \
13649 thread_safe_flag_spec_CXX \
13650 whole_archive_flag_spec_CXX \
13651 enable_shared_with_static_runtimes_CXX \
13652 old_archive_cmds_CXX \
13653 old_archive_from_new_cmds_CXX \
13654 predep_objects_CXX \
13655 postdep_objects_CXX \
13656 predeps_CXX \
13657 postdeps_CXX \
13658 compiler_lib_search_path_CXX \
13659 archive_cmds_CXX \
13660 archive_expsym_cmds_CXX \
13661 postinstall_cmds_CXX \
13662 postuninstall_cmds_CXX \
13663 old_archive_from_expsyms_cmds_CXX \
13664 allow_undefined_flag_CXX \
13665 no_undefined_flag_CXX \
13666 export_symbols_cmds_CXX \
13667 hardcode_libdir_flag_spec_CXX \
13668 hardcode_libdir_flag_spec_ld_CXX \
13669 hardcode_libdir_separator_CXX \
13670 hardcode_automatic_CXX \
13671 module_cmds_CXX \
13672 module_expsym_cmds_CXX \
13673 lt_cv_prog_compiler_c_o_CXX \
13674 exclude_expsyms_CXX \
13675 include_expsyms_CXX; do
13676
13677 case $var in
13678 old_archive_cmds_CXX | \
13679 old_archive_from_new_cmds_CXX | \
13680 archive_cmds_CXX | \
13681 archive_expsym_cmds_CXX | \
13682 module_cmds_CXX | \
13683 module_expsym_cmds_CXX | \
13684 old_archive_from_expsyms_cmds_CXX | \
13685 export_symbols_cmds_CXX | \
13686 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13687 postinstall_cmds | postuninstall_cmds | \
13688 old_postinstall_cmds | old_postuninstall_cmds | \
13689 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13690 # Double-quote double-evaled strings.
13691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13692 ;;
13693 *)
13694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13695 ;;
13696 esac
13697 done
13698
13699 case $lt_echo in
13700 *'\$0 --fallback-echo"')
13701 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13702 ;;
13703 esac
13704
13705 cfgfile="$ofile"
13706
13707 cat <<__EOF__ >> "$cfgfile"
13708 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13709
13710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13711
13712 # Shell to use when invoking shell scripts.
13713 SHELL=$lt_SHELL
13714
13715 # Whether or not to build shared libraries.
13716 build_libtool_libs=$enable_shared
13717
13718 # Whether or not to build static libraries.
13719 build_old_libs=$enable_static
13720
13721 # Whether or not to add -lc for building shared libraries.
13722 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13723
13724 # Whether or not to disallow shared libs when runtime libs are static
13725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13726
13727 # Whether or not to optimize for fast installation.
13728 fast_install=$enable_fast_install
13729
13730 # The host system.
13731 host_alias=$host_alias
13732 host=$host
13733
13734 # An echo program that does not interpret backslashes.
13735 echo=$lt_echo
13736
13737 # The archiver.
13738 AR=$lt_AR
13739 AR_FLAGS=$lt_AR_FLAGS
13740
13741 # A C compiler.
13742 LTCC=$lt_LTCC
13743
13744 # A language-specific compiler.
13745 CC=$lt_compiler_CXX
13746
13747 # Is the compiler the GNU C compiler?
13748 with_gcc=$GCC_CXX
13749
13750 # An ERE matcher.
13751 EGREP=$lt_EGREP
13752
13753 # The linker used to build libraries.
13754 LD=$lt_LD_CXX
13755
13756 # Whether we need hard or soft links.
13757 LN_S=$lt_LN_S
13758
13759 # A BSD-compatible nm program.
13760 NM=$lt_NM
13761
13762 # A symbol stripping program
13763 STRIP=$lt_STRIP
13764
13765 # Used to examine libraries when file_magic_cmd begins "file"
13766 MAGIC_CMD=$MAGIC_CMD
13767
13768 # Used on cygwin: DLL creation program.
13769 DLLTOOL="$DLLTOOL"
13770
13771 # Used on cygwin: object dumper.
13772 OBJDUMP="$OBJDUMP"
13773
13774 # Used on cygwin: assembler.
13775 AS="$AS"
13776
13777 # The name of the directory that contains temporary libtool files.
13778 objdir=$objdir
13779
13780 # How to create reloadable object files.
13781 reload_flag=$lt_reload_flag
13782 reload_cmds=$lt_reload_cmds
13783
13784 # How to pass a linker flag through the compiler.
13785 wl=$lt_lt_prog_compiler_wl_CXX
13786
13787 # Object file suffix (normally "o").
13788 objext="$ac_objext"
13789
13790 # Old archive suffix (normally "a").
13791 libext="$libext"
13792
13793 # Shared library suffix (normally ".so").
13794 shrext_cmds='$shrext_cmds'
13795
13796 # Executable file suffix (normally "").
13797 exeext="$exeext"
13798
13799 # Additional compiler flags for building library objects.
13800 pic_flag=$lt_lt_prog_compiler_pic_CXX
13801 pic_mode=$pic_mode
13802
13803 # What is the maximum length of a command?
13804 max_cmd_len=$lt_cv_sys_max_cmd_len
13805
13806 # Does compiler simultaneously support -c and -o options?
13807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13808
13809 # Must we lock files when doing compilation ?
13810 need_locks=$lt_need_locks
13811
13812 # Do we need the lib prefix for modules?
13813 need_lib_prefix=$need_lib_prefix
13814
13815 # Do we need a version for libraries?
13816 need_version=$need_version
13817
13818 # Whether dlopen is supported.
13819 dlopen_support=$enable_dlopen
13820
13821 # Whether dlopen of programs is supported.
13822 dlopen_self=$enable_dlopen_self
13823
13824 # Whether dlopen of statically linked programs is supported.
13825 dlopen_self_static=$enable_dlopen_self_static
13826
13827 # Compiler flag to prevent dynamic linking.
13828 link_static_flag=$lt_lt_prog_compiler_static_CXX
13829
13830 # Compiler flag to turn off builtin functions.
13831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13832
13833 # Compiler flag to allow reflexive dlopens.
13834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13835
13836 # Compiler flag to generate shared objects directly from archives.
13837 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13838
13839 # Compiler flag to generate thread-safe objects.
13840 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13841
13842 # Library versioning type.
13843 version_type=$version_type
13844
13845 # Format of library name prefix.
13846 libname_spec=$lt_libname_spec
13847
13848 # List of archive names. First name is the real one, the rest are links.
13849 # The last name is the one that the linker finds with -lNAME.
13850 library_names_spec=$lt_library_names_spec
13851
13852 # The coded name of the library, if different from the real name.
13853 soname_spec=$lt_soname_spec
13854
13855 # Commands used to build and install an old-style archive.
13856 RANLIB=$lt_RANLIB
13857 old_archive_cmds=$lt_old_archive_cmds_CXX
13858 old_postinstall_cmds=$lt_old_postinstall_cmds
13859 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13860
13861 # Create an old-style archive from a shared archive.
13862 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13863
13864 # Create a temporary old-style archive to link instead of a shared archive.
13865 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13866
13867 # Commands used to build and install a shared archive.
13868 archive_cmds=$lt_archive_cmds_CXX
13869 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13870 postinstall_cmds=$lt_postinstall_cmds
13871 postuninstall_cmds=$lt_postuninstall_cmds
13872
13873 # Commands used to build a loadable module (assumed same as above if empty)
13874 module_cmds=$lt_module_cmds_CXX
13875 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13876
13877 # Commands to strip libraries.
13878 old_striplib=$lt_old_striplib
13879 striplib=$lt_striplib
13880
13881 # Dependencies to place before the objects being linked to create a
13882 # shared library.
13883 predep_objects=$lt_predep_objects_CXX
13884
13885 # Dependencies to place after the objects being linked to create a
13886 # shared library.
13887 postdep_objects=$lt_postdep_objects_CXX
13888
13889 # Dependencies to place before the objects being linked to create a
13890 # shared library.
13891 predeps=$lt_predeps_CXX
13892
13893 # Dependencies to place after the objects being linked to create a
13894 # shared library.
13895 postdeps=$lt_postdeps_CXX
13896
13897 # The library search path used internally by the compiler when linking
13898 # a shared library.
13899 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13900
13901 # Method to check whether dependent libraries are shared objects.
13902 deplibs_check_method=$lt_deplibs_check_method
13903
13904 # Command to use when deplibs_check_method == file_magic.
13905 file_magic_cmd=$lt_file_magic_cmd
13906
13907 # Flag that allows shared libraries with undefined symbols to be built.
13908 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13909
13910 # Flag that forces no undefined symbols.
13911 no_undefined_flag=$lt_no_undefined_flag_CXX
13912
13913 # Commands used to finish a libtool library installation in a directory.
13914 finish_cmds=$lt_finish_cmds
13915
13916 # Same as above, but a single script fragment to be evaled but not shown.
13917 finish_eval=$lt_finish_eval
13918
13919 # Take the output of nm and produce a listing of raw symbols and C names.
13920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13921
13922 # Transform the output of nm in a proper C declaration
13923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13924
13925 # Transform the output of nm in a C name address pair
13926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13927
13928 # This is the shared library runtime path variable.
13929 runpath_var=$runpath_var
13930
13931 # This is the shared library path variable.
13932 shlibpath_var=$shlibpath_var
13933
13934 # Is shlibpath searched before the hard-coded library search path?
13935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13936
13937 # How to hardcode a shared library path into an executable.
13938 hardcode_action=$hardcode_action_CXX
13939
13940 # Whether we should hardcode library paths into libraries.
13941 hardcode_into_libs=$hardcode_into_libs
13942
13943 # Flag to hardcode \$libdir into a binary during linking.
13944 # This must work even if \$libdir does not exist.
13945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13946
13947 # If ld is used when linking, flag to hardcode \$libdir into
13948 # a binary during linking. This must work even if \$libdir does
13949 # not exist.
13950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13951
13952 # Whether we need a single -rpath flag with a separated argument.
13953 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13954
13955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13956 # resulting binary.
13957 hardcode_direct=$hardcode_direct_CXX
13958
13959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13960 # resulting binary.
13961 hardcode_minus_L=$hardcode_minus_L_CXX
13962
13963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13964 # the resulting binary.
13965 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13966
13967 # Set to yes if building a shared library automatically hardcodes DIR into the library
13968 # and all subsequent libraries and executables linked against it.
13969 hardcode_automatic=$hardcode_automatic_CXX
13970
13971 # Variables whose values should be saved in libtool wrapper scripts and
13972 # restored at relink time.
13973 variables_saved_for_relink="$variables_saved_for_relink"
13974
13975 # Whether libtool must link a program against all its dependency libraries.
13976 link_all_deplibs=$link_all_deplibs_CXX
13977
13978 # Compile-time system search path for libraries
13979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13980
13981 # Run-time system search path for libraries
13982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13983
13984 # Fix the shell variable \$srcfile for the compiler.
13985 fix_srcfile_path="$fix_srcfile_path_CXX"
13986
13987 # Set to yes if exported symbols are required.
13988 always_export_symbols=$always_export_symbols_CXX
13989
13990 # The commands to list exported symbols.
13991 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13992
13993 # The commands to extract the exported symbol list from a shared archive.
13994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13995
13996 # Symbols that should not be listed in the preloaded symbols.
13997 exclude_expsyms=$lt_exclude_expsyms_CXX
13998
13999 # Symbols that must always be exported.
14000 include_expsyms=$lt_include_expsyms_CXX
14001
14002 # ### END LIBTOOL TAG CONFIG: $tagname
14003
14004 __EOF__
14005
14006
14007 else
14008 # If there is no Makefile yet, we rely on a make rule to execute
14009 # `config.status --recheck' to rerun these tests and create the
14010 # libtool script then.
14011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14012 if test -f "$ltmain_in"; then
14013 test -f Makefile && make "$ltmain"
14014 fi
14015 fi
14016
14017
14018 ac_ext=c
14019 ac_cpp='$CPP $CPPFLAGS'
14020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14023
14024 CC=$lt_save_CC
14025 LDCXX=$LD
14026 LD=$lt_save_LD
14027 GCC=$lt_save_GCC
14028 with_gnu_ldcxx=$with_gnu_ld
14029 with_gnu_ld=$lt_save_with_gnu_ld
14030 lt_cv_path_LDCXX=$lt_cv_path_LD
14031 lt_cv_path_LD=$lt_save_path_LD
14032 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14033 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14034
14035 else
14036 tagname=""
14037 fi
14038 ;;
14039
14040 F77)
14041 if test -n "$F77" && test "X$F77" != "Xno"; then
14042
14043 ac_ext=f
14044 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14045 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14046 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14047
14048
14049 archive_cmds_need_lc_F77=no
14050 allow_undefined_flag_F77=
14051 always_export_symbols_F77=no
14052 archive_expsym_cmds_F77=
14053 export_dynamic_flag_spec_F77=
14054 hardcode_direct_F77=no
14055 hardcode_libdir_flag_spec_F77=
14056 hardcode_libdir_flag_spec_ld_F77=
14057 hardcode_libdir_separator_F77=
14058 hardcode_minus_L_F77=no
14059 hardcode_automatic_F77=no
14060 module_cmds_F77=
14061 module_expsym_cmds_F77=
14062 link_all_deplibs_F77=unknown
14063 old_archive_cmds_F77=$old_archive_cmds
14064 no_undefined_flag_F77=
14065 whole_archive_flag_spec_F77=
14066 enable_shared_with_static_runtimes_F77=no
14067
14068 # Source file extension for f77 test sources.
14069 ac_ext=f
14070
14071 # Object file extension for compiled f77 test sources.
14072 objext=o
14073 objext_F77=$objext
14074
14075 # Code to be used in simple compile tests
14076 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14077
14078 # Code to be used in simple link tests
14079 lt_simple_link_test_code=" program t\n end\n"
14080
14081 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14082
14083 # If no C compiler was specified, use CC.
14084 LTCC=${LTCC-"$CC"}
14085
14086 # Allow CC to be a program name with arguments.
14087 compiler=$CC
14088
14089
14090 # Allow CC to be a program name with arguments.
14091 lt_save_CC="$CC"
14092 CC=${F77-"f77"}
14093 compiler=$CC
14094 compiler_F77=$CC
14095 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14096
14097 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14098 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14099 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14100 echo "${ECHO_T}$can_build_shared" >&6
14101
14102 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14103 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14104 test "$can_build_shared" = "no" && enable_shared=no
14105
14106 # On AIX, shared libraries and static libraries use the same namespace, and
14107 # are all built from PIC.
14108 case "$host_os" in
14109 aix3*)
14110 test "$enable_shared" = yes && enable_static=no
14111 if test -n "$RANLIB"; then
14112 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14113 postinstall_cmds='$RANLIB $lib'
14114 fi
14115 ;;
14116 aix4* | aix5*)
14117 test "$enable_shared" = yes && enable_static=no
14118 ;;
14119 esac
14120 echo "$as_me:$LINENO: result: $enable_shared" >&5
14121 echo "${ECHO_T}$enable_shared" >&6
14122
14123 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14124 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14125 # Make sure either enable_shared or enable_static is yes.
14126 test "$enable_shared" = yes || enable_static=yes
14127 echo "$as_me:$LINENO: result: $enable_static" >&5
14128 echo "${ECHO_T}$enable_static" >&6
14129
14130 test "$ld_shlibs_F77" = no && can_build_shared=no
14131
14132 GCC_F77="$G77"
14133 LD_F77="$LD"
14134
14135 lt_prog_compiler_wl_F77=
14136 lt_prog_compiler_pic_F77=
14137 lt_prog_compiler_static_F77=
14138
14139 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14140 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14141
14142 if test "$GCC" = yes; then
14143 lt_prog_compiler_wl_F77='-Wl,'
14144 lt_prog_compiler_static_F77='-static'
14145
14146 case $host_os in
14147 aix*)
14148 # All AIX code is PIC.
14149 if test "$host_cpu" = ia64; then
14150 # AIX 5 now supports IA64 processor
14151 lt_prog_compiler_static_F77='-Bstatic'
14152 fi
14153 ;;
14154
14155 amigaos*)
14156 # FIXME: we need at least 68020 code to build shared libraries, but
14157 # adding the `-m68020' flag to GCC prevents building anything better,
14158 # like `-m68040'.
14159 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14160 ;;
14161
14162 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14163 # PIC is the default for these OSes.
14164 ;;
14165
14166 mingw* | pw32* | os2*)
14167 # This hack is so that the source file can tell whether it is being
14168 # built for inclusion in a dll (and should export symbols for example).
14169 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14170 ;;
14171
14172 darwin* | rhapsody*)
14173 # PIC is the default on this platform
14174 # Common symbols not allowed in MH_DYLIB files
14175 lt_prog_compiler_pic_F77='-fno-common'
14176 ;;
14177
14178 msdosdjgpp*)
14179 # Just because we use GCC doesn't mean we suddenly get shared libraries
14180 # on systems that don't support them.
14181 lt_prog_compiler_can_build_shared_F77=no
14182 enable_shared=no
14183 ;;
14184
14185 sysv4*MP*)
14186 if test -d /usr/nec; then
14187 lt_prog_compiler_pic_F77=-Kconform_pic
14188 fi
14189 ;;
14190
14191 hpux*)
14192 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14193 # not for PA HP-UX.
14194 case "$host_cpu" in
14195 hppa*64*|ia64*)
14196 # +Z the default
14197 ;;
14198 *)
14199 lt_prog_compiler_pic_F77='-fPIC'
14200 ;;
14201 esac
14202 ;;
14203
14204 *)
14205 lt_prog_compiler_pic_F77='-fPIC'
14206 ;;
14207 esac
14208 else
14209 # PORTME Check for flag to pass linker flags through the system compiler.
14210 case $host_os in
14211 aix*)
14212 lt_prog_compiler_wl_F77='-Wl,'
14213 if test "$host_cpu" = ia64; then
14214 # AIX 5 now supports IA64 processor
14215 lt_prog_compiler_static_F77='-Bstatic'
14216 else
14217 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14218 fi
14219 ;;
14220
14221 mingw* | pw32* | os2*)
14222 # This hack is so that the source file can tell whether it is being
14223 # built for inclusion in a dll (and should export symbols for example).
14224 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14225 ;;
14226
14227 hpux9* | hpux10* | hpux11*)
14228 lt_prog_compiler_wl_F77='-Wl,'
14229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14230 # not for PA HP-UX.
14231 case "$host_cpu" in
14232 hppa*64*|ia64*)
14233 # +Z the default
14234 ;;
14235 *)
14236 lt_prog_compiler_pic_F77='+Z'
14237 ;;
14238 esac
14239 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14240 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14241 ;;
14242
14243 irix5* | irix6* | nonstopux*)
14244 lt_prog_compiler_wl_F77='-Wl,'
14245 # PIC (with -KPIC) is the default.
14246 lt_prog_compiler_static_F77='-non_shared'
14247 ;;
14248
14249 newsos6)
14250 lt_prog_compiler_pic_F77='-KPIC'
14251 lt_prog_compiler_static_F77='-Bstatic'
14252 ;;
14253
14254 linux*)
14255 case $CC in
14256 icc* | ecc*)
14257 lt_prog_compiler_wl_F77='-Wl,'
14258 lt_prog_compiler_pic_F77='-KPIC'
14259 lt_prog_compiler_static_F77='-static'
14260 ;;
14261 ccc*)
14262 lt_prog_compiler_wl_F77='-Wl,'
14263 # All Alpha code is PIC.
14264 lt_prog_compiler_static_F77='-non_shared'
14265 ;;
14266 esac
14267 ;;
14268
14269 osf3* | osf4* | osf5*)
14270 lt_prog_compiler_wl_F77='-Wl,'
14271 # All OSF/1 code is PIC.
14272 lt_prog_compiler_static_F77='-non_shared'
14273 ;;
14274
14275 sco3.2v5*)
14276 lt_prog_compiler_pic_F77='-Kpic'
14277 lt_prog_compiler_static_F77='-dn'
14278 ;;
14279
14280 solaris*)
14281 lt_prog_compiler_wl_F77='-Wl,'
14282 lt_prog_compiler_pic_F77='-KPIC'
14283 lt_prog_compiler_static_F77='-Bstatic'
14284 ;;
14285
14286 sunos4*)
14287 lt_prog_compiler_wl_F77='-Qoption ld '
14288 lt_prog_compiler_pic_F77='-PIC'
14289 lt_prog_compiler_static_F77='-Bstatic'
14290 ;;
14291
14292 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14293 lt_prog_compiler_wl_F77='-Wl,'
14294 lt_prog_compiler_pic_F77='-KPIC'
14295 lt_prog_compiler_static_F77='-Bstatic'
14296 ;;
14297
14298 sysv4*MP*)
14299 if test -d /usr/nec ;then
14300 lt_prog_compiler_pic_F77='-Kconform_pic'
14301 lt_prog_compiler_static_F77='-Bstatic'
14302 fi
14303 ;;
14304
14305 uts4*)
14306 lt_prog_compiler_pic_F77='-pic'
14307 lt_prog_compiler_static_F77='-Bstatic'
14308 ;;
14309
14310 *)
14311 lt_prog_compiler_can_build_shared_F77=no
14312 ;;
14313 esac
14314 fi
14315
14316 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14317 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14318
14319 #
14320 # Check to make sure the PIC flag actually works.
14321 #
14322 if test -n "$lt_prog_compiler_pic_F77"; then
14323
14324 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14325 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14326 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14328 else
14329 lt_prog_compiler_pic_works_F77=no
14330 ac_outfile=conftest.$ac_objext
14331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14332 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14333 # Insert the option either (1) after the last *FLAGS variable, or
14334 # (2) before a word containing "conftest.", or (3) at the end.
14335 # Note that $ac_compile itself does not contain backslashes and begins
14336 # with a dollar sign (not a hyphen), so the echo should work correctly.
14337 # The option is referenced via a variable to avoid confusing sed.
14338 lt_compile=`echo "$ac_compile" | $SED \
14339 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14341 -e 's:$: $lt_compiler_flag:'`
14342 (eval echo "\"\$as_me:14343: $lt_compile\"" >&5)
14343 (eval "$lt_compile" 2>conftest.err)
14344 ac_status=$?
14345 cat conftest.err >&5
14346 echo "$as_me:14347: \$? = $ac_status" >&5
14347 if (exit $ac_status) && test -s "$ac_outfile"; then
14348 # The compiler can only warn and ignore the option if not recognized
14349 # So say no if there are warnings
14350 if test ! -s conftest.err; then
14351 lt_prog_compiler_pic_works_F77=yes
14352 fi
14353 fi
14354 $rm conftest*
14355
14356 fi
14357 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14358 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14359
14360 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14361 case $lt_prog_compiler_pic_F77 in
14362 "" | " "*) ;;
14363 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14364 esac
14365 else
14366 lt_prog_compiler_pic_F77=
14367 lt_prog_compiler_can_build_shared_F77=no
14368 fi
14369
14370 fi
14371 case "$host_os" in
14372 # For platforms which do not support PIC, -DPIC is meaningless:
14373 *djgpp*)
14374 lt_prog_compiler_pic_F77=
14375 ;;
14376 *)
14377 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14378 ;;
14379 esac
14380
14381 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14382 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14383 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 lt_cv_prog_compiler_c_o_F77=no
14387 $rm -r conftest 2>/dev/null
14388 mkdir conftest
14389 cd conftest
14390 mkdir out
14391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14392
14393 lt_compiler_flag="-o out/conftest2.$ac_objext"
14394 # Insert the option either (1) after the last *FLAGS variable, or
14395 # (2) before a word containing "conftest.", or (3) at the end.
14396 # Note that $ac_compile itself does not contain backslashes and begins
14397 # with a dollar sign (not a hyphen), so the echo should work correctly.
14398 lt_compile=`echo "$ac_compile" | $SED \
14399 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14401 -e 's:$: $lt_compiler_flag:'`
14402 (eval echo "\"\$as_me:14403: $lt_compile\"" >&5)
14403 (eval "$lt_compile" 2>out/conftest.err)
14404 ac_status=$?
14405 cat out/conftest.err >&5
14406 echo "$as_me:14407: \$? = $ac_status" >&5
14407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14408 then
14409 # The compiler can only warn and ignore the option if not recognized
14410 # So say no if there are warnings
14411 if test ! -s out/conftest.err; then
14412 lt_cv_prog_compiler_c_o_F77=yes
14413 fi
14414 fi
14415 chmod u+w .
14416 $rm conftest*
14417 # SGI C++ compiler will create directory out/ii_files/ for
14418 # template instantiation
14419 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14420 $rm out/* && rmdir out
14421 cd ..
14422 rmdir conftest
14423 $rm conftest*
14424
14425 fi
14426 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14427 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14428
14429
14430 hard_links="nottested"
14431 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14432 # do not overwrite the value of need_locks provided by the user
14433 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14434 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14435 hard_links=yes
14436 $rm conftest*
14437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14438 touch conftest.a
14439 ln conftest.a conftest.b 2>&5 || hard_links=no
14440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14441 echo "$as_me:$LINENO: result: $hard_links" >&5
14442 echo "${ECHO_T}$hard_links" >&6
14443 if test "$hard_links" = no; then
14444 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14445 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14446 need_locks=warn
14447 fi
14448 else
14449 need_locks=no
14450 fi
14451
14452 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14453 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14454
14455 runpath_var=
14456 allow_undefined_flag_F77=
14457 enable_shared_with_static_runtimes_F77=no
14458 archive_cmds_F77=
14459 archive_expsym_cmds_F77=
14460 old_archive_From_new_cmds_F77=
14461 old_archive_from_expsyms_cmds_F77=
14462 export_dynamic_flag_spec_F77=
14463 whole_archive_flag_spec_F77=
14464 thread_safe_flag_spec_F77=
14465 hardcode_libdir_flag_spec_F77=
14466 hardcode_libdir_flag_spec_ld_F77=
14467 hardcode_libdir_separator_F77=
14468 hardcode_direct_F77=no
14469 hardcode_minus_L_F77=no
14470 hardcode_shlibpath_var_F77=unsupported
14471 link_all_deplibs_F77=unknown
14472 hardcode_automatic_F77=no
14473 module_cmds_F77=
14474 module_expsym_cmds_F77=
14475 always_export_symbols_F77=no
14476 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14477 # include_expsyms should be a list of space-separated symbols to be *always*
14478 # included in the symbol list
14479 include_expsyms_F77=
14480 # exclude_expsyms can be an extended regexp of symbols to exclude
14481 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14483 # as well as any symbol that contains `d'.
14484 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14486 # platforms (ab)use it in PIC code, but their linkers get confused if
14487 # the symbol is explicitly referenced. Since portable code cannot
14488 # rely on this symbol name, it's probably fine to never include it in
14489 # preloaded symbol tables.
14490 extract_expsyms_cmds=
14491
14492 case $host_os in
14493 cygwin* | mingw* | pw32*)
14494 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14495 # When not using gcc, we currently assume that we are using
14496 # Microsoft Visual C++.
14497 if test "$GCC" != yes; then
14498 with_gnu_ld=no
14499 fi
14500 ;;
14501 openbsd*)
14502 with_gnu_ld=no
14503 ;;
14504 esac
14505
14506 ld_shlibs_F77=yes
14507 if test "$with_gnu_ld" = yes; then
14508 # If archive_cmds runs LD, not CC, wlarc should be empty
14509 wlarc='${wl}'
14510
14511 # See if GNU ld supports shared libraries.
14512 case $host_os in
14513 aix3* | aix4* | aix5*)
14514 # On AIX/PPC, the GNU linker is very broken
14515 if test "$host_cpu" != ia64; then
14516 ld_shlibs_F77=no
14517 cat <<EOF 1>&2
14518
14519 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14520 *** to be unable to reliably create shared libraries on AIX.
14521 *** Therefore, libtool is disabling shared libraries support. If you
14522 *** really care for shared libraries, you may want to modify your PATH
14523 *** so that a non-GNU linker is found, and then restart.
14524
14525 EOF
14526 fi
14527 ;;
14528
14529 amigaos*)
14530 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14531 hardcode_libdir_flag_spec_F77='-L$libdir'
14532 hardcode_minus_L_F77=yes
14533
14534 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14535 # that the semantics of dynamic libraries on AmigaOS, at least up
14536 # to version 4, is to share data among multiple programs linked
14537 # with the same dynamic library. Since this doesn't match the
14538 # behavior of shared libraries on other platforms, we can't use
14539 # them.
14540 ld_shlibs_F77=no
14541 ;;
14542
14543 beos*)
14544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14545 allow_undefined_flag_F77=unsupported
14546 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14547 # support --undefined. This deserves some investigation. FIXME
14548 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14549 else
14550 ld_shlibs_F77=no
14551 fi
14552 ;;
14553
14554 cygwin* | mingw* | pw32*)
14555 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14556 # as there is no search path for DLLs.
14557 hardcode_libdir_flag_spec_F77='-L$libdir'
14558 allow_undefined_flag_F77=unsupported
14559 always_export_symbols_F77=no
14560 enable_shared_with_static_runtimes_F77=yes
14561 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14562
14563 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14564 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14565 # If the export-symbols file already is a .def file (1st line
14566 # is EXPORTS), use it as is; otherwise, prepend...
14567 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14568 cp $export_symbols $output_objdir/$soname.def;
14569 else
14570 echo EXPORTS > $output_objdir/$soname.def;
14571 cat $export_symbols >> $output_objdir/$soname.def;
14572 fi~
14573 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14574 else
14575 ld_shlibs=no
14576 fi
14577 ;;
14578
14579 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14581 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14582 wlarc=
14583 else
14584 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14585 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14586 fi
14587 ;;
14588
14589 solaris* | sysv5*)
14590 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14591 ld_shlibs_F77=no
14592 cat <<EOF 1>&2
14593
14594 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14595 *** create shared libraries on Solaris systems. Therefore, libtool
14596 *** is disabling shared libraries support. We urge you to upgrade GNU
14597 *** binutils to release 2.9.1 or newer. Another option is to modify
14598 *** your PATH or compiler configuration so that the native linker is
14599 *** used, and then restart.
14600
14601 EOF
14602 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14603 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14604 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14605 else
14606 ld_shlibs_F77=no
14607 fi
14608 ;;
14609
14610 sunos4*)
14611 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14612 wlarc=
14613 hardcode_direct_F77=yes
14614 hardcode_shlibpath_var_F77=no
14615 ;;
14616
14617 linux*)
14618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14619 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14620 archive_cmds_F77="$tmp_archive_cmds"
14621 supports_anon_versioning=no
14622 case `$LD -v 2>/dev/null` in
14623 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14624 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14625 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14626 *\ 2.11.*) ;; # other 2.11 versions
14627 *) supports_anon_versioning=yes ;;
14628 esac
14629 if test $supports_anon_versioning = yes; then
14630 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14631 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14632 $echo "local: *; };" >> $output_objdir/$libname.ver~
14633 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14634 else
14635 archive_expsym_cmds_F77="$tmp_archive_cmds"
14636 fi
14637 link_all_deplibs_F77=no
14638 else
14639 ld_shlibs_F77=no
14640 fi
14641 ;;
14642
14643 *)
14644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14645 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14646 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14647 else
14648 ld_shlibs_F77=no
14649 fi
14650 ;;
14651 esac
14652
14653 if test "$ld_shlibs_F77" = yes; then
14654 runpath_var=LD_RUN_PATH
14655 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14656 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14657 # ancient GNU ld didn't support --whole-archive et. al.
14658 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14659 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14660 else
14661 whole_archive_flag_spec_F77=
14662 fi
14663 fi
14664 else
14665 # PORTME fill in a description of your system's linker (not GNU ld)
14666 case $host_os in
14667 aix3*)
14668 allow_undefined_flag_F77=unsupported
14669 always_export_symbols_F77=yes
14670 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14671 # Note: this linker hardcodes the directories in LIBPATH if there
14672 # are no directories specified by -L.
14673 hardcode_minus_L_F77=yes
14674 if test "$GCC" = yes && test -z "$link_static_flag"; then
14675 # Neither direct hardcoding nor static linking is supported with a
14676 # broken collect2.
14677 hardcode_direct_F77=unsupported
14678 fi
14679 ;;
14680
14681 aix4* | aix5*)
14682 if test "$host_cpu" = ia64; then
14683 # On IA64, the linker does run time linking by default, so we don't
14684 # have to do anything special.
14685 aix_use_runtimelinking=no
14686 exp_sym_flag='-Bexport'
14687 no_entry_flag=""
14688 else
14689 # If we're using GNU nm, then we don't want the "-C" option.
14690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14691 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14692 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14693 else
14694 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14695 fi
14696 aix_use_runtimelinking=no
14697
14698 # Test if we are trying to use run time linking or normal
14699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14700 # need to do runtime linking.
14701 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14702 for ld_flag in $LDFLAGS; do
14703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14704 aix_use_runtimelinking=yes
14705 break
14706 fi
14707 done
14708 esac
14709
14710 exp_sym_flag='-bexport'
14711 no_entry_flag='-bnoentry'
14712 fi
14713
14714 # When large executables or shared objects are built, AIX ld can
14715 # have problems creating the table of contents. If linking a library
14716 # or program results in "error TOC overflow" add -mminimal-toc to
14717 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14718 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14719
14720 archive_cmds_F77=''
14721 hardcode_direct_F77=yes
14722 hardcode_libdir_separator_F77=':'
14723 link_all_deplibs_F77=yes
14724
14725 if test "$GCC" = yes; then
14726 case $host_os in aix4.012|aix4.012.*)
14727 # We only want to do this on AIX 4.2 and lower, the check
14728 # below for broken collect2 doesn't work under 4.3+
14729 collect2name=`${CC} -print-prog-name=collect2`
14730 if test -f "$collect2name" && \
14731 strings "$collect2name" | grep resolve_lib_name >/dev/null
14732 then
14733 # We have reworked collect2
14734 hardcode_direct_F77=yes
14735 else
14736 # We have old collect2
14737 hardcode_direct_F77=unsupported
14738 # It fails to find uninstalled libraries when the uninstalled
14739 # path is not listed in the libpath. Setting hardcode_minus_L
14740 # to unsupported forces relinking
14741 hardcode_minus_L_F77=yes
14742 hardcode_libdir_flag_spec_F77='-L$libdir'
14743 hardcode_libdir_separator_F77=
14744 fi
14745 esac
14746 shared_flag='-shared'
14747 else
14748 # not using gcc
14749 if test "$host_cpu" = ia64; then
14750 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14751 # chokes on -Wl,-G. The following line is correct:
14752 shared_flag='-G'
14753 else
14754 if test "$aix_use_runtimelinking" = yes; then
14755 shared_flag='${wl}-G'
14756 else
14757 shared_flag='${wl}-bM:SRE'
14758 fi
14759 fi
14760 fi
14761
14762 # It seems that -bexpall does not export symbols beginning with
14763 # underscore (_), so it is better to generate a list of symbols to export.
14764 always_export_symbols_F77=yes
14765 if test "$aix_use_runtimelinking" = yes; then
14766 # Warning - without using the other runtime loading flags (-brtl),
14767 # -berok will link without error, but may produce a broken library.
14768 allow_undefined_flag_F77='-berok'
14769 # Determine the default libpath from the value encoded in an empty executable.
14770 cat >conftest.$ac_ext <<_ACEOF
14771 program main
14772
14773 end
14774 _ACEOF
14775 rm -f conftest.$ac_objext conftest$ac_exeext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777 (eval $ac_link) 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest$ac_exeext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14793 ac_status=$?
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796
14797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14798 }'`
14799 # Check for a 64-bit object if we didn't find anything.
14800 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14801 }'`; fi
14802 else
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 fi
14807 rm -f conftest.err conftest.$ac_objext \
14808 conftest$ac_exeext conftest.$ac_ext
14809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14810
14811 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14812 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14813 else
14814 if test "$host_cpu" = ia64; then
14815 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14816 allow_undefined_flag_F77="-z nodefs"
14817 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14818 else
14819 # Determine the default libpath from the value encoded in an empty executable.
14820 cat >conftest.$ac_ext <<_ACEOF
14821 program main
14822
14823 end
14824 _ACEOF
14825 rm -f conftest.$ac_objext conftest$ac_exeext
14826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14827 (eval $ac_link) 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest$ac_exeext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846
14847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14848 }'`
14849 # Check for a 64-bit object if we didn't find anything.
14850 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14851 }'`; fi
14852 else
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856 fi
14857 rm -f conftest.err conftest.$ac_objext \
14858 conftest$ac_exeext conftest.$ac_ext
14859 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14860
14861 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14862 # Warning - without using the other run time loading flags,
14863 # -berok will link without error, but may produce a broken library.
14864 no_undefined_flag_F77=' ${wl}-bernotok'
14865 allow_undefined_flag_F77=' ${wl}-berok'
14866 # -bexpall does not export symbols beginning with underscore (_)
14867 always_export_symbols_F77=yes
14868 # Exported symbols can be pulled into shared objects from archives
14869 whole_archive_flag_spec_F77=' '
14870 archive_cmds_need_lc_F77=yes
14871 # This is similar to how AIX traditionally builds it's shared libraries.
14872 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14873 fi
14874 fi
14875 ;;
14876
14877 amigaos*)
14878 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14879 hardcode_libdir_flag_spec_F77='-L$libdir'
14880 hardcode_minus_L_F77=yes
14881 # see comment about different semantics on the GNU ld section
14882 ld_shlibs_F77=no
14883 ;;
14884
14885 bsdi4*)
14886 export_dynamic_flag_spec_F77=-rdynamic
14887 ;;
14888
14889 cygwin* | mingw* | pw32*)
14890 # When not using gcc, we currently assume that we are using
14891 # Microsoft Visual C++.
14892 # hardcode_libdir_flag_spec is actually meaningless, as there is
14893 # no search path for DLLs.
14894 hardcode_libdir_flag_spec_F77=' '
14895 allow_undefined_flag_F77=unsupported
14896 # Tell ltmain to make .lib files, not .a files.
14897 libext=lib
14898 # Tell ltmain to make .dll files, not .so files.
14899 shrext_cmds=".dll"
14900 # FIXME: Setting linknames here is a bad hack.
14901 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14902 # The linker will automatically build a .lib file if we build a DLL.
14903 old_archive_From_new_cmds_F77='true'
14904 # FIXME: Should let the user specify the lib program.
14905 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14906 fix_srcfile_path='`cygpath -w "$srcfile"`'
14907 enable_shared_with_static_runtimes_F77=yes
14908 ;;
14909
14910 darwin* | rhapsody*)
14911 if test "$GXX" = yes ; then
14912 archive_cmds_need_lc_F77=no
14913 case "$host_os" in
14914 rhapsody* | darwin1.[012])
14915 allow_undefined_flag_F77='-undefined suppress'
14916 ;;
14917 *) # Darwin 1.3 on
14918 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14919 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14920 else
14921 case ${MACOSX_DEPLOYMENT_TARGET} in
14922 10.[012])
14923 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14924 ;;
14925 10.*)
14926 allow_undefined_flag_F77='-undefined dynamic_lookup'
14927 ;;
14928 esac
14929 fi
14930 ;;
14931 esac
14932 lt_int_apple_cc_single_mod=no
14933 output_verbose_link_cmd='echo'
14934 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14935 lt_int_apple_cc_single_mod=yes
14936 fi
14937 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14938 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14939 else
14940 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14941 fi
14942 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14943 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14944 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14945 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14946 else
14947 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14948 fi
14949 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14950 hardcode_direct_F77=no
14951 hardcode_automatic_F77=yes
14952 hardcode_shlibpath_var_F77=unsupported
14953 whole_archive_flag_spec_F77='-all_load $convenience'
14954 link_all_deplibs_F77=yes
14955 else
14956 ld_shlibs_F77=no
14957 fi
14958 ;;
14959
14960 dgux*)
14961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14962 hardcode_libdir_flag_spec_F77='-L$libdir'
14963 hardcode_shlibpath_var_F77=no
14964 ;;
14965
14966 freebsd1*)
14967 ld_shlibs_F77=no
14968 ;;
14969
14970 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14971 # support. Future versions do this automatically, but an explicit c++rt0.o
14972 # does not break anything, and helps significantly (at the cost of a little
14973 # extra space).
14974 freebsd2.2*)
14975 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14976 hardcode_libdir_flag_spec_F77='-R$libdir'
14977 hardcode_direct_F77=yes
14978 hardcode_shlibpath_var_F77=no
14979 ;;
14980
14981 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14982 freebsd2*)
14983 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14984 hardcode_direct_F77=yes
14985 hardcode_minus_L_F77=yes
14986 hardcode_shlibpath_var_F77=no
14987 ;;
14988
14989 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14990 freebsd* | kfreebsd*-gnu)
14991 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14992 hardcode_libdir_flag_spec_F77='-R$libdir'
14993 hardcode_direct_F77=yes
14994 hardcode_shlibpath_var_F77=no
14995 ;;
14996
14997 hpux9*)
14998 if test "$GCC" = yes; then
14999 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15000 else
15001 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15002 fi
15003 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15004 hardcode_libdir_separator_F77=:
15005 hardcode_direct_F77=yes
15006
15007 # hardcode_minus_L: Not really in the search PATH,
15008 # but as the default location of the library.
15009 hardcode_minus_L_F77=yes
15010 export_dynamic_flag_spec_F77='${wl}-E'
15011 ;;
15012
15013 hpux10* | hpux11*)
15014 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15015 case "$host_cpu" in
15016 hppa*64*|ia64*)
15017 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15018 ;;
15019 *)
15020 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15021 ;;
15022 esac
15023 else
15024 case "$host_cpu" in
15025 hppa*64*|ia64*)
15026 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15027 ;;
15028 *)
15029 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15030 ;;
15031 esac
15032 fi
15033 if test "$with_gnu_ld" = no; then
15034 case "$host_cpu" in
15035 hppa*64*)
15036 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15037 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15038 hardcode_libdir_separator_F77=:
15039 hardcode_direct_F77=no
15040 hardcode_shlibpath_var_F77=no
15041 ;;
15042 ia64*)
15043 hardcode_libdir_flag_spec_F77='-L$libdir'
15044 hardcode_direct_F77=no
15045 hardcode_shlibpath_var_F77=no
15046
15047 # hardcode_minus_L: Not really in the search PATH,
15048 # but as the default location of the library.
15049 hardcode_minus_L_F77=yes
15050 ;;
15051 *)
15052 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15053 hardcode_libdir_separator_F77=:
15054 hardcode_direct_F77=yes
15055 export_dynamic_flag_spec_F77='${wl}-E'
15056
15057 # hardcode_minus_L: Not really in the search PATH,
15058 # but as the default location of the library.
15059 hardcode_minus_L_F77=yes
15060 ;;
15061 esac
15062 fi
15063 ;;
15064
15065 irix5* | irix6* | nonstopux*)
15066 if test "$GCC" = yes; then
15067 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15068 else
15069 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15070 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15071 fi
15072 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15073 hardcode_libdir_separator_F77=:
15074 link_all_deplibs_F77=yes
15075 ;;
15076
15077 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15079 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15080 else
15081 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15082 fi
15083 hardcode_libdir_flag_spec_F77='-R$libdir'
15084 hardcode_direct_F77=yes
15085 hardcode_shlibpath_var_F77=no
15086 ;;
15087
15088 newsos6)
15089 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15090 hardcode_direct_F77=yes
15091 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15092 hardcode_libdir_separator_F77=:
15093 hardcode_shlibpath_var_F77=no
15094 ;;
15095
15096 openbsd*)
15097 hardcode_direct_F77=yes
15098 hardcode_shlibpath_var_F77=no
15099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15100 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15101 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15102 export_dynamic_flag_spec_F77='${wl}-E'
15103 else
15104 case $host_os in
15105 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15106 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15107 hardcode_libdir_flag_spec_F77='-R$libdir'
15108 ;;
15109 *)
15110 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15111 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15112 ;;
15113 esac
15114 fi
15115 ;;
15116
15117 os2*)
15118 hardcode_libdir_flag_spec_F77='-L$libdir'
15119 hardcode_minus_L_F77=yes
15120 allow_undefined_flag_F77=unsupported
15121 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15122 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15123 ;;
15124
15125 osf3*)
15126 if test "$GCC" = yes; then
15127 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15128 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15129 else
15130 allow_undefined_flag_F77=' -expect_unresolved \*'
15131 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15132 fi
15133 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15134 hardcode_libdir_separator_F77=:
15135 ;;
15136
15137 osf4* | osf5*) # as osf3* with the addition of -msym flag
15138 if test "$GCC" = yes; then
15139 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15140 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15141 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15142 else
15143 allow_undefined_flag_F77=' -expect_unresolved \*'
15144 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15145 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15146 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15147
15148 # Both c and cxx compiler support -rpath directly
15149 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15150 fi
15151 hardcode_libdir_separator_F77=:
15152 ;;
15153
15154 sco3.2v5*)
15155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15156 hardcode_shlibpath_var_F77=no
15157 export_dynamic_flag_spec_F77='${wl}-Bexport'
15158 runpath_var=LD_RUN_PATH
15159 hardcode_runpath_var=yes
15160 ;;
15161
15162 solaris*)
15163 no_undefined_flag_F77=' -z text'
15164 if test "$GCC" = yes; then
15165 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15166 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15167 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15168 else
15169 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15170 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15172 fi
15173 hardcode_libdir_flag_spec_F77='-R$libdir'
15174 hardcode_shlibpath_var_F77=no
15175 case $host_os in
15176 solaris2.[0-5] | solaris2.[0-5].*) ;;
15177 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15178 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15179 esac
15180 link_all_deplibs_F77=yes
15181 ;;
15182
15183 sunos4*)
15184 if test "x$host_vendor" = xsequent; then
15185 # Use $CC to link under sequent, because it throws in some extra .o
15186 # files that make .init and .fini sections work.
15187 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15188 else
15189 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15190 fi
15191 hardcode_libdir_flag_spec_F77='-L$libdir'
15192 hardcode_direct_F77=yes
15193 hardcode_minus_L_F77=yes
15194 hardcode_shlibpath_var_F77=no
15195 ;;
15196
15197 sysv4)
15198 case $host_vendor in
15199 sni)
15200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15201 hardcode_direct_F77=yes # is this really true???
15202 ;;
15203 siemens)
15204 ## LD is ld it makes a PLAMLIB
15205 ## CC just makes a GrossModule.
15206 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15207 reload_cmds_F77='$CC -r -o $output$reload_objs'
15208 hardcode_direct_F77=no
15209 ;;
15210 motorola)
15211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15212 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15213 ;;
15214 esac
15215 runpath_var='LD_RUN_PATH'
15216 hardcode_shlibpath_var_F77=no
15217 ;;
15218
15219 sysv4.3*)
15220 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15221 hardcode_shlibpath_var_F77=no
15222 export_dynamic_flag_spec_F77='-Bexport'
15223 ;;
15224
15225 sysv4*MP*)
15226 if test -d /usr/nec; then
15227 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15228 hardcode_shlibpath_var_F77=no
15229 runpath_var=LD_RUN_PATH
15230 hardcode_runpath_var=yes
15231 ld_shlibs_F77=yes
15232 fi
15233 ;;
15234
15235 sysv4.2uw2*)
15236 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15237 hardcode_direct_F77=yes
15238 hardcode_minus_L_F77=no
15239 hardcode_shlibpath_var_F77=no
15240 hardcode_runpath_var=yes
15241 runpath_var=LD_RUN_PATH
15242 ;;
15243
15244 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15245 no_undefined_flag_F77='${wl}-z ${wl}text'
15246 if test "$GCC" = yes; then
15247 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15248 else
15249 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15250 fi
15251 runpath_var='LD_RUN_PATH'
15252 hardcode_shlibpath_var_F77=no
15253 ;;
15254
15255 sysv5*)
15256 no_undefined_flag_F77=' -z text'
15257 # $CC -shared without GNU ld will not create a library from C++
15258 # object files and a static libstdc++, better avoid it by now
15259 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15260 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15261 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15262 hardcode_libdir_flag_spec_F77=
15263 hardcode_shlibpath_var_F77=no
15264 runpath_var='LD_RUN_PATH'
15265 ;;
15266
15267 uts4*)
15268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15269 hardcode_libdir_flag_spec_F77='-L$libdir'
15270 hardcode_shlibpath_var_F77=no
15271 ;;
15272
15273 *)
15274 ld_shlibs_F77=no
15275 ;;
15276 esac
15277 fi
15278
15279 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15280 echo "${ECHO_T}$ld_shlibs_F77" >&6
15281 test "$ld_shlibs_F77" = no && can_build_shared=no
15282
15283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15284 if test "$GCC" = yes; then
15285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15286 fi
15287
15288 #
15289 # Do we need to explicitly link libc?
15290 #
15291 case "x$archive_cmds_need_lc_F77" in
15292 x|xyes)
15293 # Assume -lc should be added
15294 archive_cmds_need_lc_F77=yes
15295
15296 if test "$enable_shared" = yes && test "$GCC" = yes; then
15297 case $archive_cmds_F77 in
15298 *'~'*)
15299 # FIXME: we may have to deal with multi-command sequences.
15300 ;;
15301 '$CC '*)
15302 # Test whether the compiler implicitly links with -lc since on some
15303 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15304 # to ld, don't add -lc before -lgcc.
15305 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15306 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15307 $rm conftest*
15308 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15309
15310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15311 (eval $ac_compile) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } 2>conftest.err; then
15315 soname=conftest
15316 lib=conftest
15317 libobjs=conftest.$ac_objext
15318 deplibs=
15319 wl=$lt_prog_compiler_wl_F77
15320 compiler_flags=-v
15321 linker_flags=-v
15322 verstring=
15323 output_objdir=.
15324 libname=conftest
15325 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15326 allow_undefined_flag_F77=
15327 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15328 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }
15332 then
15333 archive_cmds_need_lc_F77=no
15334 else
15335 archive_cmds_need_lc_F77=yes
15336 fi
15337 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15338 else
15339 cat conftest.err 1>&5
15340 fi
15341 $rm conftest*
15342 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15343 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15344 ;;
15345 esac
15346 fi
15347 ;;
15348 esac
15349
15350 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15351 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15352 library_names_spec=
15353 libname_spec='lib$name'
15354 soname_spec=
15355 shrext_cmds=".so"
15356 postinstall_cmds=
15357 postuninstall_cmds=
15358 finish_cmds=
15359 finish_eval=
15360 shlibpath_var=
15361 shlibpath_overrides_runpath=unknown
15362 version_type=none
15363 dynamic_linker="$host_os ld.so"
15364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15365 if test "$GCC" = yes; then
15366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15367 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15368 # if the path contains ";" then we assume it to be the separator
15369 # otherwise default to the standard path separator (i.e. ":") - it is
15370 # assumed that no part of a normal pathname contains ";" but that should
15371 # okay in the real world where ";" in dirpaths is itself problematic.
15372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15373 else
15374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15375 fi
15376 else
15377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15378 fi
15379 need_lib_prefix=unknown
15380 hardcode_into_libs=no
15381
15382 # when you set need_version to no, make sure it does not cause -set_version
15383 # flags to be left without arguments
15384 need_version=unknown
15385
15386 case $host_os in
15387 aix3*)
15388 version_type=linux
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15390 shlibpath_var=LIBPATH
15391
15392 # AIX 3 has no versioning support, so we append a major version to the name.
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 ;;
15395
15396 aix4* | aix5*)
15397 version_type=linux
15398 need_lib_prefix=no
15399 need_version=no
15400 hardcode_into_libs=yes
15401 if test "$host_cpu" = ia64; then
15402 # AIX 5 supports IA64
15403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 else
15406 # With GCC up to 2.95.x, collect2 would create an import file
15407 # for dependence libraries. The import file would start with
15408 # the line `#! .'. This would cause the generated library to
15409 # depend on `.', always an invalid library. This was fixed in
15410 # development snapshots of GCC prior to 3.0.
15411 case $host_os in
15412 aix4 | aix4.[01] | aix4.[01].*)
15413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15414 echo ' yes '
15415 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15416 :
15417 else
15418 can_build_shared=no
15419 fi
15420 ;;
15421 esac
15422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15423 # soname into executable. Probably we can add versioning support to
15424 # collect2, so additional links can be useful in future.
15425 if test "$aix_use_runtimelinking" = yes; then
15426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15427 # instead of lib<name>.a to let people know that these are not
15428 # typical AIX shared libraries.
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 else
15431 # We preserve .a as extension for shared libraries through AIX4.2
15432 # and later when we are not doing run time linking.
15433 library_names_spec='${libname}${release}.a $libname.a'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 fi
15436 shlibpath_var=LIBPATH
15437 fi
15438 ;;
15439
15440 amigaos*)
15441 library_names_spec='$libname.ixlibrary $libname.a'
15442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15443 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15444 ;;
15445
15446 beos*)
15447 library_names_spec='${libname}${shared_ext}'
15448 dynamic_linker="$host_os ld.so"
15449 shlibpath_var=LIBRARY_PATH
15450 ;;
15451
15452 bsdi4*)
15453 version_type=linux
15454 need_version=no
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15461 # the default ld.so.conf also contains /usr/contrib/lib and
15462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15463 # libtool to hard-code these into programs
15464 ;;
15465
15466 cygwin* | mingw* | pw32*)
15467 version_type=windows
15468 shrext_cmds=".dll"
15469 need_version=no
15470 need_lib_prefix=no
15471
15472 case $GCC,$host_os in
15473 yes,cygwin* | yes,mingw* | yes,pw32*)
15474 library_names_spec='$libname.dll.a'
15475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15476 postinstall_cmds='base_file=`basename \${file}`~
15477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15478 dldir=$destdir/`dirname \$dlpath`~
15479 test -d \$dldir || mkdir -p \$dldir~
15480 $install_prog $dir/$dlname \$dldir/$dlname'
15481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15482 dlpath=$dir/\$dldll~
15483 $rm \$dlpath'
15484 shlibpath_overrides_runpath=yes
15485
15486 case $host_os in
15487 cygwin*)
15488 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15489 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15490 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15491 ;;
15492 mingw*)
15493 # MinGW DLLs use traditional 'lib' prefix
15494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15496 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15497 # It is most probably a Windows format PATH printed by
15498 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15499 # path with ; separators, and with drive letters. We can handle the
15500 # drive letters (cygwin fileutils understands them), so leave them,
15501 # especially as we might pass files found there to a mingw objdump,
15502 # which wouldn't understand a cygwinified path. Ahh.
15503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15504 else
15505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15506 fi
15507 ;;
15508 pw32*)
15509 # pw32 DLLs use 'pw' prefix rather than 'lib'
15510 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15511 ;;
15512 esac
15513 ;;
15514
15515 *)
15516 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15517 ;;
15518 esac
15519 dynamic_linker='Win32 ld.exe'
15520 # FIXME: first we should search . and the directory the executable is in
15521 shlibpath_var=PATH
15522 ;;
15523
15524 darwin* | rhapsody*)
15525 dynamic_linker="$host_os dyld"
15526 version_type=darwin
15527 need_lib_prefix=no
15528 need_version=no
15529 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15530 soname_spec='${libname}${release}${major}$shared_ext'
15531 shlibpath_overrides_runpath=yes
15532 shlibpath_var=DYLD_LIBRARY_PATH
15533 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15534 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15535 if test "$GCC" = yes; then
15536 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15537 else
15538 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15539 fi
15540 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15541 ;;
15542
15543 dgux*)
15544 version_type=linux
15545 need_lib_prefix=no
15546 need_version=no
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 ;;
15551
15552 freebsd1*)
15553 dynamic_linker=no
15554 ;;
15555
15556 kfreebsd*-gnu)
15557 version_type=linux
15558 need_lib_prefix=no
15559 need_version=no
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 shlibpath_var=LD_LIBRARY_PATH
15563 shlibpath_overrides_runpath=no
15564 hardcode_into_libs=yes
15565 dynamic_linker='GNU ld.so'
15566 ;;
15567
15568 freebsd*)
15569 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15570 version_type=freebsd-$objformat
15571 case $version_type in
15572 freebsd-elf*)
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15574 need_version=no
15575 need_lib_prefix=no
15576 ;;
15577 freebsd-*)
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15579 need_version=yes
15580 ;;
15581 esac
15582 shlibpath_var=LD_LIBRARY_PATH
15583 case $host_os in
15584 freebsd2*)
15585 shlibpath_overrides_runpath=yes
15586 ;;
15587 freebsd3.01* | freebsdelf3.01*)
15588 shlibpath_overrides_runpath=yes
15589 hardcode_into_libs=yes
15590 ;;
15591 *) # from 3.2 on
15592 shlibpath_overrides_runpath=no
15593 hardcode_into_libs=yes
15594 ;;
15595 esac
15596 ;;
15597
15598 gnu*)
15599 version_type=linux
15600 need_lib_prefix=no
15601 need_version=no
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 hardcode_into_libs=yes
15606 ;;
15607
15608 hpux9* | hpux10* | hpux11*)
15609 # Give a soname corresponding to the major version so that dld.sl refuses to
15610 # link against other versions.
15611 version_type=sunos
15612 need_lib_prefix=no
15613 need_version=no
15614 case "$host_cpu" in
15615 ia64*)
15616 shrext_cmds='.so'
15617 hardcode_into_libs=yes
15618 dynamic_linker="$host_os dld.so"
15619 shlibpath_var=LD_LIBRARY_PATH
15620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 if test "X$HPUX_IA64_MODE" = X32; then
15624 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15625 else
15626 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15627 fi
15628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15629 ;;
15630 hppa*64*)
15631 shrext_cmds='.sl'
15632 hardcode_into_libs=yes
15633 dynamic_linker="$host_os dld.sl"
15634 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637 soname_spec='${libname}${release}${shared_ext}$major'
15638 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15640 ;;
15641 *)
15642 shrext_cmds='.sl'
15643 dynamic_linker="$host_os dld.sl"
15644 shlibpath_var=SHLIB_PATH
15645 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 ;;
15649 esac
15650 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15651 postinstall_cmds='chmod 555 $lib'
15652 ;;
15653
15654 irix5* | irix6* | nonstopux*)
15655 case $host_os in
15656 nonstopux*) version_type=nonstopux ;;
15657 *)
15658 if test "$lt_cv_prog_gnu_ld" = yes; then
15659 version_type=linux
15660 else
15661 version_type=irix
15662 fi ;;
15663 esac
15664 need_lib_prefix=no
15665 need_version=no
15666 soname_spec='${libname}${release}${shared_ext}$major'
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15668 case $host_os in
15669 irix5* | nonstopux*)
15670 libsuff= shlibsuff=
15671 ;;
15672 *)
15673 case $LD in # libtool.m4 will add one of these switches to LD
15674 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15675 libsuff= shlibsuff= libmagic=32-bit;;
15676 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15677 libsuff=32 shlibsuff=N32 libmagic=N32;;
15678 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15679 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15680 *) libsuff= shlibsuff= libmagic=never-match;;
15681 esac
15682 ;;
15683 esac
15684 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15685 shlibpath_overrides_runpath=no
15686 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15687 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15688 hardcode_into_libs=yes
15689 ;;
15690
15691 # No shared lib support for Linux oldld, aout, or coff.
15692 linux*oldld* | linux*aout* | linux*coff*)
15693 dynamic_linker=no
15694 ;;
15695
15696 # This must be Linux ELF.
15697 linux*)
15698 version_type=linux
15699 need_lib_prefix=no
15700 need_version=no
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=no
15706 # This implies no fast_install, which is unacceptable.
15707 # Some rework will be needed to allow for fast_install
15708 # before this can be enabled.
15709 hardcode_into_libs=yes
15710
15711 # Append ld.so.conf contents to the search path
15712 if test -f /etc/ld.so.conf; then
15713 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15715 fi
15716
15717 # We used to test for /lib/ld.so.1 and disable shared libraries on
15718 # powerpc, because MkLinux only supported shared libraries with the
15719 # GNU dynamic linker. Since this was broken with cross compilers,
15720 # most powerpc-linux boxes support dynamic linking these days and
15721 # people can always --disable-shared, the test was removed, and we
15722 # assume the GNU/Linux dynamic linker is in use.
15723 dynamic_linker='GNU/Linux ld.so'
15724 ;;
15725
15726 netbsdelf*-gnu)
15727 version_type=linux
15728 need_lib_prefix=no
15729 need_version=no
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15731 soname_spec='${libname}${release}${shared_ext}$major'
15732 shlibpath_var=LD_LIBRARY_PATH
15733 shlibpath_overrides_runpath=no
15734 hardcode_into_libs=yes
15735 dynamic_linker='NetBSD ld.elf_so'
15736 ;;
15737
15738 knetbsd*-gnu)
15739 version_type=linux
15740 need_lib_prefix=no
15741 need_version=no
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 shlibpath_var=LD_LIBRARY_PATH
15745 shlibpath_overrides_runpath=no
15746 hardcode_into_libs=yes
15747 dynamic_linker='GNU ld.so'
15748 ;;
15749
15750 netbsd*)
15751 version_type=sunos
15752 need_lib_prefix=no
15753 need_version=no
15754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15757 dynamic_linker='NetBSD (a.out) ld.so'
15758 else
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 dynamic_linker='NetBSD ld.elf_so'
15762 fi
15763 shlibpath_var=LD_LIBRARY_PATH
15764 shlibpath_overrides_runpath=yes
15765 hardcode_into_libs=yes
15766 ;;
15767
15768 newsos6)
15769 version_type=linux
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes
15773 ;;
15774
15775 nto-qnx*)
15776 version_type=linux
15777 need_lib_prefix=no
15778 need_version=no
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 soname_spec='${libname}${release}${shared_ext}$major'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath=yes
15783 ;;
15784
15785 openbsd*)
15786 version_type=sunos
15787 need_lib_prefix=no
15788 need_version=yes
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15793 case $host_os in
15794 openbsd2.[89] | openbsd2.[89].*)
15795 shlibpath_overrides_runpath=no
15796 ;;
15797 *)
15798 shlibpath_overrides_runpath=yes
15799 ;;
15800 esac
15801 else
15802 shlibpath_overrides_runpath=yes
15803 fi
15804 ;;
15805
15806 os2*)
15807 libname_spec='$name'
15808 shrext_cmds=".dll"
15809 need_lib_prefix=no
15810 library_names_spec='$libname${shared_ext} $libname.a'
15811 dynamic_linker='OS/2 ld.exe'
15812 shlibpath_var=LIBPATH
15813 ;;
15814
15815 osf3* | osf4* | osf5*)
15816 version_type=osf
15817 need_lib_prefix=no
15818 need_version=no
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821 shlibpath_var=LD_LIBRARY_PATH
15822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15824 ;;
15825
15826 sco3.2v5*)
15827 version_type=osf
15828 soname_spec='${libname}${release}${shared_ext}$major'
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830 shlibpath_var=LD_LIBRARY_PATH
15831 ;;
15832
15833 solaris*)
15834 version_type=linux
15835 need_lib_prefix=no
15836 need_version=no
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838 soname_spec='${libname}${release}${shared_ext}$major'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 shlibpath_overrides_runpath=yes
15841 hardcode_into_libs=yes
15842 # ldd complains unless libraries are executable
15843 postinstall_cmds='chmod +x $lib'
15844 ;;
15845
15846 sunos4*)
15847 version_type=sunos
15848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15850 shlibpath_var=LD_LIBRARY_PATH
15851 shlibpath_overrides_runpath=yes
15852 if test "$with_gnu_ld" = yes; then
15853 need_lib_prefix=no
15854 fi
15855 need_version=yes
15856 ;;
15857
15858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15859 version_type=linux
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861 soname_spec='${libname}${release}${shared_ext}$major'
15862 shlibpath_var=LD_LIBRARY_PATH
15863 case $host_vendor in
15864 sni)
15865 shlibpath_overrides_runpath=no
15866 need_lib_prefix=no
15867 export_dynamic_flag_spec='${wl}-Blargedynsym'
15868 runpath_var=LD_RUN_PATH
15869 ;;
15870 siemens)
15871 need_lib_prefix=no
15872 ;;
15873 motorola)
15874 need_lib_prefix=no
15875 need_version=no
15876 shlibpath_overrides_runpath=no
15877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15878 ;;
15879 esac
15880 ;;
15881
15882 sysv4*MP*)
15883 if test -d /usr/nec ;then
15884 version_type=linux
15885 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15886 soname_spec='$libname${shared_ext}.$major'
15887 shlibpath_var=LD_LIBRARY_PATH
15888 fi
15889 ;;
15890
15891 uts4*)
15892 version_type=linux
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 ;;
15897
15898 *)
15899 dynamic_linker=no
15900 ;;
15901 esac
15902 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15903 echo "${ECHO_T}$dynamic_linker" >&6
15904 test "$dynamic_linker" = no && can_build_shared=no
15905
15906 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15907 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15908 hardcode_action_F77=
15909 if test -n "$hardcode_libdir_flag_spec_F77" || \
15910 test -n "$runpath_var F77" || \
15911 test "X$hardcode_automatic_F77"="Xyes" ; then
15912
15913 # We can hardcode non-existant directories.
15914 if test "$hardcode_direct_F77" != no &&
15915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15916 # have to relink, otherwise we might link with an installed library
15917 # when we should be linking with a yet-to-be-installed one
15918 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15919 test "$hardcode_minus_L_F77" != no; then
15920 # Linking always hardcodes the temporary library directory.
15921 hardcode_action_F77=relink
15922 else
15923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15924 hardcode_action_F77=immediate
15925 fi
15926 else
15927 # We cannot hardcode anything, or else we can only hardcode existing
15928 # directories.
15929 hardcode_action_F77=unsupported
15930 fi
15931 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15932 echo "${ECHO_T}$hardcode_action_F77" >&6
15933
15934 if test "$hardcode_action_F77" = relink; then
15935 # Fast installation is not supported
15936 enable_fast_install=no
15937 elif test "$shlibpath_overrides_runpath" = yes ||
15938 test "$enable_shared" = no; then
15939 # Fast installation is not necessary
15940 enable_fast_install=needless
15941 fi
15942
15943 striplib=
15944 old_striplib=
15945 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15946 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15947 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15948 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15949 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15950 echo "$as_me:$LINENO: result: yes" >&5
15951 echo "${ECHO_T}yes" >&6
15952 else
15953 # FIXME - insert some real tests, host_os isn't really good enough
15954 case $host_os in
15955 darwin*)
15956 if test -n "$STRIP" ; then
15957 striplib="$STRIP -x"
15958 echo "$as_me:$LINENO: result: yes" >&5
15959 echo "${ECHO_T}yes" >&6
15960 else
15961 echo "$as_me:$LINENO: result: no" >&5
15962 echo "${ECHO_T}no" >&6
15963 fi
15964 ;;
15965 *)
15966 echo "$as_me:$LINENO: result: no" >&5
15967 echo "${ECHO_T}no" >&6
15968 ;;
15969 esac
15970 fi
15971
15972
15973
15974 # The else clause should only fire when bootstrapping the
15975 # libtool distribution, otherwise you forgot to ship ltmain.sh
15976 # with your package, and you will get complaints that there are
15977 # no rules to generate ltmain.sh.
15978 if test -f "$ltmain"; then
15979 # See if we are running on zsh, and set the options which allow our commands through
15980 # without removal of \ escapes.
15981 if test -n "${ZSH_VERSION+set}" ; then
15982 setopt NO_GLOB_SUBST
15983 fi
15984 # Now quote all the things that may contain metacharacters while being
15985 # careful not to overquote the AC_SUBSTed values. We take copies of the
15986 # variables and quote the copies for generation of the libtool script.
15987 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15988 SED SHELL STRIP \
15989 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15990 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15991 deplibs_check_method reload_flag reload_cmds need_locks \
15992 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15993 lt_cv_sys_global_symbol_to_c_name_address \
15994 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15995 old_postinstall_cmds old_postuninstall_cmds \
15996 compiler_F77 \
15997 CC_F77 \
15998 LD_F77 \
15999 lt_prog_compiler_wl_F77 \
16000 lt_prog_compiler_pic_F77 \
16001 lt_prog_compiler_static_F77 \
16002 lt_prog_compiler_no_builtin_flag_F77 \
16003 export_dynamic_flag_spec_F77 \
16004 thread_safe_flag_spec_F77 \
16005 whole_archive_flag_spec_F77 \
16006 enable_shared_with_static_runtimes_F77 \
16007 old_archive_cmds_F77 \
16008 old_archive_from_new_cmds_F77 \
16009 predep_objects_F77 \
16010 postdep_objects_F77 \
16011 predeps_F77 \
16012 postdeps_F77 \
16013 compiler_lib_search_path_F77 \
16014 archive_cmds_F77 \
16015 archive_expsym_cmds_F77 \
16016 postinstall_cmds_F77 \
16017 postuninstall_cmds_F77 \
16018 old_archive_from_expsyms_cmds_F77 \
16019 allow_undefined_flag_F77 \
16020 no_undefined_flag_F77 \
16021 export_symbols_cmds_F77 \
16022 hardcode_libdir_flag_spec_F77 \
16023 hardcode_libdir_flag_spec_ld_F77 \
16024 hardcode_libdir_separator_F77 \
16025 hardcode_automatic_F77 \
16026 module_cmds_F77 \
16027 module_expsym_cmds_F77 \
16028 lt_cv_prog_compiler_c_o_F77 \
16029 exclude_expsyms_F77 \
16030 include_expsyms_F77; do
16031
16032 case $var in
16033 old_archive_cmds_F77 | \
16034 old_archive_from_new_cmds_F77 | \
16035 archive_cmds_F77 | \
16036 archive_expsym_cmds_F77 | \
16037 module_cmds_F77 | \
16038 module_expsym_cmds_F77 | \
16039 old_archive_from_expsyms_cmds_F77 | \
16040 export_symbols_cmds_F77 | \
16041 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16042 postinstall_cmds | postuninstall_cmds | \
16043 old_postinstall_cmds | old_postuninstall_cmds | \
16044 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16045 # Double-quote double-evaled strings.
16046 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16047 ;;
16048 *)
16049 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16050 ;;
16051 esac
16052 done
16053
16054 case $lt_echo in
16055 *'\$0 --fallback-echo"')
16056 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16057 ;;
16058 esac
16059
16060 cfgfile="$ofile"
16061
16062 cat <<__EOF__ >> "$cfgfile"
16063 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16064
16065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16066
16067 # Shell to use when invoking shell scripts.
16068 SHELL=$lt_SHELL
16069
16070 # Whether or not to build shared libraries.
16071 build_libtool_libs=$enable_shared
16072
16073 # Whether or not to build static libraries.
16074 build_old_libs=$enable_static
16075
16076 # Whether or not to add -lc for building shared libraries.
16077 build_libtool_need_lc=$archive_cmds_need_lc_F77
16078
16079 # Whether or not to disallow shared libs when runtime libs are static
16080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16081
16082 # Whether or not to optimize for fast installation.
16083 fast_install=$enable_fast_install
16084
16085 # The host system.
16086 host_alias=$host_alias
16087 host=$host
16088
16089 # An echo program that does not interpret backslashes.
16090 echo=$lt_echo
16091
16092 # The archiver.
16093 AR=$lt_AR
16094 AR_FLAGS=$lt_AR_FLAGS
16095
16096 # A C compiler.
16097 LTCC=$lt_LTCC
16098
16099 # A language-specific compiler.
16100 CC=$lt_compiler_F77
16101
16102 # Is the compiler the GNU C compiler?
16103 with_gcc=$GCC_F77
16104
16105 # An ERE matcher.
16106 EGREP=$lt_EGREP
16107
16108 # The linker used to build libraries.
16109 LD=$lt_LD_F77
16110
16111 # Whether we need hard or soft links.
16112 LN_S=$lt_LN_S
16113
16114 # A BSD-compatible nm program.
16115 NM=$lt_NM
16116
16117 # A symbol stripping program
16118 STRIP=$lt_STRIP
16119
16120 # Used to examine libraries when file_magic_cmd begins "file"
16121 MAGIC_CMD=$MAGIC_CMD
16122
16123 # Used on cygwin: DLL creation program.
16124 DLLTOOL="$DLLTOOL"
16125
16126 # Used on cygwin: object dumper.
16127 OBJDUMP="$OBJDUMP"
16128
16129 # Used on cygwin: assembler.
16130 AS="$AS"
16131
16132 # The name of the directory that contains temporary libtool files.
16133 objdir=$objdir
16134
16135 # How to create reloadable object files.
16136 reload_flag=$lt_reload_flag
16137 reload_cmds=$lt_reload_cmds
16138
16139 # How to pass a linker flag through the compiler.
16140 wl=$lt_lt_prog_compiler_wl_F77
16141
16142 # Object file suffix (normally "o").
16143 objext="$ac_objext"
16144
16145 # Old archive suffix (normally "a").
16146 libext="$libext"
16147
16148 # Shared library suffix (normally ".so").
16149 shrext_cmds='$shrext_cmds'
16150
16151 # Executable file suffix (normally "").
16152 exeext="$exeext"
16153
16154 # Additional compiler flags for building library objects.
16155 pic_flag=$lt_lt_prog_compiler_pic_F77
16156 pic_mode=$pic_mode
16157
16158 # What is the maximum length of a command?
16159 max_cmd_len=$lt_cv_sys_max_cmd_len
16160
16161 # Does compiler simultaneously support -c and -o options?
16162 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16163
16164 # Must we lock files when doing compilation ?
16165 need_locks=$lt_need_locks
16166
16167 # Do we need the lib prefix for modules?
16168 need_lib_prefix=$need_lib_prefix
16169
16170 # Do we need a version for libraries?
16171 need_version=$need_version
16172
16173 # Whether dlopen is supported.
16174 dlopen_support=$enable_dlopen
16175
16176 # Whether dlopen of programs is supported.
16177 dlopen_self=$enable_dlopen_self
16178
16179 # Whether dlopen of statically linked programs is supported.
16180 dlopen_self_static=$enable_dlopen_self_static
16181
16182 # Compiler flag to prevent dynamic linking.
16183 link_static_flag=$lt_lt_prog_compiler_static_F77
16184
16185 # Compiler flag to turn off builtin functions.
16186 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16187
16188 # Compiler flag to allow reflexive dlopens.
16189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16190
16191 # Compiler flag to generate shared objects directly from archives.
16192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16193
16194 # Compiler flag to generate thread-safe objects.
16195 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16196
16197 # Library versioning type.
16198 version_type=$version_type
16199
16200 # Format of library name prefix.
16201 libname_spec=$lt_libname_spec
16202
16203 # List of archive names. First name is the real one, the rest are links.
16204 # The last name is the one that the linker finds with -lNAME.
16205 library_names_spec=$lt_library_names_spec
16206
16207 # The coded name of the library, if different from the real name.
16208 soname_spec=$lt_soname_spec
16209
16210 # Commands used to build and install an old-style archive.
16211 RANLIB=$lt_RANLIB
16212 old_archive_cmds=$lt_old_archive_cmds_F77
16213 old_postinstall_cmds=$lt_old_postinstall_cmds
16214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16215
16216 # Create an old-style archive from a shared archive.
16217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16218
16219 # Create a temporary old-style archive to link instead of a shared archive.
16220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16221
16222 # Commands used to build and install a shared archive.
16223 archive_cmds=$lt_archive_cmds_F77
16224 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16225 postinstall_cmds=$lt_postinstall_cmds
16226 postuninstall_cmds=$lt_postuninstall_cmds
16227
16228 # Commands used to build a loadable module (assumed same as above if empty)
16229 module_cmds=$lt_module_cmds_F77
16230 module_expsym_cmds=$lt_module_expsym_cmds_F77
16231
16232 # Commands to strip libraries.
16233 old_striplib=$lt_old_striplib
16234 striplib=$lt_striplib
16235
16236 # Dependencies to place before the objects being linked to create a
16237 # shared library.
16238 predep_objects=$lt_predep_objects_F77
16239
16240 # Dependencies to place after the objects being linked to create a
16241 # shared library.
16242 postdep_objects=$lt_postdep_objects_F77
16243
16244 # Dependencies to place before the objects being linked to create a
16245 # shared library.
16246 predeps=$lt_predeps_F77
16247
16248 # Dependencies to place after the objects being linked to create a
16249 # shared library.
16250 postdeps=$lt_postdeps_F77
16251
16252 # The library search path used internally by the compiler when linking
16253 # a shared library.
16254 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16255
16256 # Method to check whether dependent libraries are shared objects.
16257 deplibs_check_method=$lt_deplibs_check_method
16258
16259 # Command to use when deplibs_check_method == file_magic.
16260 file_magic_cmd=$lt_file_magic_cmd
16261
16262 # Flag that allows shared libraries with undefined symbols to be built.
16263 allow_undefined_flag=$lt_allow_undefined_flag_F77
16264
16265 # Flag that forces no undefined symbols.
16266 no_undefined_flag=$lt_no_undefined_flag_F77
16267
16268 # Commands used to finish a libtool library installation in a directory.
16269 finish_cmds=$lt_finish_cmds
16270
16271 # Same as above, but a single script fragment to be evaled but not shown.
16272 finish_eval=$lt_finish_eval
16273
16274 # Take the output of nm and produce a listing of raw symbols and C names.
16275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16276
16277 # Transform the output of nm in a proper C declaration
16278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16279
16280 # Transform the output of nm in a C name address pair
16281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16282
16283 # This is the shared library runtime path variable.
16284 runpath_var=$runpath_var
16285
16286 # This is the shared library path variable.
16287 shlibpath_var=$shlibpath_var
16288
16289 # Is shlibpath searched before the hard-coded library search path?
16290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16291
16292 # How to hardcode a shared library path into an executable.
16293 hardcode_action=$hardcode_action_F77
16294
16295 # Whether we should hardcode library paths into libraries.
16296 hardcode_into_libs=$hardcode_into_libs
16297
16298 # Flag to hardcode \$libdir into a binary during linking.
16299 # This must work even if \$libdir does not exist.
16300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16301
16302 # If ld is used when linking, flag to hardcode \$libdir into
16303 # a binary during linking. This must work even if \$libdir does
16304 # not exist.
16305 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16306
16307 # Whether we need a single -rpath flag with a separated argument.
16308 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16309
16310 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16311 # resulting binary.
16312 hardcode_direct=$hardcode_direct_F77
16313
16314 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16315 # resulting binary.
16316 hardcode_minus_L=$hardcode_minus_L_F77
16317
16318 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16319 # the resulting binary.
16320 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16321
16322 # Set to yes if building a shared library automatically hardcodes DIR into the library
16323 # and all subsequent libraries and executables linked against it.
16324 hardcode_automatic=$hardcode_automatic_F77
16325
16326 # Variables whose values should be saved in libtool wrapper scripts and
16327 # restored at relink time.
16328 variables_saved_for_relink="$variables_saved_for_relink"
16329
16330 # Whether libtool must link a program against all its dependency libraries.
16331 link_all_deplibs=$link_all_deplibs_F77
16332
16333 # Compile-time system search path for libraries
16334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16335
16336 # Run-time system search path for libraries
16337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16338
16339 # Fix the shell variable \$srcfile for the compiler.
16340 fix_srcfile_path="$fix_srcfile_path_F77"
16341
16342 # Set to yes if exported symbols are required.
16343 always_export_symbols=$always_export_symbols_F77
16344
16345 # The commands to list exported symbols.
16346 export_symbols_cmds=$lt_export_symbols_cmds_F77
16347
16348 # The commands to extract the exported symbol list from a shared archive.
16349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16350
16351 # Symbols that should not be listed in the preloaded symbols.
16352 exclude_expsyms=$lt_exclude_expsyms_F77
16353
16354 # Symbols that must always be exported.
16355 include_expsyms=$lt_include_expsyms_F77
16356
16357 # ### END LIBTOOL TAG CONFIG: $tagname
16358
16359 __EOF__
16360
16361
16362 else
16363 # If there is no Makefile yet, we rely on a make rule to execute
16364 # `config.status --recheck' to rerun these tests and create the
16365 # libtool script then.
16366 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16367 if test -f "$ltmain_in"; then
16368 test -f Makefile && make "$ltmain"
16369 fi
16370 fi
16371
16372
16373 ac_ext=c
16374 ac_cpp='$CPP $CPPFLAGS'
16375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16378
16379 CC="$lt_save_CC"
16380
16381 else
16382 tagname=""
16383 fi
16384 ;;
16385
16386 GCJ)
16387 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16388
16389
16390
16391 # Source file extension for Java test sources.
16392 ac_ext=java
16393
16394 # Object file extension for compiled Java test sources.
16395 objext=o
16396 objext_GCJ=$objext
16397
16398 # Code to be used in simple compile tests
16399 lt_simple_compile_test_code="class foo {}\n"
16400
16401 # Code to be used in simple link tests
16402 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16403
16404 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16405
16406 # If no C compiler was specified, use CC.
16407 LTCC=${LTCC-"$CC"}
16408
16409 # Allow CC to be a program name with arguments.
16410 compiler=$CC
16411
16412
16413 # Allow CC to be a program name with arguments.
16414 lt_save_CC="$CC"
16415 CC=${GCJ-"gcj"}
16416 compiler=$CC
16417 compiler_GCJ=$CC
16418
16419 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16420 archive_cmds_need_lc_GCJ=no
16421
16422
16423 lt_prog_compiler_no_builtin_flag_GCJ=
16424
16425 if test "$GCC" = yes; then
16426 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16427
16428
16429 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16430 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16431 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434 lt_cv_prog_compiler_rtti_exceptions=no
16435 ac_outfile=conftest.$ac_objext
16436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16437 lt_compiler_flag="-fno-rtti -fno-exceptions"
16438 # Insert the option either (1) after the last *FLAGS variable, or
16439 # (2) before a word containing "conftest.", or (3) at the end.
16440 # Note that $ac_compile itself does not contain backslashes and begins
16441 # with a dollar sign (not a hyphen), so the echo should work correctly.
16442 # The option is referenced via a variable to avoid confusing sed.
16443 lt_compile=`echo "$ac_compile" | $SED \
16444 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16446 -e 's:$: $lt_compiler_flag:'`
16447 (eval echo "\"\$as_me:16448: $lt_compile\"" >&5)
16448 (eval "$lt_compile" 2>conftest.err)
16449 ac_status=$?
16450 cat conftest.err >&5
16451 echo "$as_me:16452: \$? = $ac_status" >&5
16452 if (exit $ac_status) && test -s "$ac_outfile"; then
16453 # The compiler can only warn and ignore the option if not recognized
16454 # So say no if there are warnings
16455 if test ! -s conftest.err; then
16456 lt_cv_prog_compiler_rtti_exceptions=yes
16457 fi
16458 fi
16459 $rm conftest*
16460
16461 fi
16462 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16463 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16464
16465 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16466 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16467 else
16468 :
16469 fi
16470
16471 fi
16472
16473 lt_prog_compiler_wl_GCJ=
16474 lt_prog_compiler_pic_GCJ=
16475 lt_prog_compiler_static_GCJ=
16476
16477 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16479
16480 if test "$GCC" = yes; then
16481 lt_prog_compiler_wl_GCJ='-Wl,'
16482 lt_prog_compiler_static_GCJ='-static'
16483
16484 case $host_os in
16485 aix*)
16486 # All AIX code is PIC.
16487 if test "$host_cpu" = ia64; then
16488 # AIX 5 now supports IA64 processor
16489 lt_prog_compiler_static_GCJ='-Bstatic'
16490 fi
16491 ;;
16492
16493 amigaos*)
16494 # FIXME: we need at least 68020 code to build shared libraries, but
16495 # adding the `-m68020' flag to GCC prevents building anything better,
16496 # like `-m68040'.
16497 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16498 ;;
16499
16500 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16501 # PIC is the default for these OSes.
16502 ;;
16503
16504 mingw* | pw32* | os2*)
16505 # This hack is so that the source file can tell whether it is being
16506 # built for inclusion in a dll (and should export symbols for example).
16507 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16508 ;;
16509
16510 darwin* | rhapsody*)
16511 # PIC is the default on this platform
16512 # Common symbols not allowed in MH_DYLIB files
16513 lt_prog_compiler_pic_GCJ='-fno-common'
16514 ;;
16515
16516 msdosdjgpp*)
16517 # Just because we use GCC doesn't mean we suddenly get shared libraries
16518 # on systems that don't support them.
16519 lt_prog_compiler_can_build_shared_GCJ=no
16520 enable_shared=no
16521 ;;
16522
16523 sysv4*MP*)
16524 if test -d /usr/nec; then
16525 lt_prog_compiler_pic_GCJ=-Kconform_pic
16526 fi
16527 ;;
16528
16529 hpux*)
16530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16531 # not for PA HP-UX.
16532 case "$host_cpu" in
16533 hppa*64*|ia64*)
16534 # +Z the default
16535 ;;
16536 *)
16537 lt_prog_compiler_pic_GCJ='-fPIC'
16538 ;;
16539 esac
16540 ;;
16541
16542 *)
16543 lt_prog_compiler_pic_GCJ='-fPIC'
16544 ;;
16545 esac
16546 else
16547 # PORTME Check for flag to pass linker flags through the system compiler.
16548 case $host_os in
16549 aix*)
16550 lt_prog_compiler_wl_GCJ='-Wl,'
16551 if test "$host_cpu" = ia64; then
16552 # AIX 5 now supports IA64 processor
16553 lt_prog_compiler_static_GCJ='-Bstatic'
16554 else
16555 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16556 fi
16557 ;;
16558
16559 mingw* | pw32* | os2*)
16560 # This hack is so that the source file can tell whether it is being
16561 # built for inclusion in a dll (and should export symbols for example).
16562 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16563 ;;
16564
16565 hpux9* | hpux10* | hpux11*)
16566 lt_prog_compiler_wl_GCJ='-Wl,'
16567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16568 # not for PA HP-UX.
16569 case "$host_cpu" in
16570 hppa*64*|ia64*)
16571 # +Z the default
16572 ;;
16573 *)
16574 lt_prog_compiler_pic_GCJ='+Z'
16575 ;;
16576 esac
16577 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16578 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16579 ;;
16580
16581 irix5* | irix6* | nonstopux*)
16582 lt_prog_compiler_wl_GCJ='-Wl,'
16583 # PIC (with -KPIC) is the default.
16584 lt_prog_compiler_static_GCJ='-non_shared'
16585 ;;
16586
16587 newsos6)
16588 lt_prog_compiler_pic_GCJ='-KPIC'
16589 lt_prog_compiler_static_GCJ='-Bstatic'
16590 ;;
16591
16592 linux*)
16593 case $CC in
16594 icc* | ecc*)
16595 lt_prog_compiler_wl_GCJ='-Wl,'
16596 lt_prog_compiler_pic_GCJ='-KPIC'
16597 lt_prog_compiler_static_GCJ='-static'
16598 ;;
16599 ccc*)
16600 lt_prog_compiler_wl_GCJ='-Wl,'
16601 # All Alpha code is PIC.
16602 lt_prog_compiler_static_GCJ='-non_shared'
16603 ;;
16604 esac
16605 ;;
16606
16607 osf3* | osf4* | osf5*)
16608 lt_prog_compiler_wl_GCJ='-Wl,'
16609 # All OSF/1 code is PIC.
16610 lt_prog_compiler_static_GCJ='-non_shared'
16611 ;;
16612
16613 sco3.2v5*)
16614 lt_prog_compiler_pic_GCJ='-Kpic'
16615 lt_prog_compiler_static_GCJ='-dn'
16616 ;;
16617
16618 solaris*)
16619 lt_prog_compiler_wl_GCJ='-Wl,'
16620 lt_prog_compiler_pic_GCJ='-KPIC'
16621 lt_prog_compiler_static_GCJ='-Bstatic'
16622 ;;
16623
16624 sunos4*)
16625 lt_prog_compiler_wl_GCJ='-Qoption ld '
16626 lt_prog_compiler_pic_GCJ='-PIC'
16627 lt_prog_compiler_static_GCJ='-Bstatic'
16628 ;;
16629
16630 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16631 lt_prog_compiler_wl_GCJ='-Wl,'
16632 lt_prog_compiler_pic_GCJ='-KPIC'
16633 lt_prog_compiler_static_GCJ='-Bstatic'
16634 ;;
16635
16636 sysv4*MP*)
16637 if test -d /usr/nec ;then
16638 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16639 lt_prog_compiler_static_GCJ='-Bstatic'
16640 fi
16641 ;;
16642
16643 uts4*)
16644 lt_prog_compiler_pic_GCJ='-pic'
16645 lt_prog_compiler_static_GCJ='-Bstatic'
16646 ;;
16647
16648 *)
16649 lt_prog_compiler_can_build_shared_GCJ=no
16650 ;;
16651 esac
16652 fi
16653
16654 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16655 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16656
16657 #
16658 # Check to make sure the PIC flag actually works.
16659 #
16660 if test -n "$lt_prog_compiler_pic_GCJ"; then
16661
16662 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16663 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16664 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667 lt_prog_compiler_pic_works_GCJ=no
16668 ac_outfile=conftest.$ac_objext
16669 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16670 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16671 # Insert the option either (1) after the last *FLAGS variable, or
16672 # (2) before a word containing "conftest.", or (3) at the end.
16673 # Note that $ac_compile itself does not contain backslashes and begins
16674 # with a dollar sign (not a hyphen), so the echo should work correctly.
16675 # The option is referenced via a variable to avoid confusing sed.
16676 lt_compile=`echo "$ac_compile" | $SED \
16677 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16679 -e 's:$: $lt_compiler_flag:'`
16680 (eval echo "\"\$as_me:16681: $lt_compile\"" >&5)
16681 (eval "$lt_compile" 2>conftest.err)
16682 ac_status=$?
16683 cat conftest.err >&5
16684 echo "$as_me:16685: \$? = $ac_status" >&5
16685 if (exit $ac_status) && test -s "$ac_outfile"; then
16686 # The compiler can only warn and ignore the option if not recognized
16687 # So say no if there are warnings
16688 if test ! -s conftest.err; then
16689 lt_prog_compiler_pic_works_GCJ=yes
16690 fi
16691 fi
16692 $rm conftest*
16693
16694 fi
16695 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16696 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16697
16698 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16699 case $lt_prog_compiler_pic_GCJ in
16700 "" | " "*) ;;
16701 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16702 esac
16703 else
16704 lt_prog_compiler_pic_GCJ=
16705 lt_prog_compiler_can_build_shared_GCJ=no
16706 fi
16707
16708 fi
16709 case "$host_os" in
16710 # For platforms which do not support PIC, -DPIC is meaningless:
16711 *djgpp*)
16712 lt_prog_compiler_pic_GCJ=
16713 ;;
16714 *)
16715 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16716 ;;
16717 esac
16718
16719 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16720 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16721 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724 lt_cv_prog_compiler_c_o_GCJ=no
16725 $rm -r conftest 2>/dev/null
16726 mkdir conftest
16727 cd conftest
16728 mkdir out
16729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16730
16731 lt_compiler_flag="-o out/conftest2.$ac_objext"
16732 # Insert the option either (1) after the last *FLAGS variable, or
16733 # (2) before a word containing "conftest.", or (3) at the end.
16734 # Note that $ac_compile itself does not contain backslashes and begins
16735 # with a dollar sign (not a hyphen), so the echo should work correctly.
16736 lt_compile=`echo "$ac_compile" | $SED \
16737 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16739 -e 's:$: $lt_compiler_flag:'`
16740 (eval echo "\"\$as_me:16741: $lt_compile\"" >&5)
16741 (eval "$lt_compile" 2>out/conftest.err)
16742 ac_status=$?
16743 cat out/conftest.err >&5
16744 echo "$as_me:16745: \$? = $ac_status" >&5
16745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16746 then
16747 # The compiler can only warn and ignore the option if not recognized
16748 # So say no if there are warnings
16749 if test ! -s out/conftest.err; then
16750 lt_cv_prog_compiler_c_o_GCJ=yes
16751 fi
16752 fi
16753 chmod u+w .
16754 $rm conftest*
16755 # SGI C++ compiler will create directory out/ii_files/ for
16756 # template instantiation
16757 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16758 $rm out/* && rmdir out
16759 cd ..
16760 rmdir conftest
16761 $rm conftest*
16762
16763 fi
16764 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16765 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16766
16767
16768 hard_links="nottested"
16769 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16770 # do not overwrite the value of need_locks provided by the user
16771 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16772 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16773 hard_links=yes
16774 $rm conftest*
16775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16776 touch conftest.a
16777 ln conftest.a conftest.b 2>&5 || hard_links=no
16778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16779 echo "$as_me:$LINENO: result: $hard_links" >&5
16780 echo "${ECHO_T}$hard_links" >&6
16781 if test "$hard_links" = no; then
16782 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16783 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16784 need_locks=warn
16785 fi
16786 else
16787 need_locks=no
16788 fi
16789
16790 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16791 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16792
16793 runpath_var=
16794 allow_undefined_flag_GCJ=
16795 enable_shared_with_static_runtimes_GCJ=no
16796 archive_cmds_GCJ=
16797 archive_expsym_cmds_GCJ=
16798 old_archive_From_new_cmds_GCJ=
16799 old_archive_from_expsyms_cmds_GCJ=
16800 export_dynamic_flag_spec_GCJ=
16801 whole_archive_flag_spec_GCJ=
16802 thread_safe_flag_spec_GCJ=
16803 hardcode_libdir_flag_spec_GCJ=
16804 hardcode_libdir_flag_spec_ld_GCJ=
16805 hardcode_libdir_separator_GCJ=
16806 hardcode_direct_GCJ=no
16807 hardcode_minus_L_GCJ=no
16808 hardcode_shlibpath_var_GCJ=unsupported
16809 link_all_deplibs_GCJ=unknown
16810 hardcode_automatic_GCJ=no
16811 module_cmds_GCJ=
16812 module_expsym_cmds_GCJ=
16813 always_export_symbols_GCJ=no
16814 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16815 # include_expsyms should be a list of space-separated symbols to be *always*
16816 # included in the symbol list
16817 include_expsyms_GCJ=
16818 # exclude_expsyms can be an extended regexp of symbols to exclude
16819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16821 # as well as any symbol that contains `d'.
16822 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16824 # platforms (ab)use it in PIC code, but their linkers get confused if
16825 # the symbol is explicitly referenced. Since portable code cannot
16826 # rely on this symbol name, it's probably fine to never include it in
16827 # preloaded symbol tables.
16828 extract_expsyms_cmds=
16829
16830 case $host_os in
16831 cygwin* | mingw* | pw32*)
16832 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16833 # When not using gcc, we currently assume that we are using
16834 # Microsoft Visual C++.
16835 if test "$GCC" != yes; then
16836 with_gnu_ld=no
16837 fi
16838 ;;
16839 openbsd*)
16840 with_gnu_ld=no
16841 ;;
16842 esac
16843
16844 ld_shlibs_GCJ=yes
16845 if test "$with_gnu_ld" = yes; then
16846 # If archive_cmds runs LD, not CC, wlarc should be empty
16847 wlarc='${wl}'
16848
16849 # See if GNU ld supports shared libraries.
16850 case $host_os in
16851 aix3* | aix4* | aix5*)
16852 # On AIX/PPC, the GNU linker is very broken
16853 if test "$host_cpu" != ia64; then
16854 ld_shlibs_GCJ=no
16855 cat <<EOF 1>&2
16856
16857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16858 *** to be unable to reliably create shared libraries on AIX.
16859 *** Therefore, libtool is disabling shared libraries support. If you
16860 *** really care for shared libraries, you may want to modify your PATH
16861 *** so that a non-GNU linker is found, and then restart.
16862
16863 EOF
16864 fi
16865 ;;
16866
16867 amigaos*)
16868 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16870 hardcode_minus_L_GCJ=yes
16871
16872 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16873 # that the semantics of dynamic libraries on AmigaOS, at least up
16874 # to version 4, is to share data among multiple programs linked
16875 # with the same dynamic library. Since this doesn't match the
16876 # behavior of shared libraries on other platforms, we can't use
16877 # them.
16878 ld_shlibs_GCJ=no
16879 ;;
16880
16881 beos*)
16882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16883 allow_undefined_flag_GCJ=unsupported
16884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16885 # support --undefined. This deserves some investigation. FIXME
16886 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16887 else
16888 ld_shlibs_GCJ=no
16889 fi
16890 ;;
16891
16892 cygwin* | mingw* | pw32*)
16893 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16894 # as there is no search path for DLLs.
16895 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16896 allow_undefined_flag_GCJ=unsupported
16897 always_export_symbols_GCJ=no
16898 enable_shared_with_static_runtimes_GCJ=yes
16899 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16900
16901 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16902 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16903 # If the export-symbols file already is a .def file (1st line
16904 # is EXPORTS), use it as is; otherwise, prepend...
16905 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16906 cp $export_symbols $output_objdir/$soname.def;
16907 else
16908 echo EXPORTS > $output_objdir/$soname.def;
16909 cat $export_symbols >> $output_objdir/$soname.def;
16910 fi~
16911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16912 else
16913 ld_shlibs=no
16914 fi
16915 ;;
16916
16917 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16919 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16920 wlarc=
16921 else
16922 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16923 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16924 fi
16925 ;;
16926
16927 solaris* | sysv5*)
16928 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16929 ld_shlibs_GCJ=no
16930 cat <<EOF 1>&2
16931
16932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16933 *** create shared libraries on Solaris systems. Therefore, libtool
16934 *** is disabling shared libraries support. We urge you to upgrade GNU
16935 *** binutils to release 2.9.1 or newer. Another option is to modify
16936 *** your PATH or compiler configuration so that the native linker is
16937 *** used, and then restart.
16938
16939 EOF
16940 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16941 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16942 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16943 else
16944 ld_shlibs_GCJ=no
16945 fi
16946 ;;
16947
16948 sunos4*)
16949 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16950 wlarc=
16951 hardcode_direct_GCJ=yes
16952 hardcode_shlibpath_var_GCJ=no
16953 ;;
16954
16955 linux*)
16956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16957 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958 archive_cmds_GCJ="$tmp_archive_cmds"
16959 supports_anon_versioning=no
16960 case `$LD -v 2>/dev/null` in
16961 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16964 *\ 2.11.*) ;; # other 2.11 versions
16965 *) supports_anon_versioning=yes ;;
16966 esac
16967 if test $supports_anon_versioning = yes; then
16968 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16970 $echo "local: *; };" >> $output_objdir/$libname.ver~
16971 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16972 else
16973 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16974 fi
16975 link_all_deplibs_GCJ=no
16976 else
16977 ld_shlibs_GCJ=no
16978 fi
16979 ;;
16980
16981 *)
16982 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16985 else
16986 ld_shlibs_GCJ=no
16987 fi
16988 ;;
16989 esac
16990
16991 if test "$ld_shlibs_GCJ" = yes; then
16992 runpath_var=LD_RUN_PATH
16993 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16994 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16995 # ancient GNU ld didn't support --whole-archive et. al.
16996 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16997 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16998 else
16999 whole_archive_flag_spec_GCJ=
17000 fi
17001 fi
17002 else
17003 # PORTME fill in a description of your system's linker (not GNU ld)
17004 case $host_os in
17005 aix3*)
17006 allow_undefined_flag_GCJ=unsupported
17007 always_export_symbols_GCJ=yes
17008 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17009 # Note: this linker hardcodes the directories in LIBPATH if there
17010 # are no directories specified by -L.
17011 hardcode_minus_L_GCJ=yes
17012 if test "$GCC" = yes && test -z "$link_static_flag"; then
17013 # Neither direct hardcoding nor static linking is supported with a
17014 # broken collect2.
17015 hardcode_direct_GCJ=unsupported
17016 fi
17017 ;;
17018
17019 aix4* | aix5*)
17020 if test "$host_cpu" = ia64; then
17021 # On IA64, the linker does run time linking by default, so we don't
17022 # have to do anything special.
17023 aix_use_runtimelinking=no
17024 exp_sym_flag='-Bexport'
17025 no_entry_flag=""
17026 else
17027 # If we're using GNU nm, then we don't want the "-C" option.
17028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17029 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17030 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17031 else
17032 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17033 fi
17034 aix_use_runtimelinking=no
17035
17036 # Test if we are trying to use run time linking or normal
17037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17038 # need to do runtime linking.
17039 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17040 for ld_flag in $LDFLAGS; do
17041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17042 aix_use_runtimelinking=yes
17043 break
17044 fi
17045 done
17046 esac
17047
17048 exp_sym_flag='-bexport'
17049 no_entry_flag='-bnoentry'
17050 fi
17051
17052 # When large executables or shared objects are built, AIX ld can
17053 # have problems creating the table of contents. If linking a library
17054 # or program results in "error TOC overflow" add -mminimal-toc to
17055 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17056 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17057
17058 archive_cmds_GCJ=''
17059 hardcode_direct_GCJ=yes
17060 hardcode_libdir_separator_GCJ=':'
17061 link_all_deplibs_GCJ=yes
17062
17063 if test "$GCC" = yes; then
17064 case $host_os in aix4.012|aix4.012.*)
17065 # We only want to do this on AIX 4.2 and lower, the check
17066 # below for broken collect2 doesn't work under 4.3+
17067 collect2name=`${CC} -print-prog-name=collect2`
17068 if test -f "$collect2name" && \
17069 strings "$collect2name" | grep resolve_lib_name >/dev/null
17070 then
17071 # We have reworked collect2
17072 hardcode_direct_GCJ=yes
17073 else
17074 # We have old collect2
17075 hardcode_direct_GCJ=unsupported
17076 # It fails to find uninstalled libraries when the uninstalled
17077 # path is not listed in the libpath. Setting hardcode_minus_L
17078 # to unsupported forces relinking
17079 hardcode_minus_L_GCJ=yes
17080 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17081 hardcode_libdir_separator_GCJ=
17082 fi
17083 esac
17084 shared_flag='-shared'
17085 else
17086 # not using gcc
17087 if test "$host_cpu" = ia64; then
17088 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17089 # chokes on -Wl,-G. The following line is correct:
17090 shared_flag='-G'
17091 else
17092 if test "$aix_use_runtimelinking" = yes; then
17093 shared_flag='${wl}-G'
17094 else
17095 shared_flag='${wl}-bM:SRE'
17096 fi
17097 fi
17098 fi
17099
17100 # It seems that -bexpall does not export symbols beginning with
17101 # underscore (_), so it is better to generate a list of symbols to export.
17102 always_export_symbols_GCJ=yes
17103 if test "$aix_use_runtimelinking" = yes; then
17104 # Warning - without using the other runtime loading flags (-brtl),
17105 # -berok will link without error, but may produce a broken library.
17106 allow_undefined_flag_GCJ='-berok'
17107 # Determine the default libpath from the value encoded in an empty executable.
17108 cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h. */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114
17115 int
17116 main ()
17117 {
17118
17119 ;
17120 return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext conftest$ac_exeext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17125 (eval $ac_link) 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; } &&
17138 { ac_try='test -s conftest$ac_exeext'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144
17145 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17146 }'`
17147 # Check for a 64-bit object if we didn't find anything.
17148 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17149 }'`; fi
17150 else
17151 echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17153
17154 fi
17155 rm -f conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17157 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17158
17159 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17160 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17161 else
17162 if test "$host_cpu" = ia64; then
17163 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17164 allow_undefined_flag_GCJ="-z nodefs"
17165 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17166 else
17167 # Determine the default libpath from the value encoded in an empty executable.
17168 cat >conftest.$ac_ext <<_ACEOF
17169 /* confdefs.h. */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174
17175 int
17176 main ()
17177 {
17178
17179 ;
17180 return 0;
17181 }
17182 _ACEOF
17183 rm -f conftest.$ac_objext conftest$ac_exeext
17184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17185 (eval $ac_link) 2>conftest.er1
17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try='test -s conftest$ac_exeext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204
17205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17206 }'`
17207 # Check for a 64-bit object if we didn't find anything.
17208 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17209 }'`; fi
17210 else
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214 fi
17215 rm -f conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17218
17219 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17220 # Warning - without using the other run time loading flags,
17221 # -berok will link without error, but may produce a broken library.
17222 no_undefined_flag_GCJ=' ${wl}-bernotok'
17223 allow_undefined_flag_GCJ=' ${wl}-berok'
17224 # -bexpall does not export symbols beginning with underscore (_)
17225 always_export_symbols_GCJ=yes
17226 # Exported symbols can be pulled into shared objects from archives
17227 whole_archive_flag_spec_GCJ=' '
17228 archive_cmds_need_lc_GCJ=yes
17229 # This is similar to how AIX traditionally builds it's shared libraries.
17230 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17231 fi
17232 fi
17233 ;;
17234
17235 amigaos*)
17236 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17237 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17238 hardcode_minus_L_GCJ=yes
17239 # see comment about different semantics on the GNU ld section
17240 ld_shlibs_GCJ=no
17241 ;;
17242
17243 bsdi4*)
17244 export_dynamic_flag_spec_GCJ=-rdynamic
17245 ;;
17246
17247 cygwin* | mingw* | pw32*)
17248 # When not using gcc, we currently assume that we are using
17249 # Microsoft Visual C++.
17250 # hardcode_libdir_flag_spec is actually meaningless, as there is
17251 # no search path for DLLs.
17252 hardcode_libdir_flag_spec_GCJ=' '
17253 allow_undefined_flag_GCJ=unsupported
17254 # Tell ltmain to make .lib files, not .a files.
17255 libext=lib
17256 # Tell ltmain to make .dll files, not .so files.
17257 shrext_cmds=".dll"
17258 # FIXME: Setting linknames here is a bad hack.
17259 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17260 # The linker will automatically build a .lib file if we build a DLL.
17261 old_archive_From_new_cmds_GCJ='true'
17262 # FIXME: Should let the user specify the lib program.
17263 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17264 fix_srcfile_path='`cygpath -w "$srcfile"`'
17265 enable_shared_with_static_runtimes_GCJ=yes
17266 ;;
17267
17268 darwin* | rhapsody*)
17269 if test "$GXX" = yes ; then
17270 archive_cmds_need_lc_GCJ=no
17271 case "$host_os" in
17272 rhapsody* | darwin1.[012])
17273 allow_undefined_flag_GCJ='-undefined suppress'
17274 ;;
17275 *) # Darwin 1.3 on
17276 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17277 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17278 else
17279 case ${MACOSX_DEPLOYMENT_TARGET} in
17280 10.[012])
17281 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17282 ;;
17283 10.*)
17284 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17285 ;;
17286 esac
17287 fi
17288 ;;
17289 esac
17290 lt_int_apple_cc_single_mod=no
17291 output_verbose_link_cmd='echo'
17292 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17293 lt_int_apple_cc_single_mod=yes
17294 fi
17295 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17296 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17297 else
17298 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17299 fi
17300 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17301 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17302 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17303 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17304 else
17305 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17306 fi
17307 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17308 hardcode_direct_GCJ=no
17309 hardcode_automatic_GCJ=yes
17310 hardcode_shlibpath_var_GCJ=unsupported
17311 whole_archive_flag_spec_GCJ='-all_load $convenience'
17312 link_all_deplibs_GCJ=yes
17313 else
17314 ld_shlibs_GCJ=no
17315 fi
17316 ;;
17317
17318 dgux*)
17319 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17320 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17321 hardcode_shlibpath_var_GCJ=no
17322 ;;
17323
17324 freebsd1*)
17325 ld_shlibs_GCJ=no
17326 ;;
17327
17328 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17329 # support. Future versions do this automatically, but an explicit c++rt0.o
17330 # does not break anything, and helps significantly (at the cost of a little
17331 # extra space).
17332 freebsd2.2*)
17333 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17334 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17335 hardcode_direct_GCJ=yes
17336 hardcode_shlibpath_var_GCJ=no
17337 ;;
17338
17339 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17340 freebsd2*)
17341 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17342 hardcode_direct_GCJ=yes
17343 hardcode_minus_L_GCJ=yes
17344 hardcode_shlibpath_var_GCJ=no
17345 ;;
17346
17347 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17348 freebsd* | kfreebsd*-gnu)
17349 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17350 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17351 hardcode_direct_GCJ=yes
17352 hardcode_shlibpath_var_GCJ=no
17353 ;;
17354
17355 hpux9*)
17356 if test "$GCC" = yes; then
17357 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17358 else
17359 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17360 fi
17361 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17362 hardcode_libdir_separator_GCJ=:
17363 hardcode_direct_GCJ=yes
17364
17365 # hardcode_minus_L: Not really in the search PATH,
17366 # but as the default location of the library.
17367 hardcode_minus_L_GCJ=yes
17368 export_dynamic_flag_spec_GCJ='${wl}-E'
17369 ;;
17370
17371 hpux10* | hpux11*)
17372 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17373 case "$host_cpu" in
17374 hppa*64*|ia64*)
17375 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17376 ;;
17377 *)
17378 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17379 ;;
17380 esac
17381 else
17382 case "$host_cpu" in
17383 hppa*64*|ia64*)
17384 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17385 ;;
17386 *)
17387 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17388 ;;
17389 esac
17390 fi
17391 if test "$with_gnu_ld" = no; then
17392 case "$host_cpu" in
17393 hppa*64*)
17394 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17395 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17396 hardcode_libdir_separator_GCJ=:
17397 hardcode_direct_GCJ=no
17398 hardcode_shlibpath_var_GCJ=no
17399 ;;
17400 ia64*)
17401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17402 hardcode_direct_GCJ=no
17403 hardcode_shlibpath_var_GCJ=no
17404
17405 # hardcode_minus_L: Not really in the search PATH,
17406 # but as the default location of the library.
17407 hardcode_minus_L_GCJ=yes
17408 ;;
17409 *)
17410 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17411 hardcode_libdir_separator_GCJ=:
17412 hardcode_direct_GCJ=yes
17413 export_dynamic_flag_spec_GCJ='${wl}-E'
17414
17415 # hardcode_minus_L: Not really in the search PATH,
17416 # but as the default location of the library.
17417 hardcode_minus_L_GCJ=yes
17418 ;;
17419 esac
17420 fi
17421 ;;
17422
17423 irix5* | irix6* | nonstopux*)
17424 if test "$GCC" = yes; then
17425 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17426 else
17427 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17428 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17429 fi
17430 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17431 hardcode_libdir_separator_GCJ=:
17432 link_all_deplibs_GCJ=yes
17433 ;;
17434
17435 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17437 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17438 else
17439 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17440 fi
17441 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17442 hardcode_direct_GCJ=yes
17443 hardcode_shlibpath_var_GCJ=no
17444 ;;
17445
17446 newsos6)
17447 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17448 hardcode_direct_GCJ=yes
17449 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17450 hardcode_libdir_separator_GCJ=:
17451 hardcode_shlibpath_var_GCJ=no
17452 ;;
17453
17454 openbsd*)
17455 hardcode_direct_GCJ=yes
17456 hardcode_shlibpath_var_GCJ=no
17457 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17458 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17459 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17460 export_dynamic_flag_spec_GCJ='${wl}-E'
17461 else
17462 case $host_os in
17463 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17464 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17465 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17466 ;;
17467 *)
17468 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17469 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17470 ;;
17471 esac
17472 fi
17473 ;;
17474
17475 os2*)
17476 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17477 hardcode_minus_L_GCJ=yes
17478 allow_undefined_flag_GCJ=unsupported
17479 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17480 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17481 ;;
17482
17483 osf3*)
17484 if test "$GCC" = yes; then
17485 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17486 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17487 else
17488 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17489 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17490 fi
17491 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17492 hardcode_libdir_separator_GCJ=:
17493 ;;
17494
17495 osf4* | osf5*) # as osf3* with the addition of -msym flag
17496 if test "$GCC" = yes; then
17497 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17498 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17499 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17500 else
17501 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17502 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17503 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17504 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17505
17506 # Both c and cxx compiler support -rpath directly
17507 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17508 fi
17509 hardcode_libdir_separator_GCJ=:
17510 ;;
17511
17512 sco3.2v5*)
17513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17514 hardcode_shlibpath_var_GCJ=no
17515 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17516 runpath_var=LD_RUN_PATH
17517 hardcode_runpath_var=yes
17518 ;;
17519
17520 solaris*)
17521 no_undefined_flag_GCJ=' -z text'
17522 if test "$GCC" = yes; then
17523 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17525 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17526 else
17527 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17528 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17529 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17530 fi
17531 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17532 hardcode_shlibpath_var_GCJ=no
17533 case $host_os in
17534 solaris2.[0-5] | solaris2.[0-5].*) ;;
17535 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17536 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17537 esac
17538 link_all_deplibs_GCJ=yes
17539 ;;
17540
17541 sunos4*)
17542 if test "x$host_vendor" = xsequent; then
17543 # Use $CC to link under sequent, because it throws in some extra .o
17544 # files that make .init and .fini sections work.
17545 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17546 else
17547 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17548 fi
17549 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17550 hardcode_direct_GCJ=yes
17551 hardcode_minus_L_GCJ=yes
17552 hardcode_shlibpath_var_GCJ=no
17553 ;;
17554
17555 sysv4)
17556 case $host_vendor in
17557 sni)
17558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17559 hardcode_direct_GCJ=yes # is this really true???
17560 ;;
17561 siemens)
17562 ## LD is ld it makes a PLAMLIB
17563 ## CC just makes a GrossModule.
17564 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17565 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17566 hardcode_direct_GCJ=no
17567 ;;
17568 motorola)
17569 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17570 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17571 ;;
17572 esac
17573 runpath_var='LD_RUN_PATH'
17574 hardcode_shlibpath_var_GCJ=no
17575 ;;
17576
17577 sysv4.3*)
17578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17579 hardcode_shlibpath_var_GCJ=no
17580 export_dynamic_flag_spec_GCJ='-Bexport'
17581 ;;
17582
17583 sysv4*MP*)
17584 if test -d /usr/nec; then
17585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586 hardcode_shlibpath_var_GCJ=no
17587 runpath_var=LD_RUN_PATH
17588 hardcode_runpath_var=yes
17589 ld_shlibs_GCJ=yes
17590 fi
17591 ;;
17592
17593 sysv4.2uw2*)
17594 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17595 hardcode_direct_GCJ=yes
17596 hardcode_minus_L_GCJ=no
17597 hardcode_shlibpath_var_GCJ=no
17598 hardcode_runpath_var=yes
17599 runpath_var=LD_RUN_PATH
17600 ;;
17601
17602 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17603 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17604 if test "$GCC" = yes; then
17605 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17606 else
17607 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17608 fi
17609 runpath_var='LD_RUN_PATH'
17610 hardcode_shlibpath_var_GCJ=no
17611 ;;
17612
17613 sysv5*)
17614 no_undefined_flag_GCJ=' -z text'
17615 # $CC -shared without GNU ld will not create a library from C++
17616 # object files and a static libstdc++, better avoid it by now
17617 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17620 hardcode_libdir_flag_spec_GCJ=
17621 hardcode_shlibpath_var_GCJ=no
17622 runpath_var='LD_RUN_PATH'
17623 ;;
17624
17625 uts4*)
17626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17627 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17628 hardcode_shlibpath_var_GCJ=no
17629 ;;
17630
17631 *)
17632 ld_shlibs_GCJ=no
17633 ;;
17634 esac
17635 fi
17636
17637 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17638 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17639 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17640
17641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17642 if test "$GCC" = yes; then
17643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17644 fi
17645
17646 #
17647 # Do we need to explicitly link libc?
17648 #
17649 case "x$archive_cmds_need_lc_GCJ" in
17650 x|xyes)
17651 # Assume -lc should be added
17652 archive_cmds_need_lc_GCJ=yes
17653
17654 if test "$enable_shared" = yes && test "$GCC" = yes; then
17655 case $archive_cmds_GCJ in
17656 *'~'*)
17657 # FIXME: we may have to deal with multi-command sequences.
17658 ;;
17659 '$CC '*)
17660 # Test whether the compiler implicitly links with -lc since on some
17661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17662 # to ld, don't add -lc before -lgcc.
17663 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17664 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17665 $rm conftest*
17666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17667
17668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17669 (eval $ac_compile) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } 2>conftest.err; then
17673 soname=conftest
17674 lib=conftest
17675 libobjs=conftest.$ac_objext
17676 deplibs=
17677 wl=$lt_prog_compiler_wl_GCJ
17678 compiler_flags=-v
17679 linker_flags=-v
17680 verstring=
17681 output_objdir=.
17682 libname=conftest
17683 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17684 allow_undefined_flag_GCJ=
17685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17686 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }
17690 then
17691 archive_cmds_need_lc_GCJ=no
17692 else
17693 archive_cmds_need_lc_GCJ=yes
17694 fi
17695 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17696 else
17697 cat conftest.err 1>&5
17698 fi
17699 $rm conftest*
17700 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17701 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17702 ;;
17703 esac
17704 fi
17705 ;;
17706 esac
17707
17708 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17710 library_names_spec=
17711 libname_spec='lib$name'
17712 soname_spec=
17713 shrext_cmds=".so"
17714 postinstall_cmds=
17715 postuninstall_cmds=
17716 finish_cmds=
17717 finish_eval=
17718 shlibpath_var=
17719 shlibpath_overrides_runpath=unknown
17720 version_type=none
17721 dynamic_linker="$host_os ld.so"
17722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17723 if test "$GCC" = yes; then
17724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17726 # if the path contains ";" then we assume it to be the separator
17727 # otherwise default to the standard path separator (i.e. ":") - it is
17728 # assumed that no part of a normal pathname contains ";" but that should
17729 # okay in the real world where ";" in dirpaths is itself problematic.
17730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17731 else
17732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17733 fi
17734 else
17735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17736 fi
17737 need_lib_prefix=unknown
17738 hardcode_into_libs=no
17739
17740 # when you set need_version to no, make sure it does not cause -set_version
17741 # flags to be left without arguments
17742 need_version=unknown
17743
17744 case $host_os in
17745 aix3*)
17746 version_type=linux
17747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17748 shlibpath_var=LIBPATH
17749
17750 # AIX 3 has no versioning support, so we append a major version to the name.
17751 soname_spec='${libname}${release}${shared_ext}$major'
17752 ;;
17753
17754 aix4* | aix5*)
17755 version_type=linux
17756 need_lib_prefix=no
17757 need_version=no
17758 hardcode_into_libs=yes
17759 if test "$host_cpu" = ia64; then
17760 # AIX 5 supports IA64
17761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17762 shlibpath_var=LD_LIBRARY_PATH
17763 else
17764 # With GCC up to 2.95.x, collect2 would create an import file
17765 # for dependence libraries. The import file would start with
17766 # the line `#! .'. This would cause the generated library to
17767 # depend on `.', always an invalid library. This was fixed in
17768 # development snapshots of GCC prior to 3.0.
17769 case $host_os in
17770 aix4 | aix4.[01] | aix4.[01].*)
17771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17772 echo ' yes '
17773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17774 :
17775 else
17776 can_build_shared=no
17777 fi
17778 ;;
17779 esac
17780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17781 # soname into executable. Probably we can add versioning support to
17782 # collect2, so additional links can be useful in future.
17783 if test "$aix_use_runtimelinking" = yes; then
17784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17785 # instead of lib<name>.a to let people know that these are not
17786 # typical AIX shared libraries.
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17788 else
17789 # We preserve .a as extension for shared libraries through AIX4.2
17790 # and later when we are not doing run time linking.
17791 library_names_spec='${libname}${release}.a $libname.a'
17792 soname_spec='${libname}${release}${shared_ext}$major'
17793 fi
17794 shlibpath_var=LIBPATH
17795 fi
17796 ;;
17797
17798 amigaos*)
17799 library_names_spec='$libname.ixlibrary $libname.a'
17800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17801 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17802 ;;
17803
17804 beos*)
17805 library_names_spec='${libname}${shared_ext}'
17806 dynamic_linker="$host_os ld.so"
17807 shlibpath_var=LIBRARY_PATH
17808 ;;
17809
17810 bsdi4*)
17811 version_type=linux
17812 need_version=no
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 soname_spec='${libname}${release}${shared_ext}$major'
17815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17816 shlibpath_var=LD_LIBRARY_PATH
17817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17819 # the default ld.so.conf also contains /usr/contrib/lib and
17820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17821 # libtool to hard-code these into programs
17822 ;;
17823
17824 cygwin* | mingw* | pw32*)
17825 version_type=windows
17826 shrext_cmds=".dll"
17827 need_version=no
17828 need_lib_prefix=no
17829
17830 case $GCC,$host_os in
17831 yes,cygwin* | yes,mingw* | yes,pw32*)
17832 library_names_spec='$libname.dll.a'
17833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17834 postinstall_cmds='base_file=`basename \${file}`~
17835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17836 dldir=$destdir/`dirname \$dlpath`~
17837 test -d \$dldir || mkdir -p \$dldir~
17838 $install_prog $dir/$dlname \$dldir/$dlname'
17839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17840 dlpath=$dir/\$dldll~
17841 $rm \$dlpath'
17842 shlibpath_overrides_runpath=yes
17843
17844 case $host_os in
17845 cygwin*)
17846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17849 ;;
17850 mingw*)
17851 # MinGW DLLs use traditional 'lib' prefix
17852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17855 # It is most probably a Windows format PATH printed by
17856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17857 # path with ; separators, and with drive letters. We can handle the
17858 # drive letters (cygwin fileutils understands them), so leave them,
17859 # especially as we might pass files found there to a mingw objdump,
17860 # which wouldn't understand a cygwinified path. Ahh.
17861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17862 else
17863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17864 fi
17865 ;;
17866 pw32*)
17867 # pw32 DLLs use 'pw' prefix rather than 'lib'
17868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17869 ;;
17870 esac
17871 ;;
17872
17873 *)
17874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17875 ;;
17876 esac
17877 dynamic_linker='Win32 ld.exe'
17878 # FIXME: first we should search . and the directory the executable is in
17879 shlibpath_var=PATH
17880 ;;
17881
17882 darwin* | rhapsody*)
17883 dynamic_linker="$host_os dyld"
17884 version_type=darwin
17885 need_lib_prefix=no
17886 need_version=no
17887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17888 soname_spec='${libname}${release}${major}$shared_ext'
17889 shlibpath_overrides_runpath=yes
17890 shlibpath_var=DYLD_LIBRARY_PATH
17891 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17892 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17893 if test "$GCC" = yes; then
17894 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17895 else
17896 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17897 fi
17898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17899 ;;
17900
17901 dgux*)
17902 version_type=linux
17903 need_lib_prefix=no
17904 need_version=no
17905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17906 soname_spec='${libname}${release}${shared_ext}$major'
17907 shlibpath_var=LD_LIBRARY_PATH
17908 ;;
17909
17910 freebsd1*)
17911 dynamic_linker=no
17912 ;;
17913
17914 kfreebsd*-gnu)
17915 version_type=linux
17916 need_lib_prefix=no
17917 need_version=no
17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17919 soname_spec='${libname}${release}${shared_ext}$major'
17920 shlibpath_var=LD_LIBRARY_PATH
17921 shlibpath_overrides_runpath=no
17922 hardcode_into_libs=yes
17923 dynamic_linker='GNU ld.so'
17924 ;;
17925
17926 freebsd*)
17927 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17928 version_type=freebsd-$objformat
17929 case $version_type in
17930 freebsd-elf*)
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17932 need_version=no
17933 need_lib_prefix=no
17934 ;;
17935 freebsd-*)
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17937 need_version=yes
17938 ;;
17939 esac
17940 shlibpath_var=LD_LIBRARY_PATH
17941 case $host_os in
17942 freebsd2*)
17943 shlibpath_overrides_runpath=yes
17944 ;;
17945 freebsd3.01* | freebsdelf3.01*)
17946 shlibpath_overrides_runpath=yes
17947 hardcode_into_libs=yes
17948 ;;
17949 *) # from 3.2 on
17950 shlibpath_overrides_runpath=no
17951 hardcode_into_libs=yes
17952 ;;
17953 esac
17954 ;;
17955
17956 gnu*)
17957 version_type=linux
17958 need_lib_prefix=no
17959 need_version=no
17960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17961 soname_spec='${libname}${release}${shared_ext}$major'
17962 shlibpath_var=LD_LIBRARY_PATH
17963 hardcode_into_libs=yes
17964 ;;
17965
17966 hpux9* | hpux10* | hpux11*)
17967 # Give a soname corresponding to the major version so that dld.sl refuses to
17968 # link against other versions.
17969 version_type=sunos
17970 need_lib_prefix=no
17971 need_version=no
17972 case "$host_cpu" in
17973 ia64*)
17974 shrext_cmds='.so'
17975 hardcode_into_libs=yes
17976 dynamic_linker="$host_os dld.so"
17977 shlibpath_var=LD_LIBRARY_PATH
17978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 if test "X$HPUX_IA64_MODE" = X32; then
17982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17983 else
17984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17985 fi
17986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17987 ;;
17988 hppa*64*)
17989 shrext_cmds='.sl'
17990 hardcode_into_libs=yes
17991 dynamic_linker="$host_os dld.sl"
17992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17995 soname_spec='${libname}${release}${shared_ext}$major'
17996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17998 ;;
17999 *)
18000 shrext_cmds='.sl'
18001 dynamic_linker="$host_os dld.sl"
18002 shlibpath_var=SHLIB_PATH
18003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005 soname_spec='${libname}${release}${shared_ext}$major'
18006 ;;
18007 esac
18008 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18009 postinstall_cmds='chmod 555 $lib'
18010 ;;
18011
18012 irix5* | irix6* | nonstopux*)
18013 case $host_os in
18014 nonstopux*) version_type=nonstopux ;;
18015 *)
18016 if test "$lt_cv_prog_gnu_ld" = yes; then
18017 version_type=linux
18018 else
18019 version_type=irix
18020 fi ;;
18021 esac
18022 need_lib_prefix=no
18023 need_version=no
18024 soname_spec='${libname}${release}${shared_ext}$major'
18025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18026 case $host_os in
18027 irix5* | nonstopux*)
18028 libsuff= shlibsuff=
18029 ;;
18030 *)
18031 case $LD in # libtool.m4 will add one of these switches to LD
18032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18033 libsuff= shlibsuff= libmagic=32-bit;;
18034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18035 libsuff=32 shlibsuff=N32 libmagic=N32;;
18036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18037 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18038 *) libsuff= shlibsuff= libmagic=never-match;;
18039 esac
18040 ;;
18041 esac
18042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18043 shlibpath_overrides_runpath=no
18044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18046 hardcode_into_libs=yes
18047 ;;
18048
18049 # No shared lib support for Linux oldld, aout, or coff.
18050 linux*oldld* | linux*aout* | linux*coff*)
18051 dynamic_linker=no
18052 ;;
18053
18054 # This must be Linux ELF.
18055 linux*)
18056 version_type=linux
18057 need_lib_prefix=no
18058 need_version=no
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060 soname_spec='${libname}${release}${shared_ext}$major'
18061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18062 shlibpath_var=LD_LIBRARY_PATH
18063 shlibpath_overrides_runpath=no
18064 # This implies no fast_install, which is unacceptable.
18065 # Some rework will be needed to allow for fast_install
18066 # before this can be enabled.
18067 hardcode_into_libs=yes
18068
18069 # Append ld.so.conf contents to the search path
18070 if test -f /etc/ld.so.conf; then
18071 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18072 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18073 fi
18074
18075 # We used to test for /lib/ld.so.1 and disable shared libraries on
18076 # powerpc, because MkLinux only supported shared libraries with the
18077 # GNU dynamic linker. Since this was broken with cross compilers,
18078 # most powerpc-linux boxes support dynamic linking these days and
18079 # people can always --disable-shared, the test was removed, and we
18080 # assume the GNU/Linux dynamic linker is in use.
18081 dynamic_linker='GNU/Linux ld.so'
18082 ;;
18083
18084 netbsdelf*-gnu)
18085 version_type=linux
18086 need_lib_prefix=no
18087 need_version=no
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18089 soname_spec='${libname}${release}${shared_ext}$major'
18090 shlibpath_var=LD_LIBRARY_PATH
18091 shlibpath_overrides_runpath=no
18092 hardcode_into_libs=yes
18093 dynamic_linker='NetBSD ld.elf_so'
18094 ;;
18095
18096 knetbsd*-gnu)
18097 version_type=linux
18098 need_lib_prefix=no
18099 need_version=no
18100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18101 soname_spec='${libname}${release}${shared_ext}$major'
18102 shlibpath_var=LD_LIBRARY_PATH
18103 shlibpath_overrides_runpath=no
18104 hardcode_into_libs=yes
18105 dynamic_linker='GNU ld.so'
18106 ;;
18107
18108 netbsd*)
18109 version_type=sunos
18110 need_lib_prefix=no
18111 need_version=no
18112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18115 dynamic_linker='NetBSD (a.out) ld.so'
18116 else
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18118 soname_spec='${libname}${release}${shared_ext}$major'
18119 dynamic_linker='NetBSD ld.elf_so'
18120 fi
18121 shlibpath_var=LD_LIBRARY_PATH
18122 shlibpath_overrides_runpath=yes
18123 hardcode_into_libs=yes
18124 ;;
18125
18126 newsos6)
18127 version_type=linux
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129 shlibpath_var=LD_LIBRARY_PATH
18130 shlibpath_overrides_runpath=yes
18131 ;;
18132
18133 nto-qnx*)
18134 version_type=linux
18135 need_lib_prefix=no
18136 need_version=no
18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 shlibpath_var=LD_LIBRARY_PATH
18140 shlibpath_overrides_runpath=yes
18141 ;;
18142
18143 openbsd*)
18144 version_type=sunos
18145 need_lib_prefix=no
18146 need_version=yes
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18149 shlibpath_var=LD_LIBRARY_PATH
18150 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18151 case $host_os in
18152 openbsd2.[89] | openbsd2.[89].*)
18153 shlibpath_overrides_runpath=no
18154 ;;
18155 *)
18156 shlibpath_overrides_runpath=yes
18157 ;;
18158 esac
18159 else
18160 shlibpath_overrides_runpath=yes
18161 fi
18162 ;;
18163
18164 os2*)
18165 libname_spec='$name'
18166 shrext_cmds=".dll"
18167 need_lib_prefix=no
18168 library_names_spec='$libname${shared_ext} $libname.a'
18169 dynamic_linker='OS/2 ld.exe'
18170 shlibpath_var=LIBPATH
18171 ;;
18172
18173 osf3* | osf4* | osf5*)
18174 version_type=osf
18175 need_lib_prefix=no
18176 need_version=no
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18179 shlibpath_var=LD_LIBRARY_PATH
18180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18182 ;;
18183
18184 sco3.2v5*)
18185 version_type=osf
18186 soname_spec='${libname}${release}${shared_ext}$major'
18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18188 shlibpath_var=LD_LIBRARY_PATH
18189 ;;
18190
18191 solaris*)
18192 version_type=linux
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=yes
18199 hardcode_into_libs=yes
18200 # ldd complains unless libraries are executable
18201 postinstall_cmds='chmod +x $lib'
18202 ;;
18203
18204 sunos4*)
18205 version_type=sunos
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 shlibpath_overrides_runpath=yes
18210 if test "$with_gnu_ld" = yes; then
18211 need_lib_prefix=no
18212 fi
18213 need_version=yes
18214 ;;
18215
18216 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18217 version_type=linux
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219 soname_spec='${libname}${release}${shared_ext}$major'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 case $host_vendor in
18222 sni)
18223 shlibpath_overrides_runpath=no
18224 need_lib_prefix=no
18225 export_dynamic_flag_spec='${wl}-Blargedynsym'
18226 runpath_var=LD_RUN_PATH
18227 ;;
18228 siemens)
18229 need_lib_prefix=no
18230 ;;
18231 motorola)
18232 need_lib_prefix=no
18233 need_version=no
18234 shlibpath_overrides_runpath=no
18235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18236 ;;
18237 esac
18238 ;;
18239
18240 sysv4*MP*)
18241 if test -d /usr/nec ;then
18242 version_type=linux
18243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18244 soname_spec='$libname${shared_ext}.$major'
18245 shlibpath_var=LD_LIBRARY_PATH
18246 fi
18247 ;;
18248
18249 uts4*)
18250 version_type=linux
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 ;;
18255
18256 *)
18257 dynamic_linker=no
18258 ;;
18259 esac
18260 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18261 echo "${ECHO_T}$dynamic_linker" >&6
18262 test "$dynamic_linker" = no && can_build_shared=no
18263
18264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18266 hardcode_action_GCJ=
18267 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18268 test -n "$runpath_var GCJ" || \
18269 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18270
18271 # We can hardcode non-existant directories.
18272 if test "$hardcode_direct_GCJ" != no &&
18273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18274 # have to relink, otherwise we might link with an installed library
18275 # when we should be linking with a yet-to-be-installed one
18276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18277 test "$hardcode_minus_L_GCJ" != no; then
18278 # Linking always hardcodes the temporary library directory.
18279 hardcode_action_GCJ=relink
18280 else
18281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18282 hardcode_action_GCJ=immediate
18283 fi
18284 else
18285 # We cannot hardcode anything, or else we can only hardcode existing
18286 # directories.
18287 hardcode_action_GCJ=unsupported
18288 fi
18289 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18290 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18291
18292 if test "$hardcode_action_GCJ" = relink; then
18293 # Fast installation is not supported
18294 enable_fast_install=no
18295 elif test "$shlibpath_overrides_runpath" = yes ||
18296 test "$enable_shared" = no; then
18297 # Fast installation is not necessary
18298 enable_fast_install=needless
18299 fi
18300
18301 striplib=
18302 old_striplib=
18303 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18304 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18305 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18306 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18307 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18308 echo "$as_me:$LINENO: result: yes" >&5
18309 echo "${ECHO_T}yes" >&6
18310 else
18311 # FIXME - insert some real tests, host_os isn't really good enough
18312 case $host_os in
18313 darwin*)
18314 if test -n "$STRIP" ; then
18315 striplib="$STRIP -x"
18316 echo "$as_me:$LINENO: result: yes" >&5
18317 echo "${ECHO_T}yes" >&6
18318 else
18319 echo "$as_me:$LINENO: result: no" >&5
18320 echo "${ECHO_T}no" >&6
18321 fi
18322 ;;
18323 *)
18324 echo "$as_me:$LINENO: result: no" >&5
18325 echo "${ECHO_T}no" >&6
18326 ;;
18327 esac
18328 fi
18329
18330 if test "x$enable_dlopen" != xyes; then
18331 enable_dlopen=unknown
18332 enable_dlopen_self=unknown
18333 enable_dlopen_self_static=unknown
18334 else
18335 lt_cv_dlopen=no
18336 lt_cv_dlopen_libs=
18337
18338 case $host_os in
18339 beos*)
18340 lt_cv_dlopen="load_add_on"
18341 lt_cv_dlopen_libs=
18342 lt_cv_dlopen_self=yes
18343 ;;
18344
18345 mingw* | pw32*)
18346 lt_cv_dlopen="LoadLibrary"
18347 lt_cv_dlopen_libs=
18348 ;;
18349
18350 cygwin*)
18351 lt_cv_dlopen="dlopen"
18352 lt_cv_dlopen_libs=
18353 ;;
18354
18355 darwin*)
18356 # if libdl is installed we need to link against it
18357 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362 ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-ldl $LIBS"
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h. */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18370
18371 /* Override any gcc2 internal prototype to avoid an error. */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 /* We use char because int might match the return type of a gcc2
18376 builtin and then its argument prototype would still apply. */
18377 char dlopen ();
18378 int
18379 main ()
18380 {
18381 dlopen ();
18382 ;
18383 return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_lib_dl_dlopen=yes
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 ac_cv_lib_dl_dlopen=no
18413 fi
18414 rm -f conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416 LIBS=$ac_check_lib_save_LIBS
18417 fi
18418 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18419 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18420 if test $ac_cv_lib_dl_dlopen = yes; then
18421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18422 else
18423
18424 lt_cv_dlopen="dyld"
18425 lt_cv_dlopen_libs=
18426 lt_cv_dlopen_self=yes
18427
18428 fi
18429
18430 ;;
18431
18432 *)
18433 echo "$as_me:$LINENO: checking for shl_load" >&5
18434 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18435 if test "${ac_cv_func_shl_load+set}" = set; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18437 else
18438 cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h. */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18444 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18446 #define shl_load innocuous_shl_load
18447
18448 /* System header to define __stub macros and hopefully few prototypes,
18449 which can conflict with char shl_load (); below.
18450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18451 <limits.h> exists even on freestanding compilers. */
18452
18453 #ifdef __STDC__
18454 # include <limits.h>
18455 #else
18456 # include <assert.h>
18457 #endif
18458
18459 #undef shl_load
18460
18461 /* Override any gcc2 internal prototype to avoid an error. */
18462 #ifdef __cplusplus
18463 extern "C"
18464 {
18465 #endif
18466 /* We use char because int might match the return type of a gcc2
18467 builtin and then its argument prototype would still apply. */
18468 char shl_load ();
18469 /* The GNU C library defines this for functions which it implements
18470 to always fail with ENOSYS. Some functions are actually named
18471 something starting with __ and the normal name is an alias. */
18472 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18473 choke me
18474 #else
18475 char (*f) () = shl_load;
18476 #endif
18477 #ifdef __cplusplus
18478 }
18479 #endif
18480
18481 int
18482 main ()
18483 {
18484 return f != shl_load;
18485 ;
18486 return 0;
18487 }
18488 _ACEOF
18489 rm -f conftest.$ac_objext conftest$ac_exeext
18490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18491 (eval $ac_link) 2>conftest.er1
18492 ac_status=$?
18493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -f conftest.er1
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; } &&
18504 { ac_try='test -s conftest$ac_exeext'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 ac_cv_func_shl_load=yes
18511 else
18512 echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18514
18515 ac_cv_func_shl_load=no
18516 fi
18517 rm -f conftest.err conftest.$ac_objext \
18518 conftest$ac_exeext conftest.$ac_ext
18519 fi
18520 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18521 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18522 if test $ac_cv_func_shl_load = yes; then
18523 lt_cv_dlopen="shl_load"
18524 else
18525 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18526 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18527 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18528 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 else
18530 ac_check_lib_save_LIBS=$LIBS
18531 LIBS="-ldld $LIBS"
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h. */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538
18539 /* Override any gcc2 internal prototype to avoid an error. */
18540 #ifdef __cplusplus
18541 extern "C"
18542 #endif
18543 /* We use char because int might match the return type of a gcc2
18544 builtin and then its argument prototype would still apply. */
18545 char shl_load ();
18546 int
18547 main ()
18548 {
18549 shl_load ();
18550 ;
18551 return 0;
18552 }
18553 _ACEOF
18554 rm -f conftest.$ac_objext conftest$ac_exeext
18555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18556 (eval $ac_link) 2>conftest.er1
18557 ac_status=$?
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } &&
18563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; } &&
18569 { ac_try='test -s conftest$ac_exeext'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; }; then
18575 ac_cv_lib_dld_shl_load=yes
18576 else
18577 echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18579
18580 ac_cv_lib_dld_shl_load=no
18581 fi
18582 rm -f conftest.err conftest.$ac_objext \
18583 conftest$ac_exeext conftest.$ac_ext
18584 LIBS=$ac_check_lib_save_LIBS
18585 fi
18586 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18587 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18588 if test $ac_cv_lib_dld_shl_load = yes; then
18589 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18590 else
18591 echo "$as_me:$LINENO: checking for dlopen" >&5
18592 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18593 if test "${ac_cv_func_dlopen+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 else
18596 cat >conftest.$ac_ext <<_ACEOF
18597 /* confdefs.h. */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18602 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18604 #define dlopen innocuous_dlopen
18605
18606 /* System header to define __stub macros and hopefully few prototypes,
18607 which can conflict with char dlopen (); below.
18608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18609 <limits.h> exists even on freestanding compilers. */
18610
18611 #ifdef __STDC__
18612 # include <limits.h>
18613 #else
18614 # include <assert.h>
18615 #endif
18616
18617 #undef dlopen
18618
18619 /* Override any gcc2 internal prototype to avoid an error. */
18620 #ifdef __cplusplus
18621 extern "C"
18622 {
18623 #endif
18624 /* We use char because int might match the return type of a gcc2
18625 builtin and then its argument prototype would still apply. */
18626 char dlopen ();
18627 /* The GNU C library defines this for functions which it implements
18628 to always fail with ENOSYS. Some functions are actually named
18629 something starting with __ and the normal name is an alias. */
18630 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18631 choke me
18632 #else
18633 char (*f) () = dlopen;
18634 #endif
18635 #ifdef __cplusplus
18636 }
18637 #endif
18638
18639 int
18640 main ()
18641 {
18642 return f != dlopen;
18643 ;
18644 return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18649 (eval $ac_link) 2>conftest.er1
18650 ac_status=$?
18651 grep -v '^ *+' conftest.er1 >conftest.err
18652 rm -f conftest.er1
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest$ac_exeext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_cv_func_dlopen=yes
18669 else
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 ac_cv_func_dlopen=no
18674 fi
18675 rm -f conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18677 fi
18678 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18679 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18680 if test $ac_cv_func_dlopen = yes; then
18681 lt_cv_dlopen="dlopen"
18682 else
18683 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18687 else
18688 ac_check_lib_save_LIBS=$LIBS
18689 LIBS="-ldl $LIBS"
18690 cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h. */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18696
18697 /* Override any gcc2 internal prototype to avoid an error. */
18698 #ifdef __cplusplus
18699 extern "C"
18700 #endif
18701 /* We use char because int might match the return type of a gcc2
18702 builtin and then its argument prototype would still apply. */
18703 char dlopen ();
18704 int
18705 main ()
18706 {
18707 dlopen ();
18708 ;
18709 return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714 (eval $ac_link) 2>conftest.er1
18715 ac_status=$?
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest$ac_exeext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_cv_lib_dl_dlopen=yes
18734 else
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18737
18738 ac_cv_lib_dl_dlopen=no
18739 fi
18740 rm -f conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
18742 LIBS=$ac_check_lib_save_LIBS
18743 fi
18744 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18745 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18746 if test $ac_cv_lib_dl_dlopen = yes; then
18747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18748 else
18749 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18750 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754 ac_check_lib_save_LIBS=$LIBS
18755 LIBS="-lsvld $LIBS"
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h. */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762
18763 /* Override any gcc2 internal prototype to avoid an error. */
18764 #ifdef __cplusplus
18765 extern "C"
18766 #endif
18767 /* We use char because int might match the return type of a gcc2
18768 builtin and then its argument prototype would still apply. */
18769 char dlopen ();
18770 int
18771 main ()
18772 {
18773 dlopen ();
18774 ;
18775 return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780 (eval $ac_link) 2>conftest.er1
18781 ac_status=$?
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; } &&
18793 { ac_try='test -s conftest$ac_exeext'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_cv_lib_svld_dlopen=yes
18800 else
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18803
18804 ac_cv_lib_svld_dlopen=no
18805 fi
18806 rm -f conftest.err conftest.$ac_objext \
18807 conftest$ac_exeext conftest.$ac_ext
18808 LIBS=$ac_check_lib_save_LIBS
18809 fi
18810 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18811 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18812 if test $ac_cv_lib_svld_dlopen = yes; then
18813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18814 else
18815 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18816 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18817 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 else
18820 ac_check_lib_save_LIBS=$LIBS
18821 LIBS="-ldld $LIBS"
18822 cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h. */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18828
18829 /* Override any gcc2 internal prototype to avoid an error. */
18830 #ifdef __cplusplus
18831 extern "C"
18832 #endif
18833 /* We use char because int might match the return type of a gcc2
18834 builtin and then its argument prototype would still apply. */
18835 char dld_link ();
18836 int
18837 main ()
18838 {
18839 dld_link ();
18840 ;
18841 return 0;
18842 }
18843 _ACEOF
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18846 (eval $ac_link) 2>conftest.er1
18847 ac_status=$?
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
18853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest$ac_exeext'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_cv_lib_dld_dld_link=yes
18866 else
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870 ac_cv_lib_dld_dld_link=no
18871 fi
18872 rm -f conftest.err conftest.$ac_objext \
18873 conftest$ac_exeext conftest.$ac_ext
18874 LIBS=$ac_check_lib_save_LIBS
18875 fi
18876 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18877 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18878 if test $ac_cv_lib_dld_dld_link = yes; then
18879 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18880 fi
18881
18882
18883 fi
18884
18885
18886 fi
18887
18888
18889 fi
18890
18891
18892 fi
18893
18894
18895 fi
18896
18897 ;;
18898 esac
18899
18900 if test "x$lt_cv_dlopen" != xno; then
18901 enable_dlopen=yes
18902 else
18903 enable_dlopen=no
18904 fi
18905
18906 case $lt_cv_dlopen in
18907 dlopen)
18908 save_CPPFLAGS="$CPPFLAGS"
18909 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18910
18911 save_LDFLAGS="$LDFLAGS"
18912 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18913
18914 save_LIBS="$LIBS"
18915 LIBS="$lt_cv_dlopen_libs $LIBS"
18916
18917 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18918 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18919 if test "${lt_cv_dlopen_self+set}" = set; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 else
18922 if test "$cross_compiling" = yes; then :
18923 lt_cv_dlopen_self=cross
18924 else
18925 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18926 lt_status=$lt_dlunknown
18927 cat > conftest.$ac_ext <<EOF
18928 #line 18929 "configure"
18929 #include "confdefs.h"
18930
18931 #if HAVE_DLFCN_H
18932 #include <dlfcn.h>
18933 #endif
18934
18935 #include <stdio.h>
18936
18937 #ifdef RTLD_GLOBAL
18938 # define LT_DLGLOBAL RTLD_GLOBAL
18939 #else
18940 # ifdef DL_GLOBAL
18941 # define LT_DLGLOBAL DL_GLOBAL
18942 # else
18943 # define LT_DLGLOBAL 0
18944 # endif
18945 #endif
18946
18947 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18948 find out it does not work in some platform. */
18949 #ifndef LT_DLLAZY_OR_NOW
18950 # ifdef RTLD_LAZY
18951 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18952 # else
18953 # ifdef DL_LAZY
18954 # define LT_DLLAZY_OR_NOW DL_LAZY
18955 # else
18956 # ifdef RTLD_NOW
18957 # define LT_DLLAZY_OR_NOW RTLD_NOW
18958 # else
18959 # ifdef DL_NOW
18960 # define LT_DLLAZY_OR_NOW DL_NOW
18961 # else
18962 # define LT_DLLAZY_OR_NOW 0
18963 # endif
18964 # endif
18965 # endif
18966 # endif
18967 #endif
18968
18969 #ifdef __cplusplus
18970 extern "C" void exit (int);
18971 #endif
18972
18973 void fnord() { int i=42;}
18974 int main ()
18975 {
18976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18977 int status = $lt_dlunknown;
18978
18979 if (self)
18980 {
18981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18982 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18983 /* dlclose (self); */
18984 }
18985
18986 exit (status);
18987 }
18988 EOF
18989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18990 (eval $ac_link) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18994 (./conftest; exit; ) 2>/dev/null
18995 lt_status=$?
18996 case x$lt_status in
18997 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18998 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18999 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19000 esac
19001 else :
19002 # compilation failed
19003 lt_cv_dlopen_self=no
19004 fi
19005 fi
19006 rm -fr conftest*
19007
19008
19009 fi
19010 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19011 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19012
19013 if test "x$lt_cv_dlopen_self" = xyes; then
19014 LDFLAGS="$LDFLAGS $link_static_flag"
19015 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19016 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19017 if test "${lt_cv_dlopen_self_static+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020 if test "$cross_compiling" = yes; then :
19021 lt_cv_dlopen_self_static=cross
19022 else
19023 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19024 lt_status=$lt_dlunknown
19025 cat > conftest.$ac_ext <<EOF
19026 #line 19027 "configure"
19027 #include "confdefs.h"
19028
19029 #if HAVE_DLFCN_H
19030 #include <dlfcn.h>
19031 #endif
19032
19033 #include <stdio.h>
19034
19035 #ifdef RTLD_GLOBAL
19036 # define LT_DLGLOBAL RTLD_GLOBAL
19037 #else
19038 # ifdef DL_GLOBAL
19039 # define LT_DLGLOBAL DL_GLOBAL
19040 # else
19041 # define LT_DLGLOBAL 0
19042 # endif
19043 #endif
19044
19045 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19046 find out it does not work in some platform. */
19047 #ifndef LT_DLLAZY_OR_NOW
19048 # ifdef RTLD_LAZY
19049 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19050 # else
19051 # ifdef DL_LAZY
19052 # define LT_DLLAZY_OR_NOW DL_LAZY
19053 # else
19054 # ifdef RTLD_NOW
19055 # define LT_DLLAZY_OR_NOW RTLD_NOW
19056 # else
19057 # ifdef DL_NOW
19058 # define LT_DLLAZY_OR_NOW DL_NOW
19059 # else
19060 # define LT_DLLAZY_OR_NOW 0
19061 # endif
19062 # endif
19063 # endif
19064 # endif
19065 #endif
19066
19067 #ifdef __cplusplus
19068 extern "C" void exit (int);
19069 #endif
19070
19071 void fnord() { int i=42;}
19072 int main ()
19073 {
19074 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19075 int status = $lt_dlunknown;
19076
19077 if (self)
19078 {
19079 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19080 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19081 /* dlclose (self); */
19082 }
19083
19084 exit (status);
19085 }
19086 EOF
19087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19088 (eval $ac_link) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19092 (./conftest; exit; ) 2>/dev/null
19093 lt_status=$?
19094 case x$lt_status in
19095 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19096 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19097 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19098 esac
19099 else :
19100 # compilation failed
19101 lt_cv_dlopen_self_static=no
19102 fi
19103 fi
19104 rm -fr conftest*
19105
19106
19107 fi
19108 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19109 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19110 fi
19111
19112 CPPFLAGS="$save_CPPFLAGS"
19113 LDFLAGS="$save_LDFLAGS"
19114 LIBS="$save_LIBS"
19115 ;;
19116 esac
19117
19118 case $lt_cv_dlopen_self in
19119 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19120 *) enable_dlopen_self=unknown ;;
19121 esac
19122
19123 case $lt_cv_dlopen_self_static in
19124 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19125 *) enable_dlopen_self_static=unknown ;;
19126 esac
19127 fi
19128
19129
19130 # The else clause should only fire when bootstrapping the
19131 # libtool distribution, otherwise you forgot to ship ltmain.sh
19132 # with your package, and you will get complaints that there are
19133 # no rules to generate ltmain.sh.
19134 if test -f "$ltmain"; then
19135 # See if we are running on zsh, and set the options which allow our commands through
19136 # without removal of \ escapes.
19137 if test -n "${ZSH_VERSION+set}" ; then
19138 setopt NO_GLOB_SUBST
19139 fi
19140 # Now quote all the things that may contain metacharacters while being
19141 # careful not to overquote the AC_SUBSTed values. We take copies of the
19142 # variables and quote the copies for generation of the libtool script.
19143 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19144 SED SHELL STRIP \
19145 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19146 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19147 deplibs_check_method reload_flag reload_cmds need_locks \
19148 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19149 lt_cv_sys_global_symbol_to_c_name_address \
19150 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19151 old_postinstall_cmds old_postuninstall_cmds \
19152 compiler_GCJ \
19153 CC_GCJ \
19154 LD_GCJ \
19155 lt_prog_compiler_wl_GCJ \
19156 lt_prog_compiler_pic_GCJ \
19157 lt_prog_compiler_static_GCJ \
19158 lt_prog_compiler_no_builtin_flag_GCJ \
19159 export_dynamic_flag_spec_GCJ \
19160 thread_safe_flag_spec_GCJ \
19161 whole_archive_flag_spec_GCJ \
19162 enable_shared_with_static_runtimes_GCJ \
19163 old_archive_cmds_GCJ \
19164 old_archive_from_new_cmds_GCJ \
19165 predep_objects_GCJ \
19166 postdep_objects_GCJ \
19167 predeps_GCJ \
19168 postdeps_GCJ \
19169 compiler_lib_search_path_GCJ \
19170 archive_cmds_GCJ \
19171 archive_expsym_cmds_GCJ \
19172 postinstall_cmds_GCJ \
19173 postuninstall_cmds_GCJ \
19174 old_archive_from_expsyms_cmds_GCJ \
19175 allow_undefined_flag_GCJ \
19176 no_undefined_flag_GCJ \
19177 export_symbols_cmds_GCJ \
19178 hardcode_libdir_flag_spec_GCJ \
19179 hardcode_libdir_flag_spec_ld_GCJ \
19180 hardcode_libdir_separator_GCJ \
19181 hardcode_automatic_GCJ \
19182 module_cmds_GCJ \
19183 module_expsym_cmds_GCJ \
19184 lt_cv_prog_compiler_c_o_GCJ \
19185 exclude_expsyms_GCJ \
19186 include_expsyms_GCJ; do
19187
19188 case $var in
19189 old_archive_cmds_GCJ | \
19190 old_archive_from_new_cmds_GCJ | \
19191 archive_cmds_GCJ | \
19192 archive_expsym_cmds_GCJ | \
19193 module_cmds_GCJ | \
19194 module_expsym_cmds_GCJ | \
19195 old_archive_from_expsyms_cmds_GCJ | \
19196 export_symbols_cmds_GCJ | \
19197 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19198 postinstall_cmds | postuninstall_cmds | \
19199 old_postinstall_cmds | old_postuninstall_cmds | \
19200 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19201 # Double-quote double-evaled strings.
19202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19203 ;;
19204 *)
19205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19206 ;;
19207 esac
19208 done
19209
19210 case $lt_echo in
19211 *'\$0 --fallback-echo"')
19212 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19213 ;;
19214 esac
19215
19216 cfgfile="$ofile"
19217
19218 cat <<__EOF__ >> "$cfgfile"
19219 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19220
19221 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19222
19223 # Shell to use when invoking shell scripts.
19224 SHELL=$lt_SHELL
19225
19226 # Whether or not to build shared libraries.
19227 build_libtool_libs=$enable_shared
19228
19229 # Whether or not to build static libraries.
19230 build_old_libs=$enable_static
19231
19232 # Whether or not to add -lc for building shared libraries.
19233 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19234
19235 # Whether or not to disallow shared libs when runtime libs are static
19236 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19237
19238 # Whether or not to optimize for fast installation.
19239 fast_install=$enable_fast_install
19240
19241 # The host system.
19242 host_alias=$host_alias
19243 host=$host
19244
19245 # An echo program that does not interpret backslashes.
19246 echo=$lt_echo
19247
19248 # The archiver.
19249 AR=$lt_AR
19250 AR_FLAGS=$lt_AR_FLAGS
19251
19252 # A C compiler.
19253 LTCC=$lt_LTCC
19254
19255 # A language-specific compiler.
19256 CC=$lt_compiler_GCJ
19257
19258 # Is the compiler the GNU C compiler?
19259 with_gcc=$GCC_GCJ
19260
19261 # An ERE matcher.
19262 EGREP=$lt_EGREP
19263
19264 # The linker used to build libraries.
19265 LD=$lt_LD_GCJ
19266
19267 # Whether we need hard or soft links.
19268 LN_S=$lt_LN_S
19269
19270 # A BSD-compatible nm program.
19271 NM=$lt_NM
19272
19273 # A symbol stripping program
19274 STRIP=$lt_STRIP
19275
19276 # Used to examine libraries when file_magic_cmd begins "file"
19277 MAGIC_CMD=$MAGIC_CMD
19278
19279 # Used on cygwin: DLL creation program.
19280 DLLTOOL="$DLLTOOL"
19281
19282 # Used on cygwin: object dumper.
19283 OBJDUMP="$OBJDUMP"
19284
19285 # Used on cygwin: assembler.
19286 AS="$AS"
19287
19288 # The name of the directory that contains temporary libtool files.
19289 objdir=$objdir
19290
19291 # How to create reloadable object files.
19292 reload_flag=$lt_reload_flag
19293 reload_cmds=$lt_reload_cmds
19294
19295 # How to pass a linker flag through the compiler.
19296 wl=$lt_lt_prog_compiler_wl_GCJ
19297
19298 # Object file suffix (normally "o").
19299 objext="$ac_objext"
19300
19301 # Old archive suffix (normally "a").
19302 libext="$libext"
19303
19304 # Shared library suffix (normally ".so").
19305 shrext_cmds='$shrext_cmds'
19306
19307 # Executable file suffix (normally "").
19308 exeext="$exeext"
19309
19310 # Additional compiler flags for building library objects.
19311 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19312 pic_mode=$pic_mode
19313
19314 # What is the maximum length of a command?
19315 max_cmd_len=$lt_cv_sys_max_cmd_len
19316
19317 # Does compiler simultaneously support -c and -o options?
19318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19319
19320 # Must we lock files when doing compilation ?
19321 need_locks=$lt_need_locks
19322
19323 # Do we need the lib prefix for modules?
19324 need_lib_prefix=$need_lib_prefix
19325
19326 # Do we need a version for libraries?
19327 need_version=$need_version
19328
19329 # Whether dlopen is supported.
19330 dlopen_support=$enable_dlopen
19331
19332 # Whether dlopen of programs is supported.
19333 dlopen_self=$enable_dlopen_self
19334
19335 # Whether dlopen of statically linked programs is supported.
19336 dlopen_self_static=$enable_dlopen_self_static
19337
19338 # Compiler flag to prevent dynamic linking.
19339 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19340
19341 # Compiler flag to turn off builtin functions.
19342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19343
19344 # Compiler flag to allow reflexive dlopens.
19345 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19346
19347 # Compiler flag to generate shared objects directly from archives.
19348 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19349
19350 # Compiler flag to generate thread-safe objects.
19351 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19352
19353 # Library versioning type.
19354 version_type=$version_type
19355
19356 # Format of library name prefix.
19357 libname_spec=$lt_libname_spec
19358
19359 # List of archive names. First name is the real one, the rest are links.
19360 # The last name is the one that the linker finds with -lNAME.
19361 library_names_spec=$lt_library_names_spec
19362
19363 # The coded name of the library, if different from the real name.
19364 soname_spec=$lt_soname_spec
19365
19366 # Commands used to build and install an old-style archive.
19367 RANLIB=$lt_RANLIB
19368 old_archive_cmds=$lt_old_archive_cmds_GCJ
19369 old_postinstall_cmds=$lt_old_postinstall_cmds
19370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19371
19372 # Create an old-style archive from a shared archive.
19373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19374
19375 # Create a temporary old-style archive to link instead of a shared archive.
19376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19377
19378 # Commands used to build and install a shared archive.
19379 archive_cmds=$lt_archive_cmds_GCJ
19380 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19381 postinstall_cmds=$lt_postinstall_cmds
19382 postuninstall_cmds=$lt_postuninstall_cmds
19383
19384 # Commands used to build a loadable module (assumed same as above if empty)
19385 module_cmds=$lt_module_cmds_GCJ
19386 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19387
19388 # Commands to strip libraries.
19389 old_striplib=$lt_old_striplib
19390 striplib=$lt_striplib
19391
19392 # Dependencies to place before the objects being linked to create a
19393 # shared library.
19394 predep_objects=$lt_predep_objects_GCJ
19395
19396 # Dependencies to place after the objects being linked to create a
19397 # shared library.
19398 postdep_objects=$lt_postdep_objects_GCJ
19399
19400 # Dependencies to place before the objects being linked to create a
19401 # shared library.
19402 predeps=$lt_predeps_GCJ
19403
19404 # Dependencies to place after the objects being linked to create a
19405 # shared library.
19406 postdeps=$lt_postdeps_GCJ
19407
19408 # The library search path used internally by the compiler when linking
19409 # a shared library.
19410 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19411
19412 # Method to check whether dependent libraries are shared objects.
19413 deplibs_check_method=$lt_deplibs_check_method
19414
19415 # Command to use when deplibs_check_method == file_magic.
19416 file_magic_cmd=$lt_file_magic_cmd
19417
19418 # Flag that allows shared libraries with undefined symbols to be built.
19419 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19420
19421 # Flag that forces no undefined symbols.
19422 no_undefined_flag=$lt_no_undefined_flag_GCJ
19423
19424 # Commands used to finish a libtool library installation in a directory.
19425 finish_cmds=$lt_finish_cmds
19426
19427 # Same as above, but a single script fragment to be evaled but not shown.
19428 finish_eval=$lt_finish_eval
19429
19430 # Take the output of nm and produce a listing of raw symbols and C names.
19431 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19432
19433 # Transform the output of nm in a proper C declaration
19434 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19435
19436 # Transform the output of nm in a C name address pair
19437 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19438
19439 # This is the shared library runtime path variable.
19440 runpath_var=$runpath_var
19441
19442 # This is the shared library path variable.
19443 shlibpath_var=$shlibpath_var
19444
19445 # Is shlibpath searched before the hard-coded library search path?
19446 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19447
19448 # How to hardcode a shared library path into an executable.
19449 hardcode_action=$hardcode_action_GCJ
19450
19451 # Whether we should hardcode library paths into libraries.
19452 hardcode_into_libs=$hardcode_into_libs
19453
19454 # Flag to hardcode \$libdir into a binary during linking.
19455 # This must work even if \$libdir does not exist.
19456 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19457
19458 # If ld is used when linking, flag to hardcode \$libdir into
19459 # a binary during linking. This must work even if \$libdir does
19460 # not exist.
19461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19462
19463 # Whether we need a single -rpath flag with a separated argument.
19464 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19465
19466 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19467 # resulting binary.
19468 hardcode_direct=$hardcode_direct_GCJ
19469
19470 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19471 # resulting binary.
19472 hardcode_minus_L=$hardcode_minus_L_GCJ
19473
19474 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19475 # the resulting binary.
19476 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19477
19478 # Set to yes if building a shared library automatically hardcodes DIR into the library
19479 # and all subsequent libraries and executables linked against it.
19480 hardcode_automatic=$hardcode_automatic_GCJ
19481
19482 # Variables whose values should be saved in libtool wrapper scripts and
19483 # restored at relink time.
19484 variables_saved_for_relink="$variables_saved_for_relink"
19485
19486 # Whether libtool must link a program against all its dependency libraries.
19487 link_all_deplibs=$link_all_deplibs_GCJ
19488
19489 # Compile-time system search path for libraries
19490 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19491
19492 # Run-time system search path for libraries
19493 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19494
19495 # Fix the shell variable \$srcfile for the compiler.
19496 fix_srcfile_path="$fix_srcfile_path_GCJ"
19497
19498 # Set to yes if exported symbols are required.
19499 always_export_symbols=$always_export_symbols_GCJ
19500
19501 # The commands to list exported symbols.
19502 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19503
19504 # The commands to extract the exported symbol list from a shared archive.
19505 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19506
19507 # Symbols that should not be listed in the preloaded symbols.
19508 exclude_expsyms=$lt_exclude_expsyms_GCJ
19509
19510 # Symbols that must always be exported.
19511 include_expsyms=$lt_include_expsyms_GCJ
19512
19513 # ### END LIBTOOL TAG CONFIG: $tagname
19514
19515 __EOF__
19516
19517
19518 else
19519 # If there is no Makefile yet, we rely on a make rule to execute
19520 # `config.status --recheck' to rerun these tests and create the
19521 # libtool script then.
19522 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19523 if test -f "$ltmain_in"; then
19524 test -f Makefile && make "$ltmain"
19525 fi
19526 fi
19527
19528
19529 ac_ext=c
19530 ac_cpp='$CPP $CPPFLAGS'
19531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19534
19535 CC="$lt_save_CC"
19536
19537 else
19538 tagname=""
19539 fi
19540 ;;
19541
19542 RC)
19543
19544
19545
19546 # Source file extension for RC test sources.
19547 ac_ext=rc
19548
19549 # Object file extension for compiled RC test sources.
19550 objext=o
19551 objext_RC=$objext
19552
19553 # Code to be used in simple compile tests
19554 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19555
19556 # Code to be used in simple link tests
19557 lt_simple_link_test_code="$lt_simple_compile_test_code"
19558
19559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19560
19561 # If no C compiler was specified, use CC.
19562 LTCC=${LTCC-"$CC"}
19563
19564 # Allow CC to be a program name with arguments.
19565 compiler=$CC
19566
19567
19568 # Allow CC to be a program name with arguments.
19569 lt_save_CC="$CC"
19570 CC=${RC-"windres"}
19571 compiler=$CC
19572 compiler_RC=$CC
19573 lt_cv_prog_compiler_c_o_RC=yes
19574
19575 # The else clause should only fire when bootstrapping the
19576 # libtool distribution, otherwise you forgot to ship ltmain.sh
19577 # with your package, and you will get complaints that there are
19578 # no rules to generate ltmain.sh.
19579 if test -f "$ltmain"; then
19580 # See if we are running on zsh, and set the options which allow our commands through
19581 # without removal of \ escapes.
19582 if test -n "${ZSH_VERSION+set}" ; then
19583 setopt NO_GLOB_SUBST
19584 fi
19585 # Now quote all the things that may contain metacharacters while being
19586 # careful not to overquote the AC_SUBSTed values. We take copies of the
19587 # variables and quote the copies for generation of the libtool script.
19588 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19589 SED SHELL STRIP \
19590 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19591 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19592 deplibs_check_method reload_flag reload_cmds need_locks \
19593 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19594 lt_cv_sys_global_symbol_to_c_name_address \
19595 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19596 old_postinstall_cmds old_postuninstall_cmds \
19597 compiler_RC \
19598 CC_RC \
19599 LD_RC \
19600 lt_prog_compiler_wl_RC \
19601 lt_prog_compiler_pic_RC \
19602 lt_prog_compiler_static_RC \
19603 lt_prog_compiler_no_builtin_flag_RC \
19604 export_dynamic_flag_spec_RC \
19605 thread_safe_flag_spec_RC \
19606 whole_archive_flag_spec_RC \
19607 enable_shared_with_static_runtimes_RC \
19608 old_archive_cmds_RC \
19609 old_archive_from_new_cmds_RC \
19610 predep_objects_RC \
19611 postdep_objects_RC \
19612 predeps_RC \
19613 postdeps_RC \
19614 compiler_lib_search_path_RC \
19615 archive_cmds_RC \
19616 archive_expsym_cmds_RC \
19617 postinstall_cmds_RC \
19618 postuninstall_cmds_RC \
19619 old_archive_from_expsyms_cmds_RC \
19620 allow_undefined_flag_RC \
19621 no_undefined_flag_RC \
19622 export_symbols_cmds_RC \
19623 hardcode_libdir_flag_spec_RC \
19624 hardcode_libdir_flag_spec_ld_RC \
19625 hardcode_libdir_separator_RC \
19626 hardcode_automatic_RC \
19627 module_cmds_RC \
19628 module_expsym_cmds_RC \
19629 lt_cv_prog_compiler_c_o_RC \
19630 exclude_expsyms_RC \
19631 include_expsyms_RC; do
19632
19633 case $var in
19634 old_archive_cmds_RC | \
19635 old_archive_from_new_cmds_RC | \
19636 archive_cmds_RC | \
19637 archive_expsym_cmds_RC | \
19638 module_cmds_RC | \
19639 module_expsym_cmds_RC | \
19640 old_archive_from_expsyms_cmds_RC | \
19641 export_symbols_cmds_RC | \
19642 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19643 postinstall_cmds | postuninstall_cmds | \
19644 old_postinstall_cmds | old_postuninstall_cmds | \
19645 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19646 # Double-quote double-evaled strings.
19647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19648 ;;
19649 *)
19650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19651 ;;
19652 esac
19653 done
19654
19655 case $lt_echo in
19656 *'\$0 --fallback-echo"')
19657 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19658 ;;
19659 esac
19660
19661 cfgfile="$ofile"
19662
19663 cat <<__EOF__ >> "$cfgfile"
19664 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19665
19666 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19667
19668 # Shell to use when invoking shell scripts.
19669 SHELL=$lt_SHELL
19670
19671 # Whether or not to build shared libraries.
19672 build_libtool_libs=$enable_shared
19673
19674 # Whether or not to build static libraries.
19675 build_old_libs=$enable_static
19676
19677 # Whether or not to add -lc for building shared libraries.
19678 build_libtool_need_lc=$archive_cmds_need_lc_RC
19679
19680 # Whether or not to disallow shared libs when runtime libs are static
19681 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19682
19683 # Whether or not to optimize for fast installation.
19684 fast_install=$enable_fast_install
19685
19686 # The host system.
19687 host_alias=$host_alias
19688 host=$host
19689
19690 # An echo program that does not interpret backslashes.
19691 echo=$lt_echo
19692
19693 # The archiver.
19694 AR=$lt_AR
19695 AR_FLAGS=$lt_AR_FLAGS
19696
19697 # A C compiler.
19698 LTCC=$lt_LTCC
19699
19700 # A language-specific compiler.
19701 CC=$lt_compiler_RC
19702
19703 # Is the compiler the GNU C compiler?
19704 with_gcc=$GCC_RC
19705
19706 # An ERE matcher.
19707 EGREP=$lt_EGREP
19708
19709 # The linker used to build libraries.
19710 LD=$lt_LD_RC
19711
19712 # Whether we need hard or soft links.
19713 LN_S=$lt_LN_S
19714
19715 # A BSD-compatible nm program.
19716 NM=$lt_NM
19717
19718 # A symbol stripping program
19719 STRIP=$lt_STRIP
19720
19721 # Used to examine libraries when file_magic_cmd begins "file"
19722 MAGIC_CMD=$MAGIC_CMD
19723
19724 # Used on cygwin: DLL creation program.
19725 DLLTOOL="$DLLTOOL"
19726
19727 # Used on cygwin: object dumper.
19728 OBJDUMP="$OBJDUMP"
19729
19730 # Used on cygwin: assembler.
19731 AS="$AS"
19732
19733 # The name of the directory that contains temporary libtool files.
19734 objdir=$objdir
19735
19736 # How to create reloadable object files.
19737 reload_flag=$lt_reload_flag
19738 reload_cmds=$lt_reload_cmds
19739
19740 # How to pass a linker flag through the compiler.
19741 wl=$lt_lt_prog_compiler_wl_RC
19742
19743 # Object file suffix (normally "o").
19744 objext="$ac_objext"
19745
19746 # Old archive suffix (normally "a").
19747 libext="$libext"
19748
19749 # Shared library suffix (normally ".so").
19750 shrext_cmds='$shrext_cmds'
19751
19752 # Executable file suffix (normally "").
19753 exeext="$exeext"
19754
19755 # Additional compiler flags for building library objects.
19756 pic_flag=$lt_lt_prog_compiler_pic_RC
19757 pic_mode=$pic_mode
19758
19759 # What is the maximum length of a command?
19760 max_cmd_len=$lt_cv_sys_max_cmd_len
19761
19762 # Does compiler simultaneously support -c and -o options?
19763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19764
19765 # Must we lock files when doing compilation ?
19766 need_locks=$lt_need_locks
19767
19768 # Do we need the lib prefix for modules?
19769 need_lib_prefix=$need_lib_prefix
19770
19771 # Do we need a version for libraries?
19772 need_version=$need_version
19773
19774 # Whether dlopen is supported.
19775 dlopen_support=$enable_dlopen
19776
19777 # Whether dlopen of programs is supported.
19778 dlopen_self=$enable_dlopen_self
19779
19780 # Whether dlopen of statically linked programs is supported.
19781 dlopen_self_static=$enable_dlopen_self_static
19782
19783 # Compiler flag to prevent dynamic linking.
19784 link_static_flag=$lt_lt_prog_compiler_static_RC
19785
19786 # Compiler flag to turn off builtin functions.
19787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19788
19789 # Compiler flag to allow reflexive dlopens.
19790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19791
19792 # Compiler flag to generate shared objects directly from archives.
19793 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19794
19795 # Compiler flag to generate thread-safe objects.
19796 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19797
19798 # Library versioning type.
19799 version_type=$version_type
19800
19801 # Format of library name prefix.
19802 libname_spec=$lt_libname_spec
19803
19804 # List of archive names. First name is the real one, the rest are links.
19805 # The last name is the one that the linker finds with -lNAME.
19806 library_names_spec=$lt_library_names_spec
19807
19808 # The coded name of the library, if different from the real name.
19809 soname_spec=$lt_soname_spec
19810
19811 # Commands used to build and install an old-style archive.
19812 RANLIB=$lt_RANLIB
19813 old_archive_cmds=$lt_old_archive_cmds_RC
19814 old_postinstall_cmds=$lt_old_postinstall_cmds
19815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19816
19817 # Create an old-style archive from a shared archive.
19818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19819
19820 # Create a temporary old-style archive to link instead of a shared archive.
19821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19822
19823 # Commands used to build and install a shared archive.
19824 archive_cmds=$lt_archive_cmds_RC
19825 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19826 postinstall_cmds=$lt_postinstall_cmds
19827 postuninstall_cmds=$lt_postuninstall_cmds
19828
19829 # Commands used to build a loadable module (assumed same as above if empty)
19830 module_cmds=$lt_module_cmds_RC
19831 module_expsym_cmds=$lt_module_expsym_cmds_RC
19832
19833 # Commands to strip libraries.
19834 old_striplib=$lt_old_striplib
19835 striplib=$lt_striplib
19836
19837 # Dependencies to place before the objects being linked to create a
19838 # shared library.
19839 predep_objects=$lt_predep_objects_RC
19840
19841 # Dependencies to place after the objects being linked to create a
19842 # shared library.
19843 postdep_objects=$lt_postdep_objects_RC
19844
19845 # Dependencies to place before the objects being linked to create a
19846 # shared library.
19847 predeps=$lt_predeps_RC
19848
19849 # Dependencies to place after the objects being linked to create a
19850 # shared library.
19851 postdeps=$lt_postdeps_RC
19852
19853 # The library search path used internally by the compiler when linking
19854 # a shared library.
19855 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19856
19857 # Method to check whether dependent libraries are shared objects.
19858 deplibs_check_method=$lt_deplibs_check_method
19859
19860 # Command to use when deplibs_check_method == file_magic.
19861 file_magic_cmd=$lt_file_magic_cmd
19862
19863 # Flag that allows shared libraries with undefined symbols to be built.
19864 allow_undefined_flag=$lt_allow_undefined_flag_RC
19865
19866 # Flag that forces no undefined symbols.
19867 no_undefined_flag=$lt_no_undefined_flag_RC
19868
19869 # Commands used to finish a libtool library installation in a directory.
19870 finish_cmds=$lt_finish_cmds
19871
19872 # Same as above, but a single script fragment to be evaled but not shown.
19873 finish_eval=$lt_finish_eval
19874
19875 # Take the output of nm and produce a listing of raw symbols and C names.
19876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19877
19878 # Transform the output of nm in a proper C declaration
19879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19880
19881 # Transform the output of nm in a C name address pair
19882 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19883
19884 # This is the shared library runtime path variable.
19885 runpath_var=$runpath_var
19886
19887 # This is the shared library path variable.
19888 shlibpath_var=$shlibpath_var
19889
19890 # Is shlibpath searched before the hard-coded library search path?
19891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19892
19893 # How to hardcode a shared library path into an executable.
19894 hardcode_action=$hardcode_action_RC
19895
19896 # Whether we should hardcode library paths into libraries.
19897 hardcode_into_libs=$hardcode_into_libs
19898
19899 # Flag to hardcode \$libdir into a binary during linking.
19900 # This must work even if \$libdir does not exist.
19901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19902
19903 # If ld is used when linking, flag to hardcode \$libdir into
19904 # a binary during linking. This must work even if \$libdir does
19905 # not exist.
19906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19907
19908 # Whether we need a single -rpath flag with a separated argument.
19909 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19910
19911 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19912 # resulting binary.
19913 hardcode_direct=$hardcode_direct_RC
19914
19915 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19916 # resulting binary.
19917 hardcode_minus_L=$hardcode_minus_L_RC
19918
19919 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19920 # the resulting binary.
19921 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19922
19923 # Set to yes if building a shared library automatically hardcodes DIR into the library
19924 # and all subsequent libraries and executables linked against it.
19925 hardcode_automatic=$hardcode_automatic_RC
19926
19927 # Variables whose values should be saved in libtool wrapper scripts and
19928 # restored at relink time.
19929 variables_saved_for_relink="$variables_saved_for_relink"
19930
19931 # Whether libtool must link a program against all its dependency libraries.
19932 link_all_deplibs=$link_all_deplibs_RC
19933
19934 # Compile-time system search path for libraries
19935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19936
19937 # Run-time system search path for libraries
19938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19939
19940 # Fix the shell variable \$srcfile for the compiler.
19941 fix_srcfile_path="$fix_srcfile_path_RC"
19942
19943 # Set to yes if exported symbols are required.
19944 always_export_symbols=$always_export_symbols_RC
19945
19946 # The commands to list exported symbols.
19947 export_symbols_cmds=$lt_export_symbols_cmds_RC
19948
19949 # The commands to extract the exported symbol list from a shared archive.
19950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19951
19952 # Symbols that should not be listed in the preloaded symbols.
19953 exclude_expsyms=$lt_exclude_expsyms_RC
19954
19955 # Symbols that must always be exported.
19956 include_expsyms=$lt_include_expsyms_RC
19957
19958 # ### END LIBTOOL TAG CONFIG: $tagname
19959
19960 __EOF__
19961
19962
19963 else
19964 # If there is no Makefile yet, we rely on a make rule to execute
19965 # `config.status --recheck' to rerun these tests and create the
19966 # libtool script then.
19967 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19968 if test -f "$ltmain_in"; then
19969 test -f Makefile && make "$ltmain"
19970 fi
19971 fi
19972
19973
19974 ac_ext=c
19975 ac_cpp='$CPP $CPPFLAGS'
19976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19979
19980 CC="$lt_save_CC"
19981
19982 ;;
19983
19984 *)
19985 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19986 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19987 { (exit 1); exit 1; }; }
19988 ;;
19989 esac
19990
19991 # Append the new tag name to the list of available tags.
19992 if test -n "$tagname" ; then
19993 available_tags="$available_tags $tagname"
19994 fi
19995 fi
19996 done
19997 IFS="$lt_save_ifs"
19998
19999 # Now substitute the updated list of available tags.
20000 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20001 mv "${ofile}T" "$ofile"
20002 chmod +x "$ofile"
20003 else
20004 rm -f "${ofile}T"
20005 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20006 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20007 { (exit 1); exit 1; }; }
20008 fi
20009 fi
20010
20011
20012
20013 # This can be used to rebuild libtool when needed
20014 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20015
20016 # Always use our own libtool.
20017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20018
20019 # Prevent multiple expansion
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
20042 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
20043 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
20044 if test "${enable_maintainer_mode+set}" = set; then
20045 enableval="$enable_maintainer_mode"
20046 USE_MAINTAINER_MODE=$enableval
20047 else
20048 USE_MAINTAINER_MODE=no
20049 fi;
20050 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
20051 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20052
20053
20054 if test $USE_MAINTAINER_MODE = yes; then
20055 MAINTAINER_MODE_TRUE=
20056 MAINTAINER_MODE_FALSE='#'
20057 else
20058 MAINTAINER_MODE_TRUE='#'
20059 MAINTAINER_MODE_FALSE=
20060 fi
20061
20062 MAINT=$MAINTAINER_MODE_TRUE
20063
20064
20065
20066 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20068 if test "${ac_cv_c_const+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h. */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077
20078 int
20079 main ()
20080 {
20081 /* FIXME: Include the comments suggested by Paul. */
20082 #ifndef __cplusplus
20083 /* Ultrix mips cc rejects this. */
20084 typedef int charset[2];
20085 const charset x;
20086 /* SunOS 4.1.1 cc rejects this. */
20087 char const *const *ccp;
20088 char **p;
20089 /* NEC SVR4.0.2 mips cc rejects this. */
20090 struct point {int x, y;};
20091 static struct point const zero = {0,0};
20092 /* AIX XL C 1.02.0.0 rejects this.
20093 It does not let you subtract one const X* pointer from another in
20094 an arm of an if-expression whose if-part is not a constant
20095 expression */
20096 const char *g = "string";
20097 ccp = &g + (g ? g-g : 0);
20098 /* HPUX 7.0 cc rejects these. */
20099 ++ccp;
20100 p = (char**) ccp;
20101 ccp = (char const *const *) p;
20102 { /* SCO 3.2v4 cc rejects this. */
20103 char *t;
20104 char const *s = 0 ? (char *) 0 : (char const *) 0;
20105
20106 *t++ = 0;
20107 }
20108 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20109 int x[] = {25, 17};
20110 const int *foo = &x[0];
20111 ++foo;
20112 }
20113 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20114 typedef const int *iptr;
20115 iptr p = 0;
20116 ++p;
20117 }
20118 { /* AIX XL C 1.02.0.0 rejects this saying
20119 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20120 struct s { int j; const int *ap[3]; };
20121 struct s *b; b->j = 5;
20122 }
20123 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20124 const int foo = 10;
20125 }
20126 #endif
20127
20128 ;
20129 return 0;
20130 }
20131 _ACEOF
20132 rm -f conftest.$ac_objext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20134 (eval $ac_compile) 2>conftest.er1
20135 ac_status=$?
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; } &&
20147 { ac_try='test -s conftest.$ac_objext'
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20153 ac_cv_c_const=yes
20154 else
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 ac_cv_c_const=no
20159 fi
20160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20161 fi
20162 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20163 echo "${ECHO_T}$ac_cv_c_const" >&6
20164 if test $ac_cv_c_const = no; then
20165
20166 cat >>confdefs.h <<\_ACEOF
20167 #define const
20168 _ACEOF
20169
20170 fi
20171
20172
20173 # Extract the first word of "pkg-config", so it can be a program name with args.
20174 set dummy pkg-config; ac_word=$2
20175 echo "$as_me:$LINENO: checking for $ac_word" >&5
20176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180 case $PKG_CONFIG in
20181 [\\/]* | ?:[\\/]*)
20182 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20183 ;;
20184 *)
20185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20186 for as_dir in $PATH
20187 do
20188 IFS=$as_save_IFS
20189 test -z "$as_dir" && as_dir=.
20190 for ac_exec_ext in '' $ac_executable_extensions; do
20191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20192 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20194 break 2
20195 fi
20196 done
20197 done
20198
20199 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20200 ;;
20201 esac
20202 fi
20203 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20204
20205 if test -n "$PKG_CONFIG"; then
20206 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20207 echo "${ECHO_T}$PKG_CONFIG" >&6
20208 else
20209 echo "$as_me:$LINENO: result: no" >&5
20210 echo "${ECHO_T}no" >&6
20211 fi
20212
20213
20214 CFLAGS=
20215 LIBS=-lm
20216
20217
20218 # Extract the first word of ""swig"", so it can be a program name with args.
20219 set dummy "swig"; ac_word=$2
20220 echo "$as_me:$LINENO: checking for $ac_word" >&5
20221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20222 if test "${ac_cv_prog_have_swig+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 else
20225 if test -n "$have_swig"; then
20226 ac_cv_prog_have_swig="$have_swig" # Let the user override the test.
20227 else
20228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20229 for as_dir in $PATH
20230 do
20231 IFS=$as_save_IFS
20232 test -z "$as_dir" && as_dir=.
20233 for ac_exec_ext in '' $ac_executable_extensions; do
20234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20235 ac_cv_prog_have_swig="yes"
20236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20237 break 2
20238 fi
20239 done
20240 done
20241
20242 test -z "$ac_cv_prog_have_swig" && ac_cv_prog_have_swig="no"
20243 fi
20244 fi
20245 have_swig=$ac_cv_prog_have_swig
20246 if test -n "$have_swig"; then
20247 echo "$as_me:$LINENO: result: $have_swig" >&5
20248 echo "${ECHO_T}$have_swig" >&6
20249 else
20250 echo "$as_me:$LINENO: result: no" >&5
20251 echo "${ECHO_T}no" >&6
20252 fi
20253
20254
20255
20256 build_pascal=no
20257
20258 # Extract the first word of ""fpc"", so it can be a program name with args.
20259 set dummy "fpc"; ac_word=$2
20260 echo "$as_me:$LINENO: checking for $ac_word" >&5
20261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20262 if test "${ac_cv_prog_have_pascal+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 else
20265 if test -n "$have_pascal"; then
20266 ac_cv_prog_have_pascal="$have_pascal" # Let the user override the test.
20267 else
20268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20269 for as_dir in $PATH
20270 do
20271 IFS=$as_save_IFS
20272 test -z "$as_dir" && as_dir=.
20273 for ac_exec_ext in '' $ac_executable_extensions; do
20274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20275 ac_cv_prog_have_pascal="yes"
20276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20277 break 2
20278 fi
20279 done
20280 done
20281
20282 test -z "$ac_cv_prog_have_pascal" && ac_cv_prog_have_pascal="no"
20283 fi
20284 fi
20285 have_pascal=$ac_cv_prog_have_pascal
20286 if test -n "$have_pascal"; then
20287 echo "$as_me:$LINENO: result: $have_pascal" >&5
20288 echo "${ECHO_T}$have_pascal" >&6
20289 else
20290 echo "$as_me:$LINENO: result: no" >&5
20291 echo "${ECHO_T}no" >&6
20292 fi
20293
20294
20295 # Check whether --enable-pascal or --disable-pascal was given.
20296 if test "${enable_pascal+set}" = set; then
20297 enableval="$enable_pascal"
20298 build_pascal="$enableval"
20299 else
20300 build_pascal=no
20301 fi;
20302
20303 if test "x$have_pascal" = "xno"; then
20304 build_pascal=no
20305 else
20306 PA_VERSION=`fpc -iV`
20307 PA_TPR=`fpc -iTP`
20308 PA_TOS=`fpc -iTO`
20309 PA_MODULES_PATH="/usr/lib/fpc/$PA_VERSION/units/$PA_TPR-$PA_TOS"
20310
20311 fi
20312
20313
20314
20315 if test "x$build_pascal" = "xyes"; then
20316 WITH_PASCAL_TRUE=
20317 WITH_PASCAL_FALSE='#'
20318 else
20319 WITH_PASCAL_TRUE='#'
20320 WITH_PASCAL_FALSE=
20321 fi
20322
20323
20324
20325 build_python=no
20326
20327 # Check whether --enable-python or --disable-python was given.
20328 if test "${enable_python+set}" = set; then
20329 enableval="$enable_python"
20330 build_python="$enableval"
20331 else
20332 build_python=no
20333 fi;
20334
20335
20336 # Check whether --with-python-sitelib-dir or --without-python-sitelib-dir was given.
20337 if test "${with_python_sitelib_dir+set}" = set; then
20338 withval="$with_python_sitelib_dir"
20339
20340 fi;
20341
20342 # Extract the first word of ""python"", so it can be a program name with args.
20343 set dummy "python"; ac_word=$2
20344 echo "$as_me:$LINENO: checking for $ac_word" >&5
20345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20346 if test "${ac_cv_prog_have_python+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349 if test -n "$have_python"; then
20350 ac_cv_prog_have_python="$have_python" # Let the user override the test.
20351 else
20352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20353 for as_dir in $PATH
20354 do
20355 IFS=$as_save_IFS
20356 test -z "$as_dir" && as_dir=.
20357 for ac_exec_ext in '' $ac_executable_extensions; do
20358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20359 ac_cv_prog_have_python="yes"
20360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20361 break 2
20362 fi
20363 done
20364 done
20365
20366 test -z "$ac_cv_prog_have_python" && ac_cv_prog_have_python="no"
20367 fi
20368 fi
20369 have_python=$ac_cv_prog_have_python
20370 if test -n "$have_python"; then
20371 echo "$as_me:$LINENO: result: $have_python" >&5
20372 echo "${ECHO_T}$have_python" >&6
20373 else
20374 echo "$as_me:$LINENO: result: no" >&5
20375 echo "${ECHO_T}no" >&6
20376 fi
20377
20378
20379 if test "x$have_python" = "xyes"; then
20380 PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
20381 PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
20382 echo "$as_me:$LINENO: checking for $PY_PREFIX/include/python$PY_VERSION/Python.h" >&5
20383 echo $ECHO_N "checking for $PY_PREFIX/include/python$PY_VERSION/Python.h... $ECHO_C" >&6
20384 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
20385 echo "$as_me:$LINENO: result: yes" >&5
20386 echo "${ECHO_T}yes" >&6
20387 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
20388
20389 if test "x$with_python_sitelib_dir" = "x" ; then
20390 PY_MODULES_PATH="$PY_PREFIX/lib/python$PY_VERSION/site-packages"
20391 else
20392 PY_MODULES_PATH=$with_python_sitelib_dir
20393 fi
20394
20395
20396
20397 if test "x$have_swig" = "xno"; then
20398 build_python=no
20399 fi
20400 else
20401 echo "$as_me:$LINENO: result: no" >&5
20402 echo "${ECHO_T}no" >&6
20403 build_python=no
20404 fi
20405 fi
20406
20407
20408
20409 if test "x$build_python" = "xyes"; then
20410 WITH_PYTHON_TRUE=
20411 WITH_PYTHON_FALSE='#'
20412 else
20413 WITH_PYTHON_TRUE='#'
20414 WITH_PYTHON_FALSE=
20415 fi
20416
20417
20418
20419 build_perl=no
20420
20421 # Check whether --enable-perl or --disable-perl was given.
20422 if test "${enable_perl+set}" = set; then
20423 enableval="$enable_perl"
20424 build_perl="$enableval"
20425 else
20426 build_perl=no
20427 fi;
20428
20429
20430 # Check whether --with-perl-sitelib-dir or --without-perl-sitelib-dir was given.
20431 if test "${with_perl_sitelib_dir+set}" = set; then
20432 withval="$with_perl_sitelib_dir"
20433
20434 fi;
20435
20436 # Extract the first word of ""perl"", so it can be a program name with args.
20437 set dummy "perl"; ac_word=$2
20438 echo "$as_me:$LINENO: checking for $ac_word" >&5
20439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20440 if test "${ac_cv_prog_have_perl+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443 if test -n "$have_perl"; then
20444 ac_cv_prog_have_perl="$have_perl" # Let the user override the test.
20445 else
20446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20447 for as_dir in $PATH
20448 do
20449 IFS=$as_save_IFS
20450 test -z "$as_dir" && as_dir=.
20451 for ac_exec_ext in '' $ac_executable_extensions; do
20452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20453 ac_cv_prog_have_perl="yes"
20454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20455 break 2
20456 fi
20457 done
20458 done
20459
20460 test -z "$ac_cv_prog_have_perl" && ac_cv_prog_have_perl="no"
20461 fi
20462 fi
20463 have_perl=$ac_cv_prog_have_perl
20464 if test -n "$have_perl"; then
20465 echo "$as_me:$LINENO: result: $have_perl" >&5
20466 echo "${ECHO_T}$have_perl" >&6
20467 else
20468 echo "$as_me:$LINENO: result: no" >&5
20469 echo "${ECHO_T}no" >&6
20470 fi
20471
20472
20473 if test "x$have_perl" = "xyes"; then
20474 PE_PREFIX=`(perl -e 'use Config; print $Config{archlib};')`
20475 echo "$as_me:$LINENO: checking for $PE_PREFIX/CORE/perl.h" >&5
20476 echo $ECHO_N "checking for $PE_PREFIX/CORE/perl.h... $ECHO_C" >&6
20477 if test -f $PE_PREFIX/CORE/perl.h; then
20478 echo "$as_me:$LINENO: result: yes" >&5
20479 echo "${ECHO_T}yes" >&6
20480 PE_CFLAGS="-I$PE_PREFIX/CORE "
20481 PE_CFLAGS=$PE_CFLAGS`(perl -e 'use Config; print $Config{cppflags};')`
20482
20483 if test "x$with_perl_sitelib_dir" = "x" ; then
20484 PE_MODULES_PATH=`(perl -e 'use Config; print $Config{sitelib};')`
20485 else
20486 PE_MODULES_PATH=$with_perl_sitelib_dir
20487 fi
20488
20489
20490
20491 if test "x$have_swig" = "xno"; then
20492 build_perl=no
20493 fi
20494 else
20495 echo "$as_me:$LINENO: result: no" >&5
20496 echo "${ECHO_T}no" >&6
20497 build_perl=no
20498 fi
20499 fi
20500
20501
20502
20503
20504 if test "x$build_perl" = "xyes"; then
20505 WITH_PERL_TRUE=
20506 WITH_PERL_FALSE='#'
20507 else
20508 WITH_PERL_TRUE='#'
20509 WITH_PERL_FALSE=
20510 fi
20511
20512
20513
20514
20515 ALL_LINGUAS="he es_MX ru fr"
20516
20517
20518 MKINSTALLDIRS=
20519 if test -n "$ac_aux_dir"; then
20520 case "$ac_aux_dir" in
20521 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
20522 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
20523 esac
20524 fi
20525 if test -z "$MKINSTALLDIRS"; then
20526 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20527 fi
20528
20529
20530
20531 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20532 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
20533 # Check whether --enable-nls or --disable-nls was given.
20534 if test "${enable_nls+set}" = set; then
20535 enableval="$enable_nls"
20536 USE_NLS=$enableval
20537 else
20538 USE_NLS=yes
20539 fi;
20540 echo "$as_me:$LINENO: result: $USE_NLS" >&5
20541 echo "${ECHO_T}$USE_NLS" >&6
20542
20543
20544
20545
20546
20547
20548 # Prepare PATH_SEPARATOR.
20549 # The user is always right.
20550 if test "${PATH_SEPARATOR+set}" != set; then
20551 echo "#! /bin/sh" >conf$$.sh
20552 echo "exit 0" >>conf$$.sh
20553 chmod +x conf$$.sh
20554 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20555 PATH_SEPARATOR=';'
20556 else
20557 PATH_SEPARATOR=:
20558 fi
20559 rm -f conf$$.sh
20560 fi
20561
20562 # Find out how to test for executable files. Don't use a zero-byte file,
20563 # as systems may use methods other than mode bits to determine executability.
20564 cat >conf$$.file <<_ASEOF
20565 #! /bin/sh
20566 exit 0
20567 _ASEOF
20568 chmod +x conf$$.file
20569 if test -x conf$$.file >/dev/null 2>&1; then
20570 ac_executable_p="test -x"
20571 else
20572 ac_executable_p="test -f"
20573 fi
20574 rm -f conf$$.file
20575
20576 # Extract the first word of "msgfmt", so it can be a program name with args.
20577 set dummy msgfmt; ac_word=$2
20578 echo "$as_me:$LINENO: checking for $ac_word" >&5
20579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20580 if test "${ac_cv_path_MSGFMT+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 else
20583 case "$MSGFMT" in
20584 [\\/]* | ?:[\\/]*)
20585 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20586 ;;
20587 *)
20588 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20589 for ac_dir in $PATH; do
20590 IFS="$ac_save_IFS"
20591 test -z "$ac_dir" && ac_dir=.
20592 for ac_exec_ext in '' $ac_executable_extensions; do
20593 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20594 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20595 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20596 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20597 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20598 break 2
20599 fi
20600 fi
20601 done
20602 done
20603 IFS="$ac_save_IFS"
20604 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20605 ;;
20606 esac
20607 fi
20608 MSGFMT="$ac_cv_path_MSGFMT"
20609 if test "$MSGFMT" != ":"; then
20610 echo "$as_me:$LINENO: result: $MSGFMT" >&5
20611 echo "${ECHO_T}$MSGFMT" >&6
20612 else
20613 echo "$as_me:$LINENO: result: no" >&5
20614 echo "${ECHO_T}no" >&6
20615 fi
20616
20617 # Extract the first word of "gmsgfmt", so it can be a program name with args.
20618 set dummy gmsgfmt; ac_word=$2
20619 echo "$as_me:$LINENO: checking for $ac_word" >&5
20620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20621 if test "${ac_cv_path_GMSGFMT+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 else
20624 case $GMSGFMT in
20625 [\\/]* | ?:[\\/]*)
20626 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20627 ;;
20628 *)
20629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20630 for as_dir in $PATH
20631 do
20632 IFS=$as_save_IFS
20633 test -z "$as_dir" && as_dir=.
20634 for ac_exec_ext in '' $ac_executable_extensions; do
20635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20636 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20638 break 2
20639 fi
20640 done
20641 done
20642
20643 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20644 ;;
20645 esac
20646 fi
20647 GMSGFMT=$ac_cv_path_GMSGFMT
20648
20649 if test -n "$GMSGFMT"; then
20650 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20651 echo "${ECHO_T}$GMSGFMT" >&6
20652 else
20653 echo "$as_me:$LINENO: result: no" >&5
20654 echo "${ECHO_T}no" >&6
20655 fi
20656
20657
20658
20659 # Prepare PATH_SEPARATOR.
20660 # The user is always right.
20661 if test "${PATH_SEPARATOR+set}" != set; then
20662 echo "#! /bin/sh" >conf$$.sh
20663 echo "exit 0" >>conf$$.sh
20664 chmod +x conf$$.sh
20665 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20666 PATH_SEPARATOR=';'
20667 else
20668 PATH_SEPARATOR=:
20669 fi
20670 rm -f conf$$.sh
20671 fi
20672
20673 # Find out how to test for executable files. Don't use a zero-byte file,
20674 # as systems may use methods other than mode bits to determine executability.
20675 cat >conf$$.file <<_ASEOF
20676 #! /bin/sh
20677 exit 0
20678 _ASEOF
20679 chmod +x conf$$.file
20680 if test -x conf$$.file >/dev/null 2>&1; then
20681 ac_executable_p="test -x"
20682 else
20683 ac_executable_p="test -f"
20684 fi
20685 rm -f conf$$.file
20686
20687 # Extract the first word of "xgettext", so it can be a program name with args.
20688 set dummy xgettext; ac_word=$2
20689 echo "$as_me:$LINENO: checking for $ac_word" >&5
20690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20691 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694 case "$XGETTEXT" in
20695 [\\/]* | ?:[\\/]*)
20696 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20697 ;;
20698 *)
20699 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20700 for ac_dir in $PATH; do
20701 IFS="$ac_save_IFS"
20702 test -z "$ac_dir" && ac_dir=.
20703 for ac_exec_ext in '' $ac_executable_extensions; do
20704 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20705 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20706 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20707 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20708 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20709 break 2
20710 fi
20711 fi
20712 done
20713 done
20714 IFS="$ac_save_IFS"
20715 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20716 ;;
20717 esac
20718 fi
20719 XGETTEXT="$ac_cv_path_XGETTEXT"
20720 if test "$XGETTEXT" != ":"; then
20721 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20722 echo "${ECHO_T}$XGETTEXT" >&6
20723 else
20724 echo "$as_me:$LINENO: result: no" >&5
20725 echo "${ECHO_T}no" >&6
20726 fi
20727
20728 rm -f messages.po
20729
20730
20731 # Prepare PATH_SEPARATOR.
20732 # The user is always right.
20733 if test "${PATH_SEPARATOR+set}" != set; then
20734 echo "#! /bin/sh" >conf$$.sh
20735 echo "exit 0" >>conf$$.sh
20736 chmod +x conf$$.sh
20737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20738 PATH_SEPARATOR=';'
20739 else
20740 PATH_SEPARATOR=:
20741 fi
20742 rm -f conf$$.sh
20743 fi
20744
20745 # Find out how to test for executable files. Don't use a zero-byte file,
20746 # as systems may use methods other than mode bits to determine executability.
20747 cat >conf$$.file <<_ASEOF
20748 #! /bin/sh
20749 exit 0
20750 _ASEOF
20751 chmod +x conf$$.file
20752 if test -x conf$$.file >/dev/null 2>&1; then
20753 ac_executable_p="test -x"
20754 else
20755 ac_executable_p="test -f"
20756 fi
20757 rm -f conf$$.file
20758
20759 # Extract the first word of "msgmerge", so it can be a program name with args.
20760 set dummy msgmerge; ac_word=$2
20761 echo "$as_me:$LINENO: checking for $ac_word" >&5
20762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20763 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 else
20766 case "$MSGMERGE" in
20767 [\\/]* | ?:[\\/]*)
20768 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20769 ;;
20770 *)
20771 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20772 for ac_dir in $PATH; do
20773 IFS="$ac_save_IFS"
20774 test -z "$ac_dir" && ac_dir=.
20775 for ac_exec_ext in '' $ac_executable_extensions; do
20776 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20777 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20778 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20779 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20780 break 2
20781 fi
20782 fi
20783 done
20784 done
20785 IFS="$ac_save_IFS"
20786 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20787 ;;
20788 esac
20789 fi
20790 MSGMERGE="$ac_cv_path_MSGMERGE"
20791 if test "$MSGMERGE" != ":"; then
20792 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20793 echo "${ECHO_T}$MSGMERGE" >&6
20794 else
20795 echo "$as_me:$LINENO: result: no" >&5
20796 echo "${ECHO_T}no" >&6
20797 fi
20798
20799
20800 if test "$GMSGFMT" != ":"; then
20801 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
20802 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20803 : ;
20804 else
20805 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
20806 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
20807 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
20808 GMSGFMT=":"
20809 fi
20810 fi
20811
20812 if test "$XGETTEXT" != ":"; then
20813 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20814 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20815 : ;
20816 else
20817 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
20818 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
20819 XGETTEXT=":"
20820 fi
20821 rm -f messages.po
20822 fi
20823
20824 ac_config_commands="$ac_config_commands default-1"
20825
20826
20827
20828 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
20829 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
20830 if test "${ac_cv_gnu_library_2+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833 cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h. */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839
20840 #include <features.h>
20841 #ifdef __GNU_LIBRARY__
20842 #if (__GLIBC__ >= 2)
20843 Lucky GNU user
20844 #endif
20845 #endif
20846
20847 _ACEOF
20848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20849 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20850 ac_cv_gnu_library_2=yes
20851 else
20852 ac_cv_gnu_library_2=no
20853 fi
20854 rm -f conftest*
20855
20856
20857
20858 fi
20859 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
20860 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
20861
20862 GLIBC2="$ac_cv_gnu_library_2"
20863
20864
20865 if test -n "$ac_tool_prefix"; then
20866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20868 echo "$as_me:$LINENO: checking for $ac_word" >&5
20869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20870 if test "${ac_cv_prog_RANLIB+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 else
20873 if test -n "$RANLIB"; then
20874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20875 else
20876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20877 for as_dir in $PATH
20878 do
20879 IFS=$as_save_IFS
20880 test -z "$as_dir" && as_dir=.
20881 for ac_exec_ext in '' $ac_executable_extensions; do
20882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20885 break 2
20886 fi
20887 done
20888 done
20889
20890 fi
20891 fi
20892 RANLIB=$ac_cv_prog_RANLIB
20893 if test -n "$RANLIB"; then
20894 echo "$as_me:$LINENO: result: $RANLIB" >&5
20895 echo "${ECHO_T}$RANLIB" >&6
20896 else
20897 echo "$as_me:$LINENO: result: no" >&5
20898 echo "${ECHO_T}no" >&6
20899 fi
20900
20901 fi
20902 if test -z "$ac_cv_prog_RANLIB"; then
20903 ac_ct_RANLIB=$RANLIB
20904 # Extract the first word of "ranlib", so it can be a program name with args.
20905 set dummy ranlib; ac_word=$2
20906 echo "$as_me:$LINENO: checking for $ac_word" >&5
20907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20908 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911 if test -n "$ac_ct_RANLIB"; then
20912 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20913 else
20914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20915 for as_dir in $PATH
20916 do
20917 IFS=$as_save_IFS
20918 test -z "$as_dir" && as_dir=.
20919 for ac_exec_ext in '' $ac_executable_extensions; do
20920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20921 ac_cv_prog_ac_ct_RANLIB="ranlib"
20922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20923 break 2
20924 fi
20925 done
20926 done
20927
20928 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20929 fi
20930 fi
20931 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20932 if test -n "$ac_ct_RANLIB"; then
20933 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20934 echo "${ECHO_T}$ac_ct_RANLIB" >&6
20935 else
20936 echo "$as_me:$LINENO: result: no" >&5
20937 echo "${ECHO_T}no" >&6
20938 fi
20939
20940 RANLIB=$ac_ct_RANLIB
20941 else
20942 RANLIB="$ac_cv_prog_RANLIB"
20943 fi
20944
20945
20946 echo "$as_me:$LINENO: checking for signed" >&5
20947 echo $ECHO_N "checking for signed... $ECHO_C" >&6
20948 if test "${bh_cv_c_signed+set}" = set; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951 cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h. */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957
20958 int
20959 main ()
20960 {
20961 signed char x;
20962 ;
20963 return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext
20967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20968 (eval $ac_compile) 2>conftest.er1
20969 ac_status=$?
20970 grep -v '^ *+' conftest.er1 >conftest.err
20971 rm -f conftest.er1
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } &&
20975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; } &&
20981 { ac_try='test -s conftest.$ac_objext'
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; }; then
20987 bh_cv_c_signed=yes
20988 else
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20991
20992 bh_cv_c_signed=no
20993 fi
20994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20995 fi
20996 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
20997 echo "${ECHO_T}$bh_cv_c_signed" >&6
20998 if test $bh_cv_c_signed = no; then
20999
21000 cat >>confdefs.h <<\_ACEOF
21001 #define signed
21002 _ACEOF
21003
21004 fi
21005
21006 echo "$as_me:$LINENO: checking for inline" >&5
21007 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21008 if test "${ac_cv_c_inline+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21010 else
21011 ac_cv_c_inline=no
21012 for ac_kw in inline __inline__ __inline; do
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h. */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 #ifndef __cplusplus
21020 typedef int foo_t;
21021 static $ac_kw foo_t static_foo () {return 0; }
21022 $ac_kw foo_t foo () {return 0; }
21023 #endif
21024
21025 _ACEOF
21026 rm -f conftest.$ac_objext
21027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21028 (eval $ac_compile) 2>conftest.er1
21029 ac_status=$?
21030 grep -v '^ *+' conftest.er1 >conftest.err
21031 rm -f conftest.er1
21032 cat conftest.err >&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); } &&
21035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21038 ac_status=$?
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; } &&
21041 { ac_try='test -s conftest.$ac_objext'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047 ac_cv_c_inline=$ac_kw; break
21048 else
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052 fi
21053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21054 done
21055
21056 fi
21057 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21058 echo "${ECHO_T}$ac_cv_c_inline" >&6
21059
21060
21061 case $ac_cv_c_inline in
21062 inline | yes) ;;
21063 *)
21064 case $ac_cv_c_inline in
21065 no) ac_val=;;
21066 *) ac_val=$ac_cv_c_inline;;
21067 esac
21068 cat >>confdefs.h <<_ACEOF
21069 #ifndef __cplusplus
21070 #define inline $ac_val
21071 #endif
21072 _ACEOF
21073 ;;
21074 esac
21075
21076 echo "$as_me:$LINENO: checking for off_t" >&5
21077 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21078 if test "${ac_cv_type_off_t+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081 cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h. */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21087 $ac_includes_default
21088 int
21089 main ()
21090 {
21091 if ((off_t *) 0)
21092 return 0;
21093 if (sizeof (off_t))
21094 return 0;
21095 ;
21096 return 0;
21097 }
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101 (eval $ac_compile) 2>conftest.er1
21102 ac_status=$?
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
21108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; } &&
21114 { ac_try='test -s conftest.$ac_objext'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 ac_cv_type_off_t=yes
21121 else
21122 echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21124
21125 ac_cv_type_off_t=no
21126 fi
21127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21128 fi
21129 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21130 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21131 if test $ac_cv_type_off_t = yes; then
21132 :
21133 else
21134
21135 cat >>confdefs.h <<_ACEOF
21136 #define off_t long
21137 _ACEOF
21138
21139 fi
21140
21141 echo "$as_me:$LINENO: checking for size_t" >&5
21142 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21143 if test "${ac_cv_type_size_t+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 $ac_includes_default
21153 int
21154 main ()
21155 {
21156 if ((size_t *) 0)
21157 return 0;
21158 if (sizeof (size_t))
21159 return 0;
21160 ;
21161 return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21166 (eval $ac_compile) 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest.$ac_objext'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 ac_cv_type_size_t=yes
21186 else
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21189
21190 ac_cv_type_size_t=no
21191 fi
21192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21193 fi
21194 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21195 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21196 if test $ac_cv_type_size_t = yes; then
21197 :
21198 else
21199
21200 cat >>confdefs.h <<_ACEOF
21201 #define size_t unsigned
21202 _ACEOF
21203
21204 fi
21205
21206
21207 echo "$as_me:$LINENO: checking for long long" >&5
21208 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21209 if test "${ac_cv_type_long_long+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 else
21212 cat >conftest.$ac_ext <<_ACEOF
21213 /* confdefs.h. */
21214 _ACEOF
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h. */
21218 long long ll = 1LL; int i = 63;
21219 int
21220 main ()
21221 {
21222 long long llmax = (long long) -1;
21223 return ll << i | ll >> i | llmax / ll | llmax % ll;
21224 ;
21225 return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21230 (eval $ac_link) 2>conftest.er1
21231 ac_status=$?
21232 grep -v '^ *+' conftest.er1 >conftest.err
21233 rm -f conftest.er1
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest$ac_exeext'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
21249 ac_cv_type_long_long=yes
21250 else
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 ac_cv_type_long_long=no
21255 fi
21256 rm -f conftest.err conftest.$ac_objext \
21257 conftest$ac_exeext conftest.$ac_ext
21258 fi
21259 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21260 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21261 if test $ac_cv_type_long_long = yes; then
21262
21263 cat >>confdefs.h <<\_ACEOF
21264 #define HAVE_LONG_LONG 1
21265 _ACEOF
21266
21267 fi
21268
21269
21270 echo "$as_me:$LINENO: checking for long double" >&5
21271 echo $ECHO_N "checking for long double... $ECHO_C" >&6
21272 if test "${gt_cv_c_long_double+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275 if test "$GCC" = yes; then
21276 gt_cv_c_long_double=yes
21277 else
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284
21285 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
21286 long double foo = 0.0;
21287 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
21288 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
21289
21290 int
21291 main ()
21292 {
21293
21294 ;
21295 return 0;
21296 }
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21300 (eval $ac_compile) 2>conftest.er1
21301 ac_status=$?
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
21307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 gt_cv_c_long_double=yes
21320 else
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 gt_cv_c_long_double=no
21325 fi
21326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21327 fi
21328 fi
21329 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
21330 echo "${ECHO_T}$gt_cv_c_long_double" >&6
21331 if test $gt_cv_c_long_double = yes; then
21332
21333 cat >>confdefs.h <<\_ACEOF
21334 #define HAVE_LONG_DOUBLE 1
21335 _ACEOF
21336
21337 fi
21338
21339
21340 echo "$as_me:$LINENO: checking for wchar_t" >&5
21341 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21342 if test "${gt_cv_c_wchar_t+set}" = set; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345 cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h. */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 #include <stddef.h>
21352 wchar_t foo = (wchar_t)'\0';
21353 int
21354 main ()
21355 {
21356
21357 ;
21358 return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21363 (eval $ac_compile) 2>conftest.er1
21364 ac_status=$?
21365 grep -v '^ *+' conftest.er1 >conftest.err
21366 rm -f conftest.er1
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } &&
21370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; } &&
21376 { ac_try='test -s conftest.$ac_objext'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21382 gt_cv_c_wchar_t=yes
21383 else
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 gt_cv_c_wchar_t=no
21388 fi
21389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21390 fi
21391 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
21392 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
21393 if test $gt_cv_c_wchar_t = yes; then
21394
21395 cat >>confdefs.h <<\_ACEOF
21396 #define HAVE_WCHAR_T 1
21397 _ACEOF
21398
21399 fi
21400
21401
21402 echo "$as_me:$LINENO: checking for wint_t" >&5
21403 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
21404 if test "${gt_cv_c_wint_t+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407 cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h. */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <wchar.h>
21414 wint_t foo = (wchar_t)'\0';
21415 int
21416 main ()
21417 {
21418
21419 ;
21420 return 0;
21421 }
21422 _ACEOF
21423 rm -f conftest.$ac_objext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21425 (eval $ac_compile) 2>conftest.er1
21426 ac_status=$?
21427 grep -v '^ *+' conftest.er1 >conftest.err
21428 rm -f conftest.er1
21429 cat conftest.err >&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } &&
21432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434 (eval $ac_try) 2>&5
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; } &&
21438 { ac_try='test -s conftest.$ac_objext'
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; }; then
21444 gt_cv_c_wint_t=yes
21445 else
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449 gt_cv_c_wint_t=no
21450 fi
21451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21452 fi
21453 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
21454 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
21455 if test $gt_cv_c_wint_t = yes; then
21456
21457 cat >>confdefs.h <<\_ACEOF
21458 #define HAVE_WINT_T 1
21459 _ACEOF
21460
21461 fi
21462
21463
21464 echo "$as_me:$LINENO: checking for inttypes.h" >&5
21465 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
21466 if test "${gl_cv_header_inttypes_h+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469 cat >conftest.$ac_ext <<_ACEOF
21470 /* confdefs.h. */
21471 _ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h. */
21475 #include <sys/types.h>
21476 #include <inttypes.h>
21477 int
21478 main ()
21479 {
21480 uintmax_t i = (uintmax_t) -1;
21481 ;
21482 return 0;
21483 }
21484 _ACEOF
21485 rm -f conftest.$ac_objext
21486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21487 (eval $ac_compile) 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
21494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; } &&
21500 { ac_try='test -s conftest.$ac_objext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 gl_cv_header_inttypes_h=yes
21507 else
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511 gl_cv_header_inttypes_h=no
21512 fi
21513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21514 fi
21515 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
21516 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
21517 if test $gl_cv_header_inttypes_h = yes; then
21518
21519 cat >>confdefs.h <<_ACEOF
21520 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
21521 _ACEOF
21522
21523 fi
21524
21525
21526 echo "$as_me:$LINENO: checking for stdint.h" >&5
21527 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
21528 if test "${gl_cv_header_stdint_h+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 else
21531 cat >conftest.$ac_ext <<_ACEOF
21532 /* confdefs.h. */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 #include <sys/types.h>
21538 #include <stdint.h>
21539 int
21540 main ()
21541 {
21542 uintmax_t i = (uintmax_t) -1;
21543 ;
21544 return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest.$ac_objext
21548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21549 (eval $ac_compile) 2>conftest.er1
21550 ac_status=$?
21551 grep -v '^ *+' conftest.er1 >conftest.err
21552 rm -f conftest.er1
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } &&
21556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; } &&
21562 { ac_try='test -s conftest.$ac_objext'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21565 ac_status=$?
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; }; then
21568 gl_cv_header_stdint_h=yes
21569 else
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573 gl_cv_header_stdint_h=no
21574 fi
21575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21576 fi
21577 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
21578 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
21579 if test $gl_cv_header_stdint_h = yes; then
21580
21581 cat >>confdefs.h <<_ACEOF
21582 #define HAVE_STDINT_H_WITH_UINTMAX 1
21583 _ACEOF
21584
21585 fi
21586
21587
21588
21589
21590 echo "$as_me:$LINENO: checking for intmax_t" >&5
21591 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
21592 if test "${gt_cv_c_intmax_t+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594 else
21595 cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h. */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21601
21602 #include <stddef.h>
21603 #include <stdlib.h>
21604 #if HAVE_STDINT_H_WITH_UINTMAX
21605 #include <stdint.h>
21606 #endif
21607 #if HAVE_INTTYPES_H_WITH_UINTMAX
21608 #include <inttypes.h>
21609 #endif
21610
21611 int
21612 main ()
21613 {
21614 intmax_t x = -1;
21615 ;
21616 return 0;
21617 }
21618 _ACEOF
21619 rm -f conftest.$ac_objext
21620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21621 (eval $ac_compile) 2>conftest.er1
21622 ac_status=$?
21623 grep -v '^ *+' conftest.er1 >conftest.err
21624 rm -f conftest.er1
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } &&
21628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; } &&
21634 { ac_try='test -s conftest.$ac_objext'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 gt_cv_c_intmax_t=yes
21641 else
21642 echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645 gt_cv_c_intmax_t=no
21646 fi
21647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21648 fi
21649 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
21650 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
21651 if test $gt_cv_c_intmax_t = yes; then
21652
21653 cat >>confdefs.h <<\_ACEOF
21654 #define HAVE_INTMAX_T 1
21655 _ACEOF
21656
21657 fi
21658
21659
21660
21661 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
21662 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
21663 if test "${gt_cv_func_printf_posix+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21665 else
21666
21667 if test "$cross_compiling" = yes; then
21668
21669 cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h. */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21675
21676 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
21677 notposix
21678 #endif
21679
21680 _ACEOF
21681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21682 $EGREP "notposix" >/dev/null 2>&1; then
21683 gt_cv_func_printf_posix="guessing no"
21684 else
21685 gt_cv_func_printf_posix="guessing yes"
21686 fi
21687 rm -f conftest*
21688
21689
21690 else
21691 cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h. */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697
21698 #include <stdio.h>
21699 #include <string.h>
21700 /* The string "%2$d %1$d", with dollar characters protected from the shell's
21701 dollar expansion (possibly an autoconf bug). */
21702 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21703 static char buf[100];
21704 int main ()
21705 {
21706 sprintf (buf, format, 33, 55);
21707 return (strcmp (buf, "55 33") != 0);
21708 }
21709 _ACEOF
21710 rm -f conftest$ac_exeext
21711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21712 (eval $ac_link) 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 gt_cv_func_printf_posix=yes
21722 else
21723 echo "$as_me: program exited with status $ac_status" >&5
21724 echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21726
21727 ( exit $ac_status )
21728 gt_cv_func_printf_posix=no
21729 fi
21730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21731 fi
21732
21733 fi
21734 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
21735 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
21736 case $gt_cv_func_printf_posix in
21737 *yes)
21738
21739 cat >>confdefs.h <<\_ACEOF
21740 #define HAVE_POSIX_PRINTF 1
21741 _ACEOF
21742
21743 ;;
21744 esac
21745
21746 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21747 # for constant arguments. Useless!
21748 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21749 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21750 if test "${ac_cv_working_alloca_h+set}" = set; then
21751 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 else
21753 cat >conftest.$ac_ext <<_ACEOF
21754 /* confdefs.h. */
21755 _ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 #include <alloca.h>
21760 int
21761 main ()
21762 {
21763 char *p = (char *) alloca (2 * sizeof (int));
21764 ;
21765 return 0;
21766 }
21767 _ACEOF
21768 rm -f conftest.$ac_objext conftest$ac_exeext
21769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21770 (eval $ac_link) 2>conftest.er1
21771 ac_status=$?
21772 grep -v '^ *+' conftest.er1 >conftest.err
21773 rm -f conftest.er1
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } &&
21777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; } &&
21783 { ac_try='test -s conftest$ac_exeext'
21784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; }; then
21789 ac_cv_working_alloca_h=yes
21790 else
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21793
21794 ac_cv_working_alloca_h=no
21795 fi
21796 rm -f conftest.err conftest.$ac_objext \
21797 conftest$ac_exeext conftest.$ac_ext
21798 fi
21799 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21800 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21801 if test $ac_cv_working_alloca_h = yes; then
21802
21803 cat >>confdefs.h <<\_ACEOF
21804 #define HAVE_ALLOCA_H 1
21805 _ACEOF
21806
21807 fi
21808
21809 echo "$as_me:$LINENO: checking for alloca" >&5
21810 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21811 if test "${ac_cv_func_alloca_works+set}" = set; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21813 else
21814 cat >conftest.$ac_ext <<_ACEOF
21815 /* confdefs.h. */
21816 _ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21820 #ifdef __GNUC__
21821 # define alloca __builtin_alloca
21822 #else
21823 # ifdef _MSC_VER
21824 # include <malloc.h>
21825 # define alloca _alloca
21826 # else
21827 # if HAVE_ALLOCA_H
21828 # include <alloca.h>
21829 # else
21830 # ifdef _AIX
21831 #pragma alloca
21832 # else
21833 # ifndef alloca /* predefined by HP cc +Olibcalls */
21834 char *alloca ();
21835 # endif
21836 # endif
21837 # endif
21838 # endif
21839 #endif
21840
21841 int
21842 main ()
21843 {
21844 char *p = (char *) alloca (1);
21845 ;
21846 return 0;
21847 }
21848 _ACEOF
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851 (eval $ac_link) 2>conftest.er1
21852 ac_status=$?
21853 grep -v '^ *+' conftest.er1 >conftest.err
21854 rm -f conftest.er1
21855 cat conftest.err >&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } &&
21858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21860 (eval $ac_try) 2>&5
21861 ac_status=$?
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); }; } &&
21864 { ac_try='test -s conftest$ac_exeext'
21865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866 (eval $ac_try) 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }; then
21870 ac_cv_func_alloca_works=yes
21871 else
21872 echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875 ac_cv_func_alloca_works=no
21876 fi
21877 rm -f conftest.err conftest.$ac_objext \
21878 conftest$ac_exeext conftest.$ac_ext
21879 fi
21880 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21881 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21882
21883 if test $ac_cv_func_alloca_works = yes; then
21884
21885 cat >>confdefs.h <<\_ACEOF
21886 #define HAVE_ALLOCA 1
21887 _ACEOF
21888
21889 else
21890 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21891 # that cause trouble. Some versions do not even contain alloca or
21892 # contain a buggy version. If you still want to use their alloca,
21893 # use ar to extract alloca.o from them instead of compiling alloca.c.
21894
21895 ALLOCA=alloca.$ac_objext
21896
21897 cat >>confdefs.h <<\_ACEOF
21898 #define C_ALLOCA 1
21899 _ACEOF
21900
21901
21902 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21903 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21904 if test "${ac_cv_os_cray+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 else
21907 cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h. */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 #if defined(CRAY) && ! defined(CRAY2)
21914 webecray
21915 #else
21916 wenotbecray
21917 #endif
21918
21919 _ACEOF
21920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21921 $EGREP "webecray" >/dev/null 2>&1; then
21922 ac_cv_os_cray=yes
21923 else
21924 ac_cv_os_cray=no
21925 fi
21926 rm -f conftest*
21927
21928 fi
21929 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21930 echo "${ECHO_T}$ac_cv_os_cray" >&6
21931 if test $ac_cv_os_cray = yes; then
21932 for ac_func in _getb67 GETB67 getb67; do
21933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21934 echo "$as_me:$LINENO: checking for $ac_func" >&5
21935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21936 if eval "test \"\${$as_ac_var+set}\" = set"; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939 cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h. */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21947 #define $ac_func innocuous_$ac_func
21948
21949 /* System header to define __stub macros and hopefully few prototypes,
21950 which can conflict with char $ac_func (); below.
21951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952 <limits.h> exists even on freestanding compilers. */
21953
21954 #ifdef __STDC__
21955 # include <limits.h>
21956 #else
21957 # include <assert.h>
21958 #endif
21959
21960 #undef $ac_func
21961
21962 /* Override any gcc2 internal prototype to avoid an error. */
21963 #ifdef __cplusplus
21964 extern "C"
21965 {
21966 #endif
21967 /* We use char because int might match the return type of a gcc2
21968 builtin and then its argument prototype would still apply. */
21969 char $ac_func ();
21970 /* The GNU C library defines this for functions which it implements
21971 to always fail with ENOSYS. Some functions are actually named
21972 something starting with __ and the normal name is an alias. */
21973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21974 choke me
21975 #else
21976 char (*f) () = $ac_func;
21977 #endif
21978 #ifdef __cplusplus
21979 }
21980 #endif
21981
21982 int
21983 main ()
21984 {
21985 return f != $ac_func;
21986 ;
21987 return 0;
21988 }
21989 _ACEOF
21990 rm -f conftest.$ac_objext conftest$ac_exeext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21992 (eval $ac_link) 2>conftest.er1
21993 ac_status=$?
21994 grep -v '^ *+' conftest.er1 >conftest.err
21995 rm -f conftest.er1
21996 cat conftest.err >&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } &&
21999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22002 ac_status=$?
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; } &&
22005 { ac_try='test -s conftest$ac_exeext'
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22008 ac_status=$?
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22011 eval "$as_ac_var=yes"
22012 else
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016 eval "$as_ac_var=no"
22017 fi
22018 rm -f conftest.err conftest.$ac_objext \
22019 conftest$ac_exeext conftest.$ac_ext
22020 fi
22021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22023 if test `eval echo '${'$as_ac_var'}'` = yes; then
22024
22025 cat >>confdefs.h <<_ACEOF
22026 #define CRAY_STACKSEG_END $ac_func
22027 _ACEOF
22028
22029 break
22030 fi
22031
22032 done
22033 fi
22034
22035 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22036 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22037 if test "${ac_cv_c_stack_direction+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 else
22040 if test "$cross_compiling" = yes; then
22041 ac_cv_c_stack_direction=0
22042 else
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 int
22050 find_stack_direction ()
22051 {
22052 static char *addr = 0;
22053 auto char dummy;
22054 if (addr == 0)
22055 {
22056 addr = &dummy;
22057 return find_stack_direction ();
22058 }
22059 else
22060 return (&dummy > addr) ? 1 : -1;
22061 }
22062
22063 int
22064 main ()
22065 {
22066 exit (find_stack_direction () < 0);
22067 }
22068 _ACEOF
22069 rm -f conftest$ac_exeext
22070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22071 (eval $ac_link) 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ac_cv_c_stack_direction=1
22081 else
22082 echo "$as_me: program exited with status $ac_status" >&5
22083 echo "$as_me: failed program was:" >&5
22084 sed 's/^/| /' conftest.$ac_ext >&5
22085
22086 ( exit $ac_status )
22087 ac_cv_c_stack_direction=-1
22088 fi
22089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22090 fi
22091 fi
22092 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22093 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22094
22095 cat >>confdefs.h <<_ACEOF
22096 #define STACK_DIRECTION $ac_cv_c_stack_direction
22097 _ACEOF
22098
22099
22100 fi
22101
22102
22103
22104 for ac_header in stdlib.h unistd.h
22105 do
22106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22108 echo "$as_me:$LINENO: checking for $ac_header" >&5
22109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 fi
22113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22115 else
22116 # Is the header compilable?
22117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22119 cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h. */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h. */
22125 $ac_includes_default
22126 #include <$ac_header>
22127 _ACEOF
22128 rm -f conftest.$ac_objext
22129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22130 (eval $ac_compile) 2>conftest.er1
22131 ac_status=$?
22132 grep -v '^ *+' conftest.er1 >conftest.err
22133 rm -f conftest.er1
22134 cat conftest.err >&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } &&
22137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139 (eval $ac_try) 2>&5
22140 ac_status=$?
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); }; } &&
22143 { ac_try='test -s conftest.$ac_objext'
22144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145 (eval $ac_try) 2>&5
22146 ac_status=$?
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; }; then
22149 ac_header_compiler=yes
22150 else
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22153
22154 ac_header_compiler=no
22155 fi
22156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22158 echo "${ECHO_T}$ac_header_compiler" >&6
22159
22160 # Is the header present?
22161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22163 cat >conftest.$ac_ext <<_ACEOF
22164 /* confdefs.h. */
22165 _ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22169 #include <$ac_header>
22170 _ACEOF
22171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22173 ac_status=$?
22174 grep -v '^ *+' conftest.er1 >conftest.err
22175 rm -f conftest.er1
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } >/dev/null; then
22179 if test -s conftest.err; then
22180 ac_cpp_err=$ac_c_preproc_warn_flag
22181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22182 else
22183 ac_cpp_err=
22184 fi
22185 else
22186 ac_cpp_err=yes
22187 fi
22188 if test -z "$ac_cpp_err"; then
22189 ac_header_preproc=yes
22190 else
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22193
22194 ac_header_preproc=no
22195 fi
22196 rm -f conftest.err conftest.$ac_ext
22197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22198 echo "${ECHO_T}$ac_header_preproc" >&6
22199
22200 # So? What about this header?
22201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22202 yes:no: )
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22207 ac_header_preproc=yes
22208 ;;
22209 no:yes:* )
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22222 (
22223 cat <<\_ASBOX
22224 ## ------------------------------------------ ##
22225 ## Report this to the AC_PACKAGE_NAME lists. ##
22226 ## ------------------------------------------ ##
22227 _ASBOX
22228 ) |
22229 sed "s/^/$as_me: WARNING: /" >&2
22230 ;;
22231 esac
22232 echo "$as_me:$LINENO: checking for $ac_header" >&5
22233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 else
22237 eval "$as_ac_Header=\$ac_header_preproc"
22238 fi
22239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22241
22242 fi
22243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22244 cat >>confdefs.h <<_ACEOF
22245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22246 _ACEOF
22247
22248 fi
22249
22250 done
22251
22252
22253 for ac_func in getpagesize
22254 do
22255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22256 echo "$as_me:$LINENO: checking for $ac_func" >&5
22257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22258 if eval "test \"\${$as_ac_var+set}\" = set"; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 else
22261 cat >conftest.$ac_ext <<_ACEOF
22262 /* confdefs.h. */
22263 _ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22269 #define $ac_func innocuous_$ac_func
22270
22271 /* System header to define __stub macros and hopefully few prototypes,
22272 which can conflict with char $ac_func (); below.
22273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22274 <limits.h> exists even on freestanding compilers. */
22275
22276 #ifdef __STDC__
22277 # include <limits.h>
22278 #else
22279 # include <assert.h>
22280 #endif
22281
22282 #undef $ac_func
22283
22284 /* Override any gcc2 internal prototype to avoid an error. */
22285 #ifdef __cplusplus
22286 extern "C"
22287 {
22288 #endif
22289 /* We use char because int might match the return type of a gcc2
22290 builtin and then its argument prototype would still apply. */
22291 char $ac_func ();
22292 /* The GNU C library defines this for functions which it implements
22293 to always fail with ENOSYS. Some functions are actually named
22294 something starting with __ and the normal name is an alias. */
22295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22296 choke me
22297 #else
22298 char (*f) () = $ac_func;
22299 #endif
22300 #ifdef __cplusplus
22301 }
22302 #endif
22303
22304 int
22305 main ()
22306 {
22307 return f != $ac_func;
22308 ;
22309 return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest.$ac_objext conftest$ac_exeext
22313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22314 (eval $ac_link) 2>conftest.er1
22315 ac_status=$?
22316 grep -v '^ *+' conftest.er1 >conftest.err
22317 rm -f conftest.er1
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } &&
22321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; } &&
22327 { ac_try='test -s conftest$ac_exeext'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
22333 eval "$as_ac_var=yes"
22334 else
22335 echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22337
22338 eval "$as_ac_var=no"
22339 fi
22340 rm -f conftest.err conftest.$ac_objext \
22341 conftest$ac_exeext conftest.$ac_ext
22342 fi
22343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22345 if test `eval echo '${'$as_ac_var'}'` = yes; then
22346 cat >>confdefs.h <<_ACEOF
22347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22348 _ACEOF
22349
22350 fi
22351 done
22352
22353 echo "$as_me:$LINENO: checking for working mmap" >&5
22354 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22355 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 else
22358 if test "$cross_compiling" = yes; then
22359 ac_cv_func_mmap_fixed_mapped=no
22360 else
22361 cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h. */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22367 $ac_includes_default
22368 /* malloc might have been renamed as rpl_malloc. */
22369 #undef malloc
22370
22371 /* Thanks to Mike Haertel and Jim Avera for this test.
22372 Here is a matrix of mmap possibilities:
22373 mmap private not fixed
22374 mmap private fixed at somewhere currently unmapped
22375 mmap private fixed at somewhere already mapped
22376 mmap shared not fixed
22377 mmap shared fixed at somewhere currently unmapped
22378 mmap shared fixed at somewhere already mapped
22379 For private mappings, we should verify that changes cannot be read()
22380 back from the file, nor mmap's back from the file at a different
22381 address. (There have been systems where private was not correctly
22382 implemented like the infamous i386 svr4.0, and systems where the
22383 VM page cache was not coherent with the file system buffer cache
22384 like early versions of FreeBSD and possibly contemporary NetBSD.)
22385 For shared mappings, we should conversely verify that changes get
22386 propagated back to all the places they're supposed to be.
22387
22388 Grep wants private fixed already mapped.
22389 The main things grep needs to know about mmap are:
22390 * does it exist and is it safe to write into the mmap'd area
22391 * how to use it (BSD variants) */
22392
22393 #include <fcntl.h>
22394 #include <sys/mman.h>
22395
22396 #if !STDC_HEADERS && !HAVE_STDLIB_H
22397 char *malloc ();
22398 #endif
22399
22400 /* This mess was copied from the GNU getpagesize.h. */
22401 #if !HAVE_GETPAGESIZE
22402 /* Assume that all systems that can run configure have sys/param.h. */
22403 # if !HAVE_SYS_PARAM_H
22404 # define HAVE_SYS_PARAM_H 1
22405 # endif
22406
22407 # ifdef _SC_PAGESIZE
22408 # define getpagesize() sysconf(_SC_PAGESIZE)
22409 # else /* no _SC_PAGESIZE */
22410 # if HAVE_SYS_PARAM_H
22411 # include <sys/param.h>
22412 # ifdef EXEC_PAGESIZE
22413 # define getpagesize() EXEC_PAGESIZE
22414 # else /* no EXEC_PAGESIZE */
22415 # ifdef NBPG
22416 # define getpagesize() NBPG * CLSIZE
22417 # ifndef CLSIZE
22418 # define CLSIZE 1
22419 # endif /* no CLSIZE */
22420 # else /* no NBPG */
22421 # ifdef NBPC
22422 # define getpagesize() NBPC
22423 # else /* no NBPC */
22424 # ifdef PAGESIZE
22425 # define getpagesize() PAGESIZE
22426 # endif /* PAGESIZE */
22427 # endif /* no NBPC */
22428 # endif /* no NBPG */
22429 # endif /* no EXEC_PAGESIZE */
22430 # else /* no HAVE_SYS_PARAM_H */
22431 # define getpagesize() 8192 /* punt totally */
22432 # endif /* no HAVE_SYS_PARAM_H */
22433 # endif /* no _SC_PAGESIZE */
22434
22435 #endif /* no HAVE_GETPAGESIZE */
22436
22437 int
22438 main ()
22439 {
22440 char *data, *data2, *data3;
22441 int i, pagesize;
22442 int fd;
22443
22444 pagesize = getpagesize ();
22445
22446 /* First, make a file with some known garbage in it. */
22447 data = (char *) malloc (pagesize);
22448 if (!data)
22449 exit (1);
22450 for (i = 0; i < pagesize; ++i)
22451 *(data + i) = rand ();
22452 umask (0);
22453 fd = creat ("conftest.mmap", 0600);
22454 if (fd < 0)
22455 exit (1);
22456 if (write (fd, data, pagesize) != pagesize)
22457 exit (1);
22458 close (fd);
22459
22460 /* Next, try to mmap the file at a fixed address which already has
22461 something else allocated at it. If we can, also make sure that
22462 we see the same garbage. */
22463 fd = open ("conftest.mmap", O_RDWR);
22464 if (fd < 0)
22465 exit (1);
22466 data2 = (char *) malloc (2 * pagesize);
22467 if (!data2)
22468 exit (1);
22469 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22470 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22471 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22472 exit (1);
22473 for (i = 0; i < pagesize; ++i)
22474 if (*(data + i) != *(data2 + i))
22475 exit (1);
22476
22477 /* Finally, make sure that changes to the mapped area do not
22478 percolate back to the file as seen by read(). (This is a bug on
22479 some variants of i386 svr4.0.) */
22480 for (i = 0; i < pagesize; ++i)
22481 *(data2 + i) = *(data2 + i) + 1;
22482 data3 = (char *) malloc (pagesize);
22483 if (!data3)
22484 exit (1);
22485 if (read (fd, data3, pagesize) != pagesize)
22486 exit (1);
22487 for (i = 0; i < pagesize; ++i)
22488 if (*(data + i) != *(data3 + i))
22489 exit (1);
22490 close (fd);
22491 exit (0);
22492 }
22493 _ACEOF
22494 rm -f conftest$ac_exeext
22495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22496 (eval $ac_link) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; }; then
22505 ac_cv_func_mmap_fixed_mapped=yes
22506 else
22507 echo "$as_me: program exited with status $ac_status" >&5
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22510
22511 ( exit $ac_status )
22512 ac_cv_func_mmap_fixed_mapped=no
22513 fi
22514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22515 fi
22516 fi
22517 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22518 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22519 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22520
22521 cat >>confdefs.h <<\_ACEOF
22522 #define HAVE_MMAP 1
22523 _ACEOF
22524
22525 fi
22526 rm -f conftest.mmap
22527
22528
22529 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
22530 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
22531 if test "${ac_cv_gnu_library_2_1+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22533 else
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540
22541 #include <features.h>
22542 #ifdef __GNU_LIBRARY__
22543 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
22544 Lucky GNU user
22545 #endif
22546 #endif
22547
22548 _ACEOF
22549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22550 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
22551 ac_cv_gnu_library_2_1=yes
22552 else
22553 ac_cv_gnu_library_2_1=no
22554 fi
22555 rm -f conftest*
22556
22557
22558
22559 fi
22560 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
22561 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
22562
22563 GLIBC21="$ac_cv_gnu_library_2_1"
22564
22565
22566
22567
22568 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
22569 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
22570 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 else
22573
22574 if test "$cross_compiling" = yes; then
22575
22576 # Guess based on the CPU.
22577 case "$host_cpu" in
22578 alpha* | i3456786 | m68k | s390*)
22579 gt_cv_int_divbyzero_sigfpe="guessing yes";;
22580 *)
22581 gt_cv_int_divbyzero_sigfpe="guessing no";;
22582 esac
22583
22584 else
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h. */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591
22592 #include <stdlib.h>
22593 #include <signal.h>
22594
22595 static void
22596 #ifdef __cplusplus
22597 sigfpe_handler (int sig)
22598 #else
22599 sigfpe_handler (sig) int sig;
22600 #endif
22601 {
22602 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
22603 exit (sig != SIGFPE);
22604 }
22605
22606 int x = 1;
22607 int y = 0;
22608 int z;
22609 int nan;
22610
22611 int main ()
22612 {
22613 signal (SIGFPE, sigfpe_handler);
22614 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
22615 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
22616 signal (SIGTRAP, sigfpe_handler);
22617 #endif
22618 /* Linux/SPARC yields signal SIGILL. */
22619 #if defined (__sparc__) && defined (__linux__)
22620 signal (SIGILL, sigfpe_handler);
22621 #endif
22622
22623 z = x / y;
22624 nan = y / y;
22625 exit (1);
22626 }
22627
22628 _ACEOF
22629 rm -f conftest$ac_exeext
22630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22631 (eval $ac_link) 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; }; then
22640 gt_cv_int_divbyzero_sigfpe=yes
22641 else
22642 echo "$as_me: program exited with status $ac_status" >&5
22643 echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22645
22646 ( exit $ac_status )
22647 gt_cv_int_divbyzero_sigfpe=no
22648 fi
22649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22650 fi
22651
22652 fi
22653 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
22654 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
22655 case "$gt_cv_int_divbyzero_sigfpe" in
22656 *yes) value=1;;
22657 *) value=0;;
22658 esac
22659
22660 cat >>confdefs.h <<_ACEOF
22661 #define INTDIV0_RAISES_SIGFPE $value
22662 _ACEOF
22663
22664
22665
22666 echo "$as_me:$LINENO: checking for unsigned long long" >&5
22667 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
22668 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22670 else
22671 cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h. */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 unsigned long long ull = 1ULL; int i = 63;
22678 int
22679 main ()
22680 {
22681 unsigned long long ullmax = (unsigned long long) -1;
22682 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
22683 ;
22684 return 0;
22685 }
22686 _ACEOF
22687 rm -f conftest.$ac_objext conftest$ac_exeext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22689 (eval $ac_link) 2>conftest.er1
22690 ac_status=$?
22691 grep -v '^ *+' conftest.er1 >conftest.err
22692 rm -f conftest.er1
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } &&
22696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698 (eval $ac_try) 2>&5
22699 ac_status=$?
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; } &&
22702 { ac_try='test -s conftest$ac_exeext'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22705 ac_status=$?
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; }; then
22708 ac_cv_type_unsigned_long_long=yes
22709 else
22710 echo "$as_me: failed program was:" >&5
22711 sed 's/^/| /' conftest.$ac_ext >&5
22712
22713 ac_cv_type_unsigned_long_long=no
22714 fi
22715 rm -f conftest.err conftest.$ac_objext \
22716 conftest$ac_exeext conftest.$ac_ext
22717 fi
22718 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
22719 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
22720 if test $ac_cv_type_unsigned_long_long = yes; then
22721
22722 cat >>confdefs.h <<\_ACEOF
22723 #define HAVE_UNSIGNED_LONG_LONG 1
22724 _ACEOF
22725
22726 fi
22727
22728
22729
22730
22731 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
22732
22733 test $ac_cv_type_unsigned_long_long = yes \
22734 && ac_type='unsigned long long' \
22735 || ac_type='unsigned long'
22736
22737 cat >>confdefs.h <<_ACEOF
22738 #define uintmax_t $ac_type
22739 _ACEOF
22740
22741 else
22742
22743 cat >>confdefs.h <<\_ACEOF
22744 #define HAVE_UINTMAX_T 1
22745 _ACEOF
22746
22747 fi
22748
22749
22750 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22751 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22752 if test "${gt_cv_header_inttypes_h+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755
22756 cat >conftest.$ac_ext <<_ACEOF
22757 /* confdefs.h. */
22758 _ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22762 #include <sys/types.h>
22763 #include <inttypes.h>
22764 int
22765 main ()
22766 {
22767
22768 ;
22769 return 0;
22770 }
22771 _ACEOF
22772 rm -f conftest.$ac_objext
22773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22774 (eval $ac_compile) 2>conftest.er1
22775 ac_status=$?
22776 grep -v '^ *+' conftest.er1 >conftest.err
22777 rm -f conftest.er1
22778 cat conftest.err >&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } &&
22781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; } &&
22787 { ac_try='test -s conftest.$ac_objext'
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; }; then
22793 gt_cv_header_inttypes_h=yes
22794 else
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798 gt_cv_header_inttypes_h=no
22799 fi
22800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22801
22802 fi
22803 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
22804 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
22805 if test $gt_cv_header_inttypes_h = yes; then
22806
22807 cat >>confdefs.h <<_ACEOF
22808 #define HAVE_INTTYPES_H 1
22809 _ACEOF
22810
22811 fi
22812
22813
22814
22815 if test $gt_cv_header_inttypes_h = yes; then
22816 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
22817 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
22818 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821
22822 cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h. */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 #include <inttypes.h>
22829 #ifdef PRId32
22830 char *p = PRId32;
22831 #endif
22832
22833 int
22834 main ()
22835 {
22836
22837 ;
22838 return 0;
22839 }
22840 _ACEOF
22841 rm -f conftest.$ac_objext
22842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22843 (eval $ac_compile) 2>conftest.er1
22844 ac_status=$?
22845 grep -v '^ *+' conftest.er1 >conftest.err
22846 rm -f conftest.er1
22847 cat conftest.err >&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } &&
22850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; } &&
22856 { ac_try='test -s conftest.$ac_objext'
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; }; then
22862 gt_cv_inttypes_pri_broken=no
22863 else
22864 echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22866
22867 gt_cv_inttypes_pri_broken=yes
22868 fi
22869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22870
22871 fi
22872 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
22873 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
22874 fi
22875 if test "$gt_cv_inttypes_pri_broken" = yes; then
22876
22877 cat >>confdefs.h <<_ACEOF
22878 #define PRI_MACROS_BROKEN 1
22879 _ACEOF
22880
22881 fi
22882
22883
22884
22885 for ac_header in stdint.h
22886 do
22887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22889 echo "$as_me:$LINENO: checking for $ac_header" >&5
22890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22893 fi
22894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22896 else
22897 # Is the header compilable?
22898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22900 cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h. */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 $ac_includes_default
22907 #include <$ac_header>
22908 _ACEOF
22909 rm -f conftest.$ac_objext
22910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22911 (eval $ac_compile) 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } &&
22918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920 (eval $ac_try) 2>&5
22921 ac_status=$?
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; } &&
22924 { ac_try='test -s conftest.$ac_objext'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; }; then
22930 ac_header_compiler=yes
22931 else
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935 ac_header_compiler=no
22936 fi
22937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22939 echo "${ECHO_T}$ac_header_compiler" >&6
22940
22941 # Is the header present?
22942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22944 cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h. */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 #include <$ac_header>
22951 _ACEOF
22952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22954 ac_status=$?
22955 grep -v '^ *+' conftest.er1 >conftest.err
22956 rm -f conftest.er1
22957 cat conftest.err >&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } >/dev/null; then
22960 if test -s conftest.err; then
22961 ac_cpp_err=$ac_c_preproc_warn_flag
22962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22963 else
22964 ac_cpp_err=
22965 fi
22966 else
22967 ac_cpp_err=yes
22968 fi
22969 if test -z "$ac_cpp_err"; then
22970 ac_header_preproc=yes
22971 else
22972 echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975 ac_header_preproc=no
22976 fi
22977 rm -f conftest.err conftest.$ac_ext
22978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22979 echo "${ECHO_T}$ac_header_preproc" >&6
22980
22981 # So? What about this header?
22982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22983 yes:no: )
22984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22988 ac_header_preproc=yes
22989 ;;
22990 no:yes:* )
22991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23003 (
23004 cat <<\_ASBOX
23005 ## ------------------------------------------ ##
23006 ## Report this to the AC_PACKAGE_NAME lists. ##
23007 ## ------------------------------------------ ##
23008 _ASBOX
23009 ) |
23010 sed "s/^/$as_me: WARNING: /" >&2
23011 ;;
23012 esac
23013 echo "$as_me:$LINENO: checking for $ac_header" >&5
23014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 else
23018 eval "$as_ac_Header=\$ac_header_preproc"
23019 fi
23020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23022
23023 fi
23024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23025 cat >>confdefs.h <<_ACEOF
23026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23027 _ACEOF
23028
23029 fi
23030
23031 done
23032
23033 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
23034 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
23035 result=
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h. */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042
23043 #include <limits.h>
23044 #if HAVE_STDINT_H
23045 #include <stdint.h>
23046 #endif
23047 #ifdef SIZE_MAX
23048 Found it
23049 #endif
23050
23051 _ACEOF
23052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23053 $EGREP "Found it" >/dev/null 2>&1; then
23054 result=yes
23055 fi
23056 rm -f conftest*
23057
23058 if test -z "$result"; then
23059 if test "$cross_compiling" = yes; then
23060 # Depending upon the size, compute the lo and hi bounds.
23061 cat >conftest.$ac_ext <<_ACEOF
23062 /* confdefs.h. */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23067 #include <stddef.h>
23068 int
23069 main ()
23070 {
23071 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
23072 test_array [0] = 0
23073
23074 ;
23075 return 0;
23076 }
23077 _ACEOF
23078 rm -f conftest.$ac_objext
23079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23080 (eval $ac_compile) 2>conftest.er1
23081 ac_status=$?
23082 grep -v '^ *+' conftest.er1 >conftest.err
23083 rm -f conftest.er1
23084 cat conftest.err >&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } &&
23087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; } &&
23093 { ac_try='test -s conftest.$ac_objext'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 ac_lo=0 ac_mid=0
23100 while :; do
23101 cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h. */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 #include <stddef.h>
23108 int
23109 main ()
23110 {
23111 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
23112 test_array [0] = 0
23113
23114 ;
23115 return 0;
23116 }
23117 _ACEOF
23118 rm -f conftest.$ac_objext
23119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23120 (eval $ac_compile) 2>conftest.er1
23121 ac_status=$?
23122 grep -v '^ *+' conftest.er1 >conftest.err
23123 rm -f conftest.er1
23124 cat conftest.err >&5
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); } &&
23127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; } &&
23133 { ac_try='test -s conftest.$ac_objext'
23134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23135 (eval $ac_try) 2>&5
23136 ac_status=$?
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); }; }; then
23139 ac_hi=$ac_mid; break
23140 else
23141 echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23143
23144 ac_lo=`expr $ac_mid + 1`
23145 if test $ac_lo -le $ac_mid; then
23146 ac_lo= ac_hi=
23147 break
23148 fi
23149 ac_mid=`expr 2 '*' $ac_mid + 1`
23150 fi
23151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23152 done
23153 else
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23156
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h. */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 #include <stddef.h>
23164 int
23165 main ()
23166 {
23167 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
23168 test_array [0] = 0
23169
23170 ;
23171 return 0;
23172 }
23173 _ACEOF
23174 rm -f conftest.$ac_objext
23175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23176 (eval $ac_compile) 2>conftest.er1
23177 ac_status=$?
23178 grep -v '^ *+' conftest.er1 >conftest.err
23179 rm -f conftest.er1
23180 cat conftest.err >&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } &&
23183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185 (eval $ac_try) 2>&5
23186 ac_status=$?
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; } &&
23189 { ac_try='test -s conftest.$ac_objext'
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; }; then
23195 ac_hi=-1 ac_mid=-1
23196 while :; do
23197 cat >conftest.$ac_ext <<_ACEOF
23198 /* confdefs.h. */
23199 _ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 #include <stddef.h>
23204 int
23205 main ()
23206 {
23207 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
23208 test_array [0] = 0
23209
23210 ;
23211 return 0;
23212 }
23213 _ACEOF
23214 rm -f conftest.$ac_objext
23215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23216 (eval $ac_compile) 2>conftest.er1
23217 ac_status=$?
23218 grep -v '^ *+' conftest.er1 >conftest.err
23219 rm -f conftest.er1
23220 cat conftest.err >&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } &&
23223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; } &&
23229 { ac_try='test -s conftest.$ac_objext'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; }; then
23235 ac_lo=$ac_mid; break
23236 else
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23239
23240 ac_hi=`expr '(' $ac_mid ')' - 1`
23241 if test $ac_mid -le $ac_hi; then
23242 ac_lo= ac_hi=
23243 break
23244 fi
23245 ac_mid=`expr 2 '*' $ac_mid`
23246 fi
23247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23248 done
23249 else
23250 echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23252
23253 ac_lo= ac_hi=
23254 fi
23255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23256 fi
23257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23258 # Binary search between lo and hi bounds.
23259 while test "x$ac_lo" != "x$ac_hi"; do
23260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23261 cat >conftest.$ac_ext <<_ACEOF
23262 /* confdefs.h. */
23263 _ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h. */
23267 #include <stddef.h>
23268 int
23269 main ()
23270 {
23271 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
23272 test_array [0] = 0
23273
23274 ;
23275 return 0;
23276 }
23277 _ACEOF
23278 rm -f conftest.$ac_objext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23280 (eval $ac_compile) 2>conftest.er1
23281 ac_status=$?
23282 grep -v '^ *+' conftest.er1 >conftest.err
23283 rm -f conftest.er1
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
23287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289 (eval $ac_try) 2>&5
23290 ac_status=$?
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; } &&
23293 { ac_try='test -s conftest.$ac_objext'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23296 ac_status=$?
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; }; then
23299 ac_hi=$ac_mid
23300 else
23301 echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23303
23304 ac_lo=`expr '(' $ac_mid ')' + 1`
23305 fi
23306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23307 done
23308 case $ac_lo in
23309 ?*) res_hi=$ac_lo;;
23310 '') result=? ;;
23311 esac
23312 else
23313 if test "$cross_compiling" = yes; then
23314 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23315 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23316 { (exit 1); exit 1; }; }
23317 else
23318 cat >conftest.$ac_ext <<_ACEOF
23319 /* confdefs.h. */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 #include <stddef.h>
23325 long longval () { return ~(size_t)0 / 10; }
23326 unsigned long ulongval () { return ~(size_t)0 / 10; }
23327 #include <stdio.h>
23328 #include <stdlib.h>
23329 int
23330 main ()
23331 {
23332
23333 FILE *f = fopen ("conftest.val", "w");
23334 if (! f)
23335 exit (1);
23336 if ((~(size_t)0 / 10) < 0)
23337 {
23338 long i = longval ();
23339 if (i != (~(size_t)0 / 10))
23340 exit (1);
23341 fprintf (f, "%ld\n", i);
23342 }
23343 else
23344 {
23345 unsigned long i = ulongval ();
23346 if (i != (~(size_t)0 / 10))
23347 exit (1);
23348 fprintf (f, "%lu\n", i);
23349 }
23350 exit (ferror (f) || fclose (f) != 0);
23351
23352 ;
23353 return 0;
23354 }
23355 _ACEOF
23356 rm -f conftest$ac_exeext
23357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23358 (eval $ac_link) 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363 (eval $ac_try) 2>&5
23364 ac_status=$?
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); }; }; then
23367 res_hi=`cat conftest.val`
23368 else
23369 echo "$as_me: program exited with status $ac_status" >&5
23370 echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23372
23373 ( exit $ac_status )
23374 result=?
23375 fi
23376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23377 fi
23378 fi
23379 rm -f conftest.val
23380 if test "$cross_compiling" = yes; then
23381 # Depending upon the size, compute the lo and hi bounds.
23382 cat >conftest.$ac_ext <<_ACEOF
23383 /* confdefs.h. */
23384 _ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23388 #include <stddef.h>
23389 int
23390 main ()
23391 {
23392 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
23393 test_array [0] = 0
23394
23395 ;
23396 return 0;
23397 }
23398 _ACEOF
23399 rm -f conftest.$ac_objext
23400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23401 (eval $ac_compile) 2>conftest.er1
23402 ac_status=$?
23403 grep -v '^ *+' conftest.er1 >conftest.err
23404 rm -f conftest.er1
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } &&
23408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; } &&
23414 { ac_try='test -s conftest.$ac_objext'
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 ac_lo=0 ac_mid=0
23421 while :; do
23422 cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h. */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 #include <stddef.h>
23429 int
23430 main ()
23431 {
23432 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
23433 test_array [0] = 0
23434
23435 ;
23436 return 0;
23437 }
23438 _ACEOF
23439 rm -f conftest.$ac_objext
23440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23441 (eval $ac_compile) 2>conftest.er1
23442 ac_status=$?
23443 grep -v '^ *+' conftest.er1 >conftest.err
23444 rm -f conftest.er1
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
23448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23451 ac_status=$?
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; } &&
23454 { ac_try='test -s conftest.$ac_objext'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23457 ac_status=$?
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; }; then
23460 ac_hi=$ac_mid; break
23461 else
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23464
23465 ac_lo=`expr $ac_mid + 1`
23466 if test $ac_lo -le $ac_mid; then
23467 ac_lo= ac_hi=
23468 break
23469 fi
23470 ac_mid=`expr 2 '*' $ac_mid + 1`
23471 fi
23472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23473 done
23474 else
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23477
23478 cat >conftest.$ac_ext <<_ACEOF
23479 /* confdefs.h. */
23480 _ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h. */
23484 #include <stddef.h>
23485 int
23486 main ()
23487 {
23488 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
23489 test_array [0] = 0
23490
23491 ;
23492 return 0;
23493 }
23494 _ACEOF
23495 rm -f conftest.$ac_objext
23496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23497 (eval $ac_compile) 2>conftest.er1
23498 ac_status=$?
23499 grep -v '^ *+' conftest.er1 >conftest.err
23500 rm -f conftest.er1
23501 cat conftest.err >&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } &&
23504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest.$ac_objext'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 ac_hi=-1 ac_mid=-1
23517 while :; do
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h. */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 #include <stddef.h>
23525 int
23526 main ()
23527 {
23528 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
23529 test_array [0] = 0
23530
23531 ;
23532 return 0;
23533 }
23534 _ACEOF
23535 rm -f conftest.$ac_objext
23536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23537 (eval $ac_compile) 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } &&
23544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; } &&
23550 { ac_try='test -s conftest.$ac_objext'
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 ac_lo=$ac_mid; break
23557 else
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23560
23561 ac_hi=`expr '(' $ac_mid ')' - 1`
23562 if test $ac_mid -le $ac_hi; then
23563 ac_lo= ac_hi=
23564 break
23565 fi
23566 ac_mid=`expr 2 '*' $ac_mid`
23567 fi
23568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23569 done
23570 else
23571 echo "$as_me: failed program was:" >&5
23572 sed 's/^/| /' conftest.$ac_ext >&5
23573
23574 ac_lo= ac_hi=
23575 fi
23576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23577 fi
23578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23579 # Binary search between lo and hi bounds.
23580 while test "x$ac_lo" != "x$ac_hi"; do
23581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23582 cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h. */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23588 #include <stddef.h>
23589 int
23590 main ()
23591 {
23592 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
23593 test_array [0] = 0
23594
23595 ;
23596 return 0;
23597 }
23598 _ACEOF
23599 rm -f conftest.$ac_objext
23600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23601 (eval $ac_compile) 2>conftest.er1
23602 ac_status=$?
23603 grep -v '^ *+' conftest.er1 >conftest.err
23604 rm -f conftest.er1
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } &&
23608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610 (eval $ac_try) 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; } &&
23614 { ac_try='test -s conftest.$ac_objext'
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; }; then
23620 ac_hi=$ac_mid
23621 else
23622 echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23624
23625 ac_lo=`expr '(' $ac_mid ')' + 1`
23626 fi
23627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23628 done
23629 case $ac_lo in
23630 ?*) res_lo=$ac_lo;;
23631 '') result=? ;;
23632 esac
23633 else
23634 if test "$cross_compiling" = yes; then
23635 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23636 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23637 { (exit 1); exit 1; }; }
23638 else
23639 cat >conftest.$ac_ext <<_ACEOF
23640 /* confdefs.h. */
23641 _ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h. */
23645 #include <stddef.h>
23646 long longval () { return ~(size_t)0 % 10; }
23647 unsigned long ulongval () { return ~(size_t)0 % 10; }
23648 #include <stdio.h>
23649 #include <stdlib.h>
23650 int
23651 main ()
23652 {
23653
23654 FILE *f = fopen ("conftest.val", "w");
23655 if (! f)
23656 exit (1);
23657 if ((~(size_t)0 % 10) < 0)
23658 {
23659 long i = longval ();
23660 if (i != (~(size_t)0 % 10))
23661 exit (1);
23662 fprintf (f, "%ld\n", i);
23663 }
23664 else
23665 {
23666 unsigned long i = ulongval ();
23667 if (i != (~(size_t)0 % 10))
23668 exit (1);
23669 fprintf (f, "%lu\n", i);
23670 }
23671 exit (ferror (f) || fclose (f) != 0);
23672
23673 ;
23674 return 0;
23675 }
23676 _ACEOF
23677 rm -f conftest$ac_exeext
23678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23679 (eval $ac_link) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684 (eval $ac_try) 2>&5
23685 ac_status=$?
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); }; }; then
23688 res_lo=`cat conftest.val`
23689 else
23690 echo "$as_me: program exited with status $ac_status" >&5
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694 ( exit $ac_status )
23695 result=?
23696 fi
23697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23698 fi
23699 fi
23700 rm -f conftest.val
23701 if test "$cross_compiling" = yes; then
23702 # Depending upon the size, compute the lo and hi bounds.
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h. */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 #include <stddef.h>
23710 int
23711 main ()
23712 {
23713 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
23714 test_array [0] = 0
23715
23716 ;
23717 return 0;
23718 }
23719 _ACEOF
23720 rm -f conftest.$ac_objext
23721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23722 (eval $ac_compile) 2>conftest.er1
23723 ac_status=$?
23724 grep -v '^ *+' conftest.er1 >conftest.err
23725 rm -f conftest.er1
23726 cat conftest.err >&5
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); } &&
23729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23732 ac_status=$?
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; } &&
23735 { ac_try='test -s conftest.$ac_objext'
23736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737 (eval $ac_try) 2>&5
23738 ac_status=$?
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; }; then
23741 ac_lo=0 ac_mid=0
23742 while :; do
23743 cat >conftest.$ac_ext <<_ACEOF
23744 /* confdefs.h. */
23745 _ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h. */
23749 #include <stddef.h>
23750 int
23751 main ()
23752 {
23753 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
23754 test_array [0] = 0
23755
23756 ;
23757 return 0;
23758 }
23759 _ACEOF
23760 rm -f conftest.$ac_objext
23761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23762 (eval $ac_compile) 2>conftest.er1
23763 ac_status=$?
23764 grep -v '^ *+' conftest.er1 >conftest.err
23765 rm -f conftest.er1
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } &&
23769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; } &&
23775 { ac_try='test -s conftest.$ac_objext'
23776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23777 (eval $ac_try) 2>&5
23778 ac_status=$?
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; }; then
23781 ac_hi=$ac_mid; break
23782 else
23783 echo "$as_me: failed program was:" >&5
23784 sed 's/^/| /' conftest.$ac_ext >&5
23785
23786 ac_lo=`expr $ac_mid + 1`
23787 if test $ac_lo -le $ac_mid; then
23788 ac_lo= ac_hi=
23789 break
23790 fi
23791 ac_mid=`expr 2 '*' $ac_mid + 1`
23792 fi
23793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23794 done
23795 else
23796 echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799 cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h. */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805 #include <stddef.h>
23806 int
23807 main ()
23808 {
23809 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
23810 test_array [0] = 0
23811
23812 ;
23813 return 0;
23814 }
23815 _ACEOF
23816 rm -f conftest.$ac_objext
23817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23818 (eval $ac_compile) 2>conftest.er1
23819 ac_status=$?
23820 grep -v '^ *+' conftest.er1 >conftest.err
23821 rm -f conftest.er1
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } &&
23825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23827 (eval $ac_try) 2>&5
23828 ac_status=$?
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); }; } &&
23831 { ac_try='test -s conftest.$ac_objext'
23832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833 (eval $ac_try) 2>&5
23834 ac_status=$?
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; }; then
23837 ac_hi=-1 ac_mid=-1
23838 while :; do
23839 cat >conftest.$ac_ext <<_ACEOF
23840 /* confdefs.h. */
23841 _ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h. */
23845 #include <stddef.h>
23846 int
23847 main ()
23848 {
23849 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
23850 test_array [0] = 0
23851
23852 ;
23853 return 0;
23854 }
23855 _ACEOF
23856 rm -f conftest.$ac_objext
23857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23858 (eval $ac_compile) 2>conftest.er1
23859 ac_status=$?
23860 grep -v '^ *+' conftest.er1 >conftest.err
23861 rm -f conftest.er1
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } &&
23865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23868 ac_status=$?
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; } &&
23871 { ac_try='test -s conftest.$ac_objext'
23872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); }; }; then
23877 ac_lo=$ac_mid; break
23878 else
23879 echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882 ac_hi=`expr '(' $ac_mid ')' - 1`
23883 if test $ac_mid -le $ac_hi; then
23884 ac_lo= ac_hi=
23885 break
23886 fi
23887 ac_mid=`expr 2 '*' $ac_mid`
23888 fi
23889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23890 done
23891 else
23892 echo "$as_me: failed program was:" >&5
23893 sed 's/^/| /' conftest.$ac_ext >&5
23894
23895 ac_lo= ac_hi=
23896 fi
23897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23898 fi
23899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23900 # Binary search between lo and hi bounds.
23901 while test "x$ac_lo" != "x$ac_hi"; do
23902 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23903 cat >conftest.$ac_ext <<_ACEOF
23904 /* confdefs.h. */
23905 _ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h. */
23909 #include <stddef.h>
23910 int
23911 main ()
23912 {
23913 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
23914 test_array [0] = 0
23915
23916 ;
23917 return 0;
23918 }
23919 _ACEOF
23920 rm -f conftest.$ac_objext
23921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23922 (eval $ac_compile) 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
23929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23932 ac_status=$?
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; } &&
23935 { ac_try='test -s conftest.$ac_objext'
23936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937 (eval $ac_try) 2>&5
23938 ac_status=$?
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23941 ac_hi=$ac_mid
23942 else
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946 ac_lo=`expr '(' $ac_mid ')' + 1`
23947 fi
23948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23949 done
23950 case $ac_lo in
23951 ?*) fits_in_uint=$ac_lo;;
23952 '') result=? ;;
23953 esac
23954 else
23955 if test "$cross_compiling" = yes; then
23956 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23957 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23958 { (exit 1); exit 1; }; }
23959 else
23960 cat >conftest.$ac_ext <<_ACEOF
23961 /* confdefs.h. */
23962 _ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h. */
23966 #include <stddef.h>
23967 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
23968 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
23969 #include <stdio.h>
23970 #include <stdlib.h>
23971 int
23972 main ()
23973 {
23974
23975 FILE *f = fopen ("conftest.val", "w");
23976 if (! f)
23977 exit (1);
23978 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
23979 {
23980 long i = longval ();
23981 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
23982 exit (1);
23983 fprintf (f, "%ld\n", i);
23984 }
23985 else
23986 {
23987 unsigned long i = ulongval ();
23988 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
23989 exit (1);
23990 fprintf (f, "%lu\n", i);
23991 }
23992 exit (ferror (f) || fclose (f) != 0);
23993
23994 ;
23995 return 0;
23996 }
23997 _ACEOF
23998 rm -f conftest$ac_exeext
23999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24000 (eval $ac_link) 2>&5
24001 ac_status=$?
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24005 (eval $ac_try) 2>&5
24006 ac_status=$?
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); }; }; then
24009 fits_in_uint=`cat conftest.val`
24010 else
24011 echo "$as_me: program exited with status $ac_status" >&5
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24014
24015 ( exit $ac_status )
24016 result=?
24017 fi
24018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24019 fi
24020 fi
24021 rm -f conftest.val
24022 if test "$fits_in_uint" = 1; then
24023 cat >conftest.$ac_ext <<_ACEOF
24024 /* confdefs.h. */
24025 _ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h. */
24029 #include <stddef.h>
24030 extern size_t foo;
24031 extern unsigned long foo;
24032
24033 int
24034 main ()
24035 {
24036
24037 ;
24038 return 0;
24039 }
24040 _ACEOF
24041 rm -f conftest.$ac_objext
24042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24043 (eval $ac_compile) 2>conftest.er1
24044 ac_status=$?
24045 grep -v '^ *+' conftest.er1 >conftest.err
24046 rm -f conftest.er1
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } &&
24050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24052 (eval $ac_try) 2>&5
24053 ac_status=$?
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); }; } &&
24056 { ac_try='test -s conftest.$ac_objext'
24057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058 (eval $ac_try) 2>&5
24059 ac_status=$?
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; }; then
24062 fits_in_uint=0
24063 else
24064 echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24066
24067 fi
24068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24069 fi
24070 if test -z "$result"; then
24071 if test "$fits_in_uint" = 1; then
24072 result="$res_hi$res_lo"U
24073 else
24074 result="$res_hi$res_lo"UL
24075 fi
24076 else
24077 result='~(size_t)0'
24078 fi
24079 fi
24080 echo "$as_me:$LINENO: result: $result" >&5
24081 echo "${ECHO_T}$result" >&6
24082 if test "$result" != yes; then
24083
24084 cat >>confdefs.h <<_ACEOF
24085 #define SIZE_MAX $result
24086 _ACEOF
24087
24088 fi
24089
24090
24091
24092
24093
24094 for ac_header in stdint.h
24095 do
24096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24098 echo "$as_me:$LINENO: checking for $ac_header" >&5
24099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102 fi
24103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24105 else
24106 # Is the header compilable?
24107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24109 cat >conftest.$ac_ext <<_ACEOF
24110 /* confdefs.h. */
24111 _ACEOF
24112 cat confdefs.h >>conftest.$ac_ext
24113 cat >>conftest.$ac_ext <<_ACEOF
24114 /* end confdefs.h. */
24115 $ac_includes_default
24116 #include <$ac_header>
24117 _ACEOF
24118 rm -f conftest.$ac_objext
24119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24120 (eval $ac_compile) 2>conftest.er1
24121 ac_status=$?
24122 grep -v '^ *+' conftest.er1 >conftest.err
24123 rm -f conftest.er1
24124 cat conftest.err >&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } &&
24127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); }; } &&
24133 { ac_try='test -s conftest.$ac_objext'
24134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; }; then
24139 ac_header_compiler=yes
24140 else
24141 echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144 ac_header_compiler=no
24145 fi
24146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24148 echo "${ECHO_T}$ac_header_compiler" >&6
24149
24150 # Is the header present?
24151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24153 cat >conftest.$ac_ext <<_ACEOF
24154 /* confdefs.h. */
24155 _ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24159 #include <$ac_header>
24160 _ACEOF
24161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24163 ac_status=$?
24164 grep -v '^ *+' conftest.er1 >conftest.err
24165 rm -f conftest.er1
24166 cat conftest.err >&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } >/dev/null; then
24169 if test -s conftest.err; then
24170 ac_cpp_err=$ac_c_preproc_warn_flag
24171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24172 else
24173 ac_cpp_err=
24174 fi
24175 else
24176 ac_cpp_err=yes
24177 fi
24178 if test -z "$ac_cpp_err"; then
24179 ac_header_preproc=yes
24180 else
24181 echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24183
24184 ac_header_preproc=no
24185 fi
24186 rm -f conftest.err conftest.$ac_ext
24187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24188 echo "${ECHO_T}$ac_header_preproc" >&6
24189
24190 # So? What about this header?
24191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24192 yes:no: )
24193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24197 ac_header_preproc=yes
24198 ;;
24199 no:yes:* )
24200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24212 (
24213 cat <<\_ASBOX
24214 ## ------------------------------------------ ##
24215 ## Report this to the AC_PACKAGE_NAME lists. ##
24216 ## ------------------------------------------ ##
24217 _ASBOX
24218 ) |
24219 sed "s/^/$as_me: WARNING: /" >&2
24220 ;;
24221 esac
24222 echo "$as_me:$LINENO: checking for $ac_header" >&5
24223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24226 else
24227 eval "$as_ac_Header=\$ac_header_preproc"
24228 fi
24229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24231
24232 fi
24233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24234 cat >>confdefs.h <<_ACEOF
24235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24236 _ACEOF
24237
24238 fi
24239
24240 done
24241
24242
24243
24244 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24245 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
24246 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24247 echo $ECHO_N "(cached) $ECHO_C" >&6
24248 else
24249 gt_save_CPPFLAGS="$CPPFLAGS"
24250 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24251 gt_save_LIBS="$LIBS"
24252 LIBS="$LIBS -framework CoreFoundation"
24253 cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h. */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h. */
24259 #include <CFPreferences.h>
24260 int
24261 main ()
24262 {
24263 CFPreferencesCopyAppValue(NULL, NULL)
24264 ;
24265 return 0;
24266 }
24267 _ACEOF
24268 rm -f conftest.$ac_objext conftest$ac_exeext
24269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24270 (eval $ac_link) 2>conftest.er1
24271 ac_status=$?
24272 grep -v '^ *+' conftest.er1 >conftest.err
24273 rm -f conftest.er1
24274 cat conftest.err >&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); } &&
24277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24279 (eval $ac_try) 2>&5
24280 ac_status=$?
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); }; } &&
24283 { ac_try='test -s conftest$ac_exeext'
24284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24285 (eval $ac_try) 2>&5
24286 ac_status=$?
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); }; }; then
24289 gt_cv_func_CFPreferencesCopyAppValue=yes
24290 else
24291 echo "$as_me: failed program was:" >&5
24292 sed 's/^/| /' conftest.$ac_ext >&5
24293
24294 gt_cv_func_CFPreferencesCopyAppValue=no
24295 fi
24296 rm -f conftest.err conftest.$ac_objext \
24297 conftest$ac_exeext conftest.$ac_ext
24298 CPPFLAGS="$gt_save_CPPFLAGS"
24299 LIBS="$gt_save_LIBS"
24300 fi
24301 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24302 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
24303 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24304
24305 cat >>confdefs.h <<\_ACEOF
24306 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
24307 _ACEOF
24308
24309 fi
24310 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
24311 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
24312 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
24313 echo $ECHO_N "(cached) $ECHO_C" >&6
24314 else
24315 gt_save_CPPFLAGS="$CPPFLAGS"
24316 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24317 gt_save_LIBS="$LIBS"
24318 LIBS="$LIBS -framework CoreFoundation"
24319 cat >conftest.$ac_ext <<_ACEOF
24320 /* confdefs.h. */
24321 _ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24325 #include <CFLocale.h>
24326 int
24327 main ()
24328 {
24329 CFLocaleCopyCurrent();
24330 ;
24331 return 0;
24332 }
24333 _ACEOF
24334 rm -f conftest.$ac_objext conftest$ac_exeext
24335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24336 (eval $ac_link) 2>conftest.er1
24337 ac_status=$?
24338 grep -v '^ *+' conftest.er1 >conftest.err
24339 rm -f conftest.er1
24340 cat conftest.err >&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } &&
24343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24346 ac_status=$?
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; } &&
24349 { ac_try='test -s conftest$ac_exeext'
24350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24351 (eval $ac_try) 2>&5
24352 ac_status=$?
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); }; }; then
24355 gt_cv_func_CFLocaleCopyCurrent=yes
24356 else
24357 echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24359
24360 gt_cv_func_CFLocaleCopyCurrent=no
24361 fi
24362 rm -f conftest.err conftest.$ac_objext \
24363 conftest$ac_exeext conftest.$ac_ext
24364 CPPFLAGS="$gt_save_CPPFLAGS"
24365 LIBS="$gt_save_LIBS"
24366 fi
24367 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24368 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
24369 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24370
24371 cat >>confdefs.h <<\_ACEOF
24372 #define HAVE_CFLOCALECOPYCURRENT 1
24373 _ACEOF
24374
24375 fi
24376 INTL_MACOSX_LIBS=
24377 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24378 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24379 fi
24380
24381
24382
24383 if test "X$prefix" = "XNONE"; then
24384 acl_final_prefix="$ac_default_prefix"
24385 else
24386 acl_final_prefix="$prefix"
24387 fi
24388 if test "X$exec_prefix" = "XNONE"; then
24389 acl_final_exec_prefix='${prefix}'
24390 else
24391 acl_final_exec_prefix="$exec_prefix"
24392 fi
24393 acl_save_prefix="$prefix"
24394 prefix="$acl_final_prefix"
24395 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
24396 prefix="$acl_save_prefix"
24397
24398
24399 # Check whether --with-gnu-ld or --without-gnu-ld was given.
24400 if test "${with_gnu_ld+set}" = set; then
24401 withval="$with_gnu_ld"
24402 test "$withval" = no || with_gnu_ld=yes
24403 else
24404 with_gnu_ld=no
24405 fi;
24406 # Prepare PATH_SEPARATOR.
24407 # The user is always right.
24408 if test "${PATH_SEPARATOR+set}" != set; then
24409 echo "#! /bin/sh" >conf$$.sh
24410 echo "exit 0" >>conf$$.sh
24411 chmod +x conf$$.sh
24412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24413 PATH_SEPARATOR=';'
24414 else
24415 PATH_SEPARATOR=:
24416 fi
24417 rm -f conf$$.sh
24418 fi
24419 ac_prog=ld
24420 if test "$GCC" = yes; then
24421 # Check if gcc -print-prog-name=ld gives a path.
24422 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
24423 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
24424 case $host in
24425 *-*-mingw*)
24426 # gcc leaves a trailing carriage return which upsets mingw
24427 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24428 *)
24429 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24430 esac
24431 case $ac_prog in
24432 # Accept absolute paths.
24433 [\\/]* | [A-Za-z]:[\\/]*)
24434 re_direlt='/[^/][^/]*/\.\./'
24435 # Canonicalize the path of ld
24436 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
24437 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24438 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
24439 done
24440 test -z "$LD" && LD="$ac_prog"
24441 ;;
24442 "")
24443 # If it fails, then pretend we aren't using GCC.
24444 ac_prog=ld
24445 ;;
24446 *)
24447 # If it is relative, then search for the first ld in PATH.
24448 with_gnu_ld=unknown
24449 ;;
24450 esac
24451 elif test "$with_gnu_ld" = yes; then
24452 echo "$as_me:$LINENO: checking for GNU ld" >&5
24453 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
24454 else
24455 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24456 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
24457 fi
24458 if test "${acl_cv_path_LD+set}" = set; then
24459 echo $ECHO_N "(cached) $ECHO_C" >&6
24460 else
24461 if test -z "$LD"; then
24462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
24463 for ac_dir in $PATH; do
24464 test -z "$ac_dir" && ac_dir=.
24465 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24466 acl_cv_path_LD="$ac_dir/$ac_prog"
24467 # Check to see if the program is GNU ld. I'd rather use --version,
24468 # but apparently some GNU ld's only accept -v.
24469 # Break only if it was the GNU/non-GNU ld that we prefer.
24470 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
24471 *GNU* | *'with BFD'*)
24472 test "$with_gnu_ld" != no && break ;;
24473 *)
24474 test "$with_gnu_ld" != yes && break ;;
24475 esac
24476 fi
24477 done
24478 IFS="$ac_save_ifs"
24479 else
24480 acl_cv_path_LD="$LD" # Let the user override the test with a path.
24481 fi
24482 fi
24483
24484 LD="$acl_cv_path_LD"
24485 if test -n "$LD"; then
24486 echo "$as_me:$LINENO: result: $LD" >&5
24487 echo "${ECHO_T}$LD" >&6
24488 else
24489 echo "$as_me:$LINENO: result: no" >&5
24490 echo "${ECHO_T}no" >&6
24491 fi
24492 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
24493 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
24494 { (exit 1); exit 1; }; }
24495 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
24496 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
24497 if test "${acl_cv_prog_gnu_ld+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24499 else
24500 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
24501 case `$LD -v 2>&1 </dev/null` in
24502 *GNU* | *'with BFD'*)
24503 acl_cv_prog_gnu_ld=yes ;;
24504 *)
24505 acl_cv_prog_gnu_ld=no ;;
24506 esac
24507 fi
24508 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
24509 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
24510 with_gnu_ld=$acl_cv_prog_gnu_ld
24511
24512
24513
24514
24515 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
24516 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
24517 if test "${acl_cv_rpath+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520
24521 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
24522 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
24523 . ./conftest.sh
24524 rm -f ./conftest.sh
24525 acl_cv_rpath=done
24526
24527 fi
24528 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
24529 echo "${ECHO_T}$acl_cv_rpath" >&6
24530 wl="$acl_cv_wl"
24531 libext="$acl_cv_libext"
24532 shlibext="$acl_cv_shlibext"
24533 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
24534 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
24535 hardcode_direct="$acl_cv_hardcode_direct"
24536 hardcode_minus_L="$acl_cv_hardcode_minus_L"
24537 # Check whether --enable-rpath or --disable-rpath was given.
24538 if test "${enable_rpath+set}" = set; then
24539 enableval="$enable_rpath"
24540 :
24541 else
24542 enable_rpath=yes
24543 fi;
24544
24545
24546
24547
24548
24549
24550
24551 use_additional=yes
24552
24553 acl_save_prefix="$prefix"
24554 prefix="$acl_final_prefix"
24555 acl_save_exec_prefix="$exec_prefix"
24556 exec_prefix="$acl_final_exec_prefix"
24557
24558 eval additional_includedir=\"$includedir\"
24559 eval additional_libdir=\"$libdir\"
24560
24561 exec_prefix="$acl_save_exec_prefix"
24562 prefix="$acl_save_prefix"
24563
24564
24565 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24566 if test "${with_libiconv_prefix+set}" = set; then
24567 withval="$with_libiconv_prefix"
24568
24569 if test "X$withval" = "Xno"; then
24570 use_additional=no
24571 else
24572 if test "X$withval" = "X"; then
24573
24574 acl_save_prefix="$prefix"
24575 prefix="$acl_final_prefix"
24576 acl_save_exec_prefix="$exec_prefix"
24577 exec_prefix="$acl_final_exec_prefix"
24578
24579 eval additional_includedir=\"$includedir\"
24580 eval additional_libdir=\"$libdir\"
24581
24582 exec_prefix="$acl_save_exec_prefix"
24583 prefix="$acl_save_prefix"
24584
24585 else
24586 additional_includedir="$withval/include"
24587 additional_libdir="$withval/lib"
24588 fi
24589 fi
24590
24591 fi;
24592 LIBICONV=
24593 LTLIBICONV=
24594 INCICONV=
24595 rpathdirs=
24596 ltrpathdirs=
24597 names_already_handled=
24598 names_next_round='iconv '
24599 while test -n "$names_next_round"; do
24600 names_this_round="$names_next_round"
24601 names_next_round=
24602 for name in $names_this_round; do
24603 already_handled=
24604 for n in $names_already_handled; do
24605 if test "$n" = "$name"; then
24606 already_handled=yes
24607 break
24608 fi
24609 done
24610 if test -z "$already_handled"; then
24611 names_already_handled="$names_already_handled $name"
24612 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24613 eval value=\"\$HAVE_LIB$uppername\"
24614 if test -n "$value"; then
24615 if test "$value" = yes; then
24616 eval value=\"\$LIB$uppername\"
24617 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24618 eval value=\"\$LTLIB$uppername\"
24619 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24620 else
24621 :
24622 fi
24623 else
24624 found_dir=
24625 found_la=
24626 found_so=
24627 found_a=
24628 if test $use_additional = yes; then
24629 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24630 found_dir="$additional_libdir"
24631 found_so="$additional_libdir/lib$name.$shlibext"
24632 if test -f "$additional_libdir/lib$name.la"; then
24633 found_la="$additional_libdir/lib$name.la"
24634 fi
24635 else
24636 if test -f "$additional_libdir/lib$name.$libext"; then
24637 found_dir="$additional_libdir"
24638 found_a="$additional_libdir/lib$name.$libext"
24639 if test -f "$additional_libdir/lib$name.la"; then
24640 found_la="$additional_libdir/lib$name.la"
24641 fi
24642 fi
24643 fi
24644 fi
24645 if test "X$found_dir" = "X"; then
24646 for x in $LDFLAGS $LTLIBICONV; do
24647
24648 acl_save_prefix="$prefix"
24649 prefix="$acl_final_prefix"
24650 acl_save_exec_prefix="$exec_prefix"
24651 exec_prefix="$acl_final_exec_prefix"
24652 eval x=\"$x\"
24653 exec_prefix="$acl_save_exec_prefix"
24654 prefix="$acl_save_prefix"
24655
24656 case "$x" in
24657 -L*)
24658 dir=`echo "X$x" | sed -e 's/^X-L//'`
24659 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24660 found_dir="$dir"
24661 found_so="$dir/lib$name.$shlibext"
24662 if test -f "$dir/lib$name.la"; then
24663 found_la="$dir/lib$name.la"
24664 fi
24665 else
24666 if test -f "$dir/lib$name.$libext"; then
24667 found_dir="$dir"
24668 found_a="$dir/lib$name.$libext"
24669 if test -f "$dir/lib$name.la"; then
24670 found_la="$dir/lib$name.la"
24671 fi
24672 fi
24673 fi
24674 ;;
24675 esac
24676 if test "X$found_dir" != "X"; then
24677 break
24678 fi
24679 done
24680 fi
24681 if test "X$found_dir" != "X"; then
24682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24683 if test "X$found_so" != "X"; then
24684 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24685 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24686 else
24687 haveit=
24688 for x in $ltrpathdirs; do
24689 if test "X$x" = "X$found_dir"; then
24690 haveit=yes
24691 break
24692 fi
24693 done
24694 if test -z "$haveit"; then
24695 ltrpathdirs="$ltrpathdirs $found_dir"
24696 fi
24697 if test "$hardcode_direct" = yes; then
24698 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24699 else
24700 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24701 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24702 haveit=
24703 for x in $rpathdirs; do
24704 if test "X$x" = "X$found_dir"; then
24705 haveit=yes
24706 break
24707 fi
24708 done
24709 if test -z "$haveit"; then
24710 rpathdirs="$rpathdirs $found_dir"
24711 fi
24712 else
24713 haveit=
24714 for x in $LDFLAGS $LIBICONV; do
24715
24716 acl_save_prefix="$prefix"
24717 prefix="$acl_final_prefix"
24718 acl_save_exec_prefix="$exec_prefix"
24719 exec_prefix="$acl_final_exec_prefix"
24720 eval x=\"$x\"
24721 exec_prefix="$acl_save_exec_prefix"
24722 prefix="$acl_save_prefix"
24723
24724 if test "X$x" = "X-L$found_dir"; then
24725 haveit=yes
24726 break
24727 fi
24728 done
24729 if test -z "$haveit"; then
24730 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24731 fi
24732 if test "$hardcode_minus_L" != no; then
24733 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24734 else
24735 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24736 fi
24737 fi
24738 fi
24739 fi
24740 else
24741 if test "X$found_a" != "X"; then
24742 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24743 else
24744 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24745 fi
24746 fi
24747 additional_includedir=
24748 case "$found_dir" in
24749 */lib | */lib/)
24750 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24751 additional_includedir="$basedir/include"
24752 ;;
24753 esac
24754 if test "X$additional_includedir" != "X"; then
24755 if test "X$additional_includedir" != "X/usr/include"; then
24756 haveit=
24757 if test "X$additional_includedir" = "X/usr/local/include"; then
24758 if test -n "$GCC"; then
24759 case $host_os in
24760 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24761 esac
24762 fi
24763 fi
24764 if test -z "$haveit"; then
24765 for x in $CPPFLAGS $INCICONV; do
24766
24767 acl_save_prefix="$prefix"
24768 prefix="$acl_final_prefix"
24769 acl_save_exec_prefix="$exec_prefix"
24770 exec_prefix="$acl_final_exec_prefix"
24771 eval x=\"$x\"
24772 exec_prefix="$acl_save_exec_prefix"
24773 prefix="$acl_save_prefix"
24774
24775 if test "X$x" = "X-I$additional_includedir"; then
24776 haveit=yes
24777 break
24778 fi
24779 done
24780 if test -z "$haveit"; then
24781 if test -d "$additional_includedir"; then
24782 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24783 fi
24784 fi
24785 fi
24786 fi
24787 fi
24788 if test -n "$found_la"; then
24789 save_libdir="$libdir"
24790 case "$found_la" in
24791 */* | *\\*) . "$found_la" ;;
24792 *) . "./$found_la" ;;
24793 esac
24794 libdir="$save_libdir"
24795 for dep in $dependency_libs; do
24796 case "$dep" in
24797 -L*)
24798 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24799 if test "X$additional_libdir" != "X/usr/lib"; then
24800 haveit=
24801 if test "X$additional_libdir" = "X/usr/local/lib"; then
24802 if test -n "$GCC"; then
24803 case $host_os in
24804 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24805 esac
24806 fi
24807 fi
24808 if test -z "$haveit"; then
24809 haveit=
24810 for x in $LDFLAGS $LIBICONV; do
24811
24812 acl_save_prefix="$prefix"
24813 prefix="$acl_final_prefix"
24814 acl_save_exec_prefix="$exec_prefix"
24815 exec_prefix="$acl_final_exec_prefix"
24816 eval x=\"$x\"
24817 exec_prefix="$acl_save_exec_prefix"
24818 prefix="$acl_save_prefix"
24819
24820 if test "X$x" = "X-L$additional_libdir"; then
24821 haveit=yes
24822 break
24823 fi
24824 done
24825 if test -z "$haveit"; then
24826 if test -d "$additional_libdir"; then
24827 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24828 fi
24829 fi
24830 haveit=
24831 for x in $LDFLAGS $LTLIBICONV; do
24832
24833 acl_save_prefix="$prefix"
24834 prefix="$acl_final_prefix"
24835 acl_save_exec_prefix="$exec_prefix"
24836 exec_prefix="$acl_final_exec_prefix"
24837 eval x=\"$x\"
24838 exec_prefix="$acl_save_exec_prefix"
24839 prefix="$acl_save_prefix"
24840
24841 if test "X$x" = "X-L$additional_libdir"; then
24842 haveit=yes
24843 break
24844 fi
24845 done
24846 if test -z "$haveit"; then
24847 if test -d "$additional_libdir"; then
24848 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24849 fi
24850 fi
24851 fi
24852 fi
24853 ;;
24854 -R*)
24855 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24856 if test "$enable_rpath" != no; then
24857 haveit=
24858 for x in $rpathdirs; do
24859 if test "X$x" = "X$dir"; then
24860 haveit=yes
24861 break
24862 fi
24863 done
24864 if test -z "$haveit"; then
24865 rpathdirs="$rpathdirs $dir"
24866 fi
24867 haveit=
24868 for x in $ltrpathdirs; do
24869 if test "X$x" = "X$dir"; then
24870 haveit=yes
24871 break
24872 fi
24873 done
24874 if test -z "$haveit"; then
24875 ltrpathdirs="$ltrpathdirs $dir"
24876 fi
24877 fi
24878 ;;
24879 -l*)
24880 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24881 ;;
24882 *.la)
24883 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24884 ;;
24885 *)
24886 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24887 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24888 ;;
24889 esac
24890 done
24891 fi
24892 else
24893 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24894 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24895 fi
24896 fi
24897 fi
24898 done
24899 done
24900 if test "X$rpathdirs" != "X"; then
24901 if test -n "$hardcode_libdir_separator"; then
24902 alldirs=
24903 for found_dir in $rpathdirs; do
24904 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24905 done
24906 acl_save_libdir="$libdir"
24907 libdir="$alldirs"
24908 eval flag=\"$hardcode_libdir_flag_spec\"
24909 libdir="$acl_save_libdir"
24910 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24911 else
24912 for found_dir in $rpathdirs; do
24913 acl_save_libdir="$libdir"
24914 libdir="$found_dir"
24915 eval flag=\"$hardcode_libdir_flag_spec\"
24916 libdir="$acl_save_libdir"
24917 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24918 done
24919 fi
24920 fi
24921 if test "X$ltrpathdirs" != "X"; then
24922 for found_dir in $ltrpathdirs; do
24923 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24924 done
24925 fi
24926
24927
24928
24929
24930
24931
24932
24933
24934 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24935 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
24936 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24937 echo $ECHO_N "(cached) $ECHO_C" >&6
24938 else
24939 cat >conftest.$ac_ext <<_ACEOF
24940 /* confdefs.h. */
24941 _ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h. */
24945 $ac_includes_default
24946 int
24947 main ()
24948 {
24949 if ((ptrdiff_t *) 0)
24950 return 0;
24951 if (sizeof (ptrdiff_t))
24952 return 0;
24953 ;
24954 return 0;
24955 }
24956 _ACEOF
24957 rm -f conftest.$ac_objext
24958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24959 (eval $ac_compile) 2>conftest.er1
24960 ac_status=$?
24961 grep -v '^ *+' conftest.er1 >conftest.err
24962 rm -f conftest.er1
24963 cat conftest.err >&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } &&
24966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968 (eval $ac_try) 2>&5
24969 ac_status=$?
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; } &&
24972 { ac_try='test -s conftest.$ac_objext'
24973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974 (eval $ac_try) 2>&5
24975 ac_status=$?
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; }; then
24978 ac_cv_type_ptrdiff_t=yes
24979 else
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983 ac_cv_type_ptrdiff_t=no
24984 fi
24985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24986 fi
24987 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24988 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
24989 if test $ac_cv_type_ptrdiff_t = yes; then
24990 :
24991 else
24992
24993 cat >>confdefs.h <<\_ACEOF
24994 #define ptrdiff_t long
24995 _ACEOF
24996
24997
24998 fi
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
25011 stdlib.h string.h unistd.h sys/param.h
25012 do
25013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25015 echo "$as_me:$LINENO: checking for $ac_header" >&5
25016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 fi
25020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25022 else
25023 # Is the header compilable?
25024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25026 cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h. */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25032 $ac_includes_default
25033 #include <$ac_header>
25034 _ACEOF
25035 rm -f conftest.$ac_objext
25036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25037 (eval $ac_compile) 2>conftest.er1
25038 ac_status=$?
25039 grep -v '^ *+' conftest.er1 >conftest.err
25040 rm -f conftest.er1
25041 cat conftest.err >&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } &&
25044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25046 (eval $ac_try) 2>&5
25047 ac_status=$?
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); }; } &&
25050 { ac_try='test -s conftest.$ac_objext'
25051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052 (eval $ac_try) 2>&5
25053 ac_status=$?
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); }; }; then
25056 ac_header_compiler=yes
25057 else
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25060
25061 ac_header_compiler=no
25062 fi
25063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25065 echo "${ECHO_T}$ac_header_compiler" >&6
25066
25067 # Is the header present?
25068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25070 cat >conftest.$ac_ext <<_ACEOF
25071 /* confdefs.h. */
25072 _ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h. */
25076 #include <$ac_header>
25077 _ACEOF
25078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25080 ac_status=$?
25081 grep -v '^ *+' conftest.er1 >conftest.err
25082 rm -f conftest.er1
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } >/dev/null; then
25086 if test -s conftest.err; then
25087 ac_cpp_err=$ac_c_preproc_warn_flag
25088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25089 else
25090 ac_cpp_err=
25091 fi
25092 else
25093 ac_cpp_err=yes
25094 fi
25095 if test -z "$ac_cpp_err"; then
25096 ac_header_preproc=yes
25097 else
25098 echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25100
25101 ac_header_preproc=no
25102 fi
25103 rm -f conftest.err conftest.$ac_ext
25104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25105 echo "${ECHO_T}$ac_header_preproc" >&6
25106
25107 # So? What about this header?
25108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25109 yes:no: )
25110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25114 ac_header_preproc=yes
25115 ;;
25116 no:yes:* )
25117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25129 (
25130 cat <<\_ASBOX
25131 ## ------------------------------------------ ##
25132 ## Report this to the AC_PACKAGE_NAME lists. ##
25133 ## ------------------------------------------ ##
25134 _ASBOX
25135 ) |
25136 sed "s/^/$as_me: WARNING: /" >&2
25137 ;;
25138 esac
25139 echo "$as_me:$LINENO: checking for $ac_header" >&5
25140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25143 else
25144 eval "$as_ac_Header=\$ac_header_preproc"
25145 fi
25146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25148
25149 fi
25150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25151 cat >>confdefs.h <<_ACEOF
25152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25153 _ACEOF
25154
25155 fi
25156
25157 done
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
25183 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
25184 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
25185 __fsetlocking
25186 do
25187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25188 echo "$as_me:$LINENO: checking for $ac_func" >&5
25189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25190 if eval "test \"\${$as_ac_var+set}\" = set"; then
25191 echo $ECHO_N "(cached) $ECHO_C" >&6
25192 else
25193 cat >conftest.$ac_ext <<_ACEOF
25194 /* confdefs.h. */
25195 _ACEOF
25196 cat confdefs.h >>conftest.$ac_ext
25197 cat >>conftest.$ac_ext <<_ACEOF
25198 /* end confdefs.h. */
25199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25201 #define $ac_func innocuous_$ac_func
25202
25203 /* System header to define __stub macros and hopefully few prototypes,
25204 which can conflict with char $ac_func (); below.
25205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25206 <limits.h> exists even on freestanding compilers. */
25207
25208 #ifdef __STDC__
25209 # include <limits.h>
25210 #else
25211 # include <assert.h>
25212 #endif
25213
25214 #undef $ac_func
25215
25216 /* Override any gcc2 internal prototype to avoid an error. */
25217 #ifdef __cplusplus
25218 extern "C"
25219 {
25220 #endif
25221 /* We use char because int might match the return type of a gcc2
25222 builtin and then its argument prototype would still apply. */
25223 char $ac_func ();
25224 /* The GNU C library defines this for functions which it implements
25225 to always fail with ENOSYS. Some functions are actually named
25226 something starting with __ and the normal name is an alias. */
25227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25228 choke me
25229 #else
25230 char (*f) () = $ac_func;
25231 #endif
25232 #ifdef __cplusplus
25233 }
25234 #endif
25235
25236 int
25237 main ()
25238 {
25239 return f != $ac_func;
25240 ;
25241 return 0;
25242 }
25243 _ACEOF
25244 rm -f conftest.$ac_objext conftest$ac_exeext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25246 (eval $ac_link) 2>conftest.er1
25247 ac_status=$?
25248 grep -v '^ *+' conftest.er1 >conftest.err
25249 rm -f conftest.er1
25250 cat conftest.err >&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } &&
25253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; } &&
25259 { ac_try='test -s conftest$ac_exeext'
25260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261 (eval $ac_try) 2>&5
25262 ac_status=$?
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }; }; then
25265 eval "$as_ac_var=yes"
25266 else
25267 echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25269
25270 eval "$as_ac_var=no"
25271 fi
25272 rm -f conftest.err conftest.$ac_objext \
25273 conftest$ac_exeext conftest.$ac_ext
25274 fi
25275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25277 if test `eval echo '${'$as_ac_var'}'` = yes; then
25278 cat >>confdefs.h <<_ACEOF
25279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25280 _ACEOF
25281
25282 fi
25283 done
25284
25285
25286
25287 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
25288 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
25289 if test "${ac_cv_have_decl__snprintf+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25291 else
25292 cat >conftest.$ac_ext <<_ACEOF
25293 /* confdefs.h. */
25294 _ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25298 #include <stdio.h>
25299 int
25300 main ()
25301 {
25302
25303 #ifndef _snprintf
25304 char *p = (char *) _snprintf;
25305 #endif
25306
25307 ;
25308 return 0;
25309 }
25310 _ACEOF
25311 rm -f conftest.$ac_objext
25312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25313 (eval $ac_compile) 2>conftest.er1
25314 ac_status=$?
25315 grep -v '^ *+' conftest.er1 >conftest.err
25316 rm -f conftest.er1
25317 cat conftest.err >&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } &&
25320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322 (eval $ac_try) 2>&5
25323 ac_status=$?
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; } &&
25326 { ac_try='test -s conftest.$ac_objext'
25327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328 (eval $ac_try) 2>&5
25329 ac_status=$?
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); }; }; then
25332 ac_cv_have_decl__snprintf=yes
25333 else
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25336
25337 ac_cv_have_decl__snprintf=no
25338 fi
25339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25340 fi
25341 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
25342 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
25343 if test $ac_cv_have_decl__snprintf = yes; then
25344 gt_value=1
25345 else
25346 gt_value=0
25347 fi
25348
25349 cat >>confdefs.h <<_ACEOF
25350 #define HAVE_DECL__SNPRINTF $gt_value
25351 _ACEOF
25352
25353
25354
25355 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
25356 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
25357 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25359 else
25360 cat >conftest.$ac_ext <<_ACEOF
25361 /* confdefs.h. */
25362 _ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h. */
25366 #include <stdio.h>
25367 int
25368 main ()
25369 {
25370
25371 #ifndef _snwprintf
25372 char *p = (char *) _snwprintf;
25373 #endif
25374
25375 ;
25376 return 0;
25377 }
25378 _ACEOF
25379 rm -f conftest.$ac_objext
25380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25381 (eval $ac_compile) 2>conftest.er1
25382 ac_status=$?
25383 grep -v '^ *+' conftest.er1 >conftest.err
25384 rm -f conftest.er1
25385 cat conftest.err >&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } &&
25388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390 (eval $ac_try) 2>&5
25391 ac_status=$?
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); }; } &&
25394 { ac_try='test -s conftest.$ac_objext'
25395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25396 (eval $ac_try) 2>&5
25397 ac_status=$?
25398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399 (exit $ac_status); }; }; then
25400 ac_cv_have_decl__snwprintf=yes
25401 else
25402 echo "$as_me: failed program was:" >&5
25403 sed 's/^/| /' conftest.$ac_ext >&5
25404
25405 ac_cv_have_decl__snwprintf=no
25406 fi
25407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25408 fi
25409 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
25410 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
25411 if test $ac_cv_have_decl__snwprintf = yes; then
25412 gt_value=1
25413 else
25414 gt_value=0
25415 fi
25416
25417 cat >>confdefs.h <<_ACEOF
25418 #define HAVE_DECL__SNWPRINTF $gt_value
25419 _ACEOF
25420
25421
25422
25423
25424 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
25425 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
25426 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429 cat >conftest.$ac_ext <<_ACEOF
25430 /* confdefs.h. */
25431 _ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 #include <stdio.h>
25436 int
25437 main ()
25438 {
25439
25440 #ifndef feof_unlocked
25441 char *p = (char *) feof_unlocked;
25442 #endif
25443
25444 ;
25445 return 0;
25446 }
25447 _ACEOF
25448 rm -f conftest.$ac_objext
25449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25450 (eval $ac_compile) 2>conftest.er1
25451 ac_status=$?
25452 grep -v '^ *+' conftest.er1 >conftest.err
25453 rm -f conftest.er1
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } &&
25457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; } &&
25463 { ac_try='test -s conftest.$ac_objext'
25464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465 (eval $ac_try) 2>&5
25466 ac_status=$?
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; }; then
25469 ac_cv_have_decl_feof_unlocked=yes
25470 else
25471 echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25473
25474 ac_cv_have_decl_feof_unlocked=no
25475 fi
25476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25477 fi
25478 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
25479 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
25480 if test $ac_cv_have_decl_feof_unlocked = yes; then
25481 gt_value=1
25482 else
25483 gt_value=0
25484 fi
25485
25486 cat >>confdefs.h <<_ACEOF
25487 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
25488 _ACEOF
25489
25490
25491
25492 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
25493 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
25494 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 else
25497 cat >conftest.$ac_ext <<_ACEOF
25498 /* confdefs.h. */
25499 _ACEOF
25500 cat confdefs.h >>conftest.$ac_ext
25501 cat >>conftest.$ac_ext <<_ACEOF
25502 /* end confdefs.h. */
25503 #include <stdio.h>
25504 int
25505 main ()
25506 {
25507
25508 #ifndef fgets_unlocked
25509 char *p = (char *) fgets_unlocked;
25510 #endif
25511
25512 ;
25513 return 0;
25514 }
25515 _ACEOF
25516 rm -f conftest.$ac_objext
25517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25518 (eval $ac_compile) 2>conftest.er1
25519 ac_status=$?
25520 grep -v '^ *+' conftest.er1 >conftest.err
25521 rm -f conftest.er1
25522 cat conftest.err >&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } &&
25525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; } &&
25531 { ac_try='test -s conftest.$ac_objext'
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; }; then
25537 ac_cv_have_decl_fgets_unlocked=yes
25538 else
25539 echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.$ac_ext >&5
25541
25542 ac_cv_have_decl_fgets_unlocked=no
25543 fi
25544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25545 fi
25546 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
25547 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
25548 if test $ac_cv_have_decl_fgets_unlocked = yes; then
25549 gt_value=1
25550 else
25551 gt_value=0
25552 fi
25553
25554 cat >>confdefs.h <<_ACEOF
25555 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
25556 _ACEOF
25557
25558
25559
25560 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
25561 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
25562 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
25563 echo $ECHO_N "(cached) $ECHO_C" >&6
25564 else
25565 cat >conftest.$ac_ext <<_ACEOF
25566 /* confdefs.h. */
25567 _ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25571 #include <stdio.h>
25572 int
25573 main ()
25574 {
25575
25576 #ifndef getc_unlocked
25577 char *p = (char *) getc_unlocked;
25578 #endif
25579
25580 ;
25581 return 0;
25582 }
25583 _ACEOF
25584 rm -f conftest.$ac_objext
25585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25586 (eval $ac_compile) 2>conftest.er1
25587 ac_status=$?
25588 grep -v '^ *+' conftest.er1 >conftest.err
25589 rm -f conftest.er1
25590 cat conftest.err >&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } &&
25593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595 (eval $ac_try) 2>&5
25596 ac_status=$?
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; } &&
25599 { ac_try='test -s conftest.$ac_objext'
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; }; then
25605 ac_cv_have_decl_getc_unlocked=yes
25606 else
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610 ac_cv_have_decl_getc_unlocked=no
25611 fi
25612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25613 fi
25614 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
25615 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
25616 if test $ac_cv_have_decl_getc_unlocked = yes; then
25617 gt_value=1
25618 else
25619 gt_value=0
25620 fi
25621
25622 cat >>confdefs.h <<_ACEOF
25623 #define HAVE_DECL_GETC_UNLOCKED $gt_value
25624 _ACEOF
25625
25626
25627
25628 case $gt_cv_func_printf_posix in
25629 *yes) HAVE_POSIX_PRINTF=1 ;;
25630 *) HAVE_POSIX_PRINTF=0 ;;
25631 esac
25632
25633 if test "$ac_cv_func_asprintf" = yes; then
25634 HAVE_ASPRINTF=1
25635 else
25636 HAVE_ASPRINTF=0
25637 fi
25638
25639 if test "$ac_cv_func_snprintf" = yes; then
25640 HAVE_SNPRINTF=1
25641 else
25642 HAVE_SNPRINTF=0
25643 fi
25644
25645 if test "$ac_cv_func_wprintf" = yes; then
25646 HAVE_WPRINTF=1
25647 else
25648 HAVE_WPRINTF=0
25649 fi
25650
25651
25652
25653
25654
25655
25656
25657 am_save_CPPFLAGS="$CPPFLAGS"
25658
25659 for element in $INCICONV; do
25660 haveit=
25661 for x in $CPPFLAGS; do
25662
25663 acl_save_prefix="$prefix"
25664 prefix="$acl_final_prefix"
25665 acl_save_exec_prefix="$exec_prefix"
25666 exec_prefix="$acl_final_exec_prefix"
25667 eval x=\"$x\"
25668 exec_prefix="$acl_save_exec_prefix"
25669 prefix="$acl_save_prefix"
25670
25671 if test "X$x" = "X$element"; then
25672 haveit=yes
25673 break
25674 fi
25675 done
25676 if test -z "$haveit"; then
25677 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25678 fi
25679 done
25680
25681
25682 echo "$as_me:$LINENO: checking for iconv" >&5
25683 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25684 if test "${am_cv_func_iconv+set}" = set; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
25686 else
25687
25688 am_cv_func_iconv="no, consider installing GNU libiconv"
25689 am_cv_lib_iconv=no
25690 cat >conftest.$ac_ext <<_ACEOF
25691 /* confdefs.h. */
25692 _ACEOF
25693 cat confdefs.h >>conftest.$ac_ext
25694 cat >>conftest.$ac_ext <<_ACEOF
25695 /* end confdefs.h. */
25696 #include <stdlib.h>
25697 #include <iconv.h>
25698 int
25699 main ()
25700 {
25701 iconv_t cd = iconv_open("","");
25702 iconv(cd,NULL,NULL,NULL,NULL);
25703 iconv_close(cd);
25704 ;
25705 return 0;
25706 }
25707 _ACEOF
25708 rm -f conftest.$ac_objext conftest$ac_exeext
25709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25710 (eval $ac_link) 2>conftest.er1
25711 ac_status=$?
25712 grep -v '^ *+' conftest.er1 >conftest.err
25713 rm -f conftest.er1
25714 cat conftest.err >&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } &&
25717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719 (eval $ac_try) 2>&5
25720 ac_status=$?
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); }; } &&
25723 { ac_try='test -s conftest$ac_exeext'
25724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725 (eval $ac_try) 2>&5
25726 ac_status=$?
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); }; }; then
25729 am_cv_func_iconv=yes
25730 else
25731 echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734 fi
25735 rm -f conftest.err conftest.$ac_objext \
25736 conftest$ac_exeext conftest.$ac_ext
25737 if test "$am_cv_func_iconv" != yes; then
25738 am_save_LIBS="$LIBS"
25739 LIBS="$LIBS $LIBICONV"
25740 cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h. */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 #include <stdlib.h>
25747 #include <iconv.h>
25748 int
25749 main ()
25750 {
25751 iconv_t cd = iconv_open("","");
25752 iconv(cd,NULL,NULL,NULL,NULL);
25753 iconv_close(cd);
25754 ;
25755 return 0;
25756 }
25757 _ACEOF
25758 rm -f conftest.$ac_objext conftest$ac_exeext
25759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25760 (eval $ac_link) 2>conftest.er1
25761 ac_status=$?
25762 grep -v '^ *+' conftest.er1 >conftest.err
25763 rm -f conftest.er1
25764 cat conftest.err >&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
25767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769 (eval $ac_try) 2>&5
25770 ac_status=$?
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); }; } &&
25773 { ac_try='test -s conftest$ac_exeext'
25774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25775 (eval $ac_try) 2>&5
25776 ac_status=$?
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); }; }; then
25779 am_cv_lib_iconv=yes
25780 am_cv_func_iconv=yes
25781 else
25782 echo "$as_me: failed program was:" >&5
25783 sed 's/^/| /' conftest.$ac_ext >&5
25784
25785 fi
25786 rm -f conftest.err conftest.$ac_objext \
25787 conftest$ac_exeext conftest.$ac_ext
25788 LIBS="$am_save_LIBS"
25789 fi
25790
25791 fi
25792 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25793 echo "${ECHO_T}$am_cv_func_iconv" >&6
25794 if test "$am_cv_func_iconv" = yes; then
25795
25796 cat >>confdefs.h <<\_ACEOF
25797 #define HAVE_ICONV 1
25798 _ACEOF
25799
25800 fi
25801 if test "$am_cv_lib_iconv" = yes; then
25802 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
25803 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
25804 echo "$as_me:$LINENO: result: $LIBICONV" >&5
25805 echo "${ECHO_T}$LIBICONV" >&6
25806 else
25807 CPPFLAGS="$am_save_CPPFLAGS"
25808 LIBICONV=
25809 LTLIBICONV=
25810 fi
25811
25812
25813
25814 if test "$am_cv_func_iconv" = yes; then
25815 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25816 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25817 if test "${am_cv_proto_iconv+set}" = set; then
25818 echo $ECHO_N "(cached) $ECHO_C" >&6
25819 else
25820
25821 cat >conftest.$ac_ext <<_ACEOF
25822 /* confdefs.h. */
25823 _ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25827
25828 #include <stdlib.h>
25829 #include <iconv.h>
25830 extern
25831 #ifdef __cplusplus
25832 "C"
25833 #endif
25834 #if defined(__STDC__) || defined(__cplusplus)
25835 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25836 #else
25837 size_t iconv();
25838 #endif
25839
25840 int
25841 main ()
25842 {
25843
25844 ;
25845 return 0;
25846 }
25847 _ACEOF
25848 rm -f conftest.$ac_objext
25849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25850 (eval $ac_compile) 2>conftest.er1
25851 ac_status=$?
25852 grep -v '^ *+' conftest.er1 >conftest.err
25853 rm -f conftest.er1
25854 cat conftest.err >&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); } &&
25857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; } &&
25863 { ac_try='test -s conftest.$ac_objext'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; }; then
25869 am_cv_proto_iconv_arg1=""
25870 else
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25873
25874 am_cv_proto_iconv_arg1="const"
25875 fi
25876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25877 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);"
25878 fi
25879
25880 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25881 echo "$as_me:$LINENO: result: ${ac_t:-
25882 }$am_cv_proto_iconv" >&5
25883 echo "${ECHO_T}${ac_t:-
25884 }$am_cv_proto_iconv" >&6
25885
25886 cat >>confdefs.h <<_ACEOF
25887 #define ICONV_CONST $am_cv_proto_iconv_arg1
25888 _ACEOF
25889
25890 fi
25891
25892
25893 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25894 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
25895 if test "${am_cv_langinfo_codeset+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25898 cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h. */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h. */
25904 #include <langinfo.h>
25905 int
25906 main ()
25907 {
25908 char* cs = nl_langinfo(CODESET);
25909 ;
25910 return 0;
25911 }
25912 _ACEOF
25913 rm -f conftest.$ac_objext conftest$ac_exeext
25914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25915 (eval $ac_link) 2>conftest.er1
25916 ac_status=$?
25917 grep -v '^ *+' conftest.er1 >conftest.err
25918 rm -f conftest.er1
25919 cat conftest.err >&5
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); } &&
25922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924 (eval $ac_try) 2>&5
25925 ac_status=$?
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); }; } &&
25928 { ac_try='test -s conftest$ac_exeext'
25929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); }; }; then
25934 am_cv_langinfo_codeset=yes
25935 else
25936 echo "$as_me: failed program was:" >&5
25937 sed 's/^/| /' conftest.$ac_ext >&5
25938
25939 am_cv_langinfo_codeset=no
25940 fi
25941 rm -f conftest.err conftest.$ac_objext \
25942 conftest$ac_exeext conftest.$ac_ext
25943
25944 fi
25945 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
25946 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
25947 if test $am_cv_langinfo_codeset = yes; then
25948
25949 cat >>confdefs.h <<\_ACEOF
25950 #define HAVE_LANGINFO_CODESET 1
25951 _ACEOF
25952
25953 fi
25954
25955 if test $ac_cv_header_locale_h = yes; then
25956
25957 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
25958 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
25959 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962 cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h. */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h. */
25968 #include <locale.h>
25969 int
25970 main ()
25971 {
25972 return LC_MESSAGES
25973 ;
25974 return 0;
25975 }
25976 _ACEOF
25977 rm -f conftest.$ac_objext conftest$ac_exeext
25978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25979 (eval $ac_link) 2>conftest.er1
25980 ac_status=$?
25981 grep -v '^ *+' conftest.er1 >conftest.err
25982 rm -f conftest.er1
25983 cat conftest.err >&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); } &&
25986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25988 (eval $ac_try) 2>&5
25989 ac_status=$?
25990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991 (exit $ac_status); }; } &&
25992 { ac_try='test -s conftest$ac_exeext'
25993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25994 (eval $ac_try) 2>&5
25995 ac_status=$?
25996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); }; }; then
25998 gt_cv_val_LC_MESSAGES=yes
25999 else
26000 echo "$as_me: failed program was:" >&5
26001 sed 's/^/| /' conftest.$ac_ext >&5
26002
26003 gt_cv_val_LC_MESSAGES=no
26004 fi
26005 rm -f conftest.err conftest.$ac_objext \
26006 conftest$ac_exeext conftest.$ac_ext
26007 fi
26008 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
26009 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
26010 if test $gt_cv_val_LC_MESSAGES = yes; then
26011
26012 cat >>confdefs.h <<\_ACEOF
26013 #define HAVE_LC_MESSAGES 1
26014 _ACEOF
26015
26016 fi
26017
26018 fi
26019
26020 if test -n "$INTL_MACOSX_LIBS"; then
26021 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26022 fi
26023
26024 for ac_prog in bison
26025 do
26026 # Extract the first word of "$ac_prog", so it can be a program name with args.
26027 set dummy $ac_prog; ac_word=$2
26028 echo "$as_me:$LINENO: checking for $ac_word" >&5
26029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26030 if test "${ac_cv_prog_INTLBISON+set}" = set; then
26031 echo $ECHO_N "(cached) $ECHO_C" >&6
26032 else
26033 if test -n "$INTLBISON"; then
26034 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
26035 else
26036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26037 for as_dir in $PATH
26038 do
26039 IFS=$as_save_IFS
26040 test -z "$as_dir" && as_dir=.
26041 for ac_exec_ext in '' $ac_executable_extensions; do
26042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26043 ac_cv_prog_INTLBISON="$ac_prog"
26044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26045 break 2
26046 fi
26047 done
26048 done
26049
26050 fi
26051 fi
26052 INTLBISON=$ac_cv_prog_INTLBISON
26053 if test -n "$INTLBISON"; then
26054 echo "$as_me:$LINENO: result: $INTLBISON" >&5
26055 echo "${ECHO_T}$INTLBISON" >&6
26056 else
26057 echo "$as_me:$LINENO: result: no" >&5
26058 echo "${ECHO_T}no" >&6
26059 fi
26060
26061 test -n "$INTLBISON" && break
26062 done
26063
26064 if test -z "$INTLBISON"; then
26065 ac_verc_fail=yes
26066 else
26067 echo "$as_me:$LINENO: checking version of bison" >&5
26068 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
26069 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
26070 case $ac_prog_version in
26071 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
26072 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
26073 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
26074 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
26075 esac
26076 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
26077 echo "${ECHO_T}$ac_prog_version" >&6
26078 fi
26079 if test $ac_verc_fail = yes; then
26080 INTLBISON=:
26081 fi
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26099 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
26100 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26101 echo $ECHO_N "(cached) $ECHO_C" >&6
26102 else
26103 gt_save_CPPFLAGS="$CPPFLAGS"
26104 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26105 gt_save_LIBS="$LIBS"
26106 LIBS="$LIBS -framework CoreFoundation"
26107 cat >conftest.$ac_ext <<_ACEOF
26108 /* confdefs.h. */
26109 _ACEOF
26110 cat confdefs.h >>conftest.$ac_ext
26111 cat >>conftest.$ac_ext <<_ACEOF
26112 /* end confdefs.h. */
26113 #include <CFPreferences.h>
26114 int
26115 main ()
26116 {
26117 CFPreferencesCopyAppValue(NULL, NULL)
26118 ;
26119 return 0;
26120 }
26121 _ACEOF
26122 rm -f conftest.$ac_objext conftest$ac_exeext
26123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26124 (eval $ac_link) 2>conftest.er1
26125 ac_status=$?
26126 grep -v '^ *+' conftest.er1 >conftest.err
26127 rm -f conftest.er1
26128 cat conftest.err >&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } &&
26131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; } &&
26137 { ac_try='test -s conftest$ac_exeext'
26138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139 (eval $ac_try) 2>&5
26140 ac_status=$?
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); }; }; then
26143 gt_cv_func_CFPreferencesCopyAppValue=yes
26144 else
26145 echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26147
26148 gt_cv_func_CFPreferencesCopyAppValue=no
26149 fi
26150 rm -f conftest.err conftest.$ac_objext \
26151 conftest$ac_exeext conftest.$ac_ext
26152 CPPFLAGS="$gt_save_CPPFLAGS"
26153 LIBS="$gt_save_LIBS"
26154 fi
26155 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26156 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
26157 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26158
26159 cat >>confdefs.h <<\_ACEOF
26160 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26161 _ACEOF
26162
26163 fi
26164 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26165 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
26166 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169 gt_save_CPPFLAGS="$CPPFLAGS"
26170 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26171 gt_save_LIBS="$LIBS"
26172 LIBS="$LIBS -framework CoreFoundation"
26173 cat >conftest.$ac_ext <<_ACEOF
26174 /* confdefs.h. */
26175 _ACEOF
26176 cat confdefs.h >>conftest.$ac_ext
26177 cat >>conftest.$ac_ext <<_ACEOF
26178 /* end confdefs.h. */
26179 #include <CFLocale.h>
26180 int
26181 main ()
26182 {
26183 CFLocaleCopyCurrent();
26184 ;
26185 return 0;
26186 }
26187 _ACEOF
26188 rm -f conftest.$ac_objext conftest$ac_exeext
26189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26190 (eval $ac_link) 2>conftest.er1
26191 ac_status=$?
26192 grep -v '^ *+' conftest.er1 >conftest.err
26193 rm -f conftest.er1
26194 cat conftest.err >&5
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); } &&
26197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 (eval $ac_try) 2>&5
26200 ac_status=$?
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; } &&
26203 { ac_try='test -s conftest$ac_exeext'
26204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26205 (eval $ac_try) 2>&5
26206 ac_status=$?
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); }; }; then
26209 gt_cv_func_CFLocaleCopyCurrent=yes
26210 else
26211 echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214 gt_cv_func_CFLocaleCopyCurrent=no
26215 fi
26216 rm -f conftest.err conftest.$ac_objext \
26217 conftest$ac_exeext conftest.$ac_ext
26218 CPPFLAGS="$gt_save_CPPFLAGS"
26219 LIBS="$gt_save_LIBS"
26220 fi
26221 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26222 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
26223 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26224
26225 cat >>confdefs.h <<\_ACEOF
26226 #define HAVE_CFLOCALECOPYCURRENT 1
26227 _ACEOF
26228
26229 fi
26230 INTL_MACOSX_LIBS=
26231 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26232 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26233 fi
26234
26235
26236
26237
26238 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
26239 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
26240 # Check whether --enable-nls or --disable-nls was given.
26241 if test "${enable_nls+set}" = set; then
26242 enableval="$enable_nls"
26243 USE_NLS=$enableval
26244 else
26245 USE_NLS=yes
26246 fi;
26247 echo "$as_me:$LINENO: result: $USE_NLS" >&5
26248 echo "${ECHO_T}$USE_NLS" >&6
26249
26250
26251
26252
26253 BUILD_INCLUDED_LIBINTL=no
26254 USE_INCLUDED_LIBINTL=no
26255
26256 LIBINTL=
26257 LTLIBINTL=
26258 POSUB=
26259
26260 if test "$USE_NLS" = "yes"; then
26261 gt_use_preinstalled_gnugettext=no
26262
26263 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
26264 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
26265
26266 # Check whether --with-included-gettext or --without-included-gettext was given.
26267 if test "${with_included_gettext+set}" = set; then
26268 withval="$with_included_gettext"
26269 nls_cv_force_use_gnu_gettext=$withval
26270 else
26271 nls_cv_force_use_gnu_gettext=no
26272 fi;
26273 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
26274 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
26275
26276 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
26277 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
26278
26279
26280
26281
26282
26283
26284 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
26285 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
26286 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26288 else
26289 cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h. */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26295 #include <libintl.h>
26296 extern int _nl_msg_cat_cntr;
26297 extern int *_nl_domain_bindings;
26298 int
26299 main ()
26300 {
26301 bindtextdomain ("", "");
26302 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
26303 ;
26304 return 0;
26305 }
26306 _ACEOF
26307 rm -f conftest.$ac_objext conftest$ac_exeext
26308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26309 (eval $ac_link) 2>conftest.er1
26310 ac_status=$?
26311 grep -v '^ *+' conftest.er1 >conftest.err
26312 rm -f conftest.er1
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } &&
26316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26319 ac_status=$?
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; } &&
26322 { ac_try='test -s conftest$ac_exeext'
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26325 ac_status=$?
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; }; then
26328 gt_cv_func_gnugettext1_libc=yes
26329 else
26330 echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26332
26333 gt_cv_func_gnugettext1_libc=no
26334 fi
26335 rm -f conftest.err conftest.$ac_objext \
26336 conftest$ac_exeext conftest.$ac_ext
26337 fi
26338 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
26339 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
26340
26341 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
26342
26343
26344
26345 use_additional=yes
26346
26347 acl_save_prefix="$prefix"
26348 prefix="$acl_final_prefix"
26349 acl_save_exec_prefix="$exec_prefix"
26350 exec_prefix="$acl_final_exec_prefix"
26351
26352 eval additional_includedir=\"$includedir\"
26353 eval additional_libdir=\"$libdir\"
26354
26355 exec_prefix="$acl_save_exec_prefix"
26356 prefix="$acl_save_prefix"
26357
26358
26359 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
26360 if test "${with_libintl_prefix+set}" = set; then
26361 withval="$with_libintl_prefix"
26362
26363 if test "X$withval" = "Xno"; then
26364 use_additional=no
26365 else
26366 if test "X$withval" = "X"; then
26367
26368 acl_save_prefix="$prefix"
26369 prefix="$acl_final_prefix"
26370 acl_save_exec_prefix="$exec_prefix"
26371 exec_prefix="$acl_final_exec_prefix"
26372
26373 eval additional_includedir=\"$includedir\"
26374 eval additional_libdir=\"$libdir\"
26375
26376 exec_prefix="$acl_save_exec_prefix"
26377 prefix="$acl_save_prefix"
26378
26379 else
26380 additional_includedir="$withval/include"
26381 additional_libdir="$withval/lib"
26382 fi
26383 fi
26384
26385 fi;
26386 LIBINTL=
26387 LTLIBINTL=
26388 INCINTL=
26389 rpathdirs=
26390 ltrpathdirs=
26391 names_already_handled=
26392 names_next_round='intl '
26393 while test -n "$names_next_round"; do
26394 names_this_round="$names_next_round"
26395 names_next_round=
26396 for name in $names_this_round; do
26397 already_handled=
26398 for n in $names_already_handled; do
26399 if test "$n" = "$name"; then
26400 already_handled=yes
26401 break
26402 fi
26403 done
26404 if test -z "$already_handled"; then
26405 names_already_handled="$names_already_handled $name"
26406 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26407 eval value=\"\$HAVE_LIB$uppername\"
26408 if test -n "$value"; then
26409 if test "$value" = yes; then
26410 eval value=\"\$LIB$uppername\"
26411 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26412 eval value=\"\$LTLIB$uppername\"
26413 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
26414 else
26415 :
26416 fi
26417 else
26418 found_dir=
26419 found_la=
26420 found_so=
26421 found_a=
26422 if test $use_additional = yes; then
26423 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26424 found_dir="$additional_libdir"
26425 found_so="$additional_libdir/lib$name.$shlibext"
26426 if test -f "$additional_libdir/lib$name.la"; then
26427 found_la="$additional_libdir/lib$name.la"
26428 fi
26429 else
26430 if test -f "$additional_libdir/lib$name.$libext"; then
26431 found_dir="$additional_libdir"
26432 found_a="$additional_libdir/lib$name.$libext"
26433 if test -f "$additional_libdir/lib$name.la"; then
26434 found_la="$additional_libdir/lib$name.la"
26435 fi
26436 fi
26437 fi
26438 fi
26439 if test "X$found_dir" = "X"; then
26440 for x in $LDFLAGS $LTLIBINTL; do
26441
26442 acl_save_prefix="$prefix"
26443 prefix="$acl_final_prefix"
26444 acl_save_exec_prefix="$exec_prefix"
26445 exec_prefix="$acl_final_exec_prefix"
26446 eval x=\"$x\"
26447 exec_prefix="$acl_save_exec_prefix"
26448 prefix="$acl_save_prefix"
26449
26450 case "$x" in
26451 -L*)
26452 dir=`echo "X$x" | sed -e 's/^X-L//'`
26453 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26454 found_dir="$dir"
26455 found_so="$dir/lib$name.$shlibext"
26456 if test -f "$dir/lib$name.la"; then
26457 found_la="$dir/lib$name.la"
26458 fi
26459 else
26460 if test -f "$dir/lib$name.$libext"; then
26461 found_dir="$dir"
26462 found_a="$dir/lib$name.$libext"
26463 if test -f "$dir/lib$name.la"; then
26464 found_la="$dir/lib$name.la"
26465 fi
26466 fi
26467 fi
26468 ;;
26469 esac
26470 if test "X$found_dir" != "X"; then
26471 break
26472 fi
26473 done
26474 fi
26475 if test "X$found_dir" != "X"; then
26476 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
26477 if test "X$found_so" != "X"; then
26478 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26479 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26480 else
26481 haveit=
26482 for x in $ltrpathdirs; do
26483 if test "X$x" = "X$found_dir"; then
26484 haveit=yes
26485 break
26486 fi
26487 done
26488 if test -z "$haveit"; then
26489 ltrpathdirs="$ltrpathdirs $found_dir"
26490 fi
26491 if test "$hardcode_direct" = yes; then
26492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26493 else
26494 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26495 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26496 haveit=
26497 for x in $rpathdirs; do
26498 if test "X$x" = "X$found_dir"; then
26499 haveit=yes
26500 break
26501 fi
26502 done
26503 if test -z "$haveit"; then
26504 rpathdirs="$rpathdirs $found_dir"
26505 fi
26506 else
26507 haveit=
26508 for x in $LDFLAGS $LIBINTL; do
26509
26510 acl_save_prefix="$prefix"
26511 prefix="$acl_final_prefix"
26512 acl_save_exec_prefix="$exec_prefix"
26513 exec_prefix="$acl_final_exec_prefix"
26514 eval x=\"$x\"
26515 exec_prefix="$acl_save_exec_prefix"
26516 prefix="$acl_save_prefix"
26517
26518 if test "X$x" = "X-L$found_dir"; then
26519 haveit=yes
26520 break
26521 fi
26522 done
26523 if test -z "$haveit"; then
26524 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26525 fi
26526 if test "$hardcode_minus_L" != no; then
26527 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26528 else
26529 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26530 fi
26531 fi
26532 fi
26533 fi
26534 else
26535 if test "X$found_a" != "X"; then
26536 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
26537 else
26538 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
26539 fi
26540 fi
26541 additional_includedir=
26542 case "$found_dir" in
26543 */lib | */lib/)
26544 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26545 additional_includedir="$basedir/include"
26546 ;;
26547 esac
26548 if test "X$additional_includedir" != "X"; then
26549 if test "X$additional_includedir" != "X/usr/include"; then
26550 haveit=
26551 if test "X$additional_includedir" = "X/usr/local/include"; then
26552 if test -n "$GCC"; then
26553 case $host_os in
26554 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26555 esac
26556 fi
26557 fi
26558 if test -z "$haveit"; then
26559 for x in $CPPFLAGS $INCINTL; do
26560
26561 acl_save_prefix="$prefix"
26562 prefix="$acl_final_prefix"
26563 acl_save_exec_prefix="$exec_prefix"
26564 exec_prefix="$acl_final_exec_prefix"
26565 eval x=\"$x\"
26566 exec_prefix="$acl_save_exec_prefix"
26567 prefix="$acl_save_prefix"
26568
26569 if test "X$x" = "X-I$additional_includedir"; then
26570 haveit=yes
26571 break
26572 fi
26573 done
26574 if test -z "$haveit"; then
26575 if test -d "$additional_includedir"; then
26576 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
26577 fi
26578 fi
26579 fi
26580 fi
26581 fi
26582 if test -n "$found_la"; then
26583 save_libdir="$libdir"
26584 case "$found_la" in
26585 */* | *\\*) . "$found_la" ;;
26586 *) . "./$found_la" ;;
26587 esac
26588 libdir="$save_libdir"
26589 for dep in $dependency_libs; do
26590 case "$dep" in
26591 -L*)
26592 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26593 if test "X$additional_libdir" != "X/usr/lib"; then
26594 haveit=
26595 if test "X$additional_libdir" = "X/usr/local/lib"; then
26596 if test -n "$GCC"; then
26597 case $host_os in
26598 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26599 esac
26600 fi
26601 fi
26602 if test -z "$haveit"; then
26603 haveit=
26604 for x in $LDFLAGS $LIBINTL; do
26605
26606 acl_save_prefix="$prefix"
26607 prefix="$acl_final_prefix"
26608 acl_save_exec_prefix="$exec_prefix"
26609 exec_prefix="$acl_final_exec_prefix"
26610 eval x=\"$x\"
26611 exec_prefix="$acl_save_exec_prefix"
26612 prefix="$acl_save_prefix"
26613
26614 if test "X$x" = "X-L$additional_libdir"; then
26615 haveit=yes
26616 break
26617 fi
26618 done
26619 if test -z "$haveit"; then
26620 if test -d "$additional_libdir"; then
26621 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
26622 fi
26623 fi
26624 haveit=
26625 for x in $LDFLAGS $LTLIBINTL; do
26626
26627 acl_save_prefix="$prefix"
26628 prefix="$acl_final_prefix"
26629 acl_save_exec_prefix="$exec_prefix"
26630 exec_prefix="$acl_final_exec_prefix"
26631 eval x=\"$x\"
26632 exec_prefix="$acl_save_exec_prefix"
26633 prefix="$acl_save_prefix"
26634
26635 if test "X$x" = "X-L$additional_libdir"; then
26636 haveit=yes
26637 break
26638 fi
26639 done
26640 if test -z "$haveit"; then
26641 if test -d "$additional_libdir"; then
26642 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
26643 fi
26644 fi
26645 fi
26646 fi
26647 ;;
26648 -R*)
26649 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26650 if test "$enable_rpath" != no; then
26651 haveit=
26652 for x in $rpathdirs; do
26653 if test "X$x" = "X$dir"; then
26654 haveit=yes
26655 break
26656 fi
26657 done
26658 if test -z "$haveit"; then
26659 rpathdirs="$rpathdirs $dir"
26660 fi
26661 haveit=
26662 for x in $ltrpathdirs; do
26663 if test "X$x" = "X$dir"; then
26664 haveit=yes
26665 break
26666 fi
26667 done
26668 if test -z "$haveit"; then
26669 ltrpathdirs="$ltrpathdirs $dir"
26670 fi
26671 fi
26672 ;;
26673 -l*)
26674 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26675 ;;
26676 *.la)
26677 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26678 ;;
26679 *)
26680 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
26681 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
26682 ;;
26683 esac
26684 done
26685 fi
26686 else
26687 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26688 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
26689 fi
26690 fi
26691 fi
26692 done
26693 done
26694 if test "X$rpathdirs" != "X"; then
26695 if test -n "$hardcode_libdir_separator"; then
26696 alldirs=
26697 for found_dir in $rpathdirs; do
26698 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26699 done
26700 acl_save_libdir="$libdir"
26701 libdir="$alldirs"
26702 eval flag=\"$hardcode_libdir_flag_spec\"
26703 libdir="$acl_save_libdir"
26704 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26705 else
26706 for found_dir in $rpathdirs; do
26707 acl_save_libdir="$libdir"
26708 libdir="$found_dir"
26709 eval flag=\"$hardcode_libdir_flag_spec\"
26710 libdir="$acl_save_libdir"
26711 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26712 done
26713 fi
26714 fi
26715 if test "X$ltrpathdirs" != "X"; then
26716 for found_dir in $ltrpathdirs; do
26717 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
26718 done
26719 fi
26720
26721 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
26722 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
26723 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26725 else
26726 gt_save_CPPFLAGS="$CPPFLAGS"
26727 CPPFLAGS="$CPPFLAGS $INCINTL"
26728 gt_save_LIBS="$LIBS"
26729 LIBS="$LIBS $LIBINTL"
26730 cat >conftest.$ac_ext <<_ACEOF
26731 /* confdefs.h. */
26732 _ACEOF
26733 cat confdefs.h >>conftest.$ac_ext
26734 cat >>conftest.$ac_ext <<_ACEOF
26735 /* end confdefs.h. */
26736 #include <libintl.h>
26737 extern int _nl_msg_cat_cntr;
26738 extern
26739 #ifdef __cplusplus
26740 "C"
26741 #endif
26742 const char *_nl_expand_alias (const char *);
26743 int
26744 main ()
26745 {
26746 bindtextdomain ("", "");
26747 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26748 ;
26749 return 0;
26750 }
26751 _ACEOF
26752 rm -f conftest.$ac_objext conftest$ac_exeext
26753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26754 (eval $ac_link) 2>conftest.er1
26755 ac_status=$?
26756 grep -v '^ *+' conftest.er1 >conftest.err
26757 rm -f conftest.er1
26758 cat conftest.err >&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } &&
26761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26763 (eval $ac_try) 2>&5
26764 ac_status=$?
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); }; } &&
26767 { ac_try='test -s conftest$ac_exeext'
26768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772 (exit $ac_status); }; }; then
26773 gt_cv_func_gnugettext1_libintl=yes
26774 else
26775 echo "$as_me: failed program was:" >&5
26776 sed 's/^/| /' conftest.$ac_ext >&5
26777
26778 gt_cv_func_gnugettext1_libintl=no
26779 fi
26780 rm -f conftest.err conftest.$ac_objext \
26781 conftest$ac_exeext conftest.$ac_ext
26782 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
26783 LIBS="$LIBS $LIBICONV"
26784 cat >conftest.$ac_ext <<_ACEOF
26785 /* confdefs.h. */
26786 _ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h. */
26790 #include <libintl.h>
26791 extern int _nl_msg_cat_cntr;
26792 extern
26793 #ifdef __cplusplus
26794 "C"
26795 #endif
26796 const char *_nl_expand_alias (const char *);
26797 int
26798 main ()
26799 {
26800 bindtextdomain ("", "");
26801 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26802 ;
26803 return 0;
26804 }
26805 _ACEOF
26806 rm -f conftest.$ac_objext conftest$ac_exeext
26807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26808 (eval $ac_link) 2>conftest.er1
26809 ac_status=$?
26810 grep -v '^ *+' conftest.er1 >conftest.err
26811 rm -f conftest.er1
26812 cat conftest.err >&5
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); } &&
26815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817 (eval $ac_try) 2>&5
26818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; } &&
26821 { ac_try='test -s conftest$ac_exeext'
26822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26823 (eval $ac_try) 2>&5
26824 ac_status=$?
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); }; }; then
26827 LIBINTL="$LIBINTL $LIBICONV"
26828 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
26829 gt_cv_func_gnugettext1_libintl=yes
26830
26831 else
26832 echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26834
26835 fi
26836 rm -f conftest.err conftest.$ac_objext \
26837 conftest$ac_exeext conftest.$ac_ext
26838 fi
26839 CPPFLAGS="$gt_save_CPPFLAGS"
26840 LIBS="$gt_save_LIBS"
26841 fi
26842 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
26843 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
26844 fi
26845
26846 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
26847 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
26848 && test "$PACKAGE" != gettext-runtime \
26849 && test "$PACKAGE" != gettext-tools; }; then
26850 gt_use_preinstalled_gnugettext=yes
26851 else
26852 LIBINTL=
26853 LTLIBINTL=
26854 INCINTL=
26855 fi
26856
26857
26858 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
26859 nls_cv_use_gnu_gettext=yes
26860 fi
26861 fi
26862
26863 if test "$nls_cv_use_gnu_gettext" = "yes"; then
26864 BUILD_INCLUDED_LIBINTL=yes
26865 USE_INCLUDED_LIBINTL=yes
26866 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
26867 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
26868 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
26869 fi
26870
26871 CATOBJEXT=
26872 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26873 || test "$nls_cv_use_gnu_gettext" = "yes"; then
26874 CATOBJEXT=.gmo
26875 fi
26876
26877
26878 if test -n "$INTL_MACOSX_LIBS"; then
26879 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26880 || test "$nls_cv_use_gnu_gettext" = "yes"; then
26881 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
26882 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
26883 fi
26884 fi
26885
26886 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26887 || test "$nls_cv_use_gnu_gettext" = "yes"; then
26888
26889 cat >>confdefs.h <<\_ACEOF
26890 #define ENABLE_NLS 1
26891 _ACEOF
26892
26893 else
26894 USE_NLS=no
26895 fi
26896 fi
26897
26898 echo "$as_me:$LINENO: checking whether to use NLS" >&5
26899 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
26900 echo "$as_me:$LINENO: result: $USE_NLS" >&5
26901 echo "${ECHO_T}$USE_NLS" >&6
26902 if test "$USE_NLS" = "yes"; then
26903 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
26904 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
26905 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26906 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
26907 gt_source="external libintl"
26908 else
26909 gt_source="libc"
26910 fi
26911 else
26912 gt_source="included intl directory"
26913 fi
26914 echo "$as_me:$LINENO: result: $gt_source" >&5
26915 echo "${ECHO_T}$gt_source" >&6
26916 fi
26917
26918 if test "$USE_NLS" = "yes"; then
26919
26920 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26921 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
26922 echo "$as_me:$LINENO: checking how to link with libintl" >&5
26923 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
26924 echo "$as_me:$LINENO: result: $LIBINTL" >&5
26925 echo "${ECHO_T}$LIBINTL" >&6
26926
26927 for element in $INCINTL; do
26928 haveit=
26929 for x in $CPPFLAGS; do
26930
26931 acl_save_prefix="$prefix"
26932 prefix="$acl_final_prefix"
26933 acl_save_exec_prefix="$exec_prefix"
26934 exec_prefix="$acl_final_exec_prefix"
26935 eval x=\"$x\"
26936 exec_prefix="$acl_save_exec_prefix"
26937 prefix="$acl_save_prefix"
26938
26939 if test "X$x" = "X$element"; then
26940 haveit=yes
26941 break
26942 fi
26943 done
26944 if test -z "$haveit"; then
26945 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26946 fi
26947 done
26948
26949 fi
26950
26951
26952 cat >>confdefs.h <<\_ACEOF
26953 #define HAVE_GETTEXT 1
26954 _ACEOF
26955
26956
26957 cat >>confdefs.h <<\_ACEOF
26958 #define HAVE_DCGETTEXT 1
26959 _ACEOF
26960
26961 fi
26962
26963 POSUB=po
26964 fi
26965
26966
26967 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
26968 BUILD_INCLUDED_LIBINTL=yes
26969 fi
26970
26971
26972
26973
26974
26975 nls_cv_header_intl=
26976 nls_cv_header_libgt=
26977
26978 DATADIRNAME=share
26979
26980
26981 INSTOBJEXT=.mo
26982
26983
26984 GENCAT=gencat
26985
26986
26987 INTLOBJS=
26988 if test "$USE_INCLUDED_LIBINTL" = yes; then
26989 INTLOBJS="\$(GETTOBJS)"
26990 fi
26991
26992
26993 INTL_LIBTOOL_SUFFIX_PREFIX=
26994
26995
26996
26997 INTLLIBS="$LIBINTL"
26998
26999
27000
27001
27002
27003
27004
27005
27006 if test "x${prefix}" = "xNONE"; then
27007 cat >>confdefs.h <<_ACEOF
27008 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
27009 _ACEOF
27010
27011 else
27012 cat >>confdefs.h <<_ACEOF
27013 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
27014 _ACEOF
27015
27016 fi
27017
27018
27019 build_examples=no
27020
27021 # Check whether --enable-examples or --disable-examples was given.
27022 if test "${enable_examples+set}" = set; then
27023 enableval="$enable_examples"
27024 build_examples="$enableval"
27025 else
27026 build_examples=no
27027 fi;
27028
27029
27030
27031 if test "x$build_examples" = "xyes"; then
27032 WITH_EXAMPLES_TRUE=
27033 WITH_EXAMPLES_FALSE='#'
27034 else
27035 WITH_EXAMPLES_TRUE='#'
27036 WITH_EXAMPLES_FALSE=
27037 fi
27038
27039
27040
27041 build_hcal=yes
27042
27043 # Check whether --enable-hcal or --disable-hcal was given.
27044 if test "${enable_hcal+set}" = set; then
27045 enableval="$enable_hcal"
27046 build_hcal="$enableval"
27047 else
27048 build_hcal=yes
27049 fi;
27050
27051
27052
27053 if test "x$build_hcal" = "xyes"; then
27054 WITH_HCAL_TRUE=
27055 WITH_HCAL_FALSE='#'
27056 else
27057 WITH_HCAL_TRUE='#'
27058 WITH_HCAL_FALSE=
27059 fi
27060
27061
27062
27063
27064
27065
27066
27067 ac_config_files="$ac_config_files Makefile libhdate.spec libhdate.pc intl/Makefile po/Makefile.in src/Makefile examples/Makefile examples/hcal/Makefile examples/ical/Makefile examples/html/Makefile examples/hebcal/Makefile examples/bindings/Makefile bindings/Makefile bindings/python/Makefile bindings/perl/Makefile bindings/pascal/Makefile debian/Makefile"
27068 cat >confcache <<\_ACEOF
27069 # This file is a shell script that caches the results of configure
27070 # tests run on this system so they can be shared between configure
27071 # scripts and configure runs, see configure's option --config-cache.
27072 # It is not useful on other systems. If it contains results you don't
27073 # want to keep, you may remove or edit it.
27074 #
27075 # config.status only pays attention to the cache file if you give it
27076 # the --recheck option to rerun configure.
27077 #
27078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27080 # following values.
27081
27082 _ACEOF
27083
27084 # The following way of writing the cache mishandles newlines in values,
27085 # but we know of no workaround that is simple, portable, and efficient.
27086 # So, don't put newlines in cache variables' values.
27087 # Ultrix sh set writes to stderr and can't be redirected directly,
27088 # and sets the high bit in the cache file unless we assign to the vars.
27089 {
27090 (set) 2>&1 |
27091 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27092 *ac_space=\ *)
27093 # `set' does not quote correctly, so add quotes (double-quote
27094 # substitution turns \\\\ into \\, and sed turns \\ into \).
27095 sed -n \
27096 "s/'/'\\\\''/g;
27097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27098 ;;
27099 *)
27100 # `set' quotes correctly as required by POSIX, so do not add quotes.
27101 sed -n \
27102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27103 ;;
27104 esac;
27105 } |
27106 sed '
27107 t clear
27108 : clear
27109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27110 t end
27111 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27112 : end' >>confcache
27113 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27114 if test -w $cache_file; then
27115 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27116 cat confcache >$cache_file
27117 else
27118 echo "not updating unwritable cache $cache_file"
27119 fi
27120 fi
27121 rm -f confcache
27122
27123 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27124 # Let make expand exec_prefix.
27125 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27126
27127 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27128 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27129 # trailing colons and then remove the whole line if VPATH becomes empty
27130 # (actually we leave an empty line to preserve line numbers).
27131 if test "x$srcdir" = x.; then
27132 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27133 s/:*\$(srcdir):*/:/;
27134 s/:*\${srcdir}:*/:/;
27135 s/:*@srcdir@:*/:/;
27136 s/^\([^=]*=[ ]*\):*/\1/;
27137 s/:*$//;
27138 s/^[^=]*=[ ]*$//;
27139 }'
27140 fi
27141
27142 # Transform confdefs.h into DEFS.
27143 # Protect against shell expansion while executing Makefile rules.
27144 # Protect against Makefile macro expansion.
27145 #
27146 # If the first sed substitution is executed (which looks for macros that
27147 # take arguments), then we branch to the quote section. Otherwise,
27148 # look for a macro that doesn't take arguments.
27149 cat >confdef2opt.sed <<\_ACEOF
27150 t clear
27151 : clear
27152 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
27153 t quote
27154 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
27155 t quote
27156 d
27157 : quote
27158 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
27159 s,\[,\\&,g
27160 s,\],\\&,g
27161 s,\$,$$,g
27162 p
27163 _ACEOF
27164 # We use echo to avoid assuming a particular line-breaking character.
27165 # The extra dot is to prevent the shell from consuming trailing
27166 # line-breaks from the sub-command output. A line-break within
27167 # single-quotes doesn't work because, if this script is created in a
27168 # platform that uses two characters for line-breaks (e.g., DOS), tr
27169 # would break.
27170 ac_LF_and_DOT=`echo; echo .`
27171 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
27172 rm -f confdef2opt.sed
27173
27174
27175 ac_libobjs=
27176 ac_ltlibobjs=
27177 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27178 # 1. Remove the extension, and $U if already installed.
27179 ac_i=`echo "$ac_i" |
27180 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27181 # 2. Add them.
27182 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27183 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27184 done
27185 LIBOBJS=$ac_libobjs
27186
27187 LTLIBOBJS=$ac_ltlibobjs
27188
27189
27190 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27191 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27192 Usually this means the macro was only invoked conditionally." >&5
27193 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27194 Usually this means the macro was only invoked conditionally." >&2;}
27195 { (exit 1); exit 1; }; }
27196 fi
27197 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27198 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27199 Usually this means the macro was only invoked conditionally." >&5
27200 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27201 Usually this means the macro was only invoked conditionally." >&2;}
27202 { (exit 1); exit 1; }; }
27203 fi
27204 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27205 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27206 Usually this means the macro was only invoked conditionally." >&5
27207 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27208 Usually this means the macro was only invoked conditionally." >&2;}
27209 { (exit 1); exit 1; }; }
27210 fi
27211 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27212 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27213 Usually this means the macro was only invoked conditionally." >&5
27214 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27215 Usually this means the macro was only invoked conditionally." >&2;}
27216 { (exit 1); exit 1; }; }
27217 fi
27218 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27219 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27220 Usually this means the macro was only invoked conditionally." >&5
27221 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27222 Usually this means the macro was only invoked conditionally." >&2;}
27223 { (exit 1); exit 1; }; }
27224 fi
27225 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27226 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27227 Usually this means the macro was only invoked conditionally." >&5
27228 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27229 Usually this means the macro was only invoked conditionally." >&2;}
27230 { (exit 1); exit 1; }; }
27231 fi
27232 if test -z "${WITH_PASCAL_TRUE}" && test -z "${WITH_PASCAL_FALSE}"; then
27233 { { echo "$as_me:$LINENO: error: conditional \"WITH_PASCAL\" was never defined.
27234 Usually this means the macro was only invoked conditionally." >&5
27235 echo "$as_me: error: conditional \"WITH_PASCAL\" was never defined.
27236 Usually this means the macro was only invoked conditionally." >&2;}
27237 { (exit 1); exit 1; }; }
27238 fi
27239 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
27240 { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
27241 Usually this means the macro was only invoked conditionally." >&5
27242 echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
27243 Usually this means the macro was only invoked conditionally." >&2;}
27244 { (exit 1); exit 1; }; }
27245 fi
27246 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
27247 { { echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
27248 Usually this means the macro was only invoked conditionally." >&5
27249 echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
27250 Usually this means the macro was only invoked conditionally." >&2;}
27251 { (exit 1); exit 1; }; }
27252 fi
27253 if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
27254 { { echo "$as_me:$LINENO: error: conditional \"WITH_EXAMPLES\" was never defined.
27255 Usually this means the macro was only invoked conditionally." >&5
27256 echo "$as_me: error: conditional \"WITH_EXAMPLES\" was never defined.
27257 Usually this means the macro was only invoked conditionally." >&2;}
27258 { (exit 1); exit 1; }; }
27259 fi
27260 if test -z "${WITH_HCAL_TRUE}" && test -z "${WITH_HCAL_FALSE}"; then
27261 { { echo "$as_me:$LINENO: error: conditional \"WITH_HCAL\" was never defined.
27262 Usually this means the macro was only invoked conditionally." >&5
27263 echo "$as_me: error: conditional \"WITH_HCAL\" was never defined.
27264 Usually this means the macro was only invoked conditionally." >&2;}
27265 { (exit 1); exit 1; }; }
27266 fi
27267
27268 : ${CONFIG_STATUS=./config.status}
27269 ac_clean_files_save=$ac_clean_files
27270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27271 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27272 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27273 cat >$CONFIG_STATUS <<_ACEOF
27274 #! $SHELL
27275 # Generated by $as_me.
27276 # Run this file to recreate the current configuration.
27277 # Compiler output produced by configure, useful for debugging
27278 # configure, is in config.log if it exists.
27279
27280 debug=false
27281 ac_cs_recheck=false
27282 ac_cs_silent=false
27283 SHELL=\${CONFIG_SHELL-$SHELL}
27284 _ACEOF
27285
27286 cat >>$CONFIG_STATUS <<\_ACEOF
27287 ## --------------------- ##
27288 ## M4sh Initialization. ##
27289 ## --------------------- ##
27290
27291 # Be Bourne compatible
27292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27293 emulate sh
27294 NULLCMD=:
27295 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27296 # is contrary to our usage. Disable this feature.
27297 alias -g '${1+"$@"}'='"$@"'
27298 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27299 set -o posix
27300 fi
27301 DUALCASE=1; export DUALCASE # for MKS sh
27302
27303 # Support unset when possible.
27304 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27305 as_unset=unset
27306 else
27307 as_unset=false
27308 fi
27309
27310
27311 # Work around bugs in pre-3.0 UWIN ksh.
27312 $as_unset ENV MAIL MAILPATH
27313 PS1='$ '
27314 PS2='> '
27315 PS4='+ '
27316
27317 # NLS nuisances.
27318 for as_var in \
27319 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27320 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27321 LC_TELEPHONE LC_TIME
27322 do
27323 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27324 eval $as_var=C; export $as_var
27325 else
27326 $as_unset $as_var
27327 fi
27328 done
27329
27330 # Required to use basename.
27331 if expr a : '\(a\)' >/dev/null 2>&1; then
27332 as_expr=expr
27333 else
27334 as_expr=false
27335 fi
27336
27337 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27338 as_basename=basename
27339 else
27340 as_basename=false
27341 fi
27342
27343
27344 # Name of the executable.
27345 as_me=`$as_basename "$0" ||
27346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27347 X"$0" : 'X\(//\)$' \| \
27348 X"$0" : 'X\(/\)$' \| \
27349 . : '\(.\)' 2>/dev/null ||
27350 echo X/"$0" |
27351 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27352 /^X\/\(\/\/\)$/{ s//\1/; q; }
27353 /^X\/\(\/\).*/{ s//\1/; q; }
27354 s/.*/./; q'`
27355
27356
27357 # PATH needs CR, and LINENO needs CR and PATH.
27358 # Avoid depending upon Character Ranges.
27359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27362 as_cr_digits='0123456789'
27363 as_cr_alnum=$as_cr_Letters$as_cr_digits
27364
27365 # The user is always right.
27366 if test "${PATH_SEPARATOR+set}" != set; then
27367 echo "#! /bin/sh" >conf$$.sh
27368 echo "exit 0" >>conf$$.sh
27369 chmod +x conf$$.sh
27370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27371 PATH_SEPARATOR=';'
27372 else
27373 PATH_SEPARATOR=:
27374 fi
27375 rm -f conf$$.sh
27376 fi
27377
27378
27379 as_lineno_1=$LINENO
27380 as_lineno_2=$LINENO
27381 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27382 test "x$as_lineno_1" != "x$as_lineno_2" &&
27383 test "x$as_lineno_3" = "x$as_lineno_2" || {
27384 # Find who we are. Look in the path if we contain no path at all
27385 # relative or not.
27386 case $0 in
27387 *[\\/]* ) as_myself=$0 ;;
27388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27389 for as_dir in $PATH
27390 do
27391 IFS=$as_save_IFS
27392 test -z "$as_dir" && as_dir=.
27393 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27394 done
27395
27396 ;;
27397 esac
27398 # We did not find ourselves, most probably we were run as `sh COMMAND'
27399 # in which case we are not to be found in the path.
27400 if test "x$as_myself" = x; then
27401 as_myself=$0
27402 fi
27403 if test ! -f "$as_myself"; then
27404 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27405 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27406 { (exit 1); exit 1; }; }
27407 fi
27408 case $CONFIG_SHELL in
27409 '')
27410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27411 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27412 do
27413 IFS=$as_save_IFS
27414 test -z "$as_dir" && as_dir=.
27415 for as_base in sh bash ksh sh5; do
27416 case $as_dir in
27417 /*)
27418 if ("$as_dir/$as_base" -c '
27419 as_lineno_1=$LINENO
27420 as_lineno_2=$LINENO
27421 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27422 test "x$as_lineno_1" != "x$as_lineno_2" &&
27423 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27424 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27425 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27426 CONFIG_SHELL=$as_dir/$as_base
27427 export CONFIG_SHELL
27428 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27429 fi;;
27430 esac
27431 done
27432 done
27433 ;;
27434 esac
27435
27436 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27437 # uniformly replaced by the line number. The first 'sed' inserts a
27438 # line-number line before each line; the second 'sed' does the real
27439 # work. The second script uses 'N' to pair each line-number line
27440 # with the numbered line, and appends trailing '-' during
27441 # substitution so that $LINENO is not a special case at line end.
27442 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27443 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27444 sed '=' <$as_myself |
27445 sed '
27446 N
27447 s,$,-,
27448 : loop
27449 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27450 t loop
27451 s,-$,,
27452 s,^['$as_cr_digits']*\n,,
27453 ' >$as_me.lineno &&
27454 chmod +x $as_me.lineno ||
27455 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27456 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27457 { (exit 1); exit 1; }; }
27458
27459 # Don't try to exec as it changes $[0], causing all sort of problems
27460 # (the dirname of $[0] is not the place where we might find the
27461 # original and so on. Autoconf is especially sensible to this).
27462 . ./$as_me.lineno
27463 # Exit status is that of the last command.
27464 exit
27465 }
27466
27467
27468 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27469 *c*,-n*) ECHO_N= ECHO_C='
27470 ' ECHO_T=' ' ;;
27471 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27472 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27473 esac
27474
27475 if expr a : '\(a\)' >/dev/null 2>&1; then
27476 as_expr=expr
27477 else
27478 as_expr=false
27479 fi
27480
27481 rm -f conf$$ conf$$.exe conf$$.file
27482 echo >conf$$.file
27483 if ln -s conf$$.file conf$$ 2>/dev/null; then
27484 # We could just check for DJGPP; but this test a) works b) is more generic
27485 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27486 if test -f conf$$.exe; then
27487 # Don't use ln at all; we don't have any links
27488 as_ln_s='cp -p'
27489 else
27490 as_ln_s='ln -s'
27491 fi
27492 elif ln conf$$.file conf$$ 2>/dev/null; then
27493 as_ln_s=ln
27494 else
27495 as_ln_s='cp -p'
27496 fi
27497 rm -f conf$$ conf$$.exe conf$$.file
27498
27499 if mkdir -p . 2>/dev/null; then
27500 as_mkdir_p=:
27501 else
27502 test -d ./-p && rmdir ./-p
27503 as_mkdir_p=false
27504 fi
27505
27506 as_executable_p="test -f"
27507
27508 # Sed expression to map a string onto a valid CPP name.
27509 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27510
27511 # Sed expression to map a string onto a valid variable name.
27512 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27513
27514
27515 # IFS
27516 # We need space, tab and new line, in precisely that order.
27517 as_nl='
27518 '
27519 IFS=" $as_nl"
27520
27521 # CDPATH.
27522 $as_unset CDPATH
27523
27524 exec 6>&1
27525
27526 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27527 # report actual input values of CONFIG_FILES etc. instead of their
27528 # values after options handling. Logging --version etc. is OK.
27529 exec 5>>config.log
27530 {
27531 echo
27532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27533 ## Running $as_me. ##
27534 _ASBOX
27535 } >&5
27536 cat >&5 <<_CSEOF
27537
27538 This file was extended by $as_me, which was
27539 generated by GNU Autoconf 2.59. Invocation command line was
27540
27541 CONFIG_FILES = $CONFIG_FILES
27542 CONFIG_HEADERS = $CONFIG_HEADERS
27543 CONFIG_LINKS = $CONFIG_LINKS
27544 CONFIG_COMMANDS = $CONFIG_COMMANDS
27545 $ $0 $@
27546
27547 _CSEOF
27548 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27549 echo >&5
27550 _ACEOF
27551
27552 # Files that config.status was made for.
27553 if test -n "$ac_config_files"; then
27554 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27555 fi
27556
27557 if test -n "$ac_config_headers"; then
27558 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27559 fi
27560
27561 if test -n "$ac_config_links"; then
27562 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27563 fi
27564
27565 if test -n "$ac_config_commands"; then
27566 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27567 fi
27568
27569 cat >>$CONFIG_STATUS <<\_ACEOF
27570
27571 ac_cs_usage="\
27572 \`$as_me' instantiates files from templates according to the
27573 current configuration.
27574
27575 Usage: $0 [OPTIONS] [FILE]...
27576
27577 -h, --help print this help, then exit
27578 -V, --version print version number, then exit
27579 -q, --quiet do not print progress messages
27580 -d, --debug don't remove temporary files
27581 --recheck update $as_me by reconfiguring in the same conditions
27582 --file=FILE[:TEMPLATE]
27583 instantiate the configuration file FILE
27584
27585 Configuration files:
27586 $config_files
27587
27588 Configuration commands:
27589 $config_commands
27590
27591 Report bugs to <bug-autoconf@gnu.org>."
27592 _ACEOF
27593
27594 cat >>$CONFIG_STATUS <<_ACEOF
27595 ac_cs_version="\\
27596 config.status
27597 configured by $0, generated by GNU Autoconf 2.59,
27598 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27599
27600 Copyright (C) 2003 Free Software Foundation, Inc.
27601 This config.status script is free software; the Free Software Foundation
27602 gives unlimited permission to copy, distribute and modify it."
27603 srcdir=$srcdir
27604 INSTALL="$INSTALL"
27605 _ACEOF
27606
27607 cat >>$CONFIG_STATUS <<\_ACEOF
27608 # If no file are specified by the user, then we need to provide default
27609 # value. By we need to know if files were specified by the user.
27610 ac_need_defaults=:
27611 while test $# != 0
27612 do
27613 case $1 in
27614 --*=*)
27615 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27616 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27617 ac_shift=:
27618 ;;
27619 -*)
27620 ac_option=$1
27621 ac_optarg=$2
27622 ac_shift=shift
27623 ;;
27624 *) # This is not an option, so the user has probably given explicit
27625 # arguments.
27626 ac_option=$1
27627 ac_need_defaults=false;;
27628 esac
27629
27630 case $ac_option in
27631 # Handling of the options.
27632 _ACEOF
27633 cat >>$CONFIG_STATUS <<\_ACEOF
27634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27635 ac_cs_recheck=: ;;
27636 --version | --vers* | -V )
27637 echo "$ac_cs_version"; exit 0 ;;
27638 --he | --h)
27639 # Conflict between --help and --header
27640 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27641 Try \`$0 --help' for more information." >&5
27642 echo "$as_me: error: ambiguous option: $1
27643 Try \`$0 --help' for more information." >&2;}
27644 { (exit 1); exit 1; }; };;
27645 --help | --hel | -h )
27646 echo "$ac_cs_usage"; exit 0 ;;
27647 --debug | --d* | -d )
27648 debug=: ;;
27649 --file | --fil | --fi | --f )
27650 $ac_shift
27651 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27652 ac_need_defaults=false;;
27653 --header | --heade | --head | --hea )
27654 $ac_shift
27655 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27656 ac_need_defaults=false;;
27657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27659 ac_cs_silent=: ;;
27660
27661 # This is an error.
27662 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27663 Try \`$0 --help' for more information." >&5
27664 echo "$as_me: error: unrecognized option: $1
27665 Try \`$0 --help' for more information." >&2;}
27666 { (exit 1); exit 1; }; } ;;
27667
27668 *) ac_config_targets="$ac_config_targets $1" ;;
27669
27670 esac
27671 shift
27672 done
27673
27674 ac_configure_extra_args=
27675
27676 if $ac_cs_silent; then
27677 exec 6>/dev/null
27678 ac_configure_extra_args="$ac_configure_extra_args --silent"
27679 fi
27680
27681 _ACEOF
27682 cat >>$CONFIG_STATUS <<_ACEOF
27683 if \$ac_cs_recheck; then
27684 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27685 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27686 fi
27687
27688 _ACEOF
27689
27690 cat >>$CONFIG_STATUS <<_ACEOF
27691 #
27692 # INIT-COMMANDS section.
27693 #
27694
27695 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27696 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27697 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
27698 # from automake.
27699 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27700 # Capture the value of LINGUAS because we need it to compute CATALOGS.
27701 LINGUAS="${LINGUAS-%UNSET%}"
27702
27703
27704 _ACEOF
27705
27706
27707
27708 cat >>$CONFIG_STATUS <<\_ACEOF
27709 for ac_config_target in $ac_config_targets
27710 do
27711 case "$ac_config_target" in
27712 # Handling of arguments.
27713 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27714 "libhdate.spec" ) CONFIG_FILES="$CONFIG_FILES libhdate.spec" ;;
27715 "libhdate.pc" ) CONFIG_FILES="$CONFIG_FILES libhdate.pc" ;;
27716 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
27717 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27718 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27719 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27720 "examples/hcal/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/hcal/Makefile" ;;
27721 "examples/ical/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/ical/Makefile" ;;
27722 "examples/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/html/Makefile" ;;
27723 "examples/hebcal/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/hebcal/Makefile" ;;
27724 "examples/bindings/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/bindings/Makefile" ;;
27725 "bindings/Makefile" ) CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
27726 "bindings/python/Makefile" ) CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
27727 "bindings/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES bindings/perl/Makefile" ;;
27728 "bindings/pascal/Makefile" ) CONFIG_FILES="$CONFIG_FILES bindings/pascal/Makefile" ;;
27729 "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
27730 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27731 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27732 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27733 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27734 { (exit 1); exit 1; }; };;
27735 esac
27736 done
27737
27738 # If the user did not use the arguments to specify the items to instantiate,
27739 # then the envvar interface is used. Set only those that are not.
27740 # We use the long form for the default assignment because of an extremely
27741 # bizarre bug on SunOS 4.1.3.
27742 if $ac_need_defaults; then
27743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27744 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27745 fi
27746
27747 # Have a temporary directory for convenience. Make it in the build tree
27748 # simply because there is no reason to put it here, and in addition,
27749 # creating and moving files from /tmp can sometimes cause problems.
27750 # Create a temporary directory, and hook for its removal unless debugging.
27751 $debug ||
27752 {
27753 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27754 trap '{ (exit 1); exit 1; }' 1 2 13 15
27755 }
27756
27757 # Create a (secure) tmp directory for tmp files.
27758
27759 {
27760 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27761 test -n "$tmp" && test -d "$tmp"
27762 } ||
27763 {
27764 tmp=./confstat$$-$RANDOM
27765 (umask 077 && mkdir $tmp)
27766 } ||
27767 {
27768 echo "$me: cannot create a temporary directory in ." >&2
27769 { (exit 1); exit 1; }
27770 }
27771
27772 _ACEOF
27773
27774 cat >>$CONFIG_STATUS <<_ACEOF
27775
27776 #
27777 # CONFIG_FILES section.
27778 #
27779
27780 # No need to generate the scripts if there are no CONFIG_FILES.
27781 # This happens for instance when ./config.status config.h
27782 if test -n "\$CONFIG_FILES"; then
27783 # Protect against being on the right side of a sed subst in config.status.
27784 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27785 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27786 s,@SHELL@,$SHELL,;t t
27787 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27788 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27789 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27790 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27791 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27792 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27793 s,@exec_prefix@,$exec_prefix,;t t
27794 s,@prefix@,$prefix,;t t
27795 s,@program_transform_name@,$program_transform_name,;t t
27796 s,@bindir@,$bindir,;t t
27797 s,@sbindir@,$sbindir,;t t
27798 s,@libexecdir@,$libexecdir,;t t
27799 s,@datadir@,$datadir,;t t
27800 s,@sysconfdir@,$sysconfdir,;t t
27801 s,@sharedstatedir@,$sharedstatedir,;t t
27802 s,@localstatedir@,$localstatedir,;t t
27803 s,@libdir@,$libdir,;t t
27804 s,@includedir@,$includedir,;t t
27805 s,@oldincludedir@,$oldincludedir,;t t
27806 s,@infodir@,$infodir,;t t
27807 s,@mandir@,$mandir,;t t
27808 s,@build_alias@,$build_alias,;t t
27809 s,@host_alias@,$host_alias,;t t
27810 s,@target_alias@,$target_alias,;t t
27811 s,@DEFS@,$DEFS,;t t
27812 s,@ECHO_C@,$ECHO_C,;t t
27813 s,@ECHO_N@,$ECHO_N,;t t
27814 s,@ECHO_T@,$ECHO_T,;t t
27815 s,@LIBS@,$LIBS,;t t
27816 s,@VERSION_INFO@,$VERSION_INFO,;t t
27817 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27818 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27819 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27820 s,@CYGPATH_W@,$CYGPATH_W,;t t
27821 s,@PACKAGE@,$PACKAGE,;t t
27822 s,@VERSION@,$VERSION,;t t
27823 s,@ACLOCAL@,$ACLOCAL,;t t
27824 s,@AUTOCONF@,$AUTOCONF,;t t
27825 s,@AUTOMAKE@,$AUTOMAKE,;t t
27826 s,@AUTOHEADER@,$AUTOHEADER,;t t
27827 s,@MAKEINFO@,$MAKEINFO,;t t
27828 s,@AMTAR@,$AMTAR,;t t
27829 s,@install_sh@,$install_sh,;t t
27830 s,@STRIP@,$STRIP,;t t
27831 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27832 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27833 s,@AWK@,$AWK,;t t
27834 s,@SET_MAKE@,$SET_MAKE,;t t
27835 s,@am__leading_dot@,$am__leading_dot,;t t
27836 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
27837 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
27838 s,@MAINT@,$MAINT,;t t
27839 s,@CC@,$CC,;t t
27840 s,@CFLAGS@,$CFLAGS,;t t
27841 s,@LDFLAGS@,$LDFLAGS,;t t
27842 s,@CPPFLAGS@,$CPPFLAGS,;t t
27843 s,@ac_ct_CC@,$ac_ct_CC,;t t
27844 s,@EXEEXT@,$EXEEXT,;t t
27845 s,@OBJEXT@,$OBJEXT,;t t
27846 s,@DEPDIR@,$DEPDIR,;t t
27847 s,@am__include@,$am__include,;t t
27848 s,@am__quote@,$am__quote,;t t
27849 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27850 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27851 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27852 s,@CCDEPMODE@,$CCDEPMODE,;t t
27853 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27854 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27855 s,@LN_S@,$LN_S,;t t
27856 s,@CPP@,$CPP,;t t
27857 s,@EGREP@,$EGREP,;t t
27858 s,@build@,$build,;t t
27859 s,@build_cpu@,$build_cpu,;t t
27860 s,@build_vendor@,$build_vendor,;t t
27861 s,@build_os@,$build_os,;t t
27862 s,@host@,$host,;t t
27863 s,@host_cpu@,$host_cpu,;t t
27864 s,@host_vendor@,$host_vendor,;t t
27865 s,@host_os@,$host_os,;t t
27866 s,@ECHO@,$ECHO,;t t
27867 s,@AR@,$AR,;t t
27868 s,@ac_ct_AR@,$ac_ct_AR,;t t
27869 s,@RANLIB@,$RANLIB,;t t
27870 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27871 s,@CXX@,$CXX,;t t
27872 s,@CXXFLAGS@,$CXXFLAGS,;t t
27873 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27874 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27875 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27876 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27877 s,@CXXCPP@,$CXXCPP,;t t
27878 s,@F77@,$F77,;t t
27879 s,@FFLAGS@,$FFLAGS,;t t
27880 s,@ac_ct_F77@,$ac_ct_F77,;t t
27881 s,@LIBTOOL@,$LIBTOOL,;t t
27882 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27883 s,@have_swig@,$have_swig,;t t
27884 s,@have_pascal@,$have_pascal,;t t
27885 s,@PA_MODULES_PATH@,$PA_MODULES_PATH,;t t
27886 s,@WITH_PASCAL_TRUE@,$WITH_PASCAL_TRUE,;t t
27887 s,@WITH_PASCAL_FALSE@,$WITH_PASCAL_FALSE,;t t
27888 s,@have_python@,$have_python,;t t
27889 s,@PY_CFLAGS@,$PY_CFLAGS,;t t
27890 s,@PY_MODULES_PATH@,$PY_MODULES_PATH,;t t
27891 s,@WITH_PYTHON_TRUE@,$WITH_PYTHON_TRUE,;t t
27892 s,@WITH_PYTHON_FALSE@,$WITH_PYTHON_FALSE,;t t
27893 s,@have_perl@,$have_perl,;t t
27894 s,@PE_CFLAGS@,$PE_CFLAGS,;t t
27895 s,@PE_MODULES_PATH@,$PE_MODULES_PATH,;t t
27896 s,@WITH_PERL_TRUE@,$WITH_PERL_TRUE,;t t
27897 s,@WITH_PERL_FALSE@,$WITH_PERL_FALSE,;t t
27898 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
27899 s,@USE_NLS@,$USE_NLS,;t t
27900 s,@MSGFMT@,$MSGFMT,;t t
27901 s,@GMSGFMT@,$GMSGFMT,;t t
27902 s,@XGETTEXT@,$XGETTEXT,;t t
27903 s,@MSGMERGE@,$MSGMERGE,;t t
27904 s,@GLIBC2@,$GLIBC2,;t t
27905 s,@ALLOCA@,$ALLOCA,;t t
27906 s,@GLIBC21@,$GLIBC21,;t t
27907 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
27908 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
27909 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
27910 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
27911 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
27912 s,@LIBICONV@,$LIBICONV,;t t
27913 s,@LTLIBICONV@,$LTLIBICONV,;t t
27914 s,@INTLBISON@,$INTLBISON,;t t
27915 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
27916 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
27917 s,@CATOBJEXT@,$CATOBJEXT,;t t
27918 s,@DATADIRNAME@,$DATADIRNAME,;t t
27919 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
27920 s,@GENCAT@,$GENCAT,;t t
27921 s,@INTLOBJS@,$INTLOBJS,;t t
27922 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
27923 s,@INTLLIBS@,$INTLLIBS,;t t
27924 s,@LIBINTL@,$LIBINTL,;t t
27925 s,@LTLIBINTL@,$LTLIBINTL,;t t
27926 s,@POSUB@,$POSUB,;t t
27927 s,@WITH_EXAMPLES_TRUE@,$WITH_EXAMPLES_TRUE,;t t
27928 s,@WITH_EXAMPLES_FALSE@,$WITH_EXAMPLES_FALSE,;t t
27929 s,@WITH_HCAL_TRUE@,$WITH_HCAL_TRUE,;t t
27930 s,@WITH_HCAL_FALSE@,$WITH_HCAL_FALSE,;t t
27931 s,@LIBOBJS@,$LIBOBJS,;t t
27932 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27933 CEOF
27934
27935 _ACEOF
27936
27937 cat >>$CONFIG_STATUS <<\_ACEOF
27938 # Split the substitutions into bite-sized pieces for seds with
27939 # small command number limits, like on Digital OSF/1 and HP-UX.
27940 ac_max_sed_lines=48
27941 ac_sed_frag=1 # Number of current file.
27942 ac_beg=1 # First line for current file.
27943 ac_end=$ac_max_sed_lines # Line after last line for current file.
27944 ac_more_lines=:
27945 ac_sed_cmds=
27946 while $ac_more_lines; do
27947 if test $ac_beg -gt 1; then
27948 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27949 else
27950 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27951 fi
27952 if test ! -s $tmp/subs.frag; then
27953 ac_more_lines=false
27954 else
27955 # The purpose of the label and of the branching condition is to
27956 # speed up the sed processing (if there are no `@' at all, there
27957 # is no need to browse any of the substitutions).
27958 # These are the two extra sed commands mentioned above.
27959 (echo ':t
27960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27961 if test -z "$ac_sed_cmds"; then
27962 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27963 else
27964 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27965 fi
27966 ac_sed_frag=`expr $ac_sed_frag + 1`
27967 ac_beg=$ac_end
27968 ac_end=`expr $ac_end + $ac_max_sed_lines`
27969 fi
27970 done
27971 if test -z "$ac_sed_cmds"; then
27972 ac_sed_cmds=cat
27973 fi
27974 fi # test -n "$CONFIG_FILES"
27975
27976 _ACEOF
27977 cat >>$CONFIG_STATUS <<\_ACEOF
27978 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27980 case $ac_file in
27981 - | *:- | *:-:* ) # input from stdin
27982 cat >$tmp/stdin
27983 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27985 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27987 * ) ac_file_in=$ac_file.in ;;
27988 esac
27989
27990 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27991 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27993 X"$ac_file" : 'X\(//\)[^/]' \| \
27994 X"$ac_file" : 'X\(//\)$' \| \
27995 X"$ac_file" : 'X\(/\)' \| \
27996 . : '\(.\)' 2>/dev/null ||
27997 echo X"$ac_file" |
27998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28000 /^X\(\/\/\)$/{ s//\1/; q; }
28001 /^X\(\/\).*/{ s//\1/; q; }
28002 s/.*/./; q'`
28003 { if $as_mkdir_p; then
28004 mkdir -p "$ac_dir"
28005 else
28006 as_dir="$ac_dir"
28007 as_dirs=
28008 while test ! -d "$as_dir"; do
28009 as_dirs="$as_dir $as_dirs"
28010 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28012 X"$as_dir" : 'X\(//\)[^/]' \| \
28013 X"$as_dir" : 'X\(//\)$' \| \
28014 X"$as_dir" : 'X\(/\)' \| \
28015 . : '\(.\)' 2>/dev/null ||
28016 echo X"$as_dir" |
28017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28019 /^X\(\/\/\)$/{ s//\1/; q; }
28020 /^X\(\/\).*/{ s//\1/; q; }
28021 s/.*/./; q'`
28022 done
28023 test ! -n "$as_dirs" || mkdir $as_dirs
28024 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28026 { (exit 1); exit 1; }; }; }
28027
28028 ac_builddir=.
28029
28030 if test "$ac_dir" != .; then
28031 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28032 # A "../" for each directory in $ac_dir_suffix.
28033 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28034 else
28035 ac_dir_suffix= ac_top_builddir=
28036 fi
28037
28038 case $srcdir in
28039 .) # No --srcdir option. We are building in place.
28040 ac_srcdir=.
28041 if test -z "$ac_top_builddir"; then
28042 ac_top_srcdir=.
28043 else
28044 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28045 fi ;;
28046 [\\/]* | ?:[\\/]* ) # Absolute path.
28047 ac_srcdir=$srcdir$ac_dir_suffix;
28048 ac_top_srcdir=$srcdir ;;
28049 *) # Relative path.
28050 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28051 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28052 esac
28053
28054 # Do not use `cd foo && pwd` to compute absolute paths, because
28055 # the directories may not exist.
28056 case `pwd` in
28057 .) ac_abs_builddir="$ac_dir";;
28058 *)
28059 case "$ac_dir" in
28060 .) ac_abs_builddir=`pwd`;;
28061 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28062 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28063 esac;;
28064 esac
28065 case $ac_abs_builddir in
28066 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28067 *)
28068 case ${ac_top_builddir}. in
28069 .) ac_abs_top_builddir=$ac_abs_builddir;;
28070 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28071 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28072 esac;;
28073 esac
28074 case $ac_abs_builddir in
28075 .) ac_abs_srcdir=$ac_srcdir;;
28076 *)
28077 case $ac_srcdir in
28078 .) ac_abs_srcdir=$ac_abs_builddir;;
28079 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28080 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28081 esac;;
28082 esac
28083 case $ac_abs_builddir in
28084 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28085 *)
28086 case $ac_top_srcdir in
28087 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28088 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28089 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28090 esac;;
28091 esac
28092
28093
28094 case $INSTALL in
28095 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28096 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28097 esac
28098
28099 # Let's still pretend it is `configure' which instantiates (i.e., don't
28100 # use $as_me), people would be surprised to read:
28101 # /* config.h. Generated by config.status. */
28102 if test x"$ac_file" = x-; then
28103 configure_input=
28104 else
28105 configure_input="$ac_file. "
28106 fi
28107 configure_input=$configure_input"Generated from `echo $ac_file_in |
28108 sed 's,.*/,,'` by configure."
28109
28110 # First look for the input files in the build tree, otherwise in the
28111 # src tree.
28112 ac_file_inputs=`IFS=:
28113 for f in $ac_file_in; do
28114 case $f in
28115 -) echo $tmp/stdin ;;
28116 [\\/$]*)
28117 # Absolute (can't be DOS-style, as IFS=:)
28118 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28119 echo "$as_me: error: cannot find input file: $f" >&2;}
28120 { (exit 1); exit 1; }; }
28121 echo "$f";;
28122 *) # Relative
28123 if test -f "$f"; then
28124 # Build tree
28125 echo "$f"
28126 elif test -f "$srcdir/$f"; then
28127 # Source tree
28128 echo "$srcdir/$f"
28129 else
28130 # /dev/null tree
28131 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28132 echo "$as_me: error: cannot find input file: $f" >&2;}
28133 { (exit 1); exit 1; }; }
28134 fi;;
28135 esac
28136 done` || { (exit 1); exit 1; }
28137
28138 if test x"$ac_file" != x-; then
28139 { echo "$as_me:$LINENO: creating $ac_file" >&5
28140 echo "$as_me: creating $ac_file" >&6;}
28141 rm -f "$ac_file"
28142 fi
28143 _ACEOF
28144 cat >>$CONFIG_STATUS <<_ACEOF
28145 sed "$ac_vpsub
28146 $extrasub
28147 _ACEOF
28148 cat >>$CONFIG_STATUS <<\_ACEOF
28149 :t
28150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28151 s,@configure_input@,$configure_input,;t t
28152 s,@srcdir@,$ac_srcdir,;t t
28153 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28154 s,@top_srcdir@,$ac_top_srcdir,;t t
28155 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28156 s,@builddir@,$ac_builddir,;t t
28157 s,@abs_builddir@,$ac_abs_builddir,;t t
28158 s,@top_builddir@,$ac_top_builddir,;t t
28159 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28160 s,@INSTALL@,$ac_INSTALL,;t t
28161 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28162 rm -f $tmp/stdin
28163 if test x"$ac_file" != x-; then
28164 mv $tmp/out $ac_file
28165 else
28166 cat $tmp/out
28167 rm -f $tmp/out
28168 fi
28169
28170 done
28171 _ACEOF
28172 cat >>$CONFIG_STATUS <<\_ACEOF
28173
28174 #
28175 # CONFIG_COMMANDS section.
28176 #
28177 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28178 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28179 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28180 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28181 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28182 X"$ac_dest" : 'X\(//\)[^/]' \| \
28183 X"$ac_dest" : 'X\(//\)$' \| \
28184 X"$ac_dest" : 'X\(/\)' \| \
28185 . : '\(.\)' 2>/dev/null ||
28186 echo X"$ac_dest" |
28187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28189 /^X\(\/\/\)$/{ s//\1/; q; }
28190 /^X\(\/\).*/{ s//\1/; q; }
28191 s/.*/./; q'`
28192 { if $as_mkdir_p; then
28193 mkdir -p "$ac_dir"
28194 else
28195 as_dir="$ac_dir"
28196 as_dirs=
28197 while test ! -d "$as_dir"; do
28198 as_dirs="$as_dir $as_dirs"
28199 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28201 X"$as_dir" : 'X\(//\)[^/]' \| \
28202 X"$as_dir" : 'X\(//\)$' \| \
28203 X"$as_dir" : 'X\(/\)' \| \
28204 . : '\(.\)' 2>/dev/null ||
28205 echo X"$as_dir" |
28206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28208 /^X\(\/\/\)$/{ s//\1/; q; }
28209 /^X\(\/\).*/{ s//\1/; q; }
28210 s/.*/./; q'`
28211 done
28212 test ! -n "$as_dirs" || mkdir $as_dirs
28213 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28214 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28215 { (exit 1); exit 1; }; }; }
28216
28217 ac_builddir=.
28218
28219 if test "$ac_dir" != .; then
28220 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28221 # A "../" for each directory in $ac_dir_suffix.
28222 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28223 else
28224 ac_dir_suffix= ac_top_builddir=
28225 fi
28226
28227 case $srcdir in
28228 .) # No --srcdir option. We are building in place.
28229 ac_srcdir=.
28230 if test -z "$ac_top_builddir"; then
28231 ac_top_srcdir=.
28232 else
28233 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28234 fi ;;
28235 [\\/]* | ?:[\\/]* ) # Absolute path.
28236 ac_srcdir=$srcdir$ac_dir_suffix;
28237 ac_top_srcdir=$srcdir ;;
28238 *) # Relative path.
28239 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28240 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28241 esac
28242
28243 # Do not use `cd foo && pwd` to compute absolute paths, because
28244 # the directories may not exist.
28245 case `pwd` in
28246 .) ac_abs_builddir="$ac_dir";;
28247 *)
28248 case "$ac_dir" in
28249 .) ac_abs_builddir=`pwd`;;
28250 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28251 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28252 esac;;
28253 esac
28254 case $ac_abs_builddir in
28255 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28256 *)
28257 case ${ac_top_builddir}. in
28258 .) ac_abs_top_builddir=$ac_abs_builddir;;
28259 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28260 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28261 esac;;
28262 esac
28263 case $ac_abs_builddir in
28264 .) ac_abs_srcdir=$ac_srcdir;;
28265 *)
28266 case $ac_srcdir in
28267 .) ac_abs_srcdir=$ac_abs_builddir;;
28268 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28269 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28270 esac;;
28271 esac
28272 case $ac_abs_builddir in
28273 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28274 *)
28275 case $ac_top_srcdir in
28276 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28277 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28278 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28279 esac;;
28280 esac
28281
28282
28283 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28284 echo "$as_me: executing $ac_dest commands" >&6;}
28285 case $ac_dest in
28286 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28287 # Strip MF so we end up with the name of the file.
28288 mf=`echo "$mf" | sed -e 's/:.*$//'`
28289 # Check whether this is an Automake generated Makefile or not.
28290 # We used to match only the files named `Makefile.in', but
28291 # some people rename them; so instead we look at the file content.
28292 # Grep'ing the first line is not enough: some people post-process
28293 # each Makefile.in and add a new line on top of each file to say so.
28294 # So let's grep whole file.
28295 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28296 dirpart=`(dirname "$mf") 2>/dev/null ||
28297 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28298 X"$mf" : 'X\(//\)[^/]' \| \
28299 X"$mf" : 'X\(//\)$' \| \
28300 X"$mf" : 'X\(/\)' \| \
28301 . : '\(.\)' 2>/dev/null ||
28302 echo X"$mf" |
28303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28305 /^X\(\/\/\)$/{ s//\1/; q; }
28306 /^X\(\/\).*/{ s//\1/; q; }
28307 s/.*/./; q'`
28308 else
28309 continue
28310 fi
28311 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
28312 # Extract the definition of DEP_FILES from the Makefile without
28313 # running `make'.
28314 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
28315 test -z "$DEPDIR" && continue
28316 # When using ansi2knr, U may be empty or an underscore; expand it
28317 U=`sed -n -e '/^U = / s///p' < "$mf"`
28318 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
28319 # We invoke sed twice because it is the simplest approach to
28320 # changing $(DEPDIR) to its actual value in the expansion.
28321 for file in `sed -n -e '
28322 /^DEP_FILES = .*\\\\$/ {
28323 s/^DEP_FILES = //
28324 :loop
28325 s/\\\\$//
28326 p
28327 n
28328 /\\\\$/ b loop
28329 p
28330 }
28331 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
28332 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28333 # Make sure the directory exists.
28334 test -f "$dirpart/$file" && continue
28335 fdir=`(dirname "$file") 2>/dev/null ||
28336 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28337 X"$file" : 'X\(//\)[^/]' \| \
28338 X"$file" : 'X\(//\)$' \| \
28339 X"$file" : 'X\(/\)' \| \
28340 . : '\(.\)' 2>/dev/null ||
28341 echo X"$file" |
28342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28344 /^X\(\/\/\)$/{ s//\1/; q; }
28345 /^X\(\/\).*/{ s//\1/; q; }
28346 s/.*/./; q'`
28347 { if $as_mkdir_p; then
28348 mkdir -p $dirpart/$fdir
28349 else
28350 as_dir=$dirpart/$fdir
28351 as_dirs=
28352 while test ! -d "$as_dir"; do
28353 as_dirs="$as_dir $as_dirs"
28354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28356 X"$as_dir" : 'X\(//\)[^/]' \| \
28357 X"$as_dir" : 'X\(//\)$' \| \
28358 X"$as_dir" : 'X\(/\)' \| \
28359 . : '\(.\)' 2>/dev/null ||
28360 echo X"$as_dir" |
28361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28363 /^X\(\/\/\)$/{ s//\1/; q; }
28364 /^X\(\/\).*/{ s//\1/; q; }
28365 s/.*/./; q'`
28366 done
28367 test ! -n "$as_dirs" || mkdir $as_dirs
28368 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28369 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28370 { (exit 1); exit 1; }; }; }
28371
28372 # echo "creating $dirpart/$file"
28373 echo '# dummy' > "$dirpart/$file"
28374 done
28375 done
28376 ;;
28377 default-1 )
28378 for ac_file in $CONFIG_FILES; do
28379 # Support "outfile[:infile[:infile...]]"
28380 case "$ac_file" in
28381 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28382 esac
28383 # PO directories have a Makefile.in generated from Makefile.in.in.
28384 case "$ac_file" in */Makefile.in)
28385 # Adjust a relative srcdir.
28386 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28387 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28388 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28389 # In autoconf-2.13 it is called $ac_given_srcdir.
28390 # In autoconf-2.50 it is called $srcdir.
28391 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28392 case "$ac_given_srcdir" in
28393 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28394 /*) top_srcdir="$ac_given_srcdir" ;;
28395 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
28396 esac
28397 # Treat a directory as a PO directory if and only if it has a
28398 # POTFILES.in file. This allows packages to have multiple PO
28399 # directories under different names or in different locations.
28400 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28401 rm -f "$ac_dir/POTFILES"
28402 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28403 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28404 POMAKEFILEDEPS="POTFILES.in"
28405 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
28406 # on $ac_dir but don't depend on user-specified configuration
28407 # parameters.
28408 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28409 # The LINGUAS file contains the set of available languages.
28410 if test -n "$OBSOLETE_ALL_LINGUAS"; then
28411 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28412 fi
28413 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28414 # Hide the ALL_LINGUAS assigment from automake.
28415 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28416 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28417 else
28418 # The set of available languages was given in configure.in.
28419 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28420 fi
28421 # Compute POFILES
28422 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
28423 # Compute UPDATEPOFILES
28424 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
28425 # Compute DUMMYPOFILES
28426 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
28427 # Compute GMOFILES
28428 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
28429 case "$ac_given_srcdir" in
28430 .) srcdirpre= ;;
28431 *) srcdirpre='$(srcdir)/' ;;
28432 esac
28433 POFILES=
28434 UPDATEPOFILES=
28435 DUMMYPOFILES=
28436 GMOFILES=
28437 for lang in $ALL_LINGUAS; do
28438 POFILES="$POFILES $srcdirpre$lang.po"
28439 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28440 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28441 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28442 done
28443 # CATALOGS depends on both $ac_dir and the user's LINGUAS
28444 # environment variable.
28445 INST_LINGUAS=
28446 if test -n "$ALL_LINGUAS"; then
28447 for presentlang in $ALL_LINGUAS; do
28448 useit=no
28449 if test "%UNSET%" != "$LINGUAS"; then
28450 desiredlanguages="$LINGUAS"
28451 else
28452 desiredlanguages="$ALL_LINGUAS"
28453 fi
28454 for desiredlang in $desiredlanguages; do
28455 # Use the presentlang catalog if desiredlang is
28456 # a. equal to presentlang, or
28457 # b. a variant of presentlang (because in this case,
28458 # presentlang can be used as a fallback for messages
28459 # which are not translated in the desiredlang catalog).
28460 case "$desiredlang" in
28461 "$presentlang"*) useit=yes;;
28462 esac
28463 done
28464 if test $useit = yes; then
28465 INST_LINGUAS="$INST_LINGUAS $presentlang"
28466 fi
28467 done
28468 fi
28469 CATALOGS=
28470 if test -n "$INST_LINGUAS"; then
28471 for lang in $INST_LINGUAS; do
28472 CATALOGS="$CATALOGS $lang.gmo"
28473 done
28474 fi
28475 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28476 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28477 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28478 if test -f "$f"; then
28479 case "$f" in
28480 *.orig | *.bak | *~) ;;
28481 *) cat "$f" >> "$ac_dir/Makefile" ;;
28482 esac
28483 fi
28484 done
28485 fi
28486 ;;
28487 esac
28488 done ;;
28489 esac
28490 done
28491 _ACEOF
28492
28493 cat >>$CONFIG_STATUS <<\_ACEOF
28494
28495 { (exit 0); exit 0; }
28496 _ACEOF
28497 chmod +x $CONFIG_STATUS
28498 ac_clean_files=$ac_clean_files_save
28499
28500
28501 # configure is writing to config.log, and then calls config.status.
28502 # config.status does its own redirection, appending to config.log.
28503 # Unfortunately, on DOS this fails, as config.log is still kept open
28504 # by configure, so config.status won't be able to write to it; its
28505 # output is simply discarded. So we exec the FD to /dev/null,
28506 # effectively closing config.log, so it can be properly (re)opened and
28507 # appended to by config.status. When coming back to configure, we
28508 # need to make the FD available again.
28509 if test "$no_create" != yes; then
28510 ac_cs_success=:
28511 ac_config_status_args=
28512 test "$silent" = yes &&
28513 ac_config_status_args="$ac_config_status_args --quiet"
28514 exec 5>/dev/null
28515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28516 exec 5>>config.log
28517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28518 # would make configure fail if this is the last instruction.
28519 $ac_cs_success || { (exit 1); exit 1; }
28520 fi
28521
28522
28523 echo "
28524 $PACKAGE-$VERSION
28525
28526 prefix: ${prefix}
28527 compiler: ${CC}
28528
28529 have swig ${have_swig}
28530 have free pascal ${have_pascal}
28531 have python ${have_python}
28532 have perl ${have_perl}
28533
28534 build hcal ${build_hcal}
28535 build examples ${build_examples}
28536
28537 build python binding ${build_python}
28538 build perl binding ${build_perl}
28539 puild pascal binding ${build_pascal}
28540
28541 perl site lib path: $PE_MODULES_PATH
28542 python site lib path: $PY_MODULES_PATH
28543 pascal site lib path: $PA_MODULES_PATH
28544 "
0 AC_INIT(src/hdate.h)
1
2 dnl Set release number
3 PACKAGE=libhdate
4 LIBHDATE_MAJOR_VERSION=1
5 LIBHDATE_MINOR_VERSION=3
6 LIBHDATE_MICRO_VERSION=0
7
8 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
9 VERSION_INFO=$LIBHDATE_MAJOR_VERSION:$LIBHDATE_MINOR_VERSION:$LIBHDATE_MICRO_VERSION
10
11 AC_SUBST(VERSION_INFO)
12
13 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
14 AM_MAINTAINER_MODE
15
16 dnl Checks for programs.
17 AC_ISC_POSIX
18 AC_PROG_CC
19 AC_PROG_INSTALL
20 AC_PROG_LN_S
21 AC_PROG_MAKE_SET
22 AC_STDC_HEADERS
23 AM_PROG_LIBTOOL
24
25 AM_MAINTAINER_MODE
26
27 AC_C_CONST
28
29 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
30
31 CFLAGS=
32 LIBS=-lm
33
34 dnl =======================================================================================
35
36 AC_CHECK_PROG(have_swig, "swig", yes, no)
37
38 dnl =======================================================================================
39
40 build_pascal=no
41
42 AC_CHECK_PROG(have_pascal, "fpc", yes, no)
43
44 AC_ARG_ENABLE(pascal, [ --enable-pascal build pascal binding [default=no]], build_pascal="$enableval", build_pascal=no)
45
46 if test "x$have_pascal" = "xno"; then
47 build_pascal=no
48 else
49 PA_VERSION=`fpc -iV`
50 PA_TPR=`fpc -iTP`
51 PA_TOS=`fpc -iTO`
52 PA_MODULES_PATH="/usr/lib/fpc/$PA_VERSION/units/$PA_TPR-$PA_TOS"
53 AC_SUBST([PA_MODULES_PATH])
54 fi
55
56 AM_CONDITIONAL(WITH_PASCAL, test "x$build_pascal" = "xyes")
57
58 dnl =======================================================================================
59
60 build_python=no
61
62 AC_ARG_ENABLE(python, [ --enable-python build python binding [default=no]], build_python="$enableval", build_python=no)
63
64 AC_ARG_WITH(python-sitelib-dir, [ --with-python-sitelib-dir=PATH path to python site lib ])
65
66 AC_CHECK_PROG(have_python, "python", yes, no)
67
68 if test "x$have_python" = "xyes"; then
69 PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
70 PY_VERSION=`python -c 'import sys ; print sys.version[[0:3]]'`
71 AC_MSG_CHECKING(for $PY_PREFIX/include/python$PY_VERSION/Python.h)
72 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
73 AC_MSG_RESULT(yes)
74 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
75
76 if test "x$with_python_sitelib_dir" = "x" ; then
77 PY_MODULES_PATH="$PY_PREFIX/lib/python$PY_VERSION/site-packages"
78 else
79 PY_MODULES_PATH=$with_python_sitelib_dir
80 fi
81
82 AC_SUBST([PY_CFLAGS])
83 AC_SUBST([PY_MODULES_PATH])
84 if test "x$have_swig" = "xno"; then
85 build_python=no
86 fi
87 else
88 AC_MSG_RESULT(no)
89 build_python=no
90 fi
91 fi
92
93 AM_CONDITIONAL(WITH_PYTHON, test "x$build_python" = "xyes")
94
95 dnl =======================================================================================
96
97 build_perl=no
98
99 AC_ARG_ENABLE(perl, [ --enable-perl build perl binding [default=no]], build_perl="$enableval", build_perl=no)
100
101 AC_ARG_WITH(perl-sitelib-dir, [ --with-perl-sitelib-dir=PATH path to perl site lib ])
102
103 AC_CHECK_PROG(have_perl, "perl", yes, no)
104
105 if test "x$have_perl" = "xyes"; then
106 PE_PREFIX=`(perl -e 'use Config; print $Config{archlib};')`
107 AC_MSG_CHECKING(for $PE_PREFIX/CORE/perl.h)
108 if test -f $PE_PREFIX/CORE/perl.h; then
109 AC_MSG_RESULT(yes)
110 PE_CFLAGS="-I$PE_PREFIX/CORE "
111 PE_CFLAGS=$PE_CFLAGS`(perl -e 'use Config; print $Config{cppflags};')`
112
113 if test "x$with_perl_sitelib_dir" = "x" ; then
114 PE_MODULES_PATH=`(perl -e 'use Config; print $Config{sitelib};')`
115 else
116 PE_MODULES_PATH=$with_perl_sitelib_dir
117 fi
118
119 AC_SUBST([PE_CFLAGS])
120 AC_SUBST([PE_MODULES_PATH])
121 if test "x$have_swig" = "xno"; then
122 build_perl=no
123 fi
124 else
125 AC_MSG_RESULT(no)
126 build_perl=no
127 fi
128 fi
129
130 dnl FIXME: on fedora PE_MODULES_PATH="/usr/lib/perl5/site_perl"
131
132 AM_CONDITIONAL(WITH_PERL, test "x$build_perl" = "xyes")
133
134 dnl =======================================================================================
135
136 dnl gettext
137
138 dnl Languages which your application supports
139 ALL_LINGUAS="he es_MX ru fr"
140 AM_GNU_GETTEXT
141 AM_GNU_GETTEXT_VERSION(0.10.40)
142
143 if test "x${prefix}" = "xNONE"; then
144 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
145 else
146 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
147 fi
148
149 dnl =======================================================================================
150
151 build_examples=no
152
153 AC_ARG_ENABLE(examples, [ --enable-examples build examples [default=no]], build_examples="$enableval", build_examples=no)
154
155 AM_CONDITIONAL(WITH_EXAMPLES, test "x$build_examples" = "xyes")
156
157 dnl =======================================================================================
158
159 build_hcal=yes
160
161 AC_ARG_ENABLE(hcal, [ --disable-hcal build hcal/hdate [default=yes]], build_hcal="$enableval", build_hcal=yes)
162
163 AM_CONDITIONAL(WITH_HCAL, test "x$build_hcal" = "xyes")
164
165 dnl =======================================================================================
166
167 AC_SUBST(CFLAGS)
168 AC_SUBST(LIBS)
169
170 dnl =======================================================================================
171
172 AC_OUTPUT([
173 Makefile
174 libhdate.spec
175 libhdate.pc
176 intl/Makefile
177 po/Makefile.in
178 src/Makefile
179 examples/Makefile
180 examples/hcal/Makefile
181 examples/ical/Makefile
182 examples/html/Makefile
183 examples/hebcal/Makefile
184 examples/bindings/Makefile
185 bindings/Makefile
186 bindings/python/Makefile
187 bindings/perl/Makefile
188 bindings/pascal/Makefile
189 ])
190
191 dnl ===========================================================================================
192 echo "
193 $PACKAGE-$VERSION
194
195 prefix: ${prefix}
196 compiler: ${CC}
197
198 have swig ${have_swig}
199 have free pascal ${have_pascal}
200 have python ${have_python}
201 have perl ${have_perl}
202
203 build hcal ${build_hcal}
204 build examples ${build_examples}
205
206 build python binding ${build_python}
207 build perl binding ${build_perl}
208 puild pascal binding ${build_pascal}
209
210 perl site lib path: $PE_MODULES_PATH
211 python site lib path: $PY_MODULES_PATH
212 pascal site lib path: $PA_MODULES_PATH
213 "
0 /usr/share/automake-1.7/depcomp
0 SUBDIRS = hcal ical html hebcal bindings
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184 SUBDIRS = hcal ical html hebcal bindings
185 subdir = examples
186 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
187 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
188 CONFIG_CLEAN_FILES =
189 DIST_SOURCES =
190
191 RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
192 ps-recursive install-info-recursive uninstall-info-recursive \
193 all-recursive install-data-recursive install-exec-recursive \
194 installdirs-recursive install-recursive uninstall-recursive \
195 check-recursive installcheck-recursive
196 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
197 DIST_SUBDIRS = $(SUBDIRS)
198 all: all-recursive
199
200 .SUFFIXES:
201 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
202 cd $(top_srcdir) && \
203 $(AUTOMAKE) --gnu examples/Makefile
204 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
205 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
206
207 mostlyclean-libtool:
208 -rm -f *.lo
209
210 clean-libtool:
211 -rm -rf .libs _libs
212
213 distclean-libtool:
214 -rm -f libtool
215 uninstall-info-am:
216
217 # This directory's subdirectories are mostly independent; you can cd
218 # into them and run `make' without going through this Makefile.
219 # To change the values of `make' variables: instead of editing Makefiles,
220 # (1) if the variable is set in `config.status', edit `config.status'
221 # (which will cause the Makefiles to be regenerated when you run `make');
222 # (2) otherwise, pass the desired values on the `make' command line.
223 $(RECURSIVE_TARGETS):
224 @set fnord $$MAKEFLAGS; amf=$$2; \
225 dot_seen=no; \
226 target=`echo $@ | sed s/-recursive//`; \
227 list='$(SUBDIRS)'; for subdir in $$list; do \
228 echo "Making $$target in $$subdir"; \
229 if test "$$subdir" = "."; then \
230 dot_seen=yes; \
231 local_target="$$target-am"; \
232 else \
233 local_target="$$target"; \
234 fi; \
235 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
236 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
237 done; \
238 if test "$$dot_seen" = "no"; then \
239 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
240 fi; test -z "$$fail"
241
242 mostlyclean-recursive clean-recursive distclean-recursive \
243 maintainer-clean-recursive:
244 @set fnord $$MAKEFLAGS; amf=$$2; \
245 dot_seen=no; \
246 case "$@" in \
247 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
248 *) list='$(SUBDIRS)' ;; \
249 esac; \
250 rev=''; for subdir in $$list; do \
251 if test "$$subdir" = "."; then :; else \
252 rev="$$subdir $$rev"; \
253 fi; \
254 done; \
255 rev="$$rev ."; \
256 target=`echo $@ | sed s/-recursive//`; \
257 for subdir in $$rev; do \
258 echo "Making $$target in $$subdir"; \
259 if test "$$subdir" = "."; then \
260 local_target="$$target-am"; \
261 else \
262 local_target="$$target"; \
263 fi; \
264 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
265 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
266 done && test -z "$$fail"
267 tags-recursive:
268 list='$(SUBDIRS)'; for subdir in $$list; do \
269 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
270 done
271 ctags-recursive:
272 list='$(SUBDIRS)'; for subdir in $$list; do \
273 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
274 done
275
276 ETAGS = etags
277 ETAGSFLAGS =
278
279 CTAGS = ctags
280 CTAGSFLAGS =
281
282 tags: TAGS
283
284 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
285 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
286 unique=`for i in $$list; do \
287 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
288 done | \
289 $(AWK) ' { files[$$0] = 1; } \
290 END { for (i in files) print i; }'`; \
291 mkid -fID $$unique
292
293 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
294 $(TAGS_FILES) $(LISP)
295 tags=; \
296 here=`pwd`; \
297 if (etags --etags-include --version) >/dev/null 2>&1; then \
298 include_option=--etags-include; \
299 else \
300 include_option=--include; \
301 fi; \
302 list='$(SUBDIRS)'; for subdir in $$list; do \
303 if test "$$subdir" = .; then :; else \
304 test -f $$subdir/TAGS && \
305 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
306 fi; \
307 done; \
308 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
309 unique=`for i in $$list; do \
310 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
311 done | \
312 $(AWK) ' { files[$$0] = 1; } \
313 END { for (i in files) print i; }'`; \
314 test -z "$(ETAGS_ARGS)$$tags$$unique" \
315 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
316 $$tags $$unique
317
318 ctags: CTAGS
319 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
320 $(TAGS_FILES) $(LISP)
321 tags=; \
322 here=`pwd`; \
323 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
324 unique=`for i in $$list; do \
325 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
326 done | \
327 $(AWK) ' { files[$$0] = 1; } \
328 END { for (i in files) print i; }'`; \
329 test -z "$(CTAGS_ARGS)$$tags$$unique" \
330 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
331 $$tags $$unique
332
333 GTAGS:
334 here=`$(am__cd) $(top_builddir) && pwd` \
335 && cd $(top_srcdir) \
336 && gtags -i $(GTAGS_ARGS) $$here
337
338 distclean-tags:
339 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
340 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
341
342 top_distdir = ..
343 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
344
345 distdir: $(DISTFILES)
346 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
347 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
348 list='$(DISTFILES)'; for file in $$list; do \
349 case $$file in \
350 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
351 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
352 esac; \
353 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
354 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
355 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
356 dir="/$$dir"; \
357 $(mkinstalldirs) "$(distdir)$$dir"; \
358 else \
359 dir=''; \
360 fi; \
361 if test -d $$d/$$file; then \
362 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
363 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
364 fi; \
365 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
366 else \
367 test -f $(distdir)/$$file \
368 || cp -p $$d/$$file $(distdir)/$$file \
369 || exit 1; \
370 fi; \
371 done
372 list='$(SUBDIRS)'; for subdir in $$list; do \
373 if test "$$subdir" = .; then :; else \
374 test -d $(distdir)/$$subdir \
375 || mkdir $(distdir)/$$subdir \
376 || exit 1; \
377 (cd $$subdir && \
378 $(MAKE) $(AM_MAKEFLAGS) \
379 top_distdir="$(top_distdir)" \
380 distdir=../$(distdir)/$$subdir \
381 distdir) \
382 || exit 1; \
383 fi; \
384 done
385 check-am: all-am
386 check: check-recursive
387 all-am: Makefile
388 installdirs: installdirs-recursive
389 installdirs-am:
390
391 install: install-recursive
392 install-exec: install-exec-recursive
393 install-data: install-data-recursive
394 uninstall: uninstall-recursive
395
396 install-am: all-am
397 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
398
399 installcheck: installcheck-recursive
400 install-strip:
401 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
402 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
403 `test -z '$(STRIP)' || \
404 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
405 mostlyclean-generic:
406
407 clean-generic:
408
409 distclean-generic:
410 -rm -f $(CONFIG_CLEAN_FILES)
411
412 maintainer-clean-generic:
413 @echo "This command is intended for maintainers to use"
414 @echo "it deletes files that may require special tools to rebuild."
415 clean: clean-recursive
416
417 clean-am: clean-generic clean-libtool mostlyclean-am
418
419 distclean: distclean-recursive
420 -rm -f Makefile
421 distclean-am: clean-am distclean-generic distclean-libtool \
422 distclean-tags
423
424 dvi: dvi-recursive
425
426 dvi-am:
427
428 info: info-recursive
429
430 info-am:
431
432 install-data-am:
433
434 install-exec-am:
435
436 install-info: install-info-recursive
437
438 install-man:
439
440 installcheck-am:
441
442 maintainer-clean: maintainer-clean-recursive
443 -rm -f Makefile
444 maintainer-clean-am: distclean-am maintainer-clean-generic
445
446 mostlyclean: mostlyclean-recursive
447
448 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
449
450 pdf: pdf-recursive
451
452 pdf-am:
453
454 ps: ps-recursive
455
456 ps-am:
457
458 uninstall-am: uninstall-info-am
459
460 uninstall-info: uninstall-info-recursive
461
462 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
463 clean-generic clean-libtool clean-recursive ctags \
464 ctags-recursive distclean distclean-generic distclean-libtool \
465 distclean-recursive distclean-tags distdir dvi dvi-am \
466 dvi-recursive info info-am info-recursive install install-am \
467 install-data install-data-am install-data-recursive \
468 install-exec install-exec-am install-exec-recursive \
469 install-info install-info-am install-info-recursive install-man \
470 install-recursive install-strip installcheck installcheck-am \
471 installdirs installdirs-am installdirs-recursive \
472 maintainer-clean maintainer-clean-generic \
473 maintainer-clean-recursive mostlyclean mostlyclean-generic \
474 mostlyclean-libtool mostlyclean-recursive pdf pdf-am \
475 pdf-recursive ps ps-am ps-recursive tags tags-recursive \
476 uninstall uninstall-am uninstall-info-am \
477 uninstall-info-recursive uninstall-recursive
478
479 # Tell versions [3.59,3.63) of GNU make to not export all variables.
480 # Otherwise a system limit (for SysV at least) may be exceeded.
481 .NOEXPORT:
0
1 EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
2
3 libhdatedocdir = ${prefix}/share/doc/libhdate0/examples/bindings
4 libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184
185 EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
186
187 libhdatedocdir = ${prefix}/share/doc/libhdate0/examples/bindings
188 libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
189 subdir = examples/bindings
190 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
191 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
192 CONFIG_CLEAN_FILES =
193 DIST_SOURCES =
194 DATA = $(libhdatedoc_DATA)
195
196 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
197 all: all-am
198
199 .SUFFIXES:
200 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
201 cd $(top_srcdir) && \
202 $(AUTOMAKE) --gnu examples/bindings/Makefile
203 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
204 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
205
206 mostlyclean-libtool:
207 -rm -f *.lo
208
209 clean-libtool:
210 -rm -rf .libs _libs
211
212 distclean-libtool:
213 -rm -f libtool
214 uninstall-info-am:
215 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
216 install-libhdatedocDATA: $(libhdatedoc_DATA)
217 @$(NORMAL_INSTALL)
218 $(mkinstalldirs) $(DESTDIR)$(libhdatedocdir)
219 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
220 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
221 f="`echo $$p | sed -e 's|^.*/||'`"; \
222 echo " $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f"; \
223 $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f; \
224 done
225
226 uninstall-libhdatedocDATA:
227 @$(NORMAL_UNINSTALL)
228 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
229 f="`echo $$p | sed -e 's|^.*/||'`"; \
230 echo " rm -f $(DESTDIR)$(libhdatedocdir)/$$f"; \
231 rm -f $(DESTDIR)$(libhdatedocdir)/$$f; \
232 done
233 tags: TAGS
234 TAGS:
235
236 ctags: CTAGS
237 CTAGS:
238
239 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
240
241 top_distdir = ../..
242 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
243
244 distdir: $(DISTFILES)
245 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
246 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
247 list='$(DISTFILES)'; for file in $$list; do \
248 case $$file in \
249 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
250 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
251 esac; \
252 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
253 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
254 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
255 dir="/$$dir"; \
256 $(mkinstalldirs) "$(distdir)$$dir"; \
257 else \
258 dir=''; \
259 fi; \
260 if test -d $$d/$$file; then \
261 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
262 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
263 fi; \
264 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
265 else \
266 test -f $(distdir)/$$file \
267 || cp -p $$d/$$file $(distdir)/$$file \
268 || exit 1; \
269 fi; \
270 done
271 check-am: all-am
272 check: check-am
273 all-am: Makefile $(DATA)
274
275 installdirs:
276 $(mkinstalldirs) $(DESTDIR)$(libhdatedocdir)
277 install: install-am
278 install-exec: install-exec-am
279 install-data: install-data-am
280 uninstall: uninstall-am
281
282 install-am: all-am
283 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
284
285 installcheck: installcheck-am
286 install-strip:
287 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
288 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
289 `test -z '$(STRIP)' || \
290 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
291 mostlyclean-generic:
292
293 clean-generic:
294
295 distclean-generic:
296 -rm -f $(CONFIG_CLEAN_FILES)
297
298 maintainer-clean-generic:
299 @echo "This command is intended for maintainers to use"
300 @echo "it deletes files that may require special tools to rebuild."
301 clean: clean-am
302
303 clean-am: clean-generic clean-libtool mostlyclean-am
304
305 distclean: distclean-am
306 -rm -f Makefile
307 distclean-am: clean-am distclean-generic distclean-libtool
308
309 dvi: dvi-am
310
311 dvi-am:
312
313 info: info-am
314
315 info-am:
316
317 install-data-am: install-libhdatedocDATA
318
319 install-exec-am:
320
321 install-info: install-info-am
322
323 install-man:
324
325 installcheck-am:
326
327 maintainer-clean: maintainer-clean-am
328 -rm -f Makefile
329 maintainer-clean-am: distclean-am maintainer-clean-generic
330
331 mostlyclean: mostlyclean-am
332
333 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
334
335 pdf: pdf-am
336
337 pdf-am:
338
339 ps: ps-am
340
341 ps-am:
342
343 uninstall-am: uninstall-info-am uninstall-libhdatedocDATA
344
345 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
346 distclean distclean-generic distclean-libtool distdir dvi \
347 dvi-am info info-am install install-am install-data \
348 install-data-am install-exec install-exec-am install-info \
349 install-info-am install-libhdatedocDATA install-man \
350 install-strip installcheck installcheck-am installdirs \
351 maintainer-clean maintainer-clean-generic mostlyclean \
352 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
353 uninstall uninstall-am uninstall-info-am \
354 uninstall-libhdatedocDATA
355
356 # Tell versions [3.59,3.63) of GNU make to not export all variables.
357 # Otherwise a system limit (for SysV at least) may be exceeded.
358 .NOEXPORT:
0 // hdate_cpp.cpp
1 // example file for libhdate.
2 //
3
4 //
5 // compile: g++ -lm -lhdate -o hdate_cpp hdate_cpp.cpp
6 //
7
8 #include <iostream>
9 #include <hdatepp.h>
10
11 using namespace std;
12 using namespace hdate;
13
14 int
15 main (int argc, char* argv[])
16 {
17 // create a new Hdate object
18 Hdate h;
19
20 // print gregorian date
21 cout << "Today is :\n";
22 cout << h.get_gday () << "," << h.get_gmonth () << "," << h.get_gyear () << "\n";
23
24 // print hebrew date: 0 - israely holidays, 0 - long format
25 cout << h.get_format_date (0, 0);
26 cout << "\n";
27
28 return 0;
29 }
0 {$MODE OBJFPC}
1 {$IFDEF MSWINDOWS}
2 {$APPTYPE CONSOLE} //Make sure that in Windows we will be in a console mode
3 {$ENDIF}
4 program hdate_demo;
5 uses hdate_class, hdate;
6
7 var
8 h : THdateClass;
9 diaspora : Integer;
10
11 begin
12 h := THdateClass.Create;
13 diaspora := 0;
14
15 try
16
17 // print gregorian date
18 write ('Today : ', h.GregDay, ',');
19 write (h.GregMonth, ',');
20 writeln (h.GregYear);
21
22 // print hebrew date
23 writeln (h.get_format_date (diaspora));
24 finally
25 h.Free;
26 end;
27 end.
0 #! /usr/bin/perl
1
2 # use the hdate perl module
3 use hdate;
4
5 #
6 # !! SOME SWIG VERSIONS WILL CREATE hdatec NAMESPACE OTHERS hdate !!
7 #
8 # use hdate; # just hdate
9 #
10 # $h = hdate::new_Hdate();
11 # print hdatec:Hdate_get_format_date ($h, 0, 0) . "\n"; # use hdate !
12 #
13
14 # create a new Hdate object
15 $h = hdatec::new_Hdate();
16
17 # print gregorian date
18 print "Today is:\n";
19 print hdatec::Hdate_get_gday($h) . "," . hdatec::Hdate_get_gmonth($h) . "," . hdatec::Hdate_get_gyear($h) . "\n";
20
21 # print hebrew date: 0 - israely holidays, 0 - long format
22 print hdatec::Hdate_get_format_date ($h, 0, 0) . "\n";
23
0 #! /usr/bin/python
1
2 # import the hdate library
3 from hdate import *;
4
5 # create a new Hdate object
6 h = Hdate();
7
8 # print gregorian date
9 print "Today is:"
10 print str (h.get_gday ()) + "," + str (h.get_gmonth()) + "," + str (h.get_gyear ())
11
12 # print hebrew date: 0 - israely holidays, 0 - long format
13 print h.get_format_date (0, 0);
0 EXTRA_DIST = hdate.1 hcal.1
1
2 if WITH_HCAL
3
4 INCLUDES=-I$(top_srcdir)/src
5
6 DEPS= $(top_builddir)/src/libhdate.la
7 ldadd= $(top_builddir)/src/libhdate.la -lm
8
9 bin_PROGRAMS= hdate hcal
10
11 hdate_SOURCES = hdate.c
12 hdate_LDFLAGS =
13 hdate_DEPENDENCIES = $(DEPS)
14 hdate_LDADD = $(ldadd)
15
16 hcal_SOURCES = hcal.c
17 hcal_LDFLAGS =
18 hcal_DEPENDENCIES = $(DEPS)
19 hcal_LDADD = $(ldadd)
20
21 man_MANS = hdate.1 hcal.1
22
23 endif
24
25 libhdatedocdir = ${prefix}/share/doc/libhdate0/examples/hcal
26 libhdatedoc_DATA = hcal.c hdate.c
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184 EXTRA_DIST = hdate.1 hcal.1
185
186 @WITH_HCAL_TRUE@INCLUDES = -I$(top_srcdir)/src
187
188 @WITH_HCAL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
189 @WITH_HCAL_TRUE@ldadd = $(top_builddir)/src/libhdate.la -lm
190
191 @WITH_HCAL_TRUE@bin_PROGRAMS = hdate hcal
192
193 @WITH_HCAL_TRUE@hdate_SOURCES = hdate.c
194 @WITH_HCAL_TRUE@hdate_LDFLAGS =
195 @WITH_HCAL_TRUE@hdate_DEPENDENCIES = $(DEPS)
196 @WITH_HCAL_TRUE@hdate_LDADD = $(ldadd)
197
198 @WITH_HCAL_TRUE@hcal_SOURCES = hcal.c
199 @WITH_HCAL_TRUE@hcal_LDFLAGS =
200 @WITH_HCAL_TRUE@hcal_DEPENDENCIES = $(DEPS)
201 @WITH_HCAL_TRUE@hcal_LDADD = $(ldadd)
202
203 @WITH_HCAL_TRUE@man_MANS = hdate.1 hcal.1
204
205 libhdatedocdir = ${prefix}/share/doc/libhdate0/examples/hcal
206 libhdatedoc_DATA = hcal.c hdate.c
207 subdir = examples/hcal
208 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
209 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
210 CONFIG_CLEAN_FILES =
211 @WITH_HCAL_TRUE@bin_PROGRAMS = hdate$(EXEEXT) hcal$(EXEEXT)
212 @WITH_HCAL_FALSE@bin_PROGRAMS =
213 PROGRAMS = $(bin_PROGRAMS)
214
215 am__hcal_SOURCES_DIST = hcal.c
216 @WITH_HCAL_TRUE@am_hcal_OBJECTS = hcal.$(OBJEXT)
217 hcal_OBJECTS = $(am_hcal_OBJECTS)
218 @WITH_HCAL_FALSE@hcal_DEPENDENCIES =
219 am__hdate_SOURCES_DIST = hdate.c
220 @WITH_HCAL_TRUE@am_hdate_OBJECTS = hdate.$(OBJEXT)
221 hdate_OBJECTS = $(am_hdate_OBJECTS)
222 @WITH_HCAL_FALSE@hdate_DEPENDENCIES =
223
224 DEFAULT_INCLUDES = -I. -I$(srcdir)
225 depcomp = $(SHELL) $(top_srcdir)/depcomp
226 am__depfiles_maybe = depfiles
227 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/hcal.Po ./$(DEPDIR)/hdate.Po
228 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
229 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
230 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
231 $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
232 CCLD = $(CC)
233 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
234 $(AM_LDFLAGS) $(LDFLAGS) -o $@
235 DIST_SOURCES = $(am__hcal_SOURCES_DIST) $(am__hdate_SOURCES_DIST)
236
237 NROFF = nroff
238 MANS = $(man_MANS)
239 DATA = $(libhdatedoc_DATA)
240
241 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
242 SOURCES = $(hcal_SOURCES) $(hdate_SOURCES)
243
244 all: all-am
245
246 .SUFFIXES:
247 .SUFFIXES: .c .lo .o .obj
248 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu examples/hcal/Makefile
251 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
252 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
253 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
254 install-binPROGRAMS: $(bin_PROGRAMS)
255 @$(NORMAL_INSTALL)
256 $(mkinstalldirs) $(DESTDIR)$(bindir)
257 @list='$(bin_PROGRAMS)'; for p in $$list; do \
258 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
259 if test -f $$p \
260 || test -f $$p1 \
261 ; then \
262 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
263 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
264 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
265 else :; fi; \
266 done
267
268 uninstall-binPROGRAMS:
269 @$(NORMAL_UNINSTALL)
270 @list='$(bin_PROGRAMS)'; for p in $$list; do \
271 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
272 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
273 rm -f $(DESTDIR)$(bindir)/$$f; \
274 done
275
276 clean-binPROGRAMS:
277 @list='$(bin_PROGRAMS)'; for p in $$list; do \
278 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
279 echo " rm -f $$p $$f"; \
280 rm -f $$p $$f ; \
281 done
282 hcal$(EXEEXT): $(hcal_OBJECTS) $(hcal_DEPENDENCIES)
283 @rm -f hcal$(EXEEXT)
284 $(LINK) $(hcal_LDFLAGS) $(hcal_OBJECTS) $(hcal_LDADD) $(LIBS)
285 hdate$(EXEEXT): $(hdate_OBJECTS) $(hdate_DEPENDENCIES)
286 @rm -f hdate$(EXEEXT)
287 $(LINK) $(hdate_LDFLAGS) $(hdate_OBJECTS) $(hdate_LDADD) $(LIBS)
288
289 mostlyclean-compile:
290 -rm -f *.$(OBJEXT) core *.core
291
292 distclean-compile:
293 -rm -f *.tab.c
294
295 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hcal.Po@am__quote@
296 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdate.Po@am__quote@
297
298 .c.o:
299 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
300 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
301 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
302 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
303 @am__fastdepCC_TRUE@ fi
304 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307 @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
308
309 .c.obj:
310 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
311 @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
312 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
313 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
314 @am__fastdepCC_TRUE@ fi
315 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
317 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318 @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
319
320 .c.lo:
321 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
322 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
323 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
324 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
325 @am__fastdepCC_TRUE@ fi
326 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
327 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
328 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
330
331 mostlyclean-libtool:
332 -rm -f *.lo
333
334 clean-libtool:
335 -rm -rf .libs _libs
336
337 distclean-libtool:
338 -rm -f libtool
339 uninstall-info-am:
340
341 man1dir = $(mandir)/man1
342 install-man1: $(man1_MANS) $(man_MANS)
343 @$(NORMAL_INSTALL)
344 $(mkinstalldirs) $(DESTDIR)$(man1dir)
345 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
346 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
347 for i in $$l2; do \
348 case "$$i" in \
349 *.1*) list="$$list $$i" ;; \
350 esac; \
351 done; \
352 for i in $$list; do \
353 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
354 else file=$$i; fi; \
355 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
356 case "$$ext" in \
357 1*) ;; \
358 *) ext='1' ;; \
359 esac; \
360 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
361 inst=`echo $$inst | sed -e 's/^.*\///'`; \
362 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
363 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
364 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
365 done
366 uninstall-man1:
367 @$(NORMAL_UNINSTALL)
368 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
369 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
370 for i in $$l2; do \
371 case "$$i" in \
372 *.1*) list="$$list $$i" ;; \
373 esac; \
374 done; \
375 for i in $$list; do \
376 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
377 case "$$ext" in \
378 1*) ;; \
379 *) ext='1' ;; \
380 esac; \
381 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
382 inst=`echo $$inst | sed -e 's/^.*\///'`; \
383 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
384 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
385 rm -f $(DESTDIR)$(man1dir)/$$inst; \
386 done
387 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
388 install-libhdatedocDATA: $(libhdatedoc_DATA)
389 @$(NORMAL_INSTALL)
390 $(mkinstalldirs) $(DESTDIR)$(libhdatedocdir)
391 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
392 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
393 f="`echo $$p | sed -e 's|^.*/||'`"; \
394 echo " $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f"; \
395 $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f; \
396 done
397
398 uninstall-libhdatedocDATA:
399 @$(NORMAL_UNINSTALL)
400 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
401 f="`echo $$p | sed -e 's|^.*/||'`"; \
402 echo " rm -f $(DESTDIR)$(libhdatedocdir)/$$f"; \
403 rm -f $(DESTDIR)$(libhdatedocdir)/$$f; \
404 done
405
406 ETAGS = etags
407 ETAGSFLAGS =
408
409 CTAGS = ctags
410 CTAGSFLAGS =
411
412 tags: TAGS
413
414 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
415 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
416 unique=`for i in $$list; do \
417 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
418 done | \
419 $(AWK) ' { files[$$0] = 1; } \
420 END { for (i in files) print i; }'`; \
421 mkid -fID $$unique
422
423 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
424 $(TAGS_FILES) $(LISP)
425 tags=; \
426 here=`pwd`; \
427 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
428 unique=`for i in $$list; do \
429 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
430 done | \
431 $(AWK) ' { files[$$0] = 1; } \
432 END { for (i in files) print i; }'`; \
433 test -z "$(ETAGS_ARGS)$$tags$$unique" \
434 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
435 $$tags $$unique
436
437 ctags: CTAGS
438 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
439 $(TAGS_FILES) $(LISP)
440 tags=; \
441 here=`pwd`; \
442 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
443 unique=`for i in $$list; do \
444 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
445 done | \
446 $(AWK) ' { files[$$0] = 1; } \
447 END { for (i in files) print i; }'`; \
448 test -z "$(CTAGS_ARGS)$$tags$$unique" \
449 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
450 $$tags $$unique
451
452 GTAGS:
453 here=`$(am__cd) $(top_builddir) && pwd` \
454 && cd $(top_srcdir) \
455 && gtags -i $(GTAGS_ARGS) $$here
456
457 distclean-tags:
458 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
459 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
460
461 top_distdir = ../..
462 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
463
464 distdir: $(DISTFILES)
465 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
466 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
467 list='$(DISTFILES)'; for file in $$list; do \
468 case $$file in \
469 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
470 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
471 esac; \
472 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
473 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
474 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
475 dir="/$$dir"; \
476 $(mkinstalldirs) "$(distdir)$$dir"; \
477 else \
478 dir=''; \
479 fi; \
480 if test -d $$d/$$file; then \
481 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
482 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
483 fi; \
484 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
485 else \
486 test -f $(distdir)/$$file \
487 || cp -p $$d/$$file $(distdir)/$$file \
488 || exit 1; \
489 fi; \
490 done
491 check-am: all-am
492 check: check-am
493 all-am: Makefile $(PROGRAMS) $(MANS) $(DATA)
494
495 installdirs:
496 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(libhdatedocdir)
497 install: install-am
498 install-exec: install-exec-am
499 install-data: install-data-am
500 uninstall: uninstall-am
501
502 install-am: all-am
503 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
504
505 installcheck: installcheck-am
506 install-strip:
507 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
508 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
509 `test -z '$(STRIP)' || \
510 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
511 mostlyclean-generic:
512
513 clean-generic:
514
515 distclean-generic:
516 -rm -f $(CONFIG_CLEAN_FILES)
517
518 maintainer-clean-generic:
519 @echo "This command is intended for maintainers to use"
520 @echo "it deletes files that may require special tools to rebuild."
521 clean: clean-am
522
523 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
524
525 distclean: distclean-am
526 -rm -rf ./$(DEPDIR)
527 -rm -f Makefile
528 distclean-am: clean-am distclean-compile distclean-generic \
529 distclean-libtool distclean-tags
530
531 dvi: dvi-am
532
533 dvi-am:
534
535 info: info-am
536
537 info-am:
538
539 install-data-am: install-libhdatedocDATA install-man
540
541 install-exec-am: install-binPROGRAMS
542
543 install-info: install-info-am
544
545 install-man: install-man1
546
547 installcheck-am:
548
549 maintainer-clean: maintainer-clean-am
550 -rm -rf ./$(DEPDIR)
551 -rm -f Makefile
552 maintainer-clean-am: distclean-am maintainer-clean-generic
553
554 mostlyclean: mostlyclean-am
555
556 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
557 mostlyclean-libtool
558
559 pdf: pdf-am
560
561 pdf-am:
562
563 ps: ps-am
564
565 ps-am:
566
567 uninstall-am: uninstall-binPROGRAMS uninstall-info-am \
568 uninstall-libhdatedocDATA uninstall-man
569
570 uninstall-man: uninstall-man1
571
572 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
573 clean-generic clean-libtool ctags distclean distclean-compile \
574 distclean-generic distclean-libtool distclean-tags distdir dvi \
575 dvi-am info info-am install install-am install-binPROGRAMS \
576 install-data install-data-am install-exec install-exec-am \
577 install-info install-info-am install-libhdatedocDATA \
578 install-man install-man1 install-strip installcheck \
579 installcheck-am installdirs maintainer-clean \
580 maintainer-clean-generic mostlyclean mostlyclean-compile \
581 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
582 tags uninstall uninstall-am uninstall-binPROGRAMS \
583 uninstall-info-am uninstall-libhdatedocDATA uninstall-man \
584 uninstall-man1
585
586 # Tell versions [3.59,3.63) of GNU make to not export all variables.
587 # Otherwise a system limit (for SysV at least) may be exceeded.
588 .NOEXPORT:
0 .\" .UC 4
1 .TH "HCAL" "1" "2 Mar 2005" "Yaacov Zamir" "libhdate"
2 .SH "NAME"
3 hcal \- Hebrew date
4 .PP
5 example programs for libhdate, a library that help use hebrew dates.
6 .PP
7 LibHdate is a small C,C++ library for Hebrew dates,
8 holidays, and reading sequence (parasha). It is using
9 the source code from Amos Shapir's "hdate" package fixed and
10 patched by Nadav Har'El. The Torah reading sequence
11 is from tables by Zvi Har'El.
12 .SH "SYNOPSIS"
13 .B hcal
14 [ [ month ] year ]
15 .SH "DESCRIPTION"
16 .I Hcal
17 prints a calendar with both common and Hebrew dates for the
18 specified month, or the whole year if no month is specified.
19 If no arguments are given, it prints the current month.
20 Major holidays are marked by a `*', other holidays by a `+',
21 fast days by a `\-'.
22 .PP
23 If the year is greater than 3000,
24 .I hcal
25 takes the given date as a Hebrew date, and translates it
26 back to the common calendar.
27 Months are numbered with Tishrey being 1 and Elul 12; Adar I and Adar II are months 13 and 14.
28 .SH "SEE ALSO"
29 date(1), cal(1), hdate(1), hebcal(1), remind(1), hdate.h(3), hdate_struct(3)
30 .SH "AUTHOR"
31 Yaacov Zamir 2005, text copied from Amos Shapir's hdate man file.
0 /* hcal.c
1 * Example file for libhdate.
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hcal.c -o hcal
5 *
6 * Copyright: 2004 (c) Yaacov Zamir
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24 #include <stdio.h> /* For printf */
25 #include <hdate.h> /* For hebrew date */
26 #include <stdlib.h> /* For atoi */
27 #include <locale.h> /* For setlocale */
28
29 #define FALSE 0
30 #define TRUE -1
31
32 int
33 print_header(int month, int year)
34 {
35 hdate_struct h1, h2;
36 int j;
37
38 /* set dates for begining and end of calendar */
39 hdate_set_gdate (&h1, 1, month, year);
40 hdate_set_gdate (&h2, 1, month % 12 + 1, year);
41
42 /* Print Gregorian month and year */
43 printf ("%s %d\n", hdate_get_month_string (h1.gd_mon, FALSE), h1.gd_year);
44
45 /* Print Hebrew month and year */
46 if (h1.hd_mon != h2.hd_mon)
47 {
48 printf ("%s-", hdate_get_hebrew_month_string (h1.hd_mon, FALSE));
49 }
50 printf ("%s %s\n", hdate_get_hebrew_month_string (h2.hd_mon, FALSE), hdate_get_int_string(h1.hd_year));
51
52 for (j=1; j<8; j++)
53 {
54 printf ("%3s", hdate_get_day_string (j, TRUE));
55
56 if (j != 7)
57 printf ("\t");
58 }
59
60 printf ("\n");
61
62 return 0;
63 }
64
65 int
66 print_calendar(int month, int year)
67 {
68 hdate_struct h;
69 int jd;
70 int i,j;
71 char type_char[] = {'/', '+', '*', '-'};
72 int holyday_type;
73
74 /* Find day to start calendar with */
75 hdate_set_gdate (&h, 1, month, year);
76
77 /* return print head to sunday */
78 jd = h.hd_jd - h.hd_dw + 1;
79
80 /* Loop over all days in this month */
81 for (i=0; i<6; i++)
82 {
83 for (j=0; j<7; j++)
84 {
85 /* Get this day hebrew date */
86 hdate_set_jd (&h, jd);
87
88 /* Get this day holyday type ba harez (diaspora flag = 0) */
89 holyday_type = hdate_get_holyday_type (hdate_get_holyday (&h, 0));
90
91 if (h.gd_mon == month)
92 {
93 /* Print a day */
94 printf ("%2d%c%3s", h.gd_day, type_char[holyday_type], hdate_get_int_string(h.hd_day));
95 }
96 if (j != 6)
97 printf ("\t");
98
99 jd++;
100 }
101 printf ("\n");
102 }
103
104 return 0;
105 }
106
107 int
108 print_month (int month, int year)
109 {
110 hdate_struct h;
111
112 /* check if hebrew year (year > 3000) */
113 if (year > 3000)
114 hdate_set_hdate (&h, 1, month, year);
115 else
116 hdate_set_gdate (&h, 1, month, year);
117
118 /* Print calendar header */
119 print_header (h.gd_mon, h.gd_year);
120 print_calendar (h.gd_mon, h.gd_year);
121
122 printf ("\n");
123
124 return 0;
125 }
126
127 int
128 main (int argc, char* argv[])
129 {
130 int month;
131 int year;
132 hdate_struct h;
133
134 /* Get date from user */
135 if (argc == 3)
136 {
137 month = atoi (argv[1]);
138 year = atoi (argv[2]);
139 }
140 else if (argc == 2)
141 {
142 month = 0;
143 year = atoi (argv[1]);
144
145 /* Check for valid years */
146 if (year < 1)
147 {
148 /* Print help for user and exit */
149 printf ("USAGE: %s [[month] year]\n", argv[0]);
150 exit (0);
151 }
152 }
153 else if (argc == 1)
154 {
155 hdate_set_gdate (&h, 0, 0, 0); /* get today's year */
156 month = h.gd_mon;
157 year = h.gd_year;
158 }
159 else
160 {
161 /* Print help for user and exit */
162 printf ("USAGE: %s [[month] year]\n", argv[0]);
163 exit (0);
164 }
165
166 /* Set the locale, for libhdate to print locale messages */
167 setlocale (LC_ALL,"");
168
169 /* print all year */
170 if (month == 0)
171 {
172 for (month = 1; month < 13; month++)
173 {
174 print_month (month, year);
175 }
176 }
177 else /* print only this month */
178 {
179 print_month (month, year);
180 }
181 return 0;
182 }
0 .\" .UC 4
1 .TH "HDATE" "1" "2 Mar 2005" "Yaacov Zamir" "libhdate"
2 .SH "NAME"
3 hdate \- Hebrew date and calendar
4 .PP
5 example programs for libhdate, a library that help use hebrew dates.
6 .PP
7 LibHdate is a small C,C++ library for Hebrew dates,
8 holidays, and reading sequence (parasha). It is using
9 the source code from Amos Shapir's "hdate" package fixed and
10 patched by Nadav Har'El. The Torah reading sequence
11 is from tables by Zvi Har'El.
12 .SH "SYNOPSIS"
13 .B hdate
14 [-sShdr]
15 .PP
16 [-L longitude -l latitude]
17 [-z timezone]
18 .PP
19 [[[day] month] year]
20 .SH "DESCRIPTION"
21 .I Hdate
22 translates the specified date to the Hebrew calendar.
23 If no arguments are given, it uses today's date.
24 `month' is a number between 1 and 12.
25 .PP
26 If the year is greater than 3000,
27 .I hdate
28 takes the given date as a Hebrew date, and translates it
29 back to the common calendar.
30 Months are numbered with Tishrey being 1 and Elul 12; Adar I and Adar II are months 13 and 14.
31 .PP
32 .I -s
33 : Print sunrise/sunset times.
34 .PP
35 .I -S
36 : Print using short format.
37 .PP
38 .I -h
39 : Print holidays.
40 .PP
41 .I -r
42 : Print weekly reading on saturday.
43 .PP
44 .I -d
45 : Use diaspora reading and holidays.
46 .PP
47 .I -l
48 xx : Set the latitude for solar calculations to
49 .PP
50 xx degrees. Negative values are south.
51 .PP
52 .I -L
53 xx : Set the longitude for solar calculations to
54 .PP
55 xx degrees. *Negative values are EAST*.
56 .PP
57 .I -z
58 : Use specified timezone.
59 .PP
60 ( default location for sunrise/set is Tel Aviv ).
61 .SH "SEE ALSO"
62 date(1), cal(1), hcal(1), hebcal(1), remind(1), hdate.h(3), hdate_struct(3)
63 .SH "AUTHOR"
64 Yaacov Zamir 2005, text copied from Amos Shapir's hdate man file.
0 /* hdate.c
1 * Example file for libhdate.
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hdate.c -o hdate
5 *
6 * Copyright: 2004 (c) Yaacov Zamir
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24
25 #include <stdio.h> /* For printf */
26 #include <hdate.h> /* For hebrew date */
27 #include <stdlib.h> /* For atoi */
28 #include <locale.h> /* For setlocale */
29 #include <unistd.h> /* For getopt */
30
31 #define FALSE 0
32 #define TRUE -1
33
34 /* some useful time zones
35 * Eilat 29, -34, 2
36 * Haifa 32, -34, 2
37 * Jerusalem 31, -35, 2
38 * Tel Aviv 32, -34, 2
39 */
40
41 /* print help */
42 int
43 print_help (char *program)
44 {
45 printf ("hdate - example program for libhdate\n\n");
46
47 printf ("USAGE: %s [-sShdr]\n", program);
48 printf (" [-L longitude -l latitude]\n");
49 printf (" [-z timezone]\n");
50 printf (" [[[day] month] year]\n");
51
52 printf ("OPTIONS:\n");
53 printf (" -s : Print sunrise/sunset times.\n");
54 printf (" -S : Print using short format.\n");
55 printf (" -h : Print holidays.\n");
56 printf (" -H : Print just holidays.\n");
57 printf (" -r : Print weekly reading on saturday.\n");
58 printf (" -R : Print just weekly reading on saturday.\n");
59
60 printf (" -d : Use diaspora reading and holidays.\n");
61 printf (" -l xx : Set the latitude for solar calculations to\n");
62 printf (" xx degrees. Negative values are south.\n");
63 printf (" -L xx : Set the longitude for solar calculations to\n");
64 printf (" xx degrees. *Negative values are EAST*.\n");
65 printf (" The -l and -L switches must both be used, or not at all.\n");
66 printf (" -z : Use specified timezone,\n");
67
68 printf (" ( default location for sunrise/set is Tel Aviv winter time ).\n");
69
70 return 0;
71 }
72
73 /* print one day - gregorian and hebrew date */
74 int
75 print_date (hdate_struct * h, int opt_S)
76 {
77 if (opt_S)
78 {
79 printf ("%d.%d.%d %s ",
80 h->gd_day, h->gd_mon, h->gd_year,
81 hdate_get_int_string (h->hd_day));
82 printf ("%s\n",
83 hdate_get_hebrew_month_string (h->hd_mon, opt_S));
84 }
85 else
86 {
87 printf ("%s, %d %s %d, ",
88 hdate_get_day_string (h->hd_dw, opt_S),
89 h->gd_day,
90 hdate_get_month_string (h->gd_mon, opt_S),
91 h->gd_year);
92 printf ("%s %s ",
93 hdate_get_int_string (h->hd_day),
94 hdate_get_hebrew_month_string (h->hd_mon, opt_S));
95 printf ("%s\n", hdate_get_int_string (h->hd_year));
96 }
97
98 return 0;
99 }
100
101 /* print one day - sunrise/set times */
102 int
103 print_sunrise (hdate_struct * h, double lat, double lon, int tz)
104 {
105 int sunrise, sunset;
106
107 /* get times */
108 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
109 &sunrise, &sunset);
110
111 sunset = sunset + tz * 60;
112 sunrise = sunrise + tz * 60;
113
114 /* print sunset/rise times */
115 printf ("%d:%d - %d:%d ",
116 sunrise / 60, sunrise % 60, sunset / 60, sunset % 60);
117
118 return 0;
119 }
120
121 /* print one day - holiday */
122 int
123 print_holiday (hdate_struct * h, int opt_d, int opt_S)
124 {
125 int holyday;
126
127 holyday = hdate_get_holyday (h, opt_d);
128
129 if (holyday)
130 {
131 /* print holyday */
132 printf ("%s ", hdate_get_holyday_string (holyday, opt_S));
133 }
134
135 return 0;
136 }
137
138 /* print one day - reading */
139 int
140 print_reading (hdate_struct * h, int opt_d, int opt_S)
141 {
142 int reading;
143
144 reading = hdate_get_parasha (h, opt_d);
145
146 if (reading)
147 {
148 /* print parash */
149 printf ("%s", hdate_get_parasha_string (reading, opt_S));
150 }
151
152 return 0;
153 }
154
155 /* print one day - all */
156 int
157 print_day (hdate_struct * h,
158 int opt_d, int opt_S,
159 double lat, double lon, int tz, int opt_s, int opt_h, int opt_r,
160 int opt_R, int opt_H)
161 {
162 /* check for just parasha or holiday flag */
163 if (opt_R && opt_H &&
164 !hdate_get_parasha (h, opt_d) && !hdate_get_holyday (h, opt_d))
165 return 0;
166 if (opt_R && !opt_H &&
167 !hdate_get_parasha (h, opt_d))
168 return 0;
169 if (opt_H && !opt_R &&
170 !hdate_get_holyday (h, opt_d))
171 return 0;
172
173 /* print the day */
174 print_date (h, opt_S);
175
176 if (opt_s)
177 {
178 print_sunrise (h, lat, lon, tz);
179
180 if ((opt_h && hdate_get_holyday (h, opt_d)) ||
181 (opt_r && hdate_get_parasha (h, opt_d)))
182 printf (", ");
183 }
184 if (opt_h)
185 {
186 print_holiday (h, opt_d, opt_S);
187
188 if (opt_r && hdate_get_parasha (h, opt_d)
189 && hdate_get_holyday (h, opt_d))
190 printf (", ");
191 }
192 if (opt_r)
193 {
194 print_reading (h, opt_d, opt_S);
195 }
196
197 if (opt_r || opt_h || opt_s)
198 {
199 printf ("\n");
200 }
201
202 return 0;
203 }
204
205 /* print one month - all */
206 int
207 print_month (int opt_d, int opt_S,
208 double lat, double lon, int tz,
209 int opt_s, int opt_h, int opt_r, int opt_R, int opt_H,
210 int month, int year)
211 {
212 hdate_struct h;
213 int jd;
214
215 /* get date of month start */
216 hdate_set_gdate (&h, 1, month, year);
217 jd = h.hd_jd;
218
219 /* print month header */
220 printf ("\n%s:\n", hdate_get_month_string (h.gd_mon, opt_S));
221
222 /* print month days */
223 while (h.gd_mon == month)
224 {
225 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
226 opt_r, opt_R, opt_H);
227
228 jd++;
229 hdate_set_jd (&h, jd);
230 }
231
232 return 0;
233 }
234
235 /* print one year - all */
236 int
237 print_year (int opt_d, int opt_S,
238 double lat, double lon, int tz, int opt_s, int opt_h, int opt_r,
239 int opt_R, int opt_H, int year)
240 {
241 int month = 1;
242
243 /* print year header */
244 printf ("%d:\n", year);
245
246 /* print year months */
247 while (month < 13)
248 {
249 print_month (opt_d, opt_S, lat, lon, tz, opt_s, opt_h, opt_r, opt_R, opt_H,
250 month, year);
251 month++;
252 }
253
254 return 0;
255 }
256
257 /* print one hebrew month - all */
258 int
259 print_hebrew_month (int opt_d, int opt_S,
260 double lat, double lon, int tz,
261 int opt_s, int opt_h, int opt_r, int opt_R, int opt_H,
262 int month, int year)
263 {
264 hdate_struct h;
265 int jd;
266
267 /* get date of month start */
268 hdate_set_hdate (&h, 1, month, year);
269 jd = h.hd_jd;
270
271 if (h.hd_size_of_year > 365 && month == 6) /* adar of meoberet */
272 {
273 /* print Adar I and Adar II month days */
274 hdate_set_hdate (&h, 1, 13, year);
275 jd = h.hd_jd;
276
277 /* print month header */
278 printf ("\n%s:\n",
279 hdate_get_hebrew_month_string (h.hd_mon, opt_S));
280
281 /* print adar I days */
282 while (h.hd_mon == 13)
283 {
284 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s,
285 opt_h, opt_r, opt_R, opt_H);
286
287 jd++;
288 hdate_set_jd (&h, jd);
289 }
290
291 hdate_set_hdate (&h, 1, 14, year);
292 jd = h.hd_jd;
293
294 /* print month header */
295 printf ("\n%s:\n",
296 hdate_get_hebrew_month_string (h.hd_mon, opt_S));
297
298 /* print adar II days */
299 while (h.hd_mon == 14)
300 {
301 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s,
302 opt_h, opt_r, opt_R, opt_H);
303
304 jd++;
305 hdate_set_jd (&h, jd);
306 }
307 }
308 else
309 {
310 /* print month header */
311 printf ("\n%s:\n",
312 hdate_get_hebrew_month_string (h.hd_mon, opt_S));
313
314 /* print month days */
315 while (h.hd_mon == month)
316 {
317 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s,
318 opt_h, opt_r, opt_R, opt_H);
319
320 jd++;
321 hdate_set_jd (&h, jd);
322 }
323 }
324
325 return 0;
326 }
327
328 /* print one hebrew year - all */
329 int
330 print_hebrew_year (int opt_d, int opt_S,
331 double lat, double lon, int tz,
332 int opt_s, int opt_h, int opt_r, int opt_R, int opt_H,
333 int year)
334 {
335 int month = 1;
336
337 /* print year header */
338 printf ("%s:\n", hdate_get_int_string (year));
339
340 /* print year months */
341 while (month < 13)
342 {
343 print_hebrew_month (opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
344 opt_r, opt_R, opt_H, month, year);
345 month++;
346 }
347
348 return 0;
349 }
350
351 int
352 main (int argc, char *argv[])
353 {
354 hdate_struct h; /* The Hebrew date */
355 char c;
356
357 int day; /* The Gregorian date */
358 int month;
359 int year;
360
361 /* hebcal style command line options */
362 char *progname = argv[0];
363 int opt_s = 0; /* -s option sunrise/set times */
364 int opt_S = 0; /* -S Short format flag */
365 int opt_h = 0; /* -h option holidays */
366 int opt_H = 0; /* -H option just holidays */
367 int opt_r = 0; /* -r option reading */
368 int opt_R = 0; /* -R option just reading */
369 int opt_d = 0; /* -d option diaspora */
370
371 double lat = 32.0; /* -l option default to Tel aviv latitude */
372 double lon = -34.0; /* -L option default to Tel aviv longitude */
373 int tz = 2; /* -z option default to Tel aviv time zone */
374
375 /* init locale */
376 setlocale (LC_ALL, "");
377
378 /* command line parsing */
379 while ((c = getopt (argc, argv, "sShHrRdl:L:z:")) != EOF)
380 {
381 switch (c)
382 {
383 case 's':
384 opt_s = 1;
385 break;
386 case 'S':
387 opt_S = 1;
388 break;
389 case 'H':
390 opt_H = 1;
391 case 'h':
392 opt_h = 1;
393 break;
394 case 'R':
395 opt_R = 1;
396 case 'r':
397 opt_r = 1;
398 break;
399 case 'd':
400 opt_d = 1;
401 break;
402 case 'l':
403 if (optarg)
404 lat = (double) atof (optarg);
405 break;
406 case 'L':
407 if (optarg)
408 lon = (double) atof (optarg);
409 break;
410 case 'z':
411 if (optarg)
412 tz = atoi (optarg);
413 break;
414 default:
415 print_help (argv[0]);
416 exit (0);
417 break;
418 }
419 }
420
421 /* Get calendar */
422 if (argc == optind) /* no date entered */
423 {
424 /* set todays date */
425 hdate_set_gdate (&h, 0, 0, 0);
426
427 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
428 opt_r, opt_R, opt_H);
429 exit (1);
430 }
431 else if (argc == (optind + 1)) /*only year */
432 {
433 /* get year */
434 year = atoi (argv[optind]);
435
436 if (year <= 0) /* error */
437 {
438 print_help (argv[0]);
439 exit (0);
440 }
441 if (year > 3000) /* hebrew year */
442 {
443 print_hebrew_year (opt_d, opt_S, lat, lon, tz, opt_s,
444 opt_h, opt_r, opt_R, opt_H, year);
445 exit (1);
446 }
447 else
448 {
449 print_year (opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
450 opt_r, opt_R, opt_H, year);
451 exit (1);
452 }
453 }
454 else if (argc == (optind + 2)) /*only month and year */
455 {
456 /* get year */
457 year = atoi (argv[optind + 1]);
458 month = atoi (argv[optind]);
459
460 if (year <= 0) /* error */
461 {
462 print_help (argv[0]);
463 exit (0);
464 }
465 if (year > 3000) /* hebrew year */
466 {
467 print_hebrew_month (opt_d, opt_S, lat, lon, tz, opt_s,
468 opt_h, opt_r, opt_R, opt_H, month, year);
469 exit (1);
470 }
471 else
472 {
473 print_month (opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
474 opt_r, opt_R, opt_H, month, year);
475 exit (1);
476 }
477 }
478 else if (argc == (optind + 3)) /*day month and year */
479 {
480 /* get year */
481 year = atoi (argv[optind + 2]);
482 month = atoi (argv[optind + 1]);
483 day = atoi (argv[optind]);
484
485 if (year <= 0) /* error */
486 {
487 print_help (argv[0]);
488 exit (0);
489 }
490
491 /* set date */
492 if (year > 3000) /* hebrew year */
493 {
494 hdate_set_hdate (&h, day, month, year);
495 }
496 else
497 {
498 hdate_set_gdate (&h, day, month, year);
499 }
500
501 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
502 opt_r, opt_R, opt_H);
503
504 exit (1);
505 }
506 else
507 {
508 print_help (argv[0]);
509 exit (0);
510 }
511
512 return 0;
513 }
0 EXTRA_DIST = hdate_hebcal.c
1
2 if WITH_EXAMPLES
3
4 INCLUDES=-I$(top_srcdir)/src
5
6 DEPS= $(top_builddir)/src/libhdate.la
7 ldadd= $(top_builddir)/src/libhdate.la -lm
8
9 bin_PROGRAMS = hdate_hebcal
10 hdate_hebcal_SOURCES = hdate_hebcal.c
11 hdate_hebcal_LDFLAGS =
12 hdate_hebcal_DEPENDENCIES = $(DEPS)
13 hdate_hebcal_LDADD = $(ldadd)
14
15 endif
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184 EXTRA_DIST = hdate_hebcal.c
185
186 @WITH_EXAMPLES_TRUE@INCLUDES = -I$(top_srcdir)/src
187
188 @WITH_EXAMPLES_TRUE@DEPS = $(top_builddir)/src/libhdate.la
189 @WITH_EXAMPLES_TRUE@ldadd = $(top_builddir)/src/libhdate.la -lm
190
191 @WITH_EXAMPLES_TRUE@bin_PROGRAMS = hdate_hebcal
192 @WITH_EXAMPLES_TRUE@hdate_hebcal_SOURCES = hdate_hebcal.c
193 @WITH_EXAMPLES_TRUE@hdate_hebcal_LDFLAGS =
194 @WITH_EXAMPLES_TRUE@hdate_hebcal_DEPENDENCIES = $(DEPS)
195 @WITH_EXAMPLES_TRUE@hdate_hebcal_LDADD = $(ldadd)
196 subdir = examples/hebcal
197 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
198 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
199 CONFIG_CLEAN_FILES =
200 @WITH_EXAMPLES_TRUE@bin_PROGRAMS = hdate_hebcal$(EXEEXT)
201 @WITH_EXAMPLES_FALSE@bin_PROGRAMS =
202 PROGRAMS = $(bin_PROGRAMS)
203
204 am__hdate_hebcal_SOURCES_DIST = hdate_hebcal.c
205 @WITH_EXAMPLES_TRUE@am_hdate_hebcal_OBJECTS = hdate_hebcal.$(OBJEXT)
206 hdate_hebcal_OBJECTS = $(am_hdate_hebcal_OBJECTS)
207 @WITH_EXAMPLES_FALSE@hdate_hebcal_DEPENDENCIES =
208
209 DEFAULT_INCLUDES = -I. -I$(srcdir)
210 depcomp = $(SHELL) $(top_srcdir)/depcomp
211 am__depfiles_maybe = depfiles
212 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/hdate_hebcal.Po
213 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
214 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
215 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
216 $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
217 CCLD = $(CC)
218 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
219 $(AM_LDFLAGS) $(LDFLAGS) -o $@
220 DIST_SOURCES = $(am__hdate_hebcal_SOURCES_DIST)
221 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
222 SOURCES = $(hdate_hebcal_SOURCES)
223
224 all: all-am
225
226 .SUFFIXES:
227 .SUFFIXES: .c .lo .o .obj
228 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
229 cd $(top_srcdir) && \
230 $(AUTOMAKE) --gnu examples/hebcal/Makefile
231 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
232 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
233 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
234 install-binPROGRAMS: $(bin_PROGRAMS)
235 @$(NORMAL_INSTALL)
236 $(mkinstalldirs) $(DESTDIR)$(bindir)
237 @list='$(bin_PROGRAMS)'; for p in $$list; do \
238 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
239 if test -f $$p \
240 || test -f $$p1 \
241 ; then \
242 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
243 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
244 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
245 else :; fi; \
246 done
247
248 uninstall-binPROGRAMS:
249 @$(NORMAL_UNINSTALL)
250 @list='$(bin_PROGRAMS)'; for p in $$list; do \
251 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
252 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
253 rm -f $(DESTDIR)$(bindir)/$$f; \
254 done
255
256 clean-binPROGRAMS:
257 @list='$(bin_PROGRAMS)'; for p in $$list; do \
258 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
259 echo " rm -f $$p $$f"; \
260 rm -f $$p $$f ; \
261 done
262 hdate_hebcal$(EXEEXT): $(hdate_hebcal_OBJECTS) $(hdate_hebcal_DEPENDENCIES)
263 @rm -f hdate_hebcal$(EXEEXT)
264 $(LINK) $(hdate_hebcal_LDFLAGS) $(hdate_hebcal_OBJECTS) $(hdate_hebcal_LDADD) $(LIBS)
265
266 mostlyclean-compile:
267 -rm -f *.$(OBJEXT) core *.core
268
269 distclean-compile:
270 -rm -f *.tab.c
271
272 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdate_hebcal.Po@am__quote@
273
274 .c.o:
275 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
276 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
277 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
278 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
279 @am__fastdepCC_TRUE@ fi
280 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
281 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
282 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
283 @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
284
285 .c.obj:
286 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
287 @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
288 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
289 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
290 @am__fastdepCC_TRUE@ fi
291 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
292 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
293 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
294 @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
295
296 .c.lo:
297 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
298 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
299 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
300 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
301 @am__fastdepCC_TRUE@ fi
302 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
303 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
304 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
305 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
306
307 mostlyclean-libtool:
308 -rm -f *.lo
309
310 clean-libtool:
311 -rm -rf .libs _libs
312
313 distclean-libtool:
314 -rm -f libtool
315 uninstall-info-am:
316
317 ETAGS = etags
318 ETAGSFLAGS =
319
320 CTAGS = ctags
321 CTAGSFLAGS =
322
323 tags: TAGS
324
325 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
326 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
327 unique=`for i in $$list; do \
328 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
329 done | \
330 $(AWK) ' { files[$$0] = 1; } \
331 END { for (i in files) print i; }'`; \
332 mkid -fID $$unique
333
334 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
335 $(TAGS_FILES) $(LISP)
336 tags=; \
337 here=`pwd`; \
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) ' { files[$$0] = 1; } \
343 END { for (i in files) print i; }'`; \
344 test -z "$(ETAGS_ARGS)$$tags$$unique" \
345 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
346 $$tags $$unique
347
348 ctags: CTAGS
349 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
350 $(TAGS_FILES) $(LISP)
351 tags=; \
352 here=`pwd`; \
353 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
354 unique=`for i in $$list; do \
355 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
356 done | \
357 $(AWK) ' { files[$$0] = 1; } \
358 END { for (i in files) print i; }'`; \
359 test -z "$(CTAGS_ARGS)$$tags$$unique" \
360 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
361 $$tags $$unique
362
363 GTAGS:
364 here=`$(am__cd) $(top_builddir) && pwd` \
365 && cd $(top_srcdir) \
366 && gtags -i $(GTAGS_ARGS) $$here
367
368 distclean-tags:
369 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
370 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
371
372 top_distdir = ../..
373 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
374
375 distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
378 list='$(DISTFILES)'; for file in $$list; do \
379 case $$file in \
380 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
381 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
382 esac; \
383 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
384 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
385 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
386 dir="/$$dir"; \
387 $(mkinstalldirs) "$(distdir)$$dir"; \
388 else \
389 dir=''; \
390 fi; \
391 if test -d $$d/$$file; then \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402 check-am: all-am
403 check: check-am
404 all-am: Makefile $(PROGRAMS)
405
406 installdirs:
407 $(mkinstalldirs) $(DESTDIR)$(bindir)
408 install: install-am
409 install-exec: install-exec-am
410 install-data: install-data-am
411 uninstall: uninstall-am
412
413 install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416 installcheck: installcheck-am
417 install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422 mostlyclean-generic:
423
424 clean-generic:
425
426 distclean-generic:
427 -rm -f $(CONFIG_CLEAN_FILES)
428
429 maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432 clean: clean-am
433
434 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
435
436 distclean: distclean-am
437 -rm -rf ./$(DEPDIR)
438 -rm -f Makefile
439 distclean-am: clean-am distclean-compile distclean-generic \
440 distclean-libtool distclean-tags
441
442 dvi: dvi-am
443
444 dvi-am:
445
446 info: info-am
447
448 info-am:
449
450 install-data-am:
451
452 install-exec-am: install-binPROGRAMS
453
454 install-info: install-info-am
455
456 install-man:
457
458 installcheck-am:
459
460 maintainer-clean: maintainer-clean-am
461 -rm -rf ./$(DEPDIR)
462 -rm -f Makefile
463 maintainer-clean-am: distclean-am maintainer-clean-generic
464
465 mostlyclean: mostlyclean-am
466
467 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
468 mostlyclean-libtool
469
470 pdf: pdf-am
471
472 pdf-am:
473
474 ps: ps-am
475
476 ps-am:
477
478 uninstall-am: uninstall-binPROGRAMS uninstall-info-am
479
480 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
481 clean-generic clean-libtool ctags distclean distclean-compile \
482 distclean-generic distclean-libtool distclean-tags distdir dvi \
483 dvi-am info info-am install install-am install-binPROGRAMS \
484 install-data install-data-am install-exec install-exec-am \
485 install-info install-info-am install-man install-strip \
486 installcheck installcheck-am installdirs maintainer-clean \
487 maintainer-clean-generic mostlyclean mostlyclean-compile \
488 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
489 tags uninstall uninstall-am uninstall-binPROGRAMS \
490 uninstall-info-am
491
492 # Tell versions [3.59,3.63) of GNU make to not export all variables.
493 # Otherwise a system limit (for SysV at least) may be exceeded.
494 .NOEXPORT:
0 /* hdate_hebcal.c
1 * Example file for libhdate.
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hdate_hebcal.c -o hdate_hebcal
5 *
6 * Copyright: 2005 (c) Yaacov Zamir
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24 #include <stdio.h> /* For printf */
25 #include <hdate.h> /* For hebrew date */
26 #include <stdlib.h> /* For atoi */
27 #include <locale.h> /* For setlocale */
28 #include <unistd.h> /* For getopt */
29
30 /* some useful time zones
31 * Eilat 29, -34, 2
32 * Haifa 32, -34, 2
33 * Jerusalem 31, -35, 2
34 * Tel Aviv 32, -34, 2
35 */
36
37 /* print help */
38 int
39 print_help (char *program)
40 {
41 printf ("hebcal clone program for testing of libhdate library.\n\n");
42 printf ("USAGE: %s [-cdDehirsx]\n", program);
43 printf (" [-L longitude -l latitude]\n");
44 printf (" [-m havdalah_minutes_past_sundown ]\n");
45 printf (" [-z timezone]\n");
46 printf (" [ year ]\n");
47 printf ("OPTIONS:\n");
48 printf (" -c : Print candlelighting times.\n");
49 printf (" -d : print the hebrew date for the entire date range.\n");
50 printf (" -D : print the hebrew date for dates with some event.\n");
51 printf (" -e : Ouput \"european\" dates -- DD.MM.YYYY format.\n");
52 printf (" -h : Suppress default holidays.\n");
53 printf (" -i : Use Israeli sedra scheme.\n");
54 printf (" -l xx : Set the latitude for solar calculations to\n");
55 printf (" xx degrees. Negative values are south.\n");
56 printf (" -L xx : Set the longitude for solar calculations to\n");
57 printf (" xx degrees. *Negative values are EAST*.\n");
58 printf (" The -l and -L switches must both be used, or not at all.\n");
59 printf (" -m mins : Set havdalah to occur this many minutes after sundown\n");
60 printf (" -r : Tab delineated format.\n");
61 printf (" -s : Add weekly sedrot on saturday.\n");
62 printf (" -x : Suppress Rosh Chodesh.\n");
63 printf (" -z : Use specified timezone,\n");
64 }
65
66 /* hebcal style printing */
67
68 /* gregorian date */
69 int
70 print_gregorian_date (hdate_struct *h, int opt_e, char separator)
71 {
72 if (opt_e)
73 printf ("%d.%d.%d%c",
74 h->gd_day, h->gd_mon, h->gd_year, separator);
75 else
76 printf ("%d/%d/%d%c",
77 h->gd_mon, h->gd_day, h->gd_year, separator);
78 }
79
80 /* hebrew date */
81 int
82 print_hebrew_date (hdate_struct *h)
83 {
84 char number_suffix[3];
85
86 switch (h->hd_day)
87 {
88 case 1:
89 case 21:
90 number_suffix[0] = 's';
91 number_suffix[1] = 't';
92 number_suffix[2] = 0;
93 break;
94 case 2:
95 case 22:
96 number_suffix[0] = 'n';
97 number_suffix[1] = 'd';
98 number_suffix[2] = 0;
99 break;
100 case 3:
101 case 23:
102 number_suffix[0] = 'r';
103 number_suffix[1] = 'd';
104 number_suffix[2] = 0;
105 break;
106 default:
107 number_suffix[0] = 't';
108 number_suffix[1] = 'h';
109 number_suffix[2] = 0;
110 break;
111 }
112
113 printf ("%d%s of %s, %d\n",
114 h->hd_day,
115 number_suffix,
116 hdate_get_hebrew_month_string (h->hd_mon, 0),
117 h->hd_year);
118 }
119
120 /* main program */
121 int
122 main (int argc, char* argv[])
123 {
124 hdate_struct h; /* The Hebrew date */
125 int jd;
126 int reading;
127 int holyday;
128 int rosh_hodesh;
129 int candle_lighting;
130 int havdala;
131 int event;
132 int year = 0;
133 int sunset, sunrise;
134 char c;
135
136 /* hebcal style command line options */
137 char *progname=argv[0];
138 int opt_c=0; /* -c option candle lighting times */
139 int opt_d=0; /* -d option hebrew date for evrey day */
140 int opt_D=0; /* -D option hebrew date for event day */
141 int opt_e=0; /* -e option use normal date format */
142 int opt_h=0; /* -h option do not show holydays */
143 int opt_i=0; /* -i option do not use diaspora reading and holyday */
144 char separator = ' '; /* -r option default separator is space */
145 int opt_s=0; /* -s option show parasha */
146 int opt_x=0; /* -x option do not show new month day */
147 double lat = 32.0; /* -l option default to Tel aviv latitude */
148 double lon = -34.0; /* -L option default to Tel aviv longitude */
149 int havdala_minutes = 72; /* -m option havdalah_minutes_past_sundown */
150 int tz = 2; /* -z option default to Tel aviv time zone */
151
152 /* command line parsing */
153 while((c=getopt(argc, argv, "cdDehirsxl:L:m:z:"))!=EOF){
154 switch(c){
155 case 'c':
156 opt_c=1;
157 break;
158 case 'd':
159 opt_d=1;
160 break;
161 case 'D':
162 opt_D=1;
163 break;
164 case 'e':
165 opt_e=1;
166 break;
167 case 'h':
168 opt_h=1;
169 break;
170 case 'i':
171 opt_i=1;
172 break;
173 case 'r':
174 separator = '\t'; /* separator is tab */
175 break;
176 case 's':
177 opt_s=1;
178 break;
179 case 'x':
180 opt_x=1;
181 break;
182 case 'l':
183 if (optarg)
184 lat = (double) atof (optarg);
185 break;
186 case 'L':
187 if (optarg)
188 lon = (double) atof (optarg);
189 break;
190 case 'm':
191 if (optarg)
192 havdala_minutes = atoi (optarg);
193 break;
194 case 'z':
195 if (optarg)
196 tz = atoi (optarg);
197 break;
198 default:
199 print_help (argv[0]);
200 exit (0);
201 break;
202 }
203 }
204
205 /* Get calendar gregorian year */
206 if (argc == optind)
207 {
208 /* set initial date */
209 hdate_set_gdate (&h, 0, 0, 0);
210 year = h.gd_year;
211 }
212 else if (argc == (optind + 1))
213 {
214 /* set initial date */
215 year = atoi (argv[optind]);
216 }
217
218 /* if you think this is not a valid year */
219 if (year <= 0)
220 {
221 /* Print help for user and exit */
222 print_help (argv[0]);
223 exit (0);
224 }
225
226 /* Set the locale to C (FIXME: original hebcal output does not use locale) */
227 setlocale (LC_ALL, "C");
228
229 /* get initial date */
230 hdate_set_gdate (&h, 1, 1, year);
231 jd = h.hd_jd;
232
233 /* Print the hebcal output */
234 while (h.gd_year == year)
235 {
236 /* get todays events */
237 reading = hdate_get_parasha (&h, !opt_i) * opt_s;
238 holyday = hdate_get_holyday (&h, !opt_i) * (1 - opt_h);
239 rosh_hodesh = (h.hd_day == 1) && !opt_x;
240 candle_lighting = (h.hd_dw == 6) && opt_c;
241 havdala = (h.hd_dw == 7) && opt_c;
242 event = reading || holyday || rosh_hodesh || candle_lighting || havdala;
243
244 /* print hebrew date */
245 if (opt_d || (opt_D && event))
246 {
247 /* print the gregorian date */
248 print_gregorian_date (&h, opt_e, separator);
249
250 /* print hebrew date */
251 print_hebrew_date (&h);
252 }
253
254 /* print parasha */
255 if (reading)
256 {
257 /* print the gregorian date */
258 print_gregorian_date (&h, opt_e, separator);
259
260 /* print parash */
261 printf ("Parashat %s\n", hdate_get_parasha_string (reading, 0));
262 }
263
264 /* print rosh hodesh */
265 if (rosh_hodesh)
266 {
267 /* print the gregorian date */
268 print_gregorian_date (&h, opt_e, separator);
269
270 /* print rosh hodesh */
271 printf ("Rosh Chodesh %s\n", hdate_get_hebrew_month_string (h.hd_mon, 0));
272 }
273
274 /* print holyday */
275 if (holyday)
276 {
277 /* print the gregorian date */
278 print_gregorian_date (&h, opt_e, separator);
279
280 /* print holyday */
281 printf ("%s\n", hdate_get_holyday_string (holyday, 0));
282 }
283
284 /* print candle lighting times */
285 if (candle_lighting)
286 {
287 /* print the gregorian date */
288 print_gregorian_date (&h, opt_e, separator);
289
290 /* get times */
291 hdate_get_utc_sun_time (h.gd_day, h.gd_mon, h.gd_year, lat, lon, &sunrise, &sunset);
292 sunset = sunset + tz * 60 - 20; /* -20 for shabat */
293
294 /* print candel lighting time */
295 printf ("Candle lighting: %d:%d\n", sunset / 60 - 12, sunset % 60);
296 }
297
298 if (havdala)
299 {
300 /* print the gregorian date */
301 print_gregorian_date (&h, opt_e, separator);
302
303 /* get times */
304 hdate_get_utc_sun_time (h.gd_day, h.gd_mon, h.gd_year, lat, lon, &sunrise, &sunset);
305 /* havdala_minutes for havdala */
306 sunset = sunset + tz * 60 + havdala_minutes;
307
308 /* print havdala time */
309 printf ("Havdalah (%d min): %d:%d\n", havdala_minutes,
310 sunset / 60 - 12, sunset % 60);
311 }
312
313 /* move to next day */
314 jd ++;
315 hdate_set_jd (&h, jd);
316 }
317
318 return 0;
319 }
0 EXTRA_DIST = hdate_reading_html.c hdate_holydays_html.c
1
2 if WITH_EXAMPLES
3
4 INCLUDES=-I$(top_srcdir)/src
5
6 DEPS= $(top_builddir)/src/libhdate.la
7 ldadd= $(top_builddir)/src/libhdate.la -lm
8
9 bin_PROGRAMS = hdate_reading_html hdate_holydays_html
10
11 hdate_reading_html_SOURCES = hdate_reading_html.c
12 hdate_reading_html_LDFLAGS =
13 hdate_reading_html_DEPENDENCIES = $(DEPS)
14 hdate_reading_html_LDADD = $(ldadd)
15
16 hdate_holydays_html_SOURCES = hdate_holydays_html.c
17 hdate_holydays_html_LDFLAGS =
18 hdate_holydays_html_DEPENDENCIES = $(DEPS)
19 hdate_holydays_html_LDADD = $(ldadd)
20
21 endif
22
23 libhdatedocdir = ${prefix}/share/doc/libhdate0/examples/html
24 libhdatedoc_DATA = hdate_holydays_html.c hdate_reading_html.c
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184 EXTRA_DIST = hdate_reading_html.c hdate_holydays_html.c
185
186 @WITH_EXAMPLES_TRUE@INCLUDES = -I$(top_srcdir)/src
187
188 @WITH_EXAMPLES_TRUE@DEPS = $(top_builddir)/src/libhdate.la
189 @WITH_EXAMPLES_TRUE@ldadd = $(top_builddir)/src/libhdate.la -lm
190
191 @WITH_EXAMPLES_TRUE@bin_PROGRAMS = hdate_reading_html hdate_holydays_html
192
193 @WITH_EXAMPLES_TRUE@hdate_reading_html_SOURCES = hdate_reading_html.c
194 @WITH_EXAMPLES_TRUE@hdate_reading_html_LDFLAGS =
195 @WITH_EXAMPLES_TRUE@hdate_reading_html_DEPENDENCIES = $(DEPS)
196 @WITH_EXAMPLES_TRUE@hdate_reading_html_LDADD = $(ldadd)
197
198 @WITH_EXAMPLES_TRUE@hdate_holydays_html_SOURCES = hdate_holydays_html.c
199 @WITH_EXAMPLES_TRUE@hdate_holydays_html_LDFLAGS =
200 @WITH_EXAMPLES_TRUE@hdate_holydays_html_DEPENDENCIES = $(DEPS)
201 @WITH_EXAMPLES_TRUE@hdate_holydays_html_LDADD = $(ldadd)
202
203 libhdatedocdir = ${prefix}/share/doc/libhdate0/examples/html
204 libhdatedoc_DATA = hdate_holydays_html.c hdate_reading_html.c
205 subdir = examples/html
206 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
207 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
208 CONFIG_CLEAN_FILES =
209 @WITH_EXAMPLES_TRUE@bin_PROGRAMS = hdate_reading_html$(EXEEXT) \
210 @WITH_EXAMPLES_TRUE@ hdate_holydays_html$(EXEEXT)
211 @WITH_EXAMPLES_FALSE@bin_PROGRAMS =
212 PROGRAMS = $(bin_PROGRAMS)
213
214 am__hdate_holydays_html_SOURCES_DIST = hdate_holydays_html.c
215 @WITH_EXAMPLES_TRUE@am_hdate_holydays_html_OBJECTS = \
216 @WITH_EXAMPLES_TRUE@ hdate_holydays_html.$(OBJEXT)
217 hdate_holydays_html_OBJECTS = $(am_hdate_holydays_html_OBJECTS)
218 @WITH_EXAMPLES_FALSE@hdate_holydays_html_DEPENDENCIES =
219 am__hdate_reading_html_SOURCES_DIST = hdate_reading_html.c
220 @WITH_EXAMPLES_TRUE@am_hdate_reading_html_OBJECTS = \
221 @WITH_EXAMPLES_TRUE@ hdate_reading_html.$(OBJEXT)
222 hdate_reading_html_OBJECTS = $(am_hdate_reading_html_OBJECTS)
223 @WITH_EXAMPLES_FALSE@hdate_reading_html_DEPENDENCIES =
224
225 DEFAULT_INCLUDES = -I. -I$(srcdir)
226 depcomp = $(SHELL) $(top_srcdir)/depcomp
227 am__depfiles_maybe = depfiles
228 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/hdate_holydays_html.Po \
229 @AMDEP_TRUE@ ./$(DEPDIR)/hdate_reading_html.Po
230 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
231 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
232 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
233 $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
234 CCLD = $(CC)
235 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
236 $(AM_LDFLAGS) $(LDFLAGS) -o $@
237 DIST_SOURCES = $(am__hdate_holydays_html_SOURCES_DIST) \
238 $(am__hdate_reading_html_SOURCES_DIST)
239 DATA = $(libhdatedoc_DATA)
240
241 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
242 SOURCES = $(hdate_holydays_html_SOURCES) $(hdate_reading_html_SOURCES)
243
244 all: all-am
245
246 .SUFFIXES:
247 .SUFFIXES: .c .lo .o .obj
248 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu examples/html/Makefile
251 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
252 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
253 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
254 install-binPROGRAMS: $(bin_PROGRAMS)
255 @$(NORMAL_INSTALL)
256 $(mkinstalldirs) $(DESTDIR)$(bindir)
257 @list='$(bin_PROGRAMS)'; for p in $$list; do \
258 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
259 if test -f $$p \
260 || test -f $$p1 \
261 ; then \
262 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
263 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
264 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
265 else :; fi; \
266 done
267
268 uninstall-binPROGRAMS:
269 @$(NORMAL_UNINSTALL)
270 @list='$(bin_PROGRAMS)'; for p in $$list; do \
271 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
272 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
273 rm -f $(DESTDIR)$(bindir)/$$f; \
274 done
275
276 clean-binPROGRAMS:
277 @list='$(bin_PROGRAMS)'; for p in $$list; do \
278 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
279 echo " rm -f $$p $$f"; \
280 rm -f $$p $$f ; \
281 done
282 hdate_holydays_html$(EXEEXT): $(hdate_holydays_html_OBJECTS) $(hdate_holydays_html_DEPENDENCIES)
283 @rm -f hdate_holydays_html$(EXEEXT)
284 $(LINK) $(hdate_holydays_html_LDFLAGS) $(hdate_holydays_html_OBJECTS) $(hdate_holydays_html_LDADD) $(LIBS)
285 hdate_reading_html$(EXEEXT): $(hdate_reading_html_OBJECTS) $(hdate_reading_html_DEPENDENCIES)
286 @rm -f hdate_reading_html$(EXEEXT)
287 $(LINK) $(hdate_reading_html_LDFLAGS) $(hdate_reading_html_OBJECTS) $(hdate_reading_html_LDADD) $(LIBS)
288
289 mostlyclean-compile:
290 -rm -f *.$(OBJEXT) core *.core
291
292 distclean-compile:
293 -rm -f *.tab.c
294
295 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdate_holydays_html.Po@am__quote@
296 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdate_reading_html.Po@am__quote@
297
298 .c.o:
299 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
300 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
301 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
302 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
303 @am__fastdepCC_TRUE@ fi
304 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307 @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
308
309 .c.obj:
310 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
311 @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
312 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
313 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
314 @am__fastdepCC_TRUE@ fi
315 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
317 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318 @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
319
320 .c.lo:
321 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
322 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
323 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
324 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
325 @am__fastdepCC_TRUE@ fi
326 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
327 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
328 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
330
331 mostlyclean-libtool:
332 -rm -f *.lo
333
334 clean-libtool:
335 -rm -rf .libs _libs
336
337 distclean-libtool:
338 -rm -f libtool
339 uninstall-info-am:
340 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
341 install-libhdatedocDATA: $(libhdatedoc_DATA)
342 @$(NORMAL_INSTALL)
343 $(mkinstalldirs) $(DESTDIR)$(libhdatedocdir)
344 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
345 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
346 f="`echo $$p | sed -e 's|^.*/||'`"; \
347 echo " $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f"; \
348 $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f; \
349 done
350
351 uninstall-libhdatedocDATA:
352 @$(NORMAL_UNINSTALL)
353 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
354 f="`echo $$p | sed -e 's|^.*/||'`"; \
355 echo " rm -f $(DESTDIR)$(libhdatedocdir)/$$f"; \
356 rm -f $(DESTDIR)$(libhdatedocdir)/$$f; \
357 done
358
359 ETAGS = etags
360 ETAGSFLAGS =
361
362 CTAGS = ctags
363 CTAGSFLAGS =
364
365 tags: TAGS
366
367 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
368 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
369 unique=`for i in $$list; do \
370 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
371 done | \
372 $(AWK) ' { files[$$0] = 1; } \
373 END { for (i in files) print i; }'`; \
374 mkid -fID $$unique
375
376 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
377 $(TAGS_FILES) $(LISP)
378 tags=; \
379 here=`pwd`; \
380 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
381 unique=`for i in $$list; do \
382 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
383 done | \
384 $(AWK) ' { files[$$0] = 1; } \
385 END { for (i in files) print i; }'`; \
386 test -z "$(ETAGS_ARGS)$$tags$$unique" \
387 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
388 $$tags $$unique
389
390 ctags: CTAGS
391 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
392 $(TAGS_FILES) $(LISP)
393 tags=; \
394 here=`pwd`; \
395 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
396 unique=`for i in $$list; do \
397 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
398 done | \
399 $(AWK) ' { files[$$0] = 1; } \
400 END { for (i in files) print i; }'`; \
401 test -z "$(CTAGS_ARGS)$$tags$$unique" \
402 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
403 $$tags $$unique
404
405 GTAGS:
406 here=`$(am__cd) $(top_builddir) && pwd` \
407 && cd $(top_srcdir) \
408 && gtags -i $(GTAGS_ARGS) $$here
409
410 distclean-tags:
411 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
412 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
413
414 top_distdir = ../..
415 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
416
417 distdir: $(DISTFILES)
418 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
419 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
420 list='$(DISTFILES)'; for file in $$list; do \
421 case $$file in \
422 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
423 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
424 esac; \
425 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
426 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
427 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
428 dir="/$$dir"; \
429 $(mkinstalldirs) "$(distdir)$$dir"; \
430 else \
431 dir=''; \
432 fi; \
433 if test -d $$d/$$file; then \
434 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
435 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
436 fi; \
437 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
438 else \
439 test -f $(distdir)/$$file \
440 || cp -p $$d/$$file $(distdir)/$$file \
441 || exit 1; \
442 fi; \
443 done
444 check-am: all-am
445 check: check-am
446 all-am: Makefile $(PROGRAMS) $(DATA)
447
448 installdirs:
449 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(libhdatedocdir)
450 install: install-am
451 install-exec: install-exec-am
452 install-data: install-data-am
453 uninstall: uninstall-am
454
455 install-am: all-am
456 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
457
458 installcheck: installcheck-am
459 install-strip:
460 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
461 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
462 `test -z '$(STRIP)' || \
463 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
464 mostlyclean-generic:
465
466 clean-generic:
467
468 distclean-generic:
469 -rm -f $(CONFIG_CLEAN_FILES)
470
471 maintainer-clean-generic:
472 @echo "This command is intended for maintainers to use"
473 @echo "it deletes files that may require special tools to rebuild."
474 clean: clean-am
475
476 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
477
478 distclean: distclean-am
479 -rm -rf ./$(DEPDIR)
480 -rm -f Makefile
481 distclean-am: clean-am distclean-compile distclean-generic \
482 distclean-libtool distclean-tags
483
484 dvi: dvi-am
485
486 dvi-am:
487
488 info: info-am
489
490 info-am:
491
492 install-data-am: install-libhdatedocDATA
493
494 install-exec-am: install-binPROGRAMS
495
496 install-info: install-info-am
497
498 install-man:
499
500 installcheck-am:
501
502 maintainer-clean: maintainer-clean-am
503 -rm -rf ./$(DEPDIR)
504 -rm -f Makefile
505 maintainer-clean-am: distclean-am maintainer-clean-generic
506
507 mostlyclean: mostlyclean-am
508
509 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
510 mostlyclean-libtool
511
512 pdf: pdf-am
513
514 pdf-am:
515
516 ps: ps-am
517
518 ps-am:
519
520 uninstall-am: uninstall-binPROGRAMS uninstall-info-am \
521 uninstall-libhdatedocDATA
522
523 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
524 clean-generic clean-libtool ctags distclean distclean-compile \
525 distclean-generic distclean-libtool distclean-tags distdir dvi \
526 dvi-am info info-am install install-am install-binPROGRAMS \
527 install-data install-data-am install-exec install-exec-am \
528 install-info install-info-am install-libhdatedocDATA \
529 install-man install-strip installcheck installcheck-am \
530 installdirs maintainer-clean maintainer-clean-generic \
531 mostlyclean mostlyclean-compile mostlyclean-generic \
532 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
533 uninstall-am uninstall-binPROGRAMS uninstall-info-am \
534 uninstall-libhdatedocDATA
535
536 # Tell versions [3.59,3.63) of GNU make to not export all variables.
537 # Otherwise a system limit (for SysV at least) may be exceeded.
538 .NOEXPORT:
0 /* hdate_holydays_html.c
1 * Example file for libhdate.
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hdate_holydays_html.c -o hdate_holydays_html
5 *
6 * Copyright: 2005 (c) Yaacov Zamir
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24
25 #include <stdio.h> /* For printf */
26 #include <hdate.h> /* For hebrew date */
27 #include <stdlib.h> /* For atoi */
28 #include <locale.h> /* For setlocale */
29
30 int
31 main (int argc, char* argv[])
32 {
33 hdate_struct h; /* The Hebrew date */
34
35 int jd;
36 int holyday;
37 int year;
38
39 /* Get calendar hebrew year */
40 if (argc == 2)
41 {
42 /* Set start and end dates of the iCal file from user */
43 year = atoi (argv[1]);
44
45 hdate_set_hdate (&h, 1, 1, year);
46 jd = h.hd_jd;
47 }
48 else
49 {
50 /* Print help for user and exit */
51 printf ("USAGE: %s year\n", argv[0]);
52 exit (0);
53 }
54
55 /* Set the locale to Hebrew*/
56 setlocale (LC_ALL,"he_IL");
57
58 /* Print start of html format */
59 printf ("<html>\n");
60 printf ("<head>\n");
61 printf ("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">");
62 printf ("<title>לוח שנה</title>\n");
63 printf ("</head>\n");
64 printf ("<body dir=\"rtl\">\n");
65
66 /* Print the html calendar */
67 printf ("<h1>לוח שנה, חגים לשנת %s</h1>\n", hdate_get_int_string (h.hd_year));
68 printf ("<h3>אורכה %d ימים, ראש השנה ביום %s</h3>\n", h.hd_size_of_year, hdate_get_day_string (h.hd_new_year_dw, 0));
69
70 while (h.hd_year == year)
71 {
72 /* if start of month print header with long month name*/
73 if (h.hd_day == 1)
74 printf ("<h2>%s</h2>\n", hdate_get_hebrew_month_string (h.hd_mon, 0));
75
76 /* set diaspora flag to 0, for holydays ba harez */
77 holyday = hdate_get_holyday (&h, 0);
78
79 if (holyday != 0)
80 {
81 printf ("%d,%d,%d %s</br>\n", h.gd_day, h.gd_mon, h.gd_year, hdate_get_format_date (&h, 0, 0));
82 }
83
84 /* get today hdate */
85 jd++;
86 hdate_set_jd (&h, jd);
87 }
88
89 /* Print end of html format */
90 printf ("</body>\n");
91 printf ("</html>\n");
92
93 return 0;
94 }
0 /* hdate_holydays_html.c
1 * Example file for libhdate.
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hdate_holydays_html.c -o hdate_holydays_html
5 *
6 * Copyright: 2005 (c) Yaacov Zamir
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24 #include <stdio.h> /* For printf */
25 #include <hdate.h> /* For hebrew date */
26 #include <stdlib.h> /* For atoi */
27 #include <locale.h> /* For setlocale */
28
29 /* some useful time zones
30 * Eilat 29, -34, 2
31 * Haifa 32, -34, 2
32 * Jerusalem 31, -35, 2
33 * Tel Aviv 32, -34, 2
34 */
35
36 /* define Tel Aviv time zone */
37 #define tz 2
38 #define lat 32.0
39 #define lon -34.0
40
41 int
42 main (int argc, char* argv[])
43 {
44 hdate_struct h; /* The Hebrew date */
45
46 int jd;
47 int reading;
48 int year;
49 int sunset, sunrise;
50
51 /* Get calendar hebrew year */
52 if (argc == 2)
53 {
54 year = atoi (argv[1]);
55 hdate_set_hdate (&h, 1, 1, year);
56
57 /* get the julian of first shabat in year */
58 jd = h.hd_jd + (7 - h.hd_dw);
59 hdate_set_jd (&h, jd);
60 }
61 else
62 {
63 /* Print help for user and exit */
64 printf ("USAGE: %s year\n", argv[0]);
65 exit (0);
66 }
67
68 /* Set the locale to Hebrew*/
69 setlocale (LC_ALL,"he_IL");
70
71 /* Print start of html format */
72 printf ("<html>\n");
73 printf ("<head>\n");
74 printf ("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">");
75 printf ("<title>לוח שנה</title>\n");
76 printf ("</head>\n");
77 printf ("<body dir=\"rtl\">\n");
78
79 /* Print the html calendar */
80 printf ("<h1>לוח שנה, קריאות בתורה לשנת %s</h1>\n", hdate_get_int_string (h.hd_year));
81 printf ("<h3>אורכה %d ימים, ראש השנה ביום %s</h3>\n", h.hd_size_of_year, hdate_get_day_string (h.hd_new_year_dw, 0));
82 printf ("<h4>זמני הזריחות והשקיעות לפי שעון חורף, אזור המרכז</h4>\n");
83
84 while (h.hd_year == year)
85 {
86 reading = hdate_get_parasha (&h, 0);
87
88 if (reading != 0)
89 {
90 printf ("%d,%d,%d %s, %s</br>\n", h.gd_day, h.gd_mon, h.gd_year,
91 hdate_get_format_date (&h, 0, 0),
92 hdate_get_parasha_string (reading, 0));
93 }
94 else
95 {
96 printf ("%d,%d,%d %s</br>\n", h.gd_day, h.gd_mon, h.gd_year,
97 hdate_get_format_date (&h, 0, 0));
98 }
99
100 /* print sunrise and sunset times of fri and sat. */
101 hdate_set_jd (&h, jd - 1);
102 hdate_get_utc_sun_time (h.gd_day, h.gd_mon, h.gd_year, lat, lon, &sunrise, &sunset);
103 sunrise = sunrise + tz * 60;
104 sunset = sunset + tz * 60;
105
106 printf ("יום שישי</br>\n");
107 printf ("זריחה %d:%d, שקיעה %d:%d</br>\n", sunrise / 60, sunrise % 60, sunset / 60, sunset % 60);
108
109 hdate_set_jd (&h, jd);
110 hdate_get_utc_sun_time (h.gd_day, h.gd_mon, h.gd_year, lat, lon, &sunrise, &sunset);
111 sunrise = sunrise + tz * 60;
112 sunset = sunset + tz * 60;
113
114 printf ("יום שבת</br>\n");
115 printf ("זריחה %d:%d, שקיעה %d:%d</br>\n", sunrise / 60, sunrise % 60, sunset / 60, sunset % 60);
116
117 /* print a seperator */
118 printf ("------</br>\n");
119
120 /* get next week shabats hdate */
121 hdate_set_jd (&h, jd);
122 jd = jd + 7;
123 }
124
125 /* Print end of html format */
126 printf ("</body>\n");
127 printf ("</html>\n");
128
129 return 0;
130 }
0 EXTRA_DIST = hdate_reading_ical.c hdate_holydays_ical.c
1
2 if WITH_EXAMPLES
3
4 INCLUDES=-I$(top_srcdir)/src
5
6 DEPS= $(top_builddir)/src/libhdate.la
7 ldadd= $(top_builddir)/src/libhdate.la -lm
8
9 bin_PROGRAMS = hdate_reading_ical hdate_holydays_ical
10
11 hdate_reading_ical_SOURCES = hdate_reading_ical.c
12 hdate_reading_ical_LDFLAGS =
13 hdate_reading_ical_DEPENDENCIES = $(DEPS)
14 hdate_reading_ical_LDADD = $(ldadd)
15
16 hdate_holydays_ical_SOURCES = hdate_holydays_ical.c
17 hdate_holydays_ical_LDFLAGS =
18 hdate_holydays_ical_DEPENDENCIES = $(DEPS)
19 hdate_holydays_ical_LDADD = $(ldadd)
20
21 endif
22
23 libhdatedocdir = ${prefix}/share/doc/libhdate0/examples/ical
24 libhdatedoc_DATA = hdate_holydays_ical.c hdate_reading_ical.c
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184 EXTRA_DIST = hdate_reading_ical.c hdate_holydays_ical.c
185
186 @WITH_EXAMPLES_TRUE@INCLUDES = -I$(top_srcdir)/src
187
188 @WITH_EXAMPLES_TRUE@DEPS = $(top_builddir)/src/libhdate.la
189 @WITH_EXAMPLES_TRUE@ldadd = $(top_builddir)/src/libhdate.la -lm
190
191 @WITH_EXAMPLES_TRUE@bin_PROGRAMS = hdate_reading_ical hdate_holydays_ical
192
193 @WITH_EXAMPLES_TRUE@hdate_reading_ical_SOURCES = hdate_reading_ical.c
194 @WITH_EXAMPLES_TRUE@hdate_reading_ical_LDFLAGS =
195 @WITH_EXAMPLES_TRUE@hdate_reading_ical_DEPENDENCIES = $(DEPS)
196 @WITH_EXAMPLES_TRUE@hdate_reading_ical_LDADD = $(ldadd)
197
198 @WITH_EXAMPLES_TRUE@hdate_holydays_ical_SOURCES = hdate_holydays_ical.c
199 @WITH_EXAMPLES_TRUE@hdate_holydays_ical_LDFLAGS =
200 @WITH_EXAMPLES_TRUE@hdate_holydays_ical_DEPENDENCIES = $(DEPS)
201 @WITH_EXAMPLES_TRUE@hdate_holydays_ical_LDADD = $(ldadd)
202
203 libhdatedocdir = ${prefix}/share/doc/libhdate0/examples/ical
204 libhdatedoc_DATA = hdate_holydays_ical.c hdate_reading_ical.c
205 subdir = examples/ical
206 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
207 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
208 CONFIG_CLEAN_FILES =
209 @WITH_EXAMPLES_TRUE@bin_PROGRAMS = hdate_reading_ical$(EXEEXT) \
210 @WITH_EXAMPLES_TRUE@ hdate_holydays_ical$(EXEEXT)
211 @WITH_EXAMPLES_FALSE@bin_PROGRAMS =
212 PROGRAMS = $(bin_PROGRAMS)
213
214 am__hdate_holydays_ical_SOURCES_DIST = hdate_holydays_ical.c
215 @WITH_EXAMPLES_TRUE@am_hdate_holydays_ical_OBJECTS = \
216 @WITH_EXAMPLES_TRUE@ hdate_holydays_ical.$(OBJEXT)
217 hdate_holydays_ical_OBJECTS = $(am_hdate_holydays_ical_OBJECTS)
218 @WITH_EXAMPLES_FALSE@hdate_holydays_ical_DEPENDENCIES =
219 am__hdate_reading_ical_SOURCES_DIST = hdate_reading_ical.c
220 @WITH_EXAMPLES_TRUE@am_hdate_reading_ical_OBJECTS = \
221 @WITH_EXAMPLES_TRUE@ hdate_reading_ical.$(OBJEXT)
222 hdate_reading_ical_OBJECTS = $(am_hdate_reading_ical_OBJECTS)
223 @WITH_EXAMPLES_FALSE@hdate_reading_ical_DEPENDENCIES =
224
225 DEFAULT_INCLUDES = -I. -I$(srcdir)
226 depcomp = $(SHELL) $(top_srcdir)/depcomp
227 am__depfiles_maybe = depfiles
228 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/hdate_holydays_ical.Po \
229 @AMDEP_TRUE@ ./$(DEPDIR)/hdate_reading_ical.Po
230 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
231 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
232 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
233 $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
234 CCLD = $(CC)
235 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
236 $(AM_LDFLAGS) $(LDFLAGS) -o $@
237 DIST_SOURCES = $(am__hdate_holydays_ical_SOURCES_DIST) \
238 $(am__hdate_reading_ical_SOURCES_DIST)
239 DATA = $(libhdatedoc_DATA)
240
241 DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
242 SOURCES = $(hdate_holydays_ical_SOURCES) $(hdate_reading_ical_SOURCES)
243
244 all: all-am
245
246 .SUFFIXES:
247 .SUFFIXES: .c .lo .o .obj
248 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu examples/ical/Makefile
251 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
252 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
253 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
254 install-binPROGRAMS: $(bin_PROGRAMS)
255 @$(NORMAL_INSTALL)
256 $(mkinstalldirs) $(DESTDIR)$(bindir)
257 @list='$(bin_PROGRAMS)'; for p in $$list; do \
258 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
259 if test -f $$p \
260 || test -f $$p1 \
261 ; then \
262 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
263 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
264 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
265 else :; fi; \
266 done
267
268 uninstall-binPROGRAMS:
269 @$(NORMAL_UNINSTALL)
270 @list='$(bin_PROGRAMS)'; for p in $$list; do \
271 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
272 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
273 rm -f $(DESTDIR)$(bindir)/$$f; \
274 done
275
276 clean-binPROGRAMS:
277 @list='$(bin_PROGRAMS)'; for p in $$list; do \
278 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
279 echo " rm -f $$p $$f"; \
280 rm -f $$p $$f ; \
281 done
282 hdate_holydays_ical$(EXEEXT): $(hdate_holydays_ical_OBJECTS) $(hdate_holydays_ical_DEPENDENCIES)
283 @rm -f hdate_holydays_ical$(EXEEXT)
284 $(LINK) $(hdate_holydays_ical_LDFLAGS) $(hdate_holydays_ical_OBJECTS) $(hdate_holydays_ical_LDADD) $(LIBS)
285 hdate_reading_ical$(EXEEXT): $(hdate_reading_ical_OBJECTS) $(hdate_reading_ical_DEPENDENCIES)
286 @rm -f hdate_reading_ical$(EXEEXT)
287 $(LINK) $(hdate_reading_ical_LDFLAGS) $(hdate_reading_ical_OBJECTS) $(hdate_reading_ical_LDADD) $(LIBS)
288
289 mostlyclean-compile:
290 -rm -f *.$(OBJEXT) core *.core
291
292 distclean-compile:
293 -rm -f *.tab.c
294
295 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdate_holydays_ical.Po@am__quote@
296 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdate_reading_ical.Po@am__quote@
297
298 .c.o:
299 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
300 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
301 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
302 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
303 @am__fastdepCC_TRUE@ fi
304 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307 @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
308
309 .c.obj:
310 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
311 @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
312 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
313 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
314 @am__fastdepCC_TRUE@ fi
315 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
317 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318 @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
319
320 .c.lo:
321 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
322 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
323 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
324 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
325 @am__fastdepCC_TRUE@ fi
326 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
327 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
328 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
330
331 mostlyclean-libtool:
332 -rm -f *.lo
333
334 clean-libtool:
335 -rm -rf .libs _libs
336
337 distclean-libtool:
338 -rm -f libtool
339 uninstall-info-am:
340 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
341 install-libhdatedocDATA: $(libhdatedoc_DATA)
342 @$(NORMAL_INSTALL)
343 $(mkinstalldirs) $(DESTDIR)$(libhdatedocdir)
344 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
345 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
346 f="`echo $$p | sed -e 's|^.*/||'`"; \
347 echo " $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f"; \
348 $(libhdatedocDATA_INSTALL) $$d$$p $(DESTDIR)$(libhdatedocdir)/$$f; \
349 done
350
351 uninstall-libhdatedocDATA:
352 @$(NORMAL_UNINSTALL)
353 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
354 f="`echo $$p | sed -e 's|^.*/||'`"; \
355 echo " rm -f $(DESTDIR)$(libhdatedocdir)/$$f"; \
356 rm -f $(DESTDIR)$(libhdatedocdir)/$$f; \
357 done
358
359 ETAGS = etags
360 ETAGSFLAGS =
361
362 CTAGS = ctags
363 CTAGSFLAGS =
364
365 tags: TAGS
366
367 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
368 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
369 unique=`for i in $$list; do \
370 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
371 done | \
372 $(AWK) ' { files[$$0] = 1; } \
373 END { for (i in files) print i; }'`; \
374 mkid -fID $$unique
375
376 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
377 $(TAGS_FILES) $(LISP)
378 tags=; \
379 here=`pwd`; \
380 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
381 unique=`for i in $$list; do \
382 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
383 done | \
384 $(AWK) ' { files[$$0] = 1; } \
385 END { for (i in files) print i; }'`; \
386 test -z "$(ETAGS_ARGS)$$tags$$unique" \
387 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
388 $$tags $$unique
389
390 ctags: CTAGS
391 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
392 $(TAGS_FILES) $(LISP)
393 tags=; \
394 here=`pwd`; \
395 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
396 unique=`for i in $$list; do \
397 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
398 done | \
399 $(AWK) ' { files[$$0] = 1; } \
400 END { for (i in files) print i; }'`; \
401 test -z "$(CTAGS_ARGS)$$tags$$unique" \
402 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
403 $$tags $$unique
404
405 GTAGS:
406 here=`$(am__cd) $(top_builddir) && pwd` \
407 && cd $(top_srcdir) \
408 && gtags -i $(GTAGS_ARGS) $$here
409
410 distclean-tags:
411 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
412 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
413
414 top_distdir = ../..
415 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
416
417 distdir: $(DISTFILES)
418 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
419 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
420 list='$(DISTFILES)'; for file in $$list; do \
421 case $$file in \
422 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
423 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
424 esac; \
425 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
426 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
427 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
428 dir="/$$dir"; \
429 $(mkinstalldirs) "$(distdir)$$dir"; \
430 else \
431 dir=''; \
432 fi; \
433 if test -d $$d/$$file; then \
434 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
435 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
436 fi; \
437 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
438 else \
439 test -f $(distdir)/$$file \
440 || cp -p $$d/$$file $(distdir)/$$file \
441 || exit 1; \
442 fi; \
443 done
444 check-am: all-am
445 check: check-am
446 all-am: Makefile $(PROGRAMS) $(DATA)
447
448 installdirs:
449 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(libhdatedocdir)
450 install: install-am
451 install-exec: install-exec-am
452 install-data: install-data-am
453 uninstall: uninstall-am
454
455 install-am: all-am
456 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
457
458 installcheck: installcheck-am
459 install-strip:
460 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
461 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
462 `test -z '$(STRIP)' || \
463 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
464 mostlyclean-generic:
465
466 clean-generic:
467
468 distclean-generic:
469 -rm -f $(CONFIG_CLEAN_FILES)
470
471 maintainer-clean-generic:
472 @echo "This command is intended for maintainers to use"
473 @echo "it deletes files that may require special tools to rebuild."
474 clean: clean-am
475
476 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
477
478 distclean: distclean-am
479 -rm -rf ./$(DEPDIR)
480 -rm -f Makefile
481 distclean-am: clean-am distclean-compile distclean-generic \
482 distclean-libtool distclean-tags
483
484 dvi: dvi-am
485
486 dvi-am:
487
488 info: info-am
489
490 info-am:
491
492 install-data-am: install-libhdatedocDATA
493
494 install-exec-am: install-binPROGRAMS
495
496 install-info: install-info-am
497
498 install-man:
499
500 installcheck-am:
501
502 maintainer-clean: maintainer-clean-am
503 -rm -rf ./$(DEPDIR)
504 -rm -f Makefile
505 maintainer-clean-am: distclean-am maintainer-clean-generic
506
507 mostlyclean: mostlyclean-am
508
509 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
510 mostlyclean-libtool
511
512 pdf: pdf-am
513
514 pdf-am:
515
516 ps: ps-am
517
518 ps-am:
519
520 uninstall-am: uninstall-binPROGRAMS uninstall-info-am \
521 uninstall-libhdatedocDATA
522
523 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
524 clean-generic clean-libtool ctags distclean distclean-compile \
525 distclean-generic distclean-libtool distclean-tags distdir dvi \
526 dvi-am info info-am install install-am install-binPROGRAMS \
527 install-data install-data-am install-exec install-exec-am \
528 install-info install-info-am install-libhdatedocDATA \
529 install-man install-strip installcheck installcheck-am \
530 installdirs maintainer-clean maintainer-clean-generic \
531 mostlyclean mostlyclean-compile mostlyclean-generic \
532 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
533 uninstall-am uninstall-binPROGRAMS uninstall-info-am \
534 uninstall-libhdatedocDATA
535
536 # Tell versions [3.59,3.63) of GNU make to not export all variables.
537 # Otherwise a system limit (for SysV at least) may be exceeded.
538 .NOEXPORT:
0 /* hdate_holydays_ical.c
1 * Example file for libhdate.
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hdate_holydays_ical.c -o hdate_holydays_ical
5 *
6 * Copyright: 2004 (c) Yaacov Zamir
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24
25 #include <stdio.h> /* For printf */
26 #include <hdate.h> /* For hebrew date */
27 #include <stdlib.h> /* For atoi */
28 #include <locale.h> /* For setlocale */
29
30 int
31 main (int argc, char* argv[])
32 {
33 hdate_struct h; /* The Hebrew date */
34
35 int jd;
36 int holyday;
37 char* event_summary;
38
39 int start_jd; /* The Julian day number to start iCal calendar from */
40 int end_jd; /* The Julian day number to end iCal calendar with */
41
42 int start_d ;
43 int start_m;
44 int start_y;
45 int end_d;
46 int end_m;
47 int end_y;
48
49 /* Get start and end dates of the iCal file from user */
50 if (argc == 7)
51 {
52 /* Set start and end dates of the iCal file from user */
53 start_d = atoi (argv[1]);
54 start_m = atoi (argv[2]);
55 start_y = atoi (argv[3]);
56 end_d = atoi (argv[4]);
57 end_m = atoi (argv[5]);
58 end_y = atoi (argv[6]);
59
60 hdate_set_gdate (&h, start_d, start_m, start_y);
61 start_jd = h.hd_jd;
62
63 hdate_set_gdate (&h, end_d, end_m, end_y);
64 end_jd = h.hd_jd;
65 }
66 else
67 {
68 /* Print help for user and exit */
69 printf ("USAGE: %s start_day start_month start_year end_day end_month end_year\n", argv[0]);
70 exit (0);
71 }
72
73 /* Set the locale, for libhdate to print locale messages */
74 setlocale (LC_ALL,"");
75
76 /* Print start of iCal format */
77 printf ("BEGIN:VCALENDAR\n");
78 printf ("CALSCALE:GREGORIAN\n");
79 printf ("METHOD:PUBLISH\n");
80
81 /* Print iCal event */
82 for (jd = start_jd; jd < end_jd; jd++)
83 {
84 /* get today hdate */
85 hdate_set_jd (&h, jd);
86
87 /* set diaspora flag to 0, for holydays ba harez */
88 holyday = hdate_get_holyday (&h, 0);
89
90 if (holyday != 0)
91 {
92 event_summary = hdate_get_holyday_string (holyday, 0);
93
94 printf ("BEGIN:VEVENT\n");
95 printf ("UID:0\n");
96 printf ("DTSTART;VALUE=DATE:%04d%02d%02d\n", h.gd_year, h.gd_mon, h.gd_day);
97 printf ("SUMMARY:%s\n", event_summary);
98 printf ("DTEND;VALUE=DATE:%04d%02d%02d\n", h.gd_year, h.gd_mon, h.gd_day);
99 printf ("CATEGORIES:Holidays\n");
100 printf ("END:VEVENT\n");
101 }
102 }
103
104 /* Print end of iCal format */
105 printf ("END:VCALENDAR\n");
106
107 return 0;
108 }
0 /* hdate_reading_ical.c
1 * Example file for libhdate.
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hdate_reading_ical.c -o hdate_reading_ical
5 *
6 * Copyright: 2004 (c) Yaacov Zamir
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24
25 #include <stdio.h> /* For printf */
26 #include <hdate.h> /* For hebrew date */
27 #include <stdlib.h> /* For atoi */
28 #include <locale.h> /* For setlocale */
29
30 int
31 main (int argc, char* argv[])
32 {
33 hdate_struct h; /* The Hebrew date */
34
35 int jd;
36 int parasha;
37 char* event_summary;
38
39 int start_jd; /* The Julian day number to start iCal calendar from */
40 int end_jd; /* The Julian day number to end iCal calendar with */
41
42 int start_d ;
43 int start_m;
44 int start_y;
45 int end_d;
46 int end_m;
47 int end_y;
48
49 /* Get start and end dates of the iCal file from user */
50 if (argc == 7)
51 {
52 /* Set start and end dates of the iCal file from user */
53 start_d = atoi (argv[1]);
54 start_m = atoi (argv[2]);
55 start_y = atoi (argv[3]);
56 end_d = atoi (argv[4]);
57 end_m = atoi (argv[5]);
58 end_y = atoi (argv[6]);
59
60 hdate_set_gdate (&h, start_d, start_m, start_y);
61 start_jd = h.hd_jd;
62
63 hdate_set_gdate (&h, end_d, end_m, end_y);
64 end_jd = h.hd_jd;
65 }
66 else
67 {
68 /* Print help for user and exit */
69 printf ("USAGE: %s start_day start_month start_year end_day end_month end_year\n", argv[0]);
70 exit (0);
71 }
72
73 /* Set the locale, for libhdate to print locale messages */
74 setlocale (LC_ALL,"");
75
76 /* Print start of iCal format */
77 printf ("BEGIN:VCALENDAR\n");
78 printf ("CALSCALE:GREGORIAN\n");
79 printf ("METHOD:PUBLISH\n");
80
81 /* Print iCal event */
82 for (jd = start_jd; jd < end_jd; jd++)
83 {
84 /* get today hdate */
85 hdate_set_jd (&h, jd);
86
87 /* set diaspora flag to 0, for reading ba harez */
88 parasha = hdate_get_parasha (&h, 0);
89
90 if (parasha != 0)
91 {
92 event_summary = hdate_get_parasha_string (parasha, 0);
93
94 printf ("BEGIN:VEVENT\n");
95 printf ("UID:0\n");
96 printf ("DTSTART;VALUE=DATE:%04d%02d%02d\n", h.gd_year, h.gd_mon, h.gd_day);
97 printf ("SUMMARY:%s\n", event_summary);
98 printf ("DTEND;VALUE=DATE:%04d%02d%02d\n", h.gd_year, h.gd_mon, h.gd_day);
99 printf ("CATEGORIES:Holidays\n");
100 printf ("END:VEVENT\n");
101 }
102 }
103
104 /* Print end of iCal format */
105 printf ("END:VCALENDAR\n");
106
107 return 0;
108 }
0 hdate_README: This is the original README file from hdate 0.5p (see README file
1 for this project readme).
2
3 -----------------------------------------------------------------------------
4
5 This is Amos Shapir's "hdate" package fixed and patched by Nadav Har'El.
6 Below is the original package's README - see NEWS for what changed.
7
8 ------------------------------------------------------------------------------
9 This is the 5th distribution of hdate/hcal. It should be portable
10 anywhere, but for machines which have sizeof(int) != sizeof(long), you
11 may have to change a few 'int's to 'long', and suffix 'L' to some
12 constants; sorry, I have no way to tell which. It also expects the UNIX
13 "time.h" structures, but that shouldn't be hard to change to fit other
14 systems. If you port the code to any other system, please send the
15 diffs to the author for inclusion in the next release.
16
17 The files included herein are:
18 README - this file.
19 explain - an explanation of the algorithm.
20 hdate.6 - the man page (nroff/troff source).
21 Makefile
22 hdate.h - common definitions.
23 hdate.c - main source file for hdate.
24 hcal.c - main source file for hcal.
25 hcom.c - code common to both hdate & hcal.
26
27 Compilation options:
28
29 HEBREW - make a version that prints on a Hebrew printer/terminal, given
30 the "-h" flag. All Hebrew words are initialized in left-to-right
31 lower-case letters, and passed through the function rev() for
32 conversion. I have included a function which reverses them to
33 right-to-left order, and optionally converts to the ISO-8859/8 standard
34 or IBM representation. You may need to write your own rev() function to
35 convert to what your printer expects, or else delete it and pipe the
36 output through "rev", "tr" or "sed".
37
38 USA_DATE - make hdate accept the arguments as "month day year" instead
39 of the default "day month year" (note that hdate.6 has to be changed to
40 document this order).
41
42 Good Luck,
43 Amos Shapir
44 July 1992 - Tamuz 5752
45
46 Net: amos@cs.cs.huji.ac.il
47 Paper: The Hebrew Univ. of Jerusalem, Dept. of Comp. Science.
48 Givat-Ram, Jerusalem 91904, Israel
49 Tel: +972 2 585706 GEO: 35 11 46 E / 31 46 21 N
0 /usr/share/automake-1.7/install-sh
0 2001-09-13 GNU <bug-gnu-utils@gnu.org>
1
2 * Version 0.10.40 released.
3
0 # Makefile for directory with message catalog handling in GNU NLS Utilities.
1 # Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Library General Public License as published
5 # by the Free Software Foundation; either version 2, or (at your option)
6 # any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Library General Public License for more details.
12 #
13 # You should have received a copy of the GNU Library General Public
14 # License along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 # USA.
17
18 PACKAGE = @PACKAGE@
19 VERSION = @VERSION@
20
21 SHELL = /bin/sh
22
23 srcdir = @srcdir@
24 top_srcdir = @top_srcdir@
25 top_builddir = ..
26 VPATH = @srcdir@
27
28 prefix = @prefix@
29 exec_prefix = @exec_prefix@
30 transform = @program_transform_name@
31 libdir = @libdir@
32 includedir = @includedir@
33 datadir = @datadir@
34 localedir = $(datadir)/locale
35 gettextsrcdir = $(datadir)/gettext/intl
36 aliaspath = $(localedir)
37 subdir = intl
38
39 INSTALL = @INSTALL@
40 INSTALL_DATA = @INSTALL_DATA@
41 MKINSTALLDIRS = @MKINSTALLDIRS@
42 mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
43
44 l = @INTL_LIBTOOL_SUFFIX_PREFIX@
45
46 AR = ar
47 CC = @CC@
48 LIBTOOL = @LIBTOOL@
49 RANLIB = @RANLIB@
50 YACC = @INTLBISON@ -y -d
51 YFLAGS = --name-prefix=__gettext
52
53 DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
54 -DLIBDIR=\"$(libdir)\" @DEFS@
55 CPPFLAGS = @CPPFLAGS@
56 CFLAGS = @CFLAGS@
57 LDFLAGS = @LDFLAGS@
58
59 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
60
61 HEADERS = $(COMHDRS) libgnuintl.h libgettext.h loadinfo.h
62 COMHDRS = gettext.h gettextP.h hash-string.h
63 SOURCES = $(COMSRCS) intl-compat.c
64 COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
65 finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
66 explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \
67 localcharset.c
68 OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
69 finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
70 explodename.$lo dcigettext.$lo dcngettext.$lo dngettext.$lo ngettext.$lo \
71 plural.$lo localcharset.$lo
72 GETTOBJS = intl-compat.$lo
73 DISTFILES.common = Makefile.in \
74 config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
75 DISTFILES.generated = plural.c
76 DISTFILES.normal = VERSION
77 DISTFILES.gettext = COPYING.LIB-2 COPYING.LIB-2.1 libintl.glibc
78 DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c
79
80 # Libtool's library version information for libintl.
81 # Before making a gettext release, the gettext maintainer must change this
82 # according to the libtool documentation, section "Library interface versions".
83 # Maintainers of other packages that include the intl directory must *not*
84 # change these values.
85 LTV_CURRENT=1
86 LTV_REVISION=1
87 LTV_AGE=0
88
89 .SUFFIXES:
90 .SUFFIXES: .c .y .o .lo .sin .sed
91 .c.o:
92 $(COMPILE) $<
93 .c.lo:
94 $(LIBTOOL) --mode=compile $(COMPILE) $<
95
96 .y.c:
97 $(YACC) $(YFLAGS) --output $@ $<
98 rm -f $*.h
99
100 .sin.sed:
101 sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
102 mv t-$@ $@
103
104 INCLUDES = -I.. -I. -I$(top_srcdir)/intl
105
106 all: all-@USE_INCLUDED_LIBINTL@
107 all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
108 all-no: all-no-@BUILD_INCLUDED_LIBINTL@
109 all-no-yes: libgnuintl.$la
110 all-no-no:
111
112 libintl.a libgnuintl.a: $(OBJECTS)
113 rm -f $@
114 $(AR) cru $@ $(OBJECTS)
115 $(RANLIB) $@
116
117 libintl.la libgnuintl.la: $(OBJECTS)
118 $(LIBTOOL) --mode=link \
119 $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
120 $(OBJECTS) @LIBICONV@ \
121 -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
122 -rpath $(libdir) \
123 -no-undefined
124
125 libintl.h: libgnuintl.h
126 cp $(srcdir)/libgnuintl.h libintl.h
127
128 charset.alias: config.charset
129 $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
130 mv t-$@ $@
131
132 check: all
133
134 # This installation goal is only used in GNU gettext. Packages which
135 # only use the library should use install instead.
136
137 # We must not install the libintl.h/libintl.a files if we are on a
138 # system which has the GNU gettext() function in its C library or in a
139 # separate library.
140 # If you want to use the one which comes with this version of the
141 # package, you have to use `configure --with-included-gettext'.
142 install: install-exec install-data
143 install-exec: all
144 if test "$(PACKAGE)" = "gettext" \
145 && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
146 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
147 $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
148 $(LIBTOOL) --mode=install \
149 $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
150 else \
151 : ; \
152 fi
153 if test '@USE_INCLUDED_LIBINTL@' = yes; then \
154 $(mkinstalldirs) $(DESTDIR)$(libdir); \
155 temp=$(DESTDIR)$(libdir)/t-charset.alias; \
156 dest=$(DESTDIR)$(libdir)/charset.alias; \
157 if test -f $(DESTDIR)$(libdir)/charset.alias; then \
158 orig=$(DESTDIR)$(libdir)/charset.alias; \
159 sed -f ref-add.sed $$orig > $$temp; \
160 $(INSTALL_DATA) $$temp $$dest; \
161 rm -f $$temp; \
162 else \
163 if test @GLIBC21@ = no; then \
164 orig=charset.alias; \
165 sed -f ref-add.sed $$orig > $$temp; \
166 $(INSTALL_DATA) $$temp $$dest; \
167 rm -f $$temp; \
168 fi; \
169 fi; \
170 $(mkinstalldirs) $(DESTDIR)$(localedir); \
171 test -f $(DESTDIR)$(localedir)/locale.alias \
172 && orig=$(DESTDIR)$(localedir)/locale.alias \
173 || orig=$(srcdir)/locale.alias; \
174 temp=$(DESTDIR)$(localedir)/t-locale.alias; \
175 dest=$(DESTDIR)$(localedir)/locale.alias; \
176 sed -f ref-add.sed $$orig > $$temp; \
177 $(INSTALL_DATA) $$temp $$dest; \
178 rm -f $$temp; \
179 else \
180 : ; \
181 fi
182 install-data: all
183 if test "$(PACKAGE)" = "gettext"; then \
184 $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
185 $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
186 $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
187 dists="COPYING.LIB-2 COPYING.LIB-2.1 $(DISTFILES.common)"; \
188 for file in $$dists; do \
189 $(INSTALL_DATA) $(srcdir)/$$file \
190 $(DESTDIR)$(gettextsrcdir)/$$file; \
191 done; \
192 chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
193 dists="$(DISTFILES.generated)"; \
194 for file in $$dists; do \
195 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
196 $(INSTALL_DATA) $$dir/$$file \
197 $(DESTDIR)$(gettextsrcdir)/$$file; \
198 done; \
199 dists="$(DISTFILES.obsolete)"; \
200 for file in $$dists; do \
201 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
202 done; \
203 else \
204 : ; \
205 fi
206
207 # Define this as empty until I found a useful application.
208 installcheck:
209
210 uninstall:
211 if test "$(PACKAGE)" = "gettext" \
212 && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
213 rm -f $(DESTDIR)$(includedir)/libintl.h; \
214 $(LIBTOOL) --mode=uninstall \
215 rm -f $(DESTDIR)$(libdir)/libintl.$la; \
216 else \
217 : ; \
218 fi
219 if test '@USE_INCLUDED_LIBINTL@' = yes; then \
220 if test -f $(DESTDIR)$(libdir)/charset.alias; then \
221 temp=$(DESTDIR)$(libdir)/t-charset.alias; \
222 dest=$(DESTDIR)$(libdir)/charset.alias; \
223 sed -f ref-del.sed $$dest > $$temp; \
224 if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
225 rm -f $$dest; \
226 else \
227 $(INSTALL_DATA) $$temp $$dest; \
228 fi; \
229 rm -f $$temp; \
230 fi; \
231 if test -f $(DESTDIR)$(localedir)/locale.alias; then \
232 temp=$(DESTDIR)$(localedir)/t-locale.alias; \
233 dest=$(DESTDIR)$(localedir)/locale.alias; \
234 sed -f ref-del.sed $$dest > $$temp; \
235 if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
236 rm -f $$dest; \
237 else \
238 $(INSTALL_DATA) $$temp $$dest; \
239 fi; \
240 rm -f $$temp; \
241 fi; \
242 else \
243 : ; \
244 fi
245 if test "$(PACKAGE)" = "gettext"; then \
246 for file in VERSION ChangeLog COPYING.LIB-2 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
247 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
248 done; \
249 else \
250 : ; \
251 fi
252
253 info dvi:
254
255 $(OBJECTS): ../config.h libgnuintl.h
256 bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
257 dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
258
259 tags: TAGS
260
261 TAGS: $(HEADERS) $(SOURCES)
262 here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
263
264 id: ID
265
266 ID: $(HEADERS) $(SOURCES)
267 here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
268
269
270 mostlyclean:
271 rm -f *.a *.la *.o *.lo core core.*
272 rm -f libintl.h charset.alias ref-add.sed ref-del.sed
273 rm -f -r .libs _libs
274
275 clean: mostlyclean
276
277 distclean: clean
278 rm -f Makefile ID TAGS
279 if test "$(PACKAGE)" = gettext; then \
280 rm -f ChangeLog.inst $(DISTFILES.normal); \
281 else \
282 : ; \
283 fi
284
285 maintainer-clean: distclean
286 @echo "This command is intended for maintainers to use;"
287 @echo "it deletes files that may require special tools to rebuild."
288
289
290 # GNU gettext needs not contain the file `VERSION' but contains some
291 # other files which should not be distributed in other packages.
292 distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
293 dist distdir: Makefile
294 if test "$(PACKAGE)" = gettext; then \
295 additional="$(DISTFILES.gettext)"; \
296 else \
297 additional="$(DISTFILES.normal)"; \
298 fi; \
299 $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
300 for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
301 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
302 ln $$dir/$$file $(distdir) 2> /dev/null \
303 || cp -p $$dir/$$file $(distdir); \
304 done
305
306 Makefile: Makefile.in ../config.status
307 cd .. \
308 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
309
310 # Tell versions [3.59,3.63) of GNU make not to export all variables.
311 # Otherwise a system limit (for SysV at least) may be exceeded.
312 .NOEXPORT:
0 GNU gettext library from gettext-0.10.40
0 /* Implementation of the bindtextdomain(3) function
1 Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifdef HAVE_CONFIG_H
19 # include <config.h>
20 #endif
21
22 #include <stddef.h>
23 #include <stdlib.h>
24 #include <string.h>
25
26 #ifdef _LIBC
27 # include <libintl.h>
28 #else
29 # include "libgnuintl.h"
30 #endif
31 #include "gettextP.h"
32
33 #ifdef _LIBC
34 /* We have to handle multi-threaded applications. */
35 # include <bits/libc-lock.h>
36 #else
37 /* Provide dummy implementation if this is outside glibc. */
38 # define __libc_rwlock_define(CLASS, NAME)
39 # define __libc_rwlock_wrlock(NAME)
40 # define __libc_rwlock_unlock(NAME)
41 #endif
42
43 /* The internal variables in the standalone libintl.a must have different
44 names than the internal variables in GNU libc, otherwise programs
45 using libintl.a cannot be linked statically. */
46 #if !defined _LIBC
47 # define _nl_default_dirname _nl_default_dirname__
48 # define _nl_domain_bindings _nl_domain_bindings__
49 #endif
50
51 /* Some compilers, like SunOS4 cc, don't have offsetof in <stddef.h>. */
52 #ifndef offsetof
53 # define offsetof(type,ident) ((size_t)&(((type*)0)->ident))
54 #endif
55
56 /* @@ end of prolog @@ */
57
58 /* Contains the default location of the message catalogs. */
59 extern const char _nl_default_dirname[];
60
61 /* List with bindings of specific domains. */
62 extern struct binding *_nl_domain_bindings;
63
64 /* Lock variable to protect the global data in the gettext implementation. */
65 __libc_rwlock_define (extern, _nl_state_lock)
66
67
68 /* Names for the libintl functions are a problem. They must not clash
69 with existing names and they should follow ANSI C. But this source
70 code is also used in GNU C Library where the names have a __
71 prefix. So we have to make a difference here. */
72 #ifdef _LIBC
73 # define BINDTEXTDOMAIN __bindtextdomain
74 # define BIND_TEXTDOMAIN_CODESET __bind_textdomain_codeset
75 # ifndef strdup
76 # define strdup(str) __strdup (str)
77 # endif
78 #else
79 # define BINDTEXTDOMAIN bindtextdomain__
80 # define BIND_TEXTDOMAIN_CODESET bind_textdomain_codeset__
81 #endif
82
83 /* Prototypes for local functions. */
84 static void set_binding_values PARAMS ((const char *domainname,
85 const char **dirnamep,
86 const char **codesetp));
87
88 /* Specifies the directory name *DIRNAMEP and the output codeset *CODESETP
89 to be used for the DOMAINNAME message catalog.
90 If *DIRNAMEP or *CODESETP is NULL, the corresponding attribute is not
91 modified, only the current value is returned.
92 If DIRNAMEP or CODESETP is NULL, the corresponding attribute is neither
93 modified nor returned. */
94 static void
95 set_binding_values (domainname, dirnamep, codesetp)
96 const char *domainname;
97 const char **dirnamep;
98 const char **codesetp;
99 {
100 struct binding *binding;
101 int modified;
102
103 /* Some sanity checks. */
104 if (domainname == NULL || domainname[0] == '\0')
105 {
106 if (dirnamep)
107 *dirnamep = NULL;
108 if (codesetp)
109 *codesetp = NULL;
110 return;
111 }
112
113 __libc_rwlock_wrlock (_nl_state_lock);
114
115 modified = 0;
116
117 for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next)
118 {
119 int compare = strcmp (domainname, binding->domainname);
120 if (compare == 0)
121 /* We found it! */
122 break;
123 if (compare < 0)
124 {
125 /* It is not in the list. */
126 binding = NULL;
127 break;
128 }
129 }
130
131 if (binding != NULL)
132 {
133 if (dirnamep)
134 {
135 const char *dirname = *dirnamep;
136
137 if (dirname == NULL)
138 /* The current binding has be to returned. */
139 *dirnamep = binding->dirname;
140 else
141 {
142 /* The domain is already bound. If the new value and the old
143 one are equal we simply do nothing. Otherwise replace the
144 old binding. */
145 char *result = binding->dirname;
146 if (strcmp (dirname, result) != 0)
147 {
148 if (strcmp (dirname, _nl_default_dirname) == 0)
149 result = (char *) _nl_default_dirname;
150 else
151 {
152 #if defined _LIBC || defined HAVE_STRDUP
153 result = strdup (dirname);
154 #else
155 size_t len = strlen (dirname) + 1;
156 result = (char *) malloc (len);
157 if (__builtin_expect (result != NULL, 1))
158 memcpy (result, dirname, len);
159 #endif
160 }
161
162 if (__builtin_expect (result != NULL, 1))
163 {
164 if (binding->dirname != _nl_default_dirname)
165 free (binding->dirname);
166
167 binding->dirname = result;
168 modified = 1;
169 }
170 }
171 *dirnamep = result;
172 }
173 }
174
175 if (codesetp)
176 {
177 const char *codeset = *codesetp;
178
179 if (codeset == NULL)
180 /* The current binding has be to returned. */
181 *codesetp = binding->codeset;
182 else
183 {
184 /* The domain is already bound. If the new value and the old
185 one are equal we simply do nothing. Otherwise replace the
186 old binding. */
187 char *result = binding->codeset;
188 if (result == NULL || strcmp (codeset, result) != 0)
189 {
190 #if defined _LIBC || defined HAVE_STRDUP
191 result = strdup (codeset);
192 #else
193 size_t len = strlen (codeset) + 1;
194 result = (char *) malloc (len);
195 if (__builtin_expect (result != NULL, 1))
196 memcpy (result, codeset, len);
197 #endif
198
199 if (__builtin_expect (result != NULL, 1))
200 {
201 if (binding->codeset != NULL)
202 free (binding->codeset);
203
204 binding->codeset = result;
205 binding->codeset_cntr++;
206 modified = 1;
207 }
208 }
209 *codesetp = result;
210 }
211 }
212 }
213 else if ((dirnamep == NULL || *dirnamep == NULL)
214 && (codesetp == NULL || *codesetp == NULL))
215 {
216 /* Simply return the default values. */
217 if (dirnamep)
218 *dirnamep = _nl_default_dirname;
219 if (codesetp)
220 *codesetp = NULL;
221 }
222 else
223 {
224 /* We have to create a new binding. */
225 size_t len = strlen (domainname) + 1;
226 struct binding *new_binding =
227 (struct binding *) malloc (offsetof (struct binding, domainname) + len);
228
229 if (__builtin_expect (new_binding == NULL, 0))
230 goto failed;
231
232 memcpy (new_binding->domainname, domainname, len);
233
234 if (dirnamep)
235 {
236 const char *dirname = *dirnamep;
237
238 if (dirname == NULL)
239 /* The default value. */
240 dirname = _nl_default_dirname;
241 else
242 {
243 if (strcmp (dirname, _nl_default_dirname) == 0)
244 dirname = _nl_default_dirname;
245 else
246 {
247 char *result;
248 #if defined _LIBC || defined HAVE_STRDUP
249 result = strdup (dirname);
250 if (__builtin_expect (result == NULL, 0))
251 goto failed_dirname;
252 #else
253 size_t len = strlen (dirname) + 1;
254 result = (char *) malloc (len);
255 if (__builtin_expect (result == NULL, 0))
256 goto failed_dirname;
257 memcpy (result, dirname, len);
258 #endif
259 dirname = result;
260 }
261 }
262 *dirnamep = dirname;
263 new_binding->dirname = (char *) dirname;
264 }
265 else
266 /* The default value. */
267 new_binding->dirname = (char *) _nl_default_dirname;
268
269 new_binding->codeset_cntr = 0;
270
271 if (codesetp)
272 {
273 const char *codeset = *codesetp;
274
275 if (codeset != NULL)
276 {
277 char *result;
278
279 #if defined _LIBC || defined HAVE_STRDUP
280 result = strdup (codeset);
281 if (__builtin_expect (result == NULL, 0))
282 goto failed_codeset;
283 #else
284 size_t len = strlen (codeset) + 1;
285 result = (char *) malloc (len);
286 if (__builtin_expect (result == NULL, 0))
287 goto failed_codeset;
288 memcpy (result, codeset, len);
289 #endif
290 codeset = result;
291 new_binding->codeset_cntr++;
292 }
293 *codesetp = codeset;
294 new_binding->codeset = (char *) codeset;
295 }
296 else
297 new_binding->codeset = NULL;
298
299 /* Now enqueue it. */
300 if (_nl_domain_bindings == NULL
301 || strcmp (domainname, _nl_domain_bindings->domainname) < 0)
302 {
303 new_binding->next = _nl_domain_bindings;
304 _nl_domain_bindings = new_binding;
305 }
306 else
307 {
308 binding = _nl_domain_bindings;
309 while (binding->next != NULL
310 && strcmp (domainname, binding->next->domainname) > 0)
311 binding = binding->next;
312
313 new_binding->next = binding->next;
314 binding->next = new_binding;
315 }
316
317 modified = 1;
318
319 /* Here we deal with memory allocation failures. */
320 if (0)
321 {
322 failed_codeset:
323 if (new_binding->dirname != _nl_default_dirname)
324 free (new_binding->dirname);
325 failed_dirname:
326 free (new_binding);
327 failed:
328 if (dirnamep)
329 *dirnamep = NULL;
330 if (codesetp)
331 *codesetp = NULL;
332 }
333 }
334
335 /* If we modified any binding, we flush the caches. */
336 if (modified)
337 ++_nl_msg_cat_cntr;
338
339 __libc_rwlock_unlock (_nl_state_lock);
340 }
341
342 /* Specify that the DOMAINNAME message catalog will be found
343 in DIRNAME rather than in the system locale data base. */
344 char *
345 BINDTEXTDOMAIN (domainname, dirname)
346 const char *domainname;
347 const char *dirname;
348 {
349 set_binding_values (domainname, &dirname, NULL);
350 return (char *) dirname;
351 }
352
353 /* Specify the character encoding in which the messages from the
354 DOMAINNAME message catalog will be returned. */
355 char *
356 BIND_TEXTDOMAIN_CODESET (domainname, codeset)
357 const char *domainname;
358 const char *codeset;
359 {
360 set_binding_values (domainname, NULL, &codeset);
361 return (char *) codeset;
362 }
363
364 #ifdef _LIBC
365 /* Aliases for function names in GNU C Library. */
366 weak_alias (__bindtextdomain, bindtextdomain);
367 weak_alias (__bind_textdomain_codeset, bind_textdomain_codeset);
368 #endif
0 #! /bin/sh
1 # Output a system dependent table of character encoding aliases.
2 #
3 # Copyright (C) 2000-2001 Free Software Foundation, Inc.
4 #
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Library General Public License as published
7 # by the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Library General Public License for more details.
14 #
15 # You should have received a copy of the GNU Library General Public
16 # License along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18 # USA.
19 #
20 # The table consists of lines of the form
21 # ALIAS CANONICAL
22 #
23 # ALIAS is the (system dependent) result of "nl_langinfo (CODESET)".
24 # ALIAS is compared in a case sensitive way.
25 #
26 # CANONICAL is the GNU canonical name for this character encoding.
27 # It must be an encoding supported by libiconv. Support by GNU libc is
28 # also desirable. CANONICAL is case insensitive. Usually an upper case
29 # MIME charset name is preferred.
30 # The current list of GNU canonical charset names is as follows.
31 #
32 # name used by which systems a MIME name?
33 # ASCII, ANSI_X3.4-1968 glibc solaris freebsd
34 # ISO-8859-1 glibc aix hpux irix osf solaris freebsd yes
35 # ISO-8859-2 glibc aix hpux irix osf solaris freebsd yes
36 # ISO-8859-3 glibc yes
37 # ISO-8859-4 osf solaris freebsd yes
38 # ISO-8859-5 glibc aix hpux irix osf solaris freebsd yes
39 # ISO-8859-6 glibc aix hpux solaris yes
40 # ISO-8859-7 glibc aix hpux irix osf solaris yes
41 # ISO-8859-8 glibc aix hpux osf solaris yes
42 # ISO-8859-9 glibc aix hpux irix osf solaris yes
43 # ISO-8859-13 glibc
44 # ISO-8859-15 glibc aix osf solaris freebsd
45 # KOI8-R glibc solaris freebsd yes
46 # KOI8-U glibc freebsd yes
47 # CP437 dos
48 # CP775 dos
49 # CP850 aix osf dos
50 # CP852 dos
51 # CP855 dos
52 # CP856 aix
53 # CP857 dos
54 # CP861 dos
55 # CP862 dos
56 # CP864 dos
57 # CP865 dos
58 # CP866 freebsd dos
59 # CP869 dos
60 # CP874 win32 dos
61 # CP922 aix
62 # CP932 aix win32 dos
63 # CP943 aix
64 # CP949 osf win32 dos
65 # CP950 win32 dos
66 # CP1046 aix
67 # CP1124 aix
68 # CP1129 aix
69 # CP1250 win32
70 # CP1251 glibc win32
71 # CP1252 aix win32
72 # CP1253 win32
73 # CP1254 win32
74 # CP1255 win32
75 # CP1256 win32
76 # CP1257 win32
77 # GB2312 glibc aix hpux irix solaris freebsd yes
78 # EUC-JP glibc aix hpux irix osf solaris freebsd yes
79 # EUC-KR glibc aix hpux irix osf solaris freebsd yes
80 # EUC-TW glibc aix hpux irix osf solaris
81 # BIG5 glibc aix hpux osf solaris freebsd yes
82 # BIG5-HKSCS glibc
83 # GBK aix osf win32 dos
84 # GB18030 glibc
85 # SHIFT_JIS hpux osf solaris freebsd yes
86 # JOHAB glibc win32
87 # TIS-620 glibc aix hpux osf solaris
88 # VISCII glibc yes
89 # HP-ROMAN8 hpux
90 # HP-ARABIC8 hpux
91 # HP-GREEK8 hpux
92 # HP-HEBREW8 hpux
93 # HP-TURKISH8 hpux
94 # HP-KANA8 hpux
95 # DEC-KANJI osf
96 # DEC-HANYU osf
97 # UTF-8 glibc aix hpux osf solaris yes
98 #
99 # Note: Names which are not marked as being a MIME name should not be used in
100 # Internet protocols for information interchange (mail, news, etc.).
101 #
102 # Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications
103 # must understand both names and treat them as equivalent.
104 #
105 # The first argument passed to this file is the canonical host specification,
106 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
107 # or
108 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
109
110 host="$1"
111 os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'`
112 echo "# This file contains a table of character encoding aliases,"
113 echo "# suitable for operating system '${os}'."
114 echo "# It was automatically generated from config.charset."
115 # List of references, updated during installation:
116 echo "# Packages using this file: "
117 case "$os" in
118 linux* | *-gnu*)
119 # With glibc-2.1 or newer, we don't need any canonicalization,
120 # because glibc has iconv and both glibc and libiconv support all
121 # GNU canonical names directly. Therefore, the Makefile does not
122 # need to install the alias file at all.
123 # The following applies only to glibc-2.0.x and older libcs.
124 echo "ISO_646.IRV:1983 ASCII"
125 ;;
126 aix*)
127 echo "ISO8859-1 ISO-8859-1"
128 echo "ISO8859-2 ISO-8859-2"
129 echo "ISO8859-5 ISO-8859-5"
130 echo "ISO8859-6 ISO-8859-6"
131 echo "ISO8859-7 ISO-8859-7"
132 echo "ISO8859-8 ISO-8859-8"
133 echo "ISO8859-9 ISO-8859-9"
134 echo "ISO8859-15 ISO-8859-15"
135 echo "IBM-850 CP850"
136 echo "IBM-856 CP856"
137 echo "IBM-921 ISO-8859-13"
138 echo "IBM-922 CP922"
139 echo "IBM-932 CP932"
140 echo "IBM-943 CP943"
141 echo "IBM-1046 CP1046"
142 echo "IBM-1124 CP1124"
143 echo "IBM-1129 CP1129"
144 echo "IBM-1252 CP1252"
145 echo "IBM-eucCN GB2312"
146 echo "IBM-eucJP EUC-JP"
147 echo "IBM-eucKR EUC-KR"
148 echo "IBM-eucTW EUC-TW"
149 echo "big5 BIG5"
150 echo "GBK GBK"
151 echo "TIS-620 TIS-620"
152 echo "UTF-8 UTF-8"
153 ;;
154 hpux*)
155 echo "iso88591 ISO-8859-1"
156 echo "iso88592 ISO-8859-2"
157 echo "iso88595 ISO-8859-5"
158 echo "iso88596 ISO-8859-6"
159 echo "iso88597 ISO-8859-7"
160 echo "iso88598 ISO-8859-8"
161 echo "iso88599 ISO-8859-9"
162 echo "iso885915 ISO-8859-15"
163 echo "roman8 HP-ROMAN8"
164 echo "arabic8 HP-ARABIC8"
165 echo "greek8 HP-GREEK8"
166 echo "hebrew8 HP-HEBREW8"
167 echo "turkish8 HP-TURKISH8"
168 echo "kana8 HP-KANA8"
169 echo "tis620 TIS-620"
170 echo "big5 BIG5"
171 echo "eucJP EUC-JP"
172 echo "eucKR EUC-KR"
173 echo "eucTW EUC-TW"
174 echo "hp15CN GB2312"
175 #echo "ccdc ?" # what is this?
176 echo "SJIS SHIFT_JIS"
177 echo "utf8 UTF-8"
178 ;;
179 irix*)
180 echo "ISO8859-1 ISO-8859-1"
181 echo "ISO8859-2 ISO-8859-2"
182 echo "ISO8859-5 ISO-8859-5"
183 echo "ISO8859-7 ISO-8859-7"
184 echo "ISO8859-9 ISO-8859-9"
185 echo "eucCN GB2312"
186 echo "eucJP EUC-JP"
187 echo "eucKR EUC-KR"
188 echo "eucTW EUC-TW"
189 ;;
190 osf*)
191 echo "ISO8859-1 ISO-8859-1"
192 echo "ISO8859-2 ISO-8859-2"
193 echo "ISO8859-4 ISO-8859-4"
194 echo "ISO8859-5 ISO-8859-5"
195 echo "ISO8859-7 ISO-8859-7"
196 echo "ISO8859-8 ISO-8859-8"
197 echo "ISO8859-9 ISO-8859-9"
198 echo "ISO8859-15 ISO-8859-15"
199 echo "cp850 CP850"
200 echo "big5 BIG5"
201 echo "dechanyu DEC-HANYU"
202 echo "dechanzi GB2312"
203 echo "deckanji DEC-KANJI"
204 echo "deckorean EUC-KR"
205 echo "eucJP EUC-JP"
206 echo "eucKR EUC-KR"
207 echo "eucTW EUC-TW"
208 echo "GBK GBK"
209 echo "KSC5601 CP949"
210 echo "sdeckanji EUC-JP"
211 echo "SJIS SHIFT_JIS"
212 echo "TACTIS TIS-620"
213 echo "UTF-8 UTF-8"
214 ;;
215 solaris*)
216 echo "646 ASCII"
217 echo "ISO8859-1 ISO-8859-1"
218 echo "ISO8859-2 ISO-8859-2"
219 echo "ISO8859-4 ISO-8859-4"
220 echo "ISO8859-5 ISO-8859-5"
221 echo "ISO8859-6 ISO-8859-6"
222 echo "ISO8859-7 ISO-8859-7"
223 echo "ISO8859-8 ISO-8859-8"
224 echo "ISO8859-9 ISO-8859-9"
225 echo "ISO8859-15 ISO-8859-15"
226 echo "koi8-r KOI8-R"
227 echo "BIG5 BIG5"
228 echo "gb2312 GB2312"
229 echo "cns11643 EUC-TW"
230 echo "5601 EUC-KR"
231 echo "eucJP EUC-JP"
232 echo "PCK SHIFT_JIS"
233 echo "TIS620.2533 TIS-620"
234 #echo "sun_eu_greek ?" # what is this?
235 echo "UTF-8 UTF-8"
236 ;;
237 freebsd*)
238 # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore
239 # localcharset.c falls back to using the full locale name
240 # from the environment variables.
241 echo "C ASCII"
242 echo "US-ASCII ASCII"
243 for l in la_LN lt_LN; do
244 echo "$l.ASCII ASCII"
245 done
246 for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
247 fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \
248 lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do
249 echo "$l.ISO_8859-1 ISO-8859-1"
250 echo "$l.DIS_8859-15 ISO-8859-15"
251 done
252 for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do
253 echo "$l.ISO_8859-2 ISO-8859-2"
254 done
255 for l in la_LN lt_LT; do
256 echo "$l.ISO_8859-4 ISO-8859-4"
257 done
258 for l in ru_RU ru_SU; do
259 echo "$l.KOI8-R KOI8-R"
260 echo "$l.ISO_8859-5 ISO-8859-5"
261 echo "$l.CP866 CP866"
262 done
263 echo "uk_UA.KOI8-U KOI8-U"
264 echo "zh_TW.BIG5 BIG5"
265 echo "zh_TW.Big5 BIG5"
266 echo "zh_CN.EUC GB2312"
267 echo "ja_JP.EUC EUC-JP"
268 echo "ja_JP.SJIS SHIFT_JIS"
269 echo "ja_JP.Shift_JIS SHIFT_JIS"
270 echo "ko_KR.EUC EUC-KR"
271 ;;
272 beos*)
273 # BeOS has a single locale, and it has UTF-8 encoding.
274 echo "* UTF-8"
275 ;;
276 msdosdjgpp*)
277 # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore
278 # localcharset.c falls back to using the full locale name
279 # from the environment variables.
280 echo "#"
281 echo "# The encodings given here may not all be correct."
282 echo "# If you find that the encoding given for your language and"
283 echo "# country is not the one your DOS machine actually uses, just"
284 echo "# correct it in this file, and send a mail to"
285 echo "# Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>"
286 echo "# and Bruno Haible <haible@clisp.cons.org>."
287 echo "#"
288 echo "C ASCII"
289 # ISO-8859-1 languages
290 echo "ca CP850"
291 echo "ca_ES CP850"
292 echo "da CP865" # not CP850 ??
293 echo "da_DK CP865" # not CP850 ??
294 echo "de CP850"
295 echo "de_AT CP850"
296 echo "de_CH CP850"
297 echo "de_DE CP850"
298 echo "en CP850"
299 echo "en_AU CP850" # not CP437 ??
300 echo "en_CA CP850"
301 echo "en_GB CP850"
302 echo "en_NZ CP437"
303 echo "en_US CP437"
304 echo "en_ZA CP850" # not CP437 ??
305 echo "es CP850"
306 echo "es_AR CP850"
307 echo "es_BO CP850"
308 echo "es_CL CP850"
309 echo "es_CO CP850"
310 echo "es_CR CP850"
311 echo "es_CU CP850"
312 echo "es_DO CP850"
313 echo "es_EC CP850"
314 echo "es_ES CP850"
315 echo "es_GT CP850"
316 echo "es_HN CP850"
317 echo "es_MX CP850"
318 echo "es_NI CP850"
319 echo "es_PA CP850"
320 echo "es_PY CP850"
321 echo "es_PE CP850"
322 echo "es_SV CP850"
323 echo "es_UY CP850"
324 echo "es_VE CP850"
325 echo "et CP850"
326 echo "et_EE CP850"
327 echo "eu CP850"
328 echo "eu_ES CP850"
329 echo "fi CP850"
330 echo "fi_FI CP850"
331 echo "fr CP850"
332 echo "fr_BE CP850"
333 echo "fr_CA CP850"
334 echo "fr_CH CP850"
335 echo "fr_FR CP850"
336 echo "ga CP850"
337 echo "ga_IE CP850"
338 echo "gd CP850"
339 echo "gd_GB CP850"
340 echo "gl CP850"
341 echo "gl_ES CP850"
342 echo "id CP850" # not CP437 ??
343 echo "id_ID CP850" # not CP437 ??
344 echo "is CP861" # not CP850 ??
345 echo "is_IS CP861" # not CP850 ??
346 echo "it CP850"
347 echo "it_CH CP850"
348 echo "it_IT CP850"
349 echo "lt CP775"
350 echo "lt_LT CP775"
351 echo "lv CP775"
352 echo "lv_LV CP775"
353 echo "nb CP865" # not CP850 ??
354 echo "nb_NO CP865" # not CP850 ??
355 echo "nl CP850"
356 echo "nl_BE CP850"
357 echo "nl_NL CP850"
358 echo "nn CP865" # not CP850 ??
359 echo "nn_NO CP865" # not CP850 ??
360 echo "no CP865" # not CP850 ??
361 echo "no_NO CP865" # not CP850 ??
362 echo "pt CP850"
363 echo "pt_BR CP850"
364 echo "pt_PT CP850"
365 echo "sv CP850"
366 echo "sv_SE CP850"
367 # ISO-8859-2 languages
368 echo "cs CP852"
369 echo "cs_CZ CP852"
370 echo "hr CP852"
371 echo "hr_HR CP852"
372 echo "hu CP852"
373 echo "hu_HU CP852"
374 echo "pl CP852"
375 echo "pl_PL CP852"
376 echo "ro CP852"
377 echo "ro_RO CP852"
378 echo "sk CP852"
379 echo "sk_SK CP852"
380 echo "sl CP852"
381 echo "sl_SI CP852"
382 echo "sq CP852"
383 echo "sq_AL CP852"
384 echo "sr CP852" # CP852 or CP866 or CP855 ??
385 echo "sr_YU CP852" # CP852 or CP866 or CP855 ??
386 # ISO-8859-3 languages
387 echo "mt CP850"
388 echo "mt_MT CP850"
389 # ISO-8859-5 languages
390 echo "be CP866"
391 echo "be_BE CP866"
392 echo "bg CP866" # not CP855 ??
393 echo "bg_BG CP866" # not CP855 ??
394 echo "mk CP866" # not CP855 ??
395 echo "mk_MK CP866" # not CP855 ??
396 echo "ru KOI8-R" # not CP866 ??
397 echo "ru_RU KOI8-R" # not CP866 ??
398 # ISO-8859-6 languages
399 echo "ar CP864"
400 echo "ar_AE CP864"
401 echo "ar_DZ CP864"
402 echo "ar_EG CP864"
403 echo "ar_IQ CP864"
404 echo "ar_IR CP864"
405 echo "ar_JO CP864"
406 echo "ar_KW CP864"
407 echo "ar_MA CP864"
408 echo "ar_OM CP864"
409 echo "ar_QA CP864"
410 echo "ar_SA CP864"
411 echo "ar_SY CP864"
412 # ISO-8859-7 languages
413 echo "el CP869"
414 echo "el_GR CP869"
415 # ISO-8859-8 languages
416 echo "he CP862"
417 echo "he_IL CP862"
418 # ISO-8859-9 languages
419 echo "tr CP857"
420 echo "tr_TR CP857"
421 # Japanese
422 echo "ja CP932"
423 echo "ja_JP CP932"
424 # Chinese
425 echo "zh_CN GBK"
426 echo "zh_TW CP950" # not CP938 ??
427 # Korean
428 echo "kr CP949" # not CP934 ??
429 echo "kr_KR CP949" # not CP934 ??
430 # Thai
431 echo "th CP874"
432 echo "th_TH CP874"
433 # Other
434 echo "eo CP850"
435 echo "eo_EO CP850"
436 ;;
437 esac
0 /* Implementation of the dcgettext(3) function.
1 Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifdef HAVE_CONFIG_H
19 # include <config.h>
20 #endif
21
22 #include "gettextP.h"
23 #ifdef _LIBC
24 # include <libintl.h>
25 #else
26 # include "libgnuintl.h"
27 #endif
28
29 /* @@ end of prolog @@ */
30
31 /* Names for the libintl functions are a problem. They must not clash
32 with existing names and they should follow ANSI C. But this source
33 code is also used in GNU C Library where the names have a __
34 prefix. So we have to make a difference here. */
35 #ifdef _LIBC
36 # define DCGETTEXT __dcgettext
37 # define DCIGETTEXT __dcigettext
38 #else
39 # define DCGETTEXT dcgettext__
40 # define DCIGETTEXT dcigettext__
41 #endif
42
43 /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
44 locale. */
45 char *
46 DCGETTEXT (domainname, msgid, category)
47 const char *domainname;
48 const char *msgid;
49 int category;
50 {
51 return DCIGETTEXT (domainname, msgid, NULL, 0, 0, category);
52 }
53
54 #ifdef _LIBC
55 /* Alias for function name in GNU C Library. */
56 weak_alias (__dcgettext, dcgettext);
57 #endif
0 /* Implementation of the internal dcigettext function.
1 Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 /* Tell glibc's <string.h> to provide a prototype for mempcpy().
19 This must come before <config.h> because <config.h> may include
20 <features.h>, and once <features.h> has been included, it's too late. */
21 #ifndef _GNU_SOURCE
22 # define _GNU_SOURCE 1
23 #endif
24
25 #ifdef HAVE_CONFIG_H
26 # include <config.h>
27 #endif
28
29 #include <sys/types.h>
30
31 #ifdef __GNUC__
32 # define alloca __builtin_alloca
33 # define HAVE_ALLOCA 1
34 #else
35 # if defined HAVE_ALLOCA_H || defined _LIBC
36 # include <alloca.h>
37 # else
38 # ifdef _AIX
39 #pragma alloca
40 # else
41 # ifndef alloca
42 char *alloca ();
43 # endif
44 # endif
45 # endif
46 #endif
47
48 #include <errno.h>
49 #ifndef errno
50 extern int errno;
51 #endif
52 #ifndef __set_errno
53 # define __set_errno(val) errno = (val)
54 #endif
55
56 #include <stddef.h>
57 #include <stdlib.h>
58
59 #include <string.h>
60 #if !HAVE_STRCHR && !defined _LIBC
61 # ifndef strchr
62 # define strchr index
63 # endif
64 #endif
65
66 #if defined HAVE_UNISTD_H || defined _LIBC
67 # include <unistd.h>
68 #endif
69
70 #include <locale.h>
71
72 #if defined HAVE_SYS_PARAM_H || defined _LIBC
73 # include <sys/param.h>
74 #endif
75
76 #include "gettextP.h"
77 #ifdef _LIBC
78 # include <libintl.h>
79 #else
80 # include "libgnuintl.h"
81 #endif
82 #include "hash-string.h"
83
84 /* Thread safetyness. */
85 #ifdef _LIBC
86 # include <bits/libc-lock.h>
87 #else
88 /* Provide dummy implementation if this is outside glibc. */
89 # define __libc_lock_define_initialized(CLASS, NAME)
90 # define __libc_lock_lock(NAME)
91 # define __libc_lock_unlock(NAME)
92 # define __libc_rwlock_define_initialized(CLASS, NAME)
93 # define __libc_rwlock_rdlock(NAME)
94 # define __libc_rwlock_unlock(NAME)
95 #endif
96
97 /* Alignment of types. */
98 #if defined __GNUC__ && __GNUC__ >= 2
99 # define alignof(TYPE) __alignof__ (TYPE)
100 #else
101 # define alignof(TYPE) \
102 ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2)
103 #endif
104
105 /* The internal variables in the standalone libintl.a must have different
106 names than the internal variables in GNU libc, otherwise programs
107 using libintl.a cannot be linked statically. */
108 #if !defined _LIBC
109 # define _nl_default_default_domain _nl_default_default_domain__
110 # define _nl_current_default_domain _nl_current_default_domain__
111 # define _nl_default_dirname _nl_default_dirname__
112 # define _nl_domain_bindings _nl_domain_bindings__
113 #endif
114
115 /* Some compilers, like SunOS4 cc, don't have offsetof in <stddef.h>. */
116 #ifndef offsetof
117 # define offsetof(type,ident) ((size_t)&(((type*)0)->ident))
118 #endif
119
120 /* @@ end of prolog @@ */
121
122 #ifdef _LIBC
123 /* Rename the non ANSI C functions. This is required by the standard
124 because some ANSI C functions will require linking with this object
125 file and the name space must not be polluted. */
126 # define getcwd __getcwd
127 # ifndef stpcpy
128 # define stpcpy __stpcpy
129 # endif
130 # define tfind __tfind
131 #else
132 # if !defined HAVE_GETCWD
133 char *getwd ();
134 # define getcwd(buf, max) getwd (buf)
135 # else
136 char *getcwd ();
137 # endif
138 # ifndef HAVE_STPCPY
139 static char *stpcpy PARAMS ((char *dest, const char *src));
140 # endif
141 # ifndef HAVE_MEMPCPY
142 static void *mempcpy PARAMS ((void *dest, const void *src, size_t n));
143 # endif
144 #endif
145
146 /* Amount to increase buffer size by in each try. */
147 #define PATH_INCR 32
148
149 /* The following is from pathmax.h. */
150 /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define
151 PATH_MAX but might cause redefinition warnings when sys/param.h is
152 later included (as on MORE/BSD 4.3). */
153 #if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__)
154 # include <limits.h>
155 #endif
156
157 #ifndef _POSIX_PATH_MAX
158 # define _POSIX_PATH_MAX 255
159 #endif
160
161 #if !defined PATH_MAX && defined _PC_PATH_MAX
162 # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
163 #endif
164
165 /* Don't include sys/param.h if it already has been. */
166 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
167 # include <sys/param.h>
168 #endif
169
170 #if !defined PATH_MAX && defined MAXPATHLEN
171 # define PATH_MAX MAXPATHLEN
172 #endif
173
174 #ifndef PATH_MAX
175 # define PATH_MAX _POSIX_PATH_MAX
176 #endif
177
178 /* Pathname support.
179 ISSLASH(C) tests whether C is a directory separator character.
180 IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not,
181 it may be concatenated to a directory pathname.
182 IS_PATH_WITH_DIR(P) tests whether P contains a directory specification.
183 */
184 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
185 /* Win32, OS/2, DOS */
186 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
187 # define HAS_DEVICE(P) \
188 ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \
189 && (P)[1] == ':')
190 # define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P))
191 # define IS_PATH_WITH_DIR(P) \
192 (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P))
193 #else
194 /* Unix */
195 # define ISSLASH(C) ((C) == '/')
196 # define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0])
197 # define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL)
198 #endif
199
200 /* XPG3 defines the result of `setlocale (category, NULL)' as:
201 ``Directs `setlocale()' to query `category' and return the current
202 setting of `local'.''
203 However it does not specify the exact format. Neither do SUSV2 and
204 ISO C 99. So we can use this feature only on selected systems (e.g.
205 those using GNU C Library). */
206 #if defined _LIBC || (defined __GNU_LIBRARY__ && __GNU_LIBRARY__ >= 2)
207 # define HAVE_LOCALE_NULL
208 #endif
209
210 /* This is the type used for the search tree where known translations
211 are stored. */
212 struct known_translation_t
213 {
214 /* Domain in which to search. */
215 char *domainname;
216
217 /* The category. */
218 int category;
219
220 /* State of the catalog counter at the point the string was found. */
221 int counter;
222
223 /* Catalog where the string was found. */
224 struct loaded_l10nfile *domain;
225
226 /* And finally the translation. */
227 const char *translation;
228 size_t translation_length;
229
230 /* Pointer to the string in question. */
231 char msgid[ZERO];
232 };
233
234 /* Root of the search tree with known translations. We can use this
235 only if the system provides the `tsearch' function family. */
236 #if defined HAVE_TSEARCH || defined _LIBC
237 # include <search.h>
238
239 static void *root;
240
241 # ifdef _LIBC
242 # define tsearch __tsearch
243 # endif
244
245 /* Function to compare two entries in the table of known translations. */
246 static int transcmp PARAMS ((const void *p1, const void *p2));
247 static int
248 transcmp (p1, p2)
249 const void *p1;
250 const void *p2;
251 {
252 const struct known_translation_t *s1;
253 const struct known_translation_t *s2;
254 int result;
255
256 s1 = (const struct known_translation_t *) p1;
257 s2 = (const struct known_translation_t *) p2;
258
259 result = strcmp (s1->msgid, s2->msgid);
260 if (result == 0)
261 {
262 result = strcmp (s1->domainname, s2->domainname);
263 if (result == 0)
264 /* We compare the category last (though this is the cheapest
265 operation) since it is hopefully always the same (namely
266 LC_MESSAGES). */
267 result = s1->category - s2->category;
268 }
269
270 return result;
271 }
272 #endif
273
274 /* Name of the default domain used for gettext(3) prior any call to
275 textdomain(3). The default value for this is "messages". */
276 const char _nl_default_default_domain[] = "messages";
277
278 /* Value used as the default domain for gettext(3). */
279 const char *_nl_current_default_domain = _nl_default_default_domain;
280
281 /* Contains the default location of the message catalogs. */
282 const char _nl_default_dirname[] = LOCALEDIR;
283
284 /* List with bindings of specific domains created by bindtextdomain()
285 calls. */
286 struct binding *_nl_domain_bindings;
287
288 /* Prototypes for local functions. */
289 static char *plural_lookup PARAMS ((struct loaded_l10nfile *domain,
290 unsigned long int n,
291 const char *translation,
292 size_t translation_len))
293 internal_function;
294 static unsigned long int plural_eval PARAMS ((struct expression *pexp,
295 unsigned long int n))
296 internal_function;
297 static const char *category_to_name PARAMS ((int category)) internal_function;
298 static const char *guess_category_value PARAMS ((int category,
299 const char *categoryname))
300 internal_function;
301
302
303 /* For those loosing systems which don't have `alloca' we have to add
304 some additional code emulating it. */
305 #ifdef HAVE_ALLOCA
306 /* Nothing has to be done. */
307 # define ADD_BLOCK(list, address) /* nothing */
308 # define FREE_BLOCKS(list) /* nothing */
309 #else
310 struct block_list
311 {
312 void *address;
313 struct block_list *next;
314 };
315 # define ADD_BLOCK(list, addr) \
316 do { \
317 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \
318 /* If we cannot get a free block we cannot add the new element to \
319 the list. */ \
320 if (newp != NULL) { \
321 newp->address = (addr); \
322 newp->next = (list); \
323 (list) = newp; \
324 } \
325 } while (0)
326 # define FREE_BLOCKS(list) \
327 do { \
328 while (list != NULL) { \
329 struct block_list *old = list; \
330 list = list->next; \
331 free (old); \
332 } \
333 } while (0)
334 # undef alloca
335 # define alloca(size) (malloc (size))
336 #endif /* have alloca */
337
338
339 #ifdef _LIBC
340 /* List of blocks allocated for translations. */
341 typedef struct transmem_list
342 {
343 struct transmem_list *next;
344 char data[ZERO];
345 } transmem_block_t;
346 static struct transmem_list *transmem_list;
347 #else
348 typedef unsigned char transmem_block_t;
349 #endif
350
351
352 /* Names for the libintl functions are a problem. They must not clash
353 with existing names and they should follow ANSI C. But this source
354 code is also used in GNU C Library where the names have a __
355 prefix. So we have to make a difference here. */
356 #ifdef _LIBC
357 # define DCIGETTEXT __dcigettext
358 #else
359 # define DCIGETTEXT dcigettext__
360 #endif
361
362 /* Lock variable to protect the global data in the gettext implementation. */
363 #ifdef _LIBC
364 __libc_rwlock_define_initialized (, _nl_state_lock)
365 #endif
366
367 /* Checking whether the binaries runs SUID must be done and glibc provides
368 easier methods therefore we make a difference here. */
369 #ifdef _LIBC
370 # define ENABLE_SECURE __libc_enable_secure
371 # define DETERMINE_SECURE
372 #else
373 # ifndef HAVE_GETUID
374 # define getuid() 0
375 # endif
376 # ifndef HAVE_GETGID
377 # define getgid() 0
378 # endif
379 # ifndef HAVE_GETEUID
380 # define geteuid() getuid()
381 # endif
382 # ifndef HAVE_GETEGID
383 # define getegid() getgid()
384 # endif
385 static int enable_secure;
386 # define ENABLE_SECURE (enable_secure == 1)
387 # define DETERMINE_SECURE \
388 if (enable_secure == 0) \
389 { \
390 if (getuid () != geteuid () || getgid () != getegid ()) \
391 enable_secure = 1; \
392 else \
393 enable_secure = -1; \
394 }
395 #endif
396
397 /* Look up MSGID in the DOMAINNAME message catalog for the current
398 CATEGORY locale and, if PLURAL is nonzero, search over string
399 depending on the plural form determined by N. */
400 char *
401 DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category)
402 const char *domainname;
403 const char *msgid1;
404 const char *msgid2;
405 int plural;
406 unsigned long int n;
407 int category;
408 {
409 #ifndef HAVE_ALLOCA
410 struct block_list *block_list = NULL;
411 #endif
412 struct loaded_l10nfile *domain;
413 struct binding *binding;
414 const char *categoryname;
415 const char *categoryvalue;
416 char *dirname, *xdomainname;
417 char *single_locale;
418 char *retval;
419 size_t retlen;
420 int saved_errno;
421 #if defined HAVE_TSEARCH || defined _LIBC
422 struct known_translation_t *search;
423 struct known_translation_t **foundp = NULL;
424 size_t msgid_len;
425 #endif
426 size_t domainname_len;
427
428 /* If no real MSGID is given return NULL. */
429 if (msgid1 == NULL)
430 return NULL;
431
432 __libc_rwlock_rdlock (_nl_state_lock);
433
434 /* If DOMAINNAME is NULL, we are interested in the default domain. If
435 CATEGORY is not LC_MESSAGES this might not make much sense but the
436 definition left this undefined. */
437 if (domainname == NULL)
438 domainname = _nl_current_default_domain;
439
440 #if defined HAVE_TSEARCH || defined _LIBC
441 msgid_len = strlen (msgid1) + 1;
442
443 /* Try to find the translation among those which we found at
444 some time. */
445 search = (struct known_translation_t *)
446 alloca (offsetof (struct known_translation_t, msgid) + msgid_len);
447 memcpy (search->msgid, msgid1, msgid_len);
448 search->domainname = (char *) domainname;
449 search->category = category;
450
451 foundp = (struct known_translation_t **) tfind (search, &root, transcmp);
452 if (foundp != NULL && (*foundp)->counter == _nl_msg_cat_cntr)
453 {
454 /* Now deal with plural. */
455 if (plural)
456 retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation,
457 (*foundp)->translation_length);
458 else
459 retval = (char *) (*foundp)->translation;
460
461 __libc_rwlock_unlock (_nl_state_lock);
462 return retval;
463 }
464 #endif
465
466 /* Preserve the `errno' value. */
467 saved_errno = errno;
468
469 /* See whether this is a SUID binary or not. */
470 DETERMINE_SECURE;
471
472 /* First find matching binding. */
473 for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next)
474 {
475 int compare = strcmp (domainname, binding->domainname);
476 if (compare == 0)
477 /* We found it! */
478 break;
479 if (compare < 0)
480 {
481 /* It is not in the list. */
482 binding = NULL;
483 break;
484 }
485 }
486
487 if (binding == NULL)
488 dirname = (char *) _nl_default_dirname;
489 else if (IS_ABSOLUTE_PATH (binding->dirname))
490 dirname = binding->dirname;
491 else
492 {
493 /* We have a relative path. Make it absolute now. */
494 size_t dirname_len = strlen (binding->dirname) + 1;
495 size_t path_max;
496 char *ret;
497
498 path_max = (unsigned int) PATH_MAX;
499 path_max += 2; /* The getcwd docs say to do this. */
500
501 for (;;)
502 {
503 dirname = (char *) alloca (path_max + dirname_len);
504 ADD_BLOCK (block_list, dirname);
505
506 __set_errno (0);
507 ret = getcwd (dirname, path_max);
508 if (ret != NULL || errno != ERANGE)
509 break;
510
511 path_max += path_max / 2;
512 path_max += PATH_INCR;
513 }
514
515 if (ret == NULL)
516 {
517 /* We cannot get the current working directory. Don't signal an
518 error but simply return the default string. */
519 FREE_BLOCKS (block_list);
520 __libc_rwlock_unlock (_nl_state_lock);
521 __set_errno (saved_errno);
522 return (plural == 0
523 ? (char *) msgid1
524 /* Use the Germanic plural rule. */
525 : n == 1 ? (char *) msgid1 : (char *) msgid2);
526 }
527
528 stpcpy (stpcpy (strchr (dirname, '\0'), "/"), binding->dirname);
529 }
530
531 /* Now determine the symbolic name of CATEGORY and its value. */
532 categoryname = category_to_name (category);
533 categoryvalue = guess_category_value (category, categoryname);
534
535 domainname_len = strlen (domainname);
536 xdomainname = (char *) alloca (strlen (categoryname)
537 + domainname_len + 5);
538 ADD_BLOCK (block_list, xdomainname);
539
540 stpcpy (mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"),
541 domainname, domainname_len),
542 ".mo");
543
544 /* Creating working area. */
545 single_locale = (char *) alloca (strlen (categoryvalue) + 1);
546 ADD_BLOCK (block_list, single_locale);
547
548
549 /* Search for the given string. This is a loop because we perhaps
550 got an ordered list of languages to consider for the translation. */
551 while (1)
552 {
553 /* Make CATEGORYVALUE point to the next element of the list. */
554 while (categoryvalue[0] != '\0' && categoryvalue[0] == ':')
555 ++categoryvalue;
556 if (categoryvalue[0] == '\0')
557 {
558 /* The whole contents of CATEGORYVALUE has been searched but
559 no valid entry has been found. We solve this situation
560 by implicitly appending a "C" entry, i.e. no translation
561 will take place. */
562 single_locale[0] = 'C';
563 single_locale[1] = '\0';
564 }
565 else
566 {
567 char *cp = single_locale;
568 while (categoryvalue[0] != '\0' && categoryvalue[0] != ':')
569 *cp++ = *categoryvalue++;
570 *cp = '\0';
571
572 /* When this is a SUID binary we must not allow accessing files
573 outside the dedicated directories. */
574 if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale))
575 /* Ingore this entry. */
576 continue;
577 }
578
579 /* If the current locale value is C (or POSIX) we don't load a
580 domain. Return the MSGID. */
581 if (strcmp (single_locale, "C") == 0
582 || strcmp (single_locale, "POSIX") == 0)
583 {
584 FREE_BLOCKS (block_list);
585 __libc_rwlock_unlock (_nl_state_lock);
586 __set_errno (saved_errno);
587 return (plural == 0
588 ? (char *) msgid1
589 /* Use the Germanic plural rule. */
590 : n == 1 ? (char *) msgid1 : (char *) msgid2);
591 }
592
593
594 /* Find structure describing the message catalog matching the
595 DOMAINNAME and CATEGORY. */
596 domain = _nl_find_domain (dirname, single_locale, xdomainname, binding);
597
598 if (domain != NULL)
599 {
600 retval = _nl_find_msg (domain, binding, msgid1, &retlen);
601
602 if (retval == NULL)
603 {
604 int cnt;
605
606 for (cnt = 0; domain->successor[cnt] != NULL; ++cnt)
607 {
608 retval = _nl_find_msg (domain->successor[cnt], binding,
609 msgid1, &retlen);
610
611 if (retval != NULL)
612 {
613 domain = domain->successor[cnt];
614 break;
615 }
616 }
617 }
618
619 if (retval != NULL)
620 {
621 /* Found the translation of MSGID1 in domain DOMAIN:
622 starting at RETVAL, RETLEN bytes. */
623 FREE_BLOCKS (block_list);
624 __set_errno (saved_errno);
625 #if defined HAVE_TSEARCH || defined _LIBC
626 if (foundp == NULL)
627 {
628 /* Create a new entry and add it to the search tree. */
629 struct known_translation_t *newp;
630
631 newp = (struct known_translation_t *)
632 malloc (offsetof (struct known_translation_t, msgid)
633 + msgid_len + domainname_len + 1);
634 if (newp != NULL)
635 {
636 newp->domainname =
637 mempcpy (newp->msgid, msgid1, msgid_len);
638 memcpy (newp->domainname, domainname, domainname_len + 1);
639 newp->category = category;
640 newp->counter = _nl_msg_cat_cntr;
641 newp->domain = domain;
642 newp->translation = retval;
643 newp->translation_length = retlen;
644
645 /* Insert the entry in the search tree. */
646 foundp = (struct known_translation_t **)
647 tsearch (newp, &root, transcmp);
648 if (foundp == NULL
649 || __builtin_expect (*foundp != newp, 0))
650 /* The insert failed. */
651 free (newp);
652 }
653 }
654 else
655 {
656 /* We can update the existing entry. */
657 (*foundp)->counter = _nl_msg_cat_cntr;
658 (*foundp)->domain = domain;
659 (*foundp)->translation = retval;
660 (*foundp)->translation_length = retlen;
661 }
662 #endif
663 /* Now deal with plural. */
664 if (plural)
665 retval = plural_lookup (domain, n, retval, retlen);
666
667 __libc_rwlock_unlock (_nl_state_lock);
668 return retval;
669 }
670 }
671 }
672 /* NOTREACHED */
673 }
674
675
676 char *
677 internal_function
678 _nl_find_msg (domain_file, domainbinding, msgid, lengthp)
679 struct loaded_l10nfile *domain_file;
680 struct binding *domainbinding;
681 const char *msgid;
682 size_t *lengthp;
683 {
684 struct loaded_domain *domain;
685 size_t act;
686 char *result;
687 size_t resultlen;
688
689 if (domain_file->decided == 0)
690 _nl_load_domain (domain_file, domainbinding);
691
692 if (domain_file->data == NULL)
693 return NULL;
694
695 domain = (struct loaded_domain *) domain_file->data;
696
697 /* Locate the MSGID and its translation. */
698 if (domain->hash_size > 2 && domain->hash_tab != NULL)
699 {
700 /* Use the hashing table. */
701 nls_uint32 len = strlen (msgid);
702 nls_uint32 hash_val = hash_string (msgid);
703 nls_uint32 idx = hash_val % domain->hash_size;
704 nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2));
705
706 while (1)
707 {
708 nls_uint32 nstr = W (domain->must_swap, domain->hash_tab[idx]);
709
710 if (nstr == 0)
711 /* Hash table entry is empty. */
712 return NULL;
713
714 /* Compare msgid with the original string at index nstr-1.
715 We compare the lengths with >=, not ==, because plural entries
716 are represented by strings with an embedded NUL. */
717 if (W (domain->must_swap, domain->orig_tab[nstr - 1].length) >= len
718 && (strcmp (msgid,
719 domain->data + W (domain->must_swap,
720 domain->orig_tab[nstr - 1].offset))
721 == 0))
722 {
723 act = nstr - 1;
724 goto found;
725 }
726
727 if (idx >= domain->hash_size - incr)
728 idx -= domain->hash_size - incr;
729 else
730 idx += incr;
731 }
732 /* NOTREACHED */
733 }
734 else
735 {
736 /* Try the default method: binary search in the sorted array of
737 messages. */
738 size_t top, bottom;
739
740 bottom = 0;
741 top = domain->nstrings;
742 while (bottom < top)
743 {
744 int cmp_val;
745
746 act = (bottom + top) / 2;
747 cmp_val = strcmp (msgid, (domain->data
748 + W (domain->must_swap,
749 domain->orig_tab[act].offset)));
750 if (cmp_val < 0)
751 top = act;
752 else if (cmp_val > 0)
753 bottom = act + 1;
754 else
755 goto found;
756 }
757 /* No translation was found. */
758 return NULL;
759 }
760
761 found:
762 /* The translation was found at index ACT. If we have to convert the
763 string to use a different character set, this is the time. */
764 result = ((char *) domain->data
765 + W (domain->must_swap, domain->trans_tab[act].offset));
766 resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1;
767
768 #if defined _LIBC || HAVE_ICONV
769 if (domain->codeset_cntr
770 != (domainbinding != NULL ? domainbinding->codeset_cntr : 0))
771 {
772 /* The domain's codeset has changed through bind_textdomain_codeset()
773 since the message catalog was initialized or last accessed. We
774 have to reinitialize the converter. */
775 _nl_free_domain_conv (domain);
776 _nl_init_domain_conv (domain_file, domain, domainbinding);
777 }
778
779 if (
780 # ifdef _LIBC
781 domain->conv != (__gconv_t) -1
782 # else
783 # if HAVE_ICONV
784 domain->conv != (iconv_t) -1
785 # endif
786 # endif
787 )
788 {
789 /* We are supposed to do a conversion. First allocate an
790 appropriate table with the same structure as the table
791 of translations in the file, where we can put the pointers
792 to the converted strings in.
793 There is a slight complication with plural entries. They
794 are represented by consecutive NUL terminated strings. We
795 handle this case by converting RESULTLEN bytes, including
796 NULs. */
797
798 if (domain->conv_tab == NULL
799 && ((domain->conv_tab = (char **) calloc (domain->nstrings,
800 sizeof (char *)))
801 == NULL))
802 /* Mark that we didn't succeed allocating a table. */
803 domain->conv_tab = (char **) -1;
804
805 if (__builtin_expect (domain->conv_tab == (char **) -1, 0))
806 /* Nothing we can do, no more memory. */
807 goto converted;
808
809 if (domain->conv_tab[act] == NULL)
810 {
811 /* We haven't used this string so far, so it is not
812 translated yet. Do this now. */
813 /* We use a bit more efficient memory handling.
814 We allocate always larger blocks which get used over
815 time. This is faster than many small allocations. */
816 __libc_lock_define_initialized (static, lock)
817 # define INITIAL_BLOCK_SIZE 4080
818 static unsigned char *freemem;
819 static size_t freemem_size;
820
821 const unsigned char *inbuf;
822 unsigned char *outbuf;
823 int malloc_count;
824 # ifndef _LIBC
825 transmem_block_t *transmem_list = NULL;
826 # endif
827
828 __libc_lock_lock (lock);
829
830 inbuf = (const unsigned char *) result;
831 outbuf = freemem + sizeof (size_t);
832
833 malloc_count = 0;
834 while (1)
835 {
836 transmem_block_t *newmem;
837 # ifdef _LIBC
838 size_t non_reversible;
839 int res;
840
841 if (freemem_size < sizeof (size_t))
842 goto resize_freemem;
843
844 res = __gconv (domain->conv,
845 &inbuf, inbuf + resultlen,
846 &outbuf,
847 outbuf + freemem_size - sizeof (size_t),
848 &non_reversible);
849
850 if (res == __GCONV_OK || res == __GCONV_EMPTY_INPUT)
851 break;
852
853 if (res != __GCONV_FULL_OUTPUT)
854 {
855 __libc_lock_unlock (lock);
856 goto converted;
857 }
858
859 inbuf = result;
860 # else
861 # if HAVE_ICONV
862 const char *inptr = (const char *) inbuf;
863 size_t inleft = resultlen;
864 char *outptr = (char *) outbuf;
865 size_t outleft;
866
867 if (freemem_size < sizeof (size_t))
868 goto resize_freemem;
869
870 outleft = freemem_size - sizeof (size_t);
871 if (iconv (domain->conv,
872 (ICONV_CONST char **) &inptr, &inleft,
873 &outptr, &outleft)
874 != (size_t) (-1))
875 {
876 outbuf = (unsigned char *) outptr;
877 break;
878 }
879 if (errno != E2BIG)
880 {
881 __libc_lock_unlock (lock);
882 goto converted;
883 }
884 # endif
885 # endif
886
887 resize_freemem:
888 /* We must allocate a new buffer or resize the old one. */
889 if (malloc_count > 0)
890 {
891 ++malloc_count;
892 freemem_size = malloc_count * INITIAL_BLOCK_SIZE;
893 newmem = (transmem_block_t *) realloc (transmem_list,
894 freemem_size);
895 # ifdef _LIBC
896 if (newmem != NULL)
897 transmem_list = transmem_list->next;
898 else
899 {
900 struct transmem_list *old = transmem_list;
901
902 transmem_list = transmem_list->next;
903 free (old);
904 }
905 # endif
906 }
907 else
908 {
909 malloc_count = 1;
910 freemem_size = INITIAL_BLOCK_SIZE;
911 newmem = (transmem_block_t *) malloc (freemem_size);
912 }
913 if (__builtin_expect (newmem == NULL, 0))
914 {
915 freemem = NULL;
916 freemem_size = 0;
917 __libc_lock_unlock (lock);
918 goto converted;
919 }
920
921 # ifdef _LIBC
922 /* Add the block to the list of blocks we have to free
923 at some point. */
924 newmem->next = transmem_list;
925 transmem_list = newmem;
926
927 freemem = newmem->data;
928 freemem_size -= offsetof (struct transmem_list, data);
929 # else
930 transmem_list = newmem;
931 freemem = newmem;
932 # endif
933
934 outbuf = freemem + sizeof (size_t);
935 }
936
937 /* We have now in our buffer a converted string. Put this
938 into the table of conversions. */
939 *(size_t *) freemem = outbuf - freemem - sizeof (size_t);
940 domain->conv_tab[act] = (char *) freemem;
941 /* Shrink freemem, but keep it aligned. */
942 freemem_size -= outbuf - freemem;
943 freemem = outbuf;
944 freemem += freemem_size & (alignof (size_t) - 1);
945 freemem_size = freemem_size & ~ (alignof (size_t) - 1);
946
947 __libc_lock_unlock (lock);
948 }
949
950 /* Now domain->conv_tab[act] contains the translation of all
951 the plural variants. */
952 result = domain->conv_tab[act] + sizeof (size_t);
953 resultlen = *(size_t *) domain->conv_tab[act];
954 }
955
956 converted:
957 /* The result string is converted. */
958
959 #endif /* _LIBC || HAVE_ICONV */
960
961 *lengthp = resultlen;
962 return result;
963 }
964
965
966 /* Look up a plural variant. */
967 static char *
968 internal_function
969 plural_lookup (domain, n, translation, translation_len)
970 struct loaded_l10nfile *domain;
971 unsigned long int n;
972 const char *translation;
973 size_t translation_len;
974 {
975 struct loaded_domain *domaindata = (struct loaded_domain *) domain->data;
976 unsigned long int index;
977 const char *p;
978
979 index = plural_eval (domaindata->plural, n);
980 if (index >= domaindata->nplurals)
981 /* This should never happen. It means the plural expression and the
982 given maximum value do not match. */
983 index = 0;
984
985 /* Skip INDEX strings at TRANSLATION. */
986 p = translation;
987 while (index-- > 0)
988 {
989 #ifdef _LIBC
990 p = __rawmemchr (p, '\0');
991 #else
992 p = strchr (p, '\0');
993 #endif
994 /* And skip over the NUL byte. */
995 p++;
996
997 if (p >= translation + translation_len)
998 /* This should never happen. It means the plural expression
999 evaluated to a value larger than the number of variants
1000 available for MSGID1. */
1001 return (char *) translation;
1002 }
1003 return (char *) p;
1004 }
1005
1006
1007 /* Function to evaluate the plural expression and return an index value. */
1008 static unsigned long int
1009 internal_function
1010 plural_eval (pexp, n)
1011 struct expression *pexp;
1012 unsigned long int n;
1013 {
1014 switch (pexp->nargs)
1015 {
1016 case 0:
1017 switch (pexp->operation)
1018 {
1019 case var:
1020 return n;
1021 case num:
1022 return pexp->val.num;
1023 default:
1024 break;
1025 }
1026 /* NOTREACHED */
1027 break;
1028 case 1:
1029 {
1030 /* pexp->operation must be lnot. */
1031 unsigned long int arg = plural_eval (pexp->val.args[0], n);
1032 return ! arg;
1033 }
1034 case 2:
1035 {
1036 unsigned long int leftarg = plural_eval (pexp->val.args[0], n);
1037 if (pexp->operation == lor)
1038 return leftarg || plural_eval (pexp->val.args[1], n);
1039 else if (pexp->operation == land)
1040 return leftarg && plural_eval (pexp->val.args[1], n);
1041 else
1042 {
1043 unsigned long int rightarg = plural_eval (pexp->val.args[1], n);
1044
1045 switch (pexp->operation)
1046 {
1047 case mult:
1048 return leftarg * rightarg;
1049 case divide:
1050 return leftarg / rightarg;
1051 case module:
1052 return leftarg % rightarg;
1053 case plus:
1054 return leftarg + rightarg;
1055 case minus:
1056 return leftarg - rightarg;
1057 case less_than:
1058 return leftarg < rightarg;
1059 case greater_than:
1060 return leftarg > rightarg;
1061 case less_or_equal:
1062 return leftarg <= rightarg;
1063 case greater_or_equal:
1064 return leftarg >= rightarg;
1065 case equal:
1066 return leftarg == rightarg;
1067 case not_equal:
1068 return leftarg != rightarg;
1069 default:
1070 break;
1071 }
1072 }
1073 /* NOTREACHED */
1074 break;
1075 }
1076 case 3:
1077 {
1078 /* pexp->operation must be qmop. */
1079 unsigned long int boolarg = plural_eval (pexp->val.args[0], n);
1080 return plural_eval (pexp->val.args[boolarg ? 1 : 2], n);
1081 }
1082 }
1083 /* NOTREACHED */
1084 return 0;
1085 }
1086
1087
1088 /* Return string representation of locale CATEGORY. */
1089 static const char *
1090 internal_function
1091 category_to_name (category)
1092 int category;
1093 {
1094 const char *retval;
1095
1096 switch (category)
1097 {
1098 #ifdef LC_COLLATE
1099 case LC_COLLATE:
1100 retval = "LC_COLLATE";
1101 break;
1102 #endif
1103 #ifdef LC_CTYPE
1104 case LC_CTYPE:
1105 retval = "LC_CTYPE";
1106 break;
1107 #endif
1108 #ifdef LC_MONETARY
1109 case LC_MONETARY:
1110 retval = "LC_MONETARY";
1111 break;
1112 #endif
1113 #ifdef LC_NUMERIC
1114 case LC_NUMERIC:
1115 retval = "LC_NUMERIC";
1116 break;
1117 #endif
1118 #ifdef LC_TIME
1119 case LC_TIME:
1120 retval = "LC_TIME";
1121 break;
1122 #endif
1123 #ifdef LC_MESSAGES
1124 case LC_MESSAGES:
1125 retval = "LC_MESSAGES";
1126 break;
1127 #endif
1128 #ifdef LC_RESPONSE
1129 case LC_RESPONSE:
1130 retval = "LC_RESPONSE";
1131 break;
1132 #endif
1133 #ifdef LC_ALL
1134 case LC_ALL:
1135 /* This might not make sense but is perhaps better than any other
1136 value. */
1137 retval = "LC_ALL";
1138 break;
1139 #endif
1140 default:
1141 /* If you have a better idea for a default value let me know. */
1142 retval = "LC_XXX";
1143 }
1144
1145 return retval;
1146 }
1147
1148 /* Guess value of current locale from value of the environment variables. */
1149 static const char *
1150 internal_function
1151 guess_category_value (category, categoryname)
1152 int category;
1153 const char *categoryname;
1154 {
1155 const char *language;
1156 const char *retval;
1157
1158 /* The highest priority value is the `LANGUAGE' environment
1159 variable. But we don't use the value if the currently selected
1160 locale is the C locale. This is a GNU extension. */
1161 language = getenv ("LANGUAGE");
1162 if (language != NULL && language[0] == '\0')
1163 language = NULL;
1164
1165 /* We have to proceed with the POSIX methods of looking to `LC_ALL',
1166 `LC_xxx', and `LANG'. On some systems this can be done by the
1167 `setlocale' function itself. */
1168 #if defined _LIBC || (defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL)
1169 retval = setlocale (category, NULL);
1170 #else
1171 /* Setting of LC_ALL overwrites all other. */
1172 retval = getenv ("LC_ALL");
1173 if (retval == NULL || retval[0] == '\0')
1174 {
1175 /* Next comes the name of the desired category. */
1176 retval = getenv (categoryname);
1177 if (retval == NULL || retval[0] == '\0')
1178 {
1179 /* Last possibility is the LANG environment variable. */
1180 retval = getenv ("LANG");
1181 if (retval == NULL || retval[0] == '\0')
1182 /* We use C as the default domain. POSIX says this is
1183 implementation defined. */
1184 return "C";
1185 }
1186 }
1187 #endif
1188
1189 return language != NULL && strcmp (retval, "C") != 0 ? language : retval;
1190 }
1191
1192 /* @@ begin of epilog @@ */
1193
1194 /* We don't want libintl.a to depend on any other library. So we
1195 avoid the non-standard function stpcpy. In GNU C Library this
1196 function is available, though. Also allow the symbol HAVE_STPCPY
1197 to be defined. */
1198 #if !_LIBC && !HAVE_STPCPY
1199 static char *
1200 stpcpy (dest, src)
1201 char *dest;
1202 const char *src;
1203 {
1204 while ((*dest++ = *src++) != '\0')
1205 /* Do nothing. */ ;
1206 return dest - 1;
1207 }
1208 #endif
1209
1210 #if !_LIBC && !HAVE_MEMPCPY
1211 static void *
1212 mempcpy (dest, src, n)
1213 void *dest;
1214 const void *src;
1215 size_t n;
1216 {
1217 return (void *) ((char *) memcpy (dest, src, n) + n);
1218 }
1219 #endif
1220
1221
1222 #ifdef _LIBC
1223 /* If we want to free all resources we have to do some work at
1224 program's end. */
1225 static void __attribute__ ((unused))
1226 free_mem (void)
1227 {
1228 void *old;
1229
1230 while (_nl_domain_bindings != NULL)
1231 {
1232 struct binding *oldp = _nl_domain_bindings;
1233 _nl_domain_bindings = _nl_domain_bindings->next;
1234 if (oldp->dirname != _nl_default_dirname)
1235 /* Yes, this is a pointer comparison. */
1236 free (oldp->dirname);
1237 free (oldp->codeset);
1238 free (oldp);
1239 }
1240
1241 if (_nl_current_default_domain != _nl_default_default_domain)
1242 /* Yes, again a pointer comparison. */
1243 free ((char *) _nl_current_default_domain);
1244
1245 /* Remove the search tree with the known translations. */
1246 __tdestroy (root, free);
1247 root = NULL;
1248
1249 while (transmem_list != NULL)
1250 {
1251 old = transmem_list;
1252 transmem_list = transmem_list->next;
1253 free (old);
1254 }
1255 }
1256
1257 text_set_element (__libc_subfreeres, free_mem);
1258 #endif
0 /* Implementation of the dcngettext(3) function.
1 Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifdef HAVE_CONFIG_H
19 # include <config.h>
20 #endif
21
22 #include "gettextP.h"
23 #ifdef _LIBC
24 # include <libintl.h>
25 #else
26 # include "libgnuintl.h"
27 #endif
28
29 /* @@ end of prolog @@ */
30
31 /* Names for the libintl functions are a problem. They must not clash
32 with existing names and they should follow ANSI C. But this source
33 code is also used in GNU C Library where the names have a __
34 prefix. So we have to make a difference here. */
35 #ifdef _LIBC
36 # define DCNGETTEXT __dcngettext
37 # define DCIGETTEXT __dcigettext
38 #else
39 # define DCNGETTEXT dcngettext__
40 # define DCIGETTEXT dcigettext__
41 #endif
42
43 /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
44 locale. */
45 char *
46 DCNGETTEXT (domainname, msgid1, msgid2, n, category)
47 const char *domainname;
48 const char *msgid1;
49 const char *msgid2;
50 unsigned long int n;
51 int category;
52 {
53 return DCIGETTEXT (domainname, msgid1, msgid2, 1, n, category);
54 }
55
56 #ifdef _LIBC
57 /* Alias for function name in GNU C Library. */
58 weak_alias (__dcngettext, dcngettext);
59 #endif
0 /* Implementation of the dgettext(3) function.
1 Copyright (C) 1995-1997, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifdef HAVE_CONFIG_H
19 # include <config.h>
20 #endif
21
22 #include <locale.h>
23
24 #include "gettextP.h"
25 #ifdef _LIBC
26 # include <libintl.h>
27 #else
28 # include "libgnuintl.h"
29 #endif
30
31 /* @@ end of prolog @@ */
32
33 /* Names for the libintl functions are a problem. They must not clash
34 with existing names and they should follow ANSI C. But this source
35 code is also used in GNU C Library where the names have a __
36 prefix. So we have to make a difference here. */
37 #ifdef _LIBC
38 # define DGETTEXT __dgettext
39 # define DCGETTEXT __dcgettext
40 #else
41 # define DGETTEXT dgettext__
42 # define DCGETTEXT dcgettext__
43 #endif
44
45 /* Look up MSGID in the DOMAINNAME message catalog of the current
46 LC_MESSAGES locale. */
47 char *
48 DGETTEXT (domainname, msgid)
49 const char *domainname;
50 const char *msgid;
51 {
52 return DCGETTEXT (domainname, msgid, LC_MESSAGES);
53 }
54
55 #ifdef _LIBC
56 /* Alias for function name in GNU C Library. */
57 weak_alias (__dgettext, dgettext);
58 #endif
0 /* Implementation of the dngettext(3) function.
1 Copyright (C) 1995-1997, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifdef HAVE_CONFIG_H
19 # include <config.h>
20 #endif
21
22 #include <locale.h>
23
24 #include "gettextP.h"
25 #ifdef _LIBC
26 # include <libintl.h>
27 #else
28 # include "libgnuintl.h"
29 #endif
30
31 /* @@ end of prolog @@ */
32
33 /* Names for the libintl functions are a problem. They must not clash
34 with existing names and they should follow ANSI C. But this source
35 code is also used in GNU C Library where the names have a __
36 prefix. So we have to make a difference here. */
37 #ifdef _LIBC
38 # define DNGETTEXT __dngettext
39 # define DCNGETTEXT __dcngettext
40 #else
41 # define DNGETTEXT dngettext__
42 # define DCNGETTEXT dcngettext__
43 #endif
44
45 /* Look up MSGID in the DOMAINNAME message catalog of the current
46 LC_MESSAGES locale and skip message according to the plural form. */
47 char *
48 DNGETTEXT (domainname, msgid1, msgid2, n)
49 const char *domainname;
50 const char *msgid1;
51 const char *msgid2;
52 unsigned long int n;
53 {
54 return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES);
55 }
56
57 #ifdef _LIBC
58 /* Alias for function name in GNU C Library. */
59 weak_alias (__dngettext, dngettext);
60 #endif
0 /* Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
1 Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifdef HAVE_CONFIG_H
19 # include <config.h>
20 #endif
21
22 #include <stdlib.h>
23 #include <string.h>
24 #include <sys/types.h>
25
26 #include "loadinfo.h"
27
28 /* On some strange systems still no definition of NULL is found. Sigh! */
29 #ifndef NULL
30 # if defined __STDC__ && __STDC__
31 # define NULL ((void *) 0)
32 # else
33 # define NULL 0
34 # endif
35 #endif
36
37 /* @@ end of prolog @@ */
38
39 char *
40 _nl_find_language (name)
41 const char *name;
42 {
43 while (name[0] != '\0' && name[0] != '_' && name[0] != '@'
44 && name[0] != '+' && name[0] != ',')
45 ++name;
46
47 return (char *) name;
48 }
49
50
51 int
52 _nl_explode_name (name, language, modifier, territory, codeset,
53 normalized_codeset, special, sponsor, revision)
54 char *name;
55 const char **language;
56 const char **modifier;
57 const char **territory;
58 const char **codeset;
59 const char **normalized_codeset;
60 const char **special;
61 const char **sponsor;
62 const char **revision;
63 {
64 enum { undecided, xpg, cen } syntax;
65 char *cp;
66 int mask;
67
68 *modifier = NULL;
69 *territory = NULL;
70 *codeset = NULL;
71 *normalized_codeset = NULL;
72 *special = NULL;
73 *sponsor = NULL;
74 *revision = NULL;
75
76 /* Now we determine the single parts of the locale name. First
77 look for the language. Termination symbols are `_' and `@' if
78 we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */
79 mask = 0;
80 syntax = undecided;
81 *language = cp = name;
82 cp = _nl_find_language (*language);
83
84 if (*language == cp)
85 /* This does not make sense: language has to be specified. Use
86 this entry as it is without exploding. Perhaps it is an alias. */
87 cp = strchr (*language, '\0');
88 else if (cp[0] == '_')
89 {
90 /* Next is the territory. */
91 cp[0] = '\0';
92 *territory = ++cp;
93
94 while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@'
95 && cp[0] != '+' && cp[0] != ',' && cp[0] != '_')
96 ++cp;
97
98 mask |= TERRITORY;
99
100 if (cp[0] == '.')
101 {
102 /* Next is the codeset. */
103 syntax = xpg;
104 cp[0] = '\0';
105 *codeset = ++cp;
106
107 while (cp[0] != '\0' && cp[0] != '@')
108 ++cp;
109
110 mask |= XPG_CODESET;
111
112 if (*codeset != cp && (*codeset)[0] != '\0')
113 {
114 *normalized_codeset = _nl_normalize_codeset (*codeset,
115 cp - *codeset);
116 if (strcmp (*codeset, *normalized_codeset) == 0)
117 free ((char *) *normalized_codeset);
118 else
119 mask |= XPG_NORM_CODESET;
120 }
121 }
122 }
123
124 if (cp[0] == '@' || (syntax != xpg && cp[0] == '+'))
125 {
126 /* Next is the modifier. */
127 syntax = cp[0] == '@' ? xpg : cen;
128 cp[0] = '\0';
129 *modifier = ++cp;
130
131 while (syntax == cen && cp[0] != '\0' && cp[0] != '+'
132 && cp[0] != ',' && cp[0] != '_')
133 ++cp;
134
135 mask |= XPG_MODIFIER | CEN_AUDIENCE;
136 }
137
138 if (syntax != xpg && (cp[0] == '+' || cp[0] == ',' || cp[0] == '_'))
139 {
140 syntax = cen;
141
142 if (cp[0] == '+')
143 {
144 /* Next is special application (CEN syntax). */
145 cp[0] = '\0';
146 *special = ++cp;
147
148 while (cp[0] != '\0' && cp[0] != ',' && cp[0] != '_')
149 ++cp;
150
151 mask |= CEN_SPECIAL;
152 }
153
154 if (cp[0] == ',')
155 {
156 /* Next is sponsor (CEN syntax). */
157 cp[0] = '\0';
158 *sponsor = ++cp;
159
160 while (cp[0] != '\0' && cp[0] != '_')
161 ++cp;
162
163 mask |= CEN_SPONSOR;
164 }
165
166 if (cp[0] == '_')
167 {
168 /* Next is revision (CEN syntax). */
169 cp[0] = '\0';
170 *revision = ++cp;
171
172 mask |= CEN_REVISION;
173 }
174 }
175
176 /* For CEN syntax values it might be important to have the
177 separator character in the file name, not for XPG syntax. */
178 if (syntax == xpg)
179 {
180 if (*territory != NULL && (*territory)[0] == '\0')
181 mask &= ~TERRITORY;
182
183 if (*codeset != NULL && (*codeset)[0] == '\0')
184 mask &= ~XPG_CODESET;
185
186 if (*modifier != NULL && (*modifier)[0] == '\0')
187 mask &= ~XPG_MODIFIER;
188 }
189
190 return mask;
191 }
0 /* Handle list of needed message catalogs
1 Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
2 Written by Ulrich Drepper <drepper@gnu.org>, 1995.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published
6 by the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public
15 License along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 USA. */
18
19 #ifdef HAVE_CONFIG_H
20 # include <config.h>
21 #endif
22
23 #include <stdio.h>
24 #include <sys/types.h>
25 #include <stdlib.h>
26 #include <string.h>
27
28 #if defined HAVE_UNISTD_H || defined _LIBC
29 # include <unistd.h>
30 #endif
31
32 #include "gettextP.h"
33 #ifdef _LIBC
34 # include <libintl.h>
35 #else
36 # include "libgnuintl.h"
37 #endif
38
39 /* @@ end of prolog @@ */
40 /* List of already loaded domains. */
41 static struct loaded_l10nfile *_nl_loaded_domains;
42
43
44 /* Return a data structure describing the message catalog described by
45 the DOMAINNAME and CATEGORY parameters with respect to the currently
46 established bindings. */
47 struct loaded_l10nfile *
48 internal_function
49 _nl_find_domain (dirname, locale, domainname, domainbinding)
50 const char *dirname;
51 char *locale;
52 const char *domainname;
53 struct binding *domainbinding;
54 {
55 struct loaded_l10nfile *retval;
56 const char *language;
57 const char *modifier;
58 const char *territory;
59 const char *codeset;
60 const char *normalized_codeset;
61 const char *special;
62 const char *sponsor;
63 const char *revision;
64 const char *alias_value;
65 int mask;
66
67 /* LOCALE can consist of up to four recognized parts for the XPG syntax:
68
69 language[_territory[.codeset]][@modifier]
70
71 and six parts for the CEN syntax:
72
73 language[_territory][+audience][+special][,[sponsor][_revision]]
74
75 Beside the first part all of them are allowed to be missing. If
76 the full specified locale is not found, the less specific one are
77 looked for. The various parts will be stripped off according to
78 the following order:
79 (1) revision
80 (2) sponsor
81 (3) special
82 (4) codeset
83 (5) normalized codeset
84 (6) territory
85 (7) audience/modifier
86 */
87
88 /* If we have already tested for this locale entry there has to
89 be one data set in the list of loaded domains. */
90 retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname,
91 strlen (dirname) + 1, 0, locale, NULL, NULL,
92 NULL, NULL, NULL, NULL, NULL, domainname, 0);
93 if (retval != NULL)
94 {
95 /* We know something about this locale. */
96 int cnt;
97
98 if (retval->decided == 0)
99 _nl_load_domain (retval, domainbinding);
100
101 if (retval->data != NULL)
102 return retval;
103
104 for (cnt = 0; retval->successor[cnt] != NULL; ++cnt)
105 {
106 if (retval->successor[cnt]->decided == 0)
107 _nl_load_domain (retval->successor[cnt], domainbinding);
108
109 if (retval->successor[cnt]->data != NULL)
110 break;
111 }
112 return cnt >= 0 ? retval : NULL;
113 /* NOTREACHED */
114 }
115
116 /* See whether the locale value is an alias. If yes its value
117 *overwrites* the alias name. No test for the original value is
118 done. */
119 alias_value = _nl_expand_alias (locale);
120 if (alias_value != NULL)
121 {
122 #if defined _LIBC || defined HAVE_STRDUP
123 locale = strdup (alias_value);
124 if (locale == NULL)
125 return NULL;
126 #else
127 size_t len = strlen (alias_value) + 1;
128 locale = (char *) malloc (len);
129 if (locale == NULL)
130 return NULL;
131
132 memcpy (locale, alias_value, len);
133 #endif
134 }
135
136 /* Now we determine the single parts of the locale name. First
137 look for the language. Termination symbols are `_' and `@' if
138 we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */
139 mask = _nl_explode_name (locale, &language, &modifier, &territory,
140 &codeset, &normalized_codeset, &special,
141 &sponsor, &revision);
142
143 /* Create all possible locale entries which might be interested in
144 generalization. */
145 retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname,
146 strlen (dirname) + 1, mask, language, territory,
147 codeset, normalized_codeset, modifier, special,
148 sponsor, revision, domainname, 1);
149 if (retval == NULL)
150 /* This means we are out of core. */
151 return NULL;
152
153 if (retval->decided == 0)
154 _nl_load_domain (retval, domainbinding);
155 if (retval->data == NULL)
156 {
157 int cnt;
158 for (cnt = 0; retval->successor[cnt] != NULL; ++cnt)
159 {
160 if (retval->successor[cnt]->decided == 0)
161 _nl_load_domain (retval->successor[cnt], domainbinding);
162 if (retval->successor[cnt]->data != NULL)
163 break;
164 }
165 }
166
167 /* The room for an alias was dynamically allocated. Free it now. */
168 if (alias_value != NULL)
169 free (locale);
170
171 /* The space for normalized_codeset is dynamically allocated. Free it. */
172 if (mask & XPG_NORM_CODESET)
173 free ((void *) normalized_codeset);
174
175 return retval;
176 }
177
178
179 #ifdef _LIBC
180 static void __attribute__ ((unused))
181 free_mem (void)
182 {
183 struct loaded_l10nfile *runp = _nl_loaded_domains;
184
185 while (runp != NULL)
186 {
187 struct loaded_l10nfile *here = runp;
188 if (runp->data != NULL)
189 _nl_unload_domain ((struct loaded_domain *) runp->data);
190 runp = runp->next;
191 free ((char *) here->filename);
192 free (here);
193 }
194 }
195
196 text_set_element (__libc_subfreeres, free_mem);
197 #endif
0 /* Implementation of gettext(3) function.
1 Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifdef HAVE_CONFIG_H
19 # include <config.h>
20 #endif
21
22 #ifdef _LIBC
23 # define __need_NULL
24 # include <stddef.h>
25 #else
26 # include <stdlib.h> /* Just for NULL. */
27 #endif
28
29 #include "gettextP.h"
30 #ifdef _LIBC
31 # include <libintl.h>
32 #else
33 # include "libgnuintl.h"
34 #endif
35
36 /* @@ end of prolog @@ */
37
38 /* Names for the libintl functions are a problem. They must not clash
39 with existing names and they should follow ANSI C. But this source
40 code is also used in GNU C Library where the names have a __
41 prefix. So we have to make a difference here. */
42 #ifdef _LIBC
43 # define GETTEXT __gettext
44 # define DCGETTEXT __dcgettext
45 #else
46 # define GETTEXT gettext__
47 # define DCGETTEXT dcgettext__
48 #endif
49
50 /* Look up MSGID in the current default message catalog for the current
51 LC_MESSAGES locale. If not found, returns MSGID itself (the default
52 text). */
53 char *
54 GETTEXT (msgid)
55 const char *msgid;
56 {
57 return DCGETTEXT (NULL, msgid, LC_MESSAGES);
58 }
59
60 #ifdef _LIBC
61 /* Alias for function name in GNU C Library. */
62 weak_alias (__gettext, gettext);
63 #endif
0 /* Description of GNU message catalog format: general file layout.
1 Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifndef _GETTEXT_H
19 #define _GETTEXT_H 1
20
21 #if HAVE_LIMITS_H || _LIBC
22 # include <limits.h>
23 #endif
24
25 /* @@ end of prolog @@ */
26
27 /* The magic number of the GNU message catalog format. */
28 #define _MAGIC 0x950412de
29 #define _MAGIC_SWAPPED 0xde120495
30
31 /* Revision number of the currently used .mo (binary) file format. */
32 #define MO_REVISION_NUMBER 0
33
34 /* The following contortions are an attempt to use the C preprocessor
35 to determine an unsigned integral type that is 32 bits wide. An
36 alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but
37 as of version autoconf-2.13, the AC_CHECK_SIZEOF macro doesn't work
38 when cross-compiling. */
39
40 #if __STDC__
41 # define UINT_MAX_32_BITS 4294967295U
42 #else
43 # define UINT_MAX_32_BITS 0xFFFFFFFF
44 #endif
45
46 /* If UINT_MAX isn't defined, assume it's a 32-bit type.
47 This should be valid for all systems GNU cares about because
48 that doesn't include 16-bit systems, and only modern systems
49 (that certainly have <limits.h>) have 64+-bit integral types. */
50
51 #ifndef UINT_MAX
52 # define UINT_MAX UINT_MAX_32_BITS
53 #endif
54
55 #if UINT_MAX == UINT_MAX_32_BITS
56 typedef unsigned nls_uint32;
57 #else
58 # if USHRT_MAX == UINT_MAX_32_BITS
59 typedef unsigned short nls_uint32;
60 # else
61 # if ULONG_MAX == UINT_MAX_32_BITS
62 typedef unsigned long nls_uint32;
63 # else
64 /* The following line is intended to throw an error. Using #error is
65 not portable enough. */
66 "Cannot determine unsigned 32-bit data type."
67 # endif
68 # endif
69 #endif
70
71
72 /* Header for binary .mo file format. */
73 struct mo_file_header
74 {
75 /* The magic number. */
76 nls_uint32 magic;
77 /* The revision number of the file format. */
78 nls_uint32 revision;
79 /* The number of strings pairs. */
80 nls_uint32 nstrings;
81 /* Offset of table with start offsets of original strings. */
82 nls_uint32 orig_tab_offset;
83 /* Offset of table with start offsets of translation strings. */
84 nls_uint32 trans_tab_offset;
85 /* Size of hashing table. */
86 nls_uint32 hash_tab_size;
87 /* Offset of first hashing entry. */
88 nls_uint32 hash_tab_offset;
89 };
90
91 struct string_desc
92 {
93 /* Length of addressed string. */
94 nls_uint32 length;
95 /* Offset of string in file. */
96 nls_uint32 offset;
97 };
98
99 /* @@ begin of epilog @@ */
100
101 #endif /* gettext.h */
0 /* Header describing internals of libintl library.
1 Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
2 Written by Ulrich Drepper <drepper@cygnus.com>, 1995.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published
6 by the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public
15 License along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 USA. */
18
19 #ifndef _GETTEXTP_H
20 #define _GETTEXTP_H
21
22 #include <stddef.h> /* Get size_t. */
23
24 #ifdef _LIBC
25 # include "../iconv/gconv_int.h"
26 #else
27 # if HAVE_ICONV
28 # include <iconv.h>
29 # endif
30 #endif
31
32 #include "loadinfo.h"
33
34 #include "gettext.h" /* Get nls_uint32. */
35
36 /* @@ end of prolog @@ */
37
38 #ifndef PARAMS
39 # if __STDC__
40 # define PARAMS(args) args
41 # else
42 # define PARAMS(args) ()
43 # endif
44 #endif
45
46 #ifndef internal_function
47 # define internal_function
48 #endif
49
50 /* Tell the compiler when a conditional or integer expression is
51 almost always true or almost always false. */
52 #ifndef HAVE_BUILTIN_EXPECT
53 # define __builtin_expect(expr, val) (expr)
54 #endif
55
56 #ifndef W
57 # define W(flag, data) ((flag) ? SWAP (data) : (data))
58 #endif
59
60
61 #ifdef _LIBC
62 # include <byteswap.h>
63 # define SWAP(i) bswap_32 (i)
64 #else
65 static inline nls_uint32
66 SWAP (i)
67 nls_uint32 i;
68 {
69 return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
70 }
71 #endif
72
73
74 /* This is the representation of the expressions to determine the
75 plural form. */
76 struct expression
77 {
78 int nargs; /* Number of arguments. */
79 enum operator
80 {
81 /* Without arguments: */
82 var, /* The variable "n". */
83 num, /* Decimal number. */
84 /* Unary operators: */
85 lnot, /* Logical NOT. */
86 /* Binary operators: */
87 mult, /* Multiplication. */
88 divide, /* Division. */
89 module, /* Module operation. */
90 plus, /* Addition. */
91 minus, /* Subtraction. */
92 less_than, /* Comparison. */
93 greater_than, /* Comparison. */
94 less_or_equal, /* Comparison. */
95 greater_or_equal, /* Comparison. */
96 equal, /* Comparision for equality. */
97 not_equal, /* Comparision for inequality. */
98 land, /* Logical AND. */
99 lor, /* Logical OR. */
100 /* Ternary operators: */
101 qmop /* Question mark operator. */
102 } operation;
103 union
104 {
105 unsigned long int num; /* Number value for `num'. */
106 struct expression *args[3]; /* Up to three arguments. */
107 } val;
108 };
109
110 /* This is the data structure to pass information to the parser and get
111 the result in a thread-safe way. */
112 struct parse_args
113 {
114 const char *cp;
115 struct expression *res;
116 };
117
118
119 /* The representation of an opened message catalog. */
120 struct loaded_domain
121 {
122 const char *data;
123 int use_mmap;
124 size_t mmap_size;
125 int must_swap;
126 nls_uint32 nstrings;
127 struct string_desc *orig_tab;
128 struct string_desc *trans_tab;
129 nls_uint32 hash_size;
130 nls_uint32 *hash_tab;
131 int codeset_cntr;
132 #ifdef _LIBC
133 __gconv_t conv;
134 #else
135 # if HAVE_ICONV
136 iconv_t conv;
137 # endif
138 #endif
139 char **conv_tab;
140
141 struct expression *plural;
142 unsigned long int nplurals;
143 };
144
145 /* We want to allocate a string at the end of the struct. But ISO C
146 doesn't allow zero sized arrays. */
147 #ifdef __GNUC__
148 # define ZERO 0
149 #else
150 # define ZERO 1
151 #endif
152
153 /* A set of settings bound to a message domain. Used to store settings
154 from bindtextdomain() and bind_textdomain_codeset(). */
155 struct binding
156 {
157 struct binding *next;
158 char *dirname;
159 int codeset_cntr; /* Incremented each time codeset changes. */
160 char *codeset;
161 char domainname[ZERO];
162 };
163
164 /* A counter which is incremented each time some previous translations
165 become invalid.
166 This variable is part of the external ABI of the GNU libintl. */
167 extern int _nl_msg_cat_cntr;
168
169 struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname,
170 char *__locale,
171 const char *__domainname,
172 struct binding *__domainbinding))
173 internal_function;
174 void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain,
175 struct binding *__domainbinding))
176 internal_function;
177 void _nl_unload_domain PARAMS ((struct loaded_domain *__domain))
178 internal_function;
179 const char *_nl_init_domain_conv PARAMS ((struct loaded_l10nfile *__domain_file,
180 struct loaded_domain *__domain,
181 struct binding *__domainbinding))
182 internal_function;
183 void _nl_free_domain_conv PARAMS ((struct loaded_domain *__domain))
184 internal_function;
185
186 char *_nl_find_msg PARAMS ((struct loaded_l10nfile *domain_file,
187 struct binding *domainbinding,
188 const char *msgid, size_t *lengthp))
189 internal_function;
190
191 #ifdef _LIBC
192 extern char *__gettext PARAMS ((const char *__msgid));
193 extern char *__dgettext PARAMS ((const char *__domainname,
194 const char *__msgid));
195 extern char *__dcgettext PARAMS ((const char *__domainname,
196 const char *__msgid, int __category));
197 extern char *__ngettext PARAMS ((const char *__msgid1, const char *__msgid2,
198 unsigned long int __n));
199 extern char *__dngettext PARAMS ((const char *__domainname,
200 const char *__msgid1, const char *__msgid2,
201 unsigned long int n));
202 extern char *__dcngettext PARAMS ((const char *__domainname,
203 const char *__msgid1, const char *__msgid2,
204 unsigned long int __n, int __category));
205 extern char *__dcigettext PARAMS ((const char *__domainname,
206 const char *__msgid1, const char *__msgid2,
207 int __plural, unsigned long int __n,
208 int __category));
209 extern char *__textdomain PARAMS ((const char *__domainname));
210 extern char *__bindtextdomain PARAMS ((const char *__domainname,
211 const char *__dirname));
212 extern char *__bind_textdomain_codeset PARAMS ((const char *__domainname,
213 const char *__codeset));
214 #else
215 extern char *gettext__ PARAMS ((const char *__msgid));
216 extern char *dgettext__ PARAMS ((const char *__domainname,
217 const char *__msgid));
218 extern char *dcgettext__ PARAMS ((const char *__domainname,
219 const char *__msgid, int __category));
220 extern char *ngettext__ PARAMS ((const char *__msgid1, const char *__msgid2,
221 unsigned long int __n));
222 extern char *dngettext__ PARAMS ((const char *__domainname,
223 const char *__msgid1, const char *__msgid2,
224 unsigned long int __n));
225 extern char *dcngettext__ PARAMS ((const char *__domainname,
226 const char *__msgid1, const char *__msgid2,
227 unsigned long int __n, int __category));
228 extern char *dcigettext__ PARAMS ((const char *__domainname,
229 const char *__msgid1, const char *__msgid2,
230 int __plural, unsigned long int __n,
231 int __category));
232 extern char *textdomain__ PARAMS ((const char *__domainname));
233 extern char *bindtextdomain__ PARAMS ((const char *__domainname,
234 const char *__dirname));
235 extern char *bind_textdomain_codeset__ PARAMS ((const char *__domainname,
236 const char *__codeset));
237 #endif
238
239 #ifdef _LIBC
240 extern void __gettext_free_exp PARAMS ((struct expression *exp))
241 internal_function;
242 extern int __gettextparse PARAMS ((void *arg));
243 #else
244 extern void gettext_free_exp__ PARAMS ((struct expression *exp))
245 internal_function;
246 extern int gettextparse__ PARAMS ((void *arg));
247 #endif
248
249 /* @@ begin of epilog @@ */
250
251 #endif /* gettextP.h */
0 /* Description of GNU message catalog format: string hashing function.
1 Copyright (C) 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 /* @@ end of prolog @@ */
19
20 #ifndef PARAMS
21 # if __STDC__
22 # define PARAMS(Args) Args
23 # else
24 # define PARAMS(Args) ()
25 # endif
26 #endif
27
28 /* We assume to have `unsigned long int' value with at least 32 bits. */
29 #define HASHWORDBITS 32
30
31
32 /* Defines the so called `hashpjw' function by P.J. Weinberger
33 [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
34 1986, 1987 Bell Telephone Laboratories, Inc.] */
35 static unsigned long int hash_string PARAMS ((const char *__str_param));
36
37 static inline unsigned long int
38 hash_string (str_param)
39 const char *str_param;
40 {
41 unsigned long int hval, g;
42 const char *str = str_param;
43
44 /* Compute the hash value for the given string. */
45 hval = 0;
46 while (*str != '\0')
47 {
48 hval <<= 4;
49 hval += (unsigned long int) *str++;
50 g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
51 if (g != 0)
52 {
53 hval ^= g >> (HASHWORDBITS - 8);
54 hval ^= g;
55 }
56 }
57 return hval;
58 }
0 /* intl-compat.c - Stub functions to call gettext functions from GNU gettext
1 Library.
2 Copyright (C) 1995, 2000, 2001 Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published
6 by the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public
15 License along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 USA. */
18
19 #ifdef HAVE_CONFIG_H
20 # include <config.h>
21 #endif
22
23 #include "libgnuintl.h"
24 #include "gettextP.h"
25
26 /* @@ end of prolog @@ */
27
28 /* This file redirects the gettext functions (without prefix or suffix) to
29 those defined in the included GNU gettext library (with "__" suffix).
30 It is compiled into libintl when the included GNU gettext library is
31 configured --with-included-gettext.
32
33 This redirection works also in the case that the system C library or
34 the system libintl library contain gettext/textdomain/... functions.
35 If it didn't, we would need to add preprocessor level redirections to
36 libgnuintl.h of the following form:
37
38 # define gettext gettext__
39 # define dgettext dgettext__
40 # define dcgettext dcgettext__
41 # define ngettext ngettext__
42 # define dngettext dngettext__
43 # define dcngettext dcngettext__
44 # define textdomain textdomain__
45 # define bindtextdomain bindtextdomain__
46 # define bind_textdomain_codeset bind_textdomain_codeset__
47
48 How does this redirection work? There are two cases.
49 A. When libintl.a is linked into an executable, it works because
50 functions defined in the executable always override functions in
51 the shared libraries.
52 B. When libintl.so is used, it works because
53 1. those systems defining gettext/textdomain/... in the C library
54 (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer) are
55 ELF systems and define these symbols as weak, thus explicitly
56 letting other shared libraries override it.
57 2. those systems defining gettext/textdomain/... in a standalone
58 libintl.so library (namely, Solaris 2.3 and newer) have this
59 shared library in /usr/lib, and the linker will search /usr/lib
60 *after* the directory where the GNU gettext library is installed.
61
62 A third case, namely when libintl.a is linked into a shared library
63 whose name is not libintl.so, is not supported. In this case, on
64 Solaris, when -lintl precedes the linker option for the shared library
65 containing GNU gettext, the system's gettext would indeed override
66 the GNU gettext. Anyone doing this kind of stuff must be clever enough
67 to 1. compile libintl.a with -fPIC, 2. remove -lintl from his linker
68 command line. */
69
70
71 #undef gettext
72 #undef dgettext
73 #undef dcgettext
74 #undef ngettext
75 #undef dngettext
76 #undef dcngettext
77 #undef textdomain
78 #undef bindtextdomain
79 #undef bind_textdomain_codeset
80
81
82 char *
83 gettext (msgid)
84 const char *msgid;
85 {
86 return gettext__ (msgid);
87 }
88
89
90 char *
91 dgettext (domainname, msgid)
92 const char *domainname;
93 const char *msgid;
94 {
95 return dgettext__ (domainname, msgid);
96 }
97
98
99 char *
100 dcgettext (domainname, msgid, category)
101 const char *domainname;
102 const char *msgid;
103 int category;
104 {
105 return dcgettext__ (domainname, msgid, category);
106 }
107
108
109 char *
110 ngettext (msgid1, msgid2, n)
111 const char *msgid1;
112 const char *msgid2;
113 unsigned long int n;
114 {
115 return ngettext__ (msgid1, msgid2, n);
116 }
117
118
119 char *
120 dngettext (domainname, msgid1, msgid2, n)
121 const char *domainname;
122 const char *msgid1;
123 const char *msgid2;
124 unsigned long int n;
125 {
126 return dngettext__ (domainname, msgid1, msgid2, n);
127 }
128
129
130 char *
131 dcngettext (domainname, msgid1, msgid2, n, category)
132 const char *domainname;
133 const char *msgid1;
134 const char *msgid2;
135 unsigned long int n;
136 int category;
137 {
138 return dcngettext__ (domainname, msgid1, msgid2, n, category);
139 }
140
141
142 char *
143 textdomain (domainname)
144 const char *domainname;
145 {
146 return textdomain__ (domainname);
147 }
148
149
150 char *
151 bindtextdomain (domainname, dirname)
152 const char *domainname;
153 const char *dirname;
154 {
155 return bindtextdomain__ (domainname, dirname);
156 }
157
158
159 char *
160 bind_textdomain_codeset (domainname, codeset)
161 const char *domainname;
162 const char *codeset;
163 {
164 return bind_textdomain_codeset__ (domainname, codeset);
165 }
0 /* Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
1 Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 /* Tell glibc's <string.h> to provide a prototype for stpcpy().
19 This must come before <config.h> because <config.h> may include
20 <features.h>, and once <features.h> has been included, it's too late. */
21 #ifndef _GNU_SOURCE
22 # define _GNU_SOURCE 1
23 #endif
24
25 #ifdef HAVE_CONFIG_H
26 # include <config.h>
27 #endif
28
29 #include <string.h>
30 #if !HAVE_STRCHR && !defined _LIBC
31 # ifndef strchr
32 # define strchr index
33 # endif
34 #endif
35
36 #if defined _LIBC || defined HAVE_ARGZ_H
37 # include <argz.h>
38 #endif
39 #include <ctype.h>
40 #include <sys/types.h>
41 #include <stdlib.h>
42
43 #include "loadinfo.h"
44
45 /* On some strange systems still no definition of NULL is found. Sigh! */
46 #ifndef NULL
47 # if defined __STDC__ && __STDC__
48 # define NULL ((void *) 0)
49 # else
50 # define NULL 0
51 # endif
52 #endif
53
54 /* @@ end of prolog @@ */
55
56 #ifdef _LIBC
57 /* Rename the non ANSI C functions. This is required by the standard
58 because some ANSI C functions will require linking with this object
59 file and the name space must not be polluted. */
60 # ifndef stpcpy
61 # define stpcpy(dest, src) __stpcpy(dest, src)
62 # endif
63 #else
64 # ifndef HAVE_STPCPY
65 static char *stpcpy PARAMS ((char *dest, const char *src));
66 # endif
67 #endif
68
69 /* Define function which are usually not available. */
70
71 #if !defined _LIBC && !defined HAVE___ARGZ_COUNT
72 /* Returns the number of strings in ARGZ. */
73 static size_t argz_count__ PARAMS ((const char *argz, size_t len));
74
75 static size_t
76 argz_count__ (argz, len)
77 const char *argz;
78 size_t len;
79 {
80 size_t count = 0;
81 while (len > 0)
82 {
83 size_t part_len = strlen (argz);
84 argz += part_len + 1;
85 len -= part_len + 1;
86 count++;
87 }
88 return count;
89 }
90 # undef __argz_count
91 # define __argz_count(argz, len) argz_count__ (argz, len)
92 #endif /* !_LIBC && !HAVE___ARGZ_COUNT */
93
94 #if !defined _LIBC && !defined HAVE___ARGZ_STRINGIFY
95 /* Make '\0' separated arg vector ARGZ printable by converting all the '\0's
96 except the last into the character SEP. */
97 static void argz_stringify__ PARAMS ((char *argz, size_t len, int sep));
98
99 static void
100 argz_stringify__ (argz, len, sep)
101 char *argz;
102 size_t len;
103 int sep;
104 {
105 while (len > 0)
106 {
107 size_t part_len = strlen (argz);
108 argz += part_len;
109 len -= part_len + 1;
110 if (len > 0)
111 *argz++ = sep;
112 }
113 }
114 # undef __argz_stringify
115 # define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep)
116 #endif /* !_LIBC && !HAVE___ARGZ_STRINGIFY */
117
118 #if !defined _LIBC && !defined HAVE___ARGZ_NEXT
119 static char *argz_next__ PARAMS ((char *argz, size_t argz_len,
120 const char *entry));
121
122 static char *
123 argz_next__ (argz, argz_len, entry)
124 char *argz;
125 size_t argz_len;
126 const char *entry;
127 {
128 if (entry)
129 {
130 if (entry < argz + argz_len)
131 entry = strchr (entry, '\0') + 1;
132
133 return entry >= argz + argz_len ? NULL : (char *) entry;
134 }
135 else
136 if (argz_len > 0)
137 return argz;
138 else
139 return 0;
140 }
141 # undef __argz_next
142 # define __argz_next(argz, len, entry) argz_next__ (argz, len, entry)
143 #endif /* !_LIBC && !HAVE___ARGZ_NEXT */
144
145
146 /* Return number of bits set in X. */
147 static int pop PARAMS ((int x));
148
149 static inline int
150 pop (x)
151 int x;
152 {
153 /* We assume that no more than 16 bits are used. */
154 x = ((x & ~0x5555) >> 1) + (x & 0x5555);
155 x = ((x & ~0x3333) >> 2) + (x & 0x3333);
156 x = ((x >> 4) + x) & 0x0f0f;
157 x = ((x >> 8) + x) & 0xff;
158
159 return x;
160 }
161
162
163 struct loaded_l10nfile *
164 _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language,
165 territory, codeset, normalized_codeset, modifier, special,
166 sponsor, revision, filename, do_allocate)
167 struct loaded_l10nfile **l10nfile_list;
168 const char *dirlist;
169 size_t dirlist_len;
170 int mask;
171 const char *language;
172 const char *territory;
173 const char *codeset;
174 const char *normalized_codeset;
175 const char *modifier;
176 const char *special;
177 const char *sponsor;
178 const char *revision;
179 const char *filename;
180 int do_allocate;
181 {
182 char *abs_filename;
183 struct loaded_l10nfile *last = NULL;
184 struct loaded_l10nfile *retval;
185 char *cp;
186 size_t entries;
187 int cnt;
188
189 /* Allocate room for the full file name. */
190 abs_filename = (char *) malloc (dirlist_len
191 + strlen (language)
192 + ((mask & TERRITORY) != 0
193 ? strlen (territory) + 1 : 0)
194 + ((mask & XPG_CODESET) != 0
195 ? strlen (codeset) + 1 : 0)
196 + ((mask & XPG_NORM_CODESET) != 0
197 ? strlen (normalized_codeset) + 1 : 0)
198 + (((mask & XPG_MODIFIER) != 0
199 || (mask & CEN_AUDIENCE) != 0)
200 ? strlen (modifier) + 1 : 0)
201 + ((mask & CEN_SPECIAL) != 0
202 ? strlen (special) + 1 : 0)
203 + (((mask & CEN_SPONSOR) != 0
204 || (mask & CEN_REVISION) != 0)
205 ? (1 + ((mask & CEN_SPONSOR) != 0
206 ? strlen (sponsor) + 1 : 0)
207 + ((mask & CEN_REVISION) != 0
208 ? strlen (revision) + 1 : 0)) : 0)
209 + 1 + strlen (filename) + 1);
210
211 if (abs_filename == NULL)
212 return NULL;
213
214 retval = NULL;
215 last = NULL;
216
217 /* Construct file name. */
218 memcpy (abs_filename, dirlist, dirlist_len);
219 __argz_stringify (abs_filename, dirlist_len, PATH_SEPARATOR);
220 cp = abs_filename + (dirlist_len - 1);
221 *cp++ = '/';
222 cp = stpcpy (cp, language);
223
224 if ((mask & TERRITORY) != 0)
225 {
226 *cp++ = '_';
227 cp = stpcpy (cp, territory);
228 }
229 if ((mask & XPG_CODESET) != 0)
230 {
231 *cp++ = '.';
232 cp = stpcpy (cp, codeset);
233 }
234 if ((mask & XPG_NORM_CODESET) != 0)
235 {
236 *cp++ = '.';
237 cp = stpcpy (cp, normalized_codeset);
238 }
239 if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0)
240 {
241 /* This component can be part of both syntaces but has different
242 leading characters. For CEN we use `+', else `@'. */
243 *cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@';
244 cp = stpcpy (cp, modifier);
245 }
246 if ((mask & CEN_SPECIAL) != 0)
247 {
248 *cp++ = '+';
249 cp = stpcpy (cp, special);
250 }
251 if ((mask & (CEN_SPONSOR | CEN_REVISION)) != 0)
252 {
253 *cp++ = ',';
254 if ((mask & CEN_SPONSOR) != 0)
255 cp = stpcpy (cp, sponsor);
256 if ((mask & CEN_REVISION) != 0)
257 {
258 *cp++ = '_';
259 cp = stpcpy (cp, revision);
260 }
261 }
262
263 *cp++ = '/';
264 stpcpy (cp, filename);
265
266 /* Look in list of already loaded domains whether it is already
267 available. */
268 last = NULL;
269 for (retval = *l10nfile_list; retval != NULL; retval = retval->next)
270 if (retval->filename != NULL)
271 {
272 int compare = strcmp (retval->filename, abs_filename);
273 if (compare == 0)
274 /* We found it! */
275 break;
276 if (compare < 0)
277 {
278 /* It's not in the list. */
279 retval = NULL;
280 break;
281 }
282
283 last = retval;
284 }
285
286 if (retval != NULL || do_allocate == 0)
287 {
288 free (abs_filename);
289 return retval;
290 }
291
292 retval = (struct loaded_l10nfile *)
293 malloc (sizeof (*retval) + (__argz_count (dirlist, dirlist_len)
294 * (1 << pop (mask))
295 * sizeof (struct loaded_l10nfile *)));
296 if (retval == NULL)
297 return NULL;
298
299 retval->filename = abs_filename;
300 retval->decided = (__argz_count (dirlist, dirlist_len) != 1
301 || ((mask & XPG_CODESET) != 0
302 && (mask & XPG_NORM_CODESET) != 0));
303 retval->data = NULL;
304
305 if (last == NULL)
306 {
307 retval->next = *l10nfile_list;
308 *l10nfile_list = retval;
309 }
310 else
311 {
312 retval->next = last->next;
313 last->next = retval;
314 }
315
316 entries = 0;
317 /* If the DIRLIST is a real list the RETVAL entry corresponds not to
318 a real file. So we have to use the DIRLIST separation mechanism
319 of the inner loop. */
320 cnt = __argz_count (dirlist, dirlist_len) == 1 ? mask - 1 : mask;
321 for (; cnt >= 0; --cnt)
322 if ((cnt & ~mask) == 0
323 && ((cnt & CEN_SPECIFIC) == 0 || (cnt & XPG_SPECIFIC) == 0)
324 && ((cnt & XPG_CODESET) == 0 || (cnt & XPG_NORM_CODESET) == 0))
325 {
326 /* Iterate over all elements of the DIRLIST. */
327 char *dir = NULL;
328
329 while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir))
330 != NULL)
331 retval->successor[entries++]
332 = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt,
333 language, territory, codeset,
334 normalized_codeset, modifier, special,
335 sponsor, revision, filename, 1);
336 }
337 retval->successor[entries] = NULL;
338
339 return retval;
340 }
341
342 /* Normalize codeset name. There is no standard for the codeset
343 names. Normalization allows the user to use any of the common
344 names. The return value is dynamically allocated and has to be
345 freed by the caller. */
346 const char *
347 _nl_normalize_codeset (codeset, name_len)
348 const char *codeset;
349 size_t name_len;
350 {
351 int len = 0;
352 int only_digit = 1;
353 char *retval;
354 char *wp;
355 size_t cnt;
356
357 for (cnt = 0; cnt < name_len; ++cnt)
358 if (isalnum (codeset[cnt]))
359 {
360 ++len;
361
362 if (isalpha (codeset[cnt]))
363 only_digit = 0;
364 }
365
366 retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1);
367
368 if (retval != NULL)
369 {
370 if (only_digit)
371 wp = stpcpy (retval, "iso");
372 else
373 wp = retval;
374
375 for (cnt = 0; cnt < name_len; ++cnt)
376 if (isalpha (codeset[cnt]))
377 *wp++ = tolower (codeset[cnt]);
378 else if (isdigit (codeset[cnt]))
379 *wp++ = codeset[cnt];
380
381 *wp = '\0';
382 }
383
384 return (const char *) retval;
385 }
386
387
388 /* @@ begin of epilog @@ */
389
390 /* We don't want libintl.a to depend on any other library. So we
391 avoid the non-standard function stpcpy. In GNU C Library this
392 function is available, though. Also allow the symbol HAVE_STPCPY
393 to be defined. */
394 #if !_LIBC && !HAVE_STPCPY
395 static char *
396 stpcpy (dest, src)
397 char *dest;
398 const char *src;
399 {
400 while ((*dest++ = *src++) != '\0')
401 /* Do nothing. */ ;
402 return dest - 1;
403 }
404 #endif
0 /* Convenience header for conditional use of GNU <libintl.h>.
1 Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifndef _LIBGETTEXT_H
19 #define _LIBGETTEXT_H 1
20
21 /* NLS can be disabled through the configure --disable-nls option. */
22 #if ENABLE_NLS
23
24 /* Get declarations of GNU message catalog functions. */
25 # include <libintl.h>
26
27 #else
28
29 # define gettext(Msgid) (Msgid)
30 # define dgettext(Domainname, Msgid) (Msgid)
31 # define dcgettext(Domainname, Msgid, Category) (Msgid)
32 # define ngettext(Msgid1, Msgid2, N) \
33 ((N) == 1 ? (char *) (Msgid1) : (char *) (Msgid2))
34 # define dngettext(Domainname, Msgid1, Msgid2, N) \
35 ((N) == 1 ? (char *) (Msgid1) : (char *) (Msgid2))
36 # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
37 ((N) == 1 ? (char *) (Msgid1) : (char *) (Msgid2))
38 # define textdomain(Domainname) ((char *) (Domainname))
39 # define bindtextdomain(Domainname, Dirname) ((char *) (Dirname))
40 # define bind_textdomain_codeset(Domainname, Codeset) ((char *) (Codeset))
41
42 #endif
43
44 /* For automatical extraction of messages sometimes no real
45 translation is needed. Instead the string itself is the result. */
46 #define gettext_noop(Str) (Str)
47
48 #endif /* _LIBGETTEXT_H */
0 /* Message catalogs for internationalization.
1 Copyright (C) 1995-1997, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifndef _LIBINTL_H
19 #define _LIBINTL_H 1
20
21 #include <locale.h>
22
23 /* The LC_MESSAGES locale category is the category used by the functions
24 gettext() and dgettext(). It is specified in POSIX, but not in ANSI C.
25 On systems that don't define it, use an arbitrary value instead.
26 On Solaris, <locale.h> defines __LOCALE_H then includes <libintl.h> (i.e.
27 this file!) and then only defines LC_MESSAGES. To avoid a redefinition
28 warning, don't define LC_MESSAGES in this case. */
29 #if !defined LC_MESSAGES && !defined __LOCALE_H
30 # define LC_MESSAGES 1729
31 #endif
32
33 /* We define an additional symbol to signal that we use the GNU
34 implementation of gettext. */
35 #define __USE_GNU_GETTEXT 1
36
37 /* Resolve a platform specific conflict on DJGPP. GNU gettext takes
38 precedence over _conio_gettext. */
39 #ifdef __DJGPP__
40 # undef gettext
41 # define gettext gettext
42 #endif
43
44 #ifndef PARAMS
45 # if __STDC__ || defined __cplusplus
46 # define PARAMS(args) args
47 # else
48 # define PARAMS(args) ()
49 # endif
50 #endif
51
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55
56 /* Look up MSGID in the current default message catalog for the current
57 LC_MESSAGES locale. If not found, returns MSGID itself (the default
58 text). */
59 extern char *gettext PARAMS ((const char *__msgid));
60
61 /* Look up MSGID in the DOMAINNAME message catalog for the current
62 LC_MESSAGES locale. */
63 extern char *dgettext PARAMS ((const char *__domainname, const char *__msgid));
64
65 /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
66 locale. */
67 extern char *dcgettext PARAMS ((const char *__domainname, const char *__msgid,
68 int __category));
69
70
71 /* Similar to `gettext' but select the plural form corresponding to the
72 number N. */
73 extern char *ngettext PARAMS ((const char *__msgid1, const char *__msgid2,
74 unsigned long int __n));
75
76 /* Similar to `dgettext' but select the plural form corresponding to the
77 number N. */
78 extern char *dngettext PARAMS ((const char *__domainname, const char *__msgid1,
79 const char *__msgid2, unsigned long int __n));
80
81 /* Similar to `dcgettext' but select the plural form corresponding to the
82 number N. */
83 extern char *dcngettext PARAMS ((const char *__domainname, const char *__msgid1,
84 const char *__msgid2, unsigned long int __n,
85 int __category));
86
87
88 /* Set the current default message catalog to DOMAINNAME.
89 If DOMAINNAME is null, return the current default.
90 If DOMAINNAME is "", reset to the default of "messages". */
91 extern char *textdomain PARAMS ((const char *__domainname));
92
93 /* Specify that the DOMAINNAME message catalog will be found
94 in DIRNAME rather than in the system locale data base. */
95 extern char *bindtextdomain PARAMS ((const char *__domainname,
96 const char *__dirname));
97
98 /* Specify the character encoding in which the messages from the
99 DOMAINNAME message catalog will be returned. */
100 extern char *bind_textdomain_codeset PARAMS ((const char *__domainname,
101 const char *__codeset));
102
103
104 /* Optimized version of the functions above. */
105 #if defined __OPTIMIZED
106 /* These are macros, but could also be inline functions. */
107
108 # define gettext(msgid) \
109 dgettext (NULL, msgid)
110
111 # define dgettext(domainname, msgid) \
112 dcgettext (domainname, msgid, LC_MESSAGES)
113
114 # define ngettext(msgid1, msgid2, n) \
115 dngettext (NULL, msgid1, msgid2, n)
116
117 # define dngettext(domainname, msgid1, msgid2, n) \
118 dcngettext (domainname, msgid1, msgid2, n, LC_MESSAGES)
119
120 #endif /* Optimizing. */
121
122
123 #ifdef __cplusplus
124 }
125 #endif
126
127 #endif /* libintl.h */
0 /* Copyright (C) 1996-1999, 2000, 2001 Free Software Foundation, Inc.
1 This file is part of the GNU C Library.
2 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published
6 by the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public
15 License along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 USA. */
18
19 #ifndef _LOADINFO_H
20 #define _LOADINFO_H 1
21
22 #ifndef PARAMS
23 # if __STDC__
24 # define PARAMS(args) args
25 # else
26 # define PARAMS(args) ()
27 # endif
28 #endif
29
30 #ifndef internal_function
31 # define internal_function
32 #endif
33
34 /* Tell the compiler when a conditional or integer expression is
35 almost always true or almost always false. */
36 #ifndef HAVE_BUILTIN_EXPECT
37 # define __builtin_expect(expr, val) (expr)
38 #endif
39
40 /* Separator in PATH like lists of pathnames. */
41 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
42 /* Win32, OS/2, DOS */
43 # define PATH_SEPARATOR ';'
44 #else
45 /* Unix */
46 # define PATH_SEPARATOR ':'
47 #endif
48
49 /* Encoding of locale name parts. */
50 #define CEN_REVISION 1
51 #define CEN_SPONSOR 2
52 #define CEN_SPECIAL 4
53 #define XPG_NORM_CODESET 8
54 #define XPG_CODESET 16
55 #define TERRITORY 32
56 #define CEN_AUDIENCE 64
57 #define XPG_MODIFIER 128
58
59 #define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
60 #define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
61
62
63 struct loaded_l10nfile
64 {
65 const char *filename;
66 int decided;
67
68 const void *data;
69
70 struct loaded_l10nfile *next;
71 struct loaded_l10nfile *successor[1];
72 };
73
74
75 /* Normalize codeset name. There is no standard for the codeset
76 names. Normalization allows the user to use any of the common
77 names. The return value is dynamically allocated and has to be
78 freed by the caller. */
79 extern const char *_nl_normalize_codeset PARAMS ((const char *codeset,
80 size_t name_len));
81
82 extern struct loaded_l10nfile *
83 _nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list,
84 const char *dirlist, size_t dirlist_len, int mask,
85 const char *language, const char *territory,
86 const char *codeset,
87 const char *normalized_codeset,
88 const char *modifier, const char *special,
89 const char *sponsor, const char *revision,
90 const char *filename, int do_allocate));
91
92
93 extern const char *_nl_expand_alias PARAMS ((const char *name));
94
95 /* normalized_codeset is dynamically allocated and has to be freed by
96 the caller. */
97 extern int _nl_explode_name PARAMS ((char *name, const char **language,
98 const char **modifier,
99 const char **territory,
100 const char **codeset,
101 const char **normalized_codeset,
102 const char **special,
103 const char **sponsor,
104 const char **revision));
105
106 extern char *_nl_find_language PARAMS ((const char *name));
107
108 #endif /* loadinfo.h */
0 /* Load needed message catalogs.
1 Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 /* Tell glibc's <string.h> to provide a prototype for mempcpy().
19 This must come before <config.h> because <config.h> may include
20 <features.h>, and once <features.h> has been included, it's too late. */
21 #ifndef _GNU_SOURCE
22 # define _GNU_SOURCE 1
23 #endif
24
25 #ifdef HAVE_CONFIG_H
26 # include <config.h>
27 #endif
28
29 #include <ctype.h>
30 #include <errno.h>
31 #include <fcntl.h>
32 #include <sys/types.h>
33 #include <sys/stat.h>
34
35 #ifdef __GNUC__
36 # define alloca __builtin_alloca
37 # define HAVE_ALLOCA 1
38 #else
39 # if defined HAVE_ALLOCA_H || defined _LIBC
40 # include <alloca.h>
41 # else
42 # ifdef _AIX
43 #pragma alloca
44 # else
45 # ifndef alloca
46 char *alloca ();
47 # endif
48 # endif
49 # endif
50 #endif
51
52 #include <stdlib.h>
53 #include <string.h>
54
55 #if defined HAVE_UNISTD_H || defined _LIBC
56 # include <unistd.h>
57 #endif
58
59 #ifdef _LIBC
60 # include <langinfo.h>
61 # include <locale.h>
62 #endif
63
64 #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \
65 || (defined _LIBC && defined _POSIX_MAPPED_FILES)
66 # include <sys/mman.h>
67 # undef HAVE_MMAP
68 # define HAVE_MMAP 1
69 #else
70 # undef HAVE_MMAP
71 #endif
72
73 #include "gettext.h"
74 #include "gettextP.h"
75
76 #ifdef _LIBC
77 # include "../locale/localeinfo.h"
78 #endif
79
80 /* @@ end of prolog @@ */
81
82 #ifdef _LIBC
83 /* Rename the non ISO C functions. This is required by the standard
84 because some ISO C functions will require linking with this object
85 file and the name space must not be polluted. */
86 # define open __open
87 # define close __close
88 # define read __read
89 # define mmap __mmap
90 # define munmap __munmap
91 #endif
92
93 /* Names for the libintl functions are a problem. They must not clash
94 with existing names and they should follow ANSI C. But this source
95 code is also used in GNU C Library where the names have a __
96 prefix. So we have to make a difference here. */
97 #ifdef _LIBC
98 # define PLURAL_PARSE __gettextparse
99 #else
100 # define PLURAL_PARSE gettextparse__
101 #endif
102
103 /* For those losing systems which don't have `alloca' we have to add
104 some additional code emulating it. */
105 #ifdef HAVE_ALLOCA
106 # define freea(p) /* nothing */
107 #else
108 # define alloca(n) malloc (n)
109 # define freea(p) free (p)
110 #endif
111
112 /* For systems that distinguish between text and binary I/O.
113 O_BINARY is usually declared in <fcntl.h>. */
114 #if !defined O_BINARY && defined _O_BINARY
115 /* For MSC-compatible compilers. */
116 # define O_BINARY _O_BINARY
117 # define O_TEXT _O_TEXT
118 #endif
119 #ifdef __BEOS__
120 /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
121 # undef O_BINARY
122 # undef O_TEXT
123 #endif
124 /* On reasonable systems, binary I/O is the default. */
125 #ifndef O_BINARY
126 # define O_BINARY 0
127 #endif
128
129 /* We need a sign, whether a new catalog was loaded, which can be associated
130 with all translations. This is important if the translations are
131 cached by one of GCC's features. */
132 int _nl_msg_cat_cntr;
133
134 #if (defined __GNUC__ && !defined __APPLE_CC__) \
135 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
136
137 /* These structs are the constant expression for the germanic plural
138 form determination. It represents the expression "n != 1". */
139 static const struct expression plvar =
140 {
141 .nargs = 0,
142 .operation = var,
143 };
144 static const struct expression plone =
145 {
146 .nargs = 0,
147 .operation = num,
148 .val =
149 {
150 .num = 1
151 }
152 };
153 static struct expression germanic_plural =
154 {
155 .nargs = 2,
156 .operation = not_equal,
157 .val =
158 {
159 .args =
160 {
161 [0] = (struct expression *) &plvar,
162 [1] = (struct expression *) &plone
163 }
164 }
165 };
166
167 # define INIT_GERMANIC_PLURAL()
168
169 #else
170
171 /* For compilers without support for ISO C 99 struct/union initializers:
172 Initialization at run-time. */
173
174 static struct expression plvar;
175 static struct expression plone;
176 static struct expression germanic_plural;
177
178 static void
179 init_germanic_plural ()
180 {
181 if (plone.val.num == 0)
182 {
183 plvar.nargs = 0;
184 plvar.operation = var;
185
186 plone.nargs = 0;
187 plone.operation = num;
188 plone.val.num = 1;
189
190 germanic_plural.nargs = 2;
191 germanic_plural.operation = not_equal;
192 germanic_plural.val.args[0] = &plvar;
193 germanic_plural.val.args[1] = &plone;
194 }
195 }
196
197 # define INIT_GERMANIC_PLURAL() init_germanic_plural ()
198
199 #endif
200
201
202 /* Initialize the codeset dependent parts of an opened message catalog.
203 Return the header entry. */
204 const char *
205 internal_function
206 _nl_init_domain_conv (domain_file, domain, domainbinding)
207 struct loaded_l10nfile *domain_file;
208 struct loaded_domain *domain;
209 struct binding *domainbinding;
210 {
211 /* Find out about the character set the file is encoded with.
212 This can be found (in textual form) in the entry "". If this
213 entry does not exist or if this does not contain the `charset='
214 information, we will assume the charset matches the one the
215 current locale and we don't have to perform any conversion. */
216 char *nullentry;
217 size_t nullentrylen;
218
219 /* Preinitialize fields, to avoid recursion during _nl_find_msg. */
220 domain->codeset_cntr =
221 (domainbinding != NULL ? domainbinding->codeset_cntr : 0);
222 #ifdef _LIBC
223 domain->conv = (__gconv_t) -1;
224 #else
225 # if HAVE_ICONV
226 domain->conv = (iconv_t) -1;
227 # endif
228 #endif
229 domain->conv_tab = NULL;
230
231 /* Get the header entry. */
232 nullentry = _nl_find_msg (domain_file, domainbinding, "", &nullentrylen);
233
234 if (nullentry != NULL)
235 {
236 #if defined _LIBC || HAVE_ICONV
237 const char *charsetstr;
238
239 charsetstr = strstr (nullentry, "charset=");
240 if (charsetstr != NULL)
241 {
242 size_t len;
243 char *charset;
244 const char *outcharset;
245
246 charsetstr += strlen ("charset=");
247 len = strcspn (charsetstr, " \t\n");
248
249 charset = (char *) alloca (len + 1);
250 # if defined _LIBC || HAVE_MEMPCPY
251 *((char *) mempcpy (charset, charsetstr, len)) = '\0';
252 # else
253 memcpy (charset, charsetstr, len);
254 charset[len] = '\0';
255 # endif
256
257 /* The output charset should normally be determined by the
258 locale. But sometimes the locale is not used or not correctly
259 set up, so we provide a possibility for the user to override
260 this. Moreover, the value specified through
261 bind_textdomain_codeset overrides both. */
262 if (domainbinding != NULL && domainbinding->codeset != NULL)
263 outcharset = domainbinding->codeset;
264 else
265 {
266 outcharset = getenv ("OUTPUT_CHARSET");
267 if (outcharset == NULL || outcharset[0] == '\0')
268 {
269 # ifdef _LIBC
270 outcharset = (*_nl_current[LC_CTYPE])->values[_NL_ITEM_INDEX (CODESET)].string;
271 # else
272 # if HAVE_ICONV
273 extern const char *locale_charset (void);
274 outcharset = locale_charset ();
275 # endif
276 # endif
277 }
278 }
279
280 # ifdef _LIBC
281 /* We always want to use transliteration. */
282 outcharset = norm_add_slashes (outcharset, "TRANSLIT");
283 charset = norm_add_slashes (charset, NULL);
284 if (__gconv_open (outcharset, charset, &domain->conv,
285 GCONV_AVOID_NOCONV)
286 != __GCONV_OK)
287 domain->conv = (__gconv_t) -1;
288 # else
289 # if HAVE_ICONV
290 /* When using GNU libiconv, we want to use transliteration. */
291 # if _LIBICONV_VERSION >= 0x0105
292 len = strlen (outcharset);
293 {
294 char *tmp = (char *) alloca (len + 10 + 1);
295 memcpy (tmp, outcharset, len);
296 memcpy (tmp + len, "//TRANSLIT", 10 + 1);
297 outcharset = tmp;
298 }
299 # endif
300 domain->conv = iconv_open (outcharset, charset);
301 # if _LIBICONV_VERSION >= 0x0105
302 freea (outcharset);
303 # endif
304 # endif
305 # endif
306
307 freea (charset);
308 }
309 #endif /* _LIBC || HAVE_ICONV */
310 }
311
312 return nullentry;
313 }
314
315 /* Frees the codeset dependent parts of an opened message catalog. */
316 void
317 internal_function
318 _nl_free_domain_conv (domain)
319 struct loaded_domain *domain;
320 {
321 if (domain->conv_tab != NULL && domain->conv_tab != (char **) -1)
322 free (domain->conv_tab);
323
324 #ifdef _LIBC
325 if (domain->conv != (__gconv_t) -1)
326 __gconv_close (domain->conv);
327 #else
328 # if HAVE_ICONV
329 if (domain->conv != (iconv_t) -1)
330 iconv_close (domain->conv);
331 # endif
332 #endif
333 }
334
335 /* Load the message catalogs specified by FILENAME. If it is no valid
336 message catalog do nothing. */
337 void
338 internal_function
339 _nl_load_domain (domain_file, domainbinding)
340 struct loaded_l10nfile *domain_file;
341 struct binding *domainbinding;
342 {
343 int fd;
344 size_t size;
345 #ifdef _LIBC
346 struct stat64 st;
347 #else
348 struct stat st;
349 #endif
350 struct mo_file_header *data = (struct mo_file_header *) -1;
351 int use_mmap = 0;
352 struct loaded_domain *domain;
353 const char *nullentry;
354
355 domain_file->decided = 1;
356 domain_file->data = NULL;
357
358 /* Note that it would be useless to store domainbinding in domain_file
359 because domainbinding might be == NULL now but != NULL later (after
360 a call to bind_textdomain_codeset). */
361
362 /* If the record does not represent a valid locale the FILENAME
363 might be NULL. This can happen when according to the given
364 specification the locale file name is different for XPG and CEN
365 syntax. */
366 if (domain_file->filename == NULL)
367 return;
368
369 /* Try to open the addressed file. */
370 fd = open (domain_file->filename, O_RDONLY | O_BINARY);
371 if (fd == -1)
372 return;
373
374 /* We must know about the size of the file. */
375 if (
376 #ifdef _LIBC
377 __builtin_expect (fstat64 (fd, &st) != 0, 0)
378 #else
379 __builtin_expect (fstat (fd, &st) != 0, 0)
380 #endif
381 || __builtin_expect ((size = (size_t) st.st_size) != st.st_size, 0)
382 || __builtin_expect (size < sizeof (struct mo_file_header), 0))
383 {
384 /* Something went wrong. */
385 close (fd);
386 return;
387 }
388
389 #ifdef HAVE_MMAP
390 /* Now we are ready to load the file. If mmap() is available we try
391 this first. If not available or it failed we try to load it. */
392 data = (struct mo_file_header *) mmap (NULL, size, PROT_READ,
393 MAP_PRIVATE, fd, 0);
394
395 if (__builtin_expect (data != (struct mo_file_header *) -1, 1))
396 {
397 /* mmap() call was successful. */
398 close (fd);
399 use_mmap = 1;
400 }
401 #endif
402
403 /* If the data is not yet available (i.e. mmap'ed) we try to load
404 it manually. */
405 if (data == (struct mo_file_header *) -1)
406 {
407 size_t to_read;
408 char *read_ptr;
409
410 data = (struct mo_file_header *) malloc (size);
411 if (data == NULL)
412 return;
413
414 to_read = size;
415 read_ptr = (char *) data;
416 do
417 {
418 long int nb = (long int) read (fd, read_ptr, to_read);
419 if (nb <= 0)
420 {
421 #ifdef EINTR
422 if (nb == -1 && errno == EINTR)
423 continue;
424 #endif
425 close (fd);
426 return;
427 }
428 read_ptr += nb;
429 to_read -= nb;
430 }
431 while (to_read > 0);
432
433 close (fd);
434 }
435
436 /* Using the magic number we can test whether it really is a message
437 catalog file. */
438 if (__builtin_expect (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED,
439 0))
440 {
441 /* The magic number is wrong: not a message catalog file. */
442 #ifdef HAVE_MMAP
443 if (use_mmap)
444 munmap ((caddr_t) data, size);
445 else
446 #endif
447 free (data);
448 return;
449 }
450
451 domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain));
452 if (domain == NULL)
453 return;
454 domain_file->data = domain;
455
456 domain->data = (char *) data;
457 domain->use_mmap = use_mmap;
458 domain->mmap_size = size;
459 domain->must_swap = data->magic != _MAGIC;
460
461 /* Fill in the information about the available tables. */
462 switch (W (domain->must_swap, data->revision))
463 {
464 case 0:
465 domain->nstrings = W (domain->must_swap, data->nstrings);
466 domain->orig_tab = (struct string_desc *)
467 ((char *) data + W (domain->must_swap, data->orig_tab_offset));
468 domain->trans_tab = (struct string_desc *)
469 ((char *) data + W (domain->must_swap, data->trans_tab_offset));
470 domain->hash_size = W (domain->must_swap, data->hash_tab_size);
471 domain->hash_tab = (nls_uint32 *)
472 ((char *) data + W (domain->must_swap, data->hash_tab_offset));
473 break;
474 default:
475 /* This is an invalid revision. */
476 #ifdef HAVE_MMAP
477 if (use_mmap)
478 munmap ((caddr_t) data, size);
479 else
480 #endif
481 free (data);
482 free (domain);
483 domain_file->data = NULL;
484 return;
485 }
486
487 /* Now initialize the character set converter from the character set
488 the file is encoded with (found in the header entry) to the domain's
489 specified character set or the locale's character set. */
490 nullentry = _nl_init_domain_conv (domain_file, domain, domainbinding);
491
492 /* Also look for a plural specification. */
493 if (nullentry != NULL)
494 {
495 const char *plural;
496 const char *nplurals;
497
498 plural = strstr (nullentry, "plural=");
499 nplurals = strstr (nullentry, "nplurals=");
500 if (plural == NULL || nplurals == NULL)
501 goto no_plural;
502 else
503 {
504 /* First get the number. */
505 char *endp;
506 unsigned long int n;
507 struct parse_args args;
508
509 nplurals += 9;
510 while (*nplurals != '\0' && isspace (*nplurals))
511 ++nplurals;
512 #if defined HAVE_STRTOUL || defined _LIBC
513 n = strtoul (nplurals, &endp, 10);
514 #else
515 for (endp = nplurals, n = 0; *endp >= '0' && *endp <= '9'; endp++)
516 n = n * 10 + (*endp - '0');
517 #endif
518 domain->nplurals = n;
519 if (nplurals == endp)
520 goto no_plural;
521
522 /* Due to the restrictions bison imposes onto the interface of the
523 scanner function we have to put the input string and the result
524 passed up from the parser into the same structure which address
525 is passed down to the parser. */
526 plural += 7;
527 args.cp = plural;
528 if (PLURAL_PARSE (&args) != 0)
529 goto no_plural;
530 domain->plural = args.res;
531 }
532 }
533 else
534 {
535 /* By default we are using the Germanic form: singular form only
536 for `one', the plural form otherwise. Yes, this is also what
537 English is using since English is a Germanic language. */
538 no_plural:
539 INIT_GERMANIC_PLURAL ();
540 domain->plural = &germanic_plural;
541 domain->nplurals = 2;
542 }
543 }
544
545
546 #ifdef _LIBC
547 void
548 internal_function
549 _nl_unload_domain (domain)
550 struct loaded_domain *domain;
551 {
552 if (domain->plural != &germanic_plural)
553 __gettext_free_exp (domain->plural);
554
555 _nl_free_domain_conv (domain);
556
557 # ifdef _POSIX_MAPPED_FILES
558 if (domain->use_mmap)
559 munmap ((caddr_t) domain->data, domain->mmap_size);
560 else
561 # endif /* _POSIX_MAPPED_FILES */
562 free ((void *) domain->data);
563
564 free (domain);
565 }
566 #endif
0 /* Determine a canonical name for the current locale's character encoding.
1
2 Copyright (C) 2000-2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published
6 by the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public
15 License along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 USA. */
18
19 /* Written by Bruno Haible <haible@clisp.cons.org>. */
20
21 #ifdef HAVE_CONFIG_H
22 # include <config.h>
23 #endif
24
25 #if HAVE_STDDEF_H
26 # include <stddef.h>
27 #endif
28
29 #include <stdio.h>
30 #if HAVE_STRING_H
31 # include <string.h>
32 #else
33 # include <strings.h>
34 #endif
35 #if HAVE_STDLIB_H
36 # include <stdlib.h>
37 #endif
38
39 #if defined _WIN32 || defined __WIN32__
40 # undef WIN32 /* avoid warning on mingw32 */
41 # define WIN32
42 #endif
43
44 #ifndef WIN32
45 # if HAVE_LANGINFO_CODESET
46 # include <langinfo.h>
47 # else
48 # if HAVE_SETLOCALE
49 # include <locale.h>
50 # endif
51 # endif
52 #else /* WIN32 */
53 # define WIN32_LEAN_AND_MEAN
54 # include <windows.h>
55 #endif
56
57 #ifndef DIRECTORY_SEPARATOR
58 # define DIRECTORY_SEPARATOR '/'
59 #endif
60
61 #ifndef ISSLASH
62 # define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR)
63 #endif
64
65 /* The following static variable is declared 'volatile' to avoid a
66 possible multithread problem in the function get_charset_aliases. If we
67 are running in a threaded environment, and if two threads initialize
68 'charset_aliases' simultaneously, both will produce the same value,
69 and everything will be ok if the two assignments to 'charset_aliases'
70 are atomic. But I don't know what will happen if the two assignments mix. */
71 #if __STDC__ != 1
72 # define volatile /* empty */
73 #endif
74 /* Pointer to the contents of the charset.alias file, if it has already been
75 read, else NULL. Its format is:
76 ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0' */
77 static const char * volatile charset_aliases;
78
79 /* Return a pointer to the contents of the charset.alias file. */
80 static const char *
81 get_charset_aliases ()
82 {
83 const char *cp;
84
85 cp = charset_aliases;
86 if (cp == NULL)
87 {
88 #ifndef WIN32
89 FILE *fp;
90 const char *dir = LIBDIR;
91 const char *base = "charset.alias";
92 char *file_name;
93
94 /* Concatenate dir and base into freshly allocated file_name. */
95 {
96 size_t dir_len = strlen (dir);
97 size_t base_len = strlen (base);
98 int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1]));
99 file_name = (char *) malloc (dir_len + add_slash + base_len + 1);
100 if (file_name != NULL)
101 {
102 memcpy (file_name, dir, dir_len);
103 if (add_slash)
104 file_name[dir_len] = DIRECTORY_SEPARATOR;
105 memcpy (file_name + dir_len + add_slash, base, base_len + 1);
106 }
107 }
108
109 if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL)
110 /* Out of memory or file not found, treat it as empty. */
111 cp = "";
112 else
113 {
114 /* Parse the file's contents. */
115 int c;
116 char buf1[50+1];
117 char buf2[50+1];
118 char *res_ptr = NULL;
119 size_t res_size = 0;
120 size_t l1, l2;
121
122 for (;;)
123 {
124 c = getc (fp);
125 if (c == EOF)
126 break;
127 if (c == '\n' || c == ' ' || c == '\t')
128 continue;
129 if (c == '#')
130 {
131 /* Skip comment, to end of line. */
132 do
133 c = getc (fp);
134 while (!(c == EOF || c == '\n'));
135 if (c == EOF)
136 break;
137 continue;
138 }
139 ungetc (c, fp);
140 if (fscanf(fp, "%50s %50s", buf1, buf2) < 2)
141 break;
142 l1 = strlen (buf1);
143 l2 = strlen (buf2);
144 if (res_size == 0)
145 {
146 res_size = l1 + 1 + l2 + 1;
147 res_ptr = malloc (res_size + 1);
148 }
149 else
150 {
151 res_size += l1 + 1 + l2 + 1;
152 res_ptr = realloc (res_ptr, res_size + 1);
153 }
154 if (res_ptr == NULL)
155 {
156 /* Out of memory. */
157 res_size = 0;
158 break;
159 }
160 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
161 strcpy (res_ptr + res_size - (l2 + 1), buf2);
162 }
163 fclose (fp);
164 if (res_size == 0)
165 cp = "";
166 else
167 {
168 *(res_ptr + res_size) = '\0';
169 cp = res_ptr;
170 }
171 }
172
173 if (file_name != NULL)
174 free (file_name);
175
176 #else /* WIN32 */
177
178 /* To avoid the troubles of installing a separate file in the same
179 directory as the DLL and of retrieving the DLL's directory at
180 runtime, simply inline the aliases here. */
181
182 cp = "CP936" "\0" "GBK" "\0"
183 "CP1361" "\0" "JOHAB" "\0";
184 #endif
185
186 charset_aliases = cp;
187 }
188
189 return cp;
190 }
191
192 /* Determine the current locale's character encoding, and canonicalize it
193 into one of the canonical names listed in config.charset.
194 The result must not be freed; it is statically allocated.
195 If the canonical name cannot be determined, the result is a non-canonical
196 name. */
197
198 #ifdef STATIC
199 STATIC
200 #endif
201 const char *
202 locale_charset ()
203 {
204 const char *codeset;
205 const char *aliases;
206
207 #ifndef WIN32
208
209 # if HAVE_LANGINFO_CODESET
210
211 /* Most systems support nl_langinfo (CODESET) nowadays. */
212 codeset = nl_langinfo (CODESET);
213
214 # else
215
216 /* On old systems which lack it, use setlocale or getenv. */
217 const char *locale = NULL;
218
219 /* But most old systems don't have a complete set of locales. Some
220 (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't
221 use setlocale here; it would return "C" when it doesn't support the
222 locale name the user has set. */
223 # if HAVE_SETLOCALE && 0
224 locale = setlocale (LC_CTYPE, NULL);
225 # endif
226 if (locale == NULL || locale[0] == '\0')
227 {
228 locale = getenv ("LC_ALL");
229 if (locale == NULL || locale[0] == '\0')
230 {
231 locale = getenv ("LC_CTYPE");
232 if (locale == NULL || locale[0] == '\0')
233 locale = getenv ("LANG");
234 }
235 }
236
237 /* On some old systems, one used to set locale = "iso8859_1". On others,
238 you set it to "language_COUNTRY.charset". In any case, we resolve it
239 through the charset.alias file. */
240 codeset = locale;
241
242 # endif
243
244 #else /* WIN32 */
245
246 static char buf[2 + 10 + 1];
247
248 /* Win32 has a function returning the locale's codepage as a number. */
249 sprintf (buf, "CP%u", GetACP ());
250 codeset = buf;
251
252 #endif
253
254 if (codeset == NULL)
255 /* The canonical name cannot be determined. */
256 codeset = "";
257
258 /* Resolve alias. */
259 for (aliases = get_charset_aliases ();
260 *aliases != '\0';
261 aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
262 if (strcmp (codeset, aliases) == 0
263 || (aliases[0] == '*' && aliases[1] == '\0'))
264 {
265 codeset = aliases + strlen (aliases) + 1;
266 break;
267 }
268
269 return codeset;
270 }
0 # Locale name alias data base.
1 # Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Library General Public License as published
5 # by the Free Software Foundation; either version 2, or (at your option)
6 # any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Library General Public License for more details.
12 #
13 # You should have received a copy of the GNU Library General Public
14 # License along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 # USA.
17
18 # The format of this file is the same as for the corresponding file of
19 # the X Window System, which normally can be found in
20 # /usr/lib/X11/locale/locale.alias
21 # A single line contains two fields: an alias and a substitution value.
22 # All entries are case independent.
23
24 # Note: This file is far from being complete. If you have a value for
25 # your own site which you think might be useful for others too, share
26 # it with the rest of us. Send it using the `glibcbug' script to
27 # bugs@gnu.org.
28
29 # Packages using this file:
30
31 bokmal no_NO.ISO-8859-1
32 bokmål no_NO.ISO-8859-1
33 catalan ca_ES.ISO-8859-1
34 croatian hr_HR.ISO-8859-2
35 czech cs_CZ.ISO-8859-2
36 danish da_DK.ISO-8859-1
37 dansk da_DK.ISO-8859-1
38 deutsch de_DE.ISO-8859-1
39 dutch nl_NL.ISO-8859-1
40 eesti et_EE.ISO-8859-1
41 estonian et_EE.ISO-8859-1
42 finnish fi_FI.ISO-8859-1
43 français fr_FR.ISO-8859-1
44 french fr_FR.ISO-8859-1
45 galego gl_ES.ISO-8859-1
46 galician gl_ES.ISO-8859-1
47 german de_DE.ISO-8859-1
48 greek el_GR.ISO-8859-7
49 hebrew he_IL.ISO-8859-8
50 hrvatski hr_HR.ISO-8859-2
51 hungarian hu_HU.ISO-8859-2
52 icelandic is_IS.ISO-8859-1
53 italian it_IT.ISO-8859-1
54 japanese ja_JP.eucJP
55 japanese.euc ja_JP.eucJP
56 ja_JP ja_JP.eucJP
57 ja_JP.ujis ja_JP.eucJP
58 japanese.sjis ja_JP.SJIS
59 korean ko_KR.eucKR
60 korean.euc ko_KR.eucKR
61 ko_KR ko_KR.eucKR
62 lithuanian lt_LT.ISO-8859-13
63 nb_NO no_NO.ISO-8859-1
64 nb_NO.ISO-8859-1 no_NO.ISO-8859-1
65 norwegian no_NO.ISO-8859-1
66 nynorsk nn_NO.ISO-8859-1
67 polish pl_PL.ISO-8859-2
68 portuguese pt_PT.ISO-8859-1
69 romanian ro_RO.ISO-8859-2
70 russian ru_RU.ISO-8859-5
71 slovak sk_SK.ISO-8859-2
72 slovene sl_SI.ISO-8859-2
73 slovenian sl_SI.ISO-8859-2
74 spanish es_ES.ISO-8859-1
75 swedish sv_SE.ISO-8859-1
76 thai th_TH.TIS-620
77 turkish tr_TR.ISO-8859-9
0 /* Handle aliases for locale names.
1 Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 /* Tell glibc's <string.h> to provide a prototype for mempcpy().
19 This must come before <config.h> because <config.h> may include
20 <features.h>, and once <features.h> has been included, it's too late. */
21 #ifndef _GNU_SOURCE
22 # define _GNU_SOURCE 1
23 #endif
24
25 #ifdef HAVE_CONFIG_H
26 # include <config.h>
27 #endif
28
29 #include <ctype.h>
30 #include <stdio.h>
31 #include <sys/types.h>
32
33 #ifdef __GNUC__
34 # define alloca __builtin_alloca
35 # define HAVE_ALLOCA 1
36 #else
37 # if defined HAVE_ALLOCA_H || defined _LIBC
38 # include <alloca.h>
39 # else
40 # ifdef _AIX
41 #pragma alloca
42 # else
43 # ifndef alloca
44 char *alloca ();
45 # endif
46 # endif
47 # endif
48 #endif
49
50 #include <stdlib.h>
51
52 #include <string.h>
53 #if !HAVE_STRCHR && !defined _LIBC
54 # ifndef strchr
55 # define strchr index
56 # endif
57 #endif
58
59 #include "gettextP.h"
60
61 /* @@ end of prolog @@ */
62
63 #ifdef _LIBC
64 /* Rename the non ANSI C functions. This is required by the standard
65 because some ANSI C functions will require linking with this object
66 file and the name space must not be polluted. */
67 # define strcasecmp __strcasecmp
68
69 # ifndef mempcpy
70 # define mempcpy __mempcpy
71 # endif
72 # define HAVE_MEMPCPY 1
73
74 /* We need locking here since we can be called from different places. */
75 # include <bits/libc-lock.h>
76
77 __libc_lock_define_initialized (static, lock);
78 #endif
79
80 #ifndef internal_function
81 # define internal_function
82 #endif
83
84 /* For those losing systems which don't have `alloca' we have to add
85 some additional code emulating it. */
86 #ifdef HAVE_ALLOCA
87 # define freea(p) /* nothing */
88 #else
89 # define alloca(n) malloc (n)
90 # define freea(p) free (p)
91 #endif
92
93 #if defined _LIBC_REENTRANT || defined HAVE_FGETS_UNLOCKED
94 # undef fgets
95 # define fgets(buf, len, s) fgets_unlocked (buf, len, s)
96 #endif
97 #if defined _LIBC_REENTRANT || defined HAVE_FEOF_UNLOCKED
98 # undef feof
99 # define feof(s) feof_unlocked (s)
100 #endif
101
102
103 struct alias_map
104 {
105 const char *alias;
106 const char *value;
107 };
108
109
110 static char *string_space;
111 static size_t string_space_act;
112 static size_t string_space_max;
113 static struct alias_map *map;
114 static size_t nmap;
115 static size_t maxmap;
116
117
118 /* Prototypes for local functions. */
119 static size_t read_alias_file PARAMS ((const char *fname, int fname_len))
120 internal_function;
121 static int extend_alias_table PARAMS ((void));
122 static int alias_compare PARAMS ((const struct alias_map *map1,
123 const struct alias_map *map2));
124
125
126 const char *
127 _nl_expand_alias (name)
128 const char *name;
129 {
130 static const char *locale_alias_path = LOCALE_ALIAS_PATH;
131 struct alias_map *retval;
132 const char *result = NULL;
133 size_t added;
134
135 #ifdef _LIBC
136 __libc_lock_lock (lock);
137 #endif
138
139 do
140 {
141 struct alias_map item;
142
143 item.alias = name;
144
145 if (nmap > 0)
146 retval = (struct alias_map *) bsearch (&item, map, nmap,
147 sizeof (struct alias_map),
148 (int (*) PARAMS ((const void *,
149 const void *))
150 ) alias_compare);
151 else
152 retval = NULL;
153
154 /* We really found an alias. Return the value. */
155 if (retval != NULL)
156 {
157 result = retval->value;
158 break;
159 }
160
161 /* Perhaps we can find another alias file. */
162 added = 0;
163 while (added == 0 && locale_alias_path[0] != '\0')
164 {
165 const char *start;
166
167 while (locale_alias_path[0] == PATH_SEPARATOR)
168 ++locale_alias_path;
169 start = locale_alias_path;
170
171 while (locale_alias_path[0] != '\0'
172 && locale_alias_path[0] != PATH_SEPARATOR)
173 ++locale_alias_path;
174
175 if (start < locale_alias_path)
176 added = read_alias_file (start, locale_alias_path - start);
177 }
178 }
179 while (added != 0);
180
181 #ifdef _LIBC
182 __libc_lock_unlock (lock);
183 #endif
184
185 return result;
186 }
187
188
189 static size_t
190 internal_function
191 read_alias_file (fname, fname_len)
192 const char *fname;
193 int fname_len;
194 {
195 FILE *fp;
196 char *full_fname;
197 size_t added;
198 static const char aliasfile[] = "/locale.alias";
199
200 full_fname = (char *) alloca (fname_len + sizeof aliasfile);
201 #ifdef HAVE_MEMPCPY
202 mempcpy (mempcpy (full_fname, fname, fname_len),
203 aliasfile, sizeof aliasfile);
204 #else
205 memcpy (full_fname, fname, fname_len);
206 memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile);
207 #endif
208
209 fp = fopen (full_fname, "r");
210 freea (full_fname);
211 if (fp == NULL)
212 return 0;
213
214 added = 0;
215 while (!feof (fp))
216 {
217 /* It is a reasonable approach to use a fix buffer here because
218 a) we are only interested in the first two fields
219 b) these fields must be usable as file names and so must not
220 be that long
221 */
222 char buf[BUFSIZ];
223 char *alias;
224 char *value;
225 char *cp;
226
227 if (fgets (buf, sizeof buf, fp) == NULL)
228 /* EOF reached. */
229 break;
230
231 /* Possibly not the whole line fits into the buffer. Ignore
232 the rest of the line. */
233 if (strchr (buf, '\n') == NULL)
234 {
235 char altbuf[BUFSIZ];
236 do
237 if (fgets (altbuf, sizeof altbuf, fp) == NULL)
238 /* Make sure the inner loop will be left. The outer loop
239 will exit at the `feof' test. */
240 break;
241 while (strchr (altbuf, '\n') == NULL);
242 }
243
244 cp = buf;
245 /* Ignore leading white space. */
246 while (isspace (cp[0]))
247 ++cp;
248
249 /* A leading '#' signals a comment line. */
250 if (cp[0] != '\0' && cp[0] != '#')
251 {
252 alias = cp++;
253 while (cp[0] != '\0' && !isspace (cp[0]))
254 ++cp;
255 /* Terminate alias name. */
256 if (cp[0] != '\0')
257 *cp++ = '\0';
258
259 /* Now look for the beginning of the value. */
260 while (isspace (cp[0]))
261 ++cp;
262
263 if (cp[0] != '\0')
264 {
265 size_t alias_len;
266 size_t value_len;
267
268 value = cp++;
269 while (cp[0] != '\0' && !isspace (cp[0]))
270 ++cp;
271 /* Terminate value. */
272 if (cp[0] == '\n')
273 {
274 /* This has to be done to make the following test
275 for the end of line possible. We are looking for
276 the terminating '\n' which do not overwrite here. */
277 *cp++ = '\0';
278 *cp = '\n';
279 }
280 else if (cp[0] != '\0')
281 *cp++ = '\0';
282
283 if (nmap >= maxmap)
284 if (__builtin_expect (extend_alias_table (), 0))
285 return added;
286
287 alias_len = strlen (alias) + 1;
288 value_len = strlen (value) + 1;
289
290 if (string_space_act + alias_len + value_len > string_space_max)
291 {
292 /* Increase size of memory pool. */
293 size_t new_size = (string_space_max
294 + (alias_len + value_len > 1024
295 ? alias_len + value_len : 1024));
296 char *new_pool = (char *) realloc (string_space, new_size);
297 if (new_pool == NULL)
298 return added;
299
300 if (__builtin_expect (string_space != new_pool, 0))
301 {
302 size_t i;
303
304 for (i = 0; i < nmap; i++)
305 {
306 map[i].alias += new_pool - string_space;
307 map[i].value += new_pool - string_space;
308 }
309 }
310
311 string_space = new_pool;
312 string_space_max = new_size;
313 }
314
315 map[nmap].alias = memcpy (&string_space[string_space_act],
316 alias, alias_len);
317 string_space_act += alias_len;
318
319 map[nmap].value = memcpy (&string_space[string_space_act],
320 value, value_len);
321 string_space_act += value_len;
322
323 ++nmap;
324 ++added;
325 }
326 }
327 }
328
329 /* Should we test for ferror()? I think we have to silently ignore
330 errors. --drepper */
331 fclose (fp);
332
333 if (added > 0)
334 qsort (map, nmap, sizeof (struct alias_map),
335 (int (*) PARAMS ((const void *, const void *))) alias_compare);
336
337 return added;
338 }
339
340
341 static int
342 extend_alias_table ()
343 {
344 size_t new_size;
345 struct alias_map *new_map;
346
347 new_size = maxmap == 0 ? 100 : 2 * maxmap;
348 new_map = (struct alias_map *) realloc (map, (new_size
349 * sizeof (struct alias_map)));
350 if (new_map == NULL)
351 /* Simply don't extend: we don't have any more core. */
352 return -1;
353
354 map = new_map;
355 maxmap = new_size;
356 return 0;
357 }
358
359
360 #ifdef _LIBC
361 static void __attribute__ ((unused))
362 free_mem (void)
363 {
364 if (string_space != NULL)
365 free (string_space);
366 if (map != NULL)
367 free (map);
368 }
369 text_set_element (__libc_subfreeres, free_mem);
370 #endif
371
372
373 static int
374 alias_compare (map1, map2)
375 const struct alias_map *map1;
376 const struct alias_map *map2;
377 {
378 #if defined _LIBC || defined HAVE_STRCASECMP
379 return strcasecmp (map1->alias, map2->alias);
380 #else
381 const unsigned char *p1 = (const unsigned char *) map1->alias;
382 const unsigned char *p2 = (const unsigned char *) map2->alias;
383 unsigned char c1, c2;
384
385 if (p1 == p2)
386 return 0;
387
388 do
389 {
390 /* I know this seems to be odd but the tolower() function in
391 some systems libc cannot handle nonalpha characters. */
392 c1 = isupper (*p1) ? tolower (*p1) : *p1;
393 c2 = isupper (*p2) ? tolower (*p2) : *p2;
394 if (c1 == '\0')
395 break;
396 ++p1;
397 ++p2;
398 }
399 while (c1 == c2);
400
401 return c1 - c2;
402 #endif
403 }
0 /* Implementation of ngettext(3) function.
1 Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifdef HAVE_CONFIG_H
19 # include <config.h>
20 #endif
21
22 #ifdef _LIBC
23 # define __need_NULL
24 # include <stddef.h>
25 #else
26 # include <stdlib.h> /* Just for NULL. */
27 #endif
28
29 #include "gettextP.h"
30 #ifdef _LIBC
31 # include <libintl.h>
32 #else
33 # include "libgnuintl.h"
34 #endif
35
36 #include <locale.h>
37
38 /* @@ end of prolog @@ */
39
40 /* Names for the libintl functions are a problem. They must not clash
41 with existing names and they should follow ANSI C. But this source
42 code is also used in GNU C Library where the names have a __
43 prefix. So we have to make a difference here. */
44 #ifdef _LIBC
45 # define NGETTEXT __ngettext
46 # define DCNGETTEXT __dcngettext
47 #else
48 # define NGETTEXT ngettext__
49 # define DCNGETTEXT dcngettext__
50 #endif
51
52 /* Look up MSGID in the current default message catalog for the current
53 LC_MESSAGES locale. If not found, returns MSGID itself (the default
54 text). */
55 char *
56 NGETTEXT (msgid1, msgid2, n)
57 const char *msgid1;
58 const char *msgid2;
59 unsigned long int n;
60 {
61 return DCNGETTEXT (NULL, msgid1, msgid2, n, LC_MESSAGES);
62 }
63
64 #ifdef _LIBC
65 /* Alias for function name in GNU C Library. */
66 weak_alias (__ngettext, ngettext);
67 #endif
0 /* A Bison parser, made by GNU Bison 1.875d. */
1
2 /* Skeleton parser for Yacc-like parsing with Bison,
3 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
19
20 /* As a special exception, when this file is copied by Bison into a
21 Bison output file, you may use that output file without restriction.
22 This special exception was added by the Free Software Foundation
23 in version 1.24 of Bison. */
24
25 /* Written by Richard Stallman by simplifying the original so called
26 ``semantic'' parser. */
27
28 /* All symbols defined below should begin with yy or YY, to avoid
29 infringing on user name space. This should be done even for local
30 variables, as they might otherwise be expanded by user macros.
31 There are some unavoidable exceptions within include files to
32 define necessary library symbols; they are noted "INFRINGES ON
33 USER NAME SPACE" below. */
34
35 /* Identify Bison output. */
36 #define YYBISON 1
37
38 /* Skeleton name. */
39 #define YYSKELETON_NAME "yacc.c"
40
41 /* Pure parsers. */
42 #define YYPURE 1
43
44 /* Using locations. */
45 #define YYLSP_NEEDED 0
46
47 /* If NAME_PREFIX is specified substitute the variables and functions
48 names. */
49 #define yyparse __gettextparse
50 #define yylex __gettextlex
51 #define yyerror __gettexterror
52 #define yylval __gettextlval
53 #define yychar __gettextchar
54 #define yydebug __gettextdebug
55 #define yynerrs __gettextnerrs
56
57
58 /* Tokens. */
59 #ifndef YYTOKENTYPE
60 # define YYTOKENTYPE
61 /* Put the tokens into the symbol table, so that GDB and other debuggers
62 know about them. */
63 enum yytokentype {
64 EQUOP2 = 258,
65 CMPOP2 = 259,
66 ADDOP2 = 260,
67 MULOP2 = 261,
68 NUMBER = 262
69 };
70 #endif
71 #define EQUOP2 258
72 #define CMPOP2 259
73 #define ADDOP2 260
74 #define MULOP2 261
75 #define NUMBER 262
76
77
78
79
80 /* Copy the first part of user declarations. */
81 #line 1 "plural.y"
82
83 /* Expression parsing for plural form selection.
84 Copyright (C) 2000, 2001 Free Software Foundation, Inc.
85 Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
86
87 This program is free software; you can redistribute it and/or modify it
88 under the terms of the GNU Library General Public License as published
89 by the Free Software Foundation; either version 2, or (at your option)
90 any later version.
91
92 This program is distributed in the hope that it will be useful,
93 but WITHOUT ANY WARRANTY; without even the implied warranty of
94 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
95 Library General Public License for more details.
96
97 You should have received a copy of the GNU Library General Public
98 License along with this program; if not, write to the Free Software
99 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
100 USA. */
101
102 /* The bison generated parser uses alloca. AIX 3 forces us to put this
103 declaration at the beginning of the file. The declaration in bison's
104 skeleton file comes too late. This must come before <config.h>
105 because <config.h> may include arbitrary system headers. */
106 #if defined _AIX && !defined __GNUC__
107 #pragma alloca
108 #endif
109
110 #ifdef HAVE_CONFIG_H
111 # include <config.h>
112 #endif
113
114 #include <stdlib.h>
115 #include "gettextP.h"
116
117 /* Names for the libintl functions are a problem. They must not clash
118 with existing names and they should follow ANSI C. But this source
119 code is also used in GNU C Library where the names have a __
120 prefix. So we have to make a difference here. */
121 #ifdef _LIBC
122 # define FREE_EXPRESSION __gettext_free_exp
123 #else
124 # define FREE_EXPRESSION gettext_free_exp__
125 # define __gettextparse gettextparse__
126 #endif
127
128 #define YYLEX_PARAM &((struct parse_args *) arg)->cp
129 #define YYPARSE_PARAM arg
130
131
132 /* Enabling traces. */
133 #ifndef YYDEBUG
134 # define YYDEBUG 0
135 #endif
136
137 /* Enabling verbose error messages. */
138 #ifdef YYERROR_VERBOSE
139 # undef YYERROR_VERBOSE
140 # define YYERROR_VERBOSE 1
141 #else
142 # define YYERROR_VERBOSE 0
143 #endif
144
145 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
146 #line 53 "plural.y"
147 typedef union YYSTYPE {
148 unsigned long int num;
149 enum operator op;
150 struct expression *exp;
151 } YYSTYPE;
152 /* Line 191 of yacc.c. */
153 #line 155 "plural.c"
154 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
155 # define YYSTYPE_IS_DECLARED 1
156 # define YYSTYPE_IS_TRIVIAL 1
157 #endif
158
159
160
161 /* Copy the second part of user declarations. */
162 #line 59 "plural.y"
163
164 /* Prototypes for local functions. */
165 static struct expression *new_exp PARAMS ((int nargs, enum operator op,
166 struct expression * const *args));
167 static inline struct expression *new_exp_0 PARAMS ((enum operator op));
168 static inline struct expression *new_exp_1 PARAMS ((enum operator op,
169 struct expression *right));
170 static struct expression *new_exp_2 PARAMS ((enum operator op,
171 struct expression *left,
172 struct expression *right));
173 static inline struct expression *new_exp_3 PARAMS ((enum operator op,
174 struct expression *bexp,
175 struct expression *tbranch,
176 struct expression *fbranch));
177 static int yylex PARAMS ((YYSTYPE *lval, const char **pexp));
178 static void yyerror PARAMS ((const char *str));
179
180 /* Allocation of expressions. */
181
182 static struct expression *
183 new_exp (nargs, op, args)
184 int nargs;
185 enum operator op;
186 struct expression * const *args;
187 {
188 int i;
189 struct expression *newp;
190
191 /* If any of the argument could not be malloc'ed, just return NULL. */
192 for (i = nargs - 1; i >= 0; i--)
193 if (args[i] == NULL)
194 goto fail;
195
196 /* Allocate a new expression. */
197 newp = (struct expression *) malloc (sizeof (*newp));
198 if (newp != NULL)
199 {
200 newp->nargs = nargs;
201 newp->operation = op;
202 for (i = nargs - 1; i >= 0; i--)
203 newp->val.args[i] = args[i];
204 return newp;
205 }
206
207 fail:
208 for (i = nargs - 1; i >= 0; i--)
209 FREE_EXPRESSION (args[i]);
210
211 return NULL;
212 }
213
214 static inline struct expression *
215 new_exp_0 (op)
216 enum operator op;
217 {
218 return new_exp (0, op, NULL);
219 }
220
221 static inline struct expression *
222 new_exp_1 (op, right)
223 enum operator op;
224 struct expression *right;
225 {
226 struct expression *args[1];
227
228 args[0] = right;
229 return new_exp (1, op, args);
230 }
231
232 static struct expression *
233 new_exp_2 (op, left, right)
234 enum operator op;
235 struct expression *left;
236 struct expression *right;
237 {
238 struct expression *args[2];
239
240 args[0] = left;
241 args[1] = right;
242 return new_exp (2, op, args);
243 }
244
245 static inline struct expression *
246 new_exp_3 (op, bexp, tbranch, fbranch)
247 enum operator op;
248 struct expression *bexp;
249 struct expression *tbranch;
250 struct expression *fbranch;
251 {
252 struct expression *args[3];
253
254 args[0] = bexp;
255 args[1] = tbranch;
256 args[2] = fbranch;
257 return new_exp (3, op, args);
258 }
259
260
261
262 /* Line 214 of yacc.c. */
263 #line 265 "plural.c"
264
265 #if ! defined (yyoverflow) || YYERROR_VERBOSE
266
267 # ifndef YYFREE
268 # define YYFREE free
269 # endif
270 # ifndef YYMALLOC
271 # define YYMALLOC malloc
272 # endif
273
274 /* The parser invokes alloca or malloc; define the necessary symbols. */
275
276 # ifdef YYSTACK_USE_ALLOCA
277 # if YYSTACK_USE_ALLOCA
278 # define YYSTACK_ALLOC alloca
279 # endif
280 # else
281 # if defined (alloca) || defined (_ALLOCA_H)
282 # define YYSTACK_ALLOC alloca
283 # else
284 # ifdef __GNUC__
285 # define YYSTACK_ALLOC __builtin_alloca
286 # endif
287 # endif
288 # endif
289
290 # ifdef YYSTACK_ALLOC
291 /* Pacify GCC's `empty if-body' warning. */
292 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
293 # else
294 # if defined (__STDC__) || defined (__cplusplus)
295 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
296 # define YYSIZE_T size_t
297 # endif
298 # define YYSTACK_ALLOC YYMALLOC
299 # define YYSTACK_FREE YYFREE
300 # endif
301 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
302
303
304 #if (! defined (yyoverflow) \
305 && (! defined (__cplusplus) \
306 || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
307
308 /* A type that is properly aligned for any stack member. */
309 union yyalloc
310 {
311 short int yyss;
312 YYSTYPE yyvs;
313 };
314
315 /* The size of the maximum gap between one aligned stack and the next. */
316 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
317
318 /* The size of an array large to enough to hold all stacks, each with
319 N elements. */
320 # define YYSTACK_BYTES(N) \
321 ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
322 + YYSTACK_GAP_MAXIMUM)
323
324 /* Copy COUNT objects from FROM to TO. The source and destination do
325 not overlap. */
326 # ifndef YYCOPY
327 # if defined (__GNUC__) && 1 < __GNUC__
328 # define YYCOPY(To, From, Count) \
329 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
330 # else
331 # define YYCOPY(To, From, Count) \
332 do \
333 { \
334 register YYSIZE_T yyi; \
335 for (yyi = 0; yyi < (Count); yyi++) \
336 (To)[yyi] = (From)[yyi]; \
337 } \
338 while (0)
339 # endif
340 # endif
341
342 /* Relocate STACK from its old location to the new one. The
343 local variables YYSIZE and YYSTACKSIZE give the old and new number of
344 elements in the stack, and YYPTR gives the new location of the
345 stack. Advance YYPTR to a properly aligned location for the next
346 stack. */
347 # define YYSTACK_RELOCATE(Stack) \
348 do \
349 { \
350 YYSIZE_T yynewbytes; \
351 YYCOPY (&yyptr->Stack, Stack, yysize); \
352 Stack = &yyptr->Stack; \
353 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
354 yyptr += yynewbytes / sizeof (*yyptr); \
355 } \
356 while (0)
357
358 #endif
359
360 #if defined (__STDC__) || defined (__cplusplus)
361 typedef signed char yysigned_char;
362 #else
363 typedef short int yysigned_char;
364 #endif
365
366 /* YYFINAL -- State number of the termination state. */
367 #define YYFINAL 9
368 /* YYLAST -- Last index in YYTABLE. */
369 #define YYLAST 54
370
371 /* YYNTOKENS -- Number of terminals. */
372 #define YYNTOKENS 16
373 /* YYNNTS -- Number of nonterminals. */
374 #define YYNNTS 3
375 /* YYNRULES -- Number of rules. */
376 #define YYNRULES 13
377 /* YYNRULES -- Number of states. */
378 #define YYNSTATES 27
379
380 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
381 #define YYUNDEFTOK 2
382 #define YYMAXUTOK 262
383
384 #define YYTRANSLATE(YYX) \
385 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
386
387 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
388 static const unsigned char yytranslate[] =
389 {
390 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
391 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
392 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
393 2, 2, 2, 10, 2, 2, 2, 2, 5, 2,
394 14, 15, 2, 2, 2, 2, 2, 2, 2, 2,
395 2, 2, 2, 2, 2, 2, 2, 2, 12, 2,
396 2, 2, 2, 3, 2, 2, 2, 2, 2, 2,
397 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
398 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
399 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
400 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
401 13, 2, 2, 2, 2, 2, 2, 2, 2, 2,
402 2, 2, 2, 2, 4, 2, 2, 2, 2, 2,
403 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
404 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
405 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
406 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
407 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
408 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
409 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
410 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
411 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
412 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
413 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
414 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
415 2, 2, 2, 2, 2, 2, 1, 2, 6, 7,
416 8, 9, 11
417 };
418
419 #if YYDEBUG
420 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
421 YYRHS. */
422 static const unsigned char yyprhs[] =
423 {
424 0, 0, 3, 5, 11, 15, 19, 23, 27, 31,
425 35, 38, 40, 42
426 };
427
428 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
429 static const yysigned_char yyrhs[] =
430 {
431 17, 0, -1, 18, -1, 18, 3, 18, 12, 18,
432 -1, 18, 4, 18, -1, 18, 5, 18, -1, 18,
433 6, 18, -1, 18, 7, 18, -1, 18, 8, 18,
434 -1, 18, 9, 18, -1, 10, 18, -1, 13, -1,
435 11, -1, 14, 18, 15, -1
436 };
437
438 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
439 static const unsigned char yyrline[] =
440 {
441 0, 178, 178, 186, 190, 194, 198, 202, 206, 210,
442 214, 218, 222, 227
443 };
444 #endif
445
446 #if YYDEBUG || YYERROR_VERBOSE
447 /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
448 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
449 static const char *const yytname[] =
450 {
451 "$end", "error", "$undefined", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2",
452 "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'",
453 "$accept", "start", "exp", 0
454 };
455 #endif
456
457 # ifdef YYPRINT
458 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
459 token YYLEX-NUM. */
460 static const unsigned short int yytoknum[] =
461 {
462 0, 256, 257, 63, 124, 38, 258, 259, 260, 261,
463 33, 262, 58, 110, 40, 41
464 };
465 # endif
466
467 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
468 static const unsigned char yyr1[] =
469 {
470 0, 16, 17, 18, 18, 18, 18, 18, 18, 18,
471 18, 18, 18, 18
472 };
473
474 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
475 static const unsigned char yyr2[] =
476 {
477 0, 2, 1, 5, 3, 3, 3, 3, 3, 3,
478 2, 1, 1, 3
479 };
480
481 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
482 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
483 means the default is an error. */
484 static const unsigned char yydefact[] =
485 {
486 0, 0, 12, 11, 0, 0, 2, 10, 0, 1,
487 0, 0, 0, 0, 0, 0, 0, 13, 0, 4,
488 5, 6, 7, 8, 9, 0, 3
489 };
490
491 /* YYDEFGOTO[NTERM-NUM]. */
492 static const yysigned_char yydefgoto[] =
493 {
494 -1, 5, 6
495 };
496
497 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
498 STATE-NUM. */
499 #define YYPACT_NINF -10
500 static const yysigned_char yypact[] =
501 {
502 -9, -9, -10, -10, -9, 8, 36, -10, 13, -10,
503 -9, -9, -9, -9, -9, -9, -9, -10, 26, 41,
504 45, 18, -2, 14, -10, -9, 36
505 };
506
507 /* YYPGOTO[NTERM-NUM]. */
508 static const yysigned_char yypgoto[] =
509 {
510 -10, -10, -1
511 };
512
513 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
514 positive, shift that token. If negative, reduce the rule which
515 number is the opposite. If zero, do what YYDEFACT says.
516 If YYTABLE_NINF, syntax error. */
517 #define YYTABLE_NINF -1
518 static const unsigned char yytable[] =
519 {
520 7, 1, 2, 8, 3, 4, 15, 16, 9, 18,
521 19, 20, 21, 22, 23, 24, 10, 11, 12, 13,
522 14, 15, 16, 16, 26, 14, 15, 16, 17, 10,
523 11, 12, 13, 14, 15, 16, 0, 0, 25, 10,
524 11, 12, 13, 14, 15, 16, 12, 13, 14, 15,
525 16, 13, 14, 15, 16
526 };
527
528 static const yysigned_char yycheck[] =
529 {
530 1, 10, 11, 4, 13, 14, 8, 9, 0, 10,
531 11, 12, 13, 14, 15, 16, 3, 4, 5, 6,
532 7, 8, 9, 9, 25, 7, 8, 9, 15, 3,
533 4, 5, 6, 7, 8, 9, -1, -1, 12, 3,
534 4, 5, 6, 7, 8, 9, 5, 6, 7, 8,
535 9, 6, 7, 8, 9
536 };
537
538 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
539 symbol of state STATE-NUM. */
540 static const unsigned char yystos[] =
541 {
542 0, 10, 11, 13, 14, 17, 18, 18, 18, 0,
543 3, 4, 5, 6, 7, 8, 9, 15, 18, 18,
544 18, 18, 18, 18, 18, 12, 18
545 };
546
547 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
548 # define YYSIZE_T __SIZE_TYPE__
549 #endif
550 #if ! defined (YYSIZE_T) && defined (size_t)
551 # define YYSIZE_T size_t
552 #endif
553 #if ! defined (YYSIZE_T)
554 # if defined (__STDC__) || defined (__cplusplus)
555 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
556 # define YYSIZE_T size_t
557 # endif
558 #endif
559 #if ! defined (YYSIZE_T)
560 # define YYSIZE_T unsigned int
561 #endif
562
563 #define yyerrok (yyerrstatus = 0)
564 #define yyclearin (yychar = YYEMPTY)
565 #define YYEMPTY (-2)
566 #define YYEOF 0
567
568 #define YYACCEPT goto yyacceptlab
569 #define YYABORT goto yyabortlab
570 #define YYERROR goto yyerrorlab
571
572
573 /* Like YYERROR except do call yyerror. This remains here temporarily
574 to ease the transition to the new meaning of YYERROR, for GCC.
575 Once GCC version 2 has supplanted version 1, this can go. */
576
577 #define YYFAIL goto yyerrlab
578
579 #define YYRECOVERING() (!!yyerrstatus)
580
581 #define YYBACKUP(Token, Value) \
582 do \
583 if (yychar == YYEMPTY && yylen == 1) \
584 { \
585 yychar = (Token); \
586 yylval = (Value); \
587 yytoken = YYTRANSLATE (yychar); \
588 YYPOPSTACK; \
589 goto yybackup; \
590 } \
591 else \
592 { \
593 yyerror ("syntax error: cannot back up");\
594 YYERROR; \
595 } \
596 while (0)
597
598 #define YYTERROR 1
599 #define YYERRCODE 256
600
601 /* YYLLOC_DEFAULT -- Compute the default location (before the actions
602 are run). */
603
604 #ifndef YYLLOC_DEFAULT
605 # define YYLLOC_DEFAULT(Current, Rhs, N) \
606 ((Current).first_line = (Rhs)[1].first_line, \
607 (Current).first_column = (Rhs)[1].first_column, \
608 (Current).last_line = (Rhs)[N].last_line, \
609 (Current).last_column = (Rhs)[N].last_column)
610 #endif
611
612 /* YYLEX -- calling `yylex' with the right arguments. */
613
614 #ifdef YYLEX_PARAM
615 # define YYLEX yylex (&yylval, YYLEX_PARAM)
616 #else
617 # define YYLEX yylex (&yylval)
618 #endif
619
620 /* Enable debugging if requested. */
621 #if YYDEBUG
622
623 # ifndef YYFPRINTF
624 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
625 # define YYFPRINTF fprintf
626 # endif
627
628 # define YYDPRINTF(Args) \
629 do { \
630 if (yydebug) \
631 YYFPRINTF Args; \
632 } while (0)
633
634 # define YYDSYMPRINT(Args) \
635 do { \
636 if (yydebug) \
637 yysymprint Args; \
638 } while (0)
639
640 # define YYDSYMPRINTF(Title, Token, Value, Location) \
641 do { \
642 if (yydebug) \
643 { \
644 YYFPRINTF (stderr, "%s ", Title); \
645 yysymprint (stderr, \
646 Token, Value); \
647 YYFPRINTF (stderr, "\n"); \
648 } \
649 } while (0)
650
651 /*------------------------------------------------------------------.
652 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
653 | TOP (included). |
654 `------------------------------------------------------------------*/
655
656 #if defined (__STDC__) || defined (__cplusplus)
657 static void
658 yy_stack_print (short int *bottom, short int *top)
659 #else
660 static void
661 yy_stack_print (bottom, top)
662 short int *bottom;
663 short int *top;
664 #endif
665 {
666 YYFPRINTF (stderr, "Stack now");
667 for (/* Nothing. */; bottom <= top; ++bottom)
668 YYFPRINTF (stderr, " %d", *bottom);
669 YYFPRINTF (stderr, "\n");
670 }
671
672 # define YY_STACK_PRINT(Bottom, Top) \
673 do { \
674 if (yydebug) \
675 yy_stack_print ((Bottom), (Top)); \
676 } while (0)
677
678
679 /*------------------------------------------------.
680 | Report that the YYRULE is going to be reduced. |
681 `------------------------------------------------*/
682
683 #if defined (__STDC__) || defined (__cplusplus)
684 static void
685 yy_reduce_print (int yyrule)
686 #else
687 static void
688 yy_reduce_print (yyrule)
689 int yyrule;
690 #endif
691 {
692 int yyi;
693 unsigned int yylno = yyrline[yyrule];
694 YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
695 yyrule - 1, yylno);
696 /* Print the symbols being reduced, and their result. */
697 for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
698 YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
699 YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
700 }
701
702 # define YY_REDUCE_PRINT(Rule) \
703 do { \
704 if (yydebug) \
705 yy_reduce_print (Rule); \
706 } while (0)
707
708 /* Nonzero means print parse trace. It is left uninitialized so that
709 multiple parsers can coexist. */
710 int yydebug;
711 #else /* !YYDEBUG */
712 # define YYDPRINTF(Args)
713 # define YYDSYMPRINT(Args)
714 # define YYDSYMPRINTF(Title, Token, Value, Location)
715 # define YY_STACK_PRINT(Bottom, Top)
716 # define YY_REDUCE_PRINT(Rule)
717 #endif /* !YYDEBUG */
718
719
720 /* YYINITDEPTH -- initial size of the parser's stacks. */
721 #ifndef YYINITDEPTH
722 # define YYINITDEPTH 200
723 #endif
724
725 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
726 if the built-in stack extension method is used).
727
728 Do not make this value too large; the results are undefined if
729 SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
730 evaluated with infinite-precision integer arithmetic. */
731
732 #if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
733 # undef YYMAXDEPTH
734 #endif
735
736 #ifndef YYMAXDEPTH
737 # define YYMAXDEPTH 10000
738 #endif
739
740
741
742 #if YYERROR_VERBOSE
743
744 # ifndef yystrlen
745 # if defined (__GLIBC__) && defined (_STRING_H)
746 # define yystrlen strlen
747 # else
748 /* Return the length of YYSTR. */
749 static YYSIZE_T
750 # if defined (__STDC__) || defined (__cplusplus)
751 yystrlen (const char *yystr)
752 # else
753 yystrlen (yystr)
754 const char *yystr;
755 # endif
756 {
757 register const char *yys = yystr;
758
759 while (*yys++ != '\0')
760 continue;
761
762 return yys - yystr - 1;
763 }
764 # endif
765 # endif
766
767 # ifndef yystpcpy
768 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
769 # define yystpcpy stpcpy
770 # else
771 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
772 YYDEST. */
773 static char *
774 # if defined (__STDC__) || defined (__cplusplus)
775 yystpcpy (char *yydest, const char *yysrc)
776 # else
777 yystpcpy (yydest, yysrc)
778 char *yydest;
779 const char *yysrc;
780 # endif
781 {
782 register char *yyd = yydest;
783 register const char *yys = yysrc;
784
785 while ((*yyd++ = *yys++) != '\0')
786 continue;
787
788 return yyd - 1;
789 }
790 # endif
791 # endif
792
793 #endif /* !YYERROR_VERBOSE */
794
795
796
797 #if YYDEBUG
798 /*--------------------------------.
799 | Print this symbol on YYOUTPUT. |
800 `--------------------------------*/
801
802 #if defined (__STDC__) || defined (__cplusplus)
803 static void
804 yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
805 #else
806 static void
807 yysymprint (yyoutput, yytype, yyvaluep)
808 FILE *yyoutput;
809 int yytype;
810 YYSTYPE *yyvaluep;
811 #endif
812 {
813 /* Pacify ``unused variable'' warnings. */
814 (void) yyvaluep;
815
816 if (yytype < YYNTOKENS)
817 {
818 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
819 # ifdef YYPRINT
820 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
821 # endif
822 }
823 else
824 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
825
826 switch (yytype)
827 {
828 default:
829 break;
830 }
831 YYFPRINTF (yyoutput, ")");
832 }
833
834 #endif /* ! YYDEBUG */
835 /*-----------------------------------------------.
836 | Release the memory associated to this symbol. |
837 `-----------------------------------------------*/
838
839 #if defined (__STDC__) || defined (__cplusplus)
840 static void
841 yydestruct (int yytype, YYSTYPE *yyvaluep)
842 #else
843 static void
844 yydestruct (yytype, yyvaluep)
845 int yytype;
846 YYSTYPE *yyvaluep;
847 #endif
848 {
849 /* Pacify ``unused variable'' warnings. */
850 (void) yyvaluep;
851
852 switch (yytype)
853 {
854
855 default:
856 break;
857 }
858 }
859
860
861 /* Prevent warnings from -Wmissing-prototypes. */
862
863 #ifdef YYPARSE_PARAM
864 # if defined (__STDC__) || defined (__cplusplus)
865 int yyparse (void *YYPARSE_PARAM);
866 # else
867 int yyparse ();
868 # endif
869 #else /* ! YYPARSE_PARAM */
870 #if defined (__STDC__) || defined (__cplusplus)
871 int yyparse (void);
872 #else
873 int yyparse ();
874 #endif
875 #endif /* ! YYPARSE_PARAM */
876
877
878
879
880
881
882 /*----------.
883 | yyparse. |
884 `----------*/
885
886 #ifdef YYPARSE_PARAM
887 # if defined (__STDC__) || defined (__cplusplus)
888 int yyparse (void *YYPARSE_PARAM)
889 # else
890 int yyparse (YYPARSE_PARAM)
891 void *YYPARSE_PARAM;
892 # endif
893 #else /* ! YYPARSE_PARAM */
894 #if defined (__STDC__) || defined (__cplusplus)
895 int
896 yyparse (void)
897 #else
898 int
899 yyparse ()
900
901 #endif
902 #endif
903 {
904 /* The lookahead symbol. */
905 int yychar;
906
907 /* The semantic value of the lookahead symbol. */
908 YYSTYPE yylval;
909
910 /* Number of syntax errors so far. */
911 int yynerrs;
912
913 register int yystate;
914 register int yyn;
915 int yyresult;
916 /* Number of tokens to shift before error messages enabled. */
917 int yyerrstatus;
918 /* Lookahead token as an internal (translated) token number. */
919 int yytoken = 0;
920
921 /* Three stacks and their tools:
922 `yyss': related to states,
923 `yyvs': related to semantic values,
924 `yyls': related to locations.
925
926 Refer to the stacks thru separate pointers, to allow yyoverflow
927 to reallocate them elsewhere. */
928
929 /* The state stack. */
930 short int yyssa[YYINITDEPTH];
931 short int *yyss = yyssa;
932 register short int *yyssp;
933
934 /* The semantic value stack. */
935 YYSTYPE yyvsa[YYINITDEPTH];
936 YYSTYPE *yyvs = yyvsa;
937 register YYSTYPE *yyvsp;
938
939
940
941 #define YYPOPSTACK (yyvsp--, yyssp--)
942
943 YYSIZE_T yystacksize = YYINITDEPTH;
944
945 /* The variables used to return semantic value and location from the
946 action routines. */
947 YYSTYPE yyval;
948
949
950 /* When reducing, the number of symbols on the RHS of the reduced
951 rule. */
952 int yylen;
953
954 YYDPRINTF ((stderr, "Starting parse\n"));
955
956 yystate = 0;
957 yyerrstatus = 0;
958 yynerrs = 0;
959 yychar = YYEMPTY; /* Cause a token to be read. */
960
961 /* Initialize stack pointers.
962 Waste one element of value and location stack
963 so that they stay on the same level as the state stack.
964 The wasted elements are never initialized. */
965
966 yyssp = yyss;
967 yyvsp = yyvs;
968
969
970 goto yysetstate;
971
972 /*------------------------------------------------------------.
973 | yynewstate -- Push a new state, which is found in yystate. |
974 `------------------------------------------------------------*/
975 yynewstate:
976 /* In all cases, when you get here, the value and location stacks
977 have just been pushed. so pushing a state here evens the stacks.
978 */
979 yyssp++;
980
981 yysetstate:
982 *yyssp = yystate;
983
984 if (yyss + yystacksize - 1 <= yyssp)
985 {
986 /* Get the current used size of the three stacks, in elements. */
987 YYSIZE_T yysize = yyssp - yyss + 1;
988
989 #ifdef yyoverflow
990 {
991 /* Give user a chance to reallocate the stack. Use copies of
992 these so that the &'s don't force the real ones into
993 memory. */
994 YYSTYPE *yyvs1 = yyvs;
995 short int *yyss1 = yyss;
996
997
998 /* Each stack pointer address is followed by the size of the
999 data in use in that stack, in bytes. This used to be a
1000 conditional around just the two extra args, but that might
1001 be undefined if yyoverflow is a macro. */
1002 yyoverflow ("parser stack overflow",
1003 &yyss1, yysize * sizeof (*yyssp),
1004 &yyvs1, yysize * sizeof (*yyvsp),
1005
1006 &yystacksize);
1007
1008 yyss = yyss1;
1009 yyvs = yyvs1;
1010 }
1011 #else /* no yyoverflow */
1012 # ifndef YYSTACK_RELOCATE
1013 goto yyoverflowlab;
1014 # else
1015 /* Extend the stack our own way. */
1016 if (YYMAXDEPTH <= yystacksize)
1017 goto yyoverflowlab;
1018 yystacksize *= 2;
1019 if (YYMAXDEPTH < yystacksize)
1020 yystacksize = YYMAXDEPTH;
1021
1022 {
1023 short int *yyss1 = yyss;
1024 union yyalloc *yyptr =
1025 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1026 if (! yyptr)
1027 goto yyoverflowlab;
1028 YYSTACK_RELOCATE (yyss);
1029 YYSTACK_RELOCATE (yyvs);
1030
1031 # undef YYSTACK_RELOCATE
1032 if (yyss1 != yyssa)
1033 YYSTACK_FREE (yyss1);
1034 }
1035 # endif
1036 #endif /* no yyoverflow */
1037
1038 yyssp = yyss + yysize - 1;
1039 yyvsp = yyvs + yysize - 1;
1040
1041
1042 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1043 (unsigned long int) yystacksize));
1044
1045 if (yyss + yystacksize - 1 <= yyssp)
1046 YYABORT;
1047 }
1048
1049 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1050
1051 goto yybackup;
1052
1053 /*-----------.
1054 | yybackup. |
1055 `-----------*/
1056 yybackup:
1057
1058 /* Do appropriate processing given the current state. */
1059 /* Read a lookahead token if we need one and don't already have one. */
1060 /* yyresume: */
1061
1062 /* First try to decide what to do without reference to lookahead token. */
1063
1064 yyn = yypact[yystate];
1065 if (yyn == YYPACT_NINF)
1066 goto yydefault;
1067
1068 /* Not known => get a lookahead token if don't already have one. */
1069
1070 /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
1071 if (yychar == YYEMPTY)
1072 {
1073 YYDPRINTF ((stderr, "Reading a token: "));
1074 yychar = YYLEX;
1075 }
1076
1077 if (yychar <= YYEOF)
1078 {
1079 yychar = yytoken = YYEOF;
1080 YYDPRINTF ((stderr, "Now at end of input.\n"));
1081 }
1082 else
1083 {
1084 yytoken = YYTRANSLATE (yychar);
1085 YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
1086 }
1087
1088 /* If the proper action on seeing token YYTOKEN is to reduce or to
1089 detect an error, take that action. */
1090 yyn += yytoken;
1091 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1092 goto yydefault;
1093 yyn = yytable[yyn];
1094 if (yyn <= 0)
1095 {
1096 if (yyn == 0 || yyn == YYTABLE_NINF)
1097 goto yyerrlab;
1098 yyn = -yyn;
1099 goto yyreduce;
1100 }
1101
1102 if (yyn == YYFINAL)
1103 YYACCEPT;
1104
1105 /* Shift the lookahead token. */
1106 YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
1107
1108 /* Discard the token being shifted unless it is eof. */
1109 if (yychar != YYEOF)
1110 yychar = YYEMPTY;
1111
1112 *++yyvsp = yylval;
1113
1114
1115 /* Count tokens shifted since error; after three, turn off error
1116 status. */
1117 if (yyerrstatus)
1118 yyerrstatus--;
1119
1120 yystate = yyn;
1121 goto yynewstate;
1122
1123
1124 /*-----------------------------------------------------------.
1125 | yydefault -- do the default action for the current state. |
1126 `-----------------------------------------------------------*/
1127 yydefault:
1128 yyn = yydefact[yystate];
1129 if (yyn == 0)
1130 goto yyerrlab;
1131 goto yyreduce;
1132
1133
1134 /*-----------------------------.
1135 | yyreduce -- Do a reduction. |
1136 `-----------------------------*/
1137 yyreduce:
1138 /* yyn is the number of a rule to reduce with. */
1139 yylen = yyr2[yyn];
1140
1141 /* If YYLEN is nonzero, implement the default value of the action:
1142 `$$ = $1'.
1143
1144 Otherwise, the following line sets YYVAL to garbage.
1145 This behavior is undocumented and Bison
1146 users should not rely upon it. Assigning to YYVAL
1147 unconditionally makes the parser a bit smaller, and it avoids a
1148 GCC warning that YYVAL may be used uninitialized. */
1149 yyval = yyvsp[1-yylen];
1150
1151
1152 YY_REDUCE_PRINT (yyn);
1153 switch (yyn)
1154 {
1155 case 2:
1156 #line 179 "plural.y"
1157 {
1158 if (yyvsp[0].exp == NULL)
1159 YYABORT;
1160 ((struct parse_args *) arg)->res = yyvsp[0].exp;
1161 }
1162 break;
1163
1164 case 3:
1165 #line 187 "plural.y"
1166 {
1167 yyval.exp = new_exp_3 (qmop, yyvsp[-4].exp, yyvsp[-2].exp, yyvsp[0].exp);
1168 }
1169 break;
1170
1171 case 4:
1172 #line 191 "plural.y"
1173 {
1174 yyval.exp = new_exp_2 (lor, yyvsp[-2].exp, yyvsp[0].exp);
1175 }
1176 break;
1177
1178 case 5:
1179 #line 195 "plural.y"
1180 {
1181 yyval.exp = new_exp_2 (land, yyvsp[-2].exp, yyvsp[0].exp);
1182 }
1183 break;
1184
1185 case 6:
1186 #line 199 "plural.y"
1187 {
1188 yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
1189 }
1190 break;
1191
1192 case 7:
1193 #line 203 "plural.y"
1194 {
1195 yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
1196 }
1197 break;
1198
1199 case 8:
1200 #line 207 "plural.y"
1201 {
1202 yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
1203 }
1204 break;
1205
1206 case 9:
1207 #line 211 "plural.y"
1208 {
1209 yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
1210 }
1211 break;
1212
1213 case 10:
1214 #line 215 "plural.y"
1215 {
1216 yyval.exp = new_exp_1 (lnot, yyvsp[0].exp);
1217 }
1218 break;
1219
1220 case 11:
1221 #line 219 "plural.y"
1222 {
1223 yyval.exp = new_exp_0 (var);
1224 }
1225 break;
1226
1227 case 12:
1228 #line 223 "plural.y"
1229 {
1230 if ((yyval.exp = new_exp_0 (num)) != NULL)
1231 yyval.exp->val.num = yyvsp[0].num;
1232 }
1233 break;
1234
1235 case 13:
1236 #line 228 "plural.y"
1237 {
1238 yyval.exp = yyvsp[-1].exp;
1239 }
1240 break;
1241
1242
1243 }
1244
1245 /* Line 1010 of yacc.c. */
1246 #line 1248 "plural.c"
1247
1248 yyvsp -= yylen;
1249 yyssp -= yylen;
1250
1251
1252 YY_STACK_PRINT (yyss, yyssp);
1253
1254 *++yyvsp = yyval;
1255
1256
1257 /* Now `shift' the result of the reduction. Determine what state
1258 that goes to, based on the state we popped back to and the rule
1259 number reduced by. */
1260
1261 yyn = yyr1[yyn];
1262
1263 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
1264 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
1265 yystate = yytable[yystate];
1266 else
1267 yystate = yydefgoto[yyn - YYNTOKENS];
1268
1269 goto yynewstate;
1270
1271
1272 /*------------------------------------.
1273 | yyerrlab -- here on detecting error |
1274 `------------------------------------*/
1275 yyerrlab:
1276 /* If not already recovering from an error, report this error. */
1277 if (!yyerrstatus)
1278 {
1279 ++yynerrs;
1280 #if YYERROR_VERBOSE
1281 yyn = yypact[yystate];
1282
1283 if (YYPACT_NINF < yyn && yyn < YYLAST)
1284 {
1285 YYSIZE_T yysize = 0;
1286 int yytype = YYTRANSLATE (yychar);
1287 const char* yyprefix;
1288 char *yymsg;
1289 int yyx;
1290
1291 /* Start YYX at -YYN if negative to avoid negative indexes in
1292 YYCHECK. */
1293 int yyxbegin = yyn < 0 ? -yyn : 0;
1294
1295 /* Stay within bounds of both yycheck and yytname. */
1296 int yychecklim = YYLAST - yyn;
1297 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1298 int yycount = 0;
1299
1300 yyprefix = ", expecting ";
1301 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1302 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1303 {
1304 yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
1305 yycount += 1;
1306 if (yycount == 5)
1307 {
1308 yysize = 0;
1309 break;
1310 }
1311 }
1312 yysize += (sizeof ("syntax error, unexpected ")
1313 + yystrlen (yytname[yytype]));
1314 yymsg = (char *) YYSTACK_ALLOC (yysize);
1315 if (yymsg != 0)
1316 {
1317 char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
1318 yyp = yystpcpy (yyp, yytname[yytype]);
1319
1320 if (yycount < 5)
1321 {
1322 yyprefix = ", expecting ";
1323 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1324 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1325 {
1326 yyp = yystpcpy (yyp, yyprefix);
1327 yyp = yystpcpy (yyp, yytname[yyx]);
1328 yyprefix = " or ";
1329 }
1330 }
1331 yyerror (yymsg);
1332 YYSTACK_FREE (yymsg);
1333 }
1334 else
1335 yyerror ("syntax error; also virtual memory exhausted");
1336 }
1337 else
1338 #endif /* YYERROR_VERBOSE */
1339 yyerror ("syntax error");
1340 }
1341
1342
1343
1344 if (yyerrstatus == 3)
1345 {
1346 /* If just tried and failed to reuse lookahead token after an
1347 error, discard it. */
1348
1349 if (yychar <= YYEOF)
1350 {
1351 /* If at end of input, pop the error token,
1352 then the rest of the stack, then return failure. */
1353 if (yychar == YYEOF)
1354 for (;;)
1355 {
1356 YYPOPSTACK;
1357 if (yyssp == yyss)
1358 YYABORT;
1359 YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
1360 yydestruct (yystos[*yyssp], yyvsp);
1361 }
1362 }
1363 else
1364 {
1365 YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
1366 yydestruct (yytoken, &yylval);
1367 yychar = YYEMPTY;
1368
1369 }
1370 }
1371
1372 /* Else will try to reuse lookahead token after shifting the error
1373 token. */
1374 goto yyerrlab1;
1375
1376
1377 /*---------------------------------------------------.
1378 | yyerrorlab -- error raised explicitly by YYERROR. |
1379 `---------------------------------------------------*/
1380 yyerrorlab:
1381
1382 #ifdef __GNUC__
1383 /* Pacify GCC when the user code never invokes YYERROR and the label
1384 yyerrorlab therefore never appears in user code. */
1385 if (0)
1386 goto yyerrorlab;
1387 #endif
1388
1389 yyvsp -= yylen;
1390 yyssp -= yylen;
1391 yystate = *yyssp;
1392 goto yyerrlab1;
1393
1394
1395 /*-------------------------------------------------------------.
1396 | yyerrlab1 -- common code for both syntax error and YYERROR. |
1397 `-------------------------------------------------------------*/
1398 yyerrlab1:
1399 yyerrstatus = 3; /* Each real token shifted decrements this. */
1400
1401 for (;;)
1402 {
1403 yyn = yypact[yystate];
1404 if (yyn != YYPACT_NINF)
1405 {
1406 yyn += YYTERROR;
1407 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
1408 {
1409 yyn = yytable[yyn];
1410 if (0 < yyn)
1411 break;
1412 }
1413 }
1414
1415 /* Pop the current state because it cannot handle the error token. */
1416 if (yyssp == yyss)
1417 YYABORT;
1418
1419 YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
1420 yydestruct (yystos[yystate], yyvsp);
1421 YYPOPSTACK;
1422 yystate = *yyssp;
1423 YY_STACK_PRINT (yyss, yyssp);
1424 }
1425
1426 if (yyn == YYFINAL)
1427 YYACCEPT;
1428
1429 YYDPRINTF ((stderr, "Shifting error token, "));
1430
1431 *++yyvsp = yylval;
1432
1433
1434 yystate = yyn;
1435 goto yynewstate;
1436
1437
1438 /*-------------------------------------.
1439 | yyacceptlab -- YYACCEPT comes here. |
1440 `-------------------------------------*/
1441 yyacceptlab:
1442 yyresult = 0;
1443 goto yyreturn;
1444
1445 /*-----------------------------------.
1446 | yyabortlab -- YYABORT comes here. |
1447 `-----------------------------------*/
1448 yyabortlab:
1449 yyresult = 1;
1450 goto yyreturn;
1451
1452 #ifndef yyoverflow
1453 /*----------------------------------------------.
1454 | yyoverflowlab -- parser overflow comes here. |
1455 `----------------------------------------------*/
1456 yyoverflowlab:
1457 yyerror ("parser stack overflow");
1458 yyresult = 2;
1459 /* Fall through. */
1460 #endif
1461
1462 yyreturn:
1463 #ifndef yyoverflow
1464 if (yyss != yyssa)
1465 YYSTACK_FREE (yyss);
1466 #endif
1467 return yyresult;
1468 }
1469
1470
1471 #line 233 "plural.y"
1472
1473
1474 void
1475 internal_function
1476 FREE_EXPRESSION (exp)
1477 struct expression *exp;
1478 {
1479 if (exp == NULL)
1480 return;
1481
1482 /* Handle the recursive case. */
1483 switch (exp->nargs)
1484 {
1485 case 3:
1486 FREE_EXPRESSION (exp->val.args[2]);
1487 /* FALLTHROUGH */
1488 case 2:
1489 FREE_EXPRESSION (exp->val.args[1]);
1490 /* FALLTHROUGH */
1491 case 1:
1492 FREE_EXPRESSION (exp->val.args[0]);
1493 /* FALLTHROUGH */
1494 default:
1495 break;
1496 }
1497
1498 free (exp);
1499 }
1500
1501
1502 static int
1503 yylex (lval, pexp)
1504 YYSTYPE *lval;
1505 const char **pexp;
1506 {
1507 const char *exp = *pexp;
1508 int result;
1509
1510 while (1)
1511 {
1512 if (exp[0] == '\0')
1513 {
1514 *pexp = exp;
1515 return YYEOF;
1516 }
1517
1518 if (exp[0] != ' ' && exp[0] != '\t')
1519 break;
1520
1521 ++exp;
1522 }
1523
1524 result = *exp++;
1525 switch (result)
1526 {
1527 case '0': case '1': case '2': case '3': case '4':
1528 case '5': case '6': case '7': case '8': case '9':
1529 {
1530 unsigned long int n = result - '0';
1531 while (exp[0] >= '0' && exp[0] <= '9')
1532 {
1533 n *= 10;
1534 n += exp[0] - '0';
1535 ++exp;
1536 }
1537 lval->num = n;
1538 result = NUMBER;
1539 }
1540 break;
1541
1542 case '=':
1543 if (exp[0] == '=')
1544 {
1545 ++exp;
1546 lval->op = equal;
1547 result = EQUOP2;
1548 }
1549 else
1550 result = YYERRCODE;
1551 break;
1552
1553 case '!':
1554 if (exp[0] == '=')
1555 {
1556 ++exp;
1557 lval->op = not_equal;
1558 result = EQUOP2;
1559 }
1560 break;
1561
1562 case '&':
1563 case '|':
1564 if (exp[0] == result)
1565 ++exp;
1566 else
1567 result = YYERRCODE;
1568 break;
1569
1570 case '<':
1571 if (exp[0] == '=')
1572 {
1573 ++exp;
1574 lval->op = less_or_equal;
1575 }
1576 else
1577 lval->op = less_than;
1578 result = CMPOP2;
1579 break;
1580
1581 case '>':
1582 if (exp[0] == '=')
1583 {
1584 ++exp;
1585 lval->op = greater_or_equal;
1586 }
1587 else
1588 lval->op = greater_than;
1589 result = CMPOP2;
1590 break;
1591
1592 case '*':
1593 lval->op = mult;
1594 result = MULOP2;
1595 break;
1596
1597 case '/':
1598 lval->op = divide;
1599 result = MULOP2;
1600 break;
1601
1602 case '%':
1603 lval->op = module;
1604 result = MULOP2;
1605 break;
1606
1607 case '+':
1608 lval->op = plus;
1609 result = ADDOP2;
1610 break;
1611
1612 case '-':
1613 lval->op = minus;
1614 result = ADDOP2;
1615 break;
1616
1617 case 'n':
1618 case '?':
1619 case ':':
1620 case '(':
1621 case ')':
1622 /* Nothing, just return the character. */
1623 break;
1624
1625 case ';':
1626 case '\n':
1627 case '\0':
1628 /* Be safe and let the user call this function again. */
1629 --exp;
1630 result = YYEOF;
1631 break;
1632
1633 default:
1634 result = YYERRCODE;
1635 #if YYDEBUG != 0
1636 --exp;
1637 #endif
1638 break;
1639 }
1640
1641 *pexp = exp;
1642
1643 return result;
1644 }
1645
1646
1647 static void
1648 yyerror (str)
1649 const char *str;
1650 {
1651 /* Do nothing. We don't print error messages here. */
1652 }
1653
0 %{
1 /* Expression parsing for plural form selection.
2 Copyright (C) 2000, 2001 Free Software Foundation, Inc.
3 Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
4
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published
7 by the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public
16 License along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18 USA. */
19
20 /* The bison generated parser uses alloca. AIX 3 forces us to put this
21 declaration at the beginning of the file. The declaration in bison's
22 skeleton file comes too late. This must come before <config.h>
23 because <config.h> may include arbitrary system headers. */
24 #if defined _AIX && !defined __GNUC__
25 #pragma alloca
26 #endif
27
28 #ifdef HAVE_CONFIG_H
29 # include <config.h>
30 #endif
31
32 #include <stdlib.h>
33 #include "gettextP.h"
34
35 /* Names for the libintl functions are a problem. They must not clash
36 with existing names and they should follow ANSI C. But this source
37 code is also used in GNU C Library where the names have a __
38 prefix. So we have to make a difference here. */
39 #ifdef _LIBC
40 # define FREE_EXPRESSION __gettext_free_exp
41 #else
42 # define FREE_EXPRESSION gettext_free_exp__
43 # define __gettextparse gettextparse__
44 #endif
45
46 #define YYLEX_PARAM &((struct parse_args *) arg)->cp
47 #define YYPARSE_PARAM arg
48 %}
49 %pure_parser
50 %expect 10
51
52 %union {
53 unsigned long int num;
54 enum operator op;
55 struct expression *exp;
56 }
57
58 %{
59 /* Prototypes for local functions. */
60 static struct expression *new_exp PARAMS ((int nargs, enum operator op,
61 struct expression * const *args));
62 static inline struct expression *new_exp_0 PARAMS ((enum operator op));
63 static inline struct expression *new_exp_1 PARAMS ((enum operator op,
64 struct expression *right));
65 static struct expression *new_exp_2 PARAMS ((enum operator op,
66 struct expression *left,
67 struct expression *right));
68 static inline struct expression *new_exp_3 PARAMS ((enum operator op,
69 struct expression *bexp,
70 struct expression *tbranch,
71 struct expression *fbranch));
72 static int yylex PARAMS ((YYSTYPE *lval, const char **pexp));
73 static void yyerror PARAMS ((const char *str));
74
75 /* Allocation of expressions. */
76
77 static struct expression *
78 new_exp (nargs, op, args)
79 int nargs;
80 enum operator op;
81 struct expression * const *args;
82 {
83 int i;
84 struct expression *newp;
85
86 /* If any of the argument could not be malloc'ed, just return NULL. */
87 for (i = nargs - 1; i >= 0; i--)
88 if (args[i] == NULL)
89 goto fail;
90
91 /* Allocate a new expression. */
92 newp = (struct expression *) malloc (sizeof (*newp));
93 if (newp != NULL)
94 {
95 newp->nargs = nargs;
96 newp->operation = op;
97 for (i = nargs - 1; i >= 0; i--)
98 newp->val.args[i] = args[i];
99 return newp;
100 }
101
102 fail:
103 for (i = nargs - 1; i >= 0; i--)
104 FREE_EXPRESSION (args[i]);
105
106 return NULL;
107 }
108
109 static inline struct expression *
110 new_exp_0 (op)
111 enum operator op;
112 {
113 return new_exp (0, op, NULL);
114 }
115
116 static inline struct expression *
117 new_exp_1 (op, right)
118 enum operator op;
119 struct expression *right;
120 {
121 struct expression *args[1];
122
123 args[0] = right;
124 return new_exp (1, op, args);
125 }
126
127 static struct expression *
128 new_exp_2 (op, left, right)
129 enum operator op;
130 struct expression *left;
131 struct expression *right;
132 {
133 struct expression *args[2];
134
135 args[0] = left;
136 args[1] = right;
137 return new_exp (2, op, args);
138 }
139
140 static inline struct expression *
141 new_exp_3 (op, bexp, tbranch, fbranch)
142 enum operator op;
143 struct expression *bexp;
144 struct expression *tbranch;
145 struct expression *fbranch;
146 {
147 struct expression *args[3];
148
149 args[0] = bexp;
150 args[1] = tbranch;
151 args[2] = fbranch;
152 return new_exp (3, op, args);
153 }
154
155 %}
156
157 /* This declares that all operators have the same associativity and the
158 precedence order as in C. See [Harbison, Steele: C, A Reference Manual].
159 There is no unary minus and no bitwise operators.
160 Operators with the same syntactic behaviour have been merged into a single
161 token, to save space in the array generated by bison. */
162 %right '?' /* ? */
163 %left '|' /* || */
164 %left '&' /* && */
165 %left EQUOP2 /* == != */
166 %left CMPOP2 /* < > <= >= */
167 %left ADDOP2 /* + - */
168 %left MULOP2 /* * / % */
169 %right '!' /* ! */
170
171 %token <op> EQUOP2 CMPOP2 ADDOP2 MULOP2
172 %token <num> NUMBER
173 %type <exp> exp
174
175 %%
176
177 start: exp
178 {
179 if ($1 == NULL)
180 YYABORT;
181 ((struct parse_args *) arg)->res = $1;
182 }
183 ;
184
185 exp: exp '?' exp ':' exp
186 {
187 $$ = new_exp_3 (qmop, $1, $3, $5);
188 }
189 | exp '|' exp
190 {
191 $$ = new_exp_2 (lor, $1, $3);
192 }
193 | exp '&' exp
194 {
195 $$ = new_exp_2 (land, $1, $3);
196 }
197 | exp EQUOP2 exp
198 {
199 $$ = new_exp_2 ($2, $1, $3);
200 }
201 | exp CMPOP2 exp
202 {
203 $$ = new_exp_2 ($2, $1, $3);
204 }
205 | exp ADDOP2 exp
206 {
207 $$ = new_exp_2 ($2, $1, $3);
208 }
209 | exp MULOP2 exp
210 {
211 $$ = new_exp_2 ($2, $1, $3);
212 }
213 | '!' exp
214 {
215 $$ = new_exp_1 (lnot, $2);
216 }
217 | 'n'
218 {
219 $$ = new_exp_0 (var);
220 }
221 | NUMBER
222 {
223 if (($$ = new_exp_0 (num)) != NULL)
224 $$->val.num = $1;
225 }
226 | '(' exp ')'
227 {
228 $$ = $2;
229 }
230 ;
231
232 %%
233
234 void
235 internal_function
236 FREE_EXPRESSION (exp)
237 struct expression *exp;
238 {
239 if (exp == NULL)
240 return;
241
242 /* Handle the recursive case. */
243 switch (exp->nargs)
244 {
245 case 3:
246 FREE_EXPRESSION (exp->val.args[2]);
247 /* FALLTHROUGH */
248 case 2:
249 FREE_EXPRESSION (exp->val.args[1]);
250 /* FALLTHROUGH */
251 case 1:
252 FREE_EXPRESSION (exp->val.args[0]);
253 /* FALLTHROUGH */
254 default:
255 break;
256 }
257
258 free (exp);
259 }
260
261
262 static int
263 yylex (lval, pexp)
264 YYSTYPE *lval;
265 const char **pexp;
266 {
267 const char *exp = *pexp;
268 int result;
269
270 while (1)
271 {
272 if (exp[0] == '\0')
273 {
274 *pexp = exp;
275 return YYEOF;
276 }
277
278 if (exp[0] != ' ' && exp[0] != '\t')
279 break;
280
281 ++exp;
282 }
283
284 result = *exp++;
285 switch (result)
286 {
287 case '0': case '1': case '2': case '3': case '4':
288 case '5': case '6': case '7': case '8': case '9':
289 {
290 unsigned long int n = result - '0';
291 while (exp[0] >= '0' && exp[0] <= '9')
292 {
293 n *= 10;
294 n += exp[0] - '0';
295 ++exp;
296 }
297 lval->num = n;
298 result = NUMBER;
299 }
300 break;
301
302 case '=':
303 if (exp[0] == '=')
304 {
305 ++exp;
306 lval->op = equal;
307 result = EQUOP2;
308 }
309 else
310 result = YYERRCODE;
311 break;
312
313 case '!':
314 if (exp[0] == '=')
315 {
316 ++exp;
317 lval->op = not_equal;
318 result = EQUOP2;
319 }
320 break;
321
322 case '&':
323 case '|':
324 if (exp[0] == result)
325 ++exp;
326 else
327 result = YYERRCODE;
328 break;
329
330 case '<':
331 if (exp[0] == '=')
332 {
333 ++exp;
334 lval->op = less_or_equal;
335 }
336 else
337 lval->op = less_than;
338 result = CMPOP2;
339 break;
340
341 case '>':
342 if (exp[0] == '=')
343 {
344 ++exp;
345 lval->op = greater_or_equal;
346 }
347 else
348 lval->op = greater_than;
349 result = CMPOP2;
350 break;
351
352 case '*':
353 lval->op = mult;
354 result = MULOP2;
355 break;
356
357 case '/':
358 lval->op = divide;
359 result = MULOP2;
360 break;
361
362 case '%':
363 lval->op = module;
364 result = MULOP2;
365 break;
366
367 case '+':
368 lval->op = plus;
369 result = ADDOP2;
370 break;
371
372 case '-':
373 lval->op = minus;
374 result = ADDOP2;
375 break;
376
377 case 'n':
378 case '?':
379 case ':':
380 case '(':
381 case ')':
382 /* Nothing, just return the character. */
383 break;
384
385 case ';':
386 case '\n':
387 case '\0':
388 /* Be safe and let the user call this function again. */
389 --exp;
390 result = YYEOF;
391 break;
392
393 default:
394 result = YYERRCODE;
395 #if YYDEBUG != 0
396 --exp;
397 #endif
398 break;
399 }
400
401 *pexp = exp;
402
403 return result;
404 }
405
406
407 static void
408 yyerror (str)
409 const char *str;
410 {
411 /* Do nothing. We don't print error messages here. */
412 }
0 # Add this package to a list of references stored in a text file.
1 #
2 # Copyright (C) 2000 Free Software Foundation, Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU Library General Public License as published
6 # by the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Library General Public License for more details.
13 #
14 # You should have received a copy of the GNU Library General Public
15 # License along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 # USA.
18 #
19 # Written by Bruno Haible <haible@clisp.cons.org>.
20 #
21 /^# Packages using this file: / {
22 s/# Packages using this file://
23 ta
24 :a
25 s/ @PACKAGE@ / @PACKAGE@ /
26 tb
27 s/ $/ @PACKAGE@ /
28 :b
29 s/^/# Packages using this file:/
30 }
0 # Remove this package from a list of references stored in a text file.
1 #
2 # Copyright (C) 2000 Free Software Foundation, Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU Library General Public License as published
6 # by the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Library General Public License for more details.
13 #
14 # You should have received a copy of the GNU Library General Public
15 # License along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 # USA.
18 #
19 # Written by Bruno Haible <haible@clisp.cons.org>.
20 #
21 /^# Packages using this file: / {
22 s/# Packages using this file://
23 s/ @PACKAGE@ / /
24 s/^/# Packages using this file:/
25 }
0 /* Implementation of the textdomain(3) function.
1 Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU Library General Public License as published
5 by the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
18 #ifdef HAVE_CONFIG_H
19 # include <config.h>
20 #endif
21
22 #include <stdlib.h>
23 #include <string.h>
24
25 #ifdef _LIBC
26 # include <libintl.h>
27 #else
28 # include "libgnuintl.h"
29 #endif
30 #include "gettextP.h"
31
32 #ifdef _LIBC
33 /* We have to handle multi-threaded applications. */
34 # include <bits/libc-lock.h>
35 #else
36 /* Provide dummy implementation if this is outside glibc. */
37 # define __libc_rwlock_define(CLASS, NAME)
38 # define __libc_rwlock_wrlock(NAME)
39 # define __libc_rwlock_unlock(NAME)
40 #endif
41
42 /* The internal variables in the standalone libintl.a must have different
43 names than the internal variables in GNU libc, otherwise programs
44 using libintl.a cannot be linked statically. */
45 #if !defined _LIBC
46 # define _nl_default_default_domain _nl_default_default_domain__
47 # define _nl_current_default_domain _nl_current_default_domain__
48 #endif
49
50 /* @@ end of prolog @@ */
51
52 /* Name of the default text domain. */
53 extern const char _nl_default_default_domain[];
54
55 /* Default text domain in which entries for gettext(3) are to be found. */
56 extern const char *_nl_current_default_domain;
57
58
59 /* Names for the libintl functions are a problem. They must not clash
60 with existing names and they should follow ANSI C. But this source
61 code is also used in GNU C Library where the names have a __
62 prefix. So we have to make a difference here. */
63 #ifdef _LIBC
64 # define TEXTDOMAIN __textdomain
65 # ifndef strdup
66 # define strdup(str) __strdup (str)
67 # endif
68 #else
69 # define TEXTDOMAIN textdomain__
70 #endif
71
72 /* Lock variable to protect the global data in the gettext implementation. */
73 __libc_rwlock_define (extern, _nl_state_lock)
74
75 /* Set the current default message catalog to DOMAINNAME.
76 If DOMAINNAME is null, return the current default.
77 If DOMAINNAME is "", reset to the default of "messages". */
78 char *
79 TEXTDOMAIN (domainname)
80 const char *domainname;
81 {
82 char *new_domain;
83 char *old_domain;
84
85 /* A NULL pointer requests the current setting. */
86 if (domainname == NULL)
87 return (char *) _nl_current_default_domain;
88
89 __libc_rwlock_wrlock (_nl_state_lock);
90
91 old_domain = (char *) _nl_current_default_domain;
92
93 /* If domain name is the null string set to default domain "messages". */
94 if (domainname[0] == '\0'
95 || strcmp (domainname, _nl_default_default_domain) == 0)
96 {
97 _nl_current_default_domain = _nl_default_default_domain;
98 new_domain = (char *) _nl_current_default_domain;
99 }
100 else if (strcmp (domainname, old_domain) == 0)
101 /* This can happen and people will use it to signal that some
102 environment variable changed. */
103 new_domain = old_domain;
104 else
105 {
106 /* If the following malloc fails `_nl_current_default_domain'
107 will be NULL. This value will be returned and so signals we
108 are out of core. */
109 #if defined _LIBC || defined HAVE_STRDUP
110 new_domain = strdup (domainname);
111 #else
112 size_t len = strlen (domainname) + 1;
113 new_domain = (char *) malloc (len);
114 if (new_domain != NULL)
115 memcpy (new_domain, domainname, len);
116 #endif
117
118 if (new_domain != NULL)
119 _nl_current_default_domain = new_domain;
120 }
121
122 /* We use this possibility to signal a change of the loaded catalogs
123 since this is most likely the case and there is no other easy we
124 to do it. Do it only when the call was successful. */
125 if (new_domain != NULL)
126 {
127 ++_nl_msg_cat_cntr;
128
129 if (old_domain != new_domain && old_domain != _nl_default_default_domain)
130 free (old_domain);
131 }
132
133 __libc_rwlock_unlock (_nl_state_lock);
134
135 return new_domain;
136 }
137
138 #ifdef _LIBC
139 /* Alias for function name in GNU C Library. */
140 weak_alias (__textdomain, textdomain);
141 #endif
0 prefix=/usr
1 exec_prefix=${prefix}
2 libdir=${exec_prefix}/lib
3 includedir=${prefix}/include
4
5 Name: libhdate
6 Description: A c/cpp library for hebrew dates
7 Version: @VERSION@
8 Libs: -L${libdir} -lm -lhdate
9 Cflags: -I${includedir}
0 Summary: A library that help use hebrew dates.
1 Name: libhdate
2 Version: @VERSION@
3 Release: 1
4 License: GPL
5 Group: System Environment/Libraries
6 Source: libhdate-%{version}.tar.gz
7
8 BuildRoot: /var/tmp/%{name}-buildroot
9
10 %description
11 LibHdate is a small C,C++ library for Hebrew dates,
12 holidays, and reading sequence (parasha). It is using
13 the source code from Amos Shapir's "hdate" package fixed and
14 patched by Nadav Har'El. The Torah reading sequence
15 is from tables by Zvi Har'El.
16
17 Install libhdate to use Hebrew dates,
18 or build applications that use them.
19
20 Yaacov Zamir <kzamir@walla.co.il>
21
22 %prep
23
24 %setup
25
26 %build
27 %configure --enable-python --enable-perl --enable-pascal --with-perl-sitelib-dir=/usr/lib/perl5/site_perl --with-python-sitelib-dir=/usr/lib/python2.3
28
29 %{__make} %{?_smp_mflags}
30
31 %install
32 %__make DESTDIR=$RPM_BUILD_ROOT install
33
34 # Remove duplicate docs (oron)
35 rm -rf $RPM_BUILD_ROOT/usr/doc
36 # Remove duplicate mans (kobi)
37 rm -rf $RPM_BUILD_ROOT/usr/man
38
39 %clean
40 %__rm -r $RPM_BUILD_ROOT
41
42 %files
43 %defattr(-,root,root)
44 %{_libdir}/libhdate.so*
45 %{_prefix}/share/locale/*
46 %{_bindir}/*
47 %{_prefix}/share/man/man1/*
48
49 %doc hdate_README README AUTHORS NEWS USE ABOUT-NLS COPYING ChangeLog INSTALL TODO USE
50
51 %package devel
52 Summary: Development files for %{name}
53 Group: Development/Libraries
54 Requires: %{name} = %{version}
55
56 %description devel
57 This package contains headers and support files required
58 to build new applications with %{name}
59
60 %files devel
61 %{_libdir}/libhdate.a
62 %{_libdir}/libhdate.la
63 %{_includedir}/hdate.h
64 %{_includedir}/hdatepp.h
65 %{_libdir}/pkgconfig/*
66 %{_prefix}/share/man/man3/hdate.h.3.gz
67 %{_prefix}/share/man/man3/hdate_struct.3.gz
68
69 %package python
70 Summary: Python binding for %{name}
71 Group: Development/Libraries
72 Requires: %{name} = %{version}
73
74 %description python
75 This package contains %{name} binding to python
76
77 %files python
78 %{_libdir}/python2.3/_hdate.so
79 %{_libdir}/python2.3/hdate.py
80
81 %package perl
82 Summary: Perl binding for %{name}
83 Group: Development/Libraries
84 Requires: %{name} = %{version}
85
86 %description perl
87 This package contains %{name} binding to perl
88
89 %files perl
90 %{_libdir}/perl5/site_perl/hdate.pm
91 %{_libdir}/perl5/site_perl/auto/hdate/hdate.so
92
93 %package pascal
94 Summary: free pascal binding for %{name}
95 Group: Development/Libraries
96 Requires: %{name} = %{version}
97
98 %description pascal
99 This package contains %{name} binding to free pascal
100
101 %files pascal
102 %{_libdir}/fpc/1.9.4/units/linux/hdate/*
103
104 %post
105 /sbin/ldconfig
106
107 %postun
108 /sbin/ldconfig
109
110 %changelog
111 * Thu Mar 4 2005 Yaacov Zamir
112 - Add python and perl packages
113 - Add manfiles
114
115 * Thu Feb 24 2005 Oron Peled <oron@actcom.co.il>
116 - Split to normal runtime and -devel packages (like most
117 libraries do)
118 - Run ldconfig in post install/uninstall
119 - Remove duplicate documentation in /usr/doc (bad location
120 anyway)
121 - Run configure macro, so all dirs get their default values
122 - Use smp_mflags macro for build
123 - Change tagname from Copyright (deprecated) to License
124 - Format header tags and spell correction in description
0 # ltmain.sh - Provide generalized library-building support services.
1 # NOTE: Changing this file will not affect anything until you rerun configure.
2 #
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
4 # Free Software Foundation, Inc.
5 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 basename="s,^.*/,,g"
27
28 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
29 # is ksh but when the shell is invoked as "sh" and the current value of
30 # the _XPG environment variable is not equal to 1 (one), the special
31 # positional parameter $0, within a function call, is the name of the
32 # function.
33 progpath="$0"
34
35 # The name of this program:
36 progname=`echo "$progpath" | $SED $basename`
37 modename="$progname"
38
39 # Global variables:
40 EXIT_SUCCESS=0
41 EXIT_FAILURE=1
42
43 PROGRAM=ltmain.sh
44 PACKAGE=libtool
45 VERSION=1.5.6
46 TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $"
47
48
49 # Check that we have a working $echo.
50 if test "X$1" = X--no-reexec; then
51 # Discard the --no-reexec flag, and continue.
52 shift
53 elif test "X$1" = X--fallback-echo; then
54 # Avoid inline document here, it may be left over
55 :
56 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
57 # Yippee, $echo works!
58 :
59 else
60 # Restart under the correct shell, and then maybe $echo will work.
61 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
62 fi
63
64 if test "X$1" = X--fallback-echo; then
65 # used as fallback echo
66 shift
67 cat <<EOF
68 $*
69 EOF
70 exit $EXIT_SUCCESS
71 fi
72
73 default_mode=
74 help="Try \`$progname --help' for more information."
75 magic="%%%MAGIC variable%%%"
76 mkdir="mkdir"
77 mv="mv -f"
78 rm="rm -f"
79
80 # Sed substitution that helps us do robust quoting. It backslashifies
81 # metacharacters that are still active within double-quoted strings.
82 Xsed="${SED}"' -e 1s/^X//'
83 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
84 # test EBCDIC or ASCII
85 case `echo A|tr A '\301'` in
86 A) # EBCDIC based system
87 SP2NL="tr '\100' '\n'"
88 NL2SP="tr '\r\n' '\100\100'"
89 ;;
90 *) # Assume ASCII based system
91 SP2NL="tr '\040' '\012'"
92 NL2SP="tr '\015\012' '\040\040'"
93 ;;
94 esac
95
96 # NLS nuisances.
97 # Only set LANG and LC_ALL to C if already set.
98 # These must not be set unconditionally because not all systems understand
99 # e.g. LANG=C (notably SCO).
100 # We save the old values to restore during execute mode.
101 if test "${LC_ALL+set}" = set; then
102 save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
103 fi
104 if test "${LANG+set}" = set; then
105 save_LANG="$LANG"; LANG=C; export LANG
106 fi
107
108 # Make sure IFS has a sensible default
109 : ${IFS="
110 "}
111
112 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
113 $echo "$modename: not configured to build any kind of library" 1>&2
114 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
115 exit $EXIT_FAILURE
116 fi
117
118 # Global variables.
119 mode=$default_mode
120 nonopt=
121 prev=
122 prevopt=
123 run=
124 show="$echo"
125 show_help=
126 execute_dlfiles=
127 lo2o="s/\\.lo\$/.${objext}/"
128 o2lo="s/\\.${objext}\$/.lo/"
129
130 #####################################
131 # Shell function definitions:
132 # This seems to be the best place for them
133
134 # func_win32_libid arg
135 # return the library type of file 'arg'
136 #
137 # Need a lot of goo to handle *both* DLLs and import libs
138 # Has to be a shell function in order to 'eat' the argument
139 # that is supplied when $file_magic_command is called.
140 func_win32_libid () {
141 win32_libid_type="unknown"
142 win32_fileres=`file -L $1 2>/dev/null`
143 case $win32_fileres in
144 *ar\ archive\ import\ library*) # definitely import
145 win32_libid_type="x86 archive import"
146 ;;
147 *ar\ archive*) # could be an import, or static
148 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
149 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
150 win32_nmres=`eval $NM -f posix -A $1 | \
151 sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
152 if test "X$win32_nmres" = "Ximport" ; then
153 win32_libid_type="x86 archive import"
154 else
155 win32_libid_type="x86 archive static"
156 fi
157 fi
158 ;;
159 *DLL*)
160 win32_libid_type="x86 DLL"
161 ;;
162 *executable*) # but shell scripts are "executable" too...
163 case $win32_fileres in
164 *MS\ Windows\ PE\ Intel*)
165 win32_libid_type="x86 DLL"
166 ;;
167 esac
168 ;;
169 esac
170 $echo $win32_libid_type
171 }
172
173
174 # func_infer_tag arg
175 # Infer tagged configuration to use if any are available and
176 # if one wasn't chosen via the "--tag" command line option.
177 # Only attempt this if the compiler in the base compile
178 # command doesn't match the default compiler.
179 # arg is usually of the form 'gcc ...'
180 func_infer_tag () {
181 if test -n "$available_tags" && test -z "$tagname"; then
182 CC_quoted=
183 for arg in $CC; do
184 case $arg in
185 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
186 arg="\"$arg\""
187 ;;
188 esac
189 CC_quoted="$CC_quoted $arg"
190 done
191 case $@ in
192 # Blanks in the command may have been stripped by the calling shell,
193 # but not from the CC environment variable when configure was run.
194 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
195 # Blanks at the start of $base_compile will cause this to fail
196 # if we don't check for them as well.
197 *)
198 for z in $available_tags; do
199 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
200 # Evaluate the configuration.
201 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
202 CC_quoted=
203 for arg in $CC; do
204 # Double-quote args containing other shell metacharacters.
205 case $arg in
206 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
207 arg="\"$arg\""
208 ;;
209 esac
210 CC_quoted="$CC_quoted $arg"
211 done
212 case "$@ " in
213 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
214 # The compiler in the base compile command matches
215 # the one in the tagged configuration.
216 # Assume this is the tagged configuration we want.
217 tagname=$z
218 break
219 ;;
220 esac
221 fi
222 done
223 # If $tagname still isn't set, then no tagged configuration
224 # was found and let the user know that the "--tag" command
225 # line option must be used.
226 if test -z "$tagname"; then
227 $echo "$modename: unable to infer tagged configuration"
228 $echo "$modename: specify a tag with \`--tag'" 1>&2
229 exit $EXIT_FAILURE
230 # else
231 # $echo "$modename: using $tagname tagged configuration"
232 fi
233 ;;
234 esac
235 fi
236 }
237 # End of Shell function definitions
238 #####################################
239
240 # Darwin sucks
241 eval std_shrext=\"$shrext_cmds\"
242
243 # Parse our command line options once, thoroughly.
244 while test "$#" -gt 0
245 do
246 arg="$1"
247 shift
248
249 case $arg in
250 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
251 *) optarg= ;;
252 esac
253
254 # If the previous option needs an argument, assign it.
255 if test -n "$prev"; then
256 case $prev in
257 execute_dlfiles)
258 execute_dlfiles="$execute_dlfiles $arg"
259 ;;
260 tag)
261 tagname="$arg"
262 preserve_args="${preserve_args}=$arg"
263
264 # Check whether tagname contains only valid characters
265 case $tagname in
266 *[!-_A-Za-z0-9,/]*)
267 $echo "$progname: invalid tag name: $tagname" 1>&2
268 exit $EXIT_FAILURE
269 ;;
270 esac
271
272 case $tagname in
273 CC)
274 # Don't test for the "default" C tag, as we know, it's there, but
275 # not specially marked.
276 ;;
277 *)
278 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
279 taglist="$taglist $tagname"
280 # Evaluate the configuration.
281 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
282 else
283 $echo "$progname: ignoring unknown tag $tagname" 1>&2
284 fi
285 ;;
286 esac
287 ;;
288 *)
289 eval "$prev=\$arg"
290 ;;
291 esac
292
293 prev=
294 prevopt=
295 continue
296 fi
297
298 # Have we seen a non-optional argument yet?
299 case $arg in
300 --help)
301 show_help=yes
302 ;;
303
304 --version)
305 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
306 $echo
307 $echo "Copyright (C) 2003 Free Software Foundation, Inc."
308 $echo "This is free software; see the source for copying conditions. There is NO"
309 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
310 exit $EXIT_SUCCESS
311 ;;
312
313 --config)
314 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
315 # Now print the configurations for the tags.
316 for tagname in $taglist; do
317 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
318 done
319 exit $EXIT_SUCCESS
320 ;;
321
322 --debug)
323 $echo "$progname: enabling shell trace mode"
324 set -x
325 preserve_args="$preserve_args $arg"
326 ;;
327
328 --dry-run | -n)
329 run=:
330 ;;
331
332 --features)
333 $echo "host: $host"
334 if test "$build_libtool_libs" = yes; then
335 $echo "enable shared libraries"
336 else
337 $echo "disable shared libraries"
338 fi
339 if test "$build_old_libs" = yes; then
340 $echo "enable static libraries"
341 else
342 $echo "disable static libraries"
343 fi
344 exit $EXIT_SUCCESS
345 ;;
346
347 --finish) mode="finish" ;;
348
349 --mode) prevopt="--mode" prev=mode ;;
350 --mode=*) mode="$optarg" ;;
351
352 --preserve-dup-deps) duplicate_deps="yes" ;;
353
354 --quiet | --silent)
355 show=:
356 preserve_args="$preserve_args $arg"
357 ;;
358
359 --tag) prevopt="--tag" prev=tag ;;
360 --tag=*)
361 set tag "$optarg" ${1+"$@"}
362 shift
363 prev=tag
364 preserve_args="$preserve_args --tag"
365 ;;
366
367 -dlopen)
368 prevopt="-dlopen"
369 prev=execute_dlfiles
370 ;;
371
372 -*)
373 $echo "$modename: unrecognized option \`$arg'" 1>&2
374 $echo "$help" 1>&2
375 exit $EXIT_FAILURE
376 ;;
377
378 *)
379 nonopt="$arg"
380 break
381 ;;
382 esac
383 done
384
385 if test -n "$prevopt"; then
386 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
387 $echo "$help" 1>&2
388 exit $EXIT_FAILURE
389 fi
390
391 # If this variable is set in any of the actions, the command in it
392 # will be execed at the end. This prevents here-documents from being
393 # left over by shells.
394 exec_cmd=
395
396 if test -z "$show_help"; then
397
398 # Infer the operation mode.
399 if test -z "$mode"; then
400 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
401 $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
402 case $nonopt in
403 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
404 mode=link
405 for arg
406 do
407 case $arg in
408 -c)
409 mode=compile
410 break
411 ;;
412 esac
413 done
414 ;;
415 *db | *dbx | *strace | *truss)
416 mode=execute
417 ;;
418 *install*|cp|mv)
419 mode=install
420 ;;
421 *rm)
422 mode=uninstall
423 ;;
424 *)
425 # If we have no mode, but dlfiles were specified, then do execute mode.
426 test -n "$execute_dlfiles" && mode=execute
427
428 # Just use the default operation mode.
429 if test -z "$mode"; then
430 if test -n "$nonopt"; then
431 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
432 else
433 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
434 fi
435 fi
436 ;;
437 esac
438 fi
439
440 # Only execute mode is allowed to have -dlopen flags.
441 if test -n "$execute_dlfiles" && test "$mode" != execute; then
442 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
443 $echo "$help" 1>&2
444 exit $EXIT_FAILURE
445 fi
446
447 # Change the help message to a mode-specific one.
448 generic_help="$help"
449 help="Try \`$modename --help --mode=$mode' for more information."
450
451 # These modes are in order of execution frequency so that they run quickly.
452 case $mode in
453 # libtool compile mode
454 compile)
455 modename="$modename: compile"
456 # Get the compilation command and the source file.
457 base_compile=
458 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
459 suppress_opt=yes
460 suppress_output=
461 arg_mode=normal
462 libobj=
463 later=
464
465 for arg
466 do
467 case "$arg_mode" in
468 arg )
469 # do not "continue". Instead, add this to base_compile
470 lastarg="$arg"
471 arg_mode=normal
472 ;;
473
474 target )
475 libobj="$arg"
476 arg_mode=normal
477 continue
478 ;;
479
480 normal )
481 # Accept any command-line options.
482 case $arg in
483 -o)
484 if test -n "$libobj" ; then
485 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
486 exit $EXIT_FAILURE
487 fi
488 arg_mode=target
489 continue
490 ;;
491
492 -static | -prefer-pic | -prefer-non-pic)
493 later="$later $arg"
494 continue
495 ;;
496
497 -no-suppress)
498 suppress_opt=no
499 continue
500 ;;
501
502 -Xcompiler)
503 arg_mode=arg # the next one goes into the "base_compile" arg list
504 continue # The current "srcfile" will either be retained or
505 ;; # replaced later. I would guess that would be a bug.
506
507 -Wc,*)
508 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
509 lastarg=
510 save_ifs="$IFS"; IFS=','
511 for arg in $args; do
512 IFS="$save_ifs"
513
514 # Double-quote args containing other shell metacharacters.
515 # Many Bourne shells cannot handle close brackets correctly
516 # in scan sets, so we specify it separately.
517 case $arg in
518 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
519 arg="\"$arg\""
520 ;;
521 esac
522 lastarg="$lastarg $arg"
523 done
524 IFS="$save_ifs"
525 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
526
527 # Add the arguments to base_compile.
528 base_compile="$base_compile $lastarg"
529 continue
530 ;;
531
532 * )
533 # Accept the current argument as the source file.
534 # The previous "srcfile" becomes the current argument.
535 #
536 lastarg="$srcfile"
537 srcfile="$arg"
538 ;;
539 esac # case $arg
540 ;;
541 esac # case $arg_mode
542
543 # Aesthetically quote the previous argument.
544 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
545
546 case $lastarg in
547 # Double-quote args containing other shell metacharacters.
548 # Many Bourne shells cannot handle close brackets correctly
549 # in scan sets, so we specify it separately.
550 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
551 lastarg="\"$lastarg\""
552 ;;
553 esac
554
555 base_compile="$base_compile $lastarg"
556 done # for arg
557
558 case $arg_mode in
559 arg)
560 $echo "$modename: you must specify an argument for -Xcompile"
561 exit $EXIT_FAILURE
562 ;;
563 target)
564 $echo "$modename: you must specify a target with \`-o'" 1>&2
565 exit $EXIT_FAILURE
566 ;;
567 *)
568 # Get the name of the library object.
569 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
570 ;;
571 esac
572
573 # Recognize several different file suffixes.
574 # If the user specifies -o file.o, it is replaced with file.lo
575 xform='[cCFSifmso]'
576 case $libobj in
577 *.ada) xform=ada ;;
578 *.adb) xform=adb ;;
579 *.ads) xform=ads ;;
580 *.asm) xform=asm ;;
581 *.c++) xform=c++ ;;
582 *.cc) xform=cc ;;
583 *.ii) xform=ii ;;
584 *.class) xform=class ;;
585 *.cpp) xform=cpp ;;
586 *.cxx) xform=cxx ;;
587 *.f90) xform=f90 ;;
588 *.for) xform=for ;;
589 *.java) xform=java ;;
590 esac
591
592 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
593
594 case $libobj in
595 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
596 *)
597 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
598 exit $EXIT_FAILURE
599 ;;
600 esac
601
602 func_infer_tag $base_compile
603
604 for arg in $later; do
605 case $arg in
606 -static)
607 build_old_libs=yes
608 continue
609 ;;
610
611 -prefer-pic)
612 pic_mode=yes
613 continue
614 ;;
615
616 -prefer-non-pic)
617 pic_mode=no
618 continue
619 ;;
620 esac
621 done
622
623 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
624 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
625 if test "X$xdir" = "X$obj"; then
626 xdir=
627 else
628 xdir=$xdir/
629 fi
630 lobj=${xdir}$objdir/$objname
631
632 if test -z "$base_compile"; then
633 $echo "$modename: you must specify a compilation command" 1>&2
634 $echo "$help" 1>&2
635 exit $EXIT_FAILURE
636 fi
637
638 # Delete any leftover library objects.
639 if test "$build_old_libs" = yes; then
640 removelist="$obj $lobj $libobj ${libobj}T"
641 else
642 removelist="$lobj $libobj ${libobj}T"
643 fi
644
645 $run $rm $removelist
646 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
647
648 # On Cygwin there's no "real" PIC flag so we must build both object types
649 case $host_os in
650 cygwin* | mingw* | pw32* | os2*)
651 pic_mode=default
652 ;;
653 esac
654 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
655 # non-PIC code in shared libraries is not supported
656 pic_mode=default
657 fi
658
659 # Calculate the filename of the output object if compiler does
660 # not support -o with -c
661 if test "$compiler_c_o" = no; then
662 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
663 lockfile="$output_obj.lock"
664 removelist="$removelist $output_obj $lockfile"
665 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
666 else
667 output_obj=
668 need_locks=no
669 lockfile=
670 fi
671
672 # Lock this critical section if it is needed
673 # We use this script file to make the link, it avoids creating a new file
674 if test "$need_locks" = yes; then
675 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
676 $show "Waiting for $lockfile to be removed"
677 sleep 2
678 done
679 elif test "$need_locks" = warn; then
680 if test -f "$lockfile"; then
681 $echo "\
682 *** ERROR, $lockfile exists and contains:
683 `cat $lockfile 2>/dev/null`
684
685 This indicates that another process is trying to use the same
686 temporary object file, and libtool could not work around it because
687 your compiler does not support \`-c' and \`-o' together. If you
688 repeat this compilation, it may succeed, by chance, but you had better
689 avoid parallel builds (make -j) in this platform, or get a better
690 compiler."
691
692 $run $rm $removelist
693 exit $EXIT_FAILURE
694 fi
695 $echo $srcfile > "$lockfile"
696 fi
697
698 if test -n "$fix_srcfile_path"; then
699 eval srcfile=\"$fix_srcfile_path\"
700 fi
701
702 $run $rm "$libobj" "${libobj}T"
703
704 # Create a libtool object file (analogous to a ".la" file),
705 # but don't create it if we're doing a dry run.
706 test -z "$run" && cat > ${libobj}T <<EOF
707 # $libobj - a libtool object file
708 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
709 #
710 # Please DO NOT delete this file!
711 # It is necessary for linking the library.
712
713 # Name of the PIC object.
714 EOF
715
716 # Only build a PIC object if we are building libtool libraries.
717 if test "$build_libtool_libs" = yes; then
718 # Without this assignment, base_compile gets emptied.
719 fbsd_hideous_sh_bug=$base_compile
720
721 if test "$pic_mode" != no; then
722 command="$base_compile $srcfile $pic_flag"
723 else
724 # Don't build PIC code
725 command="$base_compile $srcfile"
726 fi
727
728 if test ! -d "${xdir}$objdir"; then
729 $show "$mkdir ${xdir}$objdir"
730 $run $mkdir ${xdir}$objdir
731 status=$?
732 if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
733 exit $status
734 fi
735 fi
736
737 if test -z "$output_obj"; then
738 # Place PIC objects in $objdir
739 command="$command -o $lobj"
740 fi
741
742 $run $rm "$lobj" "$output_obj"
743
744 $show "$command"
745 if $run eval "$command"; then :
746 else
747 test -n "$output_obj" && $run $rm $removelist
748 exit $EXIT_FAILURE
749 fi
750
751 if test "$need_locks" = warn &&
752 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
753 $echo "\
754 *** ERROR, $lockfile contains:
755 `cat $lockfile 2>/dev/null`
756
757 but it should contain:
758 $srcfile
759
760 This indicates that another process is trying to use the same
761 temporary object file, and libtool could not work around it because
762 your compiler does not support \`-c' and \`-o' together. If you
763 repeat this compilation, it may succeed, by chance, but you had better
764 avoid parallel builds (make -j) in this platform, or get a better
765 compiler."
766
767 $run $rm $removelist
768 exit $EXIT_FAILURE
769 fi
770
771 # Just move the object if needed, then go on to compile the next one
772 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
773 $show "$mv $output_obj $lobj"
774 if $run $mv $output_obj $lobj; then :
775 else
776 error=$?
777 $run $rm $removelist
778 exit $error
779 fi
780 fi
781
782 # Append the name of the PIC object to the libtool object file.
783 test -z "$run" && cat >> ${libobj}T <<EOF
784 pic_object='$objdir/$objname'
785
786 EOF
787
788 # Allow error messages only from the first compilation.
789 if test "$suppress_opt" = yes; then
790 suppress_output=' >/dev/null 2>&1'
791 fi
792 else
793 # No PIC object so indicate it doesn't exist in the libtool
794 # object file.
795 test -z "$run" && cat >> ${libobj}T <<EOF
796 pic_object=none
797
798 EOF
799 fi
800
801 # Only build a position-dependent object if we build old libraries.
802 if test "$build_old_libs" = yes; then
803 if test "$pic_mode" != yes; then
804 # Don't build PIC code
805 command="$base_compile $srcfile"
806 else
807 command="$base_compile $srcfile $pic_flag"
808 fi
809 if test "$compiler_c_o" = yes; then
810 command="$command -o $obj"
811 fi
812
813 # Suppress compiler output if we already did a PIC compilation.
814 command="$command$suppress_output"
815 $run $rm "$obj" "$output_obj"
816 $show "$command"
817 if $run eval "$command"; then :
818 else
819 $run $rm $removelist
820 exit $EXIT_FAILURE
821 fi
822
823 if test "$need_locks" = warn &&
824 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
825 $echo "\
826 *** ERROR, $lockfile contains:
827 `cat $lockfile 2>/dev/null`
828
829 but it should contain:
830 $srcfile
831
832 This indicates that another process is trying to use the same
833 temporary object file, and libtool could not work around it because
834 your compiler does not support \`-c' and \`-o' together. If you
835 repeat this compilation, it may succeed, by chance, but you had better
836 avoid parallel builds (make -j) in this platform, or get a better
837 compiler."
838
839 $run $rm $removelist
840 exit $EXIT_FAILURE
841 fi
842
843 # Just move the object if needed
844 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
845 $show "$mv $output_obj $obj"
846 if $run $mv $output_obj $obj; then :
847 else
848 error=$?
849 $run $rm $removelist
850 exit $error
851 fi
852 fi
853
854 # Append the name of the non-PIC object the libtool object file.
855 # Only append if the libtool object file exists.
856 test -z "$run" && cat >> ${libobj}T <<EOF
857 # Name of the non-PIC object.
858 non_pic_object='$objname'
859
860 EOF
861 else
862 # Append the name of the non-PIC object the libtool object file.
863 # Only append if the libtool object file exists.
864 test -z "$run" && cat >> ${libobj}T <<EOF
865 # Name of the non-PIC object.
866 non_pic_object=none
867
868 EOF
869 fi
870
871 $run $mv "${libobj}T" "${libobj}"
872
873 # Unlock the critical section if it was locked
874 if test "$need_locks" != no; then
875 $run $rm "$lockfile"
876 fi
877
878 exit $EXIT_SUCCESS
879 ;;
880
881 # libtool link mode
882 link | relink)
883 modename="$modename: link"
884 case $host in
885 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
886 # It is impossible to link a dll without this setting, and
887 # we shouldn't force the makefile maintainer to figure out
888 # which system we are compiling for in order to pass an extra
889 # flag for every libtool invocation.
890 # allow_undefined=no
891
892 # FIXME: Unfortunately, there are problems with the above when trying
893 # to make a dll which has undefined symbols, in which case not
894 # even a static library is built. For now, we need to specify
895 # -no-undefined on the libtool link line when we can be certain
896 # that all symbols are satisfied, otherwise we get a static library.
897 allow_undefined=yes
898 ;;
899 *)
900 allow_undefined=yes
901 ;;
902 esac
903 libtool_args="$nonopt"
904 base_compile="$nonopt $@"
905 compile_command="$nonopt"
906 finalize_command="$nonopt"
907
908 compile_rpath=
909 finalize_rpath=
910 compile_shlibpath=
911 finalize_shlibpath=
912 convenience=
913 old_convenience=
914 deplibs=
915 old_deplibs=
916 compiler_flags=
917 linker_flags=
918 dllsearchpath=
919 lib_search_path=`pwd`
920 inst_prefix_dir=
921
922 avoid_version=no
923 dlfiles=
924 dlprefiles=
925 dlself=no
926 export_dynamic=no
927 export_symbols=
928 export_symbols_regex=
929 generated=
930 libobjs=
931 ltlibs=
932 module=no
933 no_install=no
934 objs=
935 non_pic_objects=
936 precious_files_regex=
937 prefer_static_libs=no
938 preload=no
939 prev=
940 prevarg=
941 release=
942 rpath=
943 xrpath=
944 perm_rpath=
945 temp_rpath=
946 thread_safe=no
947 vinfo=
948 vinfo_number=no
949
950 func_infer_tag $base_compile
951
952 # We need to know -static, to get the right output filenames.
953 for arg
954 do
955 case $arg in
956 -all-static | -static)
957 if test "X$arg" = "X-all-static"; then
958 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
959 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
960 fi
961 if test -n "$link_static_flag"; then
962 dlopen_self=$dlopen_self_static
963 fi
964 else
965 if test -z "$pic_flag" && test -n "$link_static_flag"; then
966 dlopen_self=$dlopen_self_static
967 fi
968 fi
969 build_libtool_libs=no
970 build_old_libs=yes
971 prefer_static_libs=yes
972 break
973 ;;
974 esac
975 done
976
977 # See if our shared archives depend on static archives.
978 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
979
980 # Go through the arguments, transforming them on the way.
981 while test "$#" -gt 0; do
982 arg="$1"
983 shift
984 case $arg in
985 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
986 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
987 ;;
988 *) qarg=$arg ;;
989 esac
990 libtool_args="$libtool_args $qarg"
991
992 # If the previous option needs an argument, assign it.
993 if test -n "$prev"; then
994 case $prev in
995 output)
996 compile_command="$compile_command @OUTPUT@"
997 finalize_command="$finalize_command @OUTPUT@"
998 ;;
999 esac
1000
1001 case $prev in
1002 dlfiles|dlprefiles)
1003 if test "$preload" = no; then
1004 # Add the symbol object into the linking commands.
1005 compile_command="$compile_command @SYMFILE@"
1006 finalize_command="$finalize_command @SYMFILE@"
1007 preload=yes
1008 fi
1009 case $arg in
1010 *.la | *.lo) ;; # We handle these cases below.
1011 force)
1012 if test "$dlself" = no; then
1013 dlself=needless
1014 export_dynamic=yes
1015 fi
1016 prev=
1017 continue
1018 ;;
1019 self)
1020 if test "$prev" = dlprefiles; then
1021 dlself=yes
1022 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
1023 dlself=yes
1024 else
1025 dlself=needless
1026 export_dynamic=yes
1027 fi
1028 prev=
1029 continue
1030 ;;
1031 *)
1032 if test "$prev" = dlfiles; then
1033 dlfiles="$dlfiles $arg"
1034 else
1035 dlprefiles="$dlprefiles $arg"
1036 fi
1037 prev=
1038 continue
1039 ;;
1040 esac
1041 ;;
1042 expsyms)
1043 export_symbols="$arg"
1044 if test ! -f "$arg"; then
1045 $echo "$modename: symbol file \`$arg' does not exist"
1046 exit $EXIT_FAILURE
1047 fi
1048 prev=
1049 continue
1050 ;;
1051 expsyms_regex)
1052 export_symbols_regex="$arg"
1053 prev=
1054 continue
1055 ;;
1056 inst_prefix)
1057 inst_prefix_dir="$arg"
1058 prev=
1059 continue
1060 ;;
1061 precious_regex)
1062 precious_files_regex="$arg"
1063 prev=
1064 continue
1065 ;;
1066 release)
1067 release="-$arg"
1068 prev=
1069 continue
1070 ;;
1071 objectlist)
1072 if test -f "$arg"; then
1073 save_arg=$arg
1074 moreargs=
1075 for fil in `cat $save_arg`
1076 do
1077 # moreargs="$moreargs $fil"
1078 arg=$fil
1079 # A libtool-controlled object.
1080
1081 # Check to see that this really is a libtool object.
1082 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1083 pic_object=
1084 non_pic_object=
1085
1086 # Read the .lo file
1087 # If there is no directory component, then add one.
1088 case $arg in
1089 */* | *\\*) . $arg ;;
1090 *) . ./$arg ;;
1091 esac
1092
1093 if test -z "$pic_object" || \
1094 test -z "$non_pic_object" ||
1095 test "$pic_object" = none && \
1096 test "$non_pic_object" = none; then
1097 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1098 exit $EXIT_FAILURE
1099 fi
1100
1101 # Extract subdirectory from the argument.
1102 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1103 if test "X$xdir" = "X$arg"; then
1104 xdir=
1105 else
1106 xdir="$xdir/"
1107 fi
1108
1109 if test "$pic_object" != none; then
1110 # Prepend the subdirectory the object is found in.
1111 pic_object="$xdir$pic_object"
1112
1113 if test "$prev" = dlfiles; then
1114 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1115 dlfiles="$dlfiles $pic_object"
1116 prev=
1117 continue
1118 else
1119 # If libtool objects are unsupported, then we need to preload.
1120 prev=dlprefiles
1121 fi
1122 fi
1123
1124 # CHECK ME: I think I busted this. -Ossama
1125 if test "$prev" = dlprefiles; then
1126 # Preload the old-style object.
1127 dlprefiles="$dlprefiles $pic_object"
1128 prev=
1129 fi
1130
1131 # A PIC object.
1132 libobjs="$libobjs $pic_object"
1133 arg="$pic_object"
1134 fi
1135
1136 # Non-PIC object.
1137 if test "$non_pic_object" != none; then
1138 # Prepend the subdirectory the object is found in.
1139 non_pic_object="$xdir$non_pic_object"
1140
1141 # A standard non-PIC object
1142 non_pic_objects="$non_pic_objects $non_pic_object"
1143 if test -z "$pic_object" || test "$pic_object" = none ; then
1144 arg="$non_pic_object"
1145 fi
1146 fi
1147 else
1148 # Only an error if not doing a dry-run.
1149 if test -z "$run"; then
1150 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1151 exit $EXIT_FAILURE
1152 else
1153 # Dry-run case.
1154
1155 # Extract subdirectory from the argument.
1156 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1157 if test "X$xdir" = "X$arg"; then
1158 xdir=
1159 else
1160 xdir="$xdir/"
1161 fi
1162
1163 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1164 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1165 libobjs="$libobjs $pic_object"
1166 non_pic_objects="$non_pic_objects $non_pic_object"
1167 fi
1168 fi
1169 done
1170 else
1171 $echo "$modename: link input file \`$save_arg' does not exist"
1172 exit $EXIT_FAILURE
1173 fi
1174 arg=$save_arg
1175 prev=
1176 continue
1177 ;;
1178 rpath | xrpath)
1179 # We need an absolute path.
1180 case $arg in
1181 [\\/]* | [A-Za-z]:[\\/]*) ;;
1182 *)
1183 $echo "$modename: only absolute run-paths are allowed" 1>&2
1184 exit $EXIT_FAILURE
1185 ;;
1186 esac
1187 if test "$prev" = rpath; then
1188 case "$rpath " in
1189 *" $arg "*) ;;
1190 *) rpath="$rpath $arg" ;;
1191 esac
1192 else
1193 case "$xrpath " in
1194 *" $arg "*) ;;
1195 *) xrpath="$xrpath $arg" ;;
1196 esac
1197 fi
1198 prev=
1199 continue
1200 ;;
1201 xcompiler)
1202 compiler_flags="$compiler_flags $qarg"
1203 prev=
1204 compile_command="$compile_command $qarg"
1205 finalize_command="$finalize_command $qarg"
1206 continue
1207 ;;
1208 xlinker)
1209 linker_flags="$linker_flags $qarg"
1210 compiler_flags="$compiler_flags $wl$qarg"
1211 prev=
1212 compile_command="$compile_command $wl$qarg"
1213 finalize_command="$finalize_command $wl$qarg"
1214 continue
1215 ;;
1216 xcclinker)
1217 linker_flags="$linker_flags $qarg"
1218 compiler_flags="$compiler_flags $qarg"
1219 prev=
1220 compile_command="$compile_command $qarg"
1221 finalize_command="$finalize_command $qarg"
1222 continue
1223 ;;
1224 shrext)
1225 shrext_cmds="$arg"
1226 prev=
1227 continue
1228 ;;
1229 *)
1230 eval "$prev=\"\$arg\""
1231 prev=
1232 continue
1233 ;;
1234 esac
1235 fi # test -n "$prev"
1236
1237 prevarg="$arg"
1238
1239 case $arg in
1240 -all-static)
1241 if test -n "$link_static_flag"; then
1242 compile_command="$compile_command $link_static_flag"
1243 finalize_command="$finalize_command $link_static_flag"
1244 fi
1245 continue
1246 ;;
1247
1248 -allow-undefined)
1249 # FIXME: remove this flag sometime in the future.
1250 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1251 continue
1252 ;;
1253
1254 -avoid-version)
1255 avoid_version=yes
1256 continue
1257 ;;
1258
1259 -dlopen)
1260 prev=dlfiles
1261 continue
1262 ;;
1263
1264 -dlpreopen)
1265 prev=dlprefiles
1266 continue
1267 ;;
1268
1269 -export-dynamic)
1270 export_dynamic=yes
1271 continue
1272 ;;
1273
1274 -export-symbols | -export-symbols-regex)
1275 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1276 $echo "$modename: more than one -exported-symbols argument is not allowed"
1277 exit $EXIT_FAILURE
1278 fi
1279 if test "X$arg" = "X-export-symbols"; then
1280 prev=expsyms
1281 else
1282 prev=expsyms_regex
1283 fi
1284 continue
1285 ;;
1286
1287 -inst-prefix-dir)
1288 prev=inst_prefix
1289 continue
1290 ;;
1291
1292 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
1293 # so, if we see these flags be careful not to treat them like -L
1294 -L[A-Z][A-Z]*:*)
1295 case $with_gcc/$host in
1296 no/*-*-irix* | /*-*-irix*)
1297 compile_command="$compile_command $arg"
1298 finalize_command="$finalize_command $arg"
1299 ;;
1300 esac
1301 continue
1302 ;;
1303
1304 -L*)
1305 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1306 # We need an absolute path.
1307 case $dir in
1308 [\\/]* | [A-Za-z]:[\\/]*) ;;
1309 *)
1310 absdir=`cd "$dir" && pwd`
1311 if test -z "$absdir"; then
1312 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1313 exit $EXIT_FAILURE
1314 fi
1315 dir="$absdir"
1316 ;;
1317 esac
1318 case "$deplibs " in
1319 *" -L$dir "*) ;;
1320 *)
1321 deplibs="$deplibs -L$dir"
1322 lib_search_path="$lib_search_path $dir"
1323 ;;
1324 esac
1325 case $host in
1326 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1327 case :$dllsearchpath: in
1328 *":$dir:"*) ;;
1329 *) dllsearchpath="$dllsearchpath:$dir";;
1330 esac
1331 ;;
1332 esac
1333 continue
1334 ;;
1335
1336 -l*)
1337 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1338 case $host in
1339 *-*-cygwin* | *-*-pw32* | *-*-beos*)
1340 # These systems don't actually have a C or math library (as such)
1341 continue
1342 ;;
1343 *-*-mingw* | *-*-os2*)
1344 # These systems don't actually have a C library (as such)
1345 test "X$arg" = "X-lc" && continue
1346 ;;
1347 *-*-openbsd* | *-*-freebsd*)
1348 # Do not include libc due to us having libc/libc_r.
1349 test "X$arg" = "X-lc" && continue
1350 ;;
1351 *-*-rhapsody* | *-*-darwin1.[012])
1352 # Rhapsody C and math libraries are in the System framework
1353 deplibs="$deplibs -framework System"
1354 continue
1355 esac
1356 elif test "X$arg" = "X-lc_r"; then
1357 case $host in
1358 *-*-openbsd* | *-*-freebsd*)
1359 # Do not include libc_r directly, use -pthread flag.
1360 continue
1361 ;;
1362 esac
1363 fi
1364 deplibs="$deplibs $arg"
1365 continue
1366 ;;
1367
1368 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1369 deplibs="$deplibs $arg"
1370 continue
1371 ;;
1372
1373 -module)
1374 module=yes
1375 continue
1376 ;;
1377
1378 # gcc -m* arguments should be passed to the linker via $compiler_flags
1379 # in order to pass architecture information to the linker
1380 # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
1381 # but this is not reliable with gcc because gcc may use -mfoo to
1382 # select a different linker, different libraries, etc, while
1383 # -Wl,-mfoo simply passes -mfoo to the linker.
1384 -m*)
1385 # Unknown arguments in both finalize_command and compile_command need
1386 # to be aesthetically quoted because they are evaled later.
1387 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1388 case $arg in
1389 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1390 arg="\"$arg\""
1391 ;;
1392 esac
1393 compile_command="$compile_command $arg"
1394 finalize_command="$finalize_command $arg"
1395 if test "$with_gcc" = "yes" ; then
1396 compiler_flags="$compiler_flags $arg"
1397 fi
1398 continue
1399 ;;
1400
1401 -shrext)
1402 prev=shrext
1403 continue
1404 ;;
1405
1406 -no-fast-install)
1407 fast_install=no
1408 continue
1409 ;;
1410
1411 -no-install)
1412 case $host in
1413 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1414 # The PATH hackery in wrapper scripts is required on Windows
1415 # in order for the loader to find any dlls it needs.
1416 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1417 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1418 fast_install=no
1419 ;;
1420 *) no_install=yes ;;
1421 esac
1422 continue
1423 ;;
1424
1425 -no-undefined)
1426 allow_undefined=no
1427 continue
1428 ;;
1429
1430 -objectlist)
1431 prev=objectlist
1432 continue
1433 ;;
1434
1435 -o) prev=output ;;
1436
1437 -precious-files-regex)
1438 prev=precious_regex
1439 continue
1440 ;;
1441
1442 -release)
1443 prev=release
1444 continue
1445 ;;
1446
1447 -rpath)
1448 prev=rpath
1449 continue
1450 ;;
1451
1452 -R)
1453 prev=xrpath
1454 continue
1455 ;;
1456
1457 -R*)
1458 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1459 # We need an absolute path.
1460 case $dir in
1461 [\\/]* | [A-Za-z]:[\\/]*) ;;
1462 *)
1463 $echo "$modename: only absolute run-paths are allowed" 1>&2
1464 exit $EXIT_FAILURE
1465 ;;
1466 esac
1467 case "$xrpath " in
1468 *" $dir "*) ;;
1469 *) xrpath="$xrpath $dir" ;;
1470 esac
1471 continue
1472 ;;
1473
1474 -static)
1475 # The effects of -static are defined in a previous loop.
1476 # We used to do the same as -all-static on platforms that
1477 # didn't have a PIC flag, but the assumption that the effects
1478 # would be equivalent was wrong. It would break on at least
1479 # Digital Unix and AIX.
1480 continue
1481 ;;
1482
1483 -thread-safe)
1484 thread_safe=yes
1485 continue
1486 ;;
1487
1488 -version-info)
1489 prev=vinfo
1490 continue
1491 ;;
1492 -version-number)
1493 prev=vinfo
1494 vinfo_number=yes
1495 continue
1496 ;;
1497
1498 -Wc,*)
1499 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
1500 arg=
1501 save_ifs="$IFS"; IFS=','
1502 for flag in $args; do
1503 IFS="$save_ifs"
1504 case $flag in
1505 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1506 flag="\"$flag\""
1507 ;;
1508 esac
1509 arg="$arg $wl$flag"
1510 compiler_flags="$compiler_flags $flag"
1511 done
1512 IFS="$save_ifs"
1513 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1514 ;;
1515
1516 -Wl,*)
1517 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
1518 arg=
1519 save_ifs="$IFS"; IFS=','
1520 for flag in $args; do
1521 IFS="$save_ifs"
1522 case $flag in
1523 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1524 flag="\"$flag\""
1525 ;;
1526 esac
1527 arg="$arg $wl$flag"
1528 compiler_flags="$compiler_flags $wl$flag"
1529 linker_flags="$linker_flags $flag"
1530 done
1531 IFS="$save_ifs"
1532 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1533 ;;
1534
1535 -Xcompiler)
1536 prev=xcompiler
1537 continue
1538 ;;
1539
1540 -Xlinker)
1541 prev=xlinker
1542 continue
1543 ;;
1544
1545 -XCClinker)
1546 prev=xcclinker
1547 continue
1548 ;;
1549
1550 # Some other compiler flag.
1551 -* | +*)
1552 # Unknown arguments in both finalize_command and compile_command need
1553 # to be aesthetically quoted because they are evaled later.
1554 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1555 case $arg in
1556 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1557 arg="\"$arg\""
1558 ;;
1559 esac
1560 ;;
1561
1562 *.$objext)
1563 # A standard object.
1564 objs="$objs $arg"
1565 ;;
1566
1567 *.lo)
1568 # A libtool-controlled object.
1569
1570 # Check to see that this really is a libtool object.
1571 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1572 pic_object=
1573 non_pic_object=
1574
1575 # Read the .lo file
1576 # If there is no directory component, then add one.
1577 case $arg in
1578 */* | *\\*) . $arg ;;
1579 *) . ./$arg ;;
1580 esac
1581
1582 if test -z "$pic_object" || \
1583 test -z "$non_pic_object" ||
1584 test "$pic_object" = none && \
1585 test "$non_pic_object" = none; then
1586 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1587 exit $EXIT_FAILURE
1588 fi
1589
1590 # Extract subdirectory from the argument.
1591 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1592 if test "X$xdir" = "X$arg"; then
1593 xdir=
1594 else
1595 xdir="$xdir/"
1596 fi
1597
1598 if test "$pic_object" != none; then
1599 # Prepend the subdirectory the object is found in.
1600 pic_object="$xdir$pic_object"
1601
1602 if test "$prev" = dlfiles; then
1603 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1604 dlfiles="$dlfiles $pic_object"
1605 prev=
1606 continue
1607 else
1608 # If libtool objects are unsupported, then we need to preload.
1609 prev=dlprefiles
1610 fi
1611 fi
1612
1613 # CHECK ME: I think I busted this. -Ossama
1614 if test "$prev" = dlprefiles; then
1615 # Preload the old-style object.
1616 dlprefiles="$dlprefiles $pic_object"
1617 prev=
1618 fi
1619
1620 # A PIC object.
1621 libobjs="$libobjs $pic_object"
1622 arg="$pic_object"
1623 fi
1624
1625 # Non-PIC object.
1626 if test "$non_pic_object" != none; then
1627 # Prepend the subdirectory the object is found in.
1628 non_pic_object="$xdir$non_pic_object"
1629
1630 # A standard non-PIC object
1631 non_pic_objects="$non_pic_objects $non_pic_object"
1632 if test -z "$pic_object" || test "$pic_object" = none ; then
1633 arg="$non_pic_object"
1634 fi
1635 fi
1636 else
1637 # Only an error if not doing a dry-run.
1638 if test -z "$run"; then
1639 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1640 exit $EXIT_FAILURE
1641 else
1642 # Dry-run case.
1643
1644 # Extract subdirectory from the argument.
1645 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1646 if test "X$xdir" = "X$arg"; then
1647 xdir=
1648 else
1649 xdir="$xdir/"
1650 fi
1651
1652 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1653 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1654 libobjs="$libobjs $pic_object"
1655 non_pic_objects="$non_pic_objects $non_pic_object"
1656 fi
1657 fi
1658 ;;
1659
1660 *.$libext)
1661 # An archive.
1662 deplibs="$deplibs $arg"
1663 old_deplibs="$old_deplibs $arg"
1664 continue
1665 ;;
1666
1667 *.la)
1668 # A libtool-controlled library.
1669
1670 if test "$prev" = dlfiles; then
1671 # This library was specified with -dlopen.
1672 dlfiles="$dlfiles $arg"
1673 prev=
1674 elif test "$prev" = dlprefiles; then
1675 # The library was specified with -dlpreopen.
1676 dlprefiles="$dlprefiles $arg"
1677 prev=
1678 else
1679 deplibs="$deplibs $arg"
1680 fi
1681 continue
1682 ;;
1683
1684 # Some other compiler argument.
1685 *)
1686 # Unknown arguments in both finalize_command and compile_command need
1687 # to be aesthetically quoted because they are evaled later.
1688 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1689 case $arg in
1690 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1691 arg="\"$arg\""
1692 ;;
1693 esac
1694 ;;
1695 esac # arg
1696
1697 # Now actually substitute the argument into the commands.
1698 if test -n "$arg"; then
1699 compile_command="$compile_command $arg"
1700 finalize_command="$finalize_command $arg"
1701 fi
1702 done # argument parsing loop
1703
1704 if test -n "$prev"; then
1705 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1706 $echo "$help" 1>&2
1707 exit $EXIT_FAILURE
1708 fi
1709
1710 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
1711 eval arg=\"$export_dynamic_flag_spec\"
1712 compile_command="$compile_command $arg"
1713 finalize_command="$finalize_command $arg"
1714 fi
1715
1716 oldlibs=
1717 # calculate the name of the file, without its directory
1718 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
1719 libobjs_save="$libobjs"
1720
1721 if test -n "$shlibpath_var"; then
1722 # get the directories listed in $shlibpath_var
1723 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
1724 else
1725 shlib_search_path=
1726 fi
1727 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
1728 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
1729
1730 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
1731 if test "X$output_objdir" = "X$output"; then
1732 output_objdir="$objdir"
1733 else
1734 output_objdir="$output_objdir/$objdir"
1735 fi
1736 # Create the object directory.
1737 if test ! -d "$output_objdir"; then
1738 $show "$mkdir $output_objdir"
1739 $run $mkdir $output_objdir
1740 status=$?
1741 if test "$status" -ne 0 && test ! -d "$output_objdir"; then
1742 exit $status
1743 fi
1744 fi
1745
1746 # Determine the type of output
1747 case $output in
1748 "")
1749 $echo "$modename: you must specify an output file" 1>&2
1750 $echo "$help" 1>&2
1751 exit $EXIT_FAILURE
1752 ;;
1753 *.$libext) linkmode=oldlib ;;
1754 *.lo | *.$objext) linkmode=obj ;;
1755 *.la) linkmode=lib ;;
1756 *) linkmode=prog ;; # Anything else should be a program.
1757 esac
1758
1759 case $host in
1760 *cygwin* | *mingw* | *pw32*)
1761 # don't eliminate duplications in $postdeps and $predeps
1762 duplicate_compiler_generated_deps=yes
1763 ;;
1764 *)
1765 duplicate_compiler_generated_deps=$duplicate_deps
1766 ;;
1767 esac
1768 specialdeplibs=
1769
1770 libs=
1771 # Find all interdependent deplibs by searching for libraries
1772 # that are linked more than once (e.g. -la -lb -la)
1773 for deplib in $deplibs; do
1774 if test "X$duplicate_deps" = "Xyes" ; then
1775 case "$libs " in
1776 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
1777 esac
1778 fi
1779 libs="$libs $deplib"
1780 done
1781
1782 if test "$linkmode" = lib; then
1783 libs="$predeps $libs $compiler_lib_search_path $postdeps"
1784
1785 # Compute libraries that are listed more than once in $predeps
1786 # $postdeps and mark them as special (i.e., whose duplicates are
1787 # not to be eliminated).
1788 pre_post_deps=
1789 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
1790 for pre_post_dep in $predeps $postdeps; do
1791 case "$pre_post_deps " in
1792 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
1793 esac
1794 pre_post_deps="$pre_post_deps $pre_post_dep"
1795 done
1796 fi
1797 pre_post_deps=
1798 fi
1799
1800 deplibs=
1801 newdependency_libs=
1802 newlib_search_path=
1803 need_relink=no # whether we're linking any uninstalled libtool libraries
1804 notinst_deplibs= # not-installed libtool libraries
1805 notinst_path= # paths that contain not-installed libtool libraries
1806 case $linkmode in
1807 lib)
1808 passes="conv link"
1809 for file in $dlfiles $dlprefiles; do
1810 case $file in
1811 *.la) ;;
1812 *)
1813 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
1814 exit $EXIT_FAILURE
1815 ;;
1816 esac
1817 done
1818 ;;
1819 prog)
1820 compile_deplibs=
1821 finalize_deplibs=
1822 alldeplibs=no
1823 newdlfiles=
1824 newdlprefiles=
1825 passes="conv scan dlopen dlpreopen link"
1826 ;;
1827 *) passes="conv"
1828 ;;
1829 esac
1830 for pass in $passes; do
1831 if test "$linkmode,$pass" = "lib,link" ||
1832 test "$linkmode,$pass" = "prog,scan"; then
1833 libs="$deplibs"
1834 deplibs=
1835 fi
1836 if test "$linkmode" = prog; then
1837 case $pass in
1838 dlopen) libs="$dlfiles" ;;
1839 dlpreopen) libs="$dlprefiles" ;;
1840 link)
1841 libs="$deplibs %DEPLIBS%"
1842 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
1843 ;;
1844 esac
1845 fi
1846 if test "$pass" = dlopen; then
1847 # Collect dlpreopened libraries
1848 save_deplibs="$deplibs"
1849 deplibs=
1850 fi
1851 for deplib in $libs; do
1852 lib=
1853 found=no
1854 case $deplib in
1855 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1856 if test "$linkmode,$pass" = "prog,link"; then
1857 compile_deplibs="$deplib $compile_deplibs"
1858 finalize_deplibs="$deplib $finalize_deplibs"
1859 else
1860 deplibs="$deplib $deplibs"
1861 fi
1862 continue
1863 ;;
1864 -l*)
1865 if test "$linkmode" != lib && test "$linkmode" != prog; then
1866 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
1867 continue
1868 fi
1869 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1870 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
1871 for search_ext in .la $std_shrext .so .a; do
1872 # Search the libtool library
1873 lib="$searchdir/lib${name}${search_ext}"
1874 if test -f "$lib"; then
1875 if test "$search_ext" = ".la"; then
1876 found=yes
1877 else
1878 found=no
1879 fi
1880 break 2
1881 fi
1882 done
1883 done
1884 if test "$found" != yes; then
1885 # deplib doesn't seem to be a libtool library
1886 if test "$linkmode,$pass" = "prog,link"; then
1887 compile_deplibs="$deplib $compile_deplibs"
1888 finalize_deplibs="$deplib $finalize_deplibs"
1889 else
1890 deplibs="$deplib $deplibs"
1891 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
1892 fi
1893 continue
1894 else # deplib is a libtool library
1895 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
1896 # We need to do some special things here, and not later.
1897 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
1898 case " $predeps $postdeps " in
1899 *" $deplib "*)
1900 if (${SED} -e '2q' $lib |
1901 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1902 library_names=
1903 old_library=
1904 case $lib in
1905 */* | *\\*) . $lib ;;
1906 *) . ./$lib ;;
1907 esac
1908 for l in $old_library $library_names; do
1909 ll="$l"
1910 done
1911 if test "X$ll" = "X$old_library" ; then # only static version available
1912 found=no
1913 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
1914 test "X$ladir" = "X$lib" && ladir="."
1915 lib=$ladir/$old_library
1916 if test "$linkmode,$pass" = "prog,link"; then
1917 compile_deplibs="$deplib $compile_deplibs"
1918 finalize_deplibs="$deplib $finalize_deplibs"
1919 else
1920 deplibs="$deplib $deplibs"
1921 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
1922 fi
1923 continue
1924 fi
1925 fi
1926 ;;
1927 *) ;;
1928 esac
1929 fi
1930 fi
1931 ;; # -l
1932 -L*)
1933 case $linkmode in
1934 lib)
1935 deplibs="$deplib $deplibs"
1936 test "$pass" = conv && continue
1937 newdependency_libs="$deplib $newdependency_libs"
1938 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1939 ;;
1940 prog)
1941 if test "$pass" = conv; then
1942 deplibs="$deplib $deplibs"
1943 continue
1944 fi
1945 if test "$pass" = scan; then
1946 deplibs="$deplib $deplibs"
1947 else
1948 compile_deplibs="$deplib $compile_deplibs"
1949 finalize_deplibs="$deplib $finalize_deplibs"
1950 fi
1951 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1952 ;;
1953 *)
1954 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
1955 ;;
1956 esac # linkmode
1957 continue
1958 ;; # -L
1959 -R*)
1960 if test "$pass" = link; then
1961 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
1962 # Make sure the xrpath contains only unique directories.
1963 case "$xrpath " in
1964 *" $dir "*) ;;
1965 *) xrpath="$xrpath $dir" ;;
1966 esac
1967 fi
1968 deplibs="$deplib $deplibs"
1969 continue
1970 ;;
1971 *.la) lib="$deplib" ;;
1972 *.$libext)
1973 if test "$pass" = conv; then
1974 deplibs="$deplib $deplibs"
1975 continue
1976 fi
1977 case $linkmode in
1978 lib)
1979 if test "$deplibs_check_method" != pass_all; then
1980 $echo
1981 $echo "*** Warning: Trying to link with static lib archive $deplib."
1982 $echo "*** I have the capability to make that library automatically link in when"
1983 $echo "*** you link to this library. But I can only do this if you have a"
1984 $echo "*** shared version of the library, which you do not appear to have"
1985 $echo "*** because the file extensions .$libext of this argument makes me believe"
1986 $echo "*** that it is just a static archive that I should not used here."
1987 else
1988 $echo
1989 $echo "*** Warning: Linking the shared library $output against the"
1990 $echo "*** static library $deplib is not portable!"
1991 deplibs="$deplib $deplibs"
1992 fi
1993 continue
1994 ;;
1995 prog)
1996 if test "$pass" != link; then
1997 deplibs="$deplib $deplibs"
1998 else
1999 compile_deplibs="$deplib $compile_deplibs"
2000 finalize_deplibs="$deplib $finalize_deplibs"
2001 fi
2002 continue
2003 ;;
2004 esac # linkmode
2005 ;; # *.$libext
2006 *.lo | *.$objext)
2007 if test "$pass" = conv; then
2008 deplibs="$deplib $deplibs"
2009 elif test "$linkmode" = prog; then
2010 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2011 # If there is no dlopen support or we're linking statically,
2012 # we need to preload.
2013 newdlprefiles="$newdlprefiles $deplib"
2014 compile_deplibs="$deplib $compile_deplibs"
2015 finalize_deplibs="$deplib $finalize_deplibs"
2016 else
2017 newdlfiles="$newdlfiles $deplib"
2018 fi
2019 fi
2020 continue
2021 ;;
2022 %DEPLIBS%)
2023 alldeplibs=yes
2024 continue
2025 ;;
2026 esac # case $deplib
2027 if test "$found" = yes || test -f "$lib"; then :
2028 else
2029 $echo "$modename: cannot find the library \`$lib'" 1>&2
2030 exit $EXIT_FAILURE
2031 fi
2032
2033 # Check to see that this really is a libtool archive.
2034 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2035 else
2036 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2037 exit $EXIT_FAILURE
2038 fi
2039
2040 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2041 test "X$ladir" = "X$lib" && ladir="."
2042
2043 dlname=
2044 dlopen=
2045 dlpreopen=
2046 libdir=
2047 library_names=
2048 old_library=
2049 # If the library was installed with an old release of libtool,
2050 # it will not redefine variables installed, or shouldnotlink
2051 installed=yes
2052 shouldnotlink=no
2053
2054 # Read the .la file
2055 case $lib in
2056 */* | *\\*) . $lib ;;
2057 *) . ./$lib ;;
2058 esac
2059
2060 if test "$linkmode,$pass" = "lib,link" ||
2061 test "$linkmode,$pass" = "prog,scan" ||
2062 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
2063 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
2064 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
2065 fi
2066
2067 if test "$pass" = conv; then
2068 # Only check for convenience libraries
2069 deplibs="$lib $deplibs"
2070 if test -z "$libdir"; then
2071 if test -z "$old_library"; then
2072 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2073 exit $EXIT_FAILURE
2074 fi
2075 # It is a libtool convenience library, so add in its objects.
2076 convenience="$convenience $ladir/$objdir/$old_library"
2077 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2078 tmp_libs=
2079 for deplib in $dependency_libs; do
2080 deplibs="$deplib $deplibs"
2081 if test "X$duplicate_deps" = "Xyes" ; then
2082 case "$tmp_libs " in
2083 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2084 esac
2085 fi
2086 tmp_libs="$tmp_libs $deplib"
2087 done
2088 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2089 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2090 exit $EXIT_FAILURE
2091 fi
2092 continue
2093 fi # $pass = conv
2094
2095
2096 # Get the name of the library we link against.
2097 linklib=
2098 for l in $old_library $library_names; do
2099 linklib="$l"
2100 done
2101 if test -z "$linklib"; then
2102 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2103 exit $EXIT_FAILURE
2104 fi
2105
2106 # This library was specified with -dlopen.
2107 if test "$pass" = dlopen; then
2108 if test -z "$libdir"; then
2109 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2110 exit $EXIT_FAILURE
2111 fi
2112 if test -z "$dlname" ||
2113 test "$dlopen_support" != yes ||
2114 test "$build_libtool_libs" = no; then
2115 # If there is no dlname, no dlopen support or we're linking
2116 # statically, we need to preload. We also need to preload any
2117 # dependent libraries so libltdl's deplib preloader doesn't
2118 # bomb out in the load deplibs phase.
2119 dlprefiles="$dlprefiles $lib $dependency_libs"
2120 else
2121 newdlfiles="$newdlfiles $lib"
2122 fi
2123 continue
2124 fi # $pass = dlopen
2125
2126 # We need an absolute path.
2127 case $ladir in
2128 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
2129 *)
2130 abs_ladir=`cd "$ladir" && pwd`
2131 if test -z "$abs_ladir"; then
2132 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2133 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
2134 abs_ladir="$ladir"
2135 fi
2136 ;;
2137 esac
2138 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
2139
2140 # Find the relevant object directory and library name.
2141 if test "X$installed" = Xyes; then
2142 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2143 $echo "$modename: warning: library \`$lib' was moved." 1>&2
2144 dir="$ladir"
2145 absdir="$abs_ladir"
2146 libdir="$abs_ladir"
2147 else
2148 dir="$libdir"
2149 absdir="$libdir"
2150 fi
2151 else
2152 dir="$ladir/$objdir"
2153 absdir="$abs_ladir/$objdir"
2154 # Remove this search path later
2155 notinst_path="$notinst_path $abs_ladir"
2156 fi # $installed = yes
2157 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2158
2159 # This library was specified with -dlpreopen.
2160 if test "$pass" = dlpreopen; then
2161 if test -z "$libdir"; then
2162 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2163 exit $EXIT_FAILURE
2164 fi
2165 # Prefer using a static library (so that no silly _DYNAMIC symbols
2166 # are required to link).
2167 if test -n "$old_library"; then
2168 newdlprefiles="$newdlprefiles $dir/$old_library"
2169 # Otherwise, use the dlname, so that lt_dlopen finds it.
2170 elif test -n "$dlname"; then
2171 newdlprefiles="$newdlprefiles $dir/$dlname"
2172 else
2173 newdlprefiles="$newdlprefiles $dir/$linklib"
2174 fi
2175 fi # $pass = dlpreopen
2176
2177 if test -z "$libdir"; then
2178 # Link the convenience library
2179 if test "$linkmode" = lib; then
2180 deplibs="$dir/$old_library $deplibs"
2181 elif test "$linkmode,$pass" = "prog,link"; then
2182 compile_deplibs="$dir/$old_library $compile_deplibs"
2183 finalize_deplibs="$dir/$old_library $finalize_deplibs"
2184 else
2185 deplibs="$lib $deplibs" # used for prog,scan pass
2186 fi
2187 continue
2188 fi
2189
2190
2191 if test "$linkmode" = prog && test "$pass" != link; then
2192 newlib_search_path="$newlib_search_path $ladir"
2193 deplibs="$lib $deplibs"
2194
2195 linkalldeplibs=no
2196 if test "$link_all_deplibs" != no || test -z "$library_names" ||
2197 test "$build_libtool_libs" = no; then
2198 linkalldeplibs=yes
2199 fi
2200
2201 tmp_libs=
2202 for deplib in $dependency_libs; do
2203 case $deplib in
2204 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
2205 esac
2206 # Need to link against all dependency_libs?
2207 if test "$linkalldeplibs" = yes; then
2208 deplibs="$deplib $deplibs"
2209 else
2210 # Need to hardcode shared library paths
2211 # or/and link against static libraries
2212 newdependency_libs="$deplib $newdependency_libs"
2213 fi
2214 if test "X$duplicate_deps" = "Xyes" ; then
2215 case "$tmp_libs " in
2216 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2217 esac
2218 fi
2219 tmp_libs="$tmp_libs $deplib"
2220 done # for deplib
2221 continue
2222 fi # $linkmode = prog...
2223
2224 if test "$linkmode,$pass" = "prog,link"; then
2225 if test -n "$library_names" &&
2226 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2227 # We need to hardcode the library path
2228 if test -n "$shlibpath_var"; then
2229 # Make sure the rpath contains only unique directories.
2230 case "$temp_rpath " in
2231 *" $dir "*) ;;
2232 *" $absdir "*) ;;
2233 *) temp_rpath="$temp_rpath $dir" ;;
2234 esac
2235 fi
2236
2237 # Hardcode the library path.
2238 # Skip directories that are in the system default run-time
2239 # search path.
2240 case " $sys_lib_dlsearch_path " in
2241 *" $absdir "*) ;;
2242 *)
2243 case "$compile_rpath " in
2244 *" $absdir "*) ;;
2245 *) compile_rpath="$compile_rpath $absdir"
2246 esac
2247 ;;
2248 esac
2249 case " $sys_lib_dlsearch_path " in
2250 *" $libdir "*) ;;
2251 *)
2252 case "$finalize_rpath " in
2253 *" $libdir "*) ;;
2254 *) finalize_rpath="$finalize_rpath $libdir"
2255 esac
2256 ;;
2257 esac
2258 fi # $linkmode,$pass = prog,link...
2259
2260 if test "$alldeplibs" = yes &&
2261 { test "$deplibs_check_method" = pass_all ||
2262 { test "$build_libtool_libs" = yes &&
2263 test -n "$library_names"; }; }; then
2264 # We only need to search for static libraries
2265 continue
2266 fi
2267 fi
2268
2269 link_static=no # Whether the deplib will be linked statically
2270 if test -n "$library_names" &&
2271 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2272 if test "$installed" = no; then
2273 notinst_deplibs="$notinst_deplibs $lib"
2274 need_relink=yes
2275 fi
2276 # This is a shared library
2277
2278 # Warn about portability, can't link against -module's on
2279 # some systems (darwin)
2280 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2281 $echo
2282 if test "$linkmode" = prog; then
2283 $echo "*** Warning: Linking the executable $output against the loadable module"
2284 else
2285 $echo "*** Warning: Linking the shared library $output against the loadable module"
2286 fi
2287 $echo "*** $linklib is not portable!"
2288 fi
2289 if test "$linkmode" = lib &&
2290 test "$hardcode_into_libs" = yes; then
2291 # Hardcode the library path.
2292 # Skip directories that are in the system default run-time
2293 # search path.
2294 case " $sys_lib_dlsearch_path " in
2295 *" $absdir "*) ;;
2296 *)
2297 case "$compile_rpath " in
2298 *" $absdir "*) ;;
2299 *) compile_rpath="$compile_rpath $absdir"
2300 esac
2301 ;;
2302 esac
2303 case " $sys_lib_dlsearch_path " in
2304 *" $libdir "*) ;;
2305 *)
2306 case "$finalize_rpath " in
2307 *" $libdir "*) ;;
2308 *) finalize_rpath="$finalize_rpath $libdir"
2309 esac
2310 ;;
2311 esac
2312 fi
2313
2314 if test -n "$old_archive_from_expsyms_cmds"; then
2315 # figure out the soname
2316 set dummy $library_names
2317 realname="$2"
2318 shift; shift
2319 libname=`eval \\$echo \"$libname_spec\"`
2320 # use dlname if we got it. it's perfectly good, no?
2321 if test -n "$dlname"; then
2322 soname="$dlname"
2323 elif test -n "$soname_spec"; then
2324 # bleh windows
2325 case $host in
2326 *cygwin* | mingw*)
2327 major=`expr $current - $age`
2328 versuffix="-$major"
2329 ;;
2330 esac
2331 eval soname=\"$soname_spec\"
2332 else
2333 soname="$realname"
2334 fi
2335
2336 # Make a new name for the extract_expsyms_cmds to use
2337 soroot="$soname"
2338 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2339 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
2340
2341 # If the library has no export list, then create one now
2342 if test -f "$output_objdir/$soname-def"; then :
2343 else
2344 $show "extracting exported symbol list from \`$soname'"
2345 save_ifs="$IFS"; IFS='~'
2346 cmds=$extract_expsyms_cmds
2347 for cmd in $cmds; do
2348 IFS="$save_ifs"
2349 eval cmd=\"$cmd\"
2350 $show "$cmd"
2351 $run eval "$cmd" || exit $?
2352 done
2353 IFS="$save_ifs"
2354 fi
2355
2356 # Create $newlib
2357 if test -f "$output_objdir/$newlib"; then :; else
2358 $show "generating import library for \`$soname'"
2359 save_ifs="$IFS"; IFS='~'
2360 cmds=$old_archive_from_expsyms_cmds
2361 for cmd in $cmds; do
2362 IFS="$save_ifs"
2363 eval cmd=\"$cmd\"
2364 $show "$cmd"
2365 $run eval "$cmd" || exit $?
2366 done
2367 IFS="$save_ifs"
2368 fi
2369 # make sure the library variables are pointing to the new library
2370 dir=$output_objdir
2371 linklib=$newlib
2372 fi # test -n "$old_archive_from_expsyms_cmds"
2373
2374 if test "$linkmode" = prog || test "$mode" != relink; then
2375 add_shlibpath=
2376 add_dir=
2377 add=
2378 lib_linked=yes
2379 case $hardcode_action in
2380 immediate | unsupported)
2381 if test "$hardcode_direct" = no; then
2382 add="$dir/$linklib"
2383 case $host in
2384 *-*-sco3.2v5* ) add_dir="-L$dir" ;;
2385 *-*-darwin* )
2386 # if the lib is a module then we can not link against
2387 # it, someone is ignoring the new warnings I added
2388 if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
2389 $echo "** Warning, lib $linklib is a module, not a shared library"
2390 if test -z "$old_library" ; then
2391 $echo
2392 $echo "** And there doesn't seem to be a static archive available"
2393 $echo "** The link will probably fail, sorry"
2394 else
2395 add="$dir/$old_library"
2396 fi
2397 fi
2398 esac
2399 elif test "$hardcode_minus_L" = no; then
2400 case $host in
2401 *-*-sunos*) add_shlibpath="$dir" ;;
2402 esac
2403 add_dir="-L$dir"
2404 add="-l$name"
2405 elif test "$hardcode_shlibpath_var" = no; then
2406 add_shlibpath="$dir"
2407 add="-l$name"
2408 else
2409 lib_linked=no
2410 fi
2411 ;;
2412 relink)
2413 if test "$hardcode_direct" = yes; then
2414 add="$dir/$linklib"
2415 elif test "$hardcode_minus_L" = yes; then
2416 add_dir="-L$dir"
2417 # Try looking first in the location we're being installed to.
2418 if test -n "$inst_prefix_dir"; then
2419 case "$libdir" in
2420 [\\/]*)
2421 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2422 ;;
2423 esac
2424 fi
2425 add="-l$name"
2426 elif test "$hardcode_shlibpath_var" = yes; then
2427 add_shlibpath="$dir"
2428 add="-l$name"
2429 else
2430 lib_linked=no
2431 fi
2432 ;;
2433 *) lib_linked=no ;;
2434 esac
2435
2436 if test "$lib_linked" != yes; then
2437 $echo "$modename: configuration error: unsupported hardcode properties"
2438 exit $EXIT_FAILURE
2439 fi
2440
2441 if test -n "$add_shlibpath"; then
2442 case :$compile_shlibpath: in
2443 *":$add_shlibpath:"*) ;;
2444 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
2445 esac
2446 fi
2447 if test "$linkmode" = prog; then
2448 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
2449 test -n "$add" && compile_deplibs="$add $compile_deplibs"
2450 else
2451 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2452 test -n "$add" && deplibs="$add $deplibs"
2453 if test "$hardcode_direct" != yes && \
2454 test "$hardcode_minus_L" != yes && \
2455 test "$hardcode_shlibpath_var" = yes; then
2456 case :$finalize_shlibpath: in
2457 *":$libdir:"*) ;;
2458 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2459 esac
2460 fi
2461 fi
2462 fi
2463
2464 if test "$linkmode" = prog || test "$mode" = relink; then
2465 add_shlibpath=
2466 add_dir=
2467 add=
2468 # Finalize command for both is simple: just hardcode it.
2469 if test "$hardcode_direct" = yes; then
2470 add="$libdir/$linklib"
2471 elif test "$hardcode_minus_L" = yes; then
2472 add_dir="-L$libdir"
2473 add="-l$name"
2474 elif test "$hardcode_shlibpath_var" = yes; then
2475 case :$finalize_shlibpath: in
2476 *":$libdir:"*) ;;
2477 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2478 esac
2479 add="-l$name"
2480 elif test "$hardcode_automatic" = yes; then
2481 if test -n "$inst_prefix_dir" &&
2482 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2483 add="$inst_prefix_dir$libdir/$linklib"
2484 else
2485 add="$libdir/$linklib"
2486 fi
2487 else
2488 # We cannot seem to hardcode it, guess we'll fake it.
2489 add_dir="-L$libdir"
2490 # Try looking first in the location we're being installed to.
2491 if test -n "$inst_prefix_dir"; then
2492 case "$libdir" in
2493 [\\/]*)
2494 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2495 ;;
2496 esac
2497 fi
2498 add="-l$name"
2499 fi
2500
2501 if test "$linkmode" = prog; then
2502 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
2503 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
2504 else
2505 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2506 test -n "$add" && deplibs="$add $deplibs"
2507 fi
2508 fi
2509 elif test "$linkmode" = prog; then
2510 # Here we assume that one of hardcode_direct or hardcode_minus_L
2511 # is not unsupported. This is valid on all known static and
2512 # shared platforms.
2513 if test "$hardcode_direct" != unsupported; then
2514 test -n "$old_library" && linklib="$old_library"
2515 compile_deplibs="$dir/$linklib $compile_deplibs"
2516 finalize_deplibs="$dir/$linklib $finalize_deplibs"
2517 else
2518 compile_deplibs="-l$name -L$dir $compile_deplibs"
2519 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
2520 fi
2521 elif test "$build_libtool_libs" = yes; then
2522 # Not a shared library
2523 if test "$deplibs_check_method" != pass_all; then
2524 # We're trying link a shared library against a static one
2525 # but the system doesn't support it.
2526
2527 # Just print a warning and add the library to dependency_libs so
2528 # that the program can be linked against the static library.
2529 $echo
2530 $echo "*** Warning: This system can not link to static lib archive $lib."
2531 $echo "*** I have the capability to make that library automatically link in when"
2532 $echo "*** you link to this library. But I can only do this if you have a"
2533 $echo "*** shared version of the library, which you do not appear to have."
2534 if test "$module" = yes; then
2535 $echo "*** But as you try to build a module library, libtool will still create "
2536 $echo "*** a static module, that should work as long as the dlopening application"
2537 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
2538 if test -z "$global_symbol_pipe"; then
2539 $echo
2540 $echo "*** However, this would only work if libtool was able to extract symbol"
2541 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2542 $echo "*** not find such a program. So, this module is probably useless."
2543 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
2544 fi
2545 if test "$build_old_libs" = no; then
2546 build_libtool_libs=module
2547 build_old_libs=yes
2548 else
2549 build_libtool_libs=no
2550 fi
2551 fi
2552 else
2553 convenience="$convenience $dir/$old_library"
2554 old_convenience="$old_convenience $dir/$old_library"
2555 deplibs="$dir/$old_library $deplibs"
2556 link_static=yes
2557 fi
2558 fi # link shared/static library?
2559
2560 if test "$linkmode" = lib; then
2561 if test -n "$dependency_libs" &&
2562 { test "$hardcode_into_libs" != yes ||
2563 test "$build_old_libs" = yes ||
2564 test "$link_static" = yes; }; then
2565 # Extract -R from dependency_libs
2566 temp_deplibs=
2567 for libdir in $dependency_libs; do
2568 case $libdir in
2569 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
2570 case " $xrpath " in
2571 *" $temp_xrpath "*) ;;
2572 *) xrpath="$xrpath $temp_xrpath";;
2573 esac;;
2574 *) temp_deplibs="$temp_deplibs $libdir";;
2575 esac
2576 done
2577 dependency_libs="$temp_deplibs"
2578 fi
2579
2580 newlib_search_path="$newlib_search_path $absdir"
2581 # Link against this library
2582 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
2583 # ... and its dependency_libs
2584 tmp_libs=
2585 for deplib in $dependency_libs; do
2586 newdependency_libs="$deplib $newdependency_libs"
2587 if test "X$duplicate_deps" = "Xyes" ; then
2588 case "$tmp_libs " in
2589 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2590 esac
2591 fi
2592 tmp_libs="$tmp_libs $deplib"
2593 done
2594
2595 if test "$link_all_deplibs" != no; then
2596 # Add the search paths of all dependency libraries
2597 for deplib in $dependency_libs; do
2598 case $deplib in
2599 -L*) path="$deplib" ;;
2600 *.la)
2601 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2602 test "X$dir" = "X$deplib" && dir="."
2603 # We need an absolute path.
2604 case $dir in
2605 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
2606 *)
2607 absdir=`cd "$dir" && pwd`
2608 if test -z "$absdir"; then
2609 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
2610 absdir="$dir"
2611 fi
2612 ;;
2613 esac
2614 if grep "^installed=no" $deplib > /dev/null; then
2615 path="$absdir/$objdir"
2616 else
2617 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2618 if test -z "$libdir"; then
2619 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2620 exit $EXIT_FAILURE
2621 fi
2622 if test "$absdir" != "$libdir"; then
2623 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2624 fi
2625 path="$absdir"
2626 fi
2627 depdepl=
2628 case $host in
2629 *-*-darwin*)
2630 # we do not want to link against static libs,
2631 # but need to link against shared
2632 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2633 if test -n "$deplibrary_names" ; then
2634 for tmp in $deplibrary_names ; do
2635 depdepl=$tmp
2636 done
2637 if test -f "$path/$depdepl" ; then
2638 depdepl="$path/$depdepl"
2639 fi
2640 # do not add paths which are already there
2641 case " $newlib_search_path " in
2642 *" $path "*) ;;
2643 *) newlib_search_path="$newlib_search_path $path";;
2644 esac
2645 fi
2646 path=""
2647 ;;
2648 *)
2649 path="-L$path"
2650 ;;
2651 esac
2652 ;;
2653 -l*)
2654 case $host in
2655 *-*-darwin*)
2656 # Again, we only want to link against shared libraries
2657 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2658 for tmp in $newlib_search_path ; do
2659 if test -f "$tmp/lib$tmp_libs.dylib" ; then
2660 eval depdepl="$tmp/lib$tmp_libs.dylib"
2661 break
2662 fi
2663 done
2664 path=""
2665 ;;
2666 *) continue ;;
2667 esac
2668 ;;
2669 *) continue ;;
2670 esac
2671 case " $deplibs " in
2672 *" $depdepl "*) ;;
2673 *) deplibs="$depdepl $deplibs" ;;
2674 esac
2675 case " $deplibs " in
2676 *" $path "*) ;;
2677 *) deplibs="$deplibs $path" ;;
2678 esac
2679 done
2680 fi # link_all_deplibs != no
2681 fi # linkmode = lib
2682 done # for deplib in $libs
2683 dependency_libs="$newdependency_libs"
2684 if test "$pass" = dlpreopen; then
2685 # Link the dlpreopened libraries before other libraries
2686 for deplib in $save_deplibs; do
2687 deplibs="$deplib $deplibs"
2688 done
2689 fi
2690 if test "$pass" != dlopen; then
2691 if test "$pass" != conv; then
2692 # Make sure lib_search_path contains only unique directories.
2693 lib_search_path=
2694 for dir in $newlib_search_path; do
2695 case "$lib_search_path " in
2696 *" $dir "*) ;;
2697 *) lib_search_path="$lib_search_path $dir" ;;
2698 esac
2699 done
2700 newlib_search_path=
2701 fi
2702
2703 if test "$linkmode,$pass" != "prog,link"; then
2704 vars="deplibs"
2705 else
2706 vars="compile_deplibs finalize_deplibs"
2707 fi
2708 for var in $vars dependency_libs; do
2709 # Add libraries to $var in reverse order
2710 eval tmp_libs=\"\$$var\"
2711 new_libs=
2712 for deplib in $tmp_libs; do
2713 # FIXME: Pedantically, this is the right thing to do, so
2714 # that some nasty dependency loop isn't accidentally
2715 # broken:
2716 #new_libs="$deplib $new_libs"
2717 # Pragmatically, this seems to cause very few problems in
2718 # practice:
2719 case $deplib in
2720 -L*) new_libs="$deplib $new_libs" ;;
2721 -R*) ;;
2722 *)
2723 # And here is the reason: when a library appears more
2724 # than once as an explicit dependence of a library, or
2725 # is implicitly linked in more than once by the
2726 # compiler, it is considered special, and multiple
2727 # occurrences thereof are not removed. Compare this
2728 # with having the same library being listed as a
2729 # dependency of multiple other libraries: in this case,
2730 # we know (pedantically, we assume) the library does not
2731 # need to be listed more than once, so we keep only the
2732 # last copy. This is not always right, but it is rare
2733 # enough that we require users that really mean to play
2734 # such unportable linking tricks to link the library
2735 # using -Wl,-lname, so that libtool does not consider it
2736 # for duplicate removal.
2737 case " $specialdeplibs " in
2738 *" $deplib "*) new_libs="$deplib $new_libs" ;;
2739 *)
2740 case " $new_libs " in
2741 *" $deplib "*) ;;
2742 *) new_libs="$deplib $new_libs" ;;
2743 esac
2744 ;;
2745 esac
2746 ;;
2747 esac
2748 done
2749 tmp_libs=
2750 for deplib in $new_libs; do
2751 case $deplib in
2752 -L*)
2753 case " $tmp_libs " in
2754 *" $deplib "*) ;;
2755 *) tmp_libs="$tmp_libs $deplib" ;;
2756 esac
2757 ;;
2758 *) tmp_libs="$tmp_libs $deplib" ;;
2759 esac
2760 done
2761 eval $var=\"$tmp_libs\"
2762 done # for var
2763 fi
2764 # Last step: remove runtime libs from dependency_libs
2765 # (they stay in deplibs)
2766 tmp_libs=
2767 for i in $dependency_libs ; do
2768 case " $predeps $postdeps $compiler_lib_search_path " in
2769 *" $i "*)
2770 i=""
2771 ;;
2772 esac
2773 if test -n "$i" ; then
2774 tmp_libs="$tmp_libs $i"
2775 fi
2776 done
2777 dependency_libs=$tmp_libs
2778 done # for pass
2779 if test "$linkmode" = prog; then
2780 dlfiles="$newdlfiles"
2781 dlprefiles="$newdlprefiles"
2782 fi
2783
2784 case $linkmode in
2785 oldlib)
2786 if test -n "$deplibs"; then
2787 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
2788 fi
2789
2790 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2791 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
2792 fi
2793
2794 if test -n "$rpath"; then
2795 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
2796 fi
2797
2798 if test -n "$xrpath"; then
2799 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
2800 fi
2801
2802 if test -n "$vinfo"; then
2803 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
2804 fi
2805
2806 if test -n "$release"; then
2807 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
2808 fi
2809
2810 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
2811 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
2812 fi
2813
2814 # Now set the variables for building old libraries.
2815 build_libtool_libs=no
2816 oldlibs="$output"
2817 objs="$objs$old_deplibs"
2818 ;;
2819
2820 lib)
2821 # Make sure we only generate libraries of the form `libNAME.la'.
2822 case $outputname in
2823 lib*)
2824 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2825 eval shared_ext=\"$shrext_cmds\"
2826 eval libname=\"$libname_spec\"
2827 ;;
2828 *)
2829 if test "$module" = no; then
2830 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
2831 $echo "$help" 1>&2
2832 exit $EXIT_FAILURE
2833 fi
2834 if test "$need_lib_prefix" != no; then
2835 # Add the "lib" prefix for modules if required
2836 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
2837 eval shared_ext=\"$shrext_cmds\"
2838 eval libname=\"$libname_spec\"
2839 else
2840 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
2841 fi
2842 ;;
2843 esac
2844
2845 if test -n "$objs"; then
2846 if test "$deplibs_check_method" != pass_all; then
2847 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
2848 exit $EXIT_FAILURE
2849 else
2850 $echo
2851 $echo "*** Warning: Linking the shared library $output against the non-libtool"
2852 $echo "*** objects $objs is not portable!"
2853 libobjs="$libobjs $objs"
2854 fi
2855 fi
2856
2857 if test "$dlself" != no; then
2858 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
2859 fi
2860
2861 set dummy $rpath
2862 if test "$#" -gt 2; then
2863 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
2864 fi
2865 install_libdir="$2"
2866
2867 oldlibs=
2868 if test -z "$rpath"; then
2869 if test "$build_libtool_libs" = yes; then
2870 # Building a libtool convenience library.
2871 # Some compilers have problems with a `.al' extension so
2872 # convenience libraries should have the same extension an
2873 # archive normally would.
2874 oldlibs="$output_objdir/$libname.$libext $oldlibs"
2875 build_libtool_libs=convenience
2876 build_old_libs=yes
2877 fi
2878
2879 if test -n "$vinfo"; then
2880 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
2881 fi
2882
2883 if test -n "$release"; then
2884 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
2885 fi
2886 else
2887
2888 # Parse the version information argument.
2889 save_ifs="$IFS"; IFS=':'
2890 set dummy $vinfo 0 0 0
2891 IFS="$save_ifs"
2892
2893 if test -n "$8"; then
2894 $echo "$modename: too many parameters to \`-version-info'" 1>&2
2895 $echo "$help" 1>&2
2896 exit $EXIT_FAILURE
2897 fi
2898
2899 # convert absolute version numbers to libtool ages
2900 # this retains compatibility with .la files and attempts
2901 # to make the code below a bit more comprehensible
2902
2903 case $vinfo_number in
2904 yes)
2905 number_major="$2"
2906 number_minor="$3"
2907 number_revision="$4"
2908 #
2909 # There are really only two kinds -- those that
2910 # use the current revision as the major version
2911 # and those that subtract age and use age as
2912 # a minor version. But, then there is irix
2913 # which has an extra 1 added just for fun
2914 #
2915 case $version_type in
2916 darwin|linux|osf|windows)
2917 current=`expr $number_major + $number_minor`
2918 age="$number_minor"
2919 revision="$number_revision"
2920 ;;
2921 freebsd-aout|freebsd-elf|sunos)
2922 current="$number_major"
2923 revision="$number_minor"
2924 age="0"
2925 ;;
2926 irix|nonstopux)
2927 current=`expr $number_major + $number_minor - 1`
2928 age="$number_minor"
2929 revision="$number_minor"
2930 ;;
2931 *)
2932 $echo "$modename: unknown library version type \`$version_type'" 1>&2
2933 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
2934 exit $EXIT_FAILURE
2935 ;;
2936 esac
2937 ;;
2938 no)
2939 current="$2"
2940 revision="$3"
2941 age="$4"
2942 ;;
2943 esac
2944
2945 # Check that each of the things are valid numbers.
2946 case $current in
2947 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2948 *)
2949 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
2950 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2951 exit $EXIT_FAILURE
2952 ;;
2953 esac
2954
2955 case $revision in
2956 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2957 *)
2958 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
2959 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2960 exit $EXIT_FAILURE
2961 ;;
2962 esac
2963
2964 case $age in
2965 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2966 *)
2967 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
2968 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2969 exit $EXIT_FAILURE
2970 ;;
2971 esac
2972
2973 if test "$age" -gt "$current"; then
2974 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
2975 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2976 exit $EXIT_FAILURE
2977 fi
2978
2979 # Calculate the version variables.
2980 major=
2981 versuffix=
2982 verstring=
2983 case $version_type in
2984 none) ;;
2985
2986 darwin)
2987 # Like Linux, but with the current version available in
2988 # verstring for coding it into the library header
2989 major=.`expr $current - $age`
2990 versuffix="$major.$age.$revision"
2991 # Darwin ld doesn't like 0 for these options...
2992 minor_current=`expr $current + 1`
2993 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
2994 ;;
2995
2996 freebsd-aout)
2997 major=".$current"
2998 versuffix=".$current.$revision";
2999 ;;
3000
3001 freebsd-elf)
3002 major=".$current"
3003 versuffix=".$current";
3004 ;;
3005
3006 irix | nonstopux)
3007 major=`expr $current - $age + 1`
3008
3009 case $version_type in
3010 nonstopux) verstring_prefix=nonstopux ;;
3011 *) verstring_prefix=sgi ;;
3012 esac
3013 verstring="$verstring_prefix$major.$revision"
3014
3015 # Add in all the interfaces that we are compatible with.
3016 loop=$revision
3017 while test "$loop" -ne 0; do
3018 iface=`expr $revision - $loop`
3019 loop=`expr $loop - 1`
3020 verstring="$verstring_prefix$major.$iface:$verstring"
3021 done
3022
3023 # Before this point, $major must not contain `.'.
3024 major=.$major
3025 versuffix="$major.$revision"
3026 ;;
3027
3028 linux)
3029 major=.`expr $current - $age`
3030 versuffix="$major.$age.$revision"
3031 ;;
3032
3033 osf)
3034 major=.`expr $current - $age`
3035 versuffix=".$current.$age.$revision"
3036 verstring="$current.$age.$revision"
3037
3038 # Add in all the interfaces that we are compatible with.
3039 loop=$age
3040 while test "$loop" -ne 0; do
3041 iface=`expr $current - $loop`
3042 loop=`expr $loop - 1`
3043 verstring="$verstring:${iface}.0"
3044 done
3045
3046 # Make executables depend on our current version.
3047 verstring="$verstring:${current}.0"
3048 ;;
3049
3050 sunos)
3051 major=".$current"
3052 versuffix=".$current.$revision"
3053 ;;
3054
3055 windows)
3056 # Use '-' rather than '.', since we only want one
3057 # extension on DOS 8.3 filesystems.
3058 major=`expr $current - $age`
3059 versuffix="-$major"
3060 ;;
3061
3062 *)
3063 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3064 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3065 exit $EXIT_FAILURE
3066 ;;
3067 esac
3068
3069 # Clear the version info if we defaulted, and they specified a release.
3070 if test -z "$vinfo" && test -n "$release"; then
3071 major=
3072 case $version_type in
3073 darwin)
3074 # we can't check for "0.0" in archive_cmds due to quoting
3075 # problems, so we reset it completely
3076 verstring=
3077 ;;
3078 *)
3079 verstring="0.0"
3080 ;;
3081 esac
3082 if test "$need_version" = no; then
3083 versuffix=
3084 else
3085 versuffix=".0.0"
3086 fi
3087 fi
3088
3089 # Remove version info from name if versioning should be avoided
3090 if test "$avoid_version" = yes && test "$need_version" = no; then
3091 major=
3092 versuffix=
3093 verstring=""
3094 fi
3095
3096 # Check to see if the archive will have undefined symbols.
3097 if test "$allow_undefined" = yes; then
3098 if test "$allow_undefined_flag" = unsupported; then
3099 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
3100 build_libtool_libs=no
3101 build_old_libs=yes
3102 fi
3103 else
3104 # Don't allow undefined symbols.
3105 allow_undefined_flag="$no_undefined_flag"
3106 fi
3107 fi
3108
3109 if test "$mode" != relink; then
3110 # Remove our outputs, but don't remove object files since they
3111 # may have been created when compiling PIC objects.
3112 removelist=
3113 tempremovelist=`$echo "$output_objdir/*"`
3114 for p in $tempremovelist; do
3115 case $p in
3116 *.$objext)
3117 ;;
3118 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3119 if test "X$precious_files_regex" != "X"; then
3120 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3121 then
3122 continue
3123 fi
3124 fi
3125 removelist="$removelist $p"
3126 ;;
3127 *) ;;
3128 esac
3129 done
3130 if test -n "$removelist"; then
3131 $show "${rm}r $removelist"
3132 $run ${rm}r $removelist
3133 fi
3134 fi
3135
3136 # Now set the variables for building old libraries.
3137 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
3138 oldlibs="$oldlibs $output_objdir/$libname.$libext"
3139
3140 # Transform .lo files to .o files.
3141 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
3142 fi
3143
3144 # Eliminate all temporary directories.
3145 for path in $notinst_path; do
3146 lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
3147 deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
3148 dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
3149 done
3150
3151 if test -n "$xrpath"; then
3152 # If the user specified any rpath flags, then add them.
3153 temp_xrpath=
3154 for libdir in $xrpath; do
3155 temp_xrpath="$temp_xrpath -R$libdir"
3156 case "$finalize_rpath " in
3157 *" $libdir "*) ;;
3158 *) finalize_rpath="$finalize_rpath $libdir" ;;
3159 esac
3160 done
3161 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
3162 dependency_libs="$temp_xrpath $dependency_libs"
3163 fi
3164 fi
3165
3166 # Make sure dlfiles contains only unique files that won't be dlpreopened
3167 old_dlfiles="$dlfiles"
3168 dlfiles=
3169 for lib in $old_dlfiles; do
3170 case " $dlprefiles $dlfiles " in
3171 *" $lib "*) ;;
3172 *) dlfiles="$dlfiles $lib" ;;
3173 esac
3174 done
3175
3176 # Make sure dlprefiles contains only unique files
3177 old_dlprefiles="$dlprefiles"
3178 dlprefiles=
3179 for lib in $old_dlprefiles; do
3180 case "$dlprefiles " in
3181 *" $lib "*) ;;
3182 *) dlprefiles="$dlprefiles $lib" ;;
3183 esac
3184 done
3185
3186 if test "$build_libtool_libs" = yes; then
3187 if test -n "$rpath"; then
3188 case $host in
3189 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
3190 # these systems don't actually have a c library (as such)!
3191 ;;
3192 *-*-rhapsody* | *-*-darwin1.[012])
3193 # Rhapsody C library is in the System framework
3194 deplibs="$deplibs -framework System"
3195 ;;
3196 *-*-netbsd*)
3197 # Don't link with libc until the a.out ld.so is fixed.
3198 ;;
3199 *-*-openbsd* | *-*-freebsd*)
3200 # Do not include libc due to us having libc/libc_r.
3201 test "X$arg" = "X-lc" && continue
3202 ;;
3203 *)
3204 # Add libc to deplibs on all other systems if necessary.
3205 if test "$build_libtool_need_lc" = "yes"; then
3206 deplibs="$deplibs -lc"
3207 fi
3208 ;;
3209 esac
3210 fi
3211
3212 # Transform deplibs into only deplibs that can be linked in shared.
3213 name_save=$name
3214 libname_save=$libname
3215 release_save=$release
3216 versuffix_save=$versuffix
3217 major_save=$major
3218 # I'm not sure if I'm treating the release correctly. I think
3219 # release should show up in the -l (ie -lgmp5) so we don't want to
3220 # add it in twice. Is that correct?
3221 release=""
3222 versuffix=""
3223 major=""
3224 newdeplibs=
3225 droppeddeps=no
3226 case $deplibs_check_method in
3227 pass_all)
3228 # Don't check for shared/static. Everything works.
3229 # This might be a little naive. We might want to check
3230 # whether the library exists or not. But this is on
3231 # osf3 & osf4 and I'm not really sure... Just
3232 # implementing what was already the behavior.
3233 newdeplibs=$deplibs
3234 ;;
3235 test_compile)
3236 # This code stresses the "libraries are programs" paradigm to its
3237 # limits. Maybe even breaks it. We compile a program, linking it
3238 # against the deplibs as a proxy for the library. Then we can check
3239 # whether they linked in statically or dynamically with ldd.
3240 $rm conftest.c
3241 cat > conftest.c <<EOF
3242 int main() { return 0; }
3243 EOF
3244 $rm conftest
3245 $LTCC -o conftest conftest.c $deplibs
3246 if test "$?" -eq 0 ; then
3247 ldd_output=`ldd conftest`
3248 for i in $deplibs; do
3249 name="`expr $i : '-l\(.*\)'`"
3250 # If $name is empty we are operating on a -L argument.
3251 if test "$name" != "" && test "$name" -ne "0"; then
3252 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3253 case " $predeps $postdeps " in
3254 *" $i "*)
3255 newdeplibs="$newdeplibs $i"
3256 i=""
3257 ;;
3258 esac
3259 fi
3260 if test -n "$i" ; then
3261 libname=`eval \\$echo \"$libname_spec\"`
3262 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3263 set dummy $deplib_matches
3264 deplib_match=$2
3265 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3266 newdeplibs="$newdeplibs $i"
3267 else
3268 droppeddeps=yes
3269 $echo
3270 $echo "*** Warning: dynamic linker does not accept needed library $i."
3271 $echo "*** I have the capability to make that library automatically link in when"
3272 $echo "*** you link to this library. But I can only do this if you have a"
3273 $echo "*** shared version of the library, which I believe you do not have"
3274 $echo "*** because a test_compile did reveal that the linker did not use it for"
3275 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
3276 fi
3277 fi
3278 else
3279 newdeplibs="$newdeplibs $i"
3280 fi
3281 done
3282 else
3283 # Error occurred in the first compile. Let's try to salvage
3284 # the situation: Compile a separate program for each library.
3285 for i in $deplibs; do
3286 name="`expr $i : '-l\(.*\)'`"
3287 # If $name is empty we are operating on a -L argument.
3288 if test "$name" != "" && test "$name" != "0"; then
3289 $rm conftest
3290 $LTCC -o conftest conftest.c $i
3291 # Did it work?
3292 if test "$?" -eq 0 ; then
3293 ldd_output=`ldd conftest`
3294 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3295 case " $predeps $postdeps " in
3296 *" $i "*)
3297 newdeplibs="$newdeplibs $i"
3298 i=""
3299 ;;
3300 esac
3301 fi
3302 if test -n "$i" ; then
3303 libname=`eval \\$echo \"$libname_spec\"`
3304 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3305 set dummy $deplib_matches
3306 deplib_match=$2
3307 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3308 newdeplibs="$newdeplibs $i"
3309 else
3310 droppeddeps=yes
3311 $echo
3312 $echo "*** Warning: dynamic linker does not accept needed library $i."
3313 $echo "*** I have the capability to make that library automatically link in when"
3314 $echo "*** you link to this library. But I can only do this if you have a"
3315 $echo "*** shared version of the library, which you do not appear to have"
3316 $echo "*** because a test_compile did reveal that the linker did not use this one"
3317 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
3318 fi
3319 fi
3320 else
3321 droppeddeps=yes
3322 $echo
3323 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3324 $echo "*** make it link in! You will probably need to install it or some"
3325 $echo "*** library that it depends on before this library will be fully"
3326 $echo "*** functional. Installing it before continuing would be even better."
3327 fi
3328 else
3329 newdeplibs="$newdeplibs $i"
3330 fi
3331 done
3332 fi
3333 ;;
3334 file_magic*)
3335 set dummy $deplibs_check_method
3336 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3337 for a_deplib in $deplibs; do
3338 name="`expr $a_deplib : '-l\(.*\)'`"
3339 # If $name is empty we are operating on a -L argument.
3340 if test "$name" != "" && test "$name" != "0"; then
3341 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3342 case " $predeps $postdeps " in
3343 *" $a_deplib "*)
3344 newdeplibs="$newdeplibs $a_deplib"
3345 a_deplib=""
3346 ;;
3347 esac
3348 fi
3349 if test -n "$a_deplib" ; then
3350 libname=`eval \\$echo \"$libname_spec\"`
3351 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3352 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3353 for potent_lib in $potential_libs; do
3354 # Follow soft links.
3355 if ls -lLd "$potent_lib" 2>/dev/null \
3356 | grep " -> " >/dev/null; then
3357 continue
3358 fi
3359 # The statement above tries to avoid entering an
3360 # endless loop below, in case of cyclic links.
3361 # We might still enter an endless loop, since a link
3362 # loop can be closed while we follow links,
3363 # but so what?
3364 potlib="$potent_lib"
3365 while test -h "$potlib" 2>/dev/null; do
3366 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
3367 case $potliblink in
3368 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3369 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3370 esac
3371 done
3372 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3373 | ${SED} 10q \
3374 | $EGREP "$file_magic_regex" > /dev/null; then
3375 newdeplibs="$newdeplibs $a_deplib"
3376 a_deplib=""
3377 break 2
3378 fi
3379 done
3380 done
3381 fi
3382 if test -n "$a_deplib" ; then
3383 droppeddeps=yes
3384 $echo
3385 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3386 $echo "*** I have the capability to make that library automatically link in when"
3387 $echo "*** you link to this library. But I can only do this if you have a"
3388 $echo "*** shared version of the library, which you do not appear to have"
3389 $echo "*** because I did check the linker path looking for a file starting"
3390 if test -z "$potlib" ; then
3391 $echo "*** with $libname but no candidates were found. (...for file magic test)"
3392 else
3393 $echo "*** with $libname and none of the candidates passed a file format test"
3394 $echo "*** using a file magic. Last file checked: $potlib"
3395 fi
3396 fi
3397 else
3398 # Add a -L argument.
3399 newdeplibs="$newdeplibs $a_deplib"
3400 fi
3401 done # Gone through all deplibs.
3402 ;;
3403 match_pattern*)
3404 set dummy $deplibs_check_method
3405 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3406 for a_deplib in $deplibs; do
3407 name="`expr $a_deplib : '-l\(.*\)'`"
3408 # If $name is empty we are operating on a -L argument.
3409 if test -n "$name" && test "$name" != "0"; then
3410 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3411 case " $predeps $postdeps " in
3412 *" $a_deplib "*)
3413 newdeplibs="$newdeplibs $a_deplib"
3414 a_deplib=""
3415 ;;
3416 esac
3417 fi
3418 if test -n "$a_deplib" ; then
3419 libname=`eval \\$echo \"$libname_spec\"`
3420 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3421 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3422 for potent_lib in $potential_libs; do
3423 potlib="$potent_lib" # see symlink-check above in file_magic test
3424 if eval $echo \"$potent_lib\" 2>/dev/null \
3425 | ${SED} 10q \
3426 | $EGREP "$match_pattern_regex" > /dev/null; then
3427 newdeplibs="$newdeplibs $a_deplib"
3428 a_deplib=""
3429 break 2
3430 fi
3431 done
3432 done
3433 fi
3434 if test -n "$a_deplib" ; then
3435 droppeddeps=yes
3436 $echo
3437 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3438 $echo "*** I have the capability to make that library automatically link in when"
3439 $echo "*** you link to this library. But I can only do this if you have a"
3440 $echo "*** shared version of the library, which you do not appear to have"
3441 $echo "*** because I did check the linker path looking for a file starting"
3442 if test -z "$potlib" ; then
3443 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3444 else
3445 $echo "*** with $libname and none of the candidates passed a file format test"
3446 $echo "*** using a regex pattern. Last file checked: $potlib"
3447 fi
3448 fi
3449 else
3450 # Add a -L argument.
3451 newdeplibs="$newdeplibs $a_deplib"
3452 fi
3453 done # Gone through all deplibs.
3454 ;;
3455 none | unknown | *)
3456 newdeplibs=""
3457 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3458 -e 's/ -[LR][^ ]*//g'`
3459 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3460 for i in $predeps $postdeps ; do
3461 # can't use Xsed below, because $i might contain '/'
3462 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
3463 done
3464 fi
3465 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3466 | grep . >/dev/null; then
3467 $echo
3468 if test "X$deplibs_check_method" = "Xnone"; then
3469 $echo "*** Warning: inter-library dependencies are not supported in this platform."
3470 else
3471 $echo "*** Warning: inter-library dependencies are not known to be supported."
3472 fi
3473 $echo "*** All declared inter-library dependencies are being dropped."
3474 droppeddeps=yes
3475 fi
3476 ;;
3477 esac
3478 versuffix=$versuffix_save
3479 major=$major_save
3480 release=$release_save
3481 libname=$libname_save
3482 name=$name_save
3483
3484 case $host in
3485 *-*-rhapsody* | *-*-darwin1.[012])
3486 # On Rhapsody replace the C library is the System framework
3487 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
3488 ;;
3489 esac
3490
3491 if test "$droppeddeps" = yes; then
3492 if test "$module" = yes; then
3493 $echo
3494 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3495 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3496 $echo "*** a static module, that should work as long as the dlopening"
3497 $echo "*** application is linked with the -dlopen flag."
3498 if test -z "$global_symbol_pipe"; then
3499 $echo
3500 $echo "*** However, this would only work if libtool was able to extract symbol"
3501 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3502 $echo "*** not find such a program. So, this module is probably useless."
3503 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
3504 fi
3505 if test "$build_old_libs" = no; then
3506 oldlibs="$output_objdir/$libname.$libext"
3507 build_libtool_libs=module
3508 build_old_libs=yes
3509 else
3510 build_libtool_libs=no
3511 fi
3512 else
3513 $echo "*** The inter-library dependencies that have been dropped here will be"
3514 $echo "*** automatically added whenever a program is linked with this library"
3515 $echo "*** or is declared to -dlopen it."
3516
3517 if test "$allow_undefined" = no; then
3518 $echo
3519 $echo "*** Since this library must not contain undefined symbols,"
3520 $echo "*** because either the platform does not support them or"
3521 $echo "*** it was explicitly requested with -no-undefined,"
3522 $echo "*** libtool will only create a static version of it."
3523 if test "$build_old_libs" = no; then
3524 oldlibs="$output_objdir/$libname.$libext"
3525 build_libtool_libs=module
3526 build_old_libs=yes
3527 else
3528 build_libtool_libs=no
3529 fi
3530 fi
3531 fi
3532 fi
3533 # Done checking deplibs!
3534 deplibs=$newdeplibs
3535 fi
3536
3537 # All the library-specific variables (install_libdir is set above).
3538 library_names=
3539 old_library=
3540 dlname=
3541
3542 # Test again, we may have decided not to build it any more
3543 if test "$build_libtool_libs" = yes; then
3544 if test "$hardcode_into_libs" = yes; then
3545 # Hardcode the library paths
3546 hardcode_libdirs=
3547 dep_rpath=
3548 rpath="$finalize_rpath"
3549 test "$mode" != relink && rpath="$compile_rpath$rpath"
3550 for libdir in $rpath; do
3551 if test -n "$hardcode_libdir_flag_spec"; then
3552 if test -n "$hardcode_libdir_separator"; then
3553 if test -z "$hardcode_libdirs"; then
3554 hardcode_libdirs="$libdir"
3555 else
3556 # Just accumulate the unique libdirs.
3557 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
3558 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
3559 ;;
3560 *)
3561 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
3562 ;;
3563 esac
3564 fi
3565 else
3566 eval flag=\"$hardcode_libdir_flag_spec\"
3567 dep_rpath="$dep_rpath $flag"
3568 fi
3569 elif test -n "$runpath_var"; then
3570 case "$perm_rpath " in
3571 *" $libdir "*) ;;
3572 *) perm_rpath="$perm_rpath $libdir" ;;
3573 esac
3574 fi
3575 done
3576 # Substitute the hardcoded libdirs into the rpath.
3577 if test -n "$hardcode_libdir_separator" &&
3578 test -n "$hardcode_libdirs"; then
3579 libdir="$hardcode_libdirs"
3580 if test -n "$hardcode_libdir_flag_spec_ld"; then
3581 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
3582 else
3583 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3584 fi
3585 fi
3586 if test -n "$runpath_var" && test -n "$perm_rpath"; then
3587 # We should set the runpath_var.
3588 rpath=
3589 for dir in $perm_rpath; do
3590 rpath="$rpath$dir:"
3591 done
3592 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
3593 fi
3594 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
3595 fi
3596
3597 shlibpath="$finalize_shlibpath"
3598 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
3599 if test -n "$shlibpath"; then
3600 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
3601 fi
3602
3603 # Get the real and link names of the library.
3604 eval shared_ext=\"$shrext_cmds\"
3605 eval library_names=\"$library_names_spec\"
3606 set dummy $library_names
3607 realname="$2"
3608 shift; shift
3609
3610 if test -n "$soname_spec"; then
3611 eval soname=\"$soname_spec\"
3612 else
3613 soname="$realname"
3614 fi
3615 if test -z "$dlname"; then
3616 dlname=$soname
3617 fi
3618
3619 lib="$output_objdir/$realname"
3620 for link
3621 do
3622 linknames="$linknames $link"
3623 done
3624
3625 # Use standard objects if they are pic
3626 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
3627
3628 # Prepare the list of exported symbols
3629 if test -z "$export_symbols"; then
3630 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
3631 $show "generating symbol list for \`$libname.la'"
3632 export_symbols="$output_objdir/$libname.exp"
3633 $run $rm $export_symbols
3634 cmds=$export_symbols_cmds
3635 save_ifs="$IFS"; IFS='~'
3636 for cmd in $cmds; do
3637 IFS="$save_ifs"
3638 eval cmd=\"$cmd\"
3639 if len=`expr "X$cmd" : ".*"` &&
3640 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3641 $show "$cmd"
3642 $run eval "$cmd" || exit $?
3643 skipped_export=false
3644 else
3645 # The command line is too long to execute in one step.
3646 $show "using reloadable object file for export list..."
3647 skipped_export=:
3648 fi
3649 done
3650 IFS="$save_ifs"
3651 if test -n "$export_symbols_regex"; then
3652 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
3653 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
3654 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
3655 $run eval '$mv "${export_symbols}T" "$export_symbols"'
3656 fi
3657 fi
3658 fi
3659
3660 if test -n "$export_symbols" && test -n "$include_expsyms"; then
3661 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
3662 fi
3663
3664 tmp_deplibs=
3665 for test_deplib in $deplibs; do
3666 case " $convenience " in
3667 *" $test_deplib "*) ;;
3668 *)
3669 tmp_deplibs="$tmp_deplibs $test_deplib"
3670 ;;
3671 esac
3672 done
3673 deplibs="$tmp_deplibs"
3674
3675 if test -n "$convenience"; then
3676 if test -n "$whole_archive_flag_spec"; then
3677 save_libobjs=$libobjs
3678 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
3679 else
3680 gentop="$output_objdir/${outputname}x"
3681 $show "${rm}r $gentop"
3682 $run ${rm}r "$gentop"
3683 $show "$mkdir $gentop"
3684 $run $mkdir "$gentop"
3685 status=$?
3686 if test "$status" -ne 0 && test ! -d "$gentop"; then
3687 exit $status
3688 fi
3689 generated="$generated $gentop"
3690
3691 for xlib in $convenience; do
3692 # Extract the objects.
3693 case $xlib in
3694 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3695 *) xabs=`pwd`"/$xlib" ;;
3696 esac
3697 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3698 xdir="$gentop/$xlib"
3699
3700 $show "${rm}r $xdir"
3701 $run ${rm}r "$xdir"
3702 $show "$mkdir $xdir"
3703 $run $mkdir "$xdir"
3704 status=$?
3705 if test "$status" -ne 0 && test ! -d "$xdir"; then
3706 exit $status
3707 fi
3708 # We will extract separately just the conflicting names and we will no
3709 # longer touch any unique names. It is faster to leave these extract
3710 # automatically by $AR in one run.
3711 $show "(cd $xdir && $AR x $xabs)"
3712 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
3713 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
3714 :
3715 else
3716 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
3717 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
3718 $AR t "$xabs" | sort | uniq -cd | while read -r count name
3719 do
3720 i=1
3721 while test "$i" -le "$count"
3722 do
3723 # Put our $i before any first dot (extension)
3724 # Never overwrite any file
3725 name_to="$name"
3726 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
3727 do
3728 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
3729 done
3730 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
3731 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
3732 i=`expr $i + 1`
3733 done
3734 done
3735 fi
3736
3737 libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3738 done
3739 fi
3740 fi
3741
3742 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
3743 eval flag=\"$thread_safe_flag_spec\"
3744 linker_flags="$linker_flags $flag"
3745 fi
3746
3747 # Make a backup of the uninstalled library when relinking
3748 if test "$mode" = relink; then
3749 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
3750 fi
3751
3752 # Do each of the archive commands.
3753 if test "$module" = yes && test -n "$module_cmds" ; then
3754 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
3755 eval test_cmds=\"$module_expsym_cmds\"
3756 cmds=$module_expsym_cmds
3757 else
3758 eval test_cmds=\"$module_cmds\"
3759 cmds=$module_cmds
3760 fi
3761 else
3762 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
3763 eval test_cmds=\"$archive_expsym_cmds\"
3764 cmds=$archive_expsym_cmds
3765 else
3766 eval test_cmds=\"$archive_cmds\"
3767 cmds=$archive_cmds
3768 fi
3769 fi
3770
3771 if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
3772 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3773 :
3774 else
3775 # The command line is too long to link in one step, link piecewise.
3776 $echo "creating reloadable object files..."
3777
3778 # Save the value of $output and $libobjs because we want to
3779 # use them later. If we have whole_archive_flag_spec, we
3780 # want to use save_libobjs as it was before
3781 # whole_archive_flag_spec was expanded, because we can't
3782 # assume the linker understands whole_archive_flag_spec.
3783 # This may have to be revisited, in case too many
3784 # convenience libraries get linked in and end up exceeding
3785 # the spec.
3786 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
3787 save_libobjs=$libobjs
3788 fi
3789 save_output=$output
3790
3791 # Clear the reloadable object creation command queue and
3792 # initialize k to one.
3793 test_cmds=
3794 concat_cmds=
3795 objlist=
3796 delfiles=
3797 last_robj=
3798 k=1
3799 output=$output_objdir/$save_output-${k}.$objext
3800 # Loop over the list of objects to be linked.
3801 for obj in $save_libobjs
3802 do
3803 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
3804 if test "X$objlist" = X ||
3805 { len=`expr "X$test_cmds" : ".*"` &&
3806 test "$len" -le "$max_cmd_len"; }; then
3807 objlist="$objlist $obj"
3808 else
3809 # The command $test_cmds is almost too long, add a
3810 # command to the queue.
3811 if test "$k" -eq 1 ; then
3812 # The first file doesn't have a previous command to add.
3813 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
3814 else
3815 # All subsequent reloadable object files will link in
3816 # the last one created.
3817 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
3818 fi
3819 last_robj=$output_objdir/$save_output-${k}.$objext
3820 k=`expr $k + 1`
3821 output=$output_objdir/$save_output-${k}.$objext
3822 objlist=$obj
3823 len=1
3824 fi
3825 done
3826 # Handle the remaining objects by creating one last
3827 # reloadable object file. All subsequent reloadable object
3828 # files will link in the last one created.
3829 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
3830 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
3831
3832 if ${skipped_export-false}; then
3833 $show "generating symbol list for \`$libname.la'"
3834 export_symbols="$output_objdir/$libname.exp"
3835 $run $rm $export_symbols
3836 libobjs=$output
3837 # Append the command to create the export file.
3838 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
3839 fi
3840
3841 # Set up a command to remove the reloadale object files
3842 # after they are used.
3843 i=0
3844 while test "$i" -lt "$k"
3845 do
3846 i=`expr $i + 1`
3847 delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
3848 done
3849
3850 $echo "creating a temporary reloadable object file: $output"
3851
3852 # Loop through the commands generated above and execute them.
3853 save_ifs="$IFS"; IFS='~'
3854 for cmd in $concat_cmds; do
3855 IFS="$save_ifs"
3856 $show "$cmd"
3857 $run eval "$cmd" || exit $?
3858 done
3859 IFS="$save_ifs"
3860
3861 libobjs=$output
3862 # Restore the value of output.
3863 output=$save_output
3864
3865 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
3866 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
3867 fi
3868 # Expand the library linking commands again to reset the
3869 # value of $libobjs for piecewise linking.
3870
3871 # Do each of the archive commands.
3872 if test "$module" = yes && test -n "$module_cmds" ; then
3873 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
3874 cmds=$module_expsym_cmds
3875 else
3876 cmds=$module_cmds
3877 fi
3878 else
3879 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
3880 cmds=$archive_expsym_cmds
3881 else
3882 cmds=$archive_cmds
3883 fi
3884 fi
3885
3886 # Append the command to remove the reloadable object files
3887 # to the just-reset $cmds.
3888 eval cmds=\"\$cmds~\$rm $delfiles\"
3889 fi
3890 save_ifs="$IFS"; IFS='~'
3891 for cmd in $cmds; do
3892 IFS="$save_ifs"
3893 eval cmd=\"$cmd\"
3894 $show "$cmd"
3895 $run eval "$cmd" || exit $?
3896 done
3897 IFS="$save_ifs"
3898
3899 # Restore the uninstalled library and exit
3900 if test "$mode" = relink; then
3901 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
3902 exit $EXIT_SUCCESS
3903 fi
3904
3905 # Create links to the real library.
3906 for linkname in $linknames; do
3907 if test "$realname" != "$linkname"; then
3908 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
3909 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
3910 fi
3911 done
3912
3913 # If -module or -export-dynamic was specified, set the dlname.
3914 if test "$module" = yes || test "$export_dynamic" = yes; then
3915 # On all known operating systems, these are identical.
3916 dlname="$soname"
3917 fi
3918 fi
3919 ;;
3920
3921 obj)
3922 if test -n "$deplibs"; then
3923 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
3924 fi
3925
3926 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3927 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
3928 fi
3929
3930 if test -n "$rpath"; then
3931 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
3932 fi
3933
3934 if test -n "$xrpath"; then
3935 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
3936 fi
3937
3938 if test -n "$vinfo"; then
3939 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
3940 fi
3941
3942 if test -n "$release"; then
3943 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
3944 fi
3945
3946 case $output in
3947 *.lo)
3948 if test -n "$objs$old_deplibs"; then
3949 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
3950 exit $EXIT_FAILURE
3951 fi
3952 libobj="$output"
3953 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
3954 ;;
3955 *)
3956 libobj=
3957 obj="$output"
3958 ;;
3959 esac
3960
3961 # Delete the old objects.
3962 $run $rm $obj $libobj
3963
3964 # Objects from convenience libraries. This assumes
3965 # single-version convenience libraries. Whenever we create
3966 # different ones for PIC/non-PIC, this we'll have to duplicate
3967 # the extraction.
3968 reload_conv_objs=
3969 gentop=
3970 # reload_cmds runs $LD directly, so let us get rid of
3971 # -Wl from whole_archive_flag_spec
3972 wl=
3973
3974 if test -n "$convenience"; then
3975 if test -n "$whole_archive_flag_spec"; then
3976 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
3977 else
3978 gentop="$output_objdir/${obj}x"
3979 $show "${rm}r $gentop"
3980 $run ${rm}r "$gentop"
3981 $show "$mkdir $gentop"
3982 $run $mkdir "$gentop"
3983 status=$?
3984 if test "$status" -ne 0 && test ! -d "$gentop"; then
3985 exit $status
3986 fi
3987 generated="$generated $gentop"
3988
3989 for xlib in $convenience; do
3990 # Extract the objects.
3991 case $xlib in
3992 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3993 *) xabs=`pwd`"/$xlib" ;;
3994 esac
3995 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3996 xdir="$gentop/$xlib"
3997
3998 $show "${rm}r $xdir"
3999 $run ${rm}r "$xdir"
4000 $show "$mkdir $xdir"
4001 $run $mkdir "$xdir"
4002 status=$?
4003 if test "$status" -ne 0 && test ! -d "$xdir"; then
4004 exit $status
4005 fi
4006 # We will extract separately just the conflicting names and we will no
4007 # longer touch any unique names. It is faster to leave these extract
4008 # automatically by $AR in one run.
4009 $show "(cd $xdir && $AR x $xabs)"
4010 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
4011 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
4012 :
4013 else
4014 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
4015 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
4016 $AR t "$xabs" | sort | uniq -cd | while read -r count name
4017 do
4018 i=1
4019 while test "$i" -le "$count"
4020 do
4021 # Put our $i before any first dot (extension)
4022 # Never overwrite any file
4023 name_to="$name"
4024 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
4025 do
4026 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
4027 done
4028 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
4029 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
4030 i=`expr $i + 1`
4031 done
4032 done
4033 fi
4034
4035 reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4036 done
4037 fi
4038 fi
4039
4040 # Create the old-style object.
4041 reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
4042
4043 output="$obj"
4044 cmds=$reload_cmds
4045 save_ifs="$IFS"; IFS='~'
4046 for cmd in $cmds; do
4047 IFS="$save_ifs"
4048 eval cmd=\"$cmd\"
4049 $show "$cmd"
4050 $run eval "$cmd" || exit $?
4051 done
4052 IFS="$save_ifs"
4053
4054 # Exit if we aren't doing a library object file.
4055 if test -z "$libobj"; then
4056 if test -n "$gentop"; then
4057 $show "${rm}r $gentop"
4058 $run ${rm}r $gentop
4059 fi
4060
4061 exit $EXIT_SUCCESS
4062 fi
4063
4064 if test "$build_libtool_libs" != yes; then
4065 if test -n "$gentop"; then
4066 $show "${rm}r $gentop"
4067 $run ${rm}r $gentop
4068 fi
4069
4070 # Create an invalid libtool object if no PIC, so that we don't
4071 # accidentally link it into a program.
4072 # $show "echo timestamp > $libobj"
4073 # $run eval "echo timestamp > $libobj" || exit $?
4074 exit $EXIT_SUCCESS
4075 fi
4076
4077 if test -n "$pic_flag" || test "$pic_mode" != default; then
4078 # Only do commands if we really have different PIC objects.
4079 reload_objs="$libobjs $reload_conv_objs"
4080 output="$libobj"
4081 cmds=$reload_cmds
4082 save_ifs="$IFS"; IFS='~'
4083 for cmd in $cmds; do
4084 IFS="$save_ifs"
4085 eval cmd=\"$cmd\"
4086 $show "$cmd"
4087 $run eval "$cmd" || exit $?
4088 done
4089 IFS="$save_ifs"
4090 fi
4091
4092 if test -n "$gentop"; then
4093 $show "${rm}r $gentop"
4094 $run ${rm}r $gentop
4095 fi
4096
4097 exit $EXIT_SUCCESS
4098 ;;
4099
4100 prog)
4101 case $host in
4102 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
4103 esac
4104 if test -n "$vinfo"; then
4105 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4106 fi
4107
4108 if test -n "$release"; then
4109 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4110 fi
4111
4112 if test "$preload" = yes; then
4113 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4114 test "$dlopen_self_static" = unknown; then
4115 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4116 fi
4117 fi
4118
4119 case $host in
4120 *-*-rhapsody* | *-*-darwin1.[012])
4121 # On Rhapsody replace the C library is the System framework
4122 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4123 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4124 ;;
4125 esac
4126
4127 case $host in
4128 *darwin*)
4129 # Don't allow lazy linking, it breaks C++ global constructors
4130 if test "$tagname" = CXX ; then
4131 compile_command="$compile_command ${wl}-bind_at_load"
4132 finalize_command="$finalize_command ${wl}-bind_at_load"
4133 fi
4134 ;;
4135 esac
4136
4137 compile_command="$compile_command $compile_deplibs"
4138 finalize_command="$finalize_command $finalize_deplibs"
4139
4140 if test -n "$rpath$xrpath"; then
4141 # If the user specified any rpath flags, then add them.
4142 for libdir in $rpath $xrpath; do
4143 # This is the magic to use -rpath.
4144 case "$finalize_rpath " in
4145 *" $libdir "*) ;;
4146 *) finalize_rpath="$finalize_rpath $libdir" ;;
4147 esac
4148 done
4149 fi
4150
4151 # Now hardcode the library paths
4152 rpath=
4153 hardcode_libdirs=
4154 for libdir in $compile_rpath $finalize_rpath; do
4155 if test -n "$hardcode_libdir_flag_spec"; then
4156 if test -n "$hardcode_libdir_separator"; then
4157 if test -z "$hardcode_libdirs"; then
4158 hardcode_libdirs="$libdir"
4159 else
4160 # Just accumulate the unique libdirs.
4161 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4162 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4163 ;;
4164 *)
4165 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4166 ;;
4167 esac
4168 fi
4169 else
4170 eval flag=\"$hardcode_libdir_flag_spec\"
4171 rpath="$rpath $flag"
4172 fi
4173 elif test -n "$runpath_var"; then
4174 case "$perm_rpath " in
4175 *" $libdir "*) ;;
4176 *) perm_rpath="$perm_rpath $libdir" ;;
4177 esac
4178 fi
4179 case $host in
4180 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4181 case :$dllsearchpath: in
4182 *":$libdir:"*) ;;
4183 *) dllsearchpath="$dllsearchpath:$libdir";;
4184 esac
4185 ;;
4186 esac
4187 done
4188 # Substitute the hardcoded libdirs into the rpath.
4189 if test -n "$hardcode_libdir_separator" &&
4190 test -n "$hardcode_libdirs"; then
4191 libdir="$hardcode_libdirs"
4192 eval rpath=\" $hardcode_libdir_flag_spec\"
4193 fi
4194 compile_rpath="$rpath"
4195
4196 rpath=
4197 hardcode_libdirs=
4198 for libdir in $finalize_rpath; do
4199 if test -n "$hardcode_libdir_flag_spec"; then
4200 if test -n "$hardcode_libdir_separator"; then
4201 if test -z "$hardcode_libdirs"; then
4202 hardcode_libdirs="$libdir"
4203 else
4204 # Just accumulate the unique libdirs.
4205 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4206 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4207 ;;
4208 *)
4209 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4210 ;;
4211 esac
4212 fi
4213 else
4214 eval flag=\"$hardcode_libdir_flag_spec\"
4215 rpath="$rpath $flag"
4216 fi
4217 elif test -n "$runpath_var"; then
4218 case "$finalize_perm_rpath " in
4219 *" $libdir "*) ;;
4220 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
4221 esac
4222 fi
4223 done
4224 # Substitute the hardcoded libdirs into the rpath.
4225 if test -n "$hardcode_libdir_separator" &&
4226 test -n "$hardcode_libdirs"; then
4227 libdir="$hardcode_libdirs"
4228 eval rpath=\" $hardcode_libdir_flag_spec\"
4229 fi
4230 finalize_rpath="$rpath"
4231
4232 if test -n "$libobjs" && test "$build_old_libs" = yes; then
4233 # Transform all the library objects into standard objects.
4234 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4235 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4236 fi
4237
4238 dlsyms=
4239 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4240 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4241 dlsyms="${outputname}S.c"
4242 else
4243 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4244 fi
4245 fi
4246
4247 if test -n "$dlsyms"; then
4248 case $dlsyms in
4249 "") ;;
4250 *.c)
4251 # Discover the nlist of each of the dlfiles.
4252 nlist="$output_objdir/${outputname}.nm"
4253
4254 $show "$rm $nlist ${nlist}S ${nlist}T"
4255 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4256
4257 # Parse the name list into a source file.
4258 $show "creating $output_objdir/$dlsyms"
4259
4260 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4261 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4262 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4263
4264 #ifdef __cplusplus
4265 extern \"C\" {
4266 #endif
4267
4268 /* Prevent the only kind of declaration conflicts we can make. */
4269 #define lt_preloaded_symbols some_other_symbol
4270
4271 /* External symbol declarations for the compiler. */\
4272 "
4273
4274 if test "$dlself" = yes; then
4275 $show "generating symbol list for \`$output'"
4276
4277 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4278
4279 # Add our own program objects to the symbol list.
4280 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4281 for arg in $progfiles; do
4282 $show "extracting global C symbols from \`$arg'"
4283 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4284 done
4285
4286 if test -n "$exclude_expsyms"; then
4287 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4288 $run eval '$mv "$nlist"T "$nlist"'
4289 fi
4290
4291 if test -n "$export_symbols_regex"; then
4292 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4293 $run eval '$mv "$nlist"T "$nlist"'
4294 fi
4295
4296 # Prepare the list of exported symbols
4297 if test -z "$export_symbols"; then
4298 export_symbols="$output_objdir/$output.exp"
4299 $run $rm $export_symbols
4300 $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4301 else
4302 $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
4303 $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
4304 $run eval 'mv "$nlist"T "$nlist"'
4305 fi
4306 fi
4307
4308 for arg in $dlprefiles; do
4309 $show "extracting global C symbols from \`$arg'"
4310 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4311 $run eval '$echo ": $name " >> "$nlist"'
4312 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4313 done
4314
4315 if test -z "$run"; then
4316 # Make sure we have at least an empty file.
4317 test -f "$nlist" || : > "$nlist"
4318
4319 if test -n "$exclude_expsyms"; then
4320 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4321 $mv "$nlist"T "$nlist"
4322 fi
4323
4324 # Try sorting and uniquifying the output.
4325 if grep -v "^: " < "$nlist" |
4326 if sort -k 3 </dev/null >/dev/null 2>&1; then
4327 sort -k 3
4328 else
4329 sort +2
4330 fi |
4331 uniq > "$nlist"S; then
4332 :
4333 else
4334 grep -v "^: " < "$nlist" > "$nlist"S
4335 fi
4336
4337 if test -f "$nlist"S; then
4338 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4339 else
4340 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4341 fi
4342
4343 $echo >> "$output_objdir/$dlsyms" "\
4344
4345 #undef lt_preloaded_symbols
4346
4347 #if defined (__STDC__) && __STDC__
4348 # define lt_ptr void *
4349 #else
4350 # define lt_ptr char *
4351 # define const
4352 #endif
4353
4354 /* The mapping between symbol names and symbols. */
4355 const struct {
4356 const char *name;
4357 lt_ptr address;
4358 }
4359 lt_preloaded_symbols[] =
4360 {\
4361 "
4362
4363 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4364
4365 $echo >> "$output_objdir/$dlsyms" "\
4366 {0, (lt_ptr) 0}
4367 };
4368
4369 /* This works around a problem in FreeBSD linker */
4370 #ifdef FREEBSD_WORKAROUND
4371 static const void *lt_preloaded_setup() {
4372 return lt_preloaded_symbols;
4373 }
4374 #endif
4375
4376 #ifdef __cplusplus
4377 }
4378 #endif\
4379 "
4380 fi
4381
4382 pic_flag_for_symtable=
4383 case $host in
4384 # compiling the symbol table file with pic_flag works around
4385 # a FreeBSD bug that causes programs to crash when -lm is
4386 # linked before any other PIC object. But we must not use
4387 # pic_flag when linking with -static. The problem exists in
4388 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4389 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4390 case "$compile_command " in
4391 *" -static "*) ;;
4392 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4393 esac;;
4394 *-*-hpux*)
4395 case "$compile_command " in
4396 *" -static "*) ;;
4397 *) pic_flag_for_symtable=" $pic_flag";;
4398 esac
4399 esac
4400
4401 # Now compile the dynamic symbol file.
4402 $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4403 $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4404
4405 # Clean up the generated files.
4406 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4407 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4408
4409 # Transform the symbol file into the correct name.
4410 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4411 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4412 ;;
4413 *)
4414 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4415 exit $EXIT_FAILURE
4416 ;;
4417 esac
4418 else
4419 # We keep going just in case the user didn't refer to
4420 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4421 # really was required.
4422
4423 # Nullify the symbol file.
4424 compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
4425 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
4426 fi
4427
4428 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4429 # Replace the output file specification.
4430 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4431 link_command="$compile_command$compile_rpath"
4432
4433 # We have no uninstalled library dependencies, so finalize right now.
4434 $show "$link_command"
4435 $run eval "$link_command"
4436 status=$?
4437
4438 # Delete the generated files.
4439 if test -n "$dlsyms"; then
4440 $show "$rm $output_objdir/${outputname}S.${objext}"
4441 $run $rm "$output_objdir/${outputname}S.${objext}"
4442 fi
4443
4444 exit $status
4445 fi
4446
4447 if test -n "$shlibpath_var"; then
4448 # We should set the shlibpath_var
4449 rpath=
4450 for dir in $temp_rpath; do
4451 case $dir in
4452 [\\/]* | [A-Za-z]:[\\/]*)
4453 # Absolute path.
4454 rpath="$rpath$dir:"
4455 ;;
4456 *)
4457 # Relative path: add a thisdir entry.
4458 rpath="$rpath\$thisdir/$dir:"
4459 ;;
4460 esac
4461 done
4462 temp_rpath="$rpath"
4463 fi
4464
4465 if test -n "$compile_shlibpath$finalize_shlibpath"; then
4466 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
4467 fi
4468 if test -n "$finalize_shlibpath"; then
4469 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
4470 fi
4471
4472 compile_var=
4473 finalize_var=
4474 if test -n "$runpath_var"; then
4475 if test -n "$perm_rpath"; then
4476 # We should set the runpath_var.
4477 rpath=
4478 for dir in $perm_rpath; do
4479 rpath="$rpath$dir:"
4480 done
4481 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
4482 fi
4483 if test -n "$finalize_perm_rpath"; then
4484 # We should set the runpath_var.
4485 rpath=
4486 for dir in $finalize_perm_rpath; do
4487 rpath="$rpath$dir:"
4488 done
4489 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
4490 fi
4491 fi
4492
4493 if test "$no_install" = yes; then
4494 # We don't need to create a wrapper script.
4495 link_command="$compile_var$compile_command$compile_rpath"
4496 # Replace the output file specification.
4497 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4498 # Delete the old output file.
4499 $run $rm $output
4500 # Link the executable and exit
4501 $show "$link_command"
4502 $run eval "$link_command" || exit $?
4503 exit $EXIT_SUCCESS
4504 fi
4505
4506 if test "$hardcode_action" = relink; then
4507 # Fast installation is not supported
4508 link_command="$compile_var$compile_command$compile_rpath"
4509 relink_command="$finalize_var$finalize_command$finalize_rpath"
4510
4511 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4512 $echo "$modename: \`$output' will be relinked during installation" 1>&2
4513 else
4514 if test "$fast_install" != no; then
4515 link_command="$finalize_var$compile_command$finalize_rpath"
4516 if test "$fast_install" = yes; then
4517 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
4518 else
4519 # fast_install is set to needless
4520 relink_command=
4521 fi
4522 else
4523 link_command="$compile_var$compile_command$compile_rpath"
4524 relink_command="$finalize_var$finalize_command$finalize_rpath"
4525 fi
4526 fi
4527
4528 # Replace the output file specification.
4529 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
4530
4531 # Delete the old output files.
4532 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4533
4534 $show "$link_command"
4535 $run eval "$link_command" || exit $?
4536
4537 # Now create the wrapper script.
4538 $show "creating $output"
4539
4540 # Quote the relink command for shipping.
4541 if test -n "$relink_command"; then
4542 # Preserve any variables that may affect compiler behavior
4543 for var in $variables_saved_for_relink; do
4544 if eval test -z \"\${$var+set}\"; then
4545 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
4546 elif eval var_value=\$$var; test -z "$var_value"; then
4547 relink_command="$var=; export $var; $relink_command"
4548 else
4549 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4550 relink_command="$var=\"$var_value\"; export $var; $relink_command"
4551 fi
4552 done
4553 relink_command="(cd `pwd`; $relink_command)"
4554 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
4555 fi
4556
4557 # Quote $echo for shipping.
4558 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4559 case $progpath in
4560 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4561 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4562 esac
4563 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4564 else
4565 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
4566 fi
4567
4568 # Only actually do things if our run command is non-null.
4569 if test -z "$run"; then
4570 # win32 will think the script is a binary if it has
4571 # a .exe suffix, so we strip it off here.
4572 case $output in
4573 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
4574 esac
4575 # test for cygwin because mv fails w/o .exe extensions
4576 case $host in
4577 *cygwin*)
4578 exeext=.exe
4579 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
4580 *) exeext= ;;
4581 esac
4582 case $host in
4583 *cygwin* | *mingw* )
4584 cwrappersource=`$echo ${objdir}/lt-${output}.c`
4585 cwrapper=`$echo ${output}.exe`
4586 $rm $cwrappersource $cwrapper
4587 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4588
4589 cat > $cwrappersource <<EOF
4590
4591 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4592 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4593
4594 The $output program cannot be directly executed until all the libtool
4595 libraries that it depends on are installed.
4596
4597 This wrapper executable should never be moved out of the build directory.
4598 If it is, it will not operate correctly.
4599
4600 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4601 but could eventually absorb all of the scripts functionality and
4602 exec $objdir/$outputname directly.
4603 */
4604 EOF
4605 cat >> $cwrappersource<<"EOF"
4606 #include <stdio.h>
4607 #include <stdlib.h>
4608 #include <unistd.h>
4609 #include <malloc.h>
4610 #include <stdarg.h>
4611 #include <assert.h>
4612
4613 #if defined(PATH_MAX)
4614 # define LT_PATHMAX PATH_MAX
4615 #elif defined(MAXPATHLEN)
4616 # define LT_PATHMAX MAXPATHLEN
4617 #else
4618 # define LT_PATHMAX 1024
4619 #endif
4620
4621 #ifndef DIR_SEPARATOR
4622 #define DIR_SEPARATOR '/'
4623 #endif
4624
4625 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4626 defined (__OS2__)
4627 #define HAVE_DOS_BASED_FILE_SYSTEM
4628 #ifndef DIR_SEPARATOR_2
4629 #define DIR_SEPARATOR_2 '\\'
4630 #endif
4631 #endif
4632
4633 #ifndef DIR_SEPARATOR_2
4634 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4635 #else /* DIR_SEPARATOR_2 */
4636 # define IS_DIR_SEPARATOR(ch) \
4637 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4638 #endif /* DIR_SEPARATOR_2 */
4639
4640 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4641 #define XFREE(stale) do { \
4642 if (stale) { free ((void *) stale); stale = 0; } \
4643 } while (0)
4644
4645 const char *program_name = NULL;
4646
4647 void * xmalloc (size_t num);
4648 char * xstrdup (const char *string);
4649 char * basename (const char *name);
4650 char * fnqualify(const char *path);
4651 char * strendzap(char *str, const char *pat);
4652 void lt_fatal (const char *message, ...);
4653
4654 int
4655 main (int argc, char *argv[])
4656 {
4657 char **newargz;
4658 int i;
4659
4660 program_name = (char *) xstrdup ((char *) basename (argv[0]));
4661 newargz = XMALLOC(char *, argc+2);
4662 EOF
4663
4664 cat >> $cwrappersource <<EOF
4665 newargz[0] = "$SHELL";
4666 EOF
4667
4668 cat >> $cwrappersource <<"EOF"
4669 newargz[1] = fnqualify(argv[0]);
4670 /* we know the script has the same name, without the .exe */
4671 /* so make sure newargz[1] doesn't end in .exe */
4672 strendzap(newargz[1],".exe");
4673 for (i = 1; i < argc; i++)
4674 newargz[i+1] = xstrdup(argv[i]);
4675 newargz[argc+1] = NULL;
4676 EOF
4677
4678 cat >> $cwrappersource <<EOF
4679 execv("$SHELL",newargz);
4680 EOF
4681
4682 cat >> $cwrappersource <<"EOF"
4683 }
4684
4685 void *
4686 xmalloc (size_t num)
4687 {
4688 void * p = (void *) malloc (num);
4689 if (!p)
4690 lt_fatal ("Memory exhausted");
4691
4692 return p;
4693 }
4694
4695 char *
4696 xstrdup (const char *string)
4697 {
4698 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
4699 ;
4700 }
4701
4702 char *
4703 basename (const char *name)
4704 {
4705 const char *base;
4706
4707 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4708 /* Skip over the disk name in MSDOS pathnames. */
4709 if (isalpha (name[0]) && name[1] == ':')
4710 name += 2;
4711 #endif
4712
4713 for (base = name; *name; name++)
4714 if (IS_DIR_SEPARATOR (*name))
4715 base = name + 1;
4716 return (char *) base;
4717 }
4718
4719 char *
4720 fnqualify(const char *path)
4721 {
4722 size_t size;
4723 char *p;
4724 char tmp[LT_PATHMAX + 1];
4725
4726 assert(path != NULL);
4727
4728 /* Is it qualified already? */
4729 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4730 if (isalpha (path[0]) && path[1] == ':')
4731 return xstrdup (path);
4732 #endif
4733 if (IS_DIR_SEPARATOR (path[0]))
4734 return xstrdup (path);
4735
4736 /* prepend the current directory */
4737 /* doesn't handle '~' */
4738 if (getcwd (tmp, LT_PATHMAX) == NULL)
4739 lt_fatal ("getcwd failed");
4740 size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
4741 p = XMALLOC(char, size);
4742 sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
4743 return p;
4744 }
4745
4746 char *
4747 strendzap(char *str, const char *pat)
4748 {
4749 size_t len, patlen;
4750
4751 assert(str != NULL);
4752 assert(pat != NULL);
4753
4754 len = strlen(str);
4755 patlen = strlen(pat);
4756
4757 if (patlen <= len)
4758 {
4759 str += len - patlen;
4760 if (strcmp(str, pat) == 0)
4761 *str = '\0';
4762 }
4763 return str;
4764 }
4765
4766 static void
4767 lt_error_core (int exit_status, const char * mode,
4768 const char * message, va_list ap)
4769 {
4770 fprintf (stderr, "%s: %s: ", program_name, mode);
4771 vfprintf (stderr, message, ap);
4772 fprintf (stderr, ".\n");
4773
4774 if (exit_status >= 0)
4775 exit (exit_status);
4776 }
4777
4778 void
4779 lt_fatal (const char *message, ...)
4780 {
4781 va_list ap;
4782 va_start (ap, message);
4783 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
4784 va_end (ap);
4785 }
4786 EOF
4787 # we should really use a build-platform specific compiler
4788 # here, but OTOH, the wrappers (shell script and this C one)
4789 # are only useful if you want to execute the "real" binary.
4790 # Since the "real" binary is built for $host, then this
4791 # wrapper might as well be built for $host, too.
4792 $run $LTCC -s -o $cwrapper $cwrappersource
4793 ;;
4794 esac
4795 $rm $output
4796 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4797
4798 $echo > $output "\
4799 #! $SHELL
4800
4801 # $output - temporary wrapper script for $objdir/$outputname
4802 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4803 #
4804 # The $output program cannot be directly executed until all the libtool
4805 # libraries that it depends on are installed.
4806 #
4807 # This wrapper script should never be moved out of the build directory.
4808 # If it is, it will not operate correctly.
4809
4810 # Sed substitution that helps us do robust quoting. It backslashifies
4811 # metacharacters that are still active within double-quoted strings.
4812 Xsed='${SED} -e 1s/^X//'
4813 sed_quote_subst='$sed_quote_subst'
4814
4815 # The HP-UX ksh and POSIX shell print the target directory to stdout
4816 # if CDPATH is set.
4817 if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
4818
4819 relink_command=\"$relink_command\"
4820
4821 # This environment variable determines our operation mode.
4822 if test \"\$libtool_install_magic\" = \"$magic\"; then
4823 # install mode needs the following variable:
4824 notinst_deplibs='$notinst_deplibs'
4825 else
4826 # When we are sourced in execute mode, \$file and \$echo are already set.
4827 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4828 echo=\"$qecho\"
4829 file=\"\$0\"
4830 # Make sure echo works.
4831 if test \"X\$1\" = X--no-reexec; then
4832 # Discard the --no-reexec flag, and continue.
4833 shift
4834 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
4835 # Yippee, \$echo works!
4836 :
4837 else
4838 # Restart under the correct shell, and then maybe \$echo will work.
4839 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
4840 fi
4841 fi\
4842 "
4843 $echo >> $output "\
4844
4845 # Find the directory that this script lives in.
4846 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
4847 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4848
4849 # Follow symbolic links until we get to the real thisdir.
4850 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
4851 while test -n \"\$file\"; do
4852 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
4853
4854 # If there was a directory component, then change thisdir.
4855 if test \"x\$destdir\" != \"x\$file\"; then
4856 case \"\$destdir\" in
4857 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4858 *) thisdir=\"\$thisdir/\$destdir\" ;;
4859 esac
4860 fi
4861
4862 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
4863 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
4864 done
4865
4866 # Try to get the absolute directory name.
4867 absdir=\`cd \"\$thisdir\" && pwd\`
4868 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4869 "
4870
4871 if test "$fast_install" = yes; then
4872 $echo >> $output "\
4873 program=lt-'$outputname'$exeext
4874 progdir=\"\$thisdir/$objdir\"
4875
4876 if test ! -f \"\$progdir/\$program\" || \\
4877 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4878 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4879
4880 file=\"\$\$-\$program\"
4881
4882 if test ! -d \"\$progdir\"; then
4883 $mkdir \"\$progdir\"
4884 else
4885 $rm \"\$progdir/\$file\"
4886 fi"
4887
4888 $echo >> $output "\
4889
4890 # relink executable if necessary
4891 if test -n \"\$relink_command\"; then
4892 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4893 else
4894 $echo \"\$relink_command_output\" >&2
4895 $rm \"\$progdir/\$file\"
4896 exit $EXIT_FAILURE
4897 fi
4898 fi
4899
4900 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4901 { $rm \"\$progdir/\$program\";
4902 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4903 $rm \"\$progdir/\$file\"
4904 fi"
4905 else
4906 $echo >> $output "\
4907 program='$outputname'
4908 progdir=\"\$thisdir/$objdir\"
4909 "
4910 fi
4911
4912 $echo >> $output "\
4913
4914 if test -f \"\$progdir/\$program\"; then"
4915
4916 # Export our shlibpath_var if we have one.
4917 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4918 $echo >> $output "\
4919 # Add our own library path to $shlibpath_var
4920 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4921
4922 # Some systems cannot cope with colon-terminated $shlibpath_var
4923 # The second colon is a workaround for a bug in BeOS R4 sed
4924 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
4925
4926 export $shlibpath_var
4927 "
4928 fi
4929
4930 # fixup the dll searchpath if we need to.
4931 if test -n "$dllsearchpath"; then
4932 $echo >> $output "\
4933 # Add the dll search path components to the executable PATH
4934 PATH=$dllsearchpath:\$PATH
4935 "
4936 fi
4937
4938 $echo >> $output "\
4939 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4940 # Run the actual program with our arguments.
4941 "
4942 case $host in
4943 # Backslashes separate directories on plain windows
4944 *-*-mingw | *-*-os2*)
4945 $echo >> $output "\
4946 exec \$progdir\\\\\$program \${1+\"\$@\"}
4947 "
4948 ;;
4949
4950 *)
4951 $echo >> $output "\
4952 exec \$progdir/\$program \${1+\"\$@\"}
4953 "
4954 ;;
4955 esac
4956 $echo >> $output "\
4957 \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
4958 exit $EXIT_FAILURE
4959 fi
4960 else
4961 # The program doesn't exist.
4962 \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
4963 \$echo \"This script is just a wrapper for \$program.\" 1>&2
4964 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
4965 exit $EXIT_FAILURE
4966 fi
4967 fi\
4968 "
4969 chmod +x $output
4970 fi
4971 exit $EXIT_SUCCESS
4972 ;;
4973 esac
4974
4975 # See if we need to build an old-fashioned archive.
4976 for oldlib in $oldlibs; do
4977
4978 if test "$build_libtool_libs" = convenience; then
4979 oldobjs="$libobjs_save"
4980 addlibs="$convenience"
4981 build_libtool_libs=no
4982 else
4983 if test "$build_libtool_libs" = module; then
4984 oldobjs="$libobjs_save"
4985 build_libtool_libs=no
4986 else
4987 oldobjs="$old_deplibs $non_pic_objects"
4988 fi
4989 addlibs="$old_convenience"
4990 fi
4991
4992 if test -n "$addlibs"; then
4993 gentop="$output_objdir/${outputname}x"
4994 $show "${rm}r $gentop"
4995 $run ${rm}r "$gentop"
4996 $show "$mkdir $gentop"
4997 $run $mkdir "$gentop"
4998 status=$?
4999 if test "$status" -ne 0 && test ! -d "$gentop"; then
5000 exit $status
5001 fi
5002 generated="$generated $gentop"
5003
5004 # Add in members from convenience archives.
5005 for xlib in $addlibs; do
5006 # Extract the objects.
5007 case $xlib in
5008 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
5009 *) xabs=`pwd`"/$xlib" ;;
5010 esac
5011 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
5012 xdir="$gentop/$xlib"
5013
5014 $show "${rm}r $xdir"
5015 $run ${rm}r "$xdir"
5016 $show "$mkdir $xdir"
5017 $run $mkdir "$xdir"
5018 status=$?
5019 if test "$status" -ne 0 && test ! -d "$xdir"; then
5020 exit $status
5021 fi
5022 # We will extract separately just the conflicting names and we will no
5023 # longer touch any unique names. It is faster to leave these extract
5024 # automatically by $AR in one run.
5025 $show "(cd $xdir && $AR x $xabs)"
5026 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
5027 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
5028 :
5029 else
5030 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
5031 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
5032 $AR t "$xabs" | sort | uniq -cd | while read -r count name
5033 do
5034 i=1
5035 while test "$i" -le "$count"
5036 do
5037 # Put our $i before any first dot (extension)
5038 # Never overwrite any file
5039 name_to="$name"
5040 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
5041 do
5042 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
5043 done
5044 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
5045 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
5046 i=`expr $i + 1`
5047 done
5048 done
5049 fi
5050
5051 oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
5052 done
5053 fi
5054
5055 # Do each command in the archive commands.
5056 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5057 cmds=$old_archive_from_new_cmds
5058 else
5059 eval cmds=\"$old_archive_cmds\"
5060
5061 if len=`expr "X$cmds" : ".*"` &&
5062 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5063 cmds=$old_archive_cmds
5064 else
5065 # the command line is too long to link in one step, link in parts
5066 $echo "using piecewise archive linking..."
5067 save_RANLIB=$RANLIB
5068 RANLIB=:
5069 objlist=
5070 concat_cmds=
5071 save_oldobjs=$oldobjs
5072 # GNU ar 2.10+ was changed to match POSIX; thus no paths are
5073 # encoded into archives. This makes 'ar r' malfunction in
5074 # this piecewise linking case whenever conflicting object
5075 # names appear in distinct ar calls; check, warn and compensate.
5076 if (for obj in $save_oldobjs
5077 do
5078 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5079 done | sort | sort -uc >/dev/null 2>&1); then
5080 :
5081 else
5082 $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
5083 $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
5084 AR_FLAGS=cq
5085 fi
5086 # Is there a better way of finding the last object in the list?
5087 for obj in $save_oldobjs
5088 do
5089 last_oldobj=$obj
5090 done
5091 for obj in $save_oldobjs
5092 do
5093 oldobjs="$objlist $obj"
5094 objlist="$objlist $obj"
5095 eval test_cmds=\"$old_archive_cmds\"
5096 if len=`expr "X$test_cmds" : ".*"` &&
5097 test "$len" -le "$max_cmd_len"; then
5098 :
5099 else
5100 # the above command should be used before it gets too long
5101 oldobjs=$objlist
5102 if test "$obj" = "$last_oldobj" ; then
5103 RANLIB=$save_RANLIB
5104 fi
5105 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5106 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5107 objlist=
5108 fi
5109 done
5110 RANLIB=$save_RANLIB
5111 oldobjs=$objlist
5112 if test "X$oldobjs" = "X" ; then
5113 eval cmds=\"\$concat_cmds\"
5114 else
5115 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5116 fi
5117 fi
5118 fi
5119 save_ifs="$IFS"; IFS='~'
5120 for cmd in $cmds; do
5121 eval cmd=\"$cmd\"
5122 IFS="$save_ifs"
5123 $show "$cmd"
5124 $run eval "$cmd" || exit $?
5125 done
5126 IFS="$save_ifs"
5127 done
5128
5129 if test -n "$generated"; then
5130 $show "${rm}r$generated"
5131 $run ${rm}r$generated
5132 fi
5133
5134 # Now create the libtool archive.
5135 case $output in
5136 *.la)
5137 old_library=
5138 test "$build_old_libs" = yes && old_library="$libname.$libext"
5139 $show "creating $output"
5140
5141 # Preserve any variables that may affect compiler behavior
5142 for var in $variables_saved_for_relink; do
5143 if eval test -z \"\${$var+set}\"; then
5144 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5145 elif eval var_value=\$$var; test -z "$var_value"; then
5146 relink_command="$var=; export $var; $relink_command"
5147 else
5148 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5149 relink_command="$var=\"$var_value\"; export $var; $relink_command"
5150 fi
5151 done
5152 # Quote the link command for shipping.
5153 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5154 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
5155 if test "$hardcode_automatic" = yes ; then
5156 relink_command=
5157 fi
5158
5159
5160 # Only create the output if not a dry run.
5161 if test -z "$run"; then
5162 for installed in no yes; do
5163 if test "$installed" = yes; then
5164 if test -z "$install_libdir"; then
5165 break
5166 fi
5167 output="$output_objdir/$outputname"i
5168 # Replace all uninstalled libtool libraries with the installed ones
5169 newdependency_libs=
5170 for deplib in $dependency_libs; do
5171 case $deplib in
5172 *.la)
5173 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
5174 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5175 if test -z "$libdir"; then
5176 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5177 exit $EXIT_FAILURE
5178 fi
5179 newdependency_libs="$newdependency_libs $libdir/$name"
5180 ;;
5181 *) newdependency_libs="$newdependency_libs $deplib" ;;
5182 esac
5183 done
5184 dependency_libs="$newdependency_libs"
5185 newdlfiles=
5186 for lib in $dlfiles; do
5187 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5188 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5189 if test -z "$libdir"; then
5190 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5191 exit $EXIT_FAILURE
5192 fi
5193 newdlfiles="$newdlfiles $libdir/$name"
5194 done
5195 dlfiles="$newdlfiles"
5196 newdlprefiles=
5197 for lib in $dlprefiles; do
5198 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5199 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5200 if test -z "$libdir"; then
5201 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5202 exit $EXIT_FAILURE
5203 fi
5204 newdlprefiles="$newdlprefiles $libdir/$name"
5205 done
5206 dlprefiles="$newdlprefiles"
5207 else
5208 newdlfiles=
5209 for lib in $dlfiles; do
5210 case $lib in
5211 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5212 *) abs=`pwd`"/$lib" ;;
5213 esac
5214 newdlfiles="$newdlfiles $abs"
5215 done
5216 dlfiles="$newdlfiles"
5217 newdlprefiles=
5218 for lib in $dlprefiles; do
5219 case $lib in
5220 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5221 *) abs=`pwd`"/$lib" ;;
5222 esac
5223 newdlprefiles="$newdlprefiles $abs"
5224 done
5225 dlprefiles="$newdlprefiles"
5226 fi
5227 $rm $output
5228 # place dlname in correct position for cygwin
5229 tdlname=$dlname
5230 case $host,$output,$installed,$module,$dlname in
5231 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5232 esac
5233 $echo > $output "\
5234 # $outputname - a libtool library file
5235 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5236 #
5237 # Please DO NOT delete this file!
5238 # It is necessary for linking the library.
5239
5240 # The name that we can dlopen(3).
5241 dlname='$tdlname'
5242
5243 # Names of this library.
5244 library_names='$library_names'
5245
5246 # The name of the static archive.
5247 old_library='$old_library'
5248
5249 # Libraries that this one depends upon.
5250 dependency_libs='$dependency_libs'
5251
5252 # Version information for $libname.
5253 current=$current
5254 age=$age
5255 revision=$revision
5256
5257 # Is this an already installed library?
5258 installed=$installed
5259
5260 # Should we warn about portability when linking against -modules?
5261 shouldnotlink=$module
5262
5263 # Files to dlopen/dlpreopen
5264 dlopen='$dlfiles'
5265 dlpreopen='$dlprefiles'
5266
5267 # Directory that this library needs to be installed in:
5268 libdir='$install_libdir'"
5269 if test "$installed" = no && test "$need_relink" = yes; then
5270 $echo >> $output "\
5271 relink_command=\"$relink_command\""
5272 fi
5273 done
5274 fi
5275
5276 # Do a symbolic link so that the libtool archive can be found in
5277 # LD_LIBRARY_PATH before the program is installed.
5278 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5279 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5280 ;;
5281 esac
5282 exit $EXIT_SUCCESS
5283 ;;
5284
5285 # libtool install mode
5286 install)
5287 modename="$modename: install"
5288
5289 # There may be an optional sh(1) argument at the beginning of
5290 # install_prog (especially on Windows NT).
5291 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5292 # Allow the use of GNU shtool's install command.
5293 $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
5294 # Aesthetically quote it.
5295 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5296 case $arg in
5297 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
5298 arg="\"$arg\""
5299 ;;
5300 esac
5301 install_prog="$arg "
5302 arg="$1"
5303 shift
5304 else
5305 install_prog=
5306 arg="$nonopt"
5307 fi
5308
5309 # The real first argument should be the name of the installation program.
5310 # Aesthetically quote it.
5311 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5312 case $arg in
5313 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
5314 arg="\"$arg\""
5315 ;;
5316 esac
5317 install_prog="$install_prog$arg"
5318
5319 # We need to accept at least all the BSD install flags.
5320 dest=
5321 files=
5322 opts=
5323 prev=
5324 install_type=
5325 isdir=no
5326 stripme=
5327 for arg
5328 do
5329 if test -n "$dest"; then
5330 files="$files $dest"
5331 dest="$arg"
5332 continue
5333 fi
5334
5335 case $arg in
5336 -d) isdir=yes ;;
5337 -f) prev="-f" ;;
5338 -g) prev="-g" ;;
5339 -m) prev="-m" ;;
5340 -o) prev="-o" ;;
5341 -s)
5342 stripme=" -s"
5343 continue
5344 ;;
5345 -*) ;;
5346
5347 *)
5348 # If the previous option needed an argument, then skip it.
5349 if test -n "$prev"; then
5350 prev=
5351 else
5352 dest="$arg"
5353 continue
5354 fi
5355 ;;
5356 esac
5357
5358 # Aesthetically quote the argument.
5359 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5360 case $arg in
5361 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
5362 arg="\"$arg\""
5363 ;;
5364 esac
5365 install_prog="$install_prog $arg"
5366 done
5367
5368 if test -z "$install_prog"; then
5369 $echo "$modename: you must specify an install program" 1>&2
5370 $echo "$help" 1>&2
5371 exit $EXIT_FAILURE
5372 fi
5373
5374 if test -n "$prev"; then
5375 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5376 $echo "$help" 1>&2
5377 exit $EXIT_FAILURE
5378 fi
5379
5380 if test -z "$files"; then
5381 if test -z "$dest"; then
5382 $echo "$modename: no file or destination specified" 1>&2
5383 else
5384 $echo "$modename: you must specify a destination" 1>&2
5385 fi
5386 $echo "$help" 1>&2
5387 exit $EXIT_FAILURE
5388 fi
5389
5390 # Strip any trailing slash from the destination.
5391 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5392
5393 # Check to see that the destination is a directory.
5394 test -d "$dest" && isdir=yes
5395 if test "$isdir" = yes; then
5396 destdir="$dest"
5397 destname=
5398 else
5399 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5400 test "X$destdir" = "X$dest" && destdir=.
5401 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5402
5403 # Not a directory, so check to see that there is only one file specified.
5404 set dummy $files
5405 if test "$#" -gt 2; then
5406 $echo "$modename: \`$dest' is not a directory" 1>&2
5407 $echo "$help" 1>&2
5408 exit $EXIT_FAILURE
5409 fi
5410 fi
5411 case $destdir in
5412 [\\/]* | [A-Za-z]:[\\/]*) ;;
5413 *)
5414 for file in $files; do
5415 case $file in
5416 *.lo) ;;
5417 *)
5418 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5419 $echo "$help" 1>&2
5420 exit $EXIT_FAILURE
5421 ;;
5422 esac
5423 done
5424 ;;
5425 esac
5426
5427 # This variable tells wrapper scripts just to set variables rather
5428 # than running their programs.
5429 libtool_install_magic="$magic"
5430
5431 staticlibs=
5432 future_libdirs=
5433 current_libdirs=
5434 for file in $files; do
5435
5436 # Do each installation.
5437 case $file in
5438 *.$libext)
5439 # Do the static libraries later.
5440 staticlibs="$staticlibs $file"
5441 ;;
5442
5443 *.la)
5444 # Check to see that this really is a libtool archive.
5445 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5446 else
5447 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5448 $echo "$help" 1>&2
5449 exit $EXIT_FAILURE
5450 fi
5451
5452 library_names=
5453 old_library=
5454 relink_command=
5455 # If there is no directory component, then add one.
5456 case $file in
5457 */* | *\\*) . $file ;;
5458 *) . ./$file ;;
5459 esac
5460
5461 # Add the libdir to current_libdirs if it is the destination.
5462 if test "X$destdir" = "X$libdir"; then
5463 case "$current_libdirs " in
5464 *" $libdir "*) ;;
5465 *) current_libdirs="$current_libdirs $libdir" ;;
5466 esac
5467 else
5468 # Note the libdir as a future libdir.
5469 case "$future_libdirs " in
5470 *" $libdir "*) ;;
5471 *) future_libdirs="$future_libdirs $libdir" ;;
5472 esac
5473 fi
5474
5475 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
5476 test "X$dir" = "X$file/" && dir=
5477 dir="$dir$objdir"
5478
5479 if test -n "$relink_command"; then
5480 # Determine the prefix the user has applied to our future dir.
5481 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
5482
5483 # Don't allow the user to place us outside of our expected
5484 # location b/c this prevents finding dependent libraries that
5485 # are installed to the same prefix.
5486 # At present, this check doesn't affect windows .dll's that
5487 # are installed into $libdir/../bin (currently, that works fine)
5488 # but it's something to keep an eye on.
5489 if test "$inst_prefix_dir" = "$destdir"; then
5490 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5491 exit $EXIT_FAILURE
5492 fi
5493
5494 if test -n "$inst_prefix_dir"; then
5495 # Stick the inst_prefix_dir data into the link command.
5496 relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
5497 else
5498 relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
5499 fi
5500
5501 $echo "$modename: warning: relinking \`$file'" 1>&2
5502 $show "$relink_command"
5503 if $run eval "$relink_command"; then :
5504 else
5505 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
5506 exit $EXIT_FAILURE
5507 fi
5508 fi
5509
5510 # See the names of the shared library.
5511 set dummy $library_names
5512 if test -n "$2"; then
5513 realname="$2"
5514 shift
5515 shift
5516
5517 srcname="$realname"
5518 test -n "$relink_command" && srcname="$realname"T
5519
5520 # Install the shared library and build the symlinks.
5521 $show "$install_prog $dir/$srcname $destdir/$realname"
5522 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
5523 if test -n "$stripme" && test -n "$striplib"; then
5524 $show "$striplib $destdir/$realname"
5525 $run eval "$striplib $destdir/$realname" || exit $?
5526 fi
5527
5528 if test "$#" -gt 0; then
5529 # Delete the old symlinks, and create new ones.
5530 for linkname
5531 do
5532 if test "$linkname" != "$realname"; then
5533 $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5534 $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5535 fi
5536 done
5537 fi
5538
5539 # Do each command in the postinstall commands.
5540 lib="$destdir/$realname"
5541 cmds=$postinstall_cmds
5542 save_ifs="$IFS"; IFS='~'
5543 for cmd in $cmds; do
5544 IFS="$save_ifs"
5545 eval cmd=\"$cmd\"
5546 $show "$cmd"
5547 $run eval "$cmd" || exit $?
5548 done
5549 IFS="$save_ifs"
5550 fi
5551
5552 # Install the pseudo-library for information purposes.
5553 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5554 instname="$dir/$name"i
5555 $show "$install_prog $instname $destdir/$name"
5556 $run eval "$install_prog $instname $destdir/$name" || exit $?
5557
5558 # Maybe install the static library, too.
5559 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
5560 ;;
5561
5562 *.lo)
5563 # Install (i.e. copy) a libtool object.
5564
5565 # Figure out destination file name, if it wasn't already specified.
5566 if test -n "$destname"; then
5567 destfile="$destdir/$destname"
5568 else
5569 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5570 destfile="$destdir/$destfile"
5571 fi
5572
5573 # Deduce the name of the destination old-style object file.
5574 case $destfile in
5575 *.lo)
5576 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
5577 ;;
5578 *.$objext)
5579 staticdest="$destfile"
5580 destfile=
5581 ;;
5582 *)
5583 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
5584 $echo "$help" 1>&2
5585 exit $EXIT_FAILURE
5586 ;;
5587 esac
5588
5589 # Install the libtool object if requested.
5590 if test -n "$destfile"; then
5591 $show "$install_prog $file $destfile"
5592 $run eval "$install_prog $file $destfile" || exit $?
5593 fi
5594
5595 # Install the old object if enabled.
5596 if test "$build_old_libs" = yes; then
5597 # Deduce the name of the old-style object file.
5598 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
5599
5600 $show "$install_prog $staticobj $staticdest"
5601 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
5602 fi
5603 exit $EXIT_SUCCESS
5604 ;;
5605
5606 *)
5607 # Figure out destination file name, if it wasn't already specified.
5608 if test -n "$destname"; then
5609 destfile="$destdir/$destname"
5610 else
5611 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5612 destfile="$destdir/$destfile"
5613 fi
5614
5615 # If the file is missing, and there is a .exe on the end, strip it
5616 # because it is most likely a libtool script we actually want to
5617 # install
5618 stripped_ext=""
5619 case $file in
5620 *.exe)
5621 if test ! -f "$file"; then
5622 file=`$echo $file|${SED} 's,.exe$,,'`
5623 stripped_ext=".exe"
5624 fi
5625 ;;
5626 esac
5627
5628 # Do a test to see if this is really a libtool program.
5629 case $host in
5630 *cygwin*|*mingw*)
5631 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
5632 ;;
5633 *)
5634 wrapper=$file
5635 ;;
5636 esac
5637 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
5638 notinst_deplibs=
5639 relink_command=
5640
5641 # To insure that "foo" is sourced, and not "foo.exe",
5642 # finese the cygwin/MSYS system by explicitly sourcing "foo."
5643 # which disallows the automatic-append-.exe behavior.
5644 case $build in
5645 *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5646 *) wrapperdot=${wrapper} ;;
5647 esac
5648 # If there is no directory component, then add one.
5649 case $file in
5650 */* | *\\*) . ${wrapperdot} ;;
5651 *) . ./${wrapperdot} ;;
5652 esac
5653
5654 # Check the variables that should have been set.
5655 if test -z "$notinst_deplibs"; then
5656 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
5657 exit $EXIT_FAILURE
5658 fi
5659
5660 finalize=yes
5661 for lib in $notinst_deplibs; do
5662 # Check to see that each library is installed.
5663 libdir=
5664 if test -f "$lib"; then
5665 # If there is no directory component, then add one.
5666 case $lib in
5667 */* | *\\*) . $lib ;;
5668 *) . ./$lib ;;
5669 esac
5670 fi
5671 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
5672 if test -n "$libdir" && test ! -f "$libfile"; then
5673 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
5674 finalize=no
5675 fi
5676 done
5677
5678 relink_command=
5679 # To insure that "foo" is sourced, and not "foo.exe",
5680 # finese the cygwin/MSYS system by explicitly sourcing "foo."
5681 # which disallows the automatic-append-.exe behavior.
5682 case $build in
5683 *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5684 *) wrapperdot=${wrapper} ;;
5685 esac
5686 # If there is no directory component, then add one.
5687 case $file in
5688 */* | *\\*) . ${wrapperdot} ;;
5689 *) . ./${wrapperdot} ;;
5690 esac
5691
5692 outputname=
5693 if test "$fast_install" = no && test -n "$relink_command"; then
5694 if test "$finalize" = yes && test -z "$run"; then
5695 tmpdir="/tmp"
5696 test -n "$TMPDIR" && tmpdir="$TMPDIR"
5697 tmpdir="$tmpdir/libtool-$$"
5698 save_umask=`umask`
5699 umask 0077
5700 if $mkdir "$tmpdir"; then
5701 umask $save_umask
5702 else
5703 umask $save_umask
5704 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5705 continue
5706 fi
5707 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5708 outputname="$tmpdir/$file"
5709 # Replace the output file specification.
5710 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
5711
5712 $show "$relink_command"
5713 if $run eval "$relink_command"; then :
5714 else
5715 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
5716 ${rm}r "$tmpdir"
5717 continue
5718 fi
5719 file="$outputname"
5720 else
5721 $echo "$modename: warning: cannot relink \`$file'" 1>&2
5722 fi
5723 else
5724 # Install the binary that we compiled earlier.
5725 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
5726 fi
5727 fi
5728
5729 # remove .exe since cygwin /usr/bin/install will append another
5730 # one anyways
5731 case $install_prog,$host in
5732 */usr/bin/install*,*cygwin*)
5733 case $file:$destfile in
5734 *.exe:*.exe)
5735 # this is ok
5736 ;;
5737 *.exe:*)
5738 destfile=$destfile.exe
5739 ;;
5740 *:*.exe)
5741 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
5742 ;;
5743 esac
5744 ;;
5745 esac
5746 $show "$install_prog$stripme $file $destfile"
5747 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
5748 test -n "$outputname" && ${rm}r "$tmpdir"
5749 ;;
5750 esac
5751 done
5752
5753 for file in $staticlibs; do
5754 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5755
5756 # Set up the ranlib parameters.
5757 oldlib="$destdir/$name"
5758
5759 $show "$install_prog $file $oldlib"
5760 $run eval "$install_prog \$file \$oldlib" || exit $?
5761
5762 if test -n "$stripme" && test -n "$old_striplib"; then
5763 $show "$old_striplib $oldlib"
5764 $run eval "$old_striplib $oldlib" || exit $?
5765 fi
5766
5767 # Do each command in the postinstall commands.
5768 cmds=$old_postinstall_cmds
5769 save_ifs="$IFS"; IFS='~'
5770 for cmd in $cmds; do
5771 IFS="$save_ifs"
5772 eval cmd=\"$cmd\"
5773 $show "$cmd"
5774 $run eval "$cmd" || exit $?
5775 done
5776 IFS="$save_ifs"
5777 done
5778
5779 if test -n "$future_libdirs"; then
5780 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
5781 fi
5782
5783 if test -n "$current_libdirs"; then
5784 # Maybe just do a dry run.
5785 test -n "$run" && current_libdirs=" -n$current_libdirs"
5786 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
5787 else
5788 exit $EXIT_SUCCESS
5789 fi
5790 ;;
5791
5792 # libtool finish mode
5793 finish)
5794 modename="$modename: finish"
5795 libdirs="$nonopt"
5796 admincmds=
5797
5798 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
5799 for dir
5800 do
5801 libdirs="$libdirs $dir"
5802 done
5803
5804 for libdir in $libdirs; do
5805 if test -n "$finish_cmds"; then
5806 # Do each command in the finish commands.
5807 cmds=$finish_cmds
5808 save_ifs="$IFS"; IFS='~'
5809 for cmd in $cmds; do
5810 IFS="$save_ifs"
5811 eval cmd=\"$cmd\"
5812 $show "$cmd"
5813 $run eval "$cmd" || admincmds="$admincmds
5814 $cmd"
5815 done
5816 IFS="$save_ifs"
5817 fi
5818 if test -n "$finish_eval"; then
5819 # Do the single finish_eval.
5820 eval cmds=\"$finish_eval\"
5821 $run eval "$cmds" || admincmds="$admincmds
5822 $cmds"
5823 fi
5824 done
5825 fi
5826
5827 # Exit here if they wanted silent mode.
5828 test "$show" = : && exit $EXIT_SUCCESS
5829
5830 $echo "----------------------------------------------------------------------"
5831 $echo "Libraries have been installed in:"
5832 for libdir in $libdirs; do
5833 $echo " $libdir"
5834 done
5835 $echo
5836 $echo "If you ever happen to want to link against installed libraries"
5837 $echo "in a given directory, LIBDIR, you must either use libtool, and"
5838 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
5839 $echo "flag during linking and do at least one of the following:"
5840 if test -n "$shlibpath_var"; then
5841 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
5842 $echo " during execution"
5843 fi
5844 if test -n "$runpath_var"; then
5845 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
5846 $echo " during linking"
5847 fi
5848 if test -n "$hardcode_libdir_flag_spec"; then
5849 libdir=LIBDIR
5850 eval flag=\"$hardcode_libdir_flag_spec\"
5851
5852 $echo " - use the \`$flag' linker flag"
5853 fi
5854 if test -n "$admincmds"; then
5855 $echo " - have your system administrator run these commands:$admincmds"
5856 fi
5857 if test -f /etc/ld.so.conf; then
5858 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
5859 fi
5860 $echo
5861 $echo "See any operating system documentation about shared libraries for"
5862 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5863 $echo "----------------------------------------------------------------------"
5864 exit $EXIT_SUCCESS
5865 ;;
5866
5867 # libtool execute mode
5868 execute)
5869 modename="$modename: execute"
5870
5871 # The first argument is the command name.
5872 cmd="$nonopt"
5873 if test -z "$cmd"; then
5874 $echo "$modename: you must specify a COMMAND" 1>&2
5875 $echo "$help"
5876 exit $EXIT_FAILURE
5877 fi
5878
5879 # Handle -dlopen flags immediately.
5880 for file in $execute_dlfiles; do
5881 if test ! -f "$file"; then
5882 $echo "$modename: \`$file' is not a file" 1>&2
5883 $echo "$help" 1>&2
5884 exit $EXIT_FAILURE
5885 fi
5886
5887 dir=
5888 case $file in
5889 *.la)
5890 # Check to see that this really is a libtool archive.
5891 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5892 else
5893 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5894 $echo "$help" 1>&2
5895 exit $EXIT_FAILURE
5896 fi
5897
5898 # Read the libtool library.
5899 dlname=
5900 library_names=
5901
5902 # If there is no directory component, then add one.
5903 case $file in
5904 */* | *\\*) . $file ;;
5905 *) . ./$file ;;
5906 esac
5907
5908 # Skip this library if it cannot be dlopened.
5909 if test -z "$dlname"; then
5910 # Warn if it was a shared library.
5911 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
5912 continue
5913 fi
5914
5915 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
5916 test "X$dir" = "X$file" && dir=.
5917
5918 if test -f "$dir/$objdir/$dlname"; then
5919 dir="$dir/$objdir"
5920 else
5921 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
5922 exit $EXIT_FAILURE
5923 fi
5924 ;;
5925
5926 *.lo)
5927 # Just add the directory containing the .lo file.
5928 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
5929 test "X$dir" = "X$file" && dir=.
5930 ;;
5931
5932 *)
5933 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
5934 continue
5935 ;;
5936 esac
5937
5938 # Get the absolute pathname.
5939 absdir=`cd "$dir" && pwd`
5940 test -n "$absdir" && dir="$absdir"
5941
5942 # Now add the directory to shlibpath_var.
5943 if eval "test -z \"\$$shlibpath_var\""; then
5944 eval "$shlibpath_var=\"\$dir\""
5945 else
5946 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
5947 fi
5948 done
5949
5950 # This variable tells wrapper scripts just to set shlibpath_var
5951 # rather than running their programs.
5952 libtool_execute_magic="$magic"
5953
5954 # Check if any of the arguments is a wrapper script.
5955 args=
5956 for file
5957 do
5958 case $file in
5959 -*) ;;
5960 *)
5961 # Do a test to see if this is really a libtool program.
5962 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5963 # If there is no directory component, then add one.
5964 case $file in
5965 */* | *\\*) . $file ;;
5966 *) . ./$file ;;
5967 esac
5968
5969 # Transform arg to wrapped name.
5970 file="$progdir/$program"
5971 fi
5972 ;;
5973 esac
5974 # Quote arguments (to preserve shell metacharacters).
5975 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
5976 args="$args \"$file\""
5977 done
5978
5979 if test -z "$run"; then
5980 if test -n "$shlibpath_var"; then
5981 # Export the shlibpath_var.
5982 eval "export $shlibpath_var"
5983 fi
5984
5985 # Restore saved environment variables
5986 if test "${save_LC_ALL+set}" = set; then
5987 LC_ALL="$save_LC_ALL"; export LC_ALL
5988 fi
5989 if test "${save_LANG+set}" = set; then
5990 LANG="$save_LANG"; export LANG
5991 fi
5992
5993 # Now prepare to actually exec the command.
5994 exec_cmd="\$cmd$args"
5995 else
5996 # Display what would be done.
5997 if test -n "$shlibpath_var"; then
5998 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
5999 $echo "export $shlibpath_var"
6000 fi
6001 $echo "$cmd$args"
6002 exit $EXIT_SUCCESS
6003 fi
6004 ;;
6005
6006 # libtool clean and uninstall mode
6007 clean | uninstall)
6008 modename="$modename: $mode"
6009 rm="$nonopt"
6010 files=
6011 rmforce=
6012 exit_status=0
6013
6014 # This variable tells wrapper scripts just to set variables rather
6015 # than running their programs.
6016 libtool_install_magic="$magic"
6017
6018 for arg
6019 do
6020 case $arg in
6021 -f) rm="$rm $arg"; rmforce=yes ;;
6022 -*) rm="$rm $arg" ;;
6023 *) files="$files $arg" ;;
6024 esac
6025 done
6026
6027 if test -z "$rm"; then
6028 $echo "$modename: you must specify an RM program" 1>&2
6029 $echo "$help" 1>&2
6030 exit $EXIT_FAILURE
6031 fi
6032
6033 rmdirs=
6034
6035 origobjdir="$objdir"
6036 for file in $files; do
6037 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6038 if test "X$dir" = "X$file"; then
6039 dir=.
6040 objdir="$origobjdir"
6041 else
6042 objdir="$dir/$origobjdir"
6043 fi
6044 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6045 test "$mode" = uninstall && objdir="$dir"
6046
6047 # Remember objdir for removal later, being careful to avoid duplicates
6048 if test "$mode" = clean; then
6049 case " $rmdirs " in
6050 *" $objdir "*) ;;
6051 *) rmdirs="$rmdirs $objdir" ;;
6052 esac
6053 fi
6054
6055 # Don't error if the file doesn't exist and rm -f was used.
6056 if (test -L "$file") >/dev/null 2>&1 \
6057 || (test -h "$file") >/dev/null 2>&1 \
6058 || test -f "$file"; then
6059 :
6060 elif test -d "$file"; then
6061 exit_status=1
6062 continue
6063 elif test "$rmforce" = yes; then
6064 continue
6065 fi
6066
6067 rmfiles="$file"
6068
6069 case $name in
6070 *.la)
6071 # Possibly a libtool archive, so verify it.
6072 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6073 . $dir/$name
6074
6075 # Delete the libtool libraries and symlinks.
6076 for n in $library_names; do
6077 rmfiles="$rmfiles $objdir/$n"
6078 done
6079 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6080 test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6081
6082 if test "$mode" = uninstall; then
6083 if test -n "$library_names"; then
6084 # Do each command in the postuninstall commands.
6085 cmds=$postuninstall_cmds
6086 save_ifs="$IFS"; IFS='~'
6087 for cmd in $cmds; do
6088 IFS="$save_ifs"
6089 eval cmd=\"$cmd\"
6090 $show "$cmd"
6091 $run eval "$cmd"
6092 if test "$?" -ne 0 && test "$rmforce" != yes; then
6093 exit_status=1
6094 fi
6095 done
6096 IFS="$save_ifs"
6097 fi
6098
6099 if test -n "$old_library"; then
6100 # Do each command in the old_postuninstall commands.
6101 cmds=$old_postuninstall_cmds
6102 save_ifs="$IFS"; IFS='~'
6103 for cmd in $cmds; do
6104 IFS="$save_ifs"
6105 eval cmd=\"$cmd\"
6106 $show "$cmd"
6107 $run eval "$cmd"
6108 if test "$?" -ne 0 && test "$rmforce" != yes; then
6109 exit_status=1
6110 fi
6111 done
6112 IFS="$save_ifs"
6113 fi
6114 # FIXME: should reinstall the best remaining shared library.
6115 fi
6116 fi
6117 ;;
6118
6119 *.lo)
6120 # Possibly a libtool object, so verify it.
6121 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6122
6123 # Read the .lo file
6124 . $dir/$name
6125
6126 # Add PIC object to the list of files to remove.
6127 if test -n "$pic_object" \
6128 && test "$pic_object" != none; then
6129 rmfiles="$rmfiles $dir/$pic_object"
6130 fi
6131
6132 # Add non-PIC object to the list of files to remove.
6133 if test -n "$non_pic_object" \
6134 && test "$non_pic_object" != none; then
6135 rmfiles="$rmfiles $dir/$non_pic_object"
6136 fi
6137 fi
6138 ;;
6139
6140 *)
6141 if test "$mode" = clean ; then
6142 noexename=$name
6143 case $file in
6144 *.exe)
6145 file=`$echo $file|${SED} 's,.exe$,,'`
6146 noexename=`$echo $name|${SED} 's,.exe$,,'`
6147 # $file with .exe has already been added to rmfiles,
6148 # add $file without .exe
6149 rmfiles="$rmfiles $file"
6150 ;;
6151 esac
6152 # Do a test to see if this is a libtool program.
6153 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6154 relink_command=
6155 . $dir/$noexename
6156
6157 # note $name still contains .exe if it was in $file originally
6158 # as does the version of $file that was added into $rmfiles
6159 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
6160 if test "$fast_install" = yes && test -n "$relink_command"; then
6161 rmfiles="$rmfiles $objdir/lt-$name"
6162 fi
6163 if test "X$noexename" != "X$name" ; then
6164 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
6165 fi
6166 fi
6167 fi
6168 ;;
6169 esac
6170 $show "$rm $rmfiles"
6171 $run $rm $rmfiles || exit_status=1
6172 done
6173 objdir="$origobjdir"
6174
6175 # Try to remove the ${objdir}s in the directories where we deleted files
6176 for dir in $rmdirs; do
6177 if test -d "$dir"; then
6178 $show "rmdir $dir"
6179 $run rmdir $dir >/dev/null 2>&1
6180 fi
6181 done
6182
6183 exit $exit_status
6184 ;;
6185
6186 "")
6187 $echo "$modename: you must specify a MODE" 1>&2
6188 $echo "$generic_help" 1>&2
6189 exit $EXIT_FAILURE
6190 ;;
6191 esac
6192
6193 if test -z "$exec_cmd"; then
6194 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6195 $echo "$generic_help" 1>&2
6196 exit $EXIT_FAILURE
6197 fi
6198 fi # test -z "$show_help"
6199
6200 if test -n "$exec_cmd"; then
6201 eval exec $exec_cmd
6202 exit $EXIT_FAILURE
6203 fi
6204
6205 # We need to display help for each of the modes.
6206 case $mode in
6207 "") $echo \
6208 "Usage: $modename [OPTION]... [MODE-ARG]...
6209
6210 Provide generalized library-building support services.
6211
6212 --config show all configuration variables
6213 --debug enable verbose shell tracing
6214 -n, --dry-run display commands without modifying any files
6215 --features display basic configuration information and exit
6216 --finish same as \`--mode=finish'
6217 --help display this help message and exit
6218 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6219 --quiet same as \`--silent'
6220 --silent don't print informational messages
6221 --tag=TAG use configuration variables from tag TAG
6222 --version print version information
6223
6224 MODE must be one of the following:
6225
6226 clean remove files from the build directory
6227 compile compile a source file into a libtool object
6228 execute automatically set library path, then run a program
6229 finish complete the installation of libtool libraries
6230 install install libraries or executables
6231 link create a library or an executable
6232 uninstall remove libraries from an installed directory
6233
6234 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6235 a more detailed description of MODE.
6236
6237 Report bugs to <bug-libtool@gnu.org>."
6238 exit $EXIT_SUCCESS
6239 ;;
6240
6241 clean)
6242 $echo \
6243 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6244
6245 Remove files from the build directory.
6246
6247 RM is the name of the program to use to delete files associated with each FILE
6248 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6249 to RM.
6250
6251 If FILE is a libtool library, object or program, all the files associated
6252 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6253 ;;
6254
6255 compile)
6256 $echo \
6257 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6258
6259 Compile a source file into a libtool library object.
6260
6261 This mode accepts the following additional options:
6262
6263 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6264 -prefer-pic try to building PIC objects only
6265 -prefer-non-pic try to building non-PIC objects only
6266 -static always build a \`.o' file suitable for static linking
6267
6268 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6269 from the given SOURCEFILE.
6270
6271 The output file name is determined by removing the directory component from
6272 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6273 library object suffix, \`.lo'."
6274 ;;
6275
6276 execute)
6277 $echo \
6278 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6279
6280 Automatically set library path, then run a program.
6281
6282 This mode accepts the following additional options:
6283
6284 -dlopen FILE add the directory containing FILE to the library path
6285
6286 This mode sets the library path environment variable according to \`-dlopen'
6287 flags.
6288
6289 If any of the ARGS are libtool executable wrappers, then they are translated
6290 into their corresponding uninstalled binary, and any of their required library
6291 directories are added to the library path.
6292
6293 Then, COMMAND is executed, with ARGS as arguments."
6294 ;;
6295
6296 finish)
6297 $echo \
6298 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6299
6300 Complete the installation of libtool libraries.
6301
6302 Each LIBDIR is a directory that contains libtool libraries.
6303
6304 The commands that this mode executes may require superuser privileges. Use
6305 the \`--dry-run' option if you just want to see what would be executed."
6306 ;;
6307
6308 install)
6309 $echo \
6310 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6311
6312 Install executables or libraries.
6313
6314 INSTALL-COMMAND is the installation command. The first component should be
6315 either the \`install' or \`cp' program.
6316
6317 The rest of the components are interpreted as arguments to that command (only
6318 BSD-compatible install options are recognized)."
6319 ;;
6320
6321 link)
6322 $echo \
6323 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6324
6325 Link object files or libraries together to form another library, or to
6326 create an executable program.
6327
6328 LINK-COMMAND is a command using the C compiler that you would use to create
6329 a program from several object files.
6330
6331 The following components of LINK-COMMAND are treated specially:
6332
6333 -all-static do not do any dynamic linking at all
6334 -avoid-version do not add a version suffix if possible
6335 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6336 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6337 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6338 -export-symbols SYMFILE
6339 try to export only the symbols listed in SYMFILE
6340 -export-symbols-regex REGEX
6341 try to export only the symbols matching REGEX
6342 -LLIBDIR search LIBDIR for required installed libraries
6343 -lNAME OUTPUT-FILE requires the installed library libNAME
6344 -module build a library that can dlopened
6345 -no-fast-install disable the fast-install mode
6346 -no-install link a not-installable executable
6347 -no-undefined declare that a library does not refer to external symbols
6348 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6349 -objectlist FILE Use a list of object files found in FILE to specify objects
6350 -precious-files-regex REGEX
6351 don't remove output files matching REGEX
6352 -release RELEASE specify package release information
6353 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6354 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6355 -static do not do any dynamic linking of libtool libraries
6356 -version-info CURRENT[:REVISION[:AGE]]
6357 specify library version info [each variable defaults to 0]
6358
6359 All other options (arguments beginning with \`-') are ignored.
6360
6361 Every other argument is treated as a filename. Files ending in \`.la' are
6362 treated as uninstalled libtool libraries, other files are standard or library
6363 object files.
6364
6365 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6366 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6367 required, except when creating a convenience library.
6368
6369 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6370 using \`ar' and \`ranlib', or on Windows using \`lib'.
6371
6372 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6373 is created, otherwise an executable program is created."
6374 ;;
6375
6376 uninstall)
6377 $echo \
6378 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6379
6380 Remove libraries from an installation directory.
6381
6382 RM is the name of the program to use to delete files associated with each FILE
6383 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6384 to RM.
6385
6386 If FILE is a libtool library, all the files associated with it are deleted.
6387 Otherwise, only FILE itself is deleted using RM."
6388 ;;
6389
6390 *)
6391 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6392 $echo "$help" 1>&2
6393 exit $EXIT_FAILURE
6394 ;;
6395 esac
6396
6397 $echo
6398 $echo "Try \`$modename --help' for more information about other modes."
6399
6400 exit $EXIT_SUCCESS
6401
6402 # The TAGs below are defined such that we never get into a situation
6403 # in which we disable both kinds of libraries. Given conflicting
6404 # choices, we go for a static library, that is the most portable,
6405 # since we can't tell whether shared libraries were disabled because
6406 # the user asked for that or because the platform doesn't support
6407 # them. This is particularly important on AIX, because we don't
6408 # support having both static and shared libraries enabled at the same
6409 # time on that platform, so we default to a shared-only configuration.
6410 # If a disable-shared tag is given, we'll fallback to a static-only
6411 # configuration. But we'll never go from static-only to shared-only.
6412
6413 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6414 build_libtool_libs=no
6415 build_old_libs=yes
6416 # ### END LIBTOOL TAG CONFIG: disable-shared
6417
6418 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6419 build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
6420 # ### END LIBTOOL TAG CONFIG: disable-static
6421
6422 # Local Variables:
6423 # mode:shell-script
6424 # sh-indentation:2
6425 # End:
0 /usr/share/automake-1.7/missing
0 #! /bin/sh
1 # mkinstalldirs --- make directory hierarchy
2 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
3 # Created: 1993-05-16
4 # Public domain
5
6 # $Id: mkinstalldirs,v 1.1.1.1 2005/02/18 07:45:37 kzamir Exp $
7
8 errstatus=0
9
10 for file
11 do
12 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
13 shift
14
15 pathcomp=
16 for d
17 do
18 pathcomp="$pathcomp$d"
19 case "$pathcomp" in
20 -* ) pathcomp=./$pathcomp ;;
21 esac
22
23 if test ! -d "$pathcomp"; then
24 echo "mkdir $pathcomp"
25
26 mkdir "$pathcomp" || lasterr=$?
27
28 if test ! -d "$pathcomp"; then
29 errstatus=$lasterr
30 fi
31 fi
32
33 pathcomp="$pathcomp/"
34 done
35 done
36
37 exit $errstatus
38
39 # mkinstalldirs ends here
(New empty file)
0 # Makefile for program source directory in GNU NLS utilities package.
1 # Copyright (C) 1995-1997, 2000, 2001 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
2 #
3 # This file file be copied and used freely without restrictions. It can
4 # be used in projects which are not available under the GNU Public License
5 # but which still want to provide support for the GNU gettext functionality.
6 # Please note that the actual code is *not* freely available.
7
8 PACKAGE = @PACKAGE@
9 VERSION = @VERSION@
10
11 # These two variables depend on the location of this directory.
12 subdir = po
13 top_builddir = ..
14
15 SHELL = /bin/sh
16 @SET_MAKE@
17
18 srcdir = @srcdir@
19 top_srcdir = @top_srcdir@
20 VPATH = @srcdir@
21
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
24 datadir = @datadir@
25 localedir = $(datadir)/locale
26 gettextsrcdir = $(datadir)/gettext/po
27
28 INSTALL = @INSTALL@
29 INSTALL_DATA = @INSTALL_DATA@
30 MKINSTALLDIRS = @MKINSTALLDIRS@
31 mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(MKINSTALLDIRS)" ;; esac`
32
33 CC = @CC@
34 GMSGFMT = @GMSGFMT@
35 MSGFMT = @MSGFMT@
36 XGETTEXT = @XGETTEXT@
37 MSGMERGE = msgmerge
38
39 DEFS = @DEFS@
40 CFLAGS = @CFLAGS@
41 CPPFLAGS = @CPPFLAGS@
42
43 INCLUDES = -I.. -I$(top_srcdir)/intl
44
45 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
46
47 POFILES = @POFILES@
48 GMOFILES = @GMOFILES@
49 DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
50 $(POFILES) $(GMOFILES)
51
52 POTFILES = \
53
54 CATALOGS = @CATALOGS@
55
56 .SUFFIXES:
57 .SUFFIXES: .c .o .po .pox .gmo .mo
58
59 .c.o:
60 $(COMPILE) $<
61
62 .po.pox:
63 $(MAKE) $(PACKAGE).pot
64 $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
65
66 .po.mo:
67 $(MSGFMT) -o $@ $<
68
69 .po.gmo:
70 file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
71 && rm -f $$file && $(GMSGFMT) --statistics -o $$file $<
72
73
74 all: all-@USE_NLS@
75
76 all-yes: $(CATALOGS)
77 all-no:
78
79 # Note: Target 'all' must not depend on target '$(srcdir)/$(PACKAGE).pot',
80 # otherwise packages like GCC can not be built if only parts of the source
81 # have been downloaded.
82
83 $(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in
84 $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
85 --add-comments --keyword=_ --keyword=N_ \
86 --files-from=$(srcdir)/POTFILES.in \
87 && test ! -f $(PACKAGE).po \
88 || ( rm -f $(srcdir)/$(PACKAGE).pot \
89 && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
90
91
92 install: install-exec install-data
93 install-exec:
94 install-data: install-data-@USE_NLS@
95 if test "$(PACKAGE)" = "gettext"; then \
96 $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
97 $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
98 $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
99 else \
100 : ; \
101 fi
102 install-data-no: all
103 install-data-yes: all
104 $(mkinstalldirs) $(DESTDIR)$(datadir)
105 @catalogs='$(CATALOGS)'; \
106 for cat in $$catalogs; do \
107 cat=`basename $$cat`; \
108 lang=`echo $$cat | sed 's/\.gmo$$//'`; \
109 dir=$(localedir)/$$lang/LC_MESSAGES; \
110 $(mkinstalldirs) $(DESTDIR)$$dir; \
111 if test -r $$cat; then \
112 $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
113 echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE).mo"; \
114 else \
115 $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
116 echo "installing $(srcdir)/$$cat as" \
117 "$(DESTDIR)$$dir/$(PACKAGE).mo"; \
118 fi; \
119 done
120
121 # Define this as empty until I found a useful application.
122 installcheck:
123
124 uninstall:
125 catalogs='$(CATALOGS)'; \
126 for cat in $$catalogs; do \
127 cat=`basename $$cat`; \
128 lang=`echo $$cat | sed 's/\.gmo$$//'`; \
129 rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
130 done
131 if test "$(PACKAGE)" = "gettext"; then \
132 rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
133 else \
134 : ; \
135 fi
136
137 check: all
138
139 dvi info tags TAGS ID:
140
141 mostlyclean:
142 rm -f core core.* *.pox $(PACKAGE).po *.new.po
143 rm -fr *.o
144
145 clean: mostlyclean
146
147 distclean: clean
148 rm -f Makefile Makefile.in POTFILES *.mo
149
150 maintainer-clean: distclean
151 @echo "This command is intended for maintainers to use;"
152 @echo "it deletes files that may require special tools to rebuild."
153 rm -f $(GMOFILES)
154
155 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
156 dist distdir:
157 $(MAKE) update-po
158 @$(MAKE) dist2
159 # This is a separate target because 'update-po' must be executed before.
160 dist2: $(DISTFILES)
161 dists="$(DISTFILES)"; \
162 for file in $$dists; do \
163 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
164 cp -p $$dir/$$file $(distdir); \
165 done
166
167 update-po: Makefile
168 $(MAKE) $(PACKAGE).pot
169 if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; fi; \
170 cd $(srcdir); \
171 catalogs='$(GMOFILES)'; \
172 for cat in $$catalogs; do \
173 cat=`basename $$cat`; \
174 lang=`echo $$cat | sed 's/\.gmo$$//'`; \
175 echo "$$lang:"; \
176 if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \
177 mv -f $$lang.new.po $$lang.po; \
178 else \
179 echo "msgmerge for $$cat failed!"; \
180 rm -f $$lang.new.po; \
181 fi; \
182 done
183 $(MAKE) update-gmo
184
185 update-gmo: Makefile $(GMOFILES)
186 @:
187
188 Makefile: Makefile.in.in $(top_builddir)/config.status POTFILES.in
189 cd $(top_builddir) \
190 && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
191 $(SHELL) ./config.status
192
193 # Tell versions [3.59,3.63) of GNU make not to export all variables.
194 # Otherwise a system limit (for SysV at least) may be exceeded.
195 .NOEXPORT:
0 # List of source files containing translatable strings.
1
2 ## Created by Anjuta - will be overwritten
3 ## If you don't want it to overwrite it,
4 ## Please disable it in the Anjuta project configuration
5
6 # Source files
7 src/hdate_strings.c
Binary diff not shown
0 # translation of libhdate.po to French
1 # This file is distributed under the same license as the libhdate package.
2 # Copyright (C) 2005 Yaacov Zamir
3 # Yaacov Zamir, 2005.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: es_MX\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2005-07-27 19:20+0300\n"
10 "PO-Revision-Date: 2005-03-07 12:44+0200\n"
11 "Last-Translator: Yaacov Zamir\n"
12 "Language-Team: Franch\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16
17 #: src/hdate_strings.c:131
18 msgid "Sun"
19 msgstr "Dom"
20
21 #: src/hdate_strings.c:131
22 msgid "Mon"
23 msgstr "Lun"
24
25 #: src/hdate_strings.c:131
26 msgid "Tue"
27 msgstr "Mar"
28
29 #: src/hdate_strings.c:131
30 msgid "Wed"
31 msgstr "Mier"
32
33 #: src/hdate_strings.c:131
34 msgid "Thu"
35 msgstr "Jue"
36
37 #: src/hdate_strings.c:132
38 msgid "Fri"
39 msgstr "Vier"
40
41 #: src/hdate_strings.c:132
42 msgid "Sat"
43 msgstr "Sab"
44
45 #: src/hdate_strings.c:133
46 msgid "Sunday"
47 msgstr "Domingo"
48
49 #: src/hdate_strings.c:133
50 msgid "Monday"
51 msgstr "Lunes"
52
53 #: src/hdate_strings.c:133
54 msgid "Tuesday"
55 msgstr "Martes"
56
57 #: src/hdate_strings.c:133
58 msgid "Wednesday"
59 msgstr "Miercoles"
60
61 #: src/hdate_strings.c:134
62 msgid "Thursday"
63 msgstr "Jueves"
64
65 #: src/hdate_strings.c:134
66 msgid "Friday"
67 msgstr "Viernes"
68
69 #: src/hdate_strings.c:134
70 msgid "Saturday"
71 msgstr "Sabado"
72
73 #: src/hdate_strings.c:165
74 msgid "Jan"
75 msgstr "Ene"
76
77 #: src/hdate_strings.c:165
78 msgid "Feb"
79 msgstr "Feb"
80
81 #: src/hdate_strings.c:165
82 msgid "Mar"
83 msgstr "Mar"
84
85 #: src/hdate_strings.c:165
86 msgid "Apr"
87 msgstr "Abr"
88
89 #: src/hdate_strings.c:165 src/hdate_strings.c:169
90 msgid "May"
91 msgstr "May"
92
93 #: src/hdate_strings.c:166
94 msgid "Jun"
95 msgstr "Jun"
96
97 #: src/hdate_strings.c:166
98 msgid "Jul"
99 msgstr "Jul"
100
101 #: src/hdate_strings.c:166
102 msgid "Aug"
103 msgstr "Ago"
104
105 #: src/hdate_strings.c:166
106 msgid "Sep"
107 msgstr "Sep"
108
109 #: src/hdate_strings.c:166
110 msgid "Oct"
111 msgstr "Oct"
112
113 #: src/hdate_strings.c:167
114 msgid "Nov"
115 msgstr "Nov"
116
117 #: src/hdate_strings.c:167
118 msgid "Dec"
119 msgstr "Dic"
120
121 #: src/hdate_strings.c:168
122 msgid "January"
123 msgstr "Enero"
124
125 #: src/hdate_strings.c:168
126 msgid "February"
127 msgstr "Febrero"
128
129 #: src/hdate_strings.c:168
130 msgid "March"
131 msgstr "Marzo"
132
133 #: src/hdate_strings.c:169
134 msgid "April"
135 msgstr "Abril"
136
137 #: src/hdate_strings.c:169
138 msgid "June"
139 msgstr "Junio"
140
141 #: src/hdate_strings.c:170
142 msgid "July"
143 msgstr "Julio"
144
145 #: src/hdate_strings.c:170
146 msgid "August"
147 msgstr "Agosto"
148
149 #: src/hdate_strings.c:170
150 msgid "September"
151 msgstr "Septiembre"
152
153 #: src/hdate_strings.c:171
154 msgid "October"
155 msgstr "Octubre"
156
157 #: src/hdate_strings.c:171
158 msgid "November"
159 msgstr "Noviembre"
160
161 #: src/hdate_strings.c:171
162 msgid "December"
163 msgstr "Diciembre"
164
165 #: src/hdate_strings.c:202 src/hdate_strings.c:206
166 msgid "Tishrei"
167 msgstr "Tishrei"
168
169 #: src/hdate_strings.c:202 src/hdate_strings.c:206
170 msgid "Cheshvan"
171 msgstr "Jeshván"
172
173 #: src/hdate_strings.c:202 src/hdate_strings.c:206
174 msgid "Kislev"
175 msgstr "Kislev"
176
177 #: src/hdate_strings.c:202 src/hdate_strings.c:206
178 msgid "Tevet"
179 msgstr "Tevet"
180
181 #: src/hdate_strings.c:203 src/hdate_strings.c:207
182 #, fuzzy
183 msgid "Sh'vat"
184 msgstr "Sh'vat"
185
186 #: src/hdate_strings.c:203 src/hdate_strings.c:207
187 msgid "Adar"
188 msgstr "Adar"
189
190 #: src/hdate_strings.c:203 src/hdate_strings.c:207
191 msgid "Nisan"
192 msgstr "Nisan"
193
194 #: src/hdate_strings.c:203 src/hdate_strings.c:207
195 #, fuzzy
196 msgid "Iyyar"
197 msgstr "Iyyar"
198
199 #: src/hdate_strings.c:204 src/hdate_strings.c:208
200 msgid "Sivan"
201 msgstr "Siván"
202
203 #: src/hdate_strings.c:204 src/hdate_strings.c:208
204 msgid "Tamuz"
205 msgstr "Tamuz"
206
207 #: src/hdate_strings.c:204 src/hdate_strings.c:208
208 msgid "Av"
209 msgstr "Av"
210
211 #: src/hdate_strings.c:204 src/hdate_strings.c:208
212 msgid "Elul"
213 msgstr "Elul"
214
215 #: src/hdate_strings.c:204 src/hdate_strings.c:208
216 msgid "Adar I"
217 msgstr "Adar I"
218
219 #: src/hdate_strings.c:205 src/hdate_strings.c:209
220 msgid "Adar II"
221 msgstr "Adar II"
222
223 #: src/hdate_strings.c:241 src/hdate_strings.c:272
224 msgid "Rosh Hashana I"
225 msgstr "Rosh Hashana I"
226
227 #. 1
228 #: src/hdate_strings.c:242 src/hdate_strings.c:273
229 msgid "Rosh Hashana II"
230 msgstr "Rosh Hashana II"
231
232 #: src/hdate_strings.c:243 src/hdate_strings.c:274
233 msgid "Tzom Gedaliah"
234 msgstr "Ayuno de Gedaliah"
235
236 #: src/hdate_strings.c:244 src/hdate_strings.c:275
237 msgid "Yom Kippur"
238 msgstr "Yom Kippur"
239
240 #: src/hdate_strings.c:245 src/hdate_strings.c:276
241 msgid "Sukkot"
242 msgstr "Sukkot"
243
244 #: src/hdate_strings.c:246 src/hdate_strings.c:277
245 msgid "Hol hamoed Sukkot"
246 msgstr "Hol hamoed Sukkot"
247
248 #: src/hdate_strings.c:247 src/hdate_strings.c:278
249 msgid "Hoshana raba"
250 msgstr "Hoshana raba"
251
252 #: src/hdate_strings.c:248 src/hdate_strings.c:279
253 msgid "Simchat Torah"
254 msgstr "Simjat Torah"
255
256 #: src/hdate_strings.c:249 src/hdate_strings.c:280
257 msgid "Chanukah"
258 msgstr "Januka"
259
260 #: src/hdate_strings.c:250 src/hdate_strings.c:281
261 #, fuzzy
262 msgid "Asara B'Tevet"
263 msgstr "Asara B'Tevet"
264
265 #. 10
266 #: src/hdate_strings.c:251 src/hdate_strings.c:282
267 msgid "Tu B'Shvat"
268 msgstr "Tu B'Shvat"
269
270 #: src/hdate_strings.c:252 src/hdate_strings.c:283
271 #, fuzzy
272 msgid "Ta'anit Esther"
273 msgstr "Ta'anit Esther"
274
275 #: src/hdate_strings.c:253 src/hdate_strings.c:284
276 msgid "Purim"
277 msgstr "Purim"
278
279 #: src/hdate_strings.c:254 src/hdate_strings.c:285
280 msgid "Shushan Purim"
281 msgstr "Shushan Purim"
282
283 #: src/hdate_strings.c:255 src/hdate_strings.c:286
284 msgid "Pesach"
285 msgstr "Pesaj"
286
287 #: src/hdate_strings.c:256 src/hdate_strings.c:287
288 msgid "Hol hamoed Pesach"
289 msgstr "Jol hamoed Pesaj"
290
291 #: src/hdate_strings.c:257 src/hdate_strings.c:288
292 msgid "Yom HaAtzma'ut"
293 msgstr "Yom HaAtzma'ut"
294
295 #: src/hdate_strings.c:258 src/hdate_strings.c:289
296 msgid "Lag B'Omer"
297 msgstr "Lag B'Omer"
298
299 #: src/hdate_strings.c:259 src/hdate_strings.c:290
300 msgid "Erev Shavuot"
301 msgstr "Víspera de Shavuot"
302
303 #: src/hdate_strings.c:260 src/hdate_strings.c:291
304 msgid "Shavuot"
305 msgstr "Shavuot"
306
307 #. 20
308 #: src/hdate_strings.c:261 src/hdate_strings.c:292
309 msgid "Tzom Tammuz"
310 msgstr "Ayuno de Tammuz"
311
312 #: src/hdate_strings.c:262 src/hdate_strings.c:293
313 msgid "Tish'a B'Av"
314 msgstr "Tish'a B'Av"
315
316 #: src/hdate_strings.c:263 src/hdate_strings.c:294
317 msgid "Tu B'Av"
318 msgstr "Tu B'Av"
319
320 #: src/hdate_strings.c:264 src/hdate_strings.c:295
321 msgid "Yom HaShoah"
322 msgstr "Día del Holocausto"
323
324 #: src/hdate_strings.c:265 src/hdate_strings.c:296
325 msgid "Yom HaZikaron"
326 msgstr "Día del Recuerdo"
327
328 #. 25
329 #: src/hdate_strings.c:266 src/hdate_strings.c:297
330 #, fuzzy
331 msgid "Yom Yerushalayim"
332 msgstr "Yom Yerushalayim"
333
334 #: src/hdate_strings.c:267 src/hdate_strings.c:298
335 msgid "Shmini Atzeret"
336 msgstr "Shemini Atzeret"
337
338 #: src/hdate_strings.c:268 src/hdate_strings.c:299
339 msgid "Pesach VII"
340 msgstr "Pesaj VII"
341
342 #: src/hdate_strings.c:269 src/hdate_strings.c:300
343 msgid "Pesach VIII"
344 msgstr "Pesaj VIII"
345
346 #: src/hdate_strings.c:270 src/hdate_strings.c:301
347 msgid "Shavuot II"
348 msgstr "Shavuot II"
349
350 #: src/hdate_strings.c:334 src/hdate_strings.c:397
351 msgid "none"
352 msgstr "ninguno"
353
354 #: src/hdate_strings.c:335 src/hdate_strings.c:398
355 msgid "Bereshit"
356 msgstr "Bereshit"
357
358 #. 1
359 #: src/hdate_strings.c:336 src/hdate_strings.c:399
360 msgid "Noach"
361 msgstr "Noaj"
362
363 #: src/hdate_strings.c:337 src/hdate_strings.c:400
364 msgid "Lech-Lecha"
365 msgstr "Lej-Lejá"
366
367 #: src/hdate_strings.c:338 src/hdate_strings.c:401
368 msgid "Vayera"
369 msgstr "Vaira"
370
371 #: src/hdate_strings.c:339 src/hdate_strings.c:402
372 msgid "Chayei Sara"
373 msgstr "Jayei Sará"
374
375 #: src/hdate_strings.c:340 src/hdate_strings.c:403
376 #, fuzzy
377 msgid "Toldot"
378 msgstr "Toldot"
379
380 #: src/hdate_strings.c:341 src/hdate_strings.c:404
381 #, fuzzy
382 msgid "Vayetzei"
383 msgstr "Vayetzei"
384
385 #: src/hdate_strings.c:342 src/hdate_strings.c:405
386 #, fuzzy
387 msgid "Vayishlach"
388 msgstr "Vayishalaj"
389
390 #: src/hdate_strings.c:343 src/hdate_strings.c:406
391 #, fuzzy
392 msgid "Vayeshev"
393 msgstr "Vayeshev"
394
395 #: src/hdate_strings.c:344 src/hdate_strings.c:407
396 #, fuzzy
397 msgid "Miketz"
398 msgstr "Miketz"
399
400 #. 10
401 #: src/hdate_strings.c:345 src/hdate_strings.c:408
402 #, fuzzy
403 msgid "Vayigash"
404 msgstr "Vayigash"
405
406 #: src/hdate_strings.c:346 src/hdate_strings.c:409
407 #, fuzzy
408 msgid "Vayechi"
409 msgstr "Vayejí"
410
411 #: src/hdate_strings.c:347 src/hdate_strings.c:410
412 msgid "Shemot"
413 msgstr "Shemot"
414
415 #: src/hdate_strings.c:348 src/hdate_strings.c:411
416 msgid "Vaera"
417 msgstr "Vaerá"
418
419 #: src/hdate_strings.c:349 src/hdate_strings.c:412
420 msgid "Bo"
421 msgstr "Bo"
422
423 #: src/hdate_strings.c:350 src/hdate_strings.c:413
424 msgid "Beshalach"
425 msgstr "Beshalaj"
426
427 #: src/hdate_strings.c:351 src/hdate_strings.c:414
428 msgid "Yitro"
429 msgstr "Yitro"
430
431 #: src/hdate_strings.c:352 src/hdate_strings.c:415
432 msgid "Mishpatim"
433 msgstr "Mishpatim"
434
435 #: src/hdate_strings.c:353 src/hdate_strings.c:416
436 msgid "Terumah"
437 msgstr "Terumá"
438
439 #: src/hdate_strings.c:354 src/hdate_strings.c:417
440 msgid "Tetzaveh"
441 msgstr "Tetzavé"
442
443 #. 20
444 #: src/hdate_strings.c:355 src/hdate_strings.c:418
445 msgid "Ki Tisa"
446 msgstr "Ki Tisá"
447
448 #: src/hdate_strings.c:356 src/hdate_strings.c:419
449 msgid "Vayakhel"
450 msgstr "Vayajel"
451
452 #: src/hdate_strings.c:357 src/hdate_strings.c:420
453 msgid "Pekudei"
454 msgstr "Pekudei"
455
456 #: src/hdate_strings.c:358 src/hdate_strings.c:421
457 msgid "Vayikra"
458 msgstr "Vayikrá"
459
460 #: src/hdate_strings.c:359 src/hdate_strings.c:422
461 msgid "Tzav"
462 msgstr "Tzav"
463
464 #: src/hdate_strings.c:360 src/hdate_strings.c:423
465 msgid "Shmini"
466 msgstr "Shemini"
467
468 #: src/hdate_strings.c:361 src/hdate_strings.c:424
469 msgid "Tazria"
470 msgstr "Tazría"
471
472 #: src/hdate_strings.c:362 src/hdate_strings.c:425
473 msgid "Metzora"
474 msgstr "Metzorá"
475
476 #: src/hdate_strings.c:363 src/hdate_strings.c:426
477 msgid "Achrei Mot"
478 msgstr "Ajrei Mot"
479
480 #: src/hdate_strings.c:364 src/hdate_strings.c:427
481 msgid "Kedoshim"
482 msgstr "Kedoshim"
483
484 #. 30
485 #: src/hdate_strings.c:365 src/hdate_strings.c:428
486 msgid "Emor"
487 msgstr "Emor"
488
489 #: src/hdate_strings.c:366 src/hdate_strings.c:429
490 msgid "Behar"
491 msgstr "Bejar"
492
493 #: src/hdate_strings.c:367 src/hdate_strings.c:430
494 msgid "Bechukotai"
495 msgstr "Bejukotai"
496
497 #: src/hdate_strings.c:368 src/hdate_strings.c:431
498 msgid "Bamidbar"
499 msgstr "Bamidbar"
500
501 #: src/hdate_strings.c:369 src/hdate_strings.c:432
502 #, fuzzy
503 msgid "Nasso"
504 msgstr "Nasso"
505
506 #: src/hdate_strings.c:370 src/hdate_strings.c:433
507 msgid "Beha'alotcha"
508 msgstr "Beha'alotja"
509
510 #: src/hdate_strings.c:371 src/hdate_strings.c:434
511 msgid "Sh'lach"
512 msgstr "Shalaj"
513
514 #: src/hdate_strings.c:372 src/hdate_strings.c:435
515 msgid "Korach"
516 msgstr "Koraj"
517
518 #: src/hdate_strings.c:373 src/hdate_strings.c:436
519 msgid "Chukat"
520 msgstr "Jukat"
521
522 #: src/hdate_strings.c:374 src/hdate_strings.c:437
523 msgid "Balak"
524 msgstr "Balak"
525
526 #. 40
527 #: src/hdate_strings.c:375 src/hdate_strings.c:438
528 msgid "Pinchas"
529 msgstr "Pinjas"
530
531 #: src/hdate_strings.c:376 src/hdate_strings.c:439
532 msgid "Matot"
533 msgstr "Matot"
534
535 #: src/hdate_strings.c:377 src/hdate_strings.c:440
536 msgid "Masei"
537 msgstr "Masei"
538
539 #: src/hdate_strings.c:378 src/hdate_strings.c:441
540 msgid "Devarim"
541 msgstr "Devarim"
542
543 #: src/hdate_strings.c:379 src/hdate_strings.c:442
544 msgid "Vaetchanan"
545 msgstr "Vaetjanan"
546
547 #: src/hdate_strings.c:380 src/hdate_strings.c:443
548 msgid "Eikev"
549 msgstr "Eikev"
550
551 #: src/hdate_strings.c:381 src/hdate_strings.c:444
552 msgid "Re'eh"
553 msgstr "Re'é"
554
555 #: src/hdate_strings.c:382 src/hdate_strings.c:445
556 msgid "Shoftim"
557 msgstr "Shoftim"
558
559 #: src/hdate_strings.c:383 src/hdate_strings.c:446
560 msgid "Ki Teitzei"
561 msgstr "Ki Teitzei"
562
563 #: src/hdate_strings.c:384 src/hdate_strings.c:447
564 msgid "Ki Tavo"
565 msgstr "Ki Tavó"
566
567 #. 50
568 #: src/hdate_strings.c:385 src/hdate_strings.c:448
569 msgid "Nitzavim"
570 msgstr "Nitzavim"
571
572 #: src/hdate_strings.c:386 src/hdate_strings.c:449
573 msgid "Vayeilech"
574 msgstr "Vayeilej"
575
576 #: src/hdate_strings.c:387 src/hdate_strings.c:450
577 msgid "Ha'Azinu"
578 msgstr "Ha'Azinu"
579
580 #: src/hdate_strings.c:388 src/hdate_strings.c:451
581 msgid "Vezot Habracha"
582 msgstr "Vezot Haberaja"
583
584 #. 54
585 #: src/hdate_strings.c:389 src/hdate_strings.c:452
586 #, fuzzy
587 msgid "Vayakhel-Pekudei"
588 msgstr "Vayakhel-Pekudei"
589
590 #: src/hdate_strings.c:390 src/hdate_strings.c:453
591 msgid "Tazria-Metzora"
592 msgstr "Tazría-Metzora"
593
594 #: src/hdate_strings.c:391 src/hdate_strings.c:454
595 msgid "Achrei Mot-Kedoshim"
596 msgstr "Ajrei Mot-Kedoshim"
597
598 #: src/hdate_strings.c:392 src/hdate_strings.c:455
599 msgid "Behar-Bechukotai"
600 msgstr "Bejar-Bejukotai"
601
602 #: src/hdate_strings.c:393 src/hdate_strings.c:456
603 msgid "Chukat-Balak"
604 msgstr "Jukat-Balak"
605
606 #: src/hdate_strings.c:394 src/hdate_strings.c:457
607 msgid "Matot-Masei"
608 msgstr "Matot-Masei"
609
610 #: src/hdate_strings.c:395 src/hdate_strings.c:458
611 #, fuzzy
612 msgid "Nitzavim-Vayeilech"
613 msgstr "Nitzavim-Vayeilej"
614
615 #. if untranslated return null
616 #. return the translator name
617 #: src/hdate_strings.c:560 src/hdate_strings.c:564
618 msgid "translator"
619 msgstr "Esther Peled <esti@actcom.co.il>"
Binary diff not shown
0 # translation of libhdate.po to French
1 # This file is distributed under the same license as the libhdate package.
2 # Copyright (C) 2005 Yaacov Zamir
3 # Yaacov Zamir, 2005.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: fr\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2005-07-27 19:20+0300\n"
10 "PO-Revision-Date: 2005-03-07 12:44+0200\n"
11 "Last-Translator: Yaacov Zamir\n"
12 "Language-Team: Franch\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16
17 #: src/hdate_strings.c:131
18 msgid "Sun"
19 msgstr "Dim"
20
21 #: src/hdate_strings.c:131
22 msgid "Mon"
23 msgstr "Lun"
24
25 #: src/hdate_strings.c:131
26 msgid "Tue"
27 msgstr "Mar"
28
29 #: src/hdate_strings.c:131
30 msgid "Wed"
31 msgstr "Mer"
32
33 #: src/hdate_strings.c:131
34 msgid "Thu"
35 msgstr "Jeu"
36
37 #: src/hdate_strings.c:132
38 msgid "Fri"
39 msgstr "Ven"
40
41 #: src/hdate_strings.c:132
42 msgid "Sat"
43 msgstr "Sam"
44
45 #: src/hdate_strings.c:133
46 msgid "Sunday"
47 msgstr "Dimanche"
48
49 #: src/hdate_strings.c:133
50 msgid "Monday"
51 msgstr "Lundi"
52
53 #: src/hdate_strings.c:133
54 msgid "Tuesday"
55 msgstr "Mardi"
56
57 #: src/hdate_strings.c:133
58 msgid "Wednesday"
59 msgstr "Mercredi"
60
61 #: src/hdate_strings.c:134
62 msgid "Thursday"
63 msgstr "Jeudi"
64
65 #: src/hdate_strings.c:134
66 msgid "Friday"
67 msgstr "Vendredi"
68
69 #: src/hdate_strings.c:134
70 msgid "Saturday"
71 msgstr "Samedi"
72
73 #: src/hdate_strings.c:165
74 msgid "Jan"
75 msgstr "Jan"
76
77 #: src/hdate_strings.c:165
78 msgid "Feb"
79 msgstr "Fév"
80
81 #: src/hdate_strings.c:165
82 msgid "Mar"
83 msgstr "Mar"
84
85 #: src/hdate_strings.c:165
86 msgid "Apr"
87 msgstr "Avr"
88
89 #: src/hdate_strings.c:165 src/hdate_strings.c:169
90 msgid "May"
91 msgstr "mai"
92
93 #: src/hdate_strings.c:166
94 msgid "Jun"
95 msgstr "Juin"
96
97 #: src/hdate_strings.c:166
98 msgid "Jul"
99 msgstr "Juil"
100
101 #: src/hdate_strings.c:166
102 msgid "Aug"
103 msgstr "Août"
104
105 #: src/hdate_strings.c:166
106 msgid "Sep"
107 msgstr "Sep"
108
109 #: src/hdate_strings.c:166
110 msgid "Oct"
111 msgstr "Oct"
112
113 #: src/hdate_strings.c:167
114 msgid "Nov"
115 msgstr "Nov"
116
117 #: src/hdate_strings.c:167
118 msgid "Dec"
119 msgstr "Déc"
120
121 #: src/hdate_strings.c:168
122 msgid "January"
123 msgstr "Janvier"
124
125 #: src/hdate_strings.c:168
126 msgid "February"
127 msgstr "Février"
128
129 #: src/hdate_strings.c:168
130 msgid "March"
131 msgstr "Mars"
132
133 #: src/hdate_strings.c:169
134 msgid "April"
135 msgstr "Avril"
136
137 #: src/hdate_strings.c:169
138 msgid "June"
139 msgstr "Juin"
140
141 #: src/hdate_strings.c:170
142 msgid "July"
143 msgstr "Juillet"
144
145 #: src/hdate_strings.c:170
146 msgid "August"
147 msgstr "Août"
148
149 #: src/hdate_strings.c:170
150 msgid "September"
151 msgstr "Septembre"
152
153 #: src/hdate_strings.c:171
154 msgid "October"
155 msgstr "Octobre"
156
157 #: src/hdate_strings.c:171
158 msgid "November"
159 msgstr "Novembre"
160
161 #: src/hdate_strings.c:171
162 msgid "December"
163 msgstr "Décembre"
164
165 #: src/hdate_strings.c:202 src/hdate_strings.c:206
166 msgid "Tishrei"
167 msgstr "Tishrei"
168
169 #: src/hdate_strings.c:202 src/hdate_strings.c:206
170 msgid "Cheshvan"
171 msgstr "Cheshván"
172
173 #: src/hdate_strings.c:202 src/hdate_strings.c:206
174 msgid "Kislev"
175 msgstr "Kislev"
176
177 #: src/hdate_strings.c:202 src/hdate_strings.c:206
178 msgid "Tevet"
179 msgstr "Tevet"
180
181 #: src/hdate_strings.c:203 src/hdate_strings.c:207
182 msgid "Sh'vat"
183 msgstr "Sh'vat"
184
185 #: src/hdate_strings.c:203 src/hdate_strings.c:207
186 msgid "Adar"
187 msgstr "Adar"
188
189 #: src/hdate_strings.c:203 src/hdate_strings.c:207
190 msgid "Nisan"
191 msgstr "Nisan"
192
193 #: src/hdate_strings.c:203 src/hdate_strings.c:207
194 msgid "Iyyar"
195 msgstr "Iyyar"
196
197 #: src/hdate_strings.c:204 src/hdate_strings.c:208
198 msgid "Sivan"
199 msgstr "Siván"
200
201 #: src/hdate_strings.c:204 src/hdate_strings.c:208
202 msgid "Tamuz"
203 msgstr "Tamuz"
204
205 #: src/hdate_strings.c:204 src/hdate_strings.c:208
206 msgid "Av"
207 msgstr "Av"
208
209 #: src/hdate_strings.c:204 src/hdate_strings.c:208
210 msgid "Elul"
211 msgstr "Elul"
212
213 #: src/hdate_strings.c:204 src/hdate_strings.c:208
214 msgid "Adar I"
215 msgstr "Adar I"
216
217 #: src/hdate_strings.c:205 src/hdate_strings.c:209
218 msgid "Adar II"
219 msgstr "Adar II"
220
221 #: src/hdate_strings.c:241 src/hdate_strings.c:272
222 msgid "Rosh Hashana I"
223 msgstr "Rosh Hashana I"
224
225 #. 1
226 #: src/hdate_strings.c:242 src/hdate_strings.c:273
227 msgid "Rosh Hashana II"
228 msgstr "Rosh Hashana II"
229
230 #: src/hdate_strings.c:243 src/hdate_strings.c:274
231 msgid "Tzom Gedaliah"
232 msgstr "Tzom Gedaliah"
233
234 #: src/hdate_strings.c:244 src/hdate_strings.c:275
235 msgid "Yom Kippur"
236 msgstr "Yom Kippur"
237
238 #: src/hdate_strings.c:245 src/hdate_strings.c:276
239 msgid "Sukkot"
240 msgstr "Sukkot"
241
242 #: src/hdate_strings.c:246 src/hdate_strings.c:277
243 msgid "Hol hamoed Sukkot"
244 msgstr "Hol hamoed Sukkot"
245
246 #: src/hdate_strings.c:247 src/hdate_strings.c:278
247 msgid "Hoshana raba"
248 msgstr "Hoshana raba"
249
250 #: src/hdate_strings.c:248 src/hdate_strings.c:279
251 msgid "Simchat Torah"
252 msgstr "Simchat Torah"
253
254 #: src/hdate_strings.c:249 src/hdate_strings.c:280
255 msgid "Chanukah"
256 msgstr "Chanuka"
257
258 #: src/hdate_strings.c:250 src/hdate_strings.c:281
259 msgid "Asara B'Tevet"
260 msgstr "Asara B'Tevet"
261
262 #. 10
263 #: src/hdate_strings.c:251 src/hdate_strings.c:282
264 msgid "Tu B'Shvat"
265 msgstr "Tu B'Shvat"
266
267 #: src/hdate_strings.c:252 src/hdate_strings.c:283
268 msgid "Ta'anit Esther"
269 msgstr "Ta'anit Esther"
270
271 #: src/hdate_strings.c:253 src/hdate_strings.c:284
272 msgid "Purim"
273 msgstr "Purim"
274
275 #: src/hdate_strings.c:254 src/hdate_strings.c:285
276 msgid "Shushan Purim"
277 msgstr "Shushan Purim"
278
279 #: src/hdate_strings.c:255 src/hdate_strings.c:286
280 msgid "Pesach"
281 msgstr "Pesach"
282
283 #: src/hdate_strings.c:256 src/hdate_strings.c:287
284 msgid "Hol hamoed Pesach"
285 msgstr "Chol hamoed Pesach"
286
287 #: src/hdate_strings.c:257 src/hdate_strings.c:288
288 msgid "Yom HaAtzma'ut"
289 msgstr "Yom HaAtzma'ut"
290
291 #: src/hdate_strings.c:258 src/hdate_strings.c:289
292 msgid "Lag B'Omer"
293 msgstr "Lag B'Omer"
294
295 #: src/hdate_strings.c:259 src/hdate_strings.c:290
296 msgid "Erev Shavuot"
297 msgstr "veille de Shavuot"
298
299 #: src/hdate_strings.c:260 src/hdate_strings.c:291
300 msgid "Shavuot"
301 msgstr "Shavuot"
302
303 #. 20
304 #: src/hdate_strings.c:261 src/hdate_strings.c:292
305 msgid "Tzom Tammuz"
306 msgstr "Tzom Tammuz"
307
308 #: src/hdate_strings.c:262 src/hdate_strings.c:293
309 msgid "Tish'a B'Av"
310 msgstr "Tish'a B'Av"
311
312 #: src/hdate_strings.c:263 src/hdate_strings.c:294
313 msgid "Tu B'Av"
314 msgstr "Tu B'Av"
315
316 #: src/hdate_strings.c:264 src/hdate_strings.c:295
317 msgid "Yom HaShoah"
318 msgstr "Jour des Holocausto"
319
320 #: src/hdate_strings.c:265 src/hdate_strings.c:296
321 msgid "Yom HaZikaron"
322 msgstr "Jour des Recuerdo"
323
324 #. 25
325 #: src/hdate_strings.c:266 src/hdate_strings.c:297
326 #, fuzzy
327 msgid "Yom Yerushalayim"
328 msgstr "Jour des Yerushalayim"
329
330 #: src/hdate_strings.c:267 src/hdate_strings.c:298
331 msgid "Shmini Atzeret"
332 msgstr "Shemini Atzeret"
333
334 #: src/hdate_strings.c:268 src/hdate_strings.c:299
335 msgid "Pesach VII"
336 msgstr "Pesach VII"
337
338 #: src/hdate_strings.c:269 src/hdate_strings.c:300
339 msgid "Pesach VIII"
340 msgstr "Pesach VIII"
341
342 #: src/hdate_strings.c:270 src/hdate_strings.c:301
343 msgid "Shavuot II"
344 msgstr "Shavuot II"
345
346 #: src/hdate_strings.c:334 src/hdate_strings.c:397
347 msgid "none"
348 msgstr "nulle"
349
350 #: src/hdate_strings.c:335 src/hdate_strings.c:398
351 msgid "Bereshit"
352 msgstr "Bereshit"
353
354 #. 1
355 #: src/hdate_strings.c:336 src/hdate_strings.c:399
356 msgid "Noach"
357 msgstr "Noach"
358
359 #: src/hdate_strings.c:337 src/hdate_strings.c:400
360 msgid "Lech-Lecha"
361 msgstr "Lech-Lecha"
362
363 #: src/hdate_strings.c:338 src/hdate_strings.c:401
364 msgid "Vayera"
365 msgstr "Vaira"
366
367 #: src/hdate_strings.c:339 src/hdate_strings.c:402
368 msgid "Chayei Sara"
369 msgstr "Chayei Sará"
370
371 #: src/hdate_strings.c:340 src/hdate_strings.c:403
372 msgid "Toldot"
373 msgstr "Toldot"
374
375 #: src/hdate_strings.c:341 src/hdate_strings.c:404
376 msgid "Vayetzei"
377 msgstr "Vayetzei"
378
379 #: src/hdate_strings.c:342 src/hdate_strings.c:405
380 msgid "Vayishlach"
381 msgstr "Vayishlach"
382
383 #: src/hdate_strings.c:343 src/hdate_strings.c:406
384 msgid "Vayeshev"
385 msgstr "Vayeshev"
386
387 #: src/hdate_strings.c:344 src/hdate_strings.c:407
388 msgid "Miketz"
389 msgstr "Miketz"
390
391 #. 10
392 #: src/hdate_strings.c:345 src/hdate_strings.c:408
393 msgid "Vayigash"
394 msgstr "Vayigash"
395
396 #: src/hdate_strings.c:346 src/hdate_strings.c:409
397 msgid "Vayechi"
398 msgstr "Vayechí"
399
400 #: src/hdate_strings.c:347 src/hdate_strings.c:410
401 msgid "Shemot"
402 msgstr "Shemot"
403
404 #: src/hdate_strings.c:348 src/hdate_strings.c:411
405 msgid "Vaera"
406 msgstr "Vaerá"
407
408 #: src/hdate_strings.c:349 src/hdate_strings.c:412
409 msgid "Bo"
410 msgstr "Bo"
411
412 #: src/hdate_strings.c:350 src/hdate_strings.c:413
413 msgid "Beshalach"
414 msgstr "Beshalach"
415
416 #: src/hdate_strings.c:351 src/hdate_strings.c:414
417 msgid "Yitro"
418 msgstr "Yitro"
419
420 #: src/hdate_strings.c:352 src/hdate_strings.c:415
421 msgid "Mishpatim"
422 msgstr "Mishpatim"
423
424 #: src/hdate_strings.c:353 src/hdate_strings.c:416
425 msgid "Terumah"
426 msgstr "Terumá"
427
428 #: src/hdate_strings.c:354 src/hdate_strings.c:417
429 msgid "Tetzaveh"
430 msgstr "Tetzavé"
431
432 #. 20
433 #: src/hdate_strings.c:355 src/hdate_strings.c:418
434 msgid "Ki Tisa"
435 msgstr "Ki Tisá"
436
437 #: src/hdate_strings.c:356 src/hdate_strings.c:419
438 msgid "Vayakhel"
439 msgstr "Vayakhel"
440
441 #: src/hdate_strings.c:357 src/hdate_strings.c:420
442 msgid "Pekudei"
443 msgstr "Pekudei"
444
445 #: src/hdate_strings.c:358 src/hdate_strings.c:421
446 msgid "Vayikra"
447 msgstr "Vayikrá"
448
449 #: src/hdate_strings.c:359 src/hdate_strings.c:422
450 msgid "Tzav"
451 msgstr "Tzav"
452
453 #: src/hdate_strings.c:360 src/hdate_strings.c:423
454 msgid "Shmini"
455 msgstr "Shemini"
456
457 #: src/hdate_strings.c:361 src/hdate_strings.c:424
458 msgid "Tazria"
459 msgstr "Tazría"
460
461 #: src/hdate_strings.c:362 src/hdate_strings.c:425
462 msgid "Metzora"
463 msgstr "Metzorá"
464
465 #: src/hdate_strings.c:363 src/hdate_strings.c:426
466 msgid "Achrei Mot"
467 msgstr "Achrei Mot"
468
469 #: src/hdate_strings.c:364 src/hdate_strings.c:427
470 msgid "Kedoshim"
471 msgstr "Kedoshim"
472
473 #. 30
474 #: src/hdate_strings.c:365 src/hdate_strings.c:428
475 msgid "Emor"
476 msgstr "Emor"
477
478 #: src/hdate_strings.c:366 src/hdate_strings.c:429
479 msgid "Behar"
480 msgstr "Bechar"
481
482 #: src/hdate_strings.c:367 src/hdate_strings.c:430
483 msgid "Bechukotai"
484 msgstr "Bechukotai"
485
486 #: src/hdate_strings.c:368 src/hdate_strings.c:431
487 msgid "Bamidbar"
488 msgstr "Bamidbar"
489
490 #: src/hdate_strings.c:369 src/hdate_strings.c:432
491 msgid "Nasso"
492 msgstr "Nasso"
493
494 #: src/hdate_strings.c:370 src/hdate_strings.c:433
495 msgid "Beha'alotcha"
496 msgstr "Beha'alotcha"
497
498 #: src/hdate_strings.c:371 src/hdate_strings.c:434
499 msgid "Sh'lach"
500 msgstr "Shalach"
501
502 #: src/hdate_strings.c:372 src/hdate_strings.c:435
503 msgid "Korach"
504 msgstr "Korach"
505
506 #: src/hdate_strings.c:373 src/hdate_strings.c:436
507 msgid "Chukat"
508 msgstr "Chukat"
509
510 #: src/hdate_strings.c:374 src/hdate_strings.c:437
511 msgid "Balak"
512 msgstr "Balak"
513
514 #. 40
515 #: src/hdate_strings.c:375 src/hdate_strings.c:438
516 msgid "Pinchas"
517 msgstr "Pinchas"
518
519 #: src/hdate_strings.c:376 src/hdate_strings.c:439
520 msgid "Matot"
521 msgstr "Matot"
522
523 #: src/hdate_strings.c:377 src/hdate_strings.c:440
524 msgid "Masei"
525 msgstr "Masei"
526
527 #: src/hdate_strings.c:378 src/hdate_strings.c:441
528 msgid "Devarim"
529 msgstr "Devarim"
530
531 #: src/hdate_strings.c:379 src/hdate_strings.c:442
532 msgid "Vaetchanan"
533 msgstr "Vaetchanan"
534
535 #: src/hdate_strings.c:380 src/hdate_strings.c:443
536 msgid "Eikev"
537 msgstr "Eikev"
538
539 #: src/hdate_strings.c:381 src/hdate_strings.c:444
540 msgid "Re'eh"
541 msgstr "Re'é"
542
543 #: src/hdate_strings.c:382 src/hdate_strings.c:445
544 msgid "Shoftim"
545 msgstr "Shoftim"
546
547 #: src/hdate_strings.c:383 src/hdate_strings.c:446
548 msgid "Ki Teitzei"
549 msgstr "Ki Teitzei"
550
551 #: src/hdate_strings.c:384 src/hdate_strings.c:447
552 msgid "Ki Tavo"
553 msgstr "Ki Tavó"
554
555 #. 50
556 #: src/hdate_strings.c:385 src/hdate_strings.c:448
557 msgid "Nitzavim"
558 msgstr "Nitzavim"
559
560 #: src/hdate_strings.c:386 src/hdate_strings.c:449
561 msgid "Vayeilech"
562 msgstr "Vayeilech"
563
564 #: src/hdate_strings.c:387 src/hdate_strings.c:450
565 msgid "Ha'Azinu"
566 msgstr "Ha'Azinu"
567
568 #: src/hdate_strings.c:388 src/hdate_strings.c:451
569 msgid "Vezot Habracha"
570 msgstr "Vezot Haberacha"
571
572 #. 54
573 #: src/hdate_strings.c:389 src/hdate_strings.c:452
574 msgid "Vayakhel-Pekudei"
575 msgstr "Vayakhel-Pekudei"
576
577 #: src/hdate_strings.c:390 src/hdate_strings.c:453
578 msgid "Tazria-Metzora"
579 msgstr "Tazría-Metzora"
580
581 #: src/hdate_strings.c:391 src/hdate_strings.c:454
582 msgid "Achrei Mot-Kedoshim"
583 msgstr "Achrei Mot-Kedoshim"
584
585 #: src/hdate_strings.c:392 src/hdate_strings.c:455
586 msgid "Behar-Bechukotai"
587 msgstr "Bechar-Bechukotai"
588
589 #: src/hdate_strings.c:393 src/hdate_strings.c:456
590 msgid "Chukat-Balak"
591 msgstr "Chukat-Balak"
592
593 #: src/hdate_strings.c:394 src/hdate_strings.c:457
594 msgid "Matot-Masei"
595 msgstr "Matot-Masei"
596
597 #: src/hdate_strings.c:395 src/hdate_strings.c:458
598 msgid "Nitzavim-Vayeilech"
599 msgstr "Nitzavim-Vayeilech"
600
601 #. if untranslated return null
602 #. return the translator name
603 #: src/hdate_strings.c:560 src/hdate_strings.c:564
604 msgid "translator"
605 msgstr "Yaacov Zamir"
Binary diff not shown
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the PACKAGE package.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2005-07-27 19:20+0300\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=utf-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #: src/hdate_strings.c:131
19 msgid "Sun"
20 msgstr "א"
21
22 #: src/hdate_strings.c:131
23 msgid "Mon"
24 msgstr "ב"
25
26 #: src/hdate_strings.c:131
27 msgid "Tue"
28 msgstr "ג"
29
30 #: src/hdate_strings.c:131
31 msgid "Wed"
32 msgstr "ד"
33
34 #: src/hdate_strings.c:131
35 msgid "Thu"
36 msgstr "ה"
37
38 #: src/hdate_strings.c:132
39 msgid "Fri"
40 msgstr "ו"
41
42 #: src/hdate_strings.c:132
43 msgid "Sat"
44 msgstr "ש"
45
46 #: src/hdate_strings.c:133
47 msgid "Sunday"
48 msgstr "ראשון"
49
50 #: src/hdate_strings.c:133
51 msgid "Monday"
52 msgstr "שני"
53
54 #: src/hdate_strings.c:133
55 msgid "Tuesday"
56 msgstr "שלישי"
57
58 #: src/hdate_strings.c:133
59 msgid "Wednesday"
60 msgstr "רביעי"
61
62 #: src/hdate_strings.c:134
63 msgid "Thursday"
64 msgstr "חמישי"
65
66 #: src/hdate_strings.c:134
67 msgid "Friday"
68 msgstr "שישי"
69
70 #: src/hdate_strings.c:134
71 msgid "Saturday"
72 msgstr "שבת"
73
74 #: src/hdate_strings.c:165
75 msgid "Jan"
76 msgstr "ינו"
77
78 #: src/hdate_strings.c:165
79 msgid "Feb"
80 msgstr "פבר"
81
82 #: src/hdate_strings.c:165
83 msgid "Mar"
84 msgstr "מרץ"
85
86 #: src/hdate_strings.c:165
87 msgid "Apr"
88 msgstr "אפר"
89
90 #: src/hdate_strings.c:165 src/hdate_strings.c:169
91 msgid "May"
92 msgstr "מאי"
93
94 #: src/hdate_strings.c:166
95 msgid "Jun"
96 msgstr "יוני"
97
98 #: src/hdate_strings.c:166
99 msgid "Jul"
100 msgstr "יולי"
101
102 #: src/hdate_strings.c:166
103 msgid "Aug"
104 msgstr "אוג"
105
106 #: src/hdate_strings.c:166
107 msgid "Sep"
108 msgstr "ספט"
109
110 #: src/hdate_strings.c:166
111 msgid "Oct"
112 msgstr "אוקט"
113
114 #: src/hdate_strings.c:167
115 msgid "Nov"
116 msgstr "נוב"
117
118 #: src/hdate_strings.c:167
119 msgid "Dec"
120 msgstr "דצמ"
121
122 #: src/hdate_strings.c:168
123 msgid "January"
124 msgstr "ינואר"
125
126 #: src/hdate_strings.c:168
127 msgid "February"
128 msgstr "פברואר"
129
130 #: src/hdate_strings.c:168
131 msgid "March"
132 msgstr "מרץ"
133
134 #: src/hdate_strings.c:169
135 msgid "April"
136 msgstr "אפריל"
137
138 #: src/hdate_strings.c:169
139 msgid "June"
140 msgstr "יוני"
141
142 #: src/hdate_strings.c:170
143 msgid "July"
144 msgstr "יולי"
145
146 #: src/hdate_strings.c:170
147 msgid "August"
148 msgstr "אוגוסט"
149
150 #: src/hdate_strings.c:170
151 msgid "September"
152 msgstr "ספטמבר"
153
154 #: src/hdate_strings.c:171
155 msgid "October"
156 msgstr "אוקטובר"
157
158 #: src/hdate_strings.c:171
159 msgid "November"
160 msgstr "נובמבר"
161
162 #: src/hdate_strings.c:171
163 msgid "December"
164 msgstr "דצמבר"
165
166 #: src/hdate_strings.c:202 src/hdate_strings.c:206
167 msgid "Tishrei"
168 msgstr "תשרי"
169
170 #: src/hdate_strings.c:202 src/hdate_strings.c:206
171 msgid "Cheshvan"
172 msgstr "חשון"
173
174 #: src/hdate_strings.c:202 src/hdate_strings.c:206
175 msgid "Kislev"
176 msgstr "כיסלו"
177
178 #: src/hdate_strings.c:202 src/hdate_strings.c:206
179 msgid "Tevet"
180 msgstr "טבת"
181
182 #: src/hdate_strings.c:203 src/hdate_strings.c:207
183 msgid "Sh'vat"
184 msgstr "שבט"
185
186 #: src/hdate_strings.c:203 src/hdate_strings.c:207
187 msgid "Adar"
188 msgstr "אדר"
189
190 #: src/hdate_strings.c:203 src/hdate_strings.c:207
191 msgid "Nisan"
192 msgstr "ניסן"
193
194 #: src/hdate_strings.c:203 src/hdate_strings.c:207
195 msgid "Iyyar"
196 msgstr "אייר"
197
198 #: src/hdate_strings.c:204 src/hdate_strings.c:208
199 msgid "Sivan"
200 msgstr "סיון"
201
202 #: src/hdate_strings.c:204 src/hdate_strings.c:208
203 msgid "Tamuz"
204 msgstr "תמוז"
205
206 #: src/hdate_strings.c:204 src/hdate_strings.c:208
207 msgid "Av"
208 msgstr "אב"
209
210 #: src/hdate_strings.c:204 src/hdate_strings.c:208
211 msgid "Elul"
212 msgstr "אלול"
213
214 #: src/hdate_strings.c:204 src/hdate_strings.c:208
215 msgid "Adar I"
216 msgstr "אדר א"
217
218 #: src/hdate_strings.c:205 src/hdate_strings.c:209
219 msgid "Adar II"
220 msgstr "אדר ב"
221
222 #: src/hdate_strings.c:241 src/hdate_strings.c:272
223 msgid "Rosh Hashana I"
224 msgstr "א ראש השנה"
225
226 #. 1
227 #: src/hdate_strings.c:242 src/hdate_strings.c:273
228 msgid "Rosh Hashana II"
229 msgstr "ב ראש השנה"
230
231 #: src/hdate_strings.c:243 src/hdate_strings.c:274
232 msgid "Tzom Gedaliah"
233 msgstr "צום גדליה"
234
235 #: src/hdate_strings.c:244 src/hdate_strings.c:275
236 msgid "Yom Kippur"
237 msgstr "יום כיפור"
238
239 #: src/hdate_strings.c:245 src/hdate_strings.c:276
240 msgid "Sukkot"
241 msgstr "סוכות"
242
243 #: src/hdate_strings.c:246 src/hdate_strings.c:277
244 msgid "Hol hamoed Sukkot"
245 msgstr "חול המועד סוכות"
246
247 #: src/hdate_strings.c:247 src/hdate_strings.c:278
248 msgid "Hoshana raba"
249 msgstr "הושענה רבה"
250
251 #: src/hdate_strings.c:248 src/hdate_strings.c:279
252 msgid "Simchat Torah"
253 msgstr "שמחת תורה"
254
255 #: src/hdate_strings.c:249 src/hdate_strings.c:280
256 msgid "Chanukah"
257 msgstr "חנוכה"
258
259 #: src/hdate_strings.c:250 src/hdate_strings.c:281
260 msgid "Asara B'Tevet"
261 msgstr "עשרה בטבת"
262
263 #. 10
264 #: src/hdate_strings.c:251 src/hdate_strings.c:282
265 msgid "Tu B'Shvat"
266 msgstr "טו בשבט"
267
268 #: src/hdate_strings.c:252 src/hdate_strings.c:283
269 msgid "Ta'anit Esther"
270 msgstr "תענית אסתר"
271
272 #: src/hdate_strings.c:253 src/hdate_strings.c:284
273 msgid "Purim"
274 msgstr "פורים"
275
276 #: src/hdate_strings.c:254 src/hdate_strings.c:285
277 msgid "Shushan Purim"
278 msgstr "שושן פורים"
279
280 #: src/hdate_strings.c:255 src/hdate_strings.c:286
281 msgid "Pesach"
282 msgstr "פסח"
283
284 #: src/hdate_strings.c:256 src/hdate_strings.c:287
285 msgid "Hol hamoed Pesach"
286 msgstr "חול המועד פסח"
287
288 #: src/hdate_strings.c:257 src/hdate_strings.c:288
289 msgid "Yom HaAtzma'ut"
290 msgstr "יום העצמאות"
291
292 #: src/hdate_strings.c:258 src/hdate_strings.c:289
293 msgid "Lag B'Omer"
294 msgstr "לג בעומר"
295
296 #: src/hdate_strings.c:259 src/hdate_strings.c:290
297 msgid "Erev Shavuot"
298 msgstr "ערב שבועות"
299
300 #: src/hdate_strings.c:260 src/hdate_strings.c:291
301 msgid "Shavuot"
302 msgstr "שבועות"
303
304 #. 20
305 #: src/hdate_strings.c:261 src/hdate_strings.c:292
306 msgid "Tzom Tammuz"
307 msgstr "יז תמוז"
308
309 #: src/hdate_strings.c:262 src/hdate_strings.c:293
310 msgid "Tish'a B'Av"
311 msgstr "תשעה באב"
312
313 #: src/hdate_strings.c:263 src/hdate_strings.c:294
314 msgid "Tu B'Av"
315 msgstr "טו באב"
316
317 #: src/hdate_strings.c:264 src/hdate_strings.c:295
318 msgid "Yom HaShoah"
319 msgstr "יום השואה"
320
321 #: src/hdate_strings.c:265 src/hdate_strings.c:296
322 msgid "Yom HaZikaron"
323 msgstr "יום הזיכרון"
324
325 #. 25
326 #: src/hdate_strings.c:266 src/hdate_strings.c:297
327 msgid "Yom Yerushalayim"
328 msgstr "יום ירושלים"
329
330 #: src/hdate_strings.c:267 src/hdate_strings.c:298
331 msgid "Shmini Atzeret"
332 msgstr "שמיני עצרת"
333
334 #: src/hdate_strings.c:268 src/hdate_strings.c:299
335 msgid "Pesach VII"
336 msgstr "שביעי של פסח"
337
338 #: src/hdate_strings.c:269 src/hdate_strings.c:300
339 msgid "Pesach VIII"
340 msgstr "שמיני של פסח"
341
342 #: src/hdate_strings.c:270 src/hdate_strings.c:301
343 msgid "Shavuot II"
344 msgstr "שני של שבועות"
345
346 #: src/hdate_strings.c:334 src/hdate_strings.c:397
347 msgid "none"
348 msgstr "חסר"
349
350 #: src/hdate_strings.c:335 src/hdate_strings.c:398
351 msgid "Bereshit"
352 msgstr "בראשית"
353
354 #. 1
355 #: src/hdate_strings.c:336 src/hdate_strings.c:399
356 msgid "Noach"
357 msgstr "נח"
358
359 #: src/hdate_strings.c:337 src/hdate_strings.c:400
360 msgid "Lech-Lecha"
361 msgstr "לך לך"
362
363 #: src/hdate_strings.c:338 src/hdate_strings.c:401
364 msgid "Vayera"
365 msgstr "וירא"
366
367 #: src/hdate_strings.c:339 src/hdate_strings.c:402
368 msgid "Chayei Sara"
369 msgstr "חיי שרה"
370
371 #: src/hdate_strings.c:340 src/hdate_strings.c:403
372 msgid "Toldot"
373 msgstr "תולדות"
374
375 #: src/hdate_strings.c:341 src/hdate_strings.c:404
376 msgid "Vayetzei"
377 msgstr "ויצא"
378
379 #: src/hdate_strings.c:342 src/hdate_strings.c:405
380 msgid "Vayishlach"
381 msgstr "וישלח"
382
383 #: src/hdate_strings.c:343 src/hdate_strings.c:406
384 msgid "Vayeshev"
385 msgstr "וישב"
386
387 #: src/hdate_strings.c:344 src/hdate_strings.c:407
388 msgid "Miketz"
389 msgstr "מקץ"
390
391 #. 10
392 #: src/hdate_strings.c:345 src/hdate_strings.c:408
393 msgid "Vayigash"
394 msgstr "ויגש"
395
396 #: src/hdate_strings.c:346 src/hdate_strings.c:409
397 msgid "Vayechi"
398 msgstr "ויחי"
399
400 #: src/hdate_strings.c:347 src/hdate_strings.c:410
401 msgid "Shemot"
402 msgstr "שמות"
403
404 #: src/hdate_strings.c:348 src/hdate_strings.c:411
405 msgid "Vaera"
406 msgstr "וארא"
407
408 #: src/hdate_strings.c:349 src/hdate_strings.c:412
409 msgid "Bo"
410 msgstr "בא"
411
412 #: src/hdate_strings.c:350 src/hdate_strings.c:413
413 msgid "Beshalach"
414 msgstr "בשלח"
415
416 #: src/hdate_strings.c:351 src/hdate_strings.c:414
417 msgid "Yitro"
418 msgstr "יתרו"
419
420 #: src/hdate_strings.c:352 src/hdate_strings.c:415
421 msgid "Mishpatim"
422 msgstr "משפטים"
423
424 #: src/hdate_strings.c:353 src/hdate_strings.c:416
425 msgid "Terumah"
426 msgstr "תרומה"
427
428 #: src/hdate_strings.c:354 src/hdate_strings.c:417
429 msgid "Tetzaveh"
430 msgstr "תצווה"
431
432 #. 20
433 #: src/hdate_strings.c:355 src/hdate_strings.c:418
434 msgid "Ki Tisa"
435 msgstr "כי תשא"
436
437 #: src/hdate_strings.c:356 src/hdate_strings.c:419
438 msgid "Vayakhel"
439 msgstr "ויקהל"
440
441 #: src/hdate_strings.c:357 src/hdate_strings.c:420
442 msgid "Pekudei"
443 msgstr "פקודי"
444
445 #: src/hdate_strings.c:358 src/hdate_strings.c:421
446 msgid "Vayikra"
447 msgstr "ויקרא"
448
449 #: src/hdate_strings.c:359 src/hdate_strings.c:422
450 msgid "Tzav"
451 msgstr "צו"
452
453 #: src/hdate_strings.c:360 src/hdate_strings.c:423
454 msgid "Shmini"
455 msgstr "שמיני"
456
457 #: src/hdate_strings.c:361 src/hdate_strings.c:424
458 msgid "Tazria"
459 msgstr "תזריע"
460
461 #: src/hdate_strings.c:362 src/hdate_strings.c:425
462 msgid "Metzora"
463 msgstr "מצורע"
464
465 #: src/hdate_strings.c:363 src/hdate_strings.c:426
466 msgid "Achrei Mot"
467 msgstr "אחרי מות"
468
469 #: src/hdate_strings.c:364 src/hdate_strings.c:427
470 msgid "Kedoshim"
471 msgstr "קדושים"
472
473 #. 30
474 #: src/hdate_strings.c:365 src/hdate_strings.c:428
475 msgid "Emor"
476 msgstr "אמור"
477
478 #: src/hdate_strings.c:366 src/hdate_strings.c:429
479 msgid "Behar"
480 msgstr "בהר"
481
482 #: src/hdate_strings.c:367 src/hdate_strings.c:430
483 msgid "Bechukotai"
484 msgstr "בחוקותי"
485
486 #: src/hdate_strings.c:368 src/hdate_strings.c:431
487 msgid "Bamidbar"
488 msgstr "במדבר"
489
490 #: src/hdate_strings.c:369 src/hdate_strings.c:432
491 msgid "Nasso"
492 msgstr "נשא"
493
494 #: src/hdate_strings.c:370 src/hdate_strings.c:433
495 msgid "Beha'alotcha"
496 msgstr "בהעלותך"
497
498 #: src/hdate_strings.c:371 src/hdate_strings.c:434
499 msgid "Sh'lach"
500 msgstr "שלח"
501
502 #: src/hdate_strings.c:372 src/hdate_strings.c:435
503 msgid "Korach"
504 msgstr "קרח"
505
506 #: src/hdate_strings.c:373 src/hdate_strings.c:436
507 msgid "Chukat"
508 msgstr "חוקת"
509
510 #: src/hdate_strings.c:374 src/hdate_strings.c:437
511 msgid "Balak"
512 msgstr "בלק"
513
514 #. 40
515 #: src/hdate_strings.c:375 src/hdate_strings.c:438
516 msgid "Pinchas"
517 msgstr "פינחס"
518
519 #: src/hdate_strings.c:376 src/hdate_strings.c:439
520 msgid "Matot"
521 msgstr "מטות"
522
523 #: src/hdate_strings.c:377 src/hdate_strings.c:440
524 msgid "Masei"
525 msgstr "מסעי"
526
527 #: src/hdate_strings.c:378 src/hdate_strings.c:441
528 msgid "Devarim"
529 msgstr "דברים"
530
531 #: src/hdate_strings.c:379 src/hdate_strings.c:442
532 msgid "Vaetchanan"
533 msgstr "ואתחנן"
534
535 #: src/hdate_strings.c:380 src/hdate_strings.c:443
536 msgid "Eikev"
537 msgstr "עקב"
538
539 #: src/hdate_strings.c:381 src/hdate_strings.c:444
540 msgid "Re'eh"
541 msgstr "ראה"
542
543 #: src/hdate_strings.c:382 src/hdate_strings.c:445
544 msgid "Shoftim"
545 msgstr "שופטים"
546
547 #: src/hdate_strings.c:383 src/hdate_strings.c:446
548 msgid "Ki Teitzei"
549 msgstr "כי תצא"
550
551 #: src/hdate_strings.c:384 src/hdate_strings.c:447
552 msgid "Ki Tavo"
553 msgstr "כי תבוא"
554
555 #. 50
556 #: src/hdate_strings.c:385 src/hdate_strings.c:448
557 msgid "Nitzavim"
558 msgstr "נצבים"
559
560 #: src/hdate_strings.c:386 src/hdate_strings.c:449
561 msgid "Vayeilech"
562 msgstr "וילך"
563
564 #: src/hdate_strings.c:387 src/hdate_strings.c:450
565 msgid "Ha'Azinu"
566 msgstr "האזינו"
567
568 #: src/hdate_strings.c:388 src/hdate_strings.c:451
569 msgid "Vezot Habracha"
570 msgstr "וזאת הברכה"
571
572 #. 54
573 #: src/hdate_strings.c:389 src/hdate_strings.c:452
574 msgid "Vayakhel-Pekudei"
575 msgstr "ויקהל פקודי"
576
577 #: src/hdate_strings.c:390 src/hdate_strings.c:453
578 msgid "Tazria-Metzora"
579 msgstr "תזריע מצורע"
580
581 #: src/hdate_strings.c:391 src/hdate_strings.c:454
582 msgid "Achrei Mot-Kedoshim"
583 msgstr "אחרי מות קדושים"
584
585 #: src/hdate_strings.c:392 src/hdate_strings.c:455
586 msgid "Behar-Bechukotai"
587 msgstr "בהר בחוקותי"
588
589 #: src/hdate_strings.c:393 src/hdate_strings.c:456
590 msgid "Chukat-Balak"
591 msgstr "חוקת בלק"
592
593 #: src/hdate_strings.c:394 src/hdate_strings.c:457
594 msgid "Matot-Masei"
595 msgstr "מטות מסעי"
596
597 #: src/hdate_strings.c:395 src/hdate_strings.c:458
598 msgid "Nitzavim-Vayeilech"
599 msgstr "נצבים וילך"
600
601 #. if untranslated return null
602 #. return the translator name
603 #: src/hdate_strings.c:560 src/hdate_strings.c:564
604 msgid "translator"
605 msgstr "יעקב זמיר"
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the PACKAGE package.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2005-07-27 19:20+0300\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=CHARSET\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #: src/hdate_strings.c:131
19 msgid "Sun"
20 msgstr ""
21
22 #: src/hdate_strings.c:131
23 msgid "Mon"
24 msgstr ""
25
26 #: src/hdate_strings.c:131
27 msgid "Tue"
28 msgstr ""
29
30 #: src/hdate_strings.c:131
31 msgid "Wed"
32 msgstr ""
33
34 #: src/hdate_strings.c:131
35 msgid "Thu"
36 msgstr ""
37
38 #: src/hdate_strings.c:132
39 msgid "Fri"
40 msgstr ""
41
42 #: src/hdate_strings.c:132
43 msgid "Sat"
44 msgstr ""
45
46 #: src/hdate_strings.c:133
47 msgid "Sunday"
48 msgstr ""
49
50 #: src/hdate_strings.c:133
51 msgid "Monday"
52 msgstr ""
53
54 #: src/hdate_strings.c:133
55 msgid "Tuesday"
56 msgstr ""
57
58 #: src/hdate_strings.c:133
59 msgid "Wednesday"
60 msgstr ""
61
62 #: src/hdate_strings.c:134
63 msgid "Thursday"
64 msgstr ""
65
66 #: src/hdate_strings.c:134
67 msgid "Friday"
68 msgstr ""
69
70 #: src/hdate_strings.c:134
71 msgid "Saturday"
72 msgstr ""
73
74 #: src/hdate_strings.c:165
75 msgid "Jan"
76 msgstr ""
77
78 #: src/hdate_strings.c:165
79 msgid "Feb"
80 msgstr ""
81
82 #: src/hdate_strings.c:165
83 msgid "Mar"
84 msgstr ""
85
86 #: src/hdate_strings.c:165
87 msgid "Apr"
88 msgstr ""
89
90 #: src/hdate_strings.c:165 src/hdate_strings.c:169
91 msgid "May"
92 msgstr ""
93
94 #: src/hdate_strings.c:166
95 msgid "Jun"
96 msgstr ""
97
98 #: src/hdate_strings.c:166
99 msgid "Jul"
100 msgstr ""
101
102 #: src/hdate_strings.c:166
103 msgid "Aug"
104 msgstr ""
105
106 #: src/hdate_strings.c:166
107 msgid "Sep"
108 msgstr ""
109
110 #: src/hdate_strings.c:166
111 msgid "Oct"
112 msgstr ""
113
114 #: src/hdate_strings.c:167
115 msgid "Nov"
116 msgstr ""
117
118 #: src/hdate_strings.c:167
119 msgid "Dec"
120 msgstr ""
121
122 #: src/hdate_strings.c:168
123 msgid "January"
124 msgstr ""
125
126 #: src/hdate_strings.c:168
127 msgid "February"
128 msgstr ""
129
130 #: src/hdate_strings.c:168
131 msgid "March"
132 msgstr ""
133
134 #: src/hdate_strings.c:169
135 msgid "April"
136 msgstr ""
137
138 #: src/hdate_strings.c:169
139 msgid "June"
140 msgstr ""
141
142 #: src/hdate_strings.c:170
143 msgid "July"
144 msgstr ""
145
146 #: src/hdate_strings.c:170
147 msgid "August"
148 msgstr ""
149
150 #: src/hdate_strings.c:170
151 msgid "September"
152 msgstr ""
153
154 #: src/hdate_strings.c:171
155 msgid "October"
156 msgstr ""
157
158 #: src/hdate_strings.c:171
159 msgid "November"
160 msgstr ""
161
162 #: src/hdate_strings.c:171
163 msgid "December"
164 msgstr ""
165
166 #: src/hdate_strings.c:202 src/hdate_strings.c:206
167 msgid "Tishrei"
168 msgstr ""
169
170 #: src/hdate_strings.c:202 src/hdate_strings.c:206
171 msgid "Cheshvan"
172 msgstr ""
173
174 #: src/hdate_strings.c:202 src/hdate_strings.c:206
175 msgid "Kislev"
176 msgstr ""
177
178 #: src/hdate_strings.c:202 src/hdate_strings.c:206
179 msgid "Tevet"
180 msgstr ""
181
182 #: src/hdate_strings.c:203 src/hdate_strings.c:207
183 msgid "Sh'vat"
184 msgstr ""
185
186 #: src/hdate_strings.c:203 src/hdate_strings.c:207
187 msgid "Adar"
188 msgstr ""
189
190 #: src/hdate_strings.c:203 src/hdate_strings.c:207
191 msgid "Nisan"
192 msgstr ""
193
194 #: src/hdate_strings.c:203 src/hdate_strings.c:207
195 msgid "Iyyar"
196 msgstr ""
197
198 #: src/hdate_strings.c:204 src/hdate_strings.c:208
199 msgid "Sivan"
200 msgstr ""
201
202 #: src/hdate_strings.c:204 src/hdate_strings.c:208
203 msgid "Tamuz"
204 msgstr ""
205
206 #: src/hdate_strings.c:204 src/hdate_strings.c:208
207 msgid "Av"
208 msgstr ""
209
210 #: src/hdate_strings.c:204 src/hdate_strings.c:208
211 msgid "Elul"
212 msgstr ""
213
214 #: src/hdate_strings.c:204 src/hdate_strings.c:208
215 msgid "Adar I"
216 msgstr ""
217
218 #: src/hdate_strings.c:205 src/hdate_strings.c:209
219 msgid "Adar II"
220 msgstr ""
221
222 #: src/hdate_strings.c:241 src/hdate_strings.c:272
223 msgid "Rosh Hashana I"
224 msgstr ""
225
226 #. 1
227 #: src/hdate_strings.c:242 src/hdate_strings.c:273
228 msgid "Rosh Hashana II"
229 msgstr ""
230
231 #: src/hdate_strings.c:243 src/hdate_strings.c:274
232 msgid "Tzom Gedaliah"
233 msgstr ""
234
235 #: src/hdate_strings.c:244 src/hdate_strings.c:275
236 msgid "Yom Kippur"
237 msgstr ""
238
239 #: src/hdate_strings.c:245 src/hdate_strings.c:276
240 msgid "Sukkot"
241 msgstr ""
242
243 #: src/hdate_strings.c:246 src/hdate_strings.c:277
244 msgid "Hol hamoed Sukkot"
245 msgstr ""
246
247 #: src/hdate_strings.c:247 src/hdate_strings.c:278
248 msgid "Hoshana raba"
249 msgstr ""
250
251 #: src/hdate_strings.c:248 src/hdate_strings.c:279
252 msgid "Simchat Torah"
253 msgstr ""
254
255 #: src/hdate_strings.c:249 src/hdate_strings.c:280
256 msgid "Chanukah"
257 msgstr ""
258
259 #: src/hdate_strings.c:250 src/hdate_strings.c:281
260 msgid "Asara B'Tevet"
261 msgstr ""
262
263 #. 10
264 #: src/hdate_strings.c:251 src/hdate_strings.c:282
265 msgid "Tu B'Shvat"
266 msgstr ""
267
268 #: src/hdate_strings.c:252 src/hdate_strings.c:283
269 msgid "Ta'anit Esther"
270 msgstr ""
271
272 #: src/hdate_strings.c:253 src/hdate_strings.c:284
273 msgid "Purim"
274 msgstr ""
275
276 #: src/hdate_strings.c:254 src/hdate_strings.c:285
277 msgid "Shushan Purim"
278 msgstr ""
279
280 #: src/hdate_strings.c:255 src/hdate_strings.c:286
281 msgid "Pesach"
282 msgstr ""
283
284 #: src/hdate_strings.c:256 src/hdate_strings.c:287
285 msgid "Hol hamoed Pesach"
286 msgstr ""
287
288 #: src/hdate_strings.c:257 src/hdate_strings.c:288
289 msgid "Yom HaAtzma'ut"
290 msgstr ""
291
292 #: src/hdate_strings.c:258 src/hdate_strings.c:289
293 msgid "Lag B'Omer"
294 msgstr ""
295
296 #: src/hdate_strings.c:259 src/hdate_strings.c:290
297 msgid "Erev Shavuot"
298 msgstr ""
299
300 #: src/hdate_strings.c:260 src/hdate_strings.c:291
301 msgid "Shavuot"
302 msgstr ""
303
304 #. 20
305 #: src/hdate_strings.c:261 src/hdate_strings.c:292
306 msgid "Tzom Tammuz"
307 msgstr ""
308
309 #: src/hdate_strings.c:262 src/hdate_strings.c:293
310 msgid "Tish'a B'Av"
311 msgstr ""
312
313 #: src/hdate_strings.c:263 src/hdate_strings.c:294
314 msgid "Tu B'Av"
315 msgstr ""
316
317 #: src/hdate_strings.c:264 src/hdate_strings.c:295
318 msgid "Yom HaShoah"
319 msgstr ""
320
321 #: src/hdate_strings.c:265 src/hdate_strings.c:296
322 msgid "Yom HaZikaron"
323 msgstr ""
324
325 #. 25
326 #: src/hdate_strings.c:266 src/hdate_strings.c:297
327 msgid "Yom Yerushalayim"
328 msgstr ""
329
330 #: src/hdate_strings.c:267 src/hdate_strings.c:298
331 msgid "Shmini Atzeret"
332 msgstr ""
333
334 #: src/hdate_strings.c:268 src/hdate_strings.c:299
335 msgid "Pesach VII"
336 msgstr ""
337
338 #: src/hdate_strings.c:269 src/hdate_strings.c:300
339 msgid "Pesach VIII"
340 msgstr ""
341
342 #: src/hdate_strings.c:270 src/hdate_strings.c:301
343 msgid "Shavuot II"
344 msgstr ""
345
346 #: src/hdate_strings.c:334 src/hdate_strings.c:397
347 msgid "none"
348 msgstr ""
349
350 #: src/hdate_strings.c:335 src/hdate_strings.c:398
351 msgid "Bereshit"
352 msgstr ""
353
354 #. 1
355 #: src/hdate_strings.c:336 src/hdate_strings.c:399
356 msgid "Noach"
357 msgstr ""
358
359 #: src/hdate_strings.c:337 src/hdate_strings.c:400
360 msgid "Lech-Lecha"
361 msgstr ""
362
363 #: src/hdate_strings.c:338 src/hdate_strings.c:401
364 msgid "Vayera"
365 msgstr ""
366
367 #: src/hdate_strings.c:339 src/hdate_strings.c:402
368 msgid "Chayei Sara"
369 msgstr ""
370
371 #: src/hdate_strings.c:340 src/hdate_strings.c:403
372 msgid "Toldot"
373 msgstr ""
374
375 #: src/hdate_strings.c:341 src/hdate_strings.c:404
376 msgid "Vayetzei"
377 msgstr ""
378
379 #: src/hdate_strings.c:342 src/hdate_strings.c:405
380 msgid "Vayishlach"
381 msgstr ""
382
383 #: src/hdate_strings.c:343 src/hdate_strings.c:406
384 msgid "Vayeshev"
385 msgstr ""
386
387 #: src/hdate_strings.c:344 src/hdate_strings.c:407
388 msgid "Miketz"
389 msgstr ""
390
391 #. 10
392 #: src/hdate_strings.c:345 src/hdate_strings.c:408
393 msgid "Vayigash"
394 msgstr ""
395
396 #: src/hdate_strings.c:346 src/hdate_strings.c:409
397 msgid "Vayechi"
398 msgstr ""
399
400 #: src/hdate_strings.c:347 src/hdate_strings.c:410
401 msgid "Shemot"
402 msgstr ""
403
404 #: src/hdate_strings.c:348 src/hdate_strings.c:411
405 msgid "Vaera"
406 msgstr ""
407
408 #: src/hdate_strings.c:349 src/hdate_strings.c:412
409 msgid "Bo"
410 msgstr ""
411
412 #: src/hdate_strings.c:350 src/hdate_strings.c:413
413 msgid "Beshalach"
414 msgstr ""
415
416 #: src/hdate_strings.c:351 src/hdate_strings.c:414
417 msgid "Yitro"
418 msgstr ""
419
420 #: src/hdate_strings.c:352 src/hdate_strings.c:415
421 msgid "Mishpatim"
422 msgstr ""
423
424 #: src/hdate_strings.c:353 src/hdate_strings.c:416
425 msgid "Terumah"
426 msgstr ""
427
428 #: src/hdate_strings.c:354 src/hdate_strings.c:417
429 msgid "Tetzaveh"
430 msgstr ""
431
432 #. 20
433 #: src/hdate_strings.c:355 src/hdate_strings.c:418
434 msgid "Ki Tisa"
435 msgstr ""
436
437 #: src/hdate_strings.c:356 src/hdate_strings.c:419
438 msgid "Vayakhel"
439 msgstr ""
440
441 #: src/hdate_strings.c:357 src/hdate_strings.c:420
442 msgid "Pekudei"
443 msgstr ""
444
445 #: src/hdate_strings.c:358 src/hdate_strings.c:421
446 msgid "Vayikra"
447 msgstr ""
448
449 #: src/hdate_strings.c:359 src/hdate_strings.c:422
450 msgid "Tzav"
451 msgstr ""
452
453 #: src/hdate_strings.c:360 src/hdate_strings.c:423
454 msgid "Shmini"
455 msgstr ""
456
457 #: src/hdate_strings.c:361 src/hdate_strings.c:424
458 msgid "Tazria"
459 msgstr ""
460
461 #: src/hdate_strings.c:362 src/hdate_strings.c:425
462 msgid "Metzora"
463 msgstr ""
464
465 #: src/hdate_strings.c:363 src/hdate_strings.c:426
466 msgid "Achrei Mot"
467 msgstr ""
468
469 #: src/hdate_strings.c:364 src/hdate_strings.c:427
470 msgid "Kedoshim"
471 msgstr ""
472
473 #. 30
474 #: src/hdate_strings.c:365 src/hdate_strings.c:428
475 msgid "Emor"
476 msgstr ""
477
478 #: src/hdate_strings.c:366 src/hdate_strings.c:429
479 msgid "Behar"
480 msgstr ""
481
482 #: src/hdate_strings.c:367 src/hdate_strings.c:430
483 msgid "Bechukotai"
484 msgstr ""
485
486 #: src/hdate_strings.c:368 src/hdate_strings.c:431
487 msgid "Bamidbar"
488 msgstr ""
489
490 #: src/hdate_strings.c:369 src/hdate_strings.c:432
491 msgid "Nasso"
492 msgstr ""
493
494 #: src/hdate_strings.c:370 src/hdate_strings.c:433
495 msgid "Beha'alotcha"
496 msgstr ""
497
498 #: src/hdate_strings.c:371 src/hdate_strings.c:434
499 msgid "Sh'lach"
500 msgstr ""
501
502 #: src/hdate_strings.c:372 src/hdate_strings.c:435
503 msgid "Korach"
504 msgstr ""
505
506 #: src/hdate_strings.c:373 src/hdate_strings.c:436
507 msgid "Chukat"
508 msgstr ""
509
510 #: src/hdate_strings.c:374 src/hdate_strings.c:437
511 msgid "Balak"
512 msgstr ""
513
514 #. 40
515 #: src/hdate_strings.c:375 src/hdate_strings.c:438
516 msgid "Pinchas"
517 msgstr ""
518
519 #: src/hdate_strings.c:376 src/hdate_strings.c:439
520 msgid "Matot"
521 msgstr ""
522
523 #: src/hdate_strings.c:377 src/hdate_strings.c:440
524 msgid "Masei"
525 msgstr ""
526
527 #: src/hdate_strings.c:378 src/hdate_strings.c:441
528 msgid "Devarim"
529 msgstr ""
530
531 #: src/hdate_strings.c:379 src/hdate_strings.c:442
532 msgid "Vaetchanan"
533 msgstr ""
534
535 #: src/hdate_strings.c:380 src/hdate_strings.c:443
536 msgid "Eikev"
537 msgstr ""
538
539 #: src/hdate_strings.c:381 src/hdate_strings.c:444
540 msgid "Re'eh"
541 msgstr ""
542
543 #: src/hdate_strings.c:382 src/hdate_strings.c:445
544 msgid "Shoftim"
545 msgstr ""
546
547 #: src/hdate_strings.c:383 src/hdate_strings.c:446
548 msgid "Ki Teitzei"
549 msgstr ""
550
551 #: src/hdate_strings.c:384 src/hdate_strings.c:447
552 msgid "Ki Tavo"
553 msgstr ""
554
555 #. 50
556 #: src/hdate_strings.c:385 src/hdate_strings.c:448
557 msgid "Nitzavim"
558 msgstr ""
559
560 #: src/hdate_strings.c:386 src/hdate_strings.c:449
561 msgid "Vayeilech"
562 msgstr ""
563
564 #: src/hdate_strings.c:387 src/hdate_strings.c:450
565 msgid "Ha'Azinu"
566 msgstr ""
567
568 #: src/hdate_strings.c:388 src/hdate_strings.c:451
569 msgid "Vezot Habracha"
570 msgstr ""
571
572 #. 54
573 #: src/hdate_strings.c:389 src/hdate_strings.c:452
574 msgid "Vayakhel-Pekudei"
575 msgstr ""
576
577 #: src/hdate_strings.c:390 src/hdate_strings.c:453
578 msgid "Tazria-Metzora"
579 msgstr ""
580
581 #: src/hdate_strings.c:391 src/hdate_strings.c:454
582 msgid "Achrei Mot-Kedoshim"
583 msgstr ""
584
585 #: src/hdate_strings.c:392 src/hdate_strings.c:455
586 msgid "Behar-Bechukotai"
587 msgstr ""
588
589 #: src/hdate_strings.c:393 src/hdate_strings.c:456
590 msgid "Chukat-Balak"
591 msgstr ""
592
593 #: src/hdate_strings.c:394 src/hdate_strings.c:457
594 msgid "Matot-Masei"
595 msgstr ""
596
597 #: src/hdate_strings.c:395 src/hdate_strings.c:458
598 msgid "Nitzavim-Vayeilech"
599 msgstr ""
600
601 #. if untranslated return null
602 #. return the translator name
603 #: src/hdate_strings.c:560 src/hdate_strings.c:564
604 msgid "translator"
605 msgstr ""
Binary diff not shown
0 # translation of libhdate.pot to Russian
1 # This file is distributed under the same license as the libhdate package.
2 # Copyright (C) 2005 Boris Peterberg.
3 # Boris Peterberg, 2005.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: ru\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2005-07-27 19:20+0300\n"
11 "PO-Revision-Date: 2005-03-08 22:44-0200\n"
12 "Last-Translator: Boeis Peterberg\n"
13 "Language-Team: Russian\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #: src/hdate_strings.c:131
19 msgid "Sun"
20 msgstr "Вс."
21
22 #: src/hdate_strings.c:131
23 msgid "Mon"
24 msgstr "Пн."
25
26 #: src/hdate_strings.c:131
27 msgid "Tue"
28 msgstr "Вт."
29
30 #: src/hdate_strings.c:131
31 msgid "Wed"
32 msgstr "Ср."
33
34 #: src/hdate_strings.c:131
35 msgid "Thu"
36 msgstr "Чт."
37
38 #: src/hdate_strings.c:132
39 msgid "Fri"
40 msgstr "Пт."
41
42 #: src/hdate_strings.c:132
43 msgid "Sat"
44 msgstr "Сб."
45
46 #: src/hdate_strings.c:133
47 msgid "Sunday"
48 msgstr "Воскресенье"
49
50 #: src/hdate_strings.c:133
51 msgid "Monday"
52 msgstr "Понедельник"
53
54 #: src/hdate_strings.c:133
55 msgid "Tuesday"
56 msgstr "Вторник"
57
58 #: src/hdate_strings.c:133
59 msgid "Wednesday"
60 msgstr "Среда"
61
62 #: src/hdate_strings.c:134
63 msgid "Thursday"
64 msgstr "Четверг"
65
66 #: src/hdate_strings.c:134
67 msgid "Friday"
68 msgstr "Пятница"
69
70 #: src/hdate_strings.c:134
71 msgid "Saturday"
72 msgstr "Суботта"
73
74 #: src/hdate_strings.c:165
75 msgid "Jan"
76 msgstr "Янв"
77
78 #: src/hdate_strings.c:165
79 msgid "Feb"
80 msgstr "Фев"
81
82 #: src/hdate_strings.c:165
83 msgid "Mar"
84 msgstr "Мар"
85
86 #: src/hdate_strings.c:165
87 msgid "Apr"
88 msgstr "Апр"
89
90 #: src/hdate_strings.c:165 src/hdate_strings.c:169
91 msgid "May"
92 msgstr "Май"
93
94 #: src/hdate_strings.c:166
95 msgid "Jun"
96 msgstr "Июнь"
97
98 #: src/hdate_strings.c:166
99 msgid "Jul"
100 msgstr "Июль"
101
102 #: src/hdate_strings.c:166
103 msgid "Aug"
104 msgstr "Авг"
105
106 #: src/hdate_strings.c:166
107 msgid "Sep"
108 msgstr "Сен"
109
110 #: src/hdate_strings.c:166
111 msgid "Oct"
112 msgstr "Окт"
113
114 #: src/hdate_strings.c:167
115 msgid "Nov"
116 msgstr "Но"
117
118 #: src/hdate_strings.c:167
119 msgid "Dec"
120 msgstr "Дек"
121
122 #: src/hdate_strings.c:168
123 msgid "January"
124 msgstr "Январь"
125
126 #: src/hdate_strings.c:168
127 msgid "February"
128 msgstr "Февраль"
129
130 #: src/hdate_strings.c:168
131 msgid "March"
132 msgstr "Март"
133
134 #: src/hdate_strings.c:169
135 msgid "April"
136 msgstr "Апрель"
137
138 #: src/hdate_strings.c:169
139 msgid "June"
140 msgstr "Июнь"
141
142 #: src/hdate_strings.c:170
143 msgid "July"
144 msgstr "Июль"
145
146 #: src/hdate_strings.c:170
147 msgid "August"
148 msgstr "Август"
149
150 #: src/hdate_strings.c:170
151 msgid "September"
152 msgstr "Сентябрь"
153
154 #: src/hdate_strings.c:171
155 msgid "October"
156 msgstr "Октябрь"
157
158 #: src/hdate_strings.c:171
159 msgid "November"
160 msgstr "Ноябрь"
161
162 #: src/hdate_strings.c:171
163 msgid "December"
164 msgstr "Декабрь"
165
166 #: src/hdate_strings.c:202 src/hdate_strings.c:206
167 msgid "Tishrei"
168 msgstr "Тишрэй"
169
170 #: src/hdate_strings.c:202 src/hdate_strings.c:206
171 msgid "Cheshvan"
172 msgstr "Хешван"
173
174 #: src/hdate_strings.c:202 src/hdate_strings.c:206
175 msgid "Kislev"
176 msgstr "Кислэв"
177
178 #: src/hdate_strings.c:202 src/hdate_strings.c:206
179 msgid "Tevet"
180 msgstr "Тэвэт"
181
182 #: src/hdate_strings.c:203 src/hdate_strings.c:207
183 msgid "Sh'vat"
184 msgstr "Шват"
185
186 #: src/hdate_strings.c:203 src/hdate_strings.c:207
187 msgid "Adar"
188 msgstr "Адар"
189
190 #: src/hdate_strings.c:203 src/hdate_strings.c:207
191 msgid "Nisan"
192 msgstr "Нисан"
193
194 #: src/hdate_strings.c:203 src/hdate_strings.c:207
195 msgid "Iyyar"
196 msgstr "Ийар"
197
198 #: src/hdate_strings.c:204 src/hdate_strings.c:208
199 msgid "Sivan"
200 msgstr "Сиван"
201
202 #: src/hdate_strings.c:204 src/hdate_strings.c:208
203 msgid "Tamuz"
204 msgstr "Тамуз"
205
206 #: src/hdate_strings.c:204 src/hdate_strings.c:208
207 msgid "Av"
208 msgstr "Ав"
209
210 #: src/hdate_strings.c:204 src/hdate_strings.c:208
211 msgid "Elul"
212 msgstr "Элул"
213
214 #: src/hdate_strings.c:204 src/hdate_strings.c:208
215 msgid "Adar I"
216 msgstr "Адар 1"
217
218 #: src/hdate_strings.c:205 src/hdate_strings.c:209
219 msgid "Adar II"
220 msgstr "Адар 2"
221
222 #: src/hdate_strings.c:241 src/hdate_strings.c:272
223 msgid "Rosh Hashana I"
224 msgstr "Рош-а-Шана I"
225
226 #. 1
227 #: src/hdate_strings.c:242 src/hdate_strings.c:273
228 msgid "Rosh Hashana II"
229 msgstr "Рош-а-Шана II"
230
231 #: src/hdate_strings.c:243 src/hdate_strings.c:274
232 msgid "Tzom Gedaliah"
233 msgstr "Цом гдаляа"
234
235 #: src/hdate_strings.c:244 src/hdate_strings.c:275
236 msgid "Yom Kippur"
237 msgstr "Йом Кипур"
238
239 #: src/hdate_strings.c:245 src/hdate_strings.c:276
240 msgid "Sukkot"
241 msgstr "Суккот I"
242
243 #: src/hdate_strings.c:246 src/hdate_strings.c:277
244 msgid "Hol hamoed Sukkot"
245 msgstr "Суккот"
246
247 #: src/hdate_strings.c:247 src/hdate_strings.c:278
248 msgid "Hoshana raba"
249 msgstr "hoшана Раба"
250
251 #: src/hdate_strings.c:248 src/hdate_strings.c:279
252 msgid "Simchat Torah"
253 msgstr "Симхат-Тора"
254
255 #: src/hdate_strings.c:249 src/hdate_strings.c:280
256 msgid "Chanukah"
257 msgstr "Ханука"
258
259 #: src/hdate_strings.c:250 src/hdate_strings.c:281
260 msgid "Asara B'Tevet"
261 msgstr "Десятое Тевета"
262
263 #. 10
264 #: src/hdate_strings.c:251 src/hdate_strings.c:282
265 msgid "Tu B'Shvat"
266 msgstr "Ту би-Шват"
267
268 #: src/hdate_strings.c:252 src/hdate_strings.c:283
269 msgid "Ta'anit Esther"
270 msgstr "Танйт зстер"
271
272 #: src/hdate_strings.c:253 src/hdate_strings.c:284
273 msgid "Purim"
274 msgstr "Пурим"
275
276 #: src/hdate_strings.c:254 src/hdate_strings.c:285
277 msgid "Shushan Purim"
278 msgstr "Ш. Пурим"
279
280 #: src/hdate_strings.c:255 src/hdate_strings.c:286
281 msgid "Pesach"
282 msgstr "Пэсах I"
283
284 #: src/hdate_strings.c:256 src/hdate_strings.c:287
285 msgid "Hol hamoed Pesach"
286 msgstr "Песах"
287
288 #: src/hdate_strings.c:257 src/hdate_strings.c:288
289 msgid "Yom HaAtzma'ut"
290 msgstr "День Независимости"
291
292 #: src/hdate_strings.c:258 src/hdate_strings.c:289
293 msgid "Lag B'Omer"
294 msgstr "Лаг ба-Омер"
295
296 #: src/hdate_strings.c:259 src/hdate_strings.c:290
297 msgid "Erev Shavuot"
298 msgstr "Шавуот"
299
300 #: src/hdate_strings.c:260 src/hdate_strings.c:291
301 msgid "Shavuot"
302 msgstr "Шавуот"
303
304 #. 20
305 #: src/hdate_strings.c:261 src/hdate_strings.c:292
306 msgid "Tzom Tammuz"
307 msgstr "17 Тамуза"
308
309 #: src/hdate_strings.c:262 src/hdate_strings.c:293
310 msgid "Tish'a B'Av"
311 msgstr "9 Ава"
312
313 #: src/hdate_strings.c:263 src/hdate_strings.c:294
314 msgid "Tu B'Av"
315 msgstr "15-ое Ава"
316
317 #: src/hdate_strings.c:264 src/hdate_strings.c:295
318 msgid "Yom HaShoah"
319 msgstr "День Холокоста"
320
321 #: src/hdate_strings.c:265 src/hdate_strings.c:296
322 msgid "Yom HaZikaron"
323 msgstr "День Памяти"
324
325 #. 25
326 #: src/hdate_strings.c:266 src/hdate_strings.c:297
327 msgid "Yom Yerushalayim"
328 msgstr "День Йерусалима"
329
330 #: src/hdate_strings.c:267 src/hdate_strings.c:298
331 msgid "Shmini Atzeret"
332 msgstr "Шмини-Ацерет"
333
334 #: src/hdate_strings.c:268 src/hdate_strings.c:299
335 msgid "Pesach VII"
336 msgstr "Песах VII"
337
338 #: src/hdate_strings.c:269 src/hdate_strings.c:300
339 msgid "Pesach VIII"
340 msgstr "Песах VIII"
341
342 #: src/hdate_strings.c:270 src/hdate_strings.c:301
343 msgid "Shavuot II"
344 msgstr "Шавуот II"
345
346 #: src/hdate_strings.c:334 src/hdate_strings.c:397
347 msgid "none"
348 msgstr "Нет"
349
350 #: src/hdate_strings.c:335 src/hdate_strings.c:398
351 msgid "Bereshit"
352 msgstr ""
353
354 #. 1
355 #: src/hdate_strings.c:336 src/hdate_strings.c:399
356 msgid "Noach"
357 msgstr "Ноах"
358
359 #: src/hdate_strings.c:337 src/hdate_strings.c:400
360 msgid "Lech-Lecha"
361 msgstr ""
362
363 #: src/hdate_strings.c:338 src/hdate_strings.c:401
364 msgid "Vayera"
365 msgstr ""
366
367 #: src/hdate_strings.c:339 src/hdate_strings.c:402
368 msgid "Chayei Sara"
369 msgstr "Жизнь Сары"
370
371 #: src/hdate_strings.c:340 src/hdate_strings.c:403
372 msgid "Toldot"
373 msgstr ""
374
375 #: src/hdate_strings.c:341 src/hdate_strings.c:404
376 msgid "Vayetzei"
377 msgstr ""
378
379 #: src/hdate_strings.c:342 src/hdate_strings.c:405
380 msgid "Vayishlach"
381 msgstr ""
382
383 #: src/hdate_strings.c:343 src/hdate_strings.c:406
384 msgid "Vayeshev"
385 msgstr ""
386
387 #: src/hdate_strings.c:344 src/hdate_strings.c:407
388 msgid "Miketz"
389 msgstr ""
390
391 #. 10
392 #: src/hdate_strings.c:345 src/hdate_strings.c:408
393 msgid "Vayigash"
394 msgstr ""
395
396 #: src/hdate_strings.c:346 src/hdate_strings.c:409
397 msgid "Vayechi"
398 msgstr ""
399
400 #: src/hdate_strings.c:347 src/hdate_strings.c:410
401 msgid "Shemot"
402 msgstr ""
403
404 #: src/hdate_strings.c:348 src/hdate_strings.c:411
405 msgid "Vaera"
406 msgstr ""
407
408 #: src/hdate_strings.c:349 src/hdate_strings.c:412
409 msgid "Bo"
410 msgstr ""
411
412 #: src/hdate_strings.c:350 src/hdate_strings.c:413
413 msgid "Beshalach"
414 msgstr ""
415
416 #: src/hdate_strings.c:351 src/hdate_strings.c:414
417 msgid "Yitro"
418 msgstr ""
419
420 #: src/hdate_strings.c:352 src/hdate_strings.c:415
421 msgid "Mishpatim"
422 msgstr ""
423
424 #: src/hdate_strings.c:353 src/hdate_strings.c:416
425 msgid "Terumah"
426 msgstr ""
427
428 #: src/hdate_strings.c:354 src/hdate_strings.c:417
429 msgid "Tetzaveh"
430 msgstr ""
431
432 #. 20
433 #: src/hdate_strings.c:355 src/hdate_strings.c:418
434 msgid "Ki Tisa"
435 msgstr ""
436
437 #: src/hdate_strings.c:356 src/hdate_strings.c:419
438 msgid "Vayakhel"
439 msgstr ""
440
441 #: src/hdate_strings.c:357 src/hdate_strings.c:420
442 msgid "Pekudei"
443 msgstr ""
444
445 #: src/hdate_strings.c:358 src/hdate_strings.c:421
446 msgid "Vayikra"
447 msgstr ""
448
449 #: src/hdate_strings.c:359 src/hdate_strings.c:422
450 msgid "Tzav"
451 msgstr ""
452
453 #: src/hdate_strings.c:360 src/hdate_strings.c:423
454 msgid "Shmini"
455 msgstr ""
456
457 #: src/hdate_strings.c:361 src/hdate_strings.c:424
458 msgid "Tazria"
459 msgstr ""
460
461 #: src/hdate_strings.c:362 src/hdate_strings.c:425
462 msgid "Metzora"
463 msgstr ""
464
465 #: src/hdate_strings.c:363 src/hdate_strings.c:426
466 msgid "Achrei Mot"
467 msgstr ""
468
469 #: src/hdate_strings.c:364 src/hdate_strings.c:427
470 msgid "Kedoshim"
471 msgstr ""
472
473 #. 30
474 #: src/hdate_strings.c:365 src/hdate_strings.c:428
475 msgid "Emor"
476 msgstr ""
477
478 #: src/hdate_strings.c:366 src/hdate_strings.c:429
479 msgid "Behar"
480 msgstr ""
481
482 #: src/hdate_strings.c:367 src/hdate_strings.c:430
483 msgid "Bechukotai"
484 msgstr ""
485
486 #: src/hdate_strings.c:368 src/hdate_strings.c:431
487 msgid "Bamidbar"
488 msgstr ""
489
490 #: src/hdate_strings.c:369 src/hdate_strings.c:432
491 msgid "Nasso"
492 msgstr ""
493
494 #: src/hdate_strings.c:370 src/hdate_strings.c:433
495 msgid "Beha'alotcha"
496 msgstr ""
497
498 #: src/hdate_strings.c:371 src/hdate_strings.c:434
499 msgid "Sh'lach"
500 msgstr ""
501
502 #: src/hdate_strings.c:372 src/hdate_strings.c:435
503 msgid "Korach"
504 msgstr ""
505
506 #: src/hdate_strings.c:373 src/hdate_strings.c:436
507 msgid "Chukat"
508 msgstr ""
509
510 #: src/hdate_strings.c:374 src/hdate_strings.c:437
511 msgid "Balak"
512 msgstr ""
513
514 #. 40
515 #: src/hdate_strings.c:375 src/hdate_strings.c:438
516 msgid "Pinchas"
517 msgstr ""
518
519 #: src/hdate_strings.c:376 src/hdate_strings.c:439
520 msgid "Matot"
521 msgstr ""
522
523 #: src/hdate_strings.c:377 src/hdate_strings.c:440
524 msgid "Masei"
525 msgstr ""
526
527 #: src/hdate_strings.c:378 src/hdate_strings.c:441
528 msgid "Devarim"
529 msgstr ""
530
531 #: src/hdate_strings.c:379 src/hdate_strings.c:442
532 msgid "Vaetchanan"
533 msgstr ""
534
535 #: src/hdate_strings.c:380 src/hdate_strings.c:443
536 msgid "Eikev"
537 msgstr ""
538
539 #: src/hdate_strings.c:381 src/hdate_strings.c:444
540 msgid "Re'eh"
541 msgstr ""
542
543 #: src/hdate_strings.c:382 src/hdate_strings.c:445
544 msgid "Shoftim"
545 msgstr ""
546
547 #: src/hdate_strings.c:383 src/hdate_strings.c:446
548 msgid "Ki Teitzei"
549 msgstr ""
550
551 #: src/hdate_strings.c:384 src/hdate_strings.c:447
552 msgid "Ki Tavo"
553 msgstr ""
554
555 #. 50
556 #: src/hdate_strings.c:385 src/hdate_strings.c:448
557 msgid "Nitzavim"
558 msgstr ""
559
560 #: src/hdate_strings.c:386 src/hdate_strings.c:449
561 msgid "Vayeilech"
562 msgstr ""
563
564 #: src/hdate_strings.c:387 src/hdate_strings.c:450
565 msgid "Ha'Azinu"
566 msgstr ""
567
568 #: src/hdate_strings.c:388 src/hdate_strings.c:451
569 msgid "Vezot Habracha"
570 msgstr ""
571
572 #. 54
573 #: src/hdate_strings.c:389 src/hdate_strings.c:452
574 msgid "Vayakhel-Pekudei"
575 msgstr ""
576
577 #: src/hdate_strings.c:390 src/hdate_strings.c:453
578 msgid "Tazria-Metzora"
579 msgstr ""
580
581 #: src/hdate_strings.c:391 src/hdate_strings.c:454
582 msgid "Achrei Mot-Kedoshim"
583 msgstr ""
584
585 #: src/hdate_strings.c:392 src/hdate_strings.c:455
586 msgid "Behar-Bechukotai"
587 msgstr ""
588
589 #: src/hdate_strings.c:393 src/hdate_strings.c:456
590 msgid "Chukat-Balak"
591 msgstr ""
592
593 #: src/hdate_strings.c:394 src/hdate_strings.c:457
594 msgid "Matot-Masei"
595 msgstr ""
596
597 #: src/hdate_strings.c:395 src/hdate_strings.c:458
598 msgid "Nitzavim-Vayeilech"
599 msgstr ""
600
601 #. if untranslated return null
602 #. return the translator name
603 #: src/hdate_strings.c:560 src/hdate_strings.c:564
604 msgid "translator"
605 msgstr "Борис Петербарг"
0 EXTRA_DIST = hdate.h.3 hdate_struct.3
1
2 libhdate_la_CFLAGS =\
3 -Wall\
4 -g
5
6 lib_LTLIBRARIES = libhdate.la
7
8 libhdate_la_SOURCES = \
9 hdate_strings.c\
10 hdate_julian.c\
11 hdate_holyday.c\
12 hdate_parasha.c\
13 hdate_sun_time.c\
14 hdate.h\
15 support.h
16
17 libhdate_la_LDFLAGS = -version-info $(VERSION_INFO)
18
19 libhdate_la_LIBADD =
20
21 include_HEADERS = hdate.h hdatepp.h
22
23 man_MANS = hdate.h.3 hdate_struct.3
0 # Makefile.in generated by automake 1.7.9 from Makefile.am.
1 # @configure_input@
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 # 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
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 host_triplet = @host@
38 ACLOCAL = @ACLOCAL@
39 ALLOCA = @ALLOCA@
40 AMDEP_FALSE = @AMDEP_FALSE@
41 AMDEP_TRUE = @AMDEP_TRUE@
42 AMTAR = @AMTAR@
43 AR = @AR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
49 CATOBJEXT = @CATOBJEXT@
50 CC = @CC@
51 CCDEPMODE = @CCDEPMODE@
52 CFLAGS = @CFLAGS@
53 CPP = @CPP@
54 CPPFLAGS = @CPPFLAGS@
55 CXX = @CXX@
56 CXXCPP = @CXXCPP@
57 CXXDEPMODE = @CXXDEPMODE@
58 CXXFLAGS = @CXXFLAGS@
59 CYGPATH_W = @CYGPATH_W@
60 DATADIRNAME = @DATADIRNAME@
61 DEFS = @DEFS@
62 DEPDIR = @DEPDIR@
63 ECHO = @ECHO@
64 ECHO_C = @ECHO_C@
65 ECHO_N = @ECHO_N@
66 ECHO_T = @ECHO_T@
67 EGREP = @EGREP@
68 EXEEXT = @EXEEXT@
69 F77 = @F77@
70 FFLAGS = @FFLAGS@
71 GENCAT = @GENCAT@
72 GLIBC2 = @GLIBC2@
73 GLIBC21 = @GLIBC21@
74 GMSGFMT = @GMSGFMT@
75 HAVE_ASPRINTF = @HAVE_ASPRINTF@
76 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
77 HAVE_SNPRINTF = @HAVE_SNPRINTF@
78 HAVE_WPRINTF = @HAVE_WPRINTF@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_PROGRAM = @INSTALL_PROGRAM@
81 INSTALL_SCRIPT = @INSTALL_SCRIPT@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
83 INSTOBJEXT = @INSTOBJEXT@
84 INTLBISON = @INTLBISON@
85 INTLLIBS = @INTLLIBS@
86 INTLOBJS = @INTLOBJS@
87 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
88 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
89 LDFLAGS = @LDFLAGS@
90 LIBICONV = @LIBICONV@
91 LIBINTL = @LIBINTL@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBTOOL = @LIBTOOL@
95 LN_S = @LN_S@
96 LTLIBICONV = @LTLIBICONV@
97 LTLIBINTL = @LTLIBINTL@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAINT = @MAINT@
100 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
101 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 MSGFMT = @MSGFMT@
105 MSGMERGE = @MSGMERGE@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 PA_MODULES_PATH = @PA_MODULES_PATH@
115 PE_CFLAGS = @PE_CFLAGS@
116 PE_MODULES_PATH = @PE_MODULES_PATH@
117 PKG_CONFIG = @PKG_CONFIG@
118 POSUB = @POSUB@
119 PY_CFLAGS = @PY_CFLAGS@
120 PY_MODULES_PATH = @PY_MODULES_PATH@
121 RANLIB = @RANLIB@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
126 USE_NLS = @USE_NLS@
127 VERSION = @VERSION@
128 VERSION_INFO = @VERSION_INFO@
129 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
130 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
131 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
132 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
133 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
134 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
135 WITH_PERL_FALSE = @WITH_PERL_FALSE@
136 WITH_PERL_TRUE = @WITH_PERL_TRUE@
137 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
138 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
139 XGETTEXT = @XGETTEXT@
140 ac_ct_AR = @ac_ct_AR@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_CXX = @ac_ct_CXX@
143 ac_ct_F77 = @ac_ct_F77@
144 ac_ct_RANLIB = @ac_ct_RANLIB@
145 ac_ct_STRIP = @ac_ct_STRIP@
146 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
147 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
148 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
149 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
150 am__include = @am__include@
151 am__leading_dot = @am__leading_dot@
152 am__quote = @am__quote@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 datadir = @datadir@
160 exec_prefix = @exec_prefix@
161 have_pascal = @have_pascal@
162 have_perl = @have_perl@
163 have_python = @have_python@
164 have_swig = @have_swig@
165 host = @host@
166 host_alias = @host_alias@
167 host_cpu = @host_cpu@
168 host_os = @host_os@
169 host_vendor = @host_vendor@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 localstatedir = @localstatedir@
176 mandir = @mandir@
177 oldincludedir = @oldincludedir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184 EXTRA_DIST = hdate.h.3 hdate_struct.3
185
186 libhdate_la_CFLAGS = \
187 -Wall\
188 -g
189
190
191 lib_LTLIBRARIES = libhdate.la
192
193 libhdate_la_SOURCES = \
194 hdate_strings.c\
195 hdate_julian.c\
196 hdate_holyday.c\
197 hdate_parasha.c\
198 hdate_sun_time.c\
199 hdate.h\
200 support.h
201
202
203 libhdate_la_LDFLAGS = -version-info $(VERSION_INFO)
204
205 libhdate_la_LIBADD =
206
207 include_HEADERS = hdate.h hdatepp.h
208
209 man_MANS = hdate.h.3 hdate_struct.3
210 subdir = src
211 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
212 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
213 CONFIG_CLEAN_FILES =
214 LTLIBRARIES = $(lib_LTLIBRARIES)
215
216 libhdate_la_DEPENDENCIES =
217 am_libhdate_la_OBJECTS = libhdate_la-hdate_strings.lo \
218 libhdate_la-hdate_julian.lo libhdate_la-hdate_holyday.lo \
219 libhdate_la-hdate_parasha.lo libhdate_la-hdate_sun_time.lo
220 libhdate_la_OBJECTS = $(am_libhdate_la_OBJECTS)
221
222 DEFAULT_INCLUDES = -I. -I$(srcdir)
223 depcomp = $(SHELL) $(top_srcdir)/depcomp
224 am__depfiles_maybe = depfiles
225 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/libhdate_la-hdate_holyday.Plo \
226 @AMDEP_TRUE@ ./$(DEPDIR)/libhdate_la-hdate_julian.Plo \
227 @AMDEP_TRUE@ ./$(DEPDIR)/libhdate_la-hdate_parasha.Plo \
228 @AMDEP_TRUE@ ./$(DEPDIR)/libhdate_la-hdate_strings.Plo \
229 @AMDEP_TRUE@ ./$(DEPDIR)/libhdate_la-hdate_sun_time.Plo
230 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
231 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
232 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
233 $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
234 CCLD = $(CC)
235 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
236 $(AM_LDFLAGS) $(LDFLAGS) -o $@
237 DIST_SOURCES = $(libhdate_la_SOURCES)
238
239 NROFF = nroff
240 MANS = $(man_MANS)
241 HEADERS = $(include_HEADERS)
242
243 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.in Makefile.am
244 SOURCES = $(libhdate_la_SOURCES)
245
246 all: all-am
247
248 .SUFFIXES:
249 .SUFFIXES: .c .lo .o .obj
250 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
251 cd $(top_srcdir) && \
252 $(AUTOMAKE) --gnu src/Makefile
253 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
255 libLTLIBRARIES_INSTALL = $(INSTALL)
256 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
257 @$(NORMAL_INSTALL)
258 $(mkinstalldirs) $(DESTDIR)$(libdir)
259 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
260 if test -f $$p; then \
261 f="`echo $$p | sed -e 's|^.*/||'`"; \
262 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
263 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
264 else :; fi; \
265 done
266
267 uninstall-libLTLIBRARIES:
268 @$(NORMAL_UNINSTALL)
269 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
270 p="`echo $$p | sed -e 's|^.*/||'`"; \
271 echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
272 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
273 done
274
275 clean-libLTLIBRARIES:
276 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
277 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
278 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
279 test "$$dir" = "$$p" && dir=.; \
280 echo "rm -f \"$${dir}/so_locations\""; \
281 rm -f "$${dir}/so_locations"; \
282 done
283 libhdate.la: $(libhdate_la_OBJECTS) $(libhdate_la_DEPENDENCIES)
284 $(LINK) -rpath $(libdir) $(libhdate_la_LDFLAGS) $(libhdate_la_OBJECTS) $(libhdate_la_LIBADD) $(LIBS)
285
286 mostlyclean-compile:
287 -rm -f *.$(OBJEXT) core *.core
288
289 distclean-compile:
290 -rm -f *.tab.c
291
292 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_holyday.Plo@am__quote@
293 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_julian.Plo@am__quote@
294 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_parasha.Plo@am__quote@
295 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_strings.Plo@am__quote@
296 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_sun_time.Plo@am__quote@
297
298 .c.o:
299 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
300 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
301 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
302 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
303 @am__fastdepCC_TRUE@ fi
304 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307 @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
308
309 .c.obj:
310 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
311 @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
312 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
313 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
314 @am__fastdepCC_TRUE@ fi
315 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
317 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318 @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
319
320 .c.lo:
321 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
322 @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
323 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
324 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
325 @am__fastdepCC_TRUE@ fi
326 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
327 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
328 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
330
331 libhdate_la-hdate_strings.o: hdate_strings.c
332 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_strings.o -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_strings.Tpo" \
333 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_strings.o `test -f 'hdate_strings.c' || echo '$(srcdir)/'`hdate_strings.c; \
334 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_strings.Tpo" "$(DEPDIR)/libhdate_la-hdate_strings.Po"; \
335 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_strings.Tpo"; exit 1; \
336 @am__fastdepCC_TRUE@ fi
337 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_strings.c' object='libhdate_la-hdate_strings.o' libtool=no @AMDEPBACKSLASH@
338 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_strings.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_strings.TPo' @AMDEPBACKSLASH@
339 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
340 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_strings.o `test -f 'hdate_strings.c' || echo '$(srcdir)/'`hdate_strings.c
341
342 libhdate_la-hdate_strings.obj: hdate_strings.c
343 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_strings.obj -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_strings.Tpo" \
344 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_strings.obj `if test -f 'hdate_strings.c'; then $(CYGPATH_W) 'hdate_strings.c'; else $(CYGPATH_W) '$(srcdir)/hdate_strings.c'; fi`; \
345 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_strings.Tpo" "$(DEPDIR)/libhdate_la-hdate_strings.Po"; \
346 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_strings.Tpo"; exit 1; \
347 @am__fastdepCC_TRUE@ fi
348 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_strings.c' object='libhdate_la-hdate_strings.obj' libtool=no @AMDEPBACKSLASH@
349 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_strings.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_strings.TPo' @AMDEPBACKSLASH@
350 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
351 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_strings.obj `if test -f 'hdate_strings.c'; then $(CYGPATH_W) 'hdate_strings.c'; else $(CYGPATH_W) '$(srcdir)/hdate_strings.c'; fi`
352
353 libhdate_la-hdate_strings.lo: hdate_strings.c
354 @am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_strings.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_strings.Tpo" \
355 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_strings.lo `test -f 'hdate_strings.c' || echo '$(srcdir)/'`hdate_strings.c; \
356 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_strings.Tpo" "$(DEPDIR)/libhdate_la-hdate_strings.Plo"; \
357 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_strings.Tpo"; exit 1; \
358 @am__fastdepCC_TRUE@ fi
359 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_strings.c' object='libhdate_la-hdate_strings.lo' libtool=yes @AMDEPBACKSLASH@
360 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_strings.Plo' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_strings.TPlo' @AMDEPBACKSLASH@
361 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
362 @am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_strings.lo `test -f 'hdate_strings.c' || echo '$(srcdir)/'`hdate_strings.c
363
364 libhdate_la-hdate_julian.o: hdate_julian.c
365 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_julian.o -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_julian.Tpo" \
366 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_julian.o `test -f 'hdate_julian.c' || echo '$(srcdir)/'`hdate_julian.c; \
367 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo" "$(DEPDIR)/libhdate_la-hdate_julian.Po"; \
368 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo"; exit 1; \
369 @am__fastdepCC_TRUE@ fi
370 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_julian.c' object='libhdate_la-hdate_julian.o' libtool=no @AMDEPBACKSLASH@
371 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_julian.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_julian.TPo' @AMDEPBACKSLASH@
372 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
373 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_julian.o `test -f 'hdate_julian.c' || echo '$(srcdir)/'`hdate_julian.c
374
375 libhdate_la-hdate_julian.obj: hdate_julian.c
376 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_julian.obj -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_julian.Tpo" \
377 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_julian.obj `if test -f 'hdate_julian.c'; then $(CYGPATH_W) 'hdate_julian.c'; else $(CYGPATH_W) '$(srcdir)/hdate_julian.c'; fi`; \
378 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo" "$(DEPDIR)/libhdate_la-hdate_julian.Po"; \
379 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo"; exit 1; \
380 @am__fastdepCC_TRUE@ fi
381 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_julian.c' object='libhdate_la-hdate_julian.obj' libtool=no @AMDEPBACKSLASH@
382 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_julian.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_julian.TPo' @AMDEPBACKSLASH@
383 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
384 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_julian.obj `if test -f 'hdate_julian.c'; then $(CYGPATH_W) 'hdate_julian.c'; else $(CYGPATH_W) '$(srcdir)/hdate_julian.c'; fi`
385
386 libhdate_la-hdate_julian.lo: hdate_julian.c
387 @am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_julian.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_julian.Tpo" \
388 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_julian.lo `test -f 'hdate_julian.c' || echo '$(srcdir)/'`hdate_julian.c; \
389 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo" "$(DEPDIR)/libhdate_la-hdate_julian.Plo"; \
390 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo"; exit 1; \
391 @am__fastdepCC_TRUE@ fi
392 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_julian.c' object='libhdate_la-hdate_julian.lo' libtool=yes @AMDEPBACKSLASH@
393 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_julian.Plo' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_julian.TPlo' @AMDEPBACKSLASH@
394 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
395 @am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_julian.lo `test -f 'hdate_julian.c' || echo '$(srcdir)/'`hdate_julian.c
396
397 libhdate_la-hdate_holyday.o: hdate_holyday.c
398 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_holyday.o -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo" \
399 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_holyday.o `test -f 'hdate_holyday.c' || echo '$(srcdir)/'`hdate_holyday.c; \
400 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo" "$(DEPDIR)/libhdate_la-hdate_holyday.Po"; \
401 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo"; exit 1; \
402 @am__fastdepCC_TRUE@ fi
403 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_holyday.c' object='libhdate_la-hdate_holyday.o' libtool=no @AMDEPBACKSLASH@
404 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_holyday.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_holyday.TPo' @AMDEPBACKSLASH@
405 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
406 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_holyday.o `test -f 'hdate_holyday.c' || echo '$(srcdir)/'`hdate_holyday.c
407
408 libhdate_la-hdate_holyday.obj: hdate_holyday.c
409 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_holyday.obj -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo" \
410 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_holyday.obj `if test -f 'hdate_holyday.c'; then $(CYGPATH_W) 'hdate_holyday.c'; else $(CYGPATH_W) '$(srcdir)/hdate_holyday.c'; fi`; \
411 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo" "$(DEPDIR)/libhdate_la-hdate_holyday.Po"; \
412 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo"; exit 1; \
413 @am__fastdepCC_TRUE@ fi
414 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_holyday.c' object='libhdate_la-hdate_holyday.obj' libtool=no @AMDEPBACKSLASH@
415 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_holyday.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_holyday.TPo' @AMDEPBACKSLASH@
416 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
417 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_holyday.obj `if test -f 'hdate_holyday.c'; then $(CYGPATH_W) 'hdate_holyday.c'; else $(CYGPATH_W) '$(srcdir)/hdate_holyday.c'; fi`
418
419 libhdate_la-hdate_holyday.lo: hdate_holyday.c
420 @am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_holyday.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo" \
421 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_holyday.lo `test -f 'hdate_holyday.c' || echo '$(srcdir)/'`hdate_holyday.c; \
422 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo" "$(DEPDIR)/libhdate_la-hdate_holyday.Plo"; \
423 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo"; exit 1; \
424 @am__fastdepCC_TRUE@ fi
425 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_holyday.c' object='libhdate_la-hdate_holyday.lo' libtool=yes @AMDEPBACKSLASH@
426 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_holyday.Plo' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_holyday.TPlo' @AMDEPBACKSLASH@
427 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
428 @am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_holyday.lo `test -f 'hdate_holyday.c' || echo '$(srcdir)/'`hdate_holyday.c
429
430 libhdate_la-hdate_parasha.o: hdate_parasha.c
431 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_parasha.o -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo" \
432 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_parasha.o `test -f 'hdate_parasha.c' || echo '$(srcdir)/'`hdate_parasha.c; \
433 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo" "$(DEPDIR)/libhdate_la-hdate_parasha.Po"; \
434 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo"; exit 1; \
435 @am__fastdepCC_TRUE@ fi
436 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_parasha.c' object='libhdate_la-hdate_parasha.o' libtool=no @AMDEPBACKSLASH@
437 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_parasha.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_parasha.TPo' @AMDEPBACKSLASH@
438 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
439 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_parasha.o `test -f 'hdate_parasha.c' || echo '$(srcdir)/'`hdate_parasha.c
440
441 libhdate_la-hdate_parasha.obj: hdate_parasha.c
442 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_parasha.obj -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo" \
443 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_parasha.obj `if test -f 'hdate_parasha.c'; then $(CYGPATH_W) 'hdate_parasha.c'; else $(CYGPATH_W) '$(srcdir)/hdate_parasha.c'; fi`; \
444 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo" "$(DEPDIR)/libhdate_la-hdate_parasha.Po"; \
445 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo"; exit 1; \
446 @am__fastdepCC_TRUE@ fi
447 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_parasha.c' object='libhdate_la-hdate_parasha.obj' libtool=no @AMDEPBACKSLASH@
448 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_parasha.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_parasha.TPo' @AMDEPBACKSLASH@
449 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
450 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_parasha.obj `if test -f 'hdate_parasha.c'; then $(CYGPATH_W) 'hdate_parasha.c'; else $(CYGPATH_W) '$(srcdir)/hdate_parasha.c'; fi`
451
452 libhdate_la-hdate_parasha.lo: hdate_parasha.c
453 @am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_parasha.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo" \
454 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_parasha.lo `test -f 'hdate_parasha.c' || echo '$(srcdir)/'`hdate_parasha.c; \
455 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo" "$(DEPDIR)/libhdate_la-hdate_parasha.Plo"; \
456 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo"; exit 1; \
457 @am__fastdepCC_TRUE@ fi
458 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_parasha.c' object='libhdate_la-hdate_parasha.lo' libtool=yes @AMDEPBACKSLASH@
459 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_parasha.Plo' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_parasha.TPlo' @AMDEPBACKSLASH@
460 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
461 @am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_parasha.lo `test -f 'hdate_parasha.c' || echo '$(srcdir)/'`hdate_parasha.c
462
463 libhdate_la-hdate_sun_time.o: hdate_sun_time.c
464 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_sun_time.o -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo" \
465 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_sun_time.o `test -f 'hdate_sun_time.c' || echo '$(srcdir)/'`hdate_sun_time.c; \
466 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo" "$(DEPDIR)/libhdate_la-hdate_sun_time.Po"; \
467 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo"; exit 1; \
468 @am__fastdepCC_TRUE@ fi
469 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_sun_time.c' object='libhdate_la-hdate_sun_time.o' libtool=no @AMDEPBACKSLASH@
470 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_sun_time.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_sun_time.TPo' @AMDEPBACKSLASH@
471 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
472 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_sun_time.o `test -f 'hdate_sun_time.c' || echo '$(srcdir)/'`hdate_sun_time.c
473
474 libhdate_la-hdate_sun_time.obj: hdate_sun_time.c
475 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_sun_time.obj -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo" \
476 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_sun_time.obj `if test -f 'hdate_sun_time.c'; then $(CYGPATH_W) 'hdate_sun_time.c'; else $(CYGPATH_W) '$(srcdir)/hdate_sun_time.c'; fi`; \
477 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo" "$(DEPDIR)/libhdate_la-hdate_sun_time.Po"; \
478 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo"; exit 1; \
479 @am__fastdepCC_TRUE@ fi
480 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_sun_time.c' object='libhdate_la-hdate_sun_time.obj' libtool=no @AMDEPBACKSLASH@
481 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_sun_time.Po' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_sun_time.TPo' @AMDEPBACKSLASH@
482 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
483 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_sun_time.obj `if test -f 'hdate_sun_time.c'; then $(CYGPATH_W) 'hdate_sun_time.c'; else $(CYGPATH_W) '$(srcdir)/hdate_sun_time.c'; fi`
484
485 libhdate_la-hdate_sun_time.lo: hdate_sun_time.c
486 @am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_sun_time.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo" \
487 @am__fastdepCC_TRUE@ -c -o libhdate_la-hdate_sun_time.lo `test -f 'hdate_sun_time.c' || echo '$(srcdir)/'`hdate_sun_time.c; \
488 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo" "$(DEPDIR)/libhdate_la-hdate_sun_time.Plo"; \
489 @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo"; exit 1; \
490 @am__fastdepCC_TRUE@ fi
491 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_sun_time.c' object='libhdate_la-hdate_sun_time.lo' libtool=yes @AMDEPBACKSLASH@
492 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/libhdate_la-hdate_sun_time.Plo' tmpdepfile='$(DEPDIR)/libhdate_la-hdate_sun_time.TPlo' @AMDEPBACKSLASH@
493 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
494 @am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_sun_time.lo `test -f 'hdate_sun_time.c' || echo '$(srcdir)/'`hdate_sun_time.c
495
496 mostlyclean-libtool:
497 -rm -f *.lo
498
499 clean-libtool:
500 -rm -rf .libs _libs
501
502 distclean-libtool:
503 -rm -f libtool
504 uninstall-info-am:
505
506 man3dir = $(mandir)/man3
507 install-man3: $(man3_MANS) $(man_MANS)
508 @$(NORMAL_INSTALL)
509 $(mkinstalldirs) $(DESTDIR)$(man3dir)
510 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
511 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
512 for i in $$l2; do \
513 case "$$i" in \
514 *.3*) list="$$list $$i" ;; \
515 esac; \
516 done; \
517 for i in $$list; do \
518 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
519 else file=$$i; fi; \
520 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
521 case "$$ext" in \
522 3*) ;; \
523 *) ext='3' ;; \
524 esac; \
525 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
526 inst=`echo $$inst | sed -e 's/^.*\///'`; \
527 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
528 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man3dir)/$$inst"; \
529 $(INSTALL_DATA) $$file $(DESTDIR)$(man3dir)/$$inst; \
530 done
531 uninstall-man3:
532 @$(NORMAL_UNINSTALL)
533 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
534 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
535 for i in $$l2; do \
536 case "$$i" in \
537 *.3*) list="$$list $$i" ;; \
538 esac; \
539 done; \
540 for i in $$list; do \
541 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
542 case "$$ext" in \
543 3*) ;; \
544 *) ext='3' ;; \
545 esac; \
546 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
547 inst=`echo $$inst | sed -e 's/^.*\///'`; \
548 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
549 echo " rm -f $(DESTDIR)$(man3dir)/$$inst"; \
550 rm -f $(DESTDIR)$(man3dir)/$$inst; \
551 done
552 includeHEADERS_INSTALL = $(INSTALL_HEADER)
553 install-includeHEADERS: $(include_HEADERS)
554 @$(NORMAL_INSTALL)
555 $(mkinstalldirs) $(DESTDIR)$(includedir)
556 @list='$(include_HEADERS)'; for p in $$list; do \
557 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
558 f="`echo $$p | sed -e 's|^.*/||'`"; \
559 echo " $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
560 $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f; \
561 done
562
563 uninstall-includeHEADERS:
564 @$(NORMAL_UNINSTALL)
565 @list='$(include_HEADERS)'; for p in $$list; do \
566 f="`echo $$p | sed -e 's|^.*/||'`"; \
567 echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
568 rm -f $(DESTDIR)$(includedir)/$$f; \
569 done
570
571 ETAGS = etags
572 ETAGSFLAGS =
573
574 CTAGS = ctags
575 CTAGSFLAGS =
576
577 tags: TAGS
578
579 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
580 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
581 unique=`for i in $$list; do \
582 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
583 done | \
584 $(AWK) ' { files[$$0] = 1; } \
585 END { for (i in files) print i; }'`; \
586 mkid -fID $$unique
587
588 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
589 $(TAGS_FILES) $(LISP)
590 tags=; \
591 here=`pwd`; \
592 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
593 unique=`for i in $$list; do \
594 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
595 done | \
596 $(AWK) ' { files[$$0] = 1; } \
597 END { for (i in files) print i; }'`; \
598 test -z "$(ETAGS_ARGS)$$tags$$unique" \
599 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
600 $$tags $$unique
601
602 ctags: CTAGS
603 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
604 $(TAGS_FILES) $(LISP)
605 tags=; \
606 here=`pwd`; \
607 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
608 unique=`for i in $$list; do \
609 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
610 done | \
611 $(AWK) ' { files[$$0] = 1; } \
612 END { for (i in files) print i; }'`; \
613 test -z "$(CTAGS_ARGS)$$tags$$unique" \
614 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
615 $$tags $$unique
616
617 GTAGS:
618 here=`$(am__cd) $(top_builddir) && pwd` \
619 && cd $(top_srcdir) \
620 && gtags -i $(GTAGS_ARGS) $$here
621
622 distclean-tags:
623 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
624 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
625
626 top_distdir = ..
627 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
628
629 distdir: $(DISTFILES)
630 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
631 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
632 list='$(DISTFILES)'; for file in $$list; do \
633 case $$file in \
634 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
635 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
636 esac; \
637 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
638 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
639 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
640 dir="/$$dir"; \
641 $(mkinstalldirs) "$(distdir)$$dir"; \
642 else \
643 dir=''; \
644 fi; \
645 if test -d $$d/$$file; then \
646 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
647 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
648 fi; \
649 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
650 else \
651 test -f $(distdir)/$$file \
652 || cp -p $$d/$$file $(distdir)/$$file \
653 || exit 1; \
654 fi; \
655 done
656 check-am: all-am
657 check: check-am
658 all-am: Makefile $(LTLIBRARIES) $(MANS) $(HEADERS)
659
660 installdirs:
661 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(man3dir) $(DESTDIR)$(includedir)
662 install: install-am
663 install-exec: install-exec-am
664 install-data: install-data-am
665 uninstall: uninstall-am
666
667 install-am: all-am
668 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
669
670 installcheck: installcheck-am
671 install-strip:
672 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
673 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
674 `test -z '$(STRIP)' || \
675 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
676 mostlyclean-generic:
677
678 clean-generic:
679
680 distclean-generic:
681 -rm -f $(CONFIG_CLEAN_FILES)
682
683 maintainer-clean-generic:
684 @echo "This command is intended for maintainers to use"
685 @echo "it deletes files that may require special tools to rebuild."
686 clean: clean-am
687
688 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
689 mostlyclean-am
690
691 distclean: distclean-am
692 -rm -rf ./$(DEPDIR)
693 -rm -f Makefile
694 distclean-am: clean-am distclean-compile distclean-generic \
695 distclean-libtool distclean-tags
696
697 dvi: dvi-am
698
699 dvi-am:
700
701 info: info-am
702
703 info-am:
704
705 install-data-am: install-includeHEADERS install-man
706
707 install-exec-am: install-libLTLIBRARIES
708
709 install-info: install-info-am
710
711 install-man: install-man3
712
713 installcheck-am:
714
715 maintainer-clean: maintainer-clean-am
716 -rm -rf ./$(DEPDIR)
717 -rm -f Makefile
718 maintainer-clean-am: distclean-am maintainer-clean-generic
719
720 mostlyclean: mostlyclean-am
721
722 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
723 mostlyclean-libtool
724
725 pdf: pdf-am
726
727 pdf-am:
728
729 ps: ps-am
730
731 ps-am:
732
733 uninstall-am: uninstall-includeHEADERS uninstall-info-am \
734 uninstall-libLTLIBRARIES uninstall-man
735
736 uninstall-man: uninstall-man3
737
738 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
739 clean-libLTLIBRARIES clean-libtool ctags distclean \
740 distclean-compile distclean-generic distclean-libtool \
741 distclean-tags distdir dvi dvi-am info info-am install \
742 install-am install-data install-data-am install-exec \
743 install-exec-am install-includeHEADERS install-info \
744 install-info-am install-libLTLIBRARIES install-man install-man3 \
745 install-strip installcheck installcheck-am installdirs \
746 maintainer-clean maintainer-clean-generic mostlyclean \
747 mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \
748 pdf-am ps ps-am tags uninstall uninstall-am \
749 uninstall-includeHEADERS uninstall-info-am \
750 uninstall-libLTLIBRARIES uninstall-man uninstall-man3
751
752 # Tell versions [3.59,3.63) of GNU make to not export all variables.
753 # Otherwise a system limit (for SysV at least) may be exceeded.
754 .NOEXPORT:
0 /* libhdate
1 * Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 */
17
18 /*
19 * See Amos Shapir hdate_README file attached for
20 * Copyright notice for functions based on Amos's code
21 */
22
23 #ifndef __HDATE_H__
24 #define __HDATE_H__
25
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30
31 /** Base structore for hebrew dates
32
33 */
34 typedef struct
35 {
36 /** The number of day in the hebrew month (1..31). */
37 int hd_day;
38 /** The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2). */
39 int hd_mon;
40 /** The number of the hebrew year. */
41 int hd_year;
42 /** The number of the day in the month. (1..31) */
43 int gd_day;
44 /** The number of the month 1..12 (1 - jan). */
45 int gd_mon;
46 /** The number of the year. */
47 int gd_year;
48 /** The day of the week 1..7 (1 - sunday). */
49 int hd_dw;
50 /** The length of the year in days. */
51 int hd_size_of_year;
52 /** The week day of Hebrew new year. */
53 int hd_new_year_dw;
54 /** The number type of year. */
55 int hd_year_type;
56 /** The Julian day number */
57 int hd_jd;
58 /** The number of days passed since 1 tishrey */
59 int hd_days;
60 /** The number of weeks passed since 1 tishrey */
61 int hd_weeks;
62 } hdate_struct;
63
64 /********************************************************************************/
65 /********************************************************************************/
66
67 /**
68 @brief compute date structure from the Gregorian date
69
70 @param h pointer this hdate struct.
71 @param d Day of month 1..31
72 @param m Month 1..12 , if m or d is 0 return current date.
73 @param y Year in 4 digits e.g. 2001
74 @return pointer to this hdate struct
75 */
76 hdate_struct *
77 hdate_set_gdate (hdate_struct *h, int d, int m, int y);
78
79 /**
80 @brief compute date structure from the Hebrew date
81
82 @param h pointer this hdate struct.
83 @param d Day of month 1..31
84 @param m Month 1..14 , if m or d is 0 return current date.
85 @param y Year in 4 digits e.g. 5731
86 @return pointer to this hdate struct
87 */
88 hdate_struct *
89 hdate_set_hdate (hdate_struct *h, int d, int m, int y);
90
91 /**
92 @brief compute date structure from the Julian day
93
94 @param h pointer this hdate struct.
95 @param jd the julian day number.
96 @return pointer to this hdate struct
97 */
98 hdate_struct *
99 hdate_set_jd (hdate_struct *h, int jd);
100
101 /*************************************************************/
102 /*************************************************************/
103
104 /**
105 @brief get formated hebrew date.
106
107 return the short ( e.g. "1 Tishrey" ) or
108 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
109
110 @param h pointer this hdate struct.
111 @param diaspora if true give diaspora holydays.
112 @param s short flag.
113 @return a static string of foramted date
114 */
115 char *
116 hdate_get_format_date (hdate_struct * h, int diaspora, int s);
117
118 /**
119 @brief get the number of hebrew parasha.
120
121 @param h pointer this hdate struct.
122 @param diaspora if true give diaspora readings
123 @return the number of parasha 1. Bereshit etc..
124 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
125 */
126 int
127 hdate_get_parasha (hdate_struct * h, int diaspora);
128
129 /**
130 @brief get the number of hebrew holyday.
131
132 @param h pointer this hdate struct.
133 @param diaspora if true give diaspora holydays
134 @return the number of holyday.
135 */
136 int
137 hdate_get_holyday (hdate_struct * h, int diaspora);
138
139 /*************************************************************/
140 /*************************************************************/
141
142 /**
143 @brief convert an integer to hebrew string.
144
145 @param n The int to convert
146 @return a static string of the hebrew number UTF-8 (logical)
147 @attention ( 0 < n < 10000)
148 */
149 char *
150 hdate_get_int_string (int n);
151
152 /**
153 @brief get name of week day.
154
155 @param day The number of the day 1..7 (1 - sun).
156 @param s short flag
157 true - returns a short string: sun, false returns: sunday.
158 @return a static string of the day of the week
159 */
160 char *
161 hdate_get_day_string (int day, int s);
162
163 /**
164 @brief name of month.
165
166 @param month the number of the month 1..12 (1 - jan).
167 @param s short flag.
168 @return a static string of month name
169 */
170 char *
171 hdate_get_month_string (int month, int s);
172
173 /**
174 @brief name of hebrew month.
175
176 @param month the number of the month 1..14
177 (1 - tishre, 13 - adar 1, 14 - adar 2).
178 @param s short flag.
179 @return a static string of month name
180 */
181 char *
182 hdate_get_hebrew_month_string (int month, int s);
183
184 /**
185 @brief name of hebrew holyday.
186
187 @param holyday the holyday number.
188 @param s short flag.
189 @return a static string of holyday name
190 */
191 char *
192 hdate_get_holyday_string (int holyday, int s);
193
194 /**
195 @brief name of parasha
196
197 @param parasha the number of parasha 1-Bereshit
198 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
199 @param s short flag.
200 @return a static string of parasha name
201 */
202 char *
203 hdate_get_parasha_string (int parasha, int s);
204
205 /*************************************************************/
206 /*************************************************************/
207
208 /**
209 @brief get the hebrew holyday type.
210
211 @param holyday the holyday number.
212 @return the number of holyday type.
213 */
214 int
215 hdate_get_holyday_type (int holyday);
216
217 /**
218 @brief size of hebrew year in days.
219
220 @param hebrew_year the hebrew year.
221 @return size of Hebrew year
222 */
223 int
224 hdate_get_size_of_hebrew_year (int hebrew_year);
225
226 /*************************************************************/
227 /*************************************************************/
228
229 /**
230 @brief Days since Tishrey 3744
231
232 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
233
234 @param hebrew_year The Hebrew year
235 @return Number of days since 3,1,3744
236 */
237 int
238 hdate_days_from_3744 (int hebrew_year);
239
240 /**
241 @brief Return Hebrew year type based on size and first week day of year.
242
243 @param size_of_year Length of year in days
244 @param new_year_dw First week day of year
245 @return the number for year type (1..14)
246 */
247 int
248 hdate_get_year_type (int size_of_year, int new_year_dw);
249
250 /**
251 @brief Compute Julian day from Gregorian date
252
253 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
254
255 @param day Day of month 1..31
256 @param month Month 1..12
257 @param year Year in 4 digits e.g. 2001
258 @return the julian day number
259 */
260 int
261 hdate_gdate_to_jd (int day, int month, int year);
262
263 /**
264 @brief Compute Julian day from Hebrew day, month and year
265
266 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
267
268 @param day Day of month 1..31
269 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
270 @param year Hebrew year in 4 digits e.g. 5753
271 @param jd_tishrey1 return the julian number of 1 Tishrey this year
272 @param jd_tishrey1 return the julian number of 1 Tishrey next year
273 @return the julian day number
274 */
275 int
276 hdate_hdate_to_jd (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year);
277
278 /**
279 @brief Converting from the Julian day to the Gregorian date
280
281 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
282
283 @param jd Julian day
284 @param d return Day of month 1..31
285 @param m return Month 1..12
286 @param y return Year in 4 digits e.g. 2001
287 */
288 void
289 hdate_jd_to_gdate (int jd, int *day, int *month, int *year);
290
291 /**
292 @brief Converting from the Julian day to the Hebrew day
293
294 @author Yaacov Zamir 2005
295
296 @param jd Julian day
297 @param day return Day of month 1..31
298 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
299 @param year return Year in 4 digits e.g. 2001
300 @param jd_tishrey1 return the julian number of 1 Tishrey this year
301 @param jd_tishrey1 return the julian number of 1 Tishrey next year
302 */
303 void
304 hdate_jd_to_hdate (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year);
305
306 /*************************************************************/
307 /*************************************************************/
308
309 /**
310 @brief days from 1 january
311
312 @param day this day of month
313 @param month this month
314 @param year this year
315 @return the days from 1 jan
316 */
317 int
318 hdate_get_day_of_year (int day, int month, int year);
319
320 /**
321 @brief utc sunrise/set time for a gregorian date
322
323 @param day this day of month
324 @param month this month
325 @param year this year
326 @param longitude longitude to use in calculations
327 degrees, negative values are east
328 @param latitude latitude to use in calculations
329 degrees, negative values are south
330 @param sunrise return the utc sunrise in minutes after midnight (00:00)
331 @param sunset return the utc sunset in minutes after midnight (00:00)
332 */
333 void
334 hdate_get_utc_sun_time (int day, int month, int year, double latitude, double longitude, int *sunrise, int *sunset);
335
336 /*************************************************************/
337 /*************************************************************/
338
339 /**
340 @brief get the Gregorian day of the month
341
342 @param h pointer this hdate struct.
343 @return the Gregorian day of the month, 1..31.
344 */
345 int
346 hdate_get_gday (hdate_struct *h);
347
348 /**
349 @brief get the Gregorian month
350
351 @param h pointer this hdate struct.
352 @return the Gregorian month, jan = 1.
353 */
354 int
355 hdate_get_gmonth (hdate_struct *h);
356
357 /**
358 @brief get the Gregorian year
359
360 @param h pointer this hdate struct.
361 @return the Gregorian year.
362 */
363 int
364 hdate_get_gyear (hdate_struct *h);
365
366 /**
367 @brief get the Hebrew day of the month
368
369 @param h pointer this hdate struct.
370 @return the Hebrew day of the month, 1..30.
371 */
372 int
373 hdate_get_hday (hdate_struct *h);
374
375 /**
376 @brief get the Hebrew month
377
378 @param h pointer this hdate struct.
379 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
380 */
381 int
382 hdate_get_hmonth (hdate_struct *h);
383
384 /**
385 @brief get the Hebrew year
386
387 @param h pointer this hdate struct.
388 @return the Hebrew year.
389 */
390 int
391 hdate_get_hyear (hdate_struct *h);
392
393 /**
394 @brief get the day of the week
395
396 @param h pointer this hdate struct.
397 @return the the day of the week.
398 */
399 int
400 hdate_get_day_of_the_week (hdate_struct *h);
401
402 /**
403 @brief get the size of the hebrew year
404
405 @param h pointer this hdate struct.
406 @return the the size of the hebrew year.
407 */
408 int
409 hdate_get_size_of_year (hdate_struct *h);
410
411 /**
412 @brief get the new year day of the week
413
414 @param h pointer this hdate struct.
415 @return the the new year day of the week.
416 */
417 int
418 hdate_get_new_year_day_of_the_week (hdate_struct *h);
419
420 /**
421 @brief get the Julian day number
422
423 @param h pointer this hdate struct.
424 @return the Julian day number.
425 */
426 int
427 hdate_get_julian (hdate_struct *h);
428
429 /**
430 @brief get the number of days passed since 1 tishrey
431
432 @param h pointer this hdate struct.
433 @return the number of days passed since 1 tishrey.
434 */
435 int
436 hdate_get_days (hdate_struct *h);
437
438 /**
439 @brief get the number of weeks passed since 1 tishrey
440
441 @param h pointer this hdate struct.
442 @return the number of weeks passed since 1 tishrey.
443 */
444 int
445 hdate_get_weeks (hdate_struct *h);
446
447 /*************************************************************/
448 /*************************************************************/
449
450 /**
451 @brief creat a new hdate struct object, must be deleted using delete_hdate.
452
453 @return a new hdate object
454 */
455 hdate_struct *
456 new_hdate ();
457
458 /**
459 @brief delete an hdate struct object.
460
461 @param h pointer this hdate struct.
462 */
463 hdate_struct *
464 delete_hdate (hdate_struct *h);
465
466 /*************************************************************/
467 /*************************************************************/
468
469 /**
470 @brief Return a static string, with the package name and version
471
472 @return a static string, with the package name and version
473 */
474 char *
475 hdate_get_version_string ();
476
477 /**
478 @brief name of translator
479
480 @return a static string with name of translator, or NULL if none.
481 */
482 char *
483 hdate_get_translator_string ();
484
485 #ifdef __cplusplus
486 }
487 #endif
488
489 #endif
0 .\" src/hdate.h File Reference.TH "src/hdate.h" 3 "2 Mar 2005" "Version 1.0" "libhdate" \" -*- nroff -*-
1 .\" .ad l
2 .\" .nh
3 .TH "hdate.h" "3" "2 Mar 2005" "Yaacov Zamir" "libhdate"
4 .SH "NAME"
5 hdate.h \- header file for libhdate, a library that help use hebrew dates.
6 .PP
7 LibHdate is a small C,C++ library for Hebrew dates,
8 holidays, and reading sequence (parasha). It is using
9 the source code from Amos Shapir's "hdate" package fixed and
10 patched by Nadav Har'El. The Torah reading sequence
11 is from tables by Zvi Har'El.
12 .SH "SYNOPSIS"
13 .br
14 .PP
15 .SS "Functions"
16
17 .in +1c
18 .ti \-1c
19 .RI "\fBhdate_struct\fP * \fBhdate_set_gdate\fP (\fBhdate_struct\fP *h, int d, int m, int y)"
20 .br
21 .RI "\fIcompute date structure from the Gregorian date \fP"
22 .ti \-1c
23 .RI "\fBhdate_struct\fP * \fBhdate_set_hdate\fP (\fBhdate_struct\fP *h, int d, int m, int y)"
24 .br
25 .RI "\fIcompute date structure from the Hebrew date \fP"
26 .ti \-1c
27 .RI "\fBhdate_struct\fP * \fBhdate_set_jd\fP (\fBhdate_struct\fP *h, int jd)"
28 .br
29 .RI "\fIcompute date structure from the Julian day \fP"
30 .ti \-1c
31 .RI "char * \fBhdate_get_format_date\fP (\fBhdate_struct\fP *h, int diaspora, int s)"
32 .br
33 .RI "\fIget formated hebrew date. \fP"
34 .ti \-1c
35 .RI "int \fBhdate_get_parasha\fP (\fBhdate_struct\fP *h, int diaspora)"
36 .br
37 .RI "\fIget the number of hebrew parasha. \fP"
38 .ti \-1c
39 .RI "int \fBhdate_get_holyday\fP (\fBhdate_struct\fP *h, int diaspora)"
40 .br
41 .RI "\fIget the number of hebrew holyday. \fP"
42 .ti \-1c
43 .RI "char * \fBhdate_get_int_string\fP (int n)"
44 .br
45 .RI "\fIconvert an integer to hebrew string. \fP"
46 .ti \-1c
47 .RI "char * \fBhdate_get_day_string\fP (int day, int s)"
48 .br
49 .RI "\fIget name of week day. \fP"
50 .ti \-1c
51 .RI "char * \fBhdate_get_month_string\fP (int month, int s)"
52 .br
53 .RI "\fIname of month. \fP"
54 .ti \-1c
55 .RI "char * \fBhdate_get_hebrew_month_string\fP (int month, int s)"
56 .br
57 .RI "\fIname of hebrew month. \fP"
58 .ti \-1c
59 .RI "char * \fBhdate_get_holyday_string\fP (int holyday, int s)"
60 .br
61 .RI "\fIname of hebrew holyday. \fP"
62 .ti \-1c
63 .RI "char * \fBhdate_get_parasha_string\fP (int parasha, int s)"
64 .br
65 .RI "\fIname of parasha \fP"
66 .ti \-1c
67 .RI "int \fBhdate_get_holyday_type\fP (int holyday)"
68 .br
69 .RI "\fIget the hebrew holyday type. \fP"
70 .ti \-1c
71 .RI "int \fBhdate_get_size_of_hebrew_year\fP (int hebrew_year)"
72 .br
73 .RI "\fIsize of hebrew year in days. \fP"
74 .ti \-1c
75 .RI "int \fBhdate_days_from_3744\fP (int hebrew_year)"
76 .br
77 .RI "\fIDays since Tishrey 3744. \fP"
78 .ti \-1c
79 .RI "int \fBhdate_get_year_type\fP (int size_of_year, int new_year_dw)"
80 .br
81 .RI "\fIReturn Hebrew year type based on size and first week day of year. \fP"
82 .ti \-1c
83 .RI "int \fBhdate_gdate_to_jd\fP (int day, int month, int year)"
84 .br
85 .RI "\fICompute Julian day from Gregorian date. \fP"
86 .ti \-1c
87 .RI "int \fBhdate_hdate_to_jd\fP (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year)"
88 .br
89 .RI "\fICompute Julian day from Hebrew day, month and year. \fP"
90 .ti \-1c
91 .RI "void \fBhdate_jd_to_gdate\fP (int jd, int *day, int *month, int *year)"
92 .br
93 .RI "\fIConverting from the Julian day to the Gregorian date. \fP"
94 .ti \-1c
95 .RI "void \fBhdate_jd_to_hdate\fP (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year)"
96 .br
97 .RI "\fIConverting from the Julian day to the Hebrew day. \fP"
98 .ti \-1c
99 .RI "int \fBhdate_get_day_of_year\fP (int day, int month, int year)"
100 .br
101 .RI "\fIdays from 1 january \fP"
102 .ti \-1c
103 .RI "void \fBhdate_get_utc_sun_time\fP (int day, int month, int year, double latitude, double longitude, int *sunrise, int *sunset)"
104 .br
105 .RI "\fIutc sunrise/set time for a gregorian date \fP"
106 .in \-1c
107 .SH "Function Documentation"
108 .PP
109 .SS "\fBhdate_struct\fP* hdate_set_gdate (\fBhdate_struct\fP * h, int d, int m, int y)"
110 .PP
111 compute date structure from the Gregorian date
112 .PP
113 \fBParameters:\fP
114 .RS 4
115 \fIh\fP pointer this hdate struct.
116 .br
117 \fId\fP Day of month 1..31
118 .br
119 \fIm\fP Month 1..12 , if m or d is 0 return current date.
120 .br
121 \fIy\fP Year in 4 digits e.g. 2001
122 .RE
123 .PP
124 \fBReturns:\fP
125 .RS 4
126 pointer to this hdate struct
127 .RE
128 .PP
129
130 .SS "\fBhdate_struct\fP* hdate_set_hdate (\fBhdate_struct\fP * h, int d, int m, int y)"
131 .PP
132 compute date structure from the Hebrew date
133 .PP
134 \fBParameters:\fP
135 .RS 4
136 \fIh\fP pointer this hdate struct.
137 .br
138 \fId\fP Day of month 1..31
139 .br
140 \fIm\fP Month 1..14 , if m or d is 0 return current date.
141 .br
142 \fIy\fP Year in 4 digits e.g. 5731
143 .RE
144 .PP
145 \fBReturns:\fP
146 .RS 4
147 pointer to this hdate struct
148 .RE
149 .PP
150
151 .SS "\fBhdate_struct\fP* hdate_set_jd (\fBhdate_struct\fP * h, int jd)"
152 .PP
153 compute date structure from the Julian day
154 .PP
155 \fBParameters:\fP
156 .RS 4
157 \fIh\fP pointer this hdate struct.
158 .br
159 \fIjd\fP the julian day number.
160 .RE
161 .PP
162 \fBReturns:\fP
163 .RS 4
164 pointer to this hdate struct
165 .RE
166 .PP
167
168 .SS "char* hdate_get_format_date (\fBhdate_struct\fP * h, int diaspora, int s)"
169 .PP
170 get formated hebrew date.
171 .PP
172 return the short ( e.g. '1 Tishrey' ) or long (e.g. 'Tuesday 18 Tishrey 5763 Hol hamoed Sukot' ) formated date.
173 .PP
174 \fBParameters:\fP
175 .RS 4
176 \fIh\fP pointer this hdate struct.
177 .br
178 \fIdiaspora\fP if true give diaspora holydays.
179 .br
180 \fIs\fP short flag.
181 .RE
182 .PP
183 \fBReturns:\fP
184 .RS 4
185 a static string of foramted date
186 .RE
187 .PP
188
189 .SS "int hdate_get_parasha (\fBhdate_struct\fP * h, int diaspora)"
190 .PP
191 get the number of hebrew parasha.
192 .PP
193 \fBParameters:\fP
194 .RS 4
195 \fIh\fP pointer this hdate struct.
196 .br
197 \fIdiaspora\fP if true give diaspora readings
198 .RE
199 .PP
200 \fBReturns:\fP
201 .RS 4
202 the number of parasha 1. Bereshit etc.. (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
203 .RE
204 .PP
205
206 .SS "int hdate_get_holyday (\fBhdate_struct\fP * h, int diaspora)"
207 .PP
208 get the number of hebrew holyday.
209 .PP
210 \fBParameters:\fP
211 .RS 4
212 \fIh\fP pointer this hdate struct.
213 .br
214 \fIdiaspora\fP if true give diaspora holydays
215 .RE
216 .PP
217 \fBReturns:\fP
218 .RS 4
219 the number of holyday.
220 .RE
221 .PP
222
223 .SS "char* hdate_get_int_string (int n)"
224 .PP
225 convert an integer to hebrew string.
226 .PP
227 \fBParameters:\fP
228 .RS 4
229 \fIn\fP The int to convert
230 .RE
231 .PP
232 \fBReturns:\fP
233 .RS 4
234 a static string of the hebrew number UTF\-8 (logical)
235 .RE
236 .PP
237 \fBAttention:\fP
238 .RS 4
239 ( 0 < n < 10000)
240 .RE
241 .PP
242
243 .SS "char* hdate_get_day_string (int day, int s)"
244 .PP
245 get name of week day.
246 .PP
247 \fBParameters:\fP
248 .RS 4
249 \fIday\fP The number of the day 1..7 (1 \- sun).
250 .br
251 \fIs\fP short flag true \- returns a short string: sun, false returns: sunday.
252 .RE
253 .PP
254 \fBReturns:\fP
255 .RS 4
256 a static string of the day of the week
257 .RE
258 .PP
259
260 .SS "char* hdate_get_month_string (int month, int s)"
261 .PP
262 name of month.
263 .PP
264 \fBParameters:\fP
265 .RS 4
266 \fImonth\fP the number of the month 1..12 (1 \- jan).
267 .br
268 \fIs\fP short flag.
269 .RE
270 .PP
271 \fBReturns:\fP
272 .RS 4
273 a static string of month name
274 .RE
275 .PP
276
277 .SS "char* hdate_get_hebrew_month_string (int month, int s)"
278 .PP
279 name of hebrew month.
280 .PP
281 \fBParameters:\fP
282 .RS 4
283 \fImonth\fP the number of the month 1..14 (1 \- tishre, 13 \- adar 1, 14 \- adar 2).
284 .br
285 \fIs\fP short flag.
286 .RE
287 .PP
288 \fBReturns:\fP
289 .RS 4
290 a static string of month name
291 .RE
292 .PP
293
294 .SS "char* hdate_get_holyday_string (int holyday, int s)"
295 .PP
296 name of hebrew holyday.
297 .PP
298 \fBParameters:\fP
299 .RS 4
300 \fIholyday\fP the holyday number.
301 .br
302 \fIs\fP short flag.
303 .RE
304 .PP
305 \fBReturns:\fP
306 .RS 4
307 a static string of holyday name
308 .RE
309 .PP
310
311 .SS "char* hdate_get_parasha_string (int parasha, int s)"
312 .PP
313 name of parasha
314 .PP
315 \fBParameters:\fP
316 .RS 4
317 \fIparasha\fP the number of parasha 1\-Bereshit (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
318 .br
319 \fIs\fP short flag.
320 .RE
321 .PP
322 \fBReturns:\fP
323 .RS 4
324 a static string of parasha name
325 .RE
326 .PP
327
328 .SS "int hdate_get_holyday_type (int holyday)"
329 .PP
330 get the hebrew holyday type.
331 .PP
332 \fBParameters:\fP
333 .RS 4
334 \fIholyday\fP the holyday number.
335 .RE
336 .PP
337 \fBReturns:\fP
338 .RS 4
339 the number of holyday type.
340 .RE
341 .PP
342
343 .SS "int hdate_get_size_of_hebrew_year (int hebrew_year)"
344 .PP
345 size of hebrew year in days.
346 .PP
347 \fBParameters:\fP
348 .RS 4
349 \fIhebrew_year\fP the hebrew year.
350 .RE
351 .PP
352 \fBReturns:\fP
353 .RS 4
354 size of Hebrew year
355 .RE
356 .PP
357
358 .SS "int hdate_days_from_3744 (int hebrew_year)"
359 .PP
360 Days since Tishrey 3744.
361 .PP
362 \fBAuthor:\fP
363 .RS 4
364 Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003\-2005
365 .RE
366 .PP
367 \fBParameters:\fP
368 .RS 4
369 \fIhebrew_year\fP The Hebrew year
370 .RE
371 .PP
372 \fBReturns:\fP
373 .RS 4
374 Number of days since 3,1,3744
375 .RE
376 .PP
377
378 .SS "int hdate_get_year_type (int size_of_year, int new_year_dw)"
379 .PP
380 Return Hebrew year type based on size and first week day of year.
381 .PP
382 \fBParameters:\fP
383 .RS 4
384 \fIsize_of_year\fP Length of year in days
385 .br
386 \fInew_year_dw\fP First week day of year
387 .RE
388 .PP
389 \fBReturns:\fP
390 .RS 4
391 the number for year type (1..14)
392 .RE
393 .PP
394
395 .SS "int hdate_gdate_to_jd (int day, int month, int year)"
396 .PP
397 Compute Julian day from Gregorian date.
398 .PP
399 \fBAuthor:\fP
400 .RS 4
401 Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
402 .RE
403 .PP
404 \fBParameters:\fP
405 .RS 4
406 \fIday\fP Day of month 1..31
407 .br
408 \fImonth\fP Month 1..12
409 .br
410 \fIyear\fP Year in 4 digits e.g. 2001
411 .RE
412 .PP
413 \fBReturns:\fP
414 .RS 4
415 the julian day number
416 .RE
417 .PP
418
419 .SS "int hdate_hdate_to_jd (int day, int month, int year, int * jd_tishrey1, int * jd_tishrey1_next_year)"
420 .PP
421 Compute Julian day from Hebrew day, month and year.
422 .PP
423 \fBAuthor:\fP
424 .RS 4
425 Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003\-2005
426 .RE
427 .PP
428 \fBParameters:\fP
429 .RS 4
430 \fIday\fP Day of month 1..31
431 .br
432 \fImonth\fP Month 1..14 (13 \- Adar 1, 14 \- Adar 2)
433 .br
434 \fIyear\fP Hebrew year in 4 digits e.g. 5753
435 .br
436 \fIjd_tishrey1\fP return the julian number of 1 Tishrey this year
437 .br
438 \fIjd_tishrey1\fP return the julian number of 1 Tishrey next year
439 .RE
440 .PP
441 \fBReturns:\fP
442 .RS 4
443 the julian day number
444 .RE
445 .PP
446
447 .SS "void hdate_jd_to_gdate (int jd, int * day, int * month, int * year)"
448 .PP
449 Converting from the Julian day to the Gregorian date.
450 .PP
451 \fBAuthor:\fP
452 .RS 4
453 Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
454 .RE
455 .PP
456 \fBParameters:\fP
457 .RS 4
458 \fIjd\fP Julian day
459 .br
460 \fId\fP return Day of month 1..31
461 .br
462 \fIm\fP return Month 1..12
463 .br
464 \fIy\fP return Year in 4 digits e.g. 2001
465 .RE
466 .PP
467
468 .SS "void hdate_jd_to_hdate (int jd, int * day, int * month, int * year, int * jd_tishrey1, int * jd_tishrey1_next_year)"
469 .PP
470 Converting from the Julian day to the Hebrew day.
471 .PP
472 \fBAuthor:\fP
473 .RS 4
474 Yaacov Zamir 2005
475 .RE
476 .PP
477 \fBParameters:\fP
478 .RS 4
479 \fIjd\fP Julian day
480 .br
481 \fIday\fP return Day of month 1..31
482 .br
483 \fImonth\fP return Month 1..14 (13 \- Adar 1, 14 \- Adar 2)
484 .br
485 \fIyear\fP return Year in 4 digits e.g. 2001
486 .br
487 \fIjd_tishrey1\fP return the julian number of 1 Tishrey this year
488 .br
489 \fIjd_tishrey1\fP return the julian number of 1 Tishrey next year
490 .RE
491 .PP
492
493 .SS "int hdate_get_day_of_year (int day, int month, int year)"
494 .PP
495 days from 1 january
496 .PP
497 \fBParameters:\fP
498 .RS 4
499 \fIday\fP this day of month
500 .br
501 \fImonth\fP this month
502 .br
503 \fIyear\fP this year
504 .RE
505 .PP
506 \fBReturns:\fP
507 .RS 4
508 the days from 1 jan
509 .RE
510 .PP
511
512 .SS "void hdate_get_utc_sun_time (int day, int month, int year, double latitude, double longitude, int * sunrise, int * sunset)"
513 .PP
514 utc sunrise/set time for a gregorian date
515 .PP
516 \fBParameters:\fP
517 .RS 4
518 \fIday\fP this day of month
519 .br
520 \fImonth\fP this month
521 .br
522 \fIyear\fP this year
523 .br
524 \fIlongitude\fP longitude to use in calculations
525 .br
526 \fIlatitude\fP latitude to use in calculations
527 .br
528 \fIsunrise\fP return the utc sunrise in minutes
529 .br
530 \fIsunset\fP return the utc sunset in minutes
531 .RE
532 .PP
533
534 .SH "SEE ALSO"
535 hdate_struct(3), hcal(1), hdate(1)
536 .SH "Author"
537 .PP
538 2005 Yaacov Zmair
539 Generated automatically by Doxygen for libhdate from the source code.
0 /* libhdate
1 * Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 */
17
18 #include "hdate.h"
19 #include "support.h"
20
21 /**
22 @brief Return number of hebrew holyday.
23
24 @param h The hdate_struct of the date to use.
25 @param diaspora if True give diaspora holydays
26 @return the number of holyday.
27 */
28 int
29 hdate_get_holyday (hdate_struct * h, int diaspora)
30 {
31 int holyday;
32
33 /* holydays table */
34 static int holydays_table[14][30] =
35 {
36 { /* Tishrey */
37 1, 2, 3, 3, 0, 0, 0, 0, 0, 4,
38 0, 0, 0, 0, 5, 6, 6, 6, 6, 6,
39 7, 27, 8, 0, 0, 0, 0, 0, 0, 0},
40 { /* Heshvan */
41 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
42 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
43 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
44 { /* Kislev */
45 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
46 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
47 0, 0, 0, 0, 9, 9, 9, 9, 9, 9},
48 { /* Tevet */
49 9, 9, 9, 0, 0, 0, 0, 0, 0, 10,
50 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
51 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
52 { /* Shvat */
53 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
54 0, 0, 0, 0, 11, 0, 0, 0, 0, 0,
55 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
56 { /* Adar */
57 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
58 12, 0, 12, 13, 14, 0, 0, 0, 0, 0,
59 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
60 { /* Nisan */
61 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
62 0, 0, 0, 0, 15, 16, 16, 16, 16, 16,
63 28, 29, 0, 0, 0, 24, 24, 24, 0, 0},
64 { /* Iyar */
65 0, 17, 17, 17, 17, 17, 0, 0, 0, 0,
66 0, 0, 0, 0, 0, 0, 0, 18, 0, 0,
67 0, 0, 0, 0, 0, 0, 0, 26, 0, 0},
68 { /* Sivan */
69 0, 0, 0, 0, 19, 20, 30, 0, 0, 0,
70 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
71 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
72 { /* Tamuz */
73 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
74 0, 0, 0, 0, 0, 0, 21, 21, 0, 0,
75 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
76 { /* Av */
77 0, 0, 0, 0, 0, 0, 0, 0, 22, 22,
78 0, 0, 0, 0, 23, 0, 0, 0, 0, 0,
79 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
80 { /* Elul */
81 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
82 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
83 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
84 { /* Adar 1 */
85 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
86 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
87 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
88 { /* Adar 2 */
89 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
90 12, 0, 12, 13, 14, 0, 0, 0, 0, 0,
91 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
92 };
93
94 /* sanity check */
95 if (h->hd_mon < 1 || h->hd_mon > 14 || h->hd_day < 0 || h->hd_day > 30)
96 return 0;
97
98 holyday = holydays_table[h->hd_mon - 1][h->hd_day - 1];
99
100 /* if tzom on sat delay one day */
101 /* yom cipur on sat */
102 if ((holyday == 3) && (h->hd_dw == 7 || (h->hd_day == 4 && h->hd_dw !=1)))
103 holyday = 0;
104 /* 17 of Tanuz on sat */
105 if ((holyday == 21) && ((h->hd_dw == 7) || (h->hd_day == 18 && h->hd_dw != 1)))
106 holyday = 0;
107 /* 9 of Av on sat */
108 if ((holyday == 22) && ((h->hd_dw == 7) || (h->hd_day == 10 && h->hd_dw != 1)))
109 holyday = 0;
110
111 /* Hanukah in a long year */
112 if ((holyday == 9) && (h->hd_size_of_year % 10 != 3) && (h->hd_day == 3))
113 holyday = 0;
114
115 /* if tanit ester on sat mov to Thu */
116 if ((holyday == 12) && ((h->hd_dw == 7) || (h->hd_day == 11 && h->hd_dw != 5)))
117 holyday = 0;
118
119 /* yom yerushalym after 68 */
120 if (holyday == 26)
121 {
122 if (h->gd_year < 1968)
123 holyday = 0;
124 }
125
126 /* yom ha azmaot and yom ha zicaron */
127 if (holyday == 17)
128 {
129 if (h->gd_year < 1948)
130 holyday = 0;
131 else if (h->gd_year < 2004)
132 {
133 if ((h->hd_day == 3) && (h->hd_dw == 5))
134 holyday = 17;
135 else if ((h->hd_day == 4) && (h->hd_dw == 5))
136 holyday = 17;
137 else if ((h->hd_day == 5) && (h->hd_dw != 6 && h->hd_dw != 7))
138 holyday = 17;
139 else if ((h->hd_day == 2) && (h->hd_dw == 4))
140 holyday = 25;
141 else if ((h->hd_day == 3) && (h->hd_dw == 4))
142 holyday = 25;
143 else if ((h->hd_day == 4) && (h->hd_dw != 5 && h->hd_dw != 6))
144 holyday = 25;
145 else
146 holyday = 0;
147 }
148 else
149 {
150 if ((h->hd_day == 3) && (h->hd_dw == 5))
151 holyday = 17;
152 else if ((h->hd_day == 4) && (h->hd_dw == 5))
153 holyday = 17;
154 else if ((h->hd_day == 6) && (h->hd_dw == 3))
155 holyday = 17;
156 else if ((h->hd_day == 5) && (h->hd_dw != 6 && h->hd_dw != 7 && h->hd_dw != 2))
157 holyday = 17;
158 else if ((h->hd_day == 2) && (h->hd_dw == 4))
159 holyday = 25;
160 else if ((h->hd_day == 3) && (h->hd_dw == 4))
161 holyday = 25;
162 else if ((h->hd_day == 5) && (h->hd_dw == 2))
163 holyday = 25;
164 else if ((h->hd_day == 4) && (h->hd_dw != 5 && h->hd_dw != 6 && h->hd_dw != 1))
165 holyday = 25;
166 else
167 holyday = 0;
168 }
169 }
170
171 /* yom ha shoaa, on years after 1958 */
172 if (holyday == 24)
173 {
174 if (h->gd_year < 1958)
175 holyday = 0;
176 else
177 {
178 if ((h->hd_day == 26) && (h->hd_dw != 5))
179 holyday = 0;
180 if ((h->hd_day == 28) && (h->hd_dw != 2))
181 holyday = 0;
182 if ((h->hd_day == 27) && (h->hd_dw == 6 || h->hd_dw == 1))
183 holyday = 0;
184 }
185 }
186
187 /* diaspora holidays */
188
189 /* simchat tora only in diaspora in israel just one day shmini+simchat tora */
190 if (holyday == 8 && !diaspora)
191 holyday = 0;
192
193 /* FIXME: no diff to sukkut and pesach I in diaspora ? */
194
195 /* shavot II holiday only in diaspora */
196 if (holyday == 30 && !diaspora)
197 holyday = 0;
198
199 /* pesach VIII holiday only in diaspora */
200 if (holyday == 29 && !diaspora)
201 holyday = 0;
202
203 return holyday;
204 }
205
206 /**
207 @brief Return number of hebrew holyday type.
208
209 @param holyday the holyday number
210 @return the number of holyday type.
211 */
212 int
213 hdate_get_holyday_type (int holyday)
214 {
215 int holyday_type;
216
217 switch (holyday)
218 {
219 case 0: /* regular day */
220 holyday_type = 0;
221 break;
222 case 5:
223 case 15:
224 case 20: /* 3 regels */
225 holyday_type = 2;
226 break;
227 case 3:
228 case 4:
229 case 10:
230 case 12:
231 case 21:
232 case 22: /* tzom */
233 holyday_type = 3;
234 break;
235 default: /* regular holyday */
236 holyday_type = 1;
237 break;
238 }
239
240 return holyday_type;
241 }
0 /* libhdate
1 * Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 */
17
18 /*
19 * See Amos Shapir hdate_README file attached for
20 * Copyright notice for functions based on Amos's code
21 */
22
23 #include <time.h>
24 #include <stdio.h>
25 #include <stdlib.h>
26
27 #include "hdate.h"
28 #include "support.h"
29
30 #define HOUR 1080
31 #define DAY (24*HOUR)
32 #define WEEK (7*DAY)
33 #define M(h,p) ((h)*HOUR+p)
34 #define MONTH (DAY+M(12,793)) /* Tikun for regular month */
35
36 /**
37 @brief Days since bet (?) Tishrey 3744
38
39 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
40
41 @param hebrew_year The Hebrew year
42 @return Number of days since 3,1,3744
43 */
44 int
45 hdate_days_from_3744 (int hebrew_year)
46 {
47 int years_from_3744;
48 int molad_3744;
49 int leap_months;
50 int leap_left;
51 int months;
52 int parts;
53 int days;
54 int parts_left_in_week;
55 int parts_left_in_day;
56 int week_day;
57
58 /* Start point for calculation is Molad new year 3744 (16BC) */
59 years_from_3744 = hebrew_year - 3744;
60 molad_3744 = M (1 + 6, 779); /* Molad 3744 + 6 hours in parts */
61
62 /* Time in months */
63 leap_months = (years_from_3744 * 7 + 1) / 19; /* Number of leap months */
64 leap_left = (years_from_3744 * 7 + 1) % 19; /* Months left of leap cycle */
65 months = years_from_3744 * 12 + leap_months; /* Total Number of months */
66
67 /* Time in parts and days */
68 parts = months * MONTH + molad_3744; /* Molad This year + Molad 3744 - corections */
69 days = months * 28 + parts / DAY - 2; /* 28 days in month + corections */
70
71 /* Time left for round date in corections */
72 parts_left_in_week = parts % WEEK; /* 28 % 7 = 0 so only corections counts */
73 parts_left_in_day = parts % DAY;
74 week_day = parts_left_in_week / DAY;
75
76 /* Special cases of Molad Zaken */
77 if ((leap_left < 12 && week_day == 3
78 && parts_left_in_day >= M (9 + 6, 204)) ||
79 (leap_left < 7 && week_day == 2
80 && parts_left_in_day >= M (15 + 6, 589)))
81 {
82 days++, week_day++;
83 }
84
85 /* ADU */
86 if (week_day == 1 || week_day == 4 || week_day == 6)
87 {
88 days++;
89 }
90
91 return days;
92 }
93
94 /**
95 @brief Size of Hebrew year in days
96
97 @param hebrew_year The Hebrew year
98 @return Size of Hebrew year
99 */
100 int
101 hdate_get_size_of_hebrew_year (int hebrew_year)
102 {
103 return hdate_days_from_3744 (hebrew_year + 1) -
104 hdate_days_from_3744 (hebrew_year);
105 }
106
107 /**
108 @brief Return Hebrew year type based on size and first week day of year.
109
110 year type | year length | Tishery 1 day of week
111 | 1 | 353 | 2
112 | 2 | 353 | 7
113 | 3 | 354 | 3
114 | 4 | 354 | 5
115 | 5 | 355 | 2
116 | 6 | 355 | 5
117 | 7 | 355 | 7
118 | 8 | 383 | 2
119 | 9 | 383 | 5
120 |10 | 383 | 7
121 |11 | 384 | 3
122 |12 | 385 | 2
123 |13 | 385 | 5
124 |14 | 385 | 7
125
126 @param size_of_year Length of year in days
127 @param new_year_dw First week day of year
128 @return A number for year type (1..14)
129 */
130 int
131 hdate_get_year_type (int size_of_year, int new_year_dw)
132 {
133 /* Only 14 combinations of size and week day are posible */
134 static int year_types[24] =
135 {1, 0, 0, 2, 0, 3, 4, 0, 5, 0, 6, 7,
136 8, 0, 9, 10, 0, 11, 0, 0, 12, 0, 13, 14};
137
138 int offset;
139
140 /* convert size and first day to 1..24 number */
141 /* 2,3,5,7 -> 1,2,3,4 */
142 /* 353, 354, 355, 383, 384, 385 -> 0, 1, 2, 3, 4, 5 */
143 offset = (new_year_dw + 1) / 2;
144 offset = offset + 4 * ((size_of_year % 10 - 3) + (size_of_year / 10 - 35));
145
146 /* some combinations are imposible */
147 return year_types[offset - 1];
148 }
149
150 /**
151 @brief Compute Julian day from Gregorian day, month and year
152 Algorithm from 'Julian and Gregorian Day Numbers' by Peter Meyer
153
154 @author Yaacov Zamir ( algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
155
156 @param day Day of month 1..31
157 @param month Month 1..12
158 @param year Year in 4 digits e.g. 2001
159 @return The julian day number
160 */
161 int
162 hdate_gdate_to_jd (int day, int month, int year)
163 {
164 int jd;
165 jd = (1461 * (year + 4800 + (month - 14) / 12)) / 4 +
166 (367 * (month - 2 - 12 * ((month - 14) / 12))) / 12 -
167 (3 * ((year + 4900 + (month - 14) / 12) / 100)) / 4 + day -
168 32075;
169 return jd;
170 }
171
172 /**
173 @brief Compute Julian day from Hebrew day, month and year
174
175 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
176
177 @param day Day of month 1..31
178 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
179 @param year Hebrew year in 4 digits e.g. 5753
180 @return The julian day number
181 */
182 int
183 hdate_hdate_to_jd (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year)
184 {
185 int length_of_year;
186 int jd;
187 int days_from_3744;
188
189 /* Adjust for leap year */
190 if (month == 13)
191 {
192 month = 6;
193 }
194 if (month == 14)
195 {
196 month = 6;
197 day += 30;
198 }
199
200 /* Calculate days since 1,1,3744 */
201 days_from_3744 = hdate_days_from_3744 (year);
202 day = days_from_3744 + (59 * (month - 1) + 1) / 2 + day;
203
204 /* length of year */
205 length_of_year = hdate_days_from_3744 (year + 1) - days_from_3744;
206
207 /* Special cases for this year */
208 if (length_of_year % 10 > 4 && month > 2) /* long Heshvan */
209 day++;
210 if (length_of_year % 10 < 4 && month > 3) /* short Kislev */
211 day--;
212 if (length_of_year > 365 && month > 6) /* leap year */
213 day += 30;
214
215 /* adjust to julian */
216 jd = day + 1715118;
217
218 /* return the 1 of tishrey julians */
219 if (jd_tishrey1 && jd_tishrey1_next_year)
220 {
221 *jd_tishrey1 = days_from_3744 + 1715119;
222 *jd_tishrey1_next_year = *jd_tishrey1 + length_of_year;
223 }
224
225 return jd;
226 }
227
228 /**
229 @brief Converting from the Julian day to the Gregorian day
230 Algorithm from 'Julian and Gregorian Day Numbers' by Peter Meyer
231
232 @author Yaacov Zamir ( Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
233
234 @param jd Julian day
235 @param d Return Day of month 1..31
236 @param m Return Month 1..12
237 @param y Return Year in 4 digits e.g. 2001
238 */
239 void
240 hdate_jd_to_gdate (int jd, int *d, int *m, int *y)
241 {
242 int l, n, i, j;
243 l = jd + 68569;
244 n = (4 * l) / 146097;
245 l = l - (146097 * n + 3) / 4;
246 i = (4000 * (l + 1)) / 1461001; /* that's 1,461,001 */
247 l = l - (1461 * i) / 4 + 31;
248 j = (80 * l) / 2447;
249 *d = l - (2447 * j) / 80;
250 l = j / 11;
251 *m = j + 2 - (12 * l);
252 *y = 100 * (n - 49) + i + l; /* that's a lower-case L */
253
254 return;
255 }
256
257 /**
258 @brief Converting from the Julian day to the Hebrew day
259
260 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
261
262 @param jd Julian day
263 @param day Return Day of month 1..31
264 @param month Return Month 1..14 (13 - Adar 1, 14 - Adar 2)
265 @param year Return Year in 4 digits e.g. 2001
266 */
267 void
268 hdate_jd_to_hdate (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year)
269 {
270 int days;
271 int size_of_year;
272 int internal_jd_tishrey1, internal_jd_tishrey1_next_year;
273
274 /* calculate Gregorian date */
275 hdate_jd_to_gdate (jd, day, month, year);
276
277 /* Guess Hebrew year is Gregorian year + 3760 */
278 *year = *year + 3760;
279
280 internal_jd_tishrey1 = hdate_days_from_3744 (*year) + 1715119;
281 internal_jd_tishrey1_next_year = hdate_days_from_3744 (*year + 1) + 1715119;
282
283 /* Check if computed year was underestimated */
284 if (internal_jd_tishrey1_next_year <= jd)
285 {
286 *year = *year + 1;
287 internal_jd_tishrey1 = internal_jd_tishrey1_next_year;
288 internal_jd_tishrey1_next_year = hdate_days_from_3744 (*year + 1) + 1715119;
289 }
290
291 size_of_year = internal_jd_tishrey1_next_year - internal_jd_tishrey1;
292
293 /* days into this year, first month 0..29 */
294 days = jd - internal_jd_tishrey1;
295
296 /* last 8 months allways have 236 days */
297 if (days >= (size_of_year - 236)) /* in last 8 months */
298 {
299 days = days - (size_of_year - 236);
300 *month = days * 2 / 59;
301 *day = days - (*month * 59 + 1) / 2 + 1;
302
303 *month = *month + 4 + 1;
304
305 /* if leap */
306 if (size_of_year > 355 && *month <=6)
307 *month = *month + 8;
308 }
309 else /* in 4-5 first months */
310 {
311 /* Special cases for this year */
312 if (size_of_year % 10 > 4 && days > 58) /* long Heshvan */
313 {
314 *month = (days - 1) * 2 / 59;
315 *day = days - (*month * 59 + 1) / 2;
316 }
317 else if (size_of_year % 10 < 4 && days > 87) /* short kislev */
318 {
319 *month = (days + 1) * 2 / 59;
320 *day = days - (*month * 59 + 1) / 2 + 2;
321 }
322 else /* regular months */
323 {
324 *month = days * 2 / 59;
325 *day = days - (*month * 59 + 1) / 2 + 1;
326 }
327
328 *month = *month + 1;
329 }
330
331 /* return the 1 of tishrey julians */
332 if (jd_tishrey1 && jd_tishrey1_next_year)
333 {
334 *jd_tishrey1 = internal_jd_tishrey1;
335 *jd_tishrey1_next_year = internal_jd_tishrey1_next_year;
336 }
337
338 return;
339 }
340
341 /********************************************************************************/
342 /********************************************************************************/
343
344 /**
345 @brief compute date structure from the Gregorian date
346
347 @param d Day of month 1..31
348 @param m Month 1..12 , if m or d is 0 return current date.
349 @param y Year in 4 digits e.g. 2001
350 */
351 hdate_struct *
352 hdate_set_gdate (hdate_struct *h, int d, int m, int y)
353 {
354 int jd;
355 int jd_tishrey1, jd_tishrey1_next_year;
356
357 if (!h) return NULL;
358
359 /* check for null dates (kobi) */
360 if ((d == 0) || (m == 0))
361 {
362 struct tm *tm;
363 long t;
364 /* FIXME: day start at 6:00 or 12:00 like in Gregorian cal. ? */
365 t = time (0);
366 tm = localtime (&t);
367 d = tm->tm_mday;
368 m = tm->tm_mon + 1;
369 y = tm->tm_year + 1900;
370 }
371
372 h->gd_day = d;
373 h->gd_mon = m;
374 h->gd_year = y;
375
376 jd = hdate_gdate_to_jd (d, m, y);
377 hdate_jd_to_hdate (jd, &(h->hd_day), &(h->hd_mon), &(h->hd_year), &jd_tishrey1, &jd_tishrey1_next_year);
378
379 h->hd_dw = (jd + 1) % 7 + 1;
380 h->hd_size_of_year = jd_tishrey1_next_year - jd_tishrey1;
381 h->hd_new_year_dw = (jd_tishrey1 + 1) % 7 + 1;
382 h->hd_year_type = hdate_get_year_type (h->hd_size_of_year , h->hd_new_year_dw);
383 h->hd_jd = jd;
384 h->hd_days = jd - jd_tishrey1 + 1;
385 h->hd_weeks = ((h->hd_days - 1) + (h->hd_new_year_dw - 1)) / 7 + 1;
386
387 return (h);
388 }
389
390 /**
391 @brief compute date structure from the Hebrew date
392
393 @param d Day of month 1..31
394 @param m Month 1..14 , if m or d is 0 return current date.
395 @param y Year in 4 digits e.g. 5731
396 */
397 hdate_struct *
398 hdate_set_hdate (hdate_struct *h, int d, int m, int y)
399 {
400 int jd;
401 int jd_tishrey1, jd_tishrey1_next_year;
402
403 if (!h) return NULL;
404
405 h->hd_day = d;
406 h->hd_mon = m;
407 h->hd_year = y;
408
409 jd = hdate_hdate_to_jd (d, m, y, &jd_tishrey1, &jd_tishrey1_next_year);
410 hdate_jd_to_gdate (jd, &(h->gd_day), &(h->gd_mon), &(h->gd_year));
411
412 h->hd_dw = (jd + 1) % 7 + 1;
413 h->hd_size_of_year = jd_tishrey1_next_year - jd_tishrey1;
414 h->hd_new_year_dw = (jd_tishrey1 + 1) % 7 + 1;
415 h->hd_year_type = hdate_get_year_type (h->hd_size_of_year , h->hd_new_year_dw);
416 h->hd_jd = jd;
417 h->hd_days = jd - jd_tishrey1 + 1;
418 h->hd_weeks = ((h->hd_days - 1) + (h->hd_new_year_dw - 1)) / 7 + 1;
419
420 return (h);
421 }
422
423 /**
424 @brief compute date structure from julian day
425
426 @param jd the julian day number.
427 */
428 hdate_struct *
429 hdate_set_jd (hdate_struct *h, int jd)
430 {
431 int jd_tishrey1, jd_tishrey1_next_year;
432
433 if (!h) return NULL;
434
435 hdate_jd_to_gdate (jd, &(h->gd_day), &(h->gd_mon), &(h->gd_year));
436 hdate_jd_to_hdate (jd, &(h->hd_day), &(h->hd_mon), &(h->hd_year), &jd_tishrey1, &jd_tishrey1_next_year);
437
438 h->hd_dw = (jd + 1) % 7 + 1;
439 h->hd_size_of_year = jd_tishrey1_next_year - jd_tishrey1;
440 h->hd_new_year_dw = (jd_tishrey1 + 1) % 7 + 1;
441 h->hd_year_type = hdate_get_year_type (h->hd_size_of_year , h->hd_new_year_dw);
442 h->hd_jd = jd;
443 h->hd_days = jd - jd_tishrey1 + 1;
444 h->hd_weeks = ((h->hd_days - 1) + (h->hd_new_year_dw - 1)) / 7 + 1;
445
446 return (h);
447 }
448
449 /********************************************************************************/
450 /********************************************************************************/
451
452 /**
453 @brief get the Gregorian day of the month
454
455 @param h pointer this hdate struct.
456 @return the Gregorian day of the month, 1..31.
457 */
458 int
459 hdate_get_gday (hdate_struct *h)
460 {
461 return h->gd_day;
462 }
463
464 /**
465 @brief get the Gregorian month
466
467 @param h pointer this hdate struct.
468 @return the Gregorian month, jan = 1.
469 */
470 int
471 hdate_get_gmonth (hdate_struct *h)
472 {
473 return h->gd_mon;
474 }
475
476 /**
477 @brief get the Gregorian year
478
479 @param h pointer this hdate struct.
480 @return the Gregorian year.
481 */
482 int
483 hdate_get_gyear (hdate_struct *h)
484 {
485 return h->gd_year;
486 }
487
488 /**
489 @brief get the Hebrew day of the month
490
491 @param h pointer this hdate struct.
492 @return the Hebrew day of the month, 1..30.
493 */
494 int
495 hdate_get_hday (hdate_struct *h)
496 {
497 return h->hd_day;
498 }
499
500 /**
501 @brief get the Hebrew month
502
503 @param h pointer this hdate struct.
504 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
505 */
506 int
507 hdate_get_hmonth (hdate_struct *h)
508 {
509 return h->hd_mon;
510 }
511
512 /**
513 @brief get the Hebrew year
514
515 @param h pointer this hdate struct.
516 @return the Hebrew year.
517 */
518 int
519 hdate_get_hyear (hdate_struct *h)
520 {
521 return h->hd_year;
522 }
523
524 /**
525 @brief get the day of the week
526
527 @param h pointer this hdate struct.
528 @return the the day of the week.
529 */
530 int
531 hdate_get_day_of_the_week (hdate_struct *h)
532 {
533 return h->hd_dw;
534 }
535
536 /**
537 @brief get the size of the hebrew year
538
539 @param h pointer this hdate struct.
540 @return the the size of the hebrew year.
541 */
542 int
543 hdate_get_size_of_year (hdate_struct *h)
544 {
545 return h->hd_size_of_year;
546 }
547
548 /**
549 @brief get the new year day of the week
550
551 @param h pointer this hdate struct.
552 @return the the new year day of the week.
553 */
554 int
555 hdate_get_new_year_day_of_the_week (hdate_struct *h)
556 {
557 return h->hd_new_year_dw;
558 }
559
560 /**
561 @brief get the Julian day number
562
563 @param h pointer this hdate struct.
564 @return the Julian day number.
565 */
566 int
567 hdate_get_julian (hdate_struct *h)
568 {
569 return h->hd_jd;
570 }
571
572 /**
573 @brief get the number of days passed since 1 tishrey
574
575 @param h pointer this hdate struct.
576 @return the number of days passed since 1 tishrey.
577 */
578 int
579 hdate_get_days (hdate_struct *h)
580 {
581 return h->hd_days;
582 }
583
584 /**
585 @brief get the number of weeks passed since 1 tishrey
586
587 @param h pointer this hdate struct.
588 @return the number of weeks passed since 1 tishrey.
589 */
590 int
591 hdate_get_weeks (hdate_struct *h)
592 {
593 return h->hd_weeks;
594 }
595
596 /********************************************************************************/
597 /********************************************************************************/
598
599 /**
600 @brief creat a new hdate struct object, must be deleted using delete_hdate.
601
602 @return a new hdate object
603 */
604 hdate_struct *
605 new_hdate ()
606 {
607 /* allocate memory for a new hdate object */
608 hdate_struct *h = (hdate_struct *) malloc (sizeof (hdate_struct));
609
610 /* get todays date */
611 hdate_set_gdate (h, 0, 0, 0);
612
613 return h;
614 }
615
616 /**
617 @brief delete an hdate struct object.
618
619 @param h pointer this hdate struct.
620 */
621 hdate_struct *
622 delete_hdate (hdate_struct *h)
623 {
624 /* if h exist delete it */
625 if (h)
626 {
627 free (h);
628 h = NULL;
629 }
630
631 return h;
632 }
633
0 /* libhdate
1 * Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 */
17
18 #include "hdate.h"
19 #include "support.h"
20
21 /**
22 @brief Return number of hebrew parasha.
23
24 @author Yaacov Zamir 2003-2005, Reading tables by Zvi Har'El
25
26 @param hebdate The hdate_struct of the date to use.
27 @param diaspora if True give diaspora readings
28 @return the name of parasha 1. Bereshit etc..
29 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
30 */
31 int
32 hdate_get_parasha (hdate_struct * h, int diaspora)
33 {
34 static int join_flags[2][14][7] =
35 {
36 {
37 {1, 1, 1, 1, 0, 1, 1}, /* 1 be erez israel */
38 {1, 1, 1, 1, 0, 1, 0}, /* 2 */
39 {1, 1, 1, 1, 0, 1, 1}, /* 3 */
40 {1, 1, 1, 0, 0, 1, 0}, /* 4 */
41 {1, 1, 1, 1, 0, 1, 1}, /* 5 */
42 {0, 1, 1, 1, 0, 1, 0}, /* 6 */
43 {1, 1, 1, 1, 0, 1, 1}, /* 7 */
44 {0, 0, 0, 0, 0, 1, 1}, /* 8 */
45 {0, 0, 0, 0, 0, 0, 0}, /* 9 */
46 {0, 0, 0, 0, 0, 1, 1}, /* 10 */
47 {0, 0, 0, 0, 0, 0, 0}, /* 11 */
48 {0, 0, 0, 0, 0, 0, 0}, /* 12 */
49 {0, 0, 0, 0, 0, 0, 1}, /* 13 */
50 {0, 0, 0, 0, 0, 1, 1} /* 14 */
51 },
52 {
53 {1, 1, 1, 1, 0, 1, 1}, /* 1 in diaspora */
54 {1, 1, 1, 1, 0, 1, 0}, /* 2 */
55 {1, 1, 1, 1, 1, 1, 1}, /* 3 */
56 {1, 1, 1, 1, 0, 1, 0}, /* 4 */
57 {1, 1, 1, 1, 1, 1, 1}, /* 5 */
58 {0, 1, 1, 1, 0, 1, 0}, /* 6 */
59 {1, 1, 1, 1, 0, 1, 1}, /* 7 */
60 {0, 0, 0, 0, 1, 1, 1}, /* 8 */
61 {0, 0, 0, 0, 0, 0, 0}, /* 9 */
62 {0, 0, 0, 0, 0, 1, 1}, /* 10 */
63 {0, 0, 0, 0, 0, 1, 0}, /* 11 */
64 {0, 0, 0, 0, 0, 1, 0}, /* 12 */
65 {0, 0, 0, 0, 0, 0, 1}, /* 13 */
66 {0, 0, 0, 0, 1, 1, 1} /* 14 */
67 }
68 };
69
70 int reading;
71
72
73 /* if simhat tora return vezot habracha */
74 if (h->hd_mon == 1 && h->hd_day == 22)
75 {
76 return 54;
77 }
78
79 /* if not shabat return none */
80 if (h->hd_dw != 7)
81 {
82 return 0;
83 }
84
85 /* check for diaspora readings */
86 diaspora = diaspora?1:0;
87
88 switch (h->hd_weeks)
89 {
90 case 1:
91 if (h->hd_new_year_dw == 7)
92 {
93 return 0;
94 }
95 else if ((h->hd_new_year_dw == 2) || (h->hd_new_year_dw == 3))
96 {
97 return 52;
98 }
99 else /* if (h->hd_new_year_dw == 5) */
100 {
101 return 53;
102 }
103 break;
104 case 2:
105 if (h->hd_new_year_dw == 5)
106 {
107 return 0;
108 }
109 else
110 {
111 return 53;
112 }
113 break;
114 case 3:
115 return 0;
116 break;
117 case 4:
118 if (h->hd_new_year_dw == 7)
119 {
120 return 54;
121 }
122 else
123 {
124 return 1;
125 }
126 break;
127 default:
128 /* simhat tora on week 4 bereshit too */
129 reading = h->hd_weeks - 3;
130
131 /* was simhat tora on shabat ? */
132 if (h->hd_new_year_dw == 7)
133 reading = reading - 1;
134
135 /* no joining */
136 if (reading < 22)
137 {
138 return reading;
139 }
140
141 /* pesach */
142 if ((h->hd_mon == 7) && (h->hd_day > 14) && (h->hd_day < 22))
143 {
144 return 0;
145 }
146 if (((h->hd_mon == 7) && (h->hd_day > 21)) || (h->hd_mon > 7 && h->hd_mon < 13))
147 {
148 reading--;
149 }
150 /* on diaspora, shavot may fall on shabat if next new year is on shabat */
151 if (diaspora &&
152 (h->hd_mon < 13) &&
153 ((h->hd_mon > 9) || (h->hd_mon == 9 && h->hd_day >= 7)) &&
154 ((h->hd_new_year_dw + h->hd_size_of_year) % 7) == 0)
155 {
156 if (h->hd_mon == 9 && h->hd_day == 7)
157 {
158 return 0;
159 }
160 else
161 {
162 reading--;
163 }
164 }
165
166 /* joining */
167 if (join_flags[diaspora][h->hd_year_type - 1][0] && (reading >= 22))
168 {
169 if (reading == 22)
170 {
171 return 55;
172 }
173 else
174 {
175 reading++;
176 }
177 }
178 if (join_flags[diaspora][h->hd_year_type - 1][1] && (reading >= 27))
179 {
180 if (reading == 27)
181 {
182 return 56;
183 }
184 else
185 {
186 reading++;
187 }
188 }
189 if (join_flags[diaspora][h->hd_year_type - 1][2] && (reading >= 29))
190 {
191 if (reading == 29)
192 {
193 return 57;
194 }
195 else
196 {
197 reading++;
198 }
199 }
200 if (join_flags[diaspora][h->hd_year_type - 1][3] && (reading >= 32))
201 {
202 if (reading == 32)
203 {
204 return 58;
205 }
206 else
207 {
208 reading++;
209 }
210 }
211
212 if (join_flags[diaspora][h->hd_year_type - 1][4] && (reading >= 39))
213 {
214 if (reading == 39)
215 {
216 return 59;
217 }
218 else
219 {
220 reading++;
221 }
222 }
223 if (join_flags[diaspora][h->hd_year_type - 1][5] && (reading >= 42))
224 {
225 if (reading == 42)
226 {
227 return 60;
228 }
229 else
230 {
231 reading++;
232 }
233 }
234 if (join_flags[diaspora][h->hd_year_type - 1][6] && (reading >= 51))
235 {
236 if (reading == 51)
237 {
238 return 61;
239 }
240 else
241 {
242 reading++;
243 }
244 }
245 break;
246 }
247
248 return reading;
249 }
0 /* libhdate
1 * Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 */
17
18 #include <stdio.h>
19 #include <stdlib.h>
20 #include <string.h>
21
22 #ifdef ENABLE_NLS
23 #include <locale.h>
24 #endif
25
26 #include "hdate.h"
27 #include "support.h"
28
29 /**
30 @brief convert an integer to hebrew string UTF-8 (logical)
31
32 @param n The int to convert
33
34 @attention ( 0 < n < 10000)
35 @warning uses a static string, so output should be copied away.
36 */
37 char *
38 hdate_get_int_string (int n)
39 {
40 int length;
41 static char h_number[100];
42 static char *digits[3][10] = {
43 {" ", "א", "ב", "ג", "ד", "ה", "ו", "ז", "ח", "ט"},
44 {"ט", "י", "כ", "ל", "מ", "נ", "ס", "ע", "פ", "צ"},
45 {" ", "ק", "ר", "ש", "ת"}
46 };
47
48 char *locale;
49 char *language;
50
51 /* Get the name of the current locale. */
52 #ifdef ENABLE_NLS
53 locale = setlocale (LC_MESSAGES, NULL);
54 language = getenv("LANGUAGE");
55 #else
56 locale = NULL;
57 language = NULL;
58 #endif
59
60 if (! ((locale && (locale[0] == 'h') && (locale[1] == 'e')) ||
61 (language && (language[0] == 'h') && (language[1] == 'e'))) )
62 {
63 /* not hebrew locale return the number in decimal form */
64 snprintf (h_number, 100, "%d", n);
65 return h_number;
66 }
67
68 /* sanity checks */
69 if (n < 1 || n > 10000)
70 {
71 return NULL;
72 }
73
74 strncpy (h_number, "", 100);
75
76 if (n >= 1000)
77 {
78 strncat (h_number, digits[0][n / 1000], 100);
79 n %= 1000;
80 }
81 while (n >= 400)
82 {
83 strncat (h_number, digits[2][4], 100);
84 n -= 400;
85 }
86 if (n >= 100)
87 {
88 strncat (h_number, digits[2][n / 100], 100);
89 n %= 100;
90 }
91 if (n >= 10)
92 {
93 if (n == 15 || n == 16)
94 n -= 9;
95 strncat (h_number, digits[1][n / 10], 100);
96 n %= 10;
97 }
98 if (n > 0)
99 strncat (h_number, digits[0][n], 16);
100
101 length = strlen (h_number);
102
103 /* add the ' and " to hebrew numbers */
104 if (length <= 2)
105 {
106 strncat (h_number, "'", 100);
107 }
108 else
109 {
110 h_number[length + 1] = h_number[length];
111 h_number[length] = h_number[length - 1];
112 h_number[length - 1] = h_number[length - 2];
113 h_number[length - 2] = '\"';
114 }
115
116 return h_number;
117 }
118
119 /**
120 @brief Return a static string, with name of wek day.
121
122 @param day The number of the day 0..6 (0 - sun).
123 @param s A short flag (true - returns a short string: sun, .., false returns: sunday, .. ).
124 */
125 char *
126 hdate_get_day_string (int day, int s)
127 {
128 /* create a static days array */
129 static char *days[2][7] = {
130 {N_("Sun"), N_("Mon"), N_("Tue"), N_("Wed"), N_("Thu"),
131 N_("Fri"), N_("Sat")},
132 {N_("Sunday"), N_("Monday"), N_("Tuesday"), N_("Wednesday"),
133 N_("Thursday"), N_("Friday"), N_("Saturday")}
134 };
135
136 #ifdef ENABLE_NLS
137 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
138 bind_textdomain_codeset (PACKAGE, "UTF-8");
139 #endif
140
141 /* make sure s is 0 or 1 */
142 s = s ? 0 : 1;
143
144 if (day >= 1 && day <= 7)
145 {
146 return _(days[s][day - 1]);
147 }
148
149 /* if not a valid day return NULL */
150 return NULL;
151 }
152
153 /**
154 @brief Return a static string, with name of month.
155
156 @param month The number of the month 1..12 (1 - jan).
157 @param s A short flag.
158 */
159 char *
160 hdate_get_month_string (int month, int s)
161 {
162
163 static char *months[2][12] = {
164 {N_("Jan"), N_("Feb"), N_("Mar"), N_("Apr"), N_("May"),
165 N_("Jun"), N_("Jul"), N_("Aug"), N_("Sep"), N_("Oct"),
166 N_("Nov"), N_("Dec")},
167 {N_("January"), N_("February"), N_("March"),
168 N_("April"), N_("May"), N_("June"),
169 N_("July"), N_("August"), N_("September"),
170 N_("October"), N_("November"), N_("December")}
171 };
172
173 #ifdef ENABLE_NLS
174 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
175 bind_textdomain_codeset (PACKAGE, "UTF-8");
176 #endif
177
178 /* make sure s is 0 or 1 */
179 s = s ? 0 : 1;
180
181 if (month >= 1 && month <= 12)
182 {
183 return _(months[s][month - 1]);
184 }
185
186 /* if not a valid month return NULL */
187 return NULL;
188 }
189
190 /**
191 @brief Return a static string, with name of hebrew month.
192
193 @param month The number of the month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
194 @param s A short flag.
195 */
196 char *
197 hdate_get_hebrew_month_string (int month, int s)
198 {
199 /* FIXME: abbrev of Hebrew months */
200 static char *months[2][14] = {
201 {N_("Tishrei"), N_("Cheshvan"), N_("Kislev"), N_("Tevet"),
202 N_("Sh'vat"), N_("Adar"), N_("Nisan"), N_("Iyyar"),
203 N_("Sivan"), N_("Tamuz"), N_("Av"), N_("Elul"), N_("Adar I"),
204 N_("Adar II")},
205 {N_("Tishrei"), N_("Cheshvan"), N_("Kislev"), N_("Tevet"),
206 N_("Sh'vat"), N_("Adar"), N_("Nisan"), N_("Iyyar"),
207 N_("Sivan"), N_("Tamuz"), N_("Av"), N_("Elul"), N_("Adar I"),
208 N_("Adar II")}
209 };
210
211 #ifdef ENABLE_NLS
212 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
213 bind_textdomain_codeset (PACKAGE, "UTF-8");
214 #endif
215
216 /* make sure s is 0 or 1 */
217 s = s ? 0 : 1;
218
219 if (month >= 1 && month <= 14)
220 {
221 return _(months[s][month - 1]);
222 }
223
224 /* if not a valid month return NULL */
225 return NULL;
226 }
227
228 /**
229 @brief Name of hebrew holyday.
230
231 @param holyday The holyday number.
232 @param s A short flag.
233 */
234 char *
235 hdate_get_holyday_string (int holyday, int s)
236 {
237 /* holyday strings */
238 static char *holydays[2][30] = {
239 {
240 N_("Rosh Hashana I"), /* 1 */
241 N_("Rosh Hashana II"),
242 N_("Tzom Gedaliah"),
243 N_("Yom Kippur"),
244 N_("Sukkot"),
245 N_("Hol hamoed Sukkot"),
246 N_("Hoshana raba"),
247 N_("Simchat Torah"),
248 N_("Chanukah"),
249 N_("Asara B'Tevet"), /* 10 */
250 N_("Tu B'Shvat"),
251 N_("Ta'anit Esther"),
252 N_("Purim"),
253 N_("Shushan Purim"),
254 N_("Pesach"),
255 N_("Hol hamoed Pesach"),
256 N_("Yom HaAtzma'ut"),
257 N_("Lag B'Omer"),
258 N_("Erev Shavuot"),
259 N_("Shavuot"), /* 20 */
260 N_("Tzom Tammuz"),
261 N_("Tish'a B'Av"),
262 N_("Tu B'Av"),
263 N_("Yom HaShoah"),
264 N_("Yom HaZikaron"), /* 25 */
265 N_("Yom Yerushalayim"),
266 N_("Shmini Atzeret"),
267 N_("Pesach VII"),
268 N_("Pesach VIII"),
269 N_("Shavuot II")},
270 {
271 N_("Rosh Hashana I"),
272 N_("Rosh Hashana II"),
273 N_("Tzom Gedaliah"),
274 N_("Yom Kippur"),
275 N_("Sukkot"),
276 N_("Hol hamoed Sukkot"),
277 N_("Hoshana raba"),
278 N_("Simchat Torah"),
279 N_("Chanukah"),
280 N_("Asara B'Tevet"),
281 N_("Tu B'Shvat"),
282 N_("Ta'anit Esther"),
283 N_("Purim"),
284 N_("Shushan Purim"),
285 N_("Pesach"),
286 N_("Hol hamoed Pesach"),
287 N_("Yom HaAtzma'ut"),
288 N_("Lag B'Omer"),
289 N_("Erev Shavuot"),
290 N_("Shavuot"),
291 N_("Tzom Tammuz"),
292 N_("Tish'a B'Av"),
293 N_("Tu B'Av"),
294 N_("Yom HaShoah"),
295 N_("Yom HaZikaron"),
296 N_("Yom Yerushalayim"),
297 N_("Shmini Atzeret"),
298 N_("Pesach VII"),
299 N_("Pesach VIII"),
300 N_("Shavuot II")}
301 };
302
303 #ifdef ENABLE_NLS
304 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
305 bind_textdomain_codeset (PACKAGE, "UTF-8");
306 #endif
307
308 /* make sure s is 0 or 1 */
309 s = s ? 0 : 1;
310
311 if (holyday >= 1 && holyday <= 30)
312 {
313 return _(holydays[s][holyday - 1]);
314 }
315
316 /* if not a valid holyday return NULL */
317 return NULL;
318 }
319
320 /**
321 @brief Name of Parasha
322
323 @param parasha The Number of Parasha 1-Bereshit
324 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
325 @param s A short flag.
326 */
327 char *
328 hdate_get_parasha_string (int parasha, int s)
329 {
330 /* FIXME: abbrev of parasha */
331 static char *parashaot[2][62] = {
332 {
333 N_("none"),
334 N_("Bereshit"), /* 1 */
335 N_("Noach"),
336 N_("Lech-Lecha"),
337 N_("Vayera"),
338 N_("Chayei Sara"),
339 N_("Toldot"),
340 N_("Vayetzei"),
341 N_("Vayishlach"),
342 N_("Vayeshev"),
343 N_("Miketz"), /* 10 */
344 N_("Vayigash"),
345 N_("Vayechi"),
346 N_("Shemot"),
347 N_("Vaera"),
348 N_("Bo"),
349 N_("Beshalach"),
350 N_("Yitro"),
351 N_("Mishpatim"),
352 N_("Terumah"),
353 N_("Tetzaveh"), /* 20 */
354 N_("Ki Tisa"),
355 N_("Vayakhel"),
356 N_("Pekudei"),
357 N_("Vayikra"),
358 N_("Tzav"),
359 N_("Shmini"),
360 N_("Tazria"),
361 N_("Metzora"),
362 N_("Achrei Mot"),
363 N_("Kedoshim"), /* 30 */
364 N_("Emor"),
365 N_("Behar"),
366 N_("Bechukotai"),
367 N_("Bamidbar"),
368 N_("Nasso"),
369 N_("Beha'alotcha"),
370 N_("Sh'lach"),
371 N_("Korach"),
372 N_("Chukat"),
373 N_("Balak"), /* 40 */
374 N_("Pinchas"),
375 N_("Matot"),
376 N_("Masei"),
377 N_("Devarim"),
378 N_("Vaetchanan"),
379 N_("Eikev"),
380 N_("Re'eh"),
381 N_("Shoftim"),
382 N_("Ki Teitzei"),
383 N_("Ki Tavo"), /* 50 */
384 N_("Nitzavim"),
385 N_("Vayeilech"),
386 N_("Ha'Azinu"),
387 N_("Vezot Habracha"), /* 54 */
388 N_("Vayakhel-Pekudei"),
389 N_("Tazria-Metzora"),
390 N_("Achrei Mot-Kedoshim"),
391 N_("Behar-Bechukotai"),
392 N_("Chukat-Balak"),
393 N_("Matot-Masei"),
394 N_("Nitzavim-Vayeilech")},
395 {
396 N_("none"),
397 N_("Bereshit"), /* 1 */
398 N_("Noach"),
399 N_("Lech-Lecha"),
400 N_("Vayera"),
401 N_("Chayei Sara"),
402 N_("Toldot"),
403 N_("Vayetzei"),
404 N_("Vayishlach"),
405 N_("Vayeshev"),
406 N_("Miketz"), /* 10 */
407 N_("Vayigash"),
408 N_("Vayechi"),
409 N_("Shemot"),
410 N_("Vaera"),
411 N_("Bo"),
412 N_("Beshalach"),
413 N_("Yitro"),
414 N_("Mishpatim"),
415 N_("Terumah"),
416 N_("Tetzaveh"), /* 20 */
417 N_("Ki Tisa"),
418 N_("Vayakhel"),
419 N_("Pekudei"),
420 N_("Vayikra"),
421 N_("Tzav"),
422 N_("Shmini"),
423 N_("Tazria"),
424 N_("Metzora"),
425 N_("Achrei Mot"),
426 N_("Kedoshim"), /* 30 */
427 N_("Emor"),
428 N_("Behar"),
429 N_("Bechukotai"),
430 N_("Bamidbar"),
431 N_("Nasso"),
432 N_("Beha'alotcha"),
433 N_("Sh'lach"),
434 N_("Korach"),
435 N_("Chukat"),
436 N_("Balak"), /* 40 */
437 N_("Pinchas"),
438 N_("Matot"),
439 N_("Masei"),
440 N_("Devarim"),
441 N_("Vaetchanan"),
442 N_("Eikev"),
443 N_("Re'eh"),
444 N_("Shoftim"),
445 N_("Ki Teitzei"),
446 N_("Ki Tavo"), /* 50 */
447 N_("Nitzavim"),
448 N_("Vayeilech"),
449 N_("Ha'Azinu"),
450 N_("Vezot Habracha"), /* 54 */
451 N_("Vayakhel-Pekudei"),
452 N_("Tazria-Metzora"),
453 N_("Achrei Mot-Kedoshim"),
454 N_("Behar-Bechukotai"),
455 N_("Chukat-Balak"),
456 N_("Matot-Masei"),
457 N_("Nitzavim-Vayeilech")}
458 };
459
460 #ifdef ENABLE_NLS
461 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
462 bind_textdomain_codeset (PACKAGE, "UTF-8");
463 #endif
464
465 /* make sure s is 0 or 1 */
466 s = s ? 0 : 1;
467
468 if (parasha >= 0 && parasha <= 61)
469 {
470 return _(parashaot[s][parasha]);
471 }
472
473 /* if not a valid parasha return NULL */
474 return NULL;
475 }
476
477 /**
478 @brief Return a static string, with the hebrew date.
479
480 return the short ( e.g. "1 Tishrey" ) or
481 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
482
483 @param h The hdate_struct of the date to print.
484 @param diaspora if true give diaspora holydays
485 @param s A short flag (true - returns a short string, false returns a long string. ).
486 */
487 char *
488 hdate_get_format_date (hdate_struct * h, int diaspora, int s)
489 {
490 static char format_date[500];
491 static char temp[500];
492 int holyday;
493
494 if (h)
495 {
496 if (s)
497 { /* short format */
498 snprintf (format_date, 500, "%s %s",
499 hdate_get_int_string (h->hd_day),
500 hdate_get_hebrew_month_string (h->hd_mon, s));
501 return (format_date);
502 }
503 else
504 {
505 snprintf (temp, 500, "%s, %s %s",
506 hdate_get_day_string (h->hd_dw, s),
507 hdate_get_int_string (h->hd_day),
508 hdate_get_hebrew_month_string (h->hd_mon, s));
509 snprintf (format_date, 500, "%s %s",
510 temp,
511 hdate_get_int_string (h->hd_year));
512
513 /* if holyday print it */
514 holyday = hdate_get_holyday (h, diaspora);
515
516 if (holyday != 0)
517 {
518 snprintf (temp, 500, "%s, %s",
519 format_date,
520 hdate_get_holyday_string (holyday, 0));
521
522 return (temp);
523 }
524 else
525 return (format_date);
526 }
527 }
528
529 return NULL;
530 }
531
532 /**
533 @brief Return a static string, with the package name and version
534
535 @return a a static string, with the package name and version
536 */
537 char *
538 hdate_get_version_string ()
539 {
540 static char version[500];
541
542 /* make a "packge version" string */
543 snprintf (version, 500, "%s %s",
544 PACKAGE,
545 VERSION);
546
547 return (version);
548 }
549
550 /**
551 @brief Return a static string, with the name of translator
552
553 @return a a static string, with the name of translator
554 */
555 char *
556 hdate_get_translator_string ()
557 {
558 /* if untranslated return null */
559 if (strcmp (_("translator"), "translator") == 0)
560 return NULL;
561
562 /* return the translator name */
563 return _("translator");
564 }
0 .\" .ad l
1 .\" .nh
2 .TH "hdate_struct" "3" "2 Mar 2005" "Yaacov Zamir" "libhdate"
3 .SH "NAME"
4 hdate_struct \- base struct for libhdate, a library that help use hebrew dates.
5 .PP
6 LibHdate is a small C,C++ library for Hebrew dates,
7 holidays, and reading sequence (parasha). It is using
8 the source code from Amos Shapir's "hdate" package fixed and
9 patched by Nadav Har'El. The Torah reading sequence
10 is from tables by Zvi Har'El.
11
12 .SH "SYNOPSIS"
13 .br
14 .PP
15 \fC#include <hdate.h>\fP
16 .PP
17 .SS "Data Fields"
18
19 .in +1c
20 .ti \-1c
21 .RI "int \fBhd_day\fP"
22 .br
23 .ti \-1c
24 .RI "int \fBhd_mon\fP"
25 .br
26 .ti \-1c
27 .RI "int \fBhd_year\fP"
28 .br
29 .ti \-1c
30 .RI "int \fBgd_day\fP"
31 .br
32 .ti \-1c
33 .RI "int \fBgd_mon\fP"
34 .br
35 .ti \-1c
36 .RI "int \fBgd_year\fP"
37 .br
38 .ti \-1c
39 .RI "int \fBhd_dw\fP"
40 .br
41 .ti \-1c
42 .RI "int \fBhd_size_of_year\fP"
43 .br
44 .ti \-1c
45 .RI "int \fBhd_new_year_dw\fP"
46 .br
47 .ti \-1c
48 .RI "int \fBhd_year_type\fP"
49 .br
50 .ti \-1c
51 .RI "int \fBhd_jd\fP"
52 .br
53 .ti \-1c
54 .RI "int \fBhd_days\fP"
55 .br
56 .ti \-1c
57 .RI "int \fBhd_weeks\fP"
58 .br
59 .in \-1c
60 .SH "Detailed Description"
61 .PP
62 Base structore for hebrew dates
63 .PP
64 .SH "Field Documentation"
65 .PP
66 .SS "int \fBhdate_struct::hd_day\fP"
67 .PP
68 The number of day in the hebrew month (1..31).
69 .SS "int \fBhdate_struct::hd_mon\fP"
70 .PP
71 The number of the hebrew month 1..14 (1 \- tishre, 13 \- adar 1, 14 \- adar 2).
72 .SS "int \fBhdate_struct::hd_year\fP"
73 .PP
74 The number of the hebrew year.
75 .SS "int \fBhdate_struct::gd_day\fP"
76 .PP
77 The number of the day in the month. (1..31)
78 .SS "int \fBhdate_struct::gd_mon\fP"
79 .PP
80 The number of the month 1..12 (1 \- jan).
81 .SS "int \fBhdate_struct::gd_year\fP"
82 .PP
83 The number of the year.
84 .SS "int \fBhdate_struct::hd_dw\fP"
85 .PP
86 The day of the week 1..7 (1 \- sunday).
87 .SS "int \fBhdate_struct::hd_size_of_year\fP"
88 .PP
89 The length of the year in days.
90 .SS "int \fBhdate_struct::hd_new_year_dw\fP"
91 .PP
92 The week day of Hebrew new year.
93 .SS "int \fBhdate_struct::hd_year_type\fP"
94 .PP
95 The number type of year.
96 .SS "int \fBhdate_struct::hd_jd\fP"
97 .PP
98 The Julian day number
99 .SS "int \fBhdate_struct::hd_days\fP"
100 .PP
101 The number of days passed since 1 tishrey
102 .SS "int \fBhdate_struct::hd_weeks\fP"
103 .PP
104 The number of weeks passed since 1 tishrey
105
106 .SH "SEE ALSO"
107 hdate.h(3), hcal(1), hdate(1)
108 .SH "Author"
109 .PP
110 2005 Yaacov Zmair
111 Generated automatically by Doxygen for libhdate from the source code.
0 /* libhdate
1 * Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 */
17
18 /*
19 * Algorithm from http://www.srrb.noaa.gov/highlights/sunrise/calcdetails.html
20 * The low accuracy solar position equations are used.
21 * These routines are based on Jean Meeus's book Astronomical Algorithms.
22 */
23
24 #include <time.h>
25 #include <stdio.h>
26 #include <math.h>
27
28 #include "hdate.h"
29 #include "support.h"
30
31 /**
32 @brief days from 1 january
33
34 @parm day this day of month
35 @parm month this month
36 @parm year this year
37 @return the days from 1 jan
38 */
39 int
40 hdate_get_day_of_year (int day, int month, int year)
41 {
42 int jd;
43
44 /* get todays julian day number */
45 jd = (1461 * (year + 4800 + (month - 14) / 12)) / 4 +
46 (367 * (month - 2 - 12 * ((month - 14) / 12))) / 12 -
47 (3 * ((year + 4900 + (month - 14) / 12) / 100)) / 4 + day;
48
49 /* substruct the julian day of 1/1/year and add one */
50 jd = jd - ((1461 * (year + 4799)) / 4 +
51 367 * 11 / 12 - (3 * ((year + 4899) / 100)) / 4);
52
53 return jd;
54 }
55
56 /**
57 @brief utc sunrise/set time for a gregorian date
58
59 @parm day this day of month
60 @parm month this month
61 @parm year this year
62 @parm longitude longitude to use in calculations
63 @parm latitude latitude to use in calculations
64 @parm sunrise return the utc sunrise in minutes
65 @parm sunset return the utc sunset in minutes
66 */
67 void
68 hdate_get_utc_sun_time (int day, int month, int year, double latitude, double longitude, int *sunrise, int *sunset)
69 {
70 double gama; /* location of sun in yearly cycle in radians */
71 double eqtime; /* diffference betwen sun noon and clock noon */
72 double decl; /* sun declanation */
73 double ha; /* solar hour engle */
74 double sunrise_angle = M_PI * 90.833 / 180.0; /* sun angle at sunrise/set */
75
76 int day_of_year;
77
78 /* get the day of year */
79 day_of_year = hdate_get_day_of_year (day, month, year);
80
81 /* get radians of sun orbit around erth =) */
82 gama = 2.0 * M_PI * ((double)(day_of_year - 1) / 365.0);
83
84 /* get the diff betwen suns clock and wall clock in minutes */
85 eqtime = 229.18 * (0.000075 + 0.001868 * cos (gama)
86 - 0.032077 * sin (gama) - 0.014615 * cos (2.0 * gama)
87 - 0.040849 * sin (2.0 * gama));
88
89 /* calculate suns declanation at the equater in radians */
90 decl = 0.006918 - 0.399912 * cos (gama) + 0.070257 * sin (gama)
91 - 0.006758 * cos (2.0 * gama) + 0.000907 * sin (2.0 * gama)
92 - 0.002697 * cos (3.0 * gama) + 0.00148 * sin (3.0 * gama);
93
94 /* we use radians, ratio is 2pi/360 */
95 latitude = M_PI * latitude / 180.0;
96
97 /* the sun real time diff from noon at sunset/rise in radians */
98 ha = acos (cos (sunrise_angle) / (cos (latitude) * cos (decl)) - tan (latitude) * tan (decl));
99
100 /* we use minutes, ratio is 1440min/2pi */
101 ha = 720.0 * ha / M_PI;
102
103 /* get sunset/rise times in utc wall clock in minutes from 00:00 time */
104 *sunrise = (int)(720.0 + 4.0 * longitude - ha - eqtime);
105 *sunset = (int)(720.0 + 4.0 * longitude + ha - eqtime);
106
107 return;
108 }
0 /* libhdate
1 * Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 */
17
18 /*
19 * See Amos Shapir hdate_README file attached for
20 * Copyright notice for functions based on Amos's code
21 */
22
23 #ifndef __HDATE_PP_H__
24 #define __HDATE_PP_H__
25
26 #include <hdate.h>
27
28 /**
29 @brief the libhdate namespace.
30 */
31 namespace hdate
32 {
33 /**
34 @brief Hdate class.
35
36 class for Hebrew/Gregorian date conversions
37 */
38 class Hdate;
39
40 /**
41 @brief Hdate class.
42
43 class for Hebrew/Gregorian date conversions
44 */
45 class Hdate
46 {
47
48 public:
49 ////////////////////////////////////////
50 ////////////////////////////////////////
51
52 /**
53 @brief Hdate constructor.
54 */
55 Hdate()
56 {
57 h = new_hdate();
58 }
59
60 /**
61 @brief Hdate destructor.
62 */
63 ~Hdate()
64 {
65 delete_hdate(h);
66 }
67
68 ////////////////////////////////////////
69 ////////////////////////////////////////
70
71 /**
72 @brief compute date structure from the Gregorian date
73
74 @param d Day of month 1..31
75 @param m Month 1..12 , if m or d is 0 return current date.
76 @param y Year in 4 digits e.g. 2001
77 */
78 void
79 set_gdate (int d, int m, int y)
80 {
81 hdate_set_gdate (h, d, m, y);
82 }
83
84 /**
85 @brief compute date structure from the Hebrew date
86
87 @param d Day of month 1..31
88 @param m Month 1..14 , if m or d is 0 return current date.
89 @param y Year in 4 digits e.g. 5731
90 */
91 void
92 set_hdate (int d, int m, int y)
93 {
94 hdate_set_hdate (h, d, m, y);
95 }
96
97 /**
98 @brief compute date structure from the Julian day
99
100 @param jd the julian day number.
101 */
102 void
103 set_jd (int jd)
104 {
105 hdate_set_jd (h, jd);
106 }
107
108 ////////////////////////////////////////
109 ////////////////////////////////////////
110
111 /**
112 @brief get formated hebrew date.
113
114 return the short ( e.g. "1 Tishrey" ) or
115 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
116
117 @param diaspora if true give diaspora holydays.
118 @param s short flag.
119 @return a static string of foramted date
120 */
121 char *
122 get_format_date (int diaspora, int s)
123 {
124 return hdate_get_format_date (h, diaspora, s);
125 }
126
127 /**
128 @brief get name of week day.
129
130 @param s short flag
131 true - returns a short string: sun, false returns: sunday.
132 @return a static string of the day of the week
133 */
134 char *
135 get_day_of_week_string (int s)
136 {
137 return hdate_get_day_string (h->hd_dw, s);
138 }
139
140 /**
141 @brief get name month.
142
143 @param s short flag
144 true - returns a short string: Mar, false returns: March.
145 @return a static string of month name
146 */
147 char *
148 get_month_string (int s)
149 {
150 return hdate_get_month_string (h->gd_mon, s);
151 }
152
153 /**
154 @brief get name hebrew month.
155
156 @param s short flag
157 true - returns a short string.
158 @return a static string of hebrew month name
159 */
160 char *
161 get_hebrew_month_string (int s)
162 {
163 return hdate_get_hebrew_month_string (h->hd_mon, s);
164 }
165
166 /**
167 @brief get name hebrew holiday.
168
169 @param s short flag
170 true - returns a short string.
171 @return a static string of hebrew holiday name
172 */
173 char *
174 get_holyday_string (int diaspora, int s)
175 {
176 int holyday;
177
178 holyday = hdate_get_holyday (h, diaspora);
179 return hdate_get_holyday_string (holyday, s);
180 }
181
182 /**
183 @brief get the hebrew holiday type.
184
185 @return the holiday type
186 (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday)
187 */
188 int
189 get_holyday_type (int diaspora)
190 {
191 int holyday;
192
193 holyday = hdate_get_holyday (h, diaspora);
194 return hdate_get_holyday_type (holyday);
195 }
196
197 /**
198 @brief get name hebrew parasha.
199
200 @param diaspora if true give diaspora parashot.
201 @param s short flag
202 true - returns a short string.
203 @return a static string of hebrew parash name
204 */
205 char *
206 get_parasha_string (int diaspora, int s)
207 {
208 int parasha;
209
210 parasha = hdate_get_parasha (h, diaspora);
211 return hdate_get_parasha_string (parasha, s);
212 }
213
214 /**
215 @brief get name hebrew year.
216
217 @return a static string of hebrew year
218 */
219 char *
220 get_hebrew_year_string ()
221 {
222 return hdate_get_int_string (h->hd_year);
223 }
224
225 /**
226 @brief get name hebrew hebrew day of the month
227
228 @return a static string of hebrew day of the month
229 */
230 char *
231 get_hebrew_day_string ()
232 {
233 return hdate_get_int_string (h->hd_day);
234 }
235
236 ////////////////////////////////////////
237 ////////////////////////////////////////
238
239 /**
240 @brief get parash number
241
242 @param diaspora if true give diaspora parashot.
243 @return the hebrew parasha number
244 */
245 int
246 get_parasha (int diaspora)
247 {
248 return hdate_get_parasha (h, diaspora);
249 }
250
251 /**
252 @brief get holiday number
253
254 @param diaspora if true give diaspora holidays.
255 @return the hebrew holiday number
256 */
257 int
258 get_holyday (int diaspora)
259 {
260 return hdate_get_holyday (h, diaspora);
261 }
262
263 /**
264 @brief get Gregorian day of the month
265
266 @return the Gregorian day of the month
267 */
268 int
269 get_gday ()
270 {
271 return hdate_get_gday (h);
272 }
273
274 /**
275 @brief get Gregorian month
276
277 @return the Gregorian month
278 */
279 int
280 get_gmonth ()
281 {
282 return hdate_get_gmonth (h);
283 }
284
285 /**
286 @brief get Gregorian year
287
288 @return the Gregorian year
289 */
290 int
291 get_gyear ()
292 {
293 return hdate_get_gyear (h);
294 }
295
296 /**
297 @brief get Hebrew day of the month
298
299 @return the Hebrew day of the month
300 */
301 int
302 get_hday ()
303 {
304 return hdate_get_hday (h);
305 }
306
307 /**
308 @brief get Hebrew month
309
310 @return the Hebrew month
311 */
312 int
313 get_hmonth ()
314 {
315 return hdate_get_hmonth (h);
316 }
317
318 /**
319 @brief get Hebrew year
320
321 @return the Hebrew year
322 */
323 int
324 get_hyear ()
325 {
326 return hdate_get_hyear (h);
327 }
328
329 /**
330 @brief get the day of the week
331
332 @return the day of the week
333 */
334 int
335 get_day_of_the_week ()
336 {
337 return hdate_get_day_of_the_week (h);
338 }
339
340 /**
341 @brief get the size of the Hebrew year in days
342
343 @return the size of the Hebrew year in days
344 */
345 int
346 get_size_of_year ()
347 {
348 return hdate_get_size_of_year (h);
349 }
350
351 /**
352 @brief get the day of the week of hebrew new years
353
354 @return the day of the week of hebrew new years
355 */
356 int
357 get_new_year_day_of_the_week ()
358 {
359 return hdate_get_new_year_day_of_the_week (h);
360 }
361
362 /**
363 @brief get the Julian day number
364
365 @return the Julian day number
366 */
367 int
368 get_julian ()
369 {
370 return hdate_get_julian (h);
371 }
372
373 /**
374 @brief get the number of days sice Tishrey I
375
376 @return the the number of days sice Tishrey I
377 */
378 int
379 get_days ()
380 {
381 return hdate_get_days (h);
382 }
383
384 /**
385 @brief get the number of weeks sice Tishrey I
386
387 @return the the number of weeks sice Tishrey I
388 */
389 int
390 get_weeks ()
391 {
392 return hdate_get_weeks (h);
393 }
394
395 ////////////////////////////////////////
396 ////////////////////////////////////////
397
398 /**
399 @brief sunrise time
400
401 @param longitude longitude to use in calculations
402 degrees, negative values are east
403 @param latitude latitude to use in calculations
404 degrees, negative values are south
405 @param tz time zone
406 @return sunrise in minutes after midnight (00:00)
407 */
408 int
409 get_sunrise (double latitude, double longitude, int tz)
410 {
411 int sunrise;
412 int sunset;
413
414 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
415 latitude, longitude,
416 &sunrise, &sunset);
417
418 return sunrise + tz * 60;
419 }
420
421 /**
422 @brief sunset time
423
424 @param longitude longitude to use in calculations
425 degrees, negative values are east
426 @param latitude latitude to use in calculations
427 degrees, negative values are south
428 @param tz time zone
429 @return sunset in minutes after midnight (00:00)
430 */
431 int
432 get_sunset (double latitude, double longitude, int tz)
433 {
434 int sunrise;
435 int sunset;
436
437 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
438 latitude, longitude,
439 &sunrise, &sunset);
440
441 return sunset + tz * 60;
442 }
443
444 ////////////////////////////////////////
445 ////////////////////////////////////////
446
447 /**
448 @brief name of translator
449
450 @return a static string with name of translator, or NULL if none
451 */
452 char *
453 get_translator_string ()
454 {
455 return hdate_get_translator_string ();
456 }
457
458 private:
459
460 hdate_struct *h;
461
462 };
463
464 } // name space
465
466 #endif
0 /* libhdate
1 * Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 */
17
18 /*
19 * macros.
20 */
21
22 /*
23 * define TRUE/FLASE if not defined
24 */
25 #ifndef FALSE
26 #define FALSE 0
27 #endif
28
29 #ifndef TRUE
30 #define TRUE -1
31 #endif
32
33 /*
34 * Standard gettext macros.
35 */
36 #ifdef ENABLE_NLS
37 # include <libintl.h>
38 # undef _
39 # define _(String) dgettext (PACKAGE, String)
40 # ifdef gettext_noop
41 # define N_(String) gettext_noop (String)
42 # else
43 # define N_(String) (String)
44 # endif
45 #else
46 # define textdomain(String) (String)
47 # define gettext(String) (String)
48 # define dgettext(Domain,Message) (Message)
49 # define dcgettext(Domain,Message,Type) (Message)
50 # define bindtextdomain(Domain,Directory) (Domain)
51 # define _(String) (String)
52 # define N_(String) (String)
53 #endif