Codebase list libhdate / 5919703
[svn-upgrade] Integrating new upstream version, libhdate (1.4.12) Lior Kaplan 15 years ago
117 changed file(s) with 0 addition(s) and 71078 deletion(s). Raw diff Collapse all Expand all
+0
-1068
current/ABOUT-NLS less more
0 1 Notes on the Free Translation Project
1 ***************************************
2
3 Free software is going international! The Free Translation Project is
4 a way to get maintainers of free software, translators, and users all
5 together, so that free software will gradually become able to speak many
6 languages. A few packages already provide translations for their
7 messages.
8
9 If you found this `ABOUT-NLS' file inside a distribution, you may
10 assume that the distributed package does use GNU `gettext' internally,
11 itself available at your nearest GNU archive site. But you do _not_
12 need to install GNU `gettext' prior to configuring, installing or using
13 this package with messages translated.
14
15 Installers will find here some useful hints. These notes also
16 explain how users should proceed for getting the programs to use the
17 available translations. They tell how people wanting to contribute and
18 work on translations can contact the appropriate team.
19
20 When reporting bugs in the `intl/' directory or bugs which may be
21 related to internationalization, you should tell about the version of
22 `gettext' which is used. The information can be found in the
23 `intl/VERSION' file, in internationalized packages.
24
25 1.1 Quick configuration advice
26 ==============================
27
28 If you want to exploit the full power of internationalization, you
29 should configure it using
30
31 ./configure --with-included-gettext
32
33 to force usage of internationalizing routines provided within this
34 package, despite the existence of internationalizing capabilities in the
35 operating system where this package is being installed. So far, only
36 the `gettext' implementation in the GNU C library version 2 provides as
37 many features (such as locale alias, message inheritance, automatic
38 charset conversion or plural form handling) as the implementation here.
39 It is also not possible to offer this additional functionality on top
40 of a `catgets' implementation. Future versions of GNU `gettext' will
41 very likely convey even more functionality. So it might be a good idea
42 to change to GNU `gettext' as soon as possible.
43
44 So you need _not_ provide this option if you are using GNU libc 2 or
45 you have installed a recent copy of the GNU gettext package with the
46 included `libintl'.
47
48 1.2 INSTALL Matters
49 ===================
50
51 Some packages are "localizable" when properly installed; the programs
52 they contain can be made to speak your own native language. Most such
53 packages use GNU `gettext'. Other packages have their own ways to
54 internationalization, predating GNU `gettext'.
55
56 By default, this package will be installed to allow translation of
57 messages. It will automatically detect whether the system already
58 provides the GNU `gettext' functions. If not, the included GNU
59 `gettext' library will be used. This library is wholly contained
60 within this package, usually in the `intl/' subdirectory, so prior
61 installation of the GNU `gettext' package is _not_ required.
62 Installers may use special options at configuration time for changing
63 the default behaviour. The commands:
64
65 ./configure --with-included-gettext
66 ./configure --disable-nls
67
68 will, respectively, bypass any pre-existing `gettext' to use the
69 internationalizing routines provided within this package, or else,
70 _totally_ disable translation of messages.
71
72 When you already have GNU `gettext' installed on your system and run
73 configure without an option for your new package, `configure' will
74 probably detect the previously built and installed `libintl.a' file and
75 will decide to use this. This might not be desirable. You should use
76 the more recent version of the GNU `gettext' library. I.e. if the file
77 `intl/VERSION' shows that the library which comes with this package is
78 more recent, you should use
79
80 ./configure --with-included-gettext
81
82 to prevent auto-detection.
83
84 The configuration process will not test for the `catgets' function
85 and therefore it will not be used. The reason is that even an
86 emulation of `gettext' on top of `catgets' could not provide all the
87 extensions of the GNU `gettext' library.
88
89 Internationalized packages usually have many `po/LL.po' files, where
90 LL gives an ISO 639 two-letter code identifying the language. Unless
91 translations have been forbidden at `configure' time by using the
92 `--disable-nls' switch, all available translations are installed
93 together with the package. However, the environment variable `LINGUAS'
94 may be set, prior to configuration, to limit the installed set.
95 `LINGUAS' should then contain a space separated list of two-letter
96 codes, stating which languages are allowed.
97
98 1.3 Using This Package
99 ======================
100
101 As a user, if your language has been installed for this package, you
102 only have to set the `LANG' environment variable to the appropriate
103 `LL_CC' combination. If you happen to have the `LC_ALL' or some other
104 `LC_xxx' environment variables set, you should unset them before
105 setting `LANG', otherwise the setting of `LANG' will not have the
106 desired effect. Here `LL' is an ISO 639 two-letter language code, and
107 `CC' is an ISO 3166 two-letter country code. For example, let's
108 suppose that you speak German and live in Germany. At the shell
109 prompt, merely execute `setenv LANG de_DE' (in `csh'),
110 `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
111 This can be done from your `.login' or `.profile' file, once and for
112 all.
113
114 You might think that the country code specification is redundant.
115 But in fact, some languages have dialects in different countries. For
116 example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The
117 country code serves to distinguish the dialects.
118
119 The locale naming convention of `LL_CC', with `LL' denoting the
120 language and `CC' denoting the country, is the one use on systems based
121 on GNU libc. On other systems, some variations of this scheme are
122 used, such as `LL' or `LL_CC.ENCODING'. You can get the list of
123 locales supported by your system for your language by running the
124 command `locale -a | grep '^LL''.
125
126 Not all programs have translations for all languages. By default, an
127 English message is shown in place of a nonexistent translation. If you
128 understand other languages, you can set up a priority list of languages.
129 This is done through a different environment variable, called
130 `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG'
131 for the purpose of message handling, but you still need to have `LANG'
132 set to the primary language; this is required by other parts of the
133 system libraries. For example, some Swedish users who would rather
134 read translations in German than English for when Swedish is not
135 available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
136
137 Special advice for Norwegian users: The language code for Norwegian
138 bokma*l changed from `no' to `nb' recently (in 2003). During the
139 transition period, while some message catalogs for this language are
140 installed under `nb' and some older ones under `no', it's recommended
141 for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and
142 older translations are used.
143
144 In the `LANGUAGE' environment variable, but not in the `LANG'
145 environment variable, `LL_CC' combinations can be abbreviated as `LL'
146 to denote the language's main dialect. For example, `de' is equivalent
147 to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
148 (Portuguese as spoken in Portugal) in this context.
149
150 1.4 Translating Teams
151 =====================
152
153 For the Free Translation Project to be a success, we need interested
154 people who like their own language and write it well, and who are also
155 able to synergize with other translators speaking the same language.
156 Each translation team has its own mailing list. The up-to-date list of
157 teams can be found at the Free Translation Project's homepage,
158 `http://translationproject.org/', in the "Teams" area.
159
160 If you'd like to volunteer to _work_ at translating messages, you
161 should become a member of the translating team for your own language.
162 The subscribing address is _not_ the same as the list itself, it has
163 `-request' appended. For example, speakers of Swedish can send a
164 message to `sv-request@li.org', having this message body:
165
166 subscribe
167
168 Keep in mind that team members are expected to participate
169 _actively_ in translations, or at solving translational difficulties,
170 rather than merely lurking around. If your team does not exist yet and
171 you want to start one, or if you are unsure about what to do or how to
172 get started, please write to `coordinator@translationproject.org' to
173 reach the coordinator for all translator teams.
174
175 The English team is special. It works at improving and uniformizing
176 the terminology in use. Proven linguistic skills are praised more than
177 programming skills, here.
178
179 1.5 Available Packages
180 ======================
181
182 Languages are not equally supported in all packages. The following
183 matrix shows the current state of internationalization, as of November
184 2007. The matrix shows, in regard of each package, for which languages
185 PO files have been submitted to translation coordination, with a
186 translation percentage of at least 50%.
187
188 Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB eo
189 +----------------------------------------------------+
190 Compendium | [] [] [] [] |
191 a2ps | [] [] [] [] [] |
192 aegis | () |
193 ant-phone | () |
194 anubis | [] |
195 ap-utils | |
196 aspell | [] [] [] [] [] |
197 bash | [] |
198 bfd | |
199 bibshelf | [] |
200 binutils | |
201 bison | [] [] |
202 bison-runtime | [] |
203 bluez-pin | [] [] [] [] [] |
204 cflow | [] |
205 clisp | [] [] [] |
206 console-tools | [] [] |
207 coreutils | [] [] [] [] |
208 cpio | |
209 cpplib | [] [] [] |
210 cryptonit | [] |
211 dialog | |
212 diffutils | [] [] [] [] [] [] |
213 doodle | [] |
214 e2fsprogs | [] [] |
215 enscript | [] [] [] [] |
216 fetchmail | [] [] () [] [] |
217 findutils | [] |
218 findutils_stable | [] [] [] |
219 flex | [] [] [] |
220 fslint | |
221 gas | |
222 gawk | [] [] [] |
223 gcal | [] |
224 gcc | [] |
225 gettext-examples | [] [] [] [] [] |
226 gettext-runtime | [] [] [] [] [] |
227 gettext-tools | [] [] |
228 gip | [] |
229 gliv | [] [] |
230 glunarclock | [] |
231 gmult | [] [] |
232 gnubiff | () |
233 gnucash | [] [] () () [] |
234 gnuedu | |
235 gnulib | [] |
236 gnunet | |
237 gnunet-gtk | |
238 gnutls | [] |
239 gpe-aerial | [] [] |
240 gpe-beam | [] [] |
241 gpe-calendar | |
242 gpe-clock | [] [] |
243 gpe-conf | [] [] |
244 gpe-contacts | |
245 gpe-edit | [] |
246 gpe-filemanager | |
247 gpe-go | [] |
248 gpe-login | [] [] |
249 gpe-ownerinfo | [] [] |
250 gpe-package | |
251 gpe-sketchbook | [] [] |
252 gpe-su | [] [] |
253 gpe-taskmanager | [] [] |
254 gpe-timesheet | [] |
255 gpe-today | [] [] |
256 gpe-todo | |
257 gphoto2 | [] [] [] [] |
258 gprof | [] [] |
259 gpsdrive | |
260 gramadoir | [] [] |
261 grep | [] [] |
262 gretl | () |
263 gsasl | |
264 gss | |
265 gst-plugins-bad | [] [] |
266 gst-plugins-base | [] [] |
267 gst-plugins-good | [] [] [] |
268 gst-plugins-ugly | [] [] |
269 gstreamer | [] [] [] [] [] [] [] |
270 gtick | () |
271 gtkam | [] [] [] [] |
272 gtkorphan | [] [] |
273 gtkspell | [] [] [] [] |
274 gutenprint | [] |
275 hello | [] [] [] [] [] |
276 herrie | [] |
277 hylafax | |
278 idutils | [] [] |
279 indent | [] [] [] [] |
280 iso_15924 | |
281 iso_3166 | [] [] [] [] [] [] [] [] [] [] [] |
282 iso_3166_2 | |
283 iso_4217 | [] [] [] |
284 iso_639 | [] [] [] [] |
285 jpilot | [] |
286 jtag | |
287 jwhois | |
288 kbd | [] [] [] [] |
289 keytouch | [] [] |
290 keytouch-editor | [] |
291 keytouch-keyboa... | [] |
292 latrine | () |
293 ld | [] |
294 leafpad | [] [] [] [] [] |
295 libc | [] [] [] [] |
296 libexif | [] |
297 libextractor | [] |
298 libgpewidget | [] [] [] |
299 libgpg-error | [] |
300 libgphoto2 | [] [] |
301 libgphoto2_port | [] [] |
302 libgsasl | |
303 libiconv | [] [] |
304 libidn | [] [] [] |
305 lifelines | [] () |
306 lilypond | [] |
307 lingoteach | |
308 lprng | |
309 lynx | [] [] [] [] |
310 m4 | [] [] [] [] |
311 mailfromd | |
312 mailutils | [] |
313 make | [] [] |
314 man-db | [] [] [] |
315 minicom | [] [] [] |
316 nano | [] [] [] |
317 opcodes | [] |
318 parted | [] [] |
319 pilot-qof | |
320 popt | [] [] [] |
321 psmisc | [] |
322 pwdutils | |
323 qof | |
324 radius | [] |
325 recode | [] [] [] [] [] [] |
326 rpm | [] |
327 screem | |
328 scrollkeeper | [] [] [] [] [] [] [] [] |
329 sed | [] [] [] |
330 shared-mime-info | [] [] [] [] () [] [] [] |
331 sharutils | [] [] [] [] [] [] |
332 shishi | |
333 skencil | [] () |
334 solfege | |
335 soundtracker | [] [] |
336 sp | [] |
337 system-tools-ba... | [] [] [] [] [] [] [] [] [] |
338 tar | [] [] |
339 texinfo | [] [] [] |
340 tin | () () |
341 tuxpaint | [] [] [] [] [] [] |
342 unicode-han-tra... | |
343 unicode-transla... | |
344 util-linux | [] [] [] [] |
345 util-linux-ng | [] [] [] [] |
346 vorbis-tools | [] |
347 wastesedge | () |
348 wdiff | [] [] [] [] |
349 wget | [] [] [] |
350 xchat | [] [] [] [] [] [] [] |
351 xkeyboard-config | [] |
352 xpad | [] [] [] |
353 +----------------------------------------------------+
354 af am ar az be bg bs ca cs cy da de el en en_GB eo
355 6 0 2 1 8 26 2 40 48 2 56 88 15 1 15 18
356
357 es et eu fa fi fr ga gl gu he hi hr hu id is it
358 +--------------------------------------------------+
359 Compendium | [] [] [] [] [] |
360 a2ps | [] [] [] () |
361 aegis | |
362 ant-phone | [] |
363 anubis | [] |
364 ap-utils | [] [] |
365 aspell | [] [] [] |
366 bash | [] |
367 bfd | [] [] |
368 bibshelf | [] [] [] |
369 binutils | [] [] [] |
370 bison | [] [] [] [] [] [] |
371 bison-runtime | [] [] [] [] [] |
372 bluez-pin | [] [] [] [] [] |
373 cflow | [] |
374 clisp | [] [] |
375 console-tools | |
376 coreutils | [] [] [] [] [] [] |
377 cpio | [] [] [] |
378 cpplib | [] [] |
379 cryptonit | [] |
380 dialog | [] [] [] |
381 diffutils | [] [] [] [] [] [] [] [] [] |
382 doodle | [] [] |
383 e2fsprogs | [] [] [] |
384 enscript | [] [] [] |
385 fetchmail | [] |
386 findutils | [] [] [] |
387 findutils_stable | [] [] [] [] |
388 flex | [] [] [] |
389 fslint | |
390 gas | [] [] |
391 gawk | [] [] [] [] () |
392 gcal | [] [] |
393 gcc | [] |
394 gettext-examples | [] [] [] [] [] [] [] |
395 gettext-runtime | [] [] [] [] [] [] |
396 gettext-tools | [] [] [] [] |
397 gip | [] [] [] [] |
398 gliv | () |
399 glunarclock | [] [] [] |
400 gmult | [] [] [] |
401 gnubiff | () () |
402 gnucash | () () () |
403 gnuedu | [] |
404 gnulib | [] [] [] |
405 gnunet | |
406 gnunet-gtk | |
407 gnutls | |
408 gpe-aerial | [] [] |
409 gpe-beam | [] [] |
410 gpe-calendar | |
411 gpe-clock | [] [] [] [] |
412 gpe-conf | [] |
413 gpe-contacts | [] [] |
414 gpe-edit | [] [] [] [] |
415 gpe-filemanager | [] |
416 gpe-go | [] [] [] |
417 gpe-login | [] [] [] |
418 gpe-ownerinfo | [] [] [] [] [] |
419 gpe-package | [] |
420 gpe-sketchbook | [] [] |
421 gpe-su | [] [] [] [] |
422 gpe-taskmanager | [] [] [] |
423 gpe-timesheet | [] [] [] [] |
424 gpe-today | [] [] [] [] |
425 gpe-todo | [] |
426 gphoto2 | [] [] [] [] [] |
427 gprof | [] [] [] [] [] |
428 gpsdrive | [] |
429 gramadoir | [] [] |
430 grep | [] [] [] |
431 gretl | [] [] [] () |
432 gsasl | [] [] |
433 gss | [] [] |
434 gst-plugins-bad | [] [] [] [] |
435 gst-plugins-base | [] [] [] [] |
436 gst-plugins-good | [] [] [] [] [] |
437 gst-plugins-ugly | [] [] [] [] |
438 gstreamer | [] [] [] |
439 gtick | [] [] [] |
440 gtkam | [] [] [] [] |
441 gtkorphan | [] [] |
442 gtkspell | [] [] [] [] [] [] [] |
443 gutenprint | [] |
444 hello | [] [] [] [] [] [] [] [] [] [] [] [] [] |
445 herrie | [] |
446 hylafax | |
447 idutils | [] [] [] [] [] |
448 indent | [] [] [] [] [] [] [] [] [] [] |
449 iso_15924 | [] |
450 iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] |
451 iso_3166_2 | [] |
452 iso_4217 | [] [] [] [] [] [] |
453 iso_639 | [] [] [] [] [] [] |
454 jpilot | [] [] |
455 jtag | [] |
456 jwhois | [] [] [] [] [] |
457 kbd | [] [] |
458 keytouch | [] [] [] |
459 keytouch-editor | [] |
460 keytouch-keyboa... | [] [] |
461 latrine | [] [] |
462 ld | [] [] [] [] |
463 leafpad | [] [] [] [] [] [] |
464 libc | [] [] [] [] [] |
465 libexif | [] |
466 libextractor | [] |
467 libgpewidget | [] [] [] [] [] |
468 libgpg-error | [] |
469 libgphoto2 | [] [] [] |
470 libgphoto2_port | [] [] |
471 libgsasl | [] [] |
472 libiconv | [] [] [] |
473 libidn | [] [] |
474 lifelines | () |
475 lilypond | [] [] [] |
476 lingoteach | [] [] [] |
477 lprng | |
478 lynx | [] [] [] |
479 m4 | [] [] [] [] |
480 mailfromd | |
481 mailutils | [] [] |
482 make | [] [] [] [] [] [] [] [] |
483 man-db | [] |
484 minicom | [] [] [] [] |
485 nano | [] [] [] [] [] [] [] |
486 opcodes | [] [] [] [] |
487 parted | [] [] [] |
488 pilot-qof | |
489 popt | [] [] [] [] |
490 psmisc | [] [] |
491 pwdutils | |
492 qof | [] |
493 radius | [] [] |
494 recode | [] [] [] [] [] [] [] [] |
495 rpm | [] [] |
496 screem | |
497 scrollkeeper | [] [] [] |
498 sed | [] [] [] [] [] |
499 shared-mime-info | [] [] [] [] [] [] |
500 sharutils | [] [] [] [] [] [] [] [] |
501 shishi | [] |
502 skencil | [] [] |
503 solfege | [] |
504 soundtracker | [] [] [] |
505 sp | [] |
506 system-tools-ba... | [] [] [] [] [] [] [] [] [] |
507 tar | [] [] [] [] [] |
508 texinfo | [] [] [] |
509 tin | [] () |
510 tuxpaint | [] [] |
511 unicode-han-tra... | |
512 unicode-transla... | [] [] |
513 util-linux | [] [] [] [] [] [] [] |
514 util-linux-ng | [] [] [] [] [] [] [] |
515 vorbis-tools | |
516 wastesedge | () |
517 wdiff | [] [] [] [] [] [] [] [] |
518 wget | [] [] [] [] [] [] [] [] |
519 xchat | [] [] [] [] [] [] [] |
520 xkeyboard-config | [] [] [] [] |
521 xpad | [] [] [] |
522 +--------------------------------------------------+
523 es et eu fa fi fr ga gl gu he hi hr hu id is it
524 85 22 14 2 48 101 61 12 2 8 2 6 53 29 1 52
525
526 ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn
527 +--------------------------------------------------+
528 Compendium | [] |
529 a2ps | () [] [] |
530 aegis | () |
531 ant-phone | [] |
532 anubis | [] [] [] |
533 ap-utils | [] |
534 aspell | [] [] |
535 bash | [] |
536 bfd | |
537 bibshelf | [] |
538 binutils | |
539 bison | [] [] [] |
540 bison-runtime | [] [] [] |
541 bluez-pin | [] [] [] |
542 cflow | |
543 clisp | [] |
544 console-tools | |
545 coreutils | [] |
546 cpio | [] |
547 cpplib | [] |
548 cryptonit | [] |
549 dialog | [] [] |
550 diffutils | [] [] [] |
551 doodle | |
552 e2fsprogs | [] |
553 enscript | [] |
554 fetchmail | [] [] |
555 findutils | [] |
556 findutils_stable | [] |
557 flex | [] [] |
558 fslint | |
559 gas | |
560 gawk | [] [] |
561 gcal | |
562 gcc | |
563 gettext-examples | [] [] [] |
564 gettext-runtime | [] [] [] |
565 gettext-tools | [] [] |
566 gip | [] [] |
567 gliv | [] |
568 glunarclock | [] [] |
569 gmult | [] [] [] |
570 gnubiff | |
571 gnucash | () () () |
572 gnuedu | |
573 gnulib | [] [] |
574 gnunet | |
575 gnunet-gtk | |
576 gnutls | [] |
577 gpe-aerial | [] |
578 gpe-beam | [] |
579 gpe-calendar | [] |
580 gpe-clock | [] [] [] |
581 gpe-conf | [] [] [] |
582 gpe-contacts | [] |
583 gpe-edit | [] [] [] |
584 gpe-filemanager | [] [] |
585 gpe-go | [] [] [] |
586 gpe-login | [] [] [] |
587 gpe-ownerinfo | [] [] |
588 gpe-package | [] [] |
589 gpe-sketchbook | [] [] |
590 gpe-su | [] [] [] |
591 gpe-taskmanager | [] [] [] [] |
592 gpe-timesheet | [] |
593 gpe-today | [] [] |
594 gpe-todo | [] |
595 gphoto2 | [] [] |
596 gprof | [] |
597 gpsdrive | [] |
598 gramadoir | () |
599 grep | [] [] |
600 gretl | |
601 gsasl | [] |
602 gss | |
603 gst-plugins-bad | [] |
604 gst-plugins-base | [] |
605 gst-plugins-good | [] |
606 gst-plugins-ugly | [] |
607 gstreamer | [] |
608 gtick | [] |
609 gtkam | [] [] |
610 gtkorphan | [] |
611 gtkspell | [] [] |
612 gutenprint | [] |
613 hello | [] [] [] [] [] [] [] |
614 herrie | [] |
615 hylafax | |
616 idutils | [] |
617 indent | [] [] |
618 iso_15924 | [] |
619 iso_3166 | [] [] [] [] [] [] [] [] |
620 iso_3166_2 | [] |
621 iso_4217 | [] [] [] |
622 iso_639 | [] [] [] [] |
623 jpilot | () () |
624 jtag | |
625 jwhois | [] |
626 kbd | [] |
627 keytouch | [] |
628 keytouch-editor | [] |
629 keytouch-keyboa... | |
630 latrine | [] |
631 ld | |
632 leafpad | [] [] |
633 libc | [] [] [] |
634 libexif | |
635 libextractor | |
636 libgpewidget | [] |
637 libgpg-error | |
638 libgphoto2 | [] |
639 libgphoto2_port | [] |
640 libgsasl | [] |
641 libiconv | [] |
642 libidn | [] [] |
643 lifelines | [] |
644 lilypond | [] |
645 lingoteach | [] |
646 lprng | |
647 lynx | [] [] |
648 m4 | [] [] |
649 mailfromd | |
650 mailutils | |
651 make | [] [] [] |
652 man-db | |
653 minicom | [] |
654 nano | [] [] [] |
655 opcodes | [] |
656 parted | [] [] |
657 pilot-qof | |
658 popt | [] [] [] |
659 psmisc | [] [] [] |
660 pwdutils | |
661 qof | |
662 radius | |
663 recode | [] |
664 rpm | [] [] |
665 screem | [] |
666 scrollkeeper | [] [] [] [] |
667 sed | [] [] |
668 shared-mime-info | [] [] [] [] [] [] [] |
669 sharutils | [] [] |
670 shishi | |
671 skencil | |
672 solfege | () () |
673 soundtracker | |
674 sp | () |
675 system-tools-ba... | [] [] [] [] |
676 tar | [] [] [] |
677 texinfo | [] [] |
678 tin | |
679 tuxpaint | () [] [] |
680 unicode-han-tra... | |
681 unicode-transla... | |
682 util-linux | [] [] |
683 util-linux-ng | [] [] |
684 vorbis-tools | |
685 wastesedge | [] |
686 wdiff | [] [] |
687 wget | [] [] |
688 xchat | [] [] [] [] |
689 xkeyboard-config | [] [] [] |
690 xpad | [] [] [] |
691 +--------------------------------------------------+
692 ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn
693 51 2 25 3 2 0 6 0 2 2 20 0 11 1 103 6
694
695 or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
696 +--------------------------------------------------+
697 Compendium | [] [] [] [] [] |
698 a2ps | () [] [] [] [] [] [] |
699 aegis | () () |
700 ant-phone | [] [] |
701 anubis | [] [] [] |
702 ap-utils | () |
703 aspell | [] [] [] |
704 bash | [] [] |
705 bfd | |
706 bibshelf | [] |
707 binutils | [] [] |
708 bison | [] [] [] [] [] |
709 bison-runtime | [] [] [] [] [] |
710 bluez-pin | [] [] [] [] [] [] [] [] [] |
711 cflow | [] |
712 clisp | [] |
713 console-tools | [] |
714 coreutils | [] [] [] [] |
715 cpio | [] [] [] |
716 cpplib | [] |
717 cryptonit | [] [] |
718 dialog | [] |
719 diffutils | [] [] [] [] [] [] |
720 doodle | [] [] |
721 e2fsprogs | [] [] |
722 enscript | [] [] [] [] [] |
723 fetchmail | [] [] [] |
724 findutils | [] [] [] |
725 findutils_stable | [] [] [] [] [] [] |
726 flex | [] [] [] [] [] |
727 fslint | [] |
728 gas | |
729 gawk | [] [] [] [] |
730 gcal | [] |
731 gcc | [] [] |
732 gettext-examples | [] [] [] [] [] [] [] [] |
733 gettext-runtime | [] [] [] [] [] [] [] [] |
734 gettext-tools | [] [] [] [] [] [] [] |
735 gip | [] [] [] [] |
736 gliv | [] [] [] [] [] [] |
737 glunarclock | [] [] [] [] [] [] |
738 gmult | [] [] [] [] |
739 gnubiff | () [] |
740 gnucash | () [] |
741 gnuedu | |
742 gnulib | [] [] [] |
743 gnunet | |
744 gnunet-gtk | [] |
745 gnutls | [] [] |
746 gpe-aerial | [] [] [] [] [] [] [] |
747 gpe-beam | [] [] [] [] [] [] [] |
748 gpe-calendar | [] [] [] [] |
749 gpe-clock | [] [] [] [] [] [] [] [] |
750 gpe-conf | [] [] [] [] [] [] [] |
751 gpe-contacts | [] [] [] [] [] |
752 gpe-edit | [] [] [] [] [] [] [] [] [] |
753 gpe-filemanager | [] [] |
754 gpe-go | [] [] [] [] [] [] [] [] |
755 gpe-login | [] [] [] [] [] [] [] [] |
756 gpe-ownerinfo | [] [] [] [] [] [] [] [] |
757 gpe-package | [] [] |
758 gpe-sketchbook | [] [] [] [] [] [] [] [] |
759 gpe-su | [] [] [] [] [] [] [] [] |
760 gpe-taskmanager | [] [] [] [] [] [] [] [] |
761 gpe-timesheet | [] [] [] [] [] [] [] [] |
762 gpe-today | [] [] [] [] [] [] [] [] |
763 gpe-todo | [] [] [] [] |
764 gphoto2 | [] [] [] [] [] [] |
765 gprof | [] [] [] |
766 gpsdrive | [] [] |
767 gramadoir | [] [] |
768 grep | [] [] [] [] |
769 gretl | [] [] [] |
770 gsasl | [] [] [] |
771 gss | [] [] [] [] |
772 gst-plugins-bad | [] [] [] |
773 gst-plugins-base | [] [] |
774 gst-plugins-good | [] [] |
775 gst-plugins-ugly | [] [] [] |
776 gstreamer | [] [] [] [] |
777 gtick | [] |
778 gtkam | [] [] [] [] [] |
779 gtkorphan | [] |
780 gtkspell | [] [] [] [] [] [] [] [] |
781 gutenprint | [] |
782 hello | [] [] [] [] [] [] [] [] |
783 herrie | [] [] [] |
784 hylafax | |
785 idutils | [] [] [] [] [] |
786 indent | [] [] [] [] [] [] [] |
787 iso_15924 | |
788 iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] |
789 iso_3166_2 | |
790 iso_4217 | [] [] [] [] [] [] [] |
791 iso_639 | [] [] [] [] [] [] [] |
792 jpilot | |
793 jtag | [] |
794 jwhois | [] [] [] [] |
795 kbd | [] [] [] |
796 keytouch | [] |
797 keytouch-editor | [] |
798 keytouch-keyboa... | [] |
799 latrine | |
800 ld | [] |
801 leafpad | [] [] [] [] [] [] |
802 libc | [] [] [] [] |
803 libexif | [] [] |
804 libextractor | [] [] |
805 libgpewidget | [] [] [] [] [] [] [] [] |
806 libgpg-error | [] [] [] |
807 libgphoto2 | [] |
808 libgphoto2_port | [] [] [] |
809 libgsasl | [] [] [] [] |
810 libiconv | [] [] [] |
811 libidn | [] [] () |
812 lifelines | [] [] |
813 lilypond | |
814 lingoteach | [] |
815 lprng | [] |
816 lynx | [] [] [] |
817 m4 | [] [] [] [] [] |
818 mailfromd | [] |
819 mailutils | [] [] [] |
820 make | [] [] [] [] |
821 man-db | [] [] [] [] |
822 minicom | [] [] [] [] [] |
823 nano | [] [] [] [] |
824 opcodes | [] [] |
825 parted | [] |
826 pilot-qof | |
827 popt | [] [] [] [] |
828 psmisc | [] [] |
829 pwdutils | [] [] |
830 qof | [] [] |
831 radius | [] [] |
832 recode | [] [] [] [] [] [] [] |
833 rpm | [] [] [] [] |
834 screem | |
835 scrollkeeper | [] [] [] [] [] [] [] |
836 sed | [] [] [] [] [] [] [] [] [] |
837 shared-mime-info | [] [] [] [] [] [] |
838 sharutils | [] [] [] [] |
839 shishi | [] |
840 skencil | [] [] [] |
841 solfege | [] |
842 soundtracker | [] [] |
843 sp | |
844 system-tools-ba... | [] [] [] [] [] [] [] [] [] |
845 tar | [] [] [] [] |
846 texinfo | [] [] [] [] |
847 tin | () |
848 tuxpaint | [] [] [] [] [] [] |
849 unicode-han-tra... | |
850 unicode-transla... | |
851 util-linux | [] [] [] [] |
852 util-linux-ng | [] [] [] [] |
853 vorbis-tools | [] |
854 wastesedge | |
855 wdiff | [] [] [] [] [] [] [] |
856 wget | [] [] [] [] |
857 xchat | [] [] [] [] [] [] [] |
858 xkeyboard-config | [] [] [] |
859 xpad | [] [] [] |
860 +--------------------------------------------------+
861 or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
862 0 5 77 31 53 4 58 72 3 45 46 9 45 122 3
863
864 tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu
865 +---------------------------------------------------+
866 Compendium | [] [] [] [] | 19
867 a2ps | [] [] [] | 19
868 aegis | [] | 1
869 ant-phone | [] [] | 6
870 anubis | [] [] [] | 11
871 ap-utils | () [] | 4
872 aspell | [] [] [] | 16
873 bash | [] | 6
874 bfd | | 2
875 bibshelf | [] | 7
876 binutils | [] [] [] [] | 9
877 bison | [] [] [] [] | 20
878 bison-runtime | [] [] [] [] | 18
879 bluez-pin | [] [] [] [] [] [] | 28
880 cflow | [] [] | 5
881 clisp | | 9
882 console-tools | [] [] | 5
883 coreutils | [] [] [] | 18
884 cpio | [] [] [] [] | 11
885 cpplib | [] [] [] [] [] | 12
886 cryptonit | [] | 6
887 dialog | [] [] [] | 9
888 diffutils | [] [] [] [] [] | 29
889 doodle | [] | 6
890 e2fsprogs | [] [] | 10
891 enscript | [] [] [] | 16
892 fetchmail | [] [] | 12
893 findutils | [] [] [] | 11
894 findutils_stable | [] [] [] [] | 18
895 flex | [] [] | 15
896 fslint | [] | 2
897 gas | [] | 3
898 gawk | [] [] [] | 16
899 gcal | [] | 5
900 gcc | [] [] [] | 7
901 gettext-examples | [] [] [] [] [] [] | 29
902 gettext-runtime | [] [] [] [] [] [] | 28
903 gettext-tools | [] [] [] [] [] | 20
904 gip | [] [] | 13
905 gliv | [] [] | 11
906 glunarclock | [] [] [] | 15
907 gmult | [] [] [] [] | 16
908 gnubiff | [] | 2
909 gnucash | () [] | 5
910 gnuedu | [] | 2
911 gnulib | [] | 10
912 gnunet | | 0
913 gnunet-gtk | [] [] | 3
914 gnutls | | 4
915 gpe-aerial | [] [] | 14
916 gpe-beam | [] [] | 14
917 gpe-calendar | [] [] | 7
918 gpe-clock | [] [] [] [] | 21
919 gpe-conf | [] [] [] | 16
920 gpe-contacts | [] [] | 10
921 gpe-edit | [] [] [] [] [] | 22
922 gpe-filemanager | [] [] | 7
923 gpe-go | [] [] [] [] | 19
924 gpe-login | [] [] [] [] [] | 21
925 gpe-ownerinfo | [] [] [] [] | 21
926 gpe-package | [] | 6
927 gpe-sketchbook | [] [] | 16
928 gpe-su | [] [] [] [] | 21
929 gpe-taskmanager | [] [] [] [] | 21
930 gpe-timesheet | [] [] [] [] | 18
931 gpe-today | [] [] [] [] [] | 21
932 gpe-todo | [] [] | 8
933 gphoto2 | [] [] [] [] | 21
934 gprof | [] [] | 13
935 gpsdrive | [] | 5
936 gramadoir | [] | 7
937 grep | [] | 12
938 gretl | | 6
939 gsasl | [] [] [] | 9
940 gss | [] | 7
941 gst-plugins-bad | [] [] [] | 13
942 gst-plugins-base | [] [] | 11
943 gst-plugins-good | [] [] [] [] [] | 16
944 gst-plugins-ugly | [] [] [] | 13
945 gstreamer | [] [] [] | 18
946 gtick | [] [] | 7
947 gtkam | [] | 16
948 gtkorphan | [] | 7
949 gtkspell | [] [] [] [] [] [] | 27
950 gutenprint | | 4
951 hello | [] [] [] [] [] | 38
952 herrie | [] [] | 8
953 hylafax | | 0
954 idutils | [] [] | 15
955 indent | [] [] [] [] [] | 28
956 iso_15924 | [] [] | 4
957 iso_3166 | [] [] [] [] [] [] [] [] [] | 54
958 iso_3166_2 | [] [] | 4
959 iso_4217 | [] [] [] [] [] | 24
960 iso_639 | [] [] [] [] [] | 26
961 jpilot | [] [] [] [] | 7
962 jtag | [] | 3
963 jwhois | [] [] [] | 13
964 kbd | [] [] [] | 13
965 keytouch | [] | 8
966 keytouch-editor | [] | 5
967 keytouch-keyboa... | [] | 5
968 latrine | [] [] | 5
969 ld | [] [] [] [] | 10
970 leafpad | [] [] [] [] [] | 24
971 libc | [] [] [] | 19
972 libexif | [] | 5
973 libextractor | [] | 5
974 libgpewidget | [] [] [] | 20
975 libgpg-error | [] | 6
976 libgphoto2 | [] [] | 9
977 libgphoto2_port | [] [] [] | 11
978 libgsasl | [] | 8
979 libiconv | [] [] | 11
980 libidn | [] [] | 11
981 lifelines | | 4
982 lilypond | [] | 6
983 lingoteach | [] | 6
984 lprng | [] | 2
985 lynx | [] [] [] | 15
986 m4 | [] [] [] | 18
987 mailfromd | [] [] | 3
988 mailutils | [] [] | 8
989 make | [] [] [] | 20
990 man-db | [] | 9
991 minicom | [] | 14
992 nano | [] [] [] | 20
993 opcodes | [] [] | 10
994 parted | [] [] [] | 11
995 pilot-qof | [] | 1
996 popt | [] [] [] [] | 18
997 psmisc | [] [] | 10
998 pwdutils | [] | 3
999 qof | [] | 4
1000 radius | [] [] | 7
1001 recode | [] [] [] | 25
1002 rpm | [] [] [] [] | 13
1003 screem | [] | 2
1004 scrollkeeper | [] [] [] [] | 26
1005 sed | [] [] [] [] | 23
1006 shared-mime-info | [] [] [] | 29
1007 sharutils | [] [] [] | 23
1008 shishi | [] | 3
1009 skencil | [] | 7
1010 solfege | [] | 3
1011 soundtracker | [] [] | 9
1012 sp | [] | 3
1013 system-tools-ba... | [] [] [] [] [] [] [] | 38
1014 tar | [] [] [] | 17
1015 texinfo | [] [] [] | 15
1016 tin | | 1
1017 tuxpaint | [] [] [] | 19
1018 unicode-han-tra... | | 0
1019 unicode-transla... | | 2
1020 util-linux | [] [] [] | 20
1021 util-linux-ng | [] [] [] | 20
1022 vorbis-tools | [] [] | 4
1023 wastesedge | | 1
1024 wdiff | [] [] | 23
1025 wget | [] [] [] | 20
1026 xchat | [] [] [] [] | 29
1027 xkeyboard-config | [] [] [] | 14
1028 xpad | [] [] [] | 15
1029 +---------------------------------------------------+
1030 76 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu
1031 163 domains 0 3 1 74 51 0 143 21 1 57 7 45 0 2036
1032
1033 Some counters in the preceding matrix are higher than the number of
1034 visible blocks let us expect. This is because a few extra PO files are
1035 used for implementing regional variants of languages, or language
1036 dialects.
1037
1038 For a PO file in the matrix above to be effective, the package to
1039 which it applies should also have been internationalized and
1040 distributed as such by its maintainer. There might be an observable
1041 lag between the mere existence a PO file and its wide availability in a
1042 distribution.
1043
1044 If November 2007 seems to be old, you may fetch a more recent copy
1045 of this `ABOUT-NLS' file on most GNU archive sites. The most
1046 up-to-date matrix with full percentage details can be found at
1047 `http://translationproject.org/extra/matrix.html'.
1048
1049 1.6 Using `gettext' in new packages
1050 ===================================
1051
1052 If you are writing a freely available program and want to
1053 internationalize it you are welcome to use GNU `gettext' in your
1054 package. Of course you have to respect the GNU Library General Public
1055 License which covers the use of the GNU `gettext' library. This means
1056 in particular that even non-free programs can use `libintl' as a shared
1057 library, whereas only free software can use `libintl' as a static
1058 library or use modified versions of `libintl'.
1059
1060 Once the sources are changed appropriately and the setup can handle
1061 the use of `gettext' the only thing missing are the translations. The
1062 Free Translation Project is also available for packages which are not
1063 developed inside the GNU project. Therefore the information given above
1064 applies also for every other Free Software Project. Contact
1065 `coordinator@translationproject.org' to make the `.pot' files available
1066 to the translation teams.
1067
+0
-3
current/AUTHORS less more
0 (C) Yaacov Zamir <kzamir@walla.co.il> 2003-2008.
1 (C) Amos Shapir <amos083@hotmail.com> 1984-2003.
2
+0
-674
current/COPYING less more
0 GNU GENERAL PUBLIC LICENSE
1 Version 3, 29 June 2007
2
3 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4 Everyone is permitted to copy and distribute verbatim copies
5 of this license document, but changing it is not allowed.
6
7 Preamble
8
9 The GNU General Public License is a free, copyleft license for
10 software and other kinds of works.
11
12 The licenses for most software and other practical works are designed
13 to take away your freedom to share and change the works. By contrast,
14 the GNU General Public License is intended to guarantee your freedom to
15 share and change all versions of a program--to make sure it remains free
16 software for all its users. We, the Free Software Foundation, use the
17 GNU General Public License for most of our software; it applies also to
18 any other work released this way by its authors. You can apply it to
19 your programs, too.
20
21 When we speak of free software, we are referring to freedom, not
22 price. Our General Public Licenses are designed to make sure that you
23 have the freedom to distribute copies of free software (and charge for
24 them if you wish), that you receive source code or can get it if you
25 want it, that you can change the software or use pieces of it in new
26 free programs, and that you know you can do these things.
27
28 To protect your rights, we need to prevent others from denying you
29 these rights or asking you to surrender the rights. Therefore, you have
30 certain responsibilities if you distribute copies of the software, or if
31 you modify it: responsibilities to respect the freedom of others.
32
33 For example, if you distribute copies of such a program, whether
34 gratis or for a fee, you must pass on to the recipients the same
35 freedoms that you received. You must make sure that they, too, receive
36 or can get the source code. And you must show them these terms so they
37 know their rights.
38
39 Developers that use the GNU GPL protect your rights with two steps:
40 (1) assert copyright on the software, and (2) offer you this License
41 giving you legal permission to copy, distribute and/or modify it.
42
43 For the developers' and authors' protection, the GPL clearly explains
44 that there is no warranty for this free software. For both users' and
45 authors' sake, the GPL requires that modified versions be marked as
46 changed, so that their problems will not be attributed erroneously to
47 authors of previous versions.
48
49 Some devices are designed to deny users access to install or run
50 modified versions of the software inside them, although the manufacturer
51 can do so. This is fundamentally incompatible with the aim of
52 protecting users' freedom to change the software. The systematic
53 pattern of such abuse occurs in the area of products for individuals to
54 use, which is precisely where it is most unacceptable. Therefore, we
55 have designed this version of the GPL to prohibit the practice for those
56 products. If such problems arise substantially in other domains, we
57 stand ready to extend this provision to those domains in future versions
58 of the GPL, as needed to protect the freedom of users.
59
60 Finally, every program is threatened constantly by software patents.
61 States should not allow patents to restrict development and use of
62 software on general-purpose computers, but in those that do, we wish to
63 avoid the special danger that patents applied to a free program could
64 make it effectively proprietary. To prevent this, the GPL assures that
65 patents cannot be used to render the program non-free.
66
67 The precise terms and conditions for copying, distribution and
68 modification follow.
69
70 TERMS AND CONDITIONS
71
72 0. Definitions.
73
74 "This License" refers to version 3 of the GNU General Public License.
75
76 "Copyright" also means copyright-like laws that apply to other kinds of
77 works, such as semiconductor masks.
78
79 "The Program" refers to any copyrightable work licensed under this
80 License. Each licensee is addressed as "you". "Licensees" and
81 "recipients" may be individuals or organizations.
82
83 To "modify" a work means to copy from or adapt all or part of the work
84 in a fashion requiring copyright permission, other than the making of an
85 exact copy. The resulting work is called a "modified version" of the
86 earlier work or a work "based on" the earlier work.
87
88 A "covered work" means either the unmodified Program or a work based
89 on the Program.
90
91 To "propagate" a work means to do anything with it that, without
92 permission, would make you directly or secondarily liable for
93 infringement under applicable copyright law, except executing it on a
94 computer or modifying a private copy. Propagation includes copying,
95 distribution (with or without modification), making available to the
96 public, and in some countries other activities as well.
97
98 To "convey" a work means any kind of propagation that enables other
99 parties to make or receive copies. Mere interaction with a user through
100 a computer network, with no transfer of a copy, is not conveying.
101
102 An interactive user interface displays "Appropriate Legal Notices"
103 to the extent that it includes a convenient and prominently visible
104 feature that (1) displays an appropriate copyright notice, and (2)
105 tells the user that there is no warranty for the work (except to the
106 extent that warranties are provided), that licensees may convey the
107 work under this License, and how to view a copy of this License. If
108 the interface presents a list of user commands or options, such as a
109 menu, a prominent item in the list meets this criterion.
110
111 1. Source Code.
112
113 The "source code" for a work means the preferred form of the work
114 for making modifications to it. "Object code" means any non-source
115 form of a work.
116
117 A "Standard Interface" means an interface that either is an official
118 standard defined by a recognized standards body, or, in the case of
119 interfaces specified for a particular programming language, one that
120 is widely used among developers working in that language.
121
122 The "System Libraries" of an executable work include anything, other
123 than the work as a whole, that (a) is included in the normal form of
124 packaging a Major Component, but which is not part of that Major
125 Component, and (b) serves only to enable use of the work with that
126 Major Component, or to implement a Standard Interface for which an
127 implementation is available to the public in source code form. A
128 "Major Component", in this context, means a major essential component
129 (kernel, window system, and so on) of the specific operating system
130 (if any) on which the executable work runs, or a compiler used to
131 produce the work, or an object code interpreter used to run it.
132
133 The "Corresponding Source" for a work in object code form means all
134 the source code needed to generate, install, and (for an executable
135 work) run the object code and to modify the work, including scripts to
136 control those activities. However, it does not include the work's
137 System Libraries, or general-purpose tools or generally available free
138 programs which are used unmodified in performing those activities but
139 which are not part of the work. For example, Corresponding Source
140 includes interface definition files associated with source files for
141 the work, and the source code for shared libraries and dynamically
142 linked subprograms that the work is specifically designed to require,
143 such as by intimate data communication or control flow between those
144 subprograms and other parts of the work.
145
146 The Corresponding Source need not include anything that users
147 can regenerate automatically from other parts of the Corresponding
148 Source.
149
150 The Corresponding Source for a work in source code form is that
151 same work.
152
153 2. Basic Permissions.
154
155 All rights granted under this License are granted for the term of
156 copyright on the Program, and are irrevocable provided the stated
157 conditions are met. This License explicitly affirms your unlimited
158 permission to run the unmodified Program. The output from running a
159 covered work is covered by this License only if the output, given its
160 content, constitutes a covered work. This License acknowledges your
161 rights of fair use or other equivalent, as provided by copyright law.
162
163 You may make, run and propagate covered works that you do not
164 convey, without conditions so long as your license otherwise remains
165 in force. You may convey covered works to others for the sole purpose
166 of having them make modifications exclusively for you, or provide you
167 with facilities for running those works, provided that you comply with
168 the terms of this License in conveying all material for which you do
169 not control copyright. Those thus making or running the covered works
170 for you must do so exclusively on your behalf, under your direction
171 and control, on terms that prohibit them from making any copies of
172 your copyrighted material outside their relationship with you.
173
174 Conveying under any other circumstances is permitted solely under
175 the conditions stated below. Sublicensing is not allowed; section 10
176 makes it unnecessary.
177
178 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
179
180 No covered work shall be deemed part of an effective technological
181 measure under any applicable law fulfilling obligations under article
182 11 of the WIPO copyright treaty adopted on 20 December 1996, or
183 similar laws prohibiting or restricting circumvention of such
184 measures.
185
186 When you convey a covered work, you waive any legal power to forbid
187 circumvention of technological measures to the extent such circumvention
188 is effected by exercising rights under this License with respect to
189 the covered work, and you disclaim any intention to limit operation or
190 modification of the work as a means of enforcing, against the work's
191 users, your or third parties' legal rights to forbid circumvention of
192 technological measures.
193
194 4. Conveying Verbatim Copies.
195
196 You may convey verbatim copies of the Program's source code as you
197 receive it, in any medium, provided that you conspicuously and
198 appropriately publish on each copy an appropriate copyright notice;
199 keep intact all notices stating that this License and any
200 non-permissive terms added in accord with section 7 apply to the code;
201 keep intact all notices of the absence of any warranty; and give all
202 recipients a copy of this License along with the Program.
203
204 You may charge any price or no price for each copy that you convey,
205 and you may offer support or warranty protection for a fee.
206
207 5. Conveying Modified Source Versions.
208
209 You may convey a work based on the Program, or the modifications to
210 produce it from the Program, in the form of source code under the
211 terms of section 4, provided that you also meet all of these conditions:
212
213 a) The work must carry prominent notices stating that you modified
214 it, and giving a relevant date.
215
216 b) The work must carry prominent notices stating that it is
217 released under this License and any conditions added under section
218 7. This requirement modifies the requirement in section 4 to
219 "keep intact all notices".
220
221 c) You must license the entire work, as a whole, under this
222 License to anyone who comes into possession of a copy. This
223 License will therefore apply, along with any applicable section 7
224 additional terms, to the whole of the work, and all its parts,
225 regardless of how they are packaged. This License gives no
226 permission to license the work in any other way, but it does not
227 invalidate such permission if you have separately received it.
228
229 d) If the work has interactive user interfaces, each must display
230 Appropriate Legal Notices; however, if the Program has interactive
231 interfaces that do not display Appropriate Legal Notices, your
232 work need not make them do so.
233
234 A compilation of a covered work with other separate and independent
235 works, which are not by their nature extensions of the covered work,
236 and which are not combined with it such as to form a larger program,
237 in or on a volume of a storage or distribution medium, is called an
238 "aggregate" if the compilation and its resulting copyright are not
239 used to limit the access or legal rights of the compilation's users
240 beyond what the individual works permit. Inclusion of a covered work
241 in an aggregate does not cause this License to apply to the other
242 parts of the aggregate.
243
244 6. Conveying Non-Source Forms.
245
246 You may convey a covered work in object code form under the terms
247 of sections 4 and 5, provided that you also convey the
248 machine-readable Corresponding Source under the terms of this License,
249 in one of these ways:
250
251 a) Convey the object code in, or embodied in, a physical product
252 (including a physical distribution medium), accompanied by the
253 Corresponding Source fixed on a durable physical medium
254 customarily used for software interchange.
255
256 b) Convey the object code in, or embodied in, a physical product
257 (including a physical distribution medium), accompanied by a
258 written offer, valid for at least three years and valid for as
259 long as you offer spare parts or customer support for that product
260 model, to give anyone who possesses the object code either (1) a
261 copy of the Corresponding Source for all the software in the
262 product that is covered by this License, on a durable physical
263 medium customarily used for software interchange, for a price no
264 more than your reasonable cost of physically performing this
265 conveying of source, or (2) access to copy the
266 Corresponding Source from a network server at no charge.
267
268 c) Convey individual copies of the object code with a copy of the
269 written offer to provide the Corresponding Source. This
270 alternative is allowed only occasionally and noncommercially, and
271 only if you received the object code with such an offer, in accord
272 with subsection 6b.
273
274 d) Convey the object code by offering access from a designated
275 place (gratis or for a charge), and offer equivalent access to the
276 Corresponding Source in the same way through the same place at no
277 further charge. You need not require recipients to copy the
278 Corresponding Source along with the object code. If the place to
279 copy the object code is a network server, the Corresponding Source
280 may be on a different server (operated by you or a third party)
281 that supports equivalent copying facilities, provided you maintain
282 clear directions next to the object code saying where to find the
283 Corresponding Source. Regardless of what server hosts the
284 Corresponding Source, you remain obligated to ensure that it is
285 available for as long as needed to satisfy these requirements.
286
287 e) Convey the object code using peer-to-peer transmission, provided
288 you inform other peers where the object code and Corresponding
289 Source of the work are being offered to the general public at no
290 charge under subsection 6d.
291
292 A separable portion of the object code, whose source code is excluded
293 from the Corresponding Source as a System Library, need not be
294 included in conveying the object code work.
295
296 A "User Product" is either (1) a "consumer product", which means any
297 tangible personal property which is normally used for personal, family,
298 or household purposes, or (2) anything designed or sold for incorporation
299 into a dwelling. In determining whether a product is a consumer product,
300 doubtful cases shall be resolved in favor of coverage. For a particular
301 product received by a particular user, "normally used" refers to a
302 typical or common use of that class of product, regardless of the status
303 of the particular user or of the way in which the particular user
304 actually uses, or expects or is expected to use, the product. A product
305 is a consumer product regardless of whether the product has substantial
306 commercial, industrial or non-consumer uses, unless such uses represent
307 the only significant mode of use of the product.
308
309 "Installation Information" for a User Product means any methods,
310 procedures, authorization keys, or other information required to install
311 and execute modified versions of a covered work in that User Product from
312 a modified version of its Corresponding Source. The information must
313 suffice to ensure that the continued functioning of the modified object
314 code is in no case prevented or interfered with solely because
315 modification has been made.
316
317 If you convey an object code work under this section in, or with, or
318 specifically for use in, a User Product, and the conveying occurs as
319 part of a transaction in which the right of possession and use of the
320 User Product is transferred to the recipient in perpetuity or for a
321 fixed term (regardless of how the transaction is characterized), the
322 Corresponding Source conveyed under this section must be accompanied
323 by the Installation Information. But this requirement does not apply
324 if neither you nor any third party retains the ability to install
325 modified object code on the User Product (for example, the work has
326 been installed in ROM).
327
328 The requirement to provide Installation Information does not include a
329 requirement to continue to provide support service, warranty, or updates
330 for a work that has been modified or installed by the recipient, or for
331 the User Product in which it has been modified or installed. Access to a
332 network may be denied when the modification itself materially and
333 adversely affects the operation of the network or violates the rules and
334 protocols for communication across the network.
335
336 Corresponding Source conveyed, and Installation Information provided,
337 in accord with this section must be in a format that is publicly
338 documented (and with an implementation available to the public in
339 source code form), and must require no special password or key for
340 unpacking, reading or copying.
341
342 7. Additional Terms.
343
344 "Additional permissions" are terms that supplement the terms of this
345 License by making exceptions from one or more of its conditions.
346 Additional permissions that are applicable to the entire Program shall
347 be treated as though they were included in this License, to the extent
348 that they are valid under applicable law. If additional permissions
349 apply only to part of the Program, that part may be used separately
350 under those permissions, but the entire Program remains governed by
351 this License without regard to the additional permissions.
352
353 When you convey a copy of a covered work, you may at your option
354 remove any additional permissions from that copy, or from any part of
355 it. (Additional permissions may be written to require their own
356 removal in certain cases when you modify the work.) You may place
357 additional permissions on material, added by you to a covered work,
358 for which you have or can give appropriate copyright permission.
359
360 Notwithstanding any other provision of this License, for material you
361 add to a covered work, you may (if authorized by the copyright holders of
362 that material) supplement the terms of this License with terms:
363
364 a) Disclaiming warranty or limiting liability differently from the
365 terms of sections 15 and 16 of this License; or
366
367 b) Requiring preservation of specified reasonable legal notices or
368 author attributions in that material or in the Appropriate Legal
369 Notices displayed by works containing it; or
370
371 c) Prohibiting misrepresentation of the origin of that material, or
372 requiring that modified versions of such material be marked in
373 reasonable ways as different from the original version; or
374
375 d) Limiting the use for publicity purposes of names of licensors or
376 authors of the material; or
377
378 e) Declining to grant rights under trademark law for use of some
379 trade names, trademarks, or service marks; or
380
381 f) Requiring indemnification of licensors and authors of that
382 material by anyone who conveys the material (or modified versions of
383 it) with contractual assumptions of liability to the recipient, for
384 any liability that these contractual assumptions directly impose on
385 those licensors and authors.
386
387 All other non-permissive additional terms are considered "further
388 restrictions" within the meaning of section 10. If the Program as you
389 received it, or any part of it, contains a notice stating that it is
390 governed by this License along with a term that is a further
391 restriction, you may remove that term. If a license document contains
392 a further restriction but permits relicensing or conveying under this
393 License, you may add to a covered work material governed by the terms
394 of that license document, provided that the further restriction does
395 not survive such relicensing or conveying.
396
397 If you add terms to a covered work in accord with this section, you
398 must place, in the relevant source files, a statement of the
399 additional terms that apply to those files, or a notice indicating
400 where to find the applicable terms.
401
402 Additional terms, permissive or non-permissive, may be stated in the
403 form of a separately written license, or stated as exceptions;
404 the above requirements apply either way.
405
406 8. Termination.
407
408 You may not propagate or modify a covered work except as expressly
409 provided under this License. Any attempt otherwise to propagate or
410 modify it is void, and will automatically terminate your rights under
411 this License (including any patent licenses granted under the third
412 paragraph of section 11).
413
414 However, if you cease all violation of this License, then your
415 license from a particular copyright holder is reinstated (a)
416 provisionally, unless and until the copyright holder explicitly and
417 finally terminates your license, and (b) permanently, if the copyright
418 holder fails to notify you of the violation by some reasonable means
419 prior to 60 days after the cessation.
420
421 Moreover, your license from a particular copyright holder is
422 reinstated permanently if the copyright holder notifies you of the
423 violation by some reasonable means, this is the first time you have
424 received notice of violation of this License (for any work) from that
425 copyright holder, and you cure the violation prior to 30 days after
426 your receipt of the notice.
427
428 Termination of your rights under this section does not terminate the
429 licenses of parties who have received copies or rights from you under
430 this License. If your rights have been terminated and not permanently
431 reinstated, you do not qualify to receive new licenses for the same
432 material under section 10.
433
434 9. Acceptance Not Required for Having Copies.
435
436 You are not required to accept this License in order to receive or
437 run a copy of the Program. Ancillary propagation of a covered work
438 occurring solely as a consequence of using peer-to-peer transmission
439 to receive a copy likewise does not require acceptance. However,
440 nothing other than this License grants you permission to propagate or
441 modify any covered work. These actions infringe copyright if you do
442 not accept this License. Therefore, by modifying or propagating a
443 covered work, you indicate your acceptance of this License to do so.
444
445 10. Automatic Licensing of Downstream Recipients.
446
447 Each time you convey a covered work, the recipient automatically
448 receives a license from the original licensors, to run, modify and
449 propagate that work, subject to this License. You are not responsible
450 for enforcing compliance by third parties with this License.
451
452 An "entity transaction" is a transaction transferring control of an
453 organization, or substantially all assets of one, or subdividing an
454 organization, or merging organizations. If propagation of a covered
455 work results from an entity transaction, each party to that
456 transaction who receives a copy of the work also receives whatever
457 licenses to the work the party's predecessor in interest had or could
458 give under the previous paragraph, plus a right to possession of the
459 Corresponding Source of the work from the predecessor in interest, if
460 the predecessor has it or can get it with reasonable efforts.
461
462 You may not impose any further restrictions on the exercise of the
463 rights granted or affirmed under this License. For example, you may
464 not impose a license fee, royalty, or other charge for exercise of
465 rights granted under this License, and you may not initiate litigation
466 (including a cross-claim or counterclaim in a lawsuit) alleging that
467 any patent claim is infringed by making, using, selling, offering for
468 sale, or importing the Program or any portion of it.
469
470 11. Patents.
471
472 A "contributor" is a copyright holder who authorizes use under this
473 License of the Program or a work on which the Program is based. The
474 work thus licensed is called the contributor's "contributor version".
475
476 A contributor's "essential patent claims" are all patent claims
477 owned or controlled by the contributor, whether already acquired or
478 hereafter acquired, that would be infringed by some manner, permitted
479 by this License, of making, using, or selling its contributor version,
480 but do not include claims that would be infringed only as a
481 consequence of further modification of the contributor version. For
482 purposes of this definition, "control" includes the right to grant
483 patent sublicenses in a manner consistent with the requirements of
484 this License.
485
486 Each contributor grants you a non-exclusive, worldwide, royalty-free
487 patent license under the contributor's essential patent claims, to
488 make, use, sell, offer for sale, import and otherwise run, modify and
489 propagate the contents of its contributor version.
490
491 In the following three paragraphs, a "patent license" is any express
492 agreement or commitment, however denominated, not to enforce a patent
493 (such as an express permission to practice a patent or covenant not to
494 sue for patent infringement). To "grant" such a patent license to a
495 party means to make such an agreement or commitment not to enforce a
496 patent against the party.
497
498 If you convey a covered work, knowingly relying on a patent license,
499 and the Corresponding Source of the work is not available for anyone
500 to copy, free of charge and under the terms of this License, through a
501 publicly available network server or other readily accessible means,
502 then you must either (1) cause the Corresponding Source to be so
503 available, or (2) arrange to deprive yourself of the benefit of the
504 patent license for this particular work, or (3) arrange, in a manner
505 consistent with the requirements of this License, to extend the patent
506 license to downstream recipients. "Knowingly relying" means you have
507 actual knowledge that, but for the patent license, your conveying the
508 covered work in a country, or your recipient's use of the covered work
509 in a country, would infringe one or more identifiable patents in that
510 country that you have reason to believe are valid.
511
512 If, pursuant to or in connection with a single transaction or
513 arrangement, you convey, or propagate by procuring conveyance of, a
514 covered work, and grant a patent license to some of the parties
515 receiving the covered work authorizing them to use, propagate, modify
516 or convey a specific copy of the covered work, then the patent license
517 you grant is automatically extended to all recipients of the covered
518 work and works based on it.
519
520 A patent license is "discriminatory" if it does not include within
521 the scope of its coverage, prohibits the exercise of, or is
522 conditioned on the non-exercise of one or more of the rights that are
523 specifically granted under this License. You may not convey a covered
524 work if you are a party to an arrangement with a third party that is
525 in the business of distributing software, under which you make payment
526 to the third party based on the extent of your activity of conveying
527 the work, and under which the third party grants, to any of the
528 parties who would receive the covered work from you, a discriminatory
529 patent license (a) in connection with copies of the covered work
530 conveyed by you (or copies made from those copies), or (b) primarily
531 for and in connection with specific products or compilations that
532 contain the covered work, unless you entered into that arrangement,
533 or that patent license was granted, prior to 28 March 2007.
534
535 Nothing in this License shall be construed as excluding or limiting
536 any implied license or other defenses to infringement that may
537 otherwise be available to you under applicable patent law.
538
539 12. No Surrender of Others' Freedom.
540
541 If conditions are imposed on you (whether by court order, agreement or
542 otherwise) that contradict the conditions of this License, they do not
543 excuse you from the conditions of this License. If you cannot convey a
544 covered work so as to satisfy simultaneously your obligations under this
545 License and any other pertinent obligations, then as a consequence you may
546 not convey it at all. For example, if you agree to terms that obligate you
547 to collect a royalty for further conveying from those to whom you convey
548 the Program, the only way you could satisfy both those terms and this
549 License would be to refrain entirely from conveying the Program.
550
551 13. Use with the GNU Affero General Public License.
552
553 Notwithstanding any other provision of this License, you have
554 permission to link or combine any covered work with a work licensed
555 under version 3 of the GNU Affero General Public License into a single
556 combined work, and to convey the resulting work. The terms of this
557 License will continue to apply to the part which is the covered work,
558 but the special requirements of the GNU Affero General Public License,
559 section 13, concerning interaction through a network will apply to the
560 combination as such.
561
562 14. Revised Versions of this License.
563
564 The Free Software Foundation may publish revised and/or new versions of
565 the GNU General Public License from time to time. Such new versions will
566 be similar in spirit to the present version, but may differ in detail to
567 address new problems or concerns.
568
569 Each version is given a distinguishing version number. If the
570 Program specifies that a certain numbered version of the GNU General
571 Public License "or any later version" applies to it, you have the
572 option of following the terms and conditions either of that numbered
573 version or of any later version published by the Free Software
574 Foundation. If the Program does not specify a version number of the
575 GNU General Public License, you may choose any version ever published
576 by the Free Software Foundation.
577
578 If the Program specifies that a proxy can decide which future
579 versions of the GNU General Public License can be used, that proxy's
580 public statement of acceptance of a version permanently authorizes you
581 to choose that version for the Program.
582
583 Later license versions may give you additional or different
584 permissions. However, no additional obligations are imposed on any
585 author or copyright holder as a result of your choosing to follow a
586 later version.
587
588 15. Disclaimer of Warranty.
589
590 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
591 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
592 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
593 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
594 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
595 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
596 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
597 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
598
599 16. Limitation of Liability.
600
601 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
602 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
603 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
604 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
605 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
606 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
607 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
608 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
609 SUCH DAMAGES.
610
611 17. Interpretation of Sections 15 and 16.
612
613 If the disclaimer of warranty and limitation of liability provided
614 above cannot be given local legal effect according to their terms,
615 reviewing courts shall apply local law that most closely approximates
616 an absolute waiver of all civil liability in connection with the
617 Program, unless a warranty or assumption of liability accompanies a
618 copy of the Program in return for a fee.
619
620 END OF TERMS AND CONDITIONS
621
622 How to Apply These Terms to Your New Programs
623
624 If you develop a new program, and you want it to be of the greatest
625 possible use to the public, the best way to achieve this is to make it
626 free software which everyone can redistribute and change under these terms.
627
628 To do so, attach the following notices to the program. It is safest
629 to attach them to the start of each source file to most effectively
630 state the exclusion of warranty; and each file should have at least
631 the "copyright" line and a pointer to where the full notice is found.
632
633 <one line to give the program's name and a brief idea of what it does.>
634 Copyright (C) <year> <name of author>
635
636 This program is free software: you can redistribute it and/or modify
637 it under the terms of the GNU General Public License as published by
638 the Free Software Foundation, either version 3 of the License, or
639 (at your option) any later version.
640
641 This program is distributed in the hope that it will be useful,
642 but WITHOUT ANY WARRANTY; without even the implied warranty of
643 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
644 GNU General Public License for more details.
645
646 You should have received a copy of the GNU General Public License
647 along with this program. If not, see <http://www.gnu.org/licenses/>.
648
649 Also add information on how to contact you by electronic and paper mail.
650
651 If the program does terminal interaction, make it output a short
652 notice like this when it starts in an interactive mode:
653
654 <program> Copyright (C) <year> <name of author>
655 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
656 This is free software, and you are welcome to redistribute it
657 under certain conditions; type `show c' for details.
658
659 The hypothetical commands `show w' and `show c' should show the appropriate
660 parts of the General Public License. Of course, your program's commands
661 might be different; for a GUI interface, you would use an "about box".
662
663 You should also get your employer (if you work as a programmer) or school,
664 if any, to sign a "copyright disclaimer" for the program, if necessary.
665 For more information on this, and how to apply and follow the GNU GPL, see
666 <http://www.gnu.org/licenses/>.
667
668 The GNU General Public License does not permit incorporating your program
669 into proprietary programs. If your program is a subroutine library, you
670 may consider it more useful to permit linking proprietary applications with
671 the library. If this is what you want to do, use the GNU Lesser General
672 Public License instead of this License. But first, please read
673 <http://www.gnu.org/philosophy/why-not-lgpl.html>.
+0
-190
current/ChangeLog less more
0 libhdate (1.4.11)
1
2 * Add Ruby bindings
3 * Add PHP bindings
4 * Add GPL notice to the example files (Bug report: Baruch Even)
5 * Add a patch to print todays date in hcal in bold (Patch: Patrik Nilsson)
6 * Fix documentation of files and structs (Bug report: Baruch Even)
7 * Update Swedish translation (Thanks: Patrik Nilsson)
8 * Fix hdate_get_utc_sun_time_deg
9 function only work in low altitudes (Bug report: Ido Kanner)
10 * Update pascal bindings and examples (Patch: Ido Kanner)
11
12 -- Yaacov Zamir <kzamir@wall.co.il> Saturday, 5 Jan 2008 22:00
13
14 libhdate (1.4.10)
15
16 * Move to GPL3 (COPYING, AUTHORS)
17 - Add Amos Shapir as author in Authors file
18 - Update Amos's email
19 * Change defult config options (configure.in)
20 - Gettext version used now is 0.17
21 - Python, Perl, Pascal bindings now built by default
22 * Update the man files (docs/man)
23 - add man files for c++ language
24 - move all man files to docs/man directory
25 * Bug fixes
26 - Fix Kislev Hebrew translation misspell (Bug report: Ariel Galola)
27 - Fix Julian day calculation (Bug report: Afonso Arantes)
28 * Add new events
29 - 30 shvat : Family day
30 - 12 heshvan : rabin memorial day
31 - 29 tamuz : zhabotinsky day
32 * Changes to hdate command line utility
33 - flag -j print the Julian day number
34 - if argument is greater than 100000 it is asumed as Julian day number
35 - "hdate -S YEAR" now print out same format as "hebcal -d -h -e YEAR"
36
37 -- Yaacov Zamir <kzamir@wall.co.il> Thusday, 3 January 2008 22:00
38
39 libhdate (1.4.9)
40
41 * Fix endianess bug in big endian machins (/examples/hcal/hcal.c and hdate.c)
42
43 -- Yaacov Zamir <kzamir@wall.co.il> Saturday, 7 April 2007 22:00
44
45 libhdate (1.4.8)
46
47 * Fix help printing bug: Add new line at the end of hdate help text.
48 * Add two new functios to the time of day section:
49 hdate_get_utc_sun_time_full - gets the time of first light,
50 talit, sunris, sunset, first stars and three stars.
51 hdate_get_utc_sun_time_deg - gets the time the sun is on
52 some known altitude.
53 * Add Times of day to hdate command line tool.
54 supported times: first-light, talit, sunrise, mid-day, sunset, first-stars
55 and three-stars
56 * Add Times of Shabat enter/leave to hdate command line tool.
57 Shabat starts 20 min before sunset, and leave at three stars.
58 * Add new oprions in hdate command line tool to it's man page
59
60 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 8 Jun 2006 12:13
61
62 libhdate (1.4.7)
63
64 * Fix pesach II in hebrew po file.
65 * hcal utility export strict html 4.01.
66 * hcal utility can export diaspora holidays
67 * Update hcal utility man file.
68
69 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 18 Apr 2006 12:13
70
71 libhdate (1.4.3)
72
73 * Fix header of spanish po file.
74 * Daniel Nylander: Swedish translation.
75
76 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 10 Apr 2006 12:13
77
78 libhdate (1.4.2)
79
80 * Ido Kanner <idokan@gmail.com> - Update free pascal bindings.
81 * Update address of Free Software Foundation in COPYING file.
82 * make the spec.in file more configurable.
83
84 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Nov 2005 12:13
85
86 libhdate (1.4.0)
87
88 * Michael Kaminsky - libhdate now reports the 2nd day of yom
89 tov on Sukkot and Peseach as Yom Tov and not Chol Hamoed.
90 * Cange C++ API - insert the location and diaspora flag as
91 part of the hdate object.
92 * Docomentation - separate the c and the cpp docs, more readable.
93 * hdate example can now export iCal formated output.
94
95 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 8 Aug 2005 22:13
96
97 libhdate (1.3.1)
98
99 * Add "const correctness" patch from Markus Elfring (elfring).
100 * Manual page seems to contain a hyphen where a minus sign was
101 intended, patch by Lior Kaplan.
102 * Remove the debian directory from the ziped package.
103
104 -- Yaacov Zamir <kzamir@wall.co.il> Sat, 30 Jul 2005 22:13
105
106 libhdate (1.3.0)
107
108 * Add examples to the doc directory
109 * doc directory is now /usr/doc/libhdate0 and no /usr/doc/hdate
110 * make int_to_string aware of LANGUAGE system variable, make it more gettext compatible
111
112 -- Yaacov Zamir <kzamir@wall.co.il> Wed, 27 Jul 2005 18:13
113
114 libhdate (1.0.1)
115
116 * first major reales number.
117 * start to number the shared library.
118 * stable api.
119 * updated utility programs hdate/hcal.
120 * added man files for library and utility programs.
121 * python and perl bindings.
122 * free pascal binding by Ido Kanner <idokan@gmail.com>
123 * ru, fr, he, es translations, thanks to Peled Esti and Boris Peterberg.
124 * added debian dir and RH spec file for easy packing, thanks to Oron Peled.
125
126 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13
127
128 libhdate (0.30.0)
129
130 * add es_MX translation by Peled Esti <esti@actcom.co.il>
131 * initial russian translation by Boris Peterberg
132
133 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13
134
135 libhdate (0.30.0)
136
137 * cpp, python and perl bindings
138 * examples for the new libhdate bindings
139
140 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 04 March 2005 15:19:29
141
142 libhdate (0.22.0)
143
144 * Michael Kaminsky's patch to Shavot II on diaspora reading.
145
146 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 28 Feb 2005 08:12:31
147
148 libhdate (0.22.0)
149
150 * New hebcal examples
151
152 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18
153
154 libhdate (0.21.0)
155
156 * New spec file by Oron Peled
157 * Diaspora holydays/readings
158 * New sunrise sunset functions
159 * New html examples
160 * New configure options to build / not build the examples
161
162 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18
163
164 libhdate (0.17.0)
165
166 * API chages.
167 * base struct change.
168
169 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 22 Feb 2005 19:34:22
170
171 libhdate (0.16.3)
172
173 * Try to fix date conversion bug, thanks Michael Kaminsky.
174
175 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 21 Feb 2005 09:03:12
176
177 libhdate (0.16.2)
178
179 * Syntax error, and weeks calculation bug fixed by Michael Kaminsky.
180
181 -- Yaacov Zamir <kzamir@wall.co.il> Sun, 20 Feb 2005 06:53:12
182
183 libhdate (0.16.1)
184
185 * Fix locale bug in int_to_string.
186 * Add examples directory.
187 * Minor bug fixes.
188
189 -- Yaacov Zamir <kzamir@wall.co.il> Sat, 19 Feb 2005 20:07:19
+0
-236
current/INSTALL less more
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
4 Software Foundation, Inc.
5
6 This file is free documentation; the Free Software Foundation gives
7 unlimited permission to copy, distribute and modify it.
8
9 Basic Installation
10 ==================
11
12 These are generic installation instructions.
13
14 The `configure' shell script attempts to guess correct values for
15 various system-dependent variables used during compilation. It uses
16 those values to create a `Makefile' in each directory of the package.
17 It may also create one or more `.h' files containing system-dependent
18 definitions. Finally, it creates a shell script `config.status' that
19 you can run in the future to recreate the current configuration, and a
20 file `config.log' containing compiler output (useful mainly for
21 debugging `configure').
22
23 It can also use an optional file (typically called `config.cache'
24 and enabled with `--cache-file=config.cache' or simply `-C') that saves
25 the results of its tests to speed up reconfiguring. (Caching is
26 disabled by default to prevent problems with accidental use of stale
27 cache files.)
28
29 If you need to do unusual things to compile the package, please try
30 to figure out how `configure' could check whether to do them, and mail
31 diffs or instructions to the address given in the `README' so they can
32 be considered for the next release. If you are using the cache, and at
33 some point `config.cache' contains results you don't want to keep, you
34 may remove or edit it.
35
36 The file `configure.ac' (or `configure.in') is used to create
37 `configure' by a program called `autoconf'. You only need
38 `configure.ac' if you want to change it or regenerate `configure' using
39 a newer version of `autoconf'.
40
41 The simplest way to compile this package is:
42
43 1. `cd' to the directory containing the package's source code and type
44 `./configure' to configure the package for your system. If you're
45 using `csh' on an old version of System V, you might need to type
46 `sh ./configure' instead to prevent `csh' from trying to execute
47 `configure' itself.
48
49 Running `configure' takes awhile. While running, it prints some
50 messages telling which features it is checking for.
51
52 2. Type `make' to compile the package.
53
54 3. Optionally, type `make check' to run any self-tests that come with
55 the package.
56
57 4. Type `make install' to install the programs and any data files and
58 documentation.
59
60 5. You can remove the program binaries and object files from the
61 source code directory by typing `make clean'. To also remove the
62 files that `configure' created (so you can compile the package for
63 a different kind of computer), type `make distclean'. There is
64 also a `make maintainer-clean' target, but that is intended mainly
65 for the package's developers. If you use it, you may have to get
66 all sorts of other programs in order to regenerate files that came
67 with the distribution.
68
69 Compilers and Options
70 =====================
71
72 Some systems require unusual options for compilation or linking that the
73 `configure' script does not know about. Run `./configure --help' for
74 details on some of the pertinent environment variables.
75
76 You can give `configure' initial values for configuration parameters
77 by setting variables in the command line or in the environment. Here
78 is an example:
79
80 ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
81
82 *Note Defining Variables::, for more details.
83
84 Compiling For Multiple Architectures
85 ====================================
86
87 You can compile the package for more than one kind of computer at the
88 same time, by placing the object files for each architecture in their
89 own directory. To do this, you must use a version of `make' that
90 supports the `VPATH' variable, such as GNU `make'. `cd' to the
91 directory where you want the object files and executables to go and run
92 the `configure' script. `configure' automatically checks for the
93 source code in the directory that `configure' is in and in `..'.
94
95 If you have to use a `make' that does not support the `VPATH'
96 variable, you have to compile the package for one architecture at a
97 time in the source code directory. After you have installed the
98 package for one architecture, use `make distclean' before reconfiguring
99 for another architecture.
100
101 Installation Names
102 ==================
103
104 By default, `make install' installs the package's commands under
105 `/usr/local/bin', include files under `/usr/local/include', etc. You
106 can specify an installation prefix other than `/usr/local' by giving
107 `configure' the option `--prefix=PREFIX'.
108
109 You can specify separate installation prefixes for
110 architecture-specific files and architecture-independent files. If you
111 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
112 PREFIX as the prefix for installing programs and libraries.
113 Documentation and other data files still use the regular prefix.
114
115 In addition, if you use an unusual directory layout you can give
116 options like `--bindir=DIR' to specify different values for particular
117 kinds of files. Run `configure --help' for a list of the directories
118 you can set and what kinds of files go in them.
119
120 If the package supports it, you can cause programs to be installed
121 with an extra prefix or suffix on their names by giving `configure' the
122 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
123
124 Optional Features
125 =================
126
127 Some packages pay attention to `--enable-FEATURE' options to
128 `configure', where FEATURE indicates an optional part of the package.
129 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
130 is something like `gnu-as' or `x' (for the X Window System). The
131 `README' should mention any `--enable-' and `--with-' options that the
132 package recognizes.
133
134 For packages that use the X Window System, `configure' can usually
135 find the X include and library files automatically, but if it doesn't,
136 you can use the `configure' options `--x-includes=DIR' and
137 `--x-libraries=DIR' to specify their locations.
138
139 Specifying the System Type
140 ==========================
141
142 There may be some features `configure' cannot figure out automatically,
143 but needs to determine by the type of machine the package will run on.
144 Usually, assuming the package is built to be run on the _same_
145 architectures, `configure' can figure that out, but if it prints a
146 message saying it cannot guess the machine type, give it the
147 `--build=TYPE' option. TYPE can either be a short name for the system
148 type, such as `sun4', or a canonical name which has the form:
149
150 CPU-COMPANY-SYSTEM
151
152 where SYSTEM can have one of these forms:
153
154 OS KERNEL-OS
155
156 See the file `config.sub' for the possible values of each field. If
157 `config.sub' isn't included in this package, then this package doesn't
158 need to know the machine type.
159
160 If you are _building_ compiler tools for cross-compiling, you should
161 use the option `--target=TYPE' to select the type of system they will
162 produce code for.
163
164 If you want to _use_ a cross compiler, that generates code for a
165 platform different from the build platform, you should specify the
166 "host" platform (i.e., that on which the generated programs will
167 eventually be run) with `--host=TYPE'.
168
169 Sharing Defaults
170 ================
171
172 If you want to set default values for `configure' scripts to share, you
173 can create a site shell script called `config.site' that gives default
174 values for variables like `CC', `cache_file', and `prefix'.
175 `configure' looks for `PREFIX/share/config.site' if it exists, then
176 `PREFIX/etc/config.site' if it exists. Or, you can set the
177 `CONFIG_SITE' environment variable to the location of the site script.
178 A warning: not all `configure' scripts look for a site script.
179
180 Defining Variables
181 ==================
182
183 Variables not defined in a site shell script can be set in the
184 environment passed to `configure'. However, some packages may run
185 configure again during the build, and the customized values of these
186 variables may be lost. In order to avoid this problem, you should set
187 them in the `configure' command line, using `VAR=value'. For example:
188
189 ./configure CC=/usr/local2/bin/gcc
190
191 causes the specified `gcc' to be used as the C compiler (unless it is
192 overridden in the site shell script). Here is a another example:
193
194 /bin/bash ./configure CONFIG_SHELL=/bin/bash
195
196 Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
197 configuration-related scripts to be executed by `/bin/bash'.
198
199 `configure' Invocation
200 ======================
201
202 `configure' recognizes the following options to control how it operates.
203
204 `--help'
205 `-h'
206 Print a summary of the options to `configure', and exit.
207
208 `--version'
209 `-V'
210 Print the version of Autoconf used to generate the `configure'
211 script, and exit.
212
213 `--cache-file=FILE'
214 Enable the cache: use and save the results of the tests in FILE,
215 traditionally `config.cache'. FILE defaults to `/dev/null' to
216 disable caching.
217
218 `--config-cache'
219 `-C'
220 Alias for `--cache-file=config.cache'.
221
222 `--quiet'
223 `--silent'
224 `-q'
225 Do not print messages saying which checks are being made. To
226 suppress all normal output, redirect it to `/dev/null' (any error
227 messages will still be shown).
228
229 `--srcdir=DIR'
230 Look for the package's source code in directory DIR. Usually
231 `configure' can determine that directory automatically.
232
233 `configure' also accepts some other, not widely useful, options. Run
234 `configure --help' for more details.
235
+0
-724
current/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = .
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
39 $(srcdir)/Makefile.in $(srcdir)/libhdate.pc.in \
40 $(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING ChangeLog \
41 INSTALL NEWS compile config.guess config.rpath config.sub \
42 depcomp install-sh ltmain.sh missing
43 subdir = .
44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
45 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
46 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
47 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
48 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
49 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
50 $(top_srcdir)/configure.in
51 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
52 $(ACLOCAL_M4)
53 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
54 configure.lineno configure.status.lineno
55 mkinstalldirs = $(install_sh) -d
56 CONFIG_CLEAN_FILES = libhdate.pc
57 SOURCES =
58 DIST_SOURCES =
59 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
60 html-recursive info-recursive install-data-recursive \
61 install-exec-recursive install-info-recursive \
62 install-recursive installcheck-recursive installdirs-recursive \
63 pdf-recursive ps-recursive uninstall-info-recursive \
64 uninstall-recursive
65 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
66 am__vpath_adj = case $$p in \
67 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
68 *) f=$$p;; \
69 esac;
70 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
71 am__installdirs = "$(DESTDIR)$(libhdatedocdir)" \
72 "$(DESTDIR)$(pkgconfigdir)"
73 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
74 pkgconfigDATA_INSTALL = $(INSTALL_DATA)
75 DATA = $(libhdatedoc_DATA) $(pkgconfig_DATA)
76 ETAGS = etags
77 CTAGS = ctags
78 DIST_SUBDIRS = $(SUBDIRS)
79 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
80 distdir = $(PACKAGE)-$(VERSION)
81 top_distdir = $(distdir)
82 am__remove_distdir = \
83 { test ! -d $(distdir) \
84 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
85 && rm -fr $(distdir); }; }
86 DIST_ARCHIVES = $(distdir).tar.gz
87 GZIP_ENV = --best
88 distuninstallcheck_listfiles = find . -type f -print
89 distcleancheck_listfiles = find . -type f -print
90 ACLOCAL = @ACLOCAL@
91 AMDEP_FALSE = @AMDEP_FALSE@
92 AMDEP_TRUE = @AMDEP_TRUE@
93 AMTAR = @AMTAR@
94 AR = @AR@
95 AUTOCONF = @AUTOCONF@
96 AUTOHEADER = @AUTOHEADER@
97 AUTOMAKE = @AUTOMAKE@
98 AWK = @AWK@
99 CC = @CC@
100 CCDEPMODE = @CCDEPMODE@
101 CFLAGS = @CFLAGS@
102 CPP = @CPP@
103 CPPFLAGS = @CPPFLAGS@
104 CXX = @CXX@
105 CXXCPP = @CXXCPP@
106 CXXDEPMODE = @CXXDEPMODE@
107 CXXFLAGS = @CXXFLAGS@
108 CYGPATH_W = @CYGPATH_W@
109 DATADIRNAME = @DATADIRNAME@
110 DEFS = @DEFS@
111 DEPDIR = @DEPDIR@
112 ECHO = @ECHO@
113 ECHO_C = @ECHO_C@
114 ECHO_N = @ECHO_N@
115 ECHO_T = @ECHO_T@
116 EGREP = @EGREP@
117 EXEEXT = @EXEEXT@
118 F77 = @F77@
119 FFLAGS = @FFLAGS@
120 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
121 GMSGFMT = @GMSGFMT@
122 GMSGFMT_015 = @GMSGFMT_015@
123 GREP = @GREP@
124 INSTALL_DATA = @INSTALL_DATA@
125 INSTALL_PROGRAM = @INSTALL_PROGRAM@
126 INSTALL_SCRIPT = @INSTALL_SCRIPT@
127 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
128 INTLLIBS = @INTLLIBS@
129 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
130 LDFLAGS = @LDFLAGS@
131 LIBICONV = @LIBICONV@
132 LIBINTL = @LIBINTL@
133 LIBOBJS = @LIBOBJS@
134 LIBS = @LIBS@
135 LIBTOOL = @LIBTOOL@
136 LN_S = @LN_S@
137 LTLIBICONV = @LTLIBICONV@
138 LTLIBINTL = @LTLIBINTL@
139 LTLIBOBJS = @LTLIBOBJS@
140 MAINT = @MAINT@
141 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
142 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
143 MAKEINFO = @MAKEINFO@
144 MSGFMT = @MSGFMT@
145 MSGFMT_015 = @MSGFMT_015@
146 MSGMERGE = @MSGMERGE@
147 OBJEXT = @OBJEXT@
148 PACKAGE = @PACKAGE@
149 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
150 PACKAGE_NAME = @PACKAGE_NAME@
151 PACKAGE_STRING = @PACKAGE_STRING@
152 PACKAGE_TARNAME = @PACKAGE_TARNAME@
153 PACKAGE_VERSION = @PACKAGE_VERSION@
154 PATH_SEPARATOR = @PATH_SEPARATOR@
155 PA_MODULES_PATH = @PA_MODULES_PATH@
156 PA_VERSION = @PA_VERSION@
157 PE_CFLAGS = @PE_CFLAGS@
158 PE_MODULES_PATH = @PE_MODULES_PATH@
159 PH_CONFIG_PATH = @PH_CONFIG_PATH@
160 PH_MODULES_PATH = @PH_MODULES_PATH@
161 PKG_CONFIG = @PKG_CONFIG@
162 POSUB = @POSUB@
163 PY_CFLAGS = @PY_CFLAGS@
164 PY_MODULES_PATH = @PY_MODULES_PATH@
165 PY_VERSION = @PY_VERSION@
166 RANLIB = @RANLIB@
167 RU_CFLAGS = @RU_CFLAGS@
168 RU_MODULES_PATH = @RU_MODULES_PATH@
169 RU_VERSION = @RU_VERSION@
170 SED = @SED@
171 SET_MAKE = @SET_MAKE@
172 SHELL = @SHELL@
173 STRIP = @STRIP@
174 USE_NLS = @USE_NLS@
175 VERSION = @VERSION@
176 VERSION_INFO = @VERSION_INFO@
177 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
178 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
179 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
180 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
181 WITH_PERL_FALSE = @WITH_PERL_FALSE@
182 WITH_PERL_TRUE = @WITH_PERL_TRUE@
183 WITH_PHP_FALSE = @WITH_PHP_FALSE@
184 WITH_PHP_TRUE = @WITH_PHP_TRUE@
185 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
186 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
187 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
188 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
189 XGETTEXT = @XGETTEXT@
190 XGETTEXT_015 = @XGETTEXT_015@
191 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
192 ac_ct_CC = @ac_ct_CC@
193 ac_ct_CXX = @ac_ct_CXX@
194 ac_ct_F77 = @ac_ct_F77@
195 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
196 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
197 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
198 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
199 am__include = @am__include@
200 am__leading_dot = @am__leading_dot@
201 am__quote = @am__quote@
202 am__tar = @am__tar@
203 am__untar = @am__untar@
204 bindir = @bindir@
205 build = @build@
206 build_alias = @build_alias@
207 build_cpu = @build_cpu@
208 build_os = @build_os@
209 build_vendor = @build_vendor@
210 datadir = @datadir@
211 datarootdir = @datarootdir@
212 docdir = @docdir@
213 dvidir = @dvidir@
214 exec_prefix = @exec_prefix@
215 have_pascal = @have_pascal@
216 have_perl = @have_perl@
217 have_php = @have_php@
218 have_php_config = @have_php_config@
219 have_python = @have_python@
220 have_ruby = @have_ruby@
221 have_swig = @have_swig@
222 host = @host@
223 host_alias = @host_alias@
224 host_cpu = @host_cpu@
225 host_os = @host_os@
226 host_vendor = @host_vendor@
227 htmldir = @htmldir@
228 includedir = @includedir@
229 infodir = @infodir@
230 install_sh = @install_sh@
231 libdir = @libdir@
232 libexecdir = @libexecdir@
233 localedir = @localedir@
234 localstatedir = @localstatedir@
235 mandir = @mandir@
236 mkdir_p = @mkdir_p@
237 oldincludedir = @oldincludedir@
238 pdfdir = @pdfdir@
239 prefix = @prefix@
240 program_transform_name = @program_transform_name@
241 psdir = @psdir@
242 sbindir = @sbindir@
243 sharedstatedir = @sharedstatedir@
244 sysconfdir = @sysconfdir@
245 target_alias = @target_alias@
246 SUBDIRS = po docs src examples bindings
247 pkgconfigdir = $(libdir)/pkgconfig
248 pkgconfig_DATA = libhdate.pc
249 libhdatedocdir = ${prefix}/share/doc/libhdate
250 libhdatedoc_DATA = \
251 README\
252 COPYING\
253 AUTHORS\
254 ChangeLog\
255 INSTALL\
256 NEWS\
257 USE \
258 ABOUT-NLS
259
260 EXTRA_DIST = $(libhdatedoc_DATA) libhdate.pc.in
261 ACLOCAL_AMFLAGS = -I m4
262 all: all-recursive
263
264 .SUFFIXES:
265 am--refresh:
266 @:
267 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
268 @for dep in $?; do \
269 case '$(am__configure_deps)' in \
270 *$$dep*) \
271 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
272 cd $(srcdir) && $(AUTOMAKE) --gnu \
273 && exit 0; \
274 exit 1;; \
275 esac; \
276 done; \
277 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
278 cd $(top_srcdir) && \
279 $(AUTOMAKE) --gnu Makefile
280 .PRECIOUS: Makefile
281 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
282 @case '$?' in \
283 *config.status*) \
284 echo ' $(SHELL) ./config.status'; \
285 $(SHELL) ./config.status;; \
286 *) \
287 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
288 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
289 esac;
290
291 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
292 $(SHELL) ./config.status --recheck
293
294 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
295 cd $(srcdir) && $(AUTOCONF)
296 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
297 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
298 libhdate.pc: $(top_builddir)/config.status $(srcdir)/libhdate.pc.in
299 cd $(top_builddir) && $(SHELL) ./config.status $@
300
301 mostlyclean-libtool:
302 -rm -f *.lo
303
304 clean-libtool:
305 -rm -rf .libs _libs
306
307 distclean-libtool:
308 -rm -f libtool
309 uninstall-info-am:
310 install-libhdatedocDATA: $(libhdatedoc_DATA)
311 @$(NORMAL_INSTALL)
312 test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)"
313 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
314 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
315 f=$(am__strip_dir) \
316 echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
317 $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \
318 done
319
320 uninstall-libhdatedocDATA:
321 @$(NORMAL_UNINSTALL)
322 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
323 f=$(am__strip_dir) \
324 echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
325 rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
326 done
327 install-pkgconfigDATA: $(pkgconfig_DATA)
328 @$(NORMAL_INSTALL)
329 test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
330 @list='$(pkgconfig_DATA)'; for p in $$list; do \
331 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
332 f=$(am__strip_dir) \
333 echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
334 $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
335 done
336
337 uninstall-pkgconfigDATA:
338 @$(NORMAL_UNINSTALL)
339 @list='$(pkgconfig_DATA)'; for p in $$list; do \
340 f=$(am__strip_dir) \
341 echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
342 rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
343 done
344
345 # This directory's subdirectories are mostly independent; you can cd
346 # into them and run `make' without going through this Makefile.
347 # To change the values of `make' variables: instead of editing Makefiles,
348 # (1) if the variable is set in `config.status', edit `config.status'
349 # (which will cause the Makefiles to be regenerated when you run `make');
350 # (2) otherwise, pass the desired values on the `make' command line.
351 $(RECURSIVE_TARGETS):
352 @failcom='exit 1'; \
353 for f in x $$MAKEFLAGS; do \
354 case $$f in \
355 *=* | --[!k]*);; \
356 *k*) failcom='fail=yes';; \
357 esac; \
358 done; \
359 dot_seen=no; \
360 target=`echo $@ | sed s/-recursive//`; \
361 list='$(SUBDIRS)'; for subdir in $$list; do \
362 echo "Making $$target in $$subdir"; \
363 if test "$$subdir" = "."; then \
364 dot_seen=yes; \
365 local_target="$$target-am"; \
366 else \
367 local_target="$$target"; \
368 fi; \
369 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
370 || eval $$failcom; \
371 done; \
372 if test "$$dot_seen" = "no"; then \
373 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
374 fi; test -z "$$fail"
375
376 mostlyclean-recursive clean-recursive distclean-recursive \
377 maintainer-clean-recursive:
378 @failcom='exit 1'; \
379 for f in x $$MAKEFLAGS; do \
380 case $$f in \
381 *=* | --[!k]*);; \
382 *k*) failcom='fail=yes';; \
383 esac; \
384 done; \
385 dot_seen=no; \
386 case "$@" in \
387 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
388 *) list='$(SUBDIRS)' ;; \
389 esac; \
390 rev=''; for subdir in $$list; do \
391 if test "$$subdir" = "."; then :; else \
392 rev="$$subdir $$rev"; \
393 fi; \
394 done; \
395 rev="$$rev ."; \
396 target=`echo $@ | sed s/-recursive//`; \
397 for subdir in $$rev; do \
398 echo "Making $$target in $$subdir"; \
399 if test "$$subdir" = "."; then \
400 local_target="$$target-am"; \
401 else \
402 local_target="$$target"; \
403 fi; \
404 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
405 || eval $$failcom; \
406 done && test -z "$$fail"
407 tags-recursive:
408 list='$(SUBDIRS)'; for subdir in $$list; do \
409 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
410 done
411 ctags-recursive:
412 list='$(SUBDIRS)'; for subdir in $$list; do \
413 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
414 done
415
416 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
417 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
418 unique=`for i in $$list; do \
419 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
420 done | \
421 $(AWK) ' { files[$$0] = 1; } \
422 END { for (i in files) print i; }'`; \
423 mkid -fID $$unique
424 tags: TAGS
425
426 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
427 $(TAGS_FILES) $(LISP)
428 tags=; \
429 here=`pwd`; \
430 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
431 include_option=--etags-include; \
432 empty_fix=.; \
433 else \
434 include_option=--include; \
435 empty_fix=; \
436 fi; \
437 list='$(SUBDIRS)'; for subdir in $$list; do \
438 if test "$$subdir" = .; then :; else \
439 test ! -f $$subdir/TAGS || \
440 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
441 fi; \
442 done; \
443 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
444 unique=`for i in $$list; do \
445 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
446 done | \
447 $(AWK) ' { files[$$0] = 1; } \
448 END { for (i in files) print i; }'`; \
449 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
450 test -n "$$unique" || unique=$$empty_fix; \
451 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
452 $$tags $$unique; \
453 fi
454 ctags: CTAGS
455 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
456 $(TAGS_FILES) $(LISP)
457 tags=; \
458 here=`pwd`; \
459 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
460 unique=`for i in $$list; do \
461 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
462 done | \
463 $(AWK) ' { files[$$0] = 1; } \
464 END { for (i in files) print i; }'`; \
465 test -z "$(CTAGS_ARGS)$$tags$$unique" \
466 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
467 $$tags $$unique
468
469 GTAGS:
470 here=`$(am__cd) $(top_builddir) && pwd` \
471 && cd $(top_srcdir) \
472 && gtags -i $(GTAGS_ARGS) $$here
473
474 distclean-tags:
475 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
476
477 distdir: $(DISTFILES)
478 $(am__remove_distdir)
479 mkdir $(distdir)
480 $(mkdir_p) $(distdir)/. $(distdir)/m4 $(distdir)/po
481 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
482 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
483 list='$(DISTFILES)'; for file in $$list; do \
484 case $$file in \
485 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
486 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
487 esac; \
488 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
489 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
490 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
491 dir="/$$dir"; \
492 $(mkdir_p) "$(distdir)$$dir"; \
493 else \
494 dir=''; \
495 fi; \
496 if test -d $$d/$$file; then \
497 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
498 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
499 fi; \
500 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
501 else \
502 test -f $(distdir)/$$file \
503 || cp -p $$d/$$file $(distdir)/$$file \
504 || exit 1; \
505 fi; \
506 done
507 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
508 if test "$$subdir" = .; then :; else \
509 test -d "$(distdir)/$$subdir" \
510 || $(mkdir_p) "$(distdir)/$$subdir" \
511 || exit 1; \
512 distdir=`$(am__cd) $(distdir) && pwd`; \
513 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
514 (cd $$subdir && \
515 $(MAKE) $(AM_MAKEFLAGS) \
516 top_distdir="$$top_distdir" \
517 distdir="$$distdir/$$subdir" \
518 distdir) \
519 || exit 1; \
520 fi; \
521 done
522 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
523 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
524 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
525 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
526 || chmod -R a+r $(distdir)
527 dist-gzip: distdir
528 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
529 $(am__remove_distdir)
530
531 dist-bzip2: distdir
532 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
533 $(am__remove_distdir)
534
535 dist-tarZ: distdir
536 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
537 $(am__remove_distdir)
538
539 dist-shar: distdir
540 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
541 $(am__remove_distdir)
542
543 dist-zip: distdir
544 -rm -f $(distdir).zip
545 zip -rq $(distdir).zip $(distdir)
546 $(am__remove_distdir)
547
548 dist dist-all: distdir
549 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
550 $(am__remove_distdir)
551
552 # This target untars the dist file and tries a VPATH configuration. Then
553 # it guarantees that the distribution is self-contained by making another
554 # tarfile.
555 distcheck: dist
556 case '$(DIST_ARCHIVES)' in \
557 *.tar.gz*) \
558 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
559 *.tar.bz2*) \
560 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
561 *.tar.Z*) \
562 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
563 *.shar.gz*) \
564 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
565 *.zip*) \
566 unzip $(distdir).zip ;;\
567 esac
568 chmod -R a-w $(distdir); chmod a+w $(distdir)
569 mkdir $(distdir)/_build
570 mkdir $(distdir)/_inst
571 chmod a-w $(distdir)
572 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
573 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
574 && cd $(distdir)/_build \
575 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
576 $(DISTCHECK_CONFIGURE_FLAGS) \
577 && $(MAKE) $(AM_MAKEFLAGS) \
578 && $(MAKE) $(AM_MAKEFLAGS) dvi \
579 && $(MAKE) $(AM_MAKEFLAGS) check \
580 && $(MAKE) $(AM_MAKEFLAGS) install \
581 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
582 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
583 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
584 distuninstallcheck \
585 && chmod -R a-w "$$dc_install_base" \
586 && ({ \
587 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
588 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
589 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
590 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
591 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
592 } || { rm -rf "$$dc_destdir"; exit 1; }) \
593 && rm -rf "$$dc_destdir" \
594 && $(MAKE) $(AM_MAKEFLAGS) dist \
595 && rm -rf $(DIST_ARCHIVES) \
596 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
597 $(am__remove_distdir)
598 @(echo "$(distdir) archives ready for distribution: "; \
599 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
600 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
601 distuninstallcheck:
602 @cd $(distuninstallcheck_dir) \
603 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
604 || { echo "ERROR: files left after uninstall:" ; \
605 if test -n "$(DESTDIR)"; then \
606 echo " (check DESTDIR support)"; \
607 fi ; \
608 $(distuninstallcheck_listfiles) ; \
609 exit 1; } >&2
610 distcleancheck: distclean
611 @if test '$(srcdir)' = . ; then \
612 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
613 exit 1 ; \
614 fi
615 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
616 || { echo "ERROR: files left in build directory after distclean:" ; \
617 $(distcleancheck_listfiles) ; \
618 exit 1; } >&2
619 check-am: all-am
620 check: check-recursive
621 all-am: Makefile $(DATA)
622 installdirs: installdirs-recursive
623 installdirs-am:
624 for dir in "$(DESTDIR)$(libhdatedocdir)" "$(DESTDIR)$(pkgconfigdir)"; do \
625 test -z "$$dir" || $(mkdir_p) "$$dir"; \
626 done
627 install: install-recursive
628 install-exec: install-exec-recursive
629 install-data: install-data-recursive
630 uninstall: uninstall-recursive
631
632 install-am: all-am
633 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
634
635 installcheck: installcheck-recursive
636 install-strip:
637 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
638 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
639 `test -z '$(STRIP)' || \
640 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
641 mostlyclean-generic:
642
643 clean-generic:
644
645 distclean-generic:
646 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
647
648 maintainer-clean-generic:
649 @echo "This command is intended for maintainers to use"
650 @echo "it deletes files that may require special tools to rebuild."
651 clean: clean-recursive
652
653 clean-am: clean-generic clean-libtool mostlyclean-am
654
655 distclean: distclean-recursive
656 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
657 -rm -f Makefile
658 distclean-am: clean-am distclean-generic distclean-libtool \
659 distclean-tags
660
661 dvi: dvi-recursive
662
663 dvi-am:
664
665 html: html-recursive
666
667 info: info-recursive
668
669 info-am:
670
671 install-data-am: install-libhdatedocDATA install-pkgconfigDATA
672
673 install-exec-am:
674
675 install-info: install-info-recursive
676
677 install-man:
678
679 installcheck-am:
680
681 maintainer-clean: maintainer-clean-recursive
682 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
683 -rm -rf $(top_srcdir)/autom4te.cache
684 -rm -f Makefile
685 maintainer-clean-am: distclean-am maintainer-clean-generic
686
687 mostlyclean: mostlyclean-recursive
688
689 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
690
691 pdf: pdf-recursive
692
693 pdf-am:
694
695 ps: ps-recursive
696
697 ps-am:
698
699 uninstall-am: uninstall-info-am uninstall-libhdatedocDATA \
700 uninstall-pkgconfigDATA
701
702 uninstall-info: uninstall-info-recursive
703
704 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
705 check-am clean clean-generic clean-libtool clean-recursive \
706 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
707 dist-shar dist-tarZ dist-zip distcheck distclean \
708 distclean-generic distclean-libtool distclean-recursive \
709 distclean-tags distcleancheck distdir distuninstallcheck dvi \
710 dvi-am html html-am info info-am install install-am \
711 install-data install-data-am install-exec install-exec-am \
712 install-info install-info-am install-libhdatedocDATA \
713 install-man install-pkgconfigDATA install-strip installcheck \
714 installcheck-am installdirs installdirs-am maintainer-clean \
715 maintainer-clean-generic maintainer-clean-recursive \
716 mostlyclean mostlyclean-generic mostlyclean-libtool \
717 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
718 uninstall uninstall-am uninstall-info-am \
719 uninstall-libhdatedocDATA uninstall-pkgconfigDATA
720
721 # Tell versions [3.59,3.63) of GNU make to not export all variables.
722 # Otherwise a system limit (for SysV at least) may be exceeded.
723 .NOEXPORT:
+0
-0
current/NEWS less more
(Empty file)
+0
-73
current/README less more
0 Libhdate -
1
2 LibHdate is a small C,C++ library for Hebrew calendar, dates, holidays, and reading sequence
3
4 This library of functions are using the sorce code from
5 Amos Shapir's "hdate" package fixed and patched by Nadav Har'El.
6 See the original package's README (hdate_README)
7
8 LibHdate is a small C,C++ library for Hebrew dates,
9 holidays, and reading sequence (parasha). It is using
10 the sorce code from Amos Shapir's "hdate" package fixed and
11 patched by Nadav Har'El. The Torah reading sequence
12 is from tables by Zvi Har'El.
13
14 15 Adar II 5763 Shusan Purim, 19 March 2003
15 kobi zamir <kzamir@walla.co.il>
16 -------------------------------------
17
18 see USE file for usage.
19
20 -------------------------------------
21 -------------------------------------
22
23 Below is the original README file from hdate 0.5p by Amos Shapir.
24
25 --------------------------------------
26
27 This is Amos Shapir's "hdate" package fixed and patched by Nadav Har'El.
28 Below is the original package's README - see NEWS for what changed.
29
30 ------------------------------------------------------------------------------
31 This is the 5th distribution of hdate/hcal. It should be portable
32 anywhere, but for machines which have sizeof(int) != sizeof(long), you
33 may have to change a few 'int's to 'long', and suffix 'L' to some
34 constants; sorry, I have no way to tell which. It also expects the UNIX
35 "time.h" structures, but that shouldn't be hard to change to fit other
36 systems. If you port the code to any other system, please send the
37 diffs to the author for inclusion in the next release.
38
39 The files included herein are:
40 README - this file.
41 explain - an explanation of the algorithm.
42 hdate.6 - the man page (nroff/troff source).
43 Makefile
44 hdate.h - common definitions.
45 hdate.c - main source file for hdate.
46 hcal.c - main source file for hcal.
47 hcom.c - code common to both hdate & hcal.
48
49 Compilation options:
50
51 HEBREW - make a version that prints on a Hebrew printer/terminal, given
52 the "-h" flag. All Hebrew words are initialized in left-to-right
53 lower-case letters, and passed through the function rev() for
54 conversion. I have included a function which reverses them to
55 right-to-left order, and optionally converts to the ISO-8859/8 standard
56 or IBM representation. You may need to write your own rev() function to
57 convert to what your printer expects, or else delete it and pipe the
58 output through "rev", "tr" or "sed".
59
60 USA_DATE - make hdate accept the arguments as "month day year" instead
61 of the default "day month year" (note that hdate.6 has to be changed to
62 document this order).
63
64 Good Luck,
65 Amos Shapir
66 July 1992 - Tamuz 5752
67
68 Net: amos@cs.cs.huji.ac.il
69 Paper: The Hebrew Univ. of Jerusalem, Dept. of Comp. Science.
70 Givat-Ram, Jerusalem 91904, Israel
71 Tel: +972 2 585706 GEO: 35 11 46 E / 31 46 21 N
72
+0
-50
current/USE less more
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
-7469
current/aclocal.m4 less more
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
14
15 # serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL
16
17
18 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
19 # -----------------------------------------------------------
20 # If this macro is not defined by Autoconf, define it here.
21 m4_ifdef([AC_PROVIDE_IFELSE],
22 [],
23 [m4_define([AC_PROVIDE_IFELSE],
24 [m4_ifdef([AC_PROVIDE_$1],
25 [$2], [$3])])])
26
27
28 # AC_PROG_LIBTOOL
29 # ---------------
30 AC_DEFUN([AC_PROG_LIBTOOL],
31 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
32 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
33 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
34 AC_PROVIDE_IFELSE([AC_PROG_CXX],
35 [AC_LIBTOOL_CXX],
36 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
37 ])])
38 dnl And a similar setup for Fortran 77 support
39 AC_PROVIDE_IFELSE([AC_PROG_F77],
40 [AC_LIBTOOL_F77],
41 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
42 ])])
43
44 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
45 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
46 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
47 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
48 [AC_LIBTOOL_GCJ],
49 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
50 [AC_LIBTOOL_GCJ],
51 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
52 [AC_LIBTOOL_GCJ],
53 [ifdef([AC_PROG_GCJ],
54 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
55 ifdef([A][M_PROG_GCJ],
56 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
57 ifdef([LT_AC_PROG_GCJ],
58 [define([LT_AC_PROG_GCJ],
59 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
60 ])])# AC_PROG_LIBTOOL
61
62
63 # _AC_PROG_LIBTOOL
64 # ----------------
65 AC_DEFUN([_AC_PROG_LIBTOOL],
66 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
67 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
68 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
69 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
70
71 # This can be used to rebuild libtool when needed
72 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
73
74 # Always use our own libtool.
75 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
76 AC_SUBST(LIBTOOL)dnl
77
78 # Prevent multiple expansion
79 define([AC_PROG_LIBTOOL], [])
80 ])# _AC_PROG_LIBTOOL
81
82
83 # AC_LIBTOOL_SETUP
84 # ----------------
85 AC_DEFUN([AC_LIBTOOL_SETUP],
86 [AC_PREREQ(2.50)dnl
87 AC_REQUIRE([AC_ENABLE_SHARED])dnl
88 AC_REQUIRE([AC_ENABLE_STATIC])dnl
89 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
90 AC_REQUIRE([AC_CANONICAL_HOST])dnl
91 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
92 AC_REQUIRE([AC_PROG_CC])dnl
93 AC_REQUIRE([AC_PROG_LD])dnl
94 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
95 AC_REQUIRE([AC_PROG_NM])dnl
96
97 AC_REQUIRE([AC_PROG_LN_S])dnl
98 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
99 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
100 AC_REQUIRE([AC_OBJEXT])dnl
101 AC_REQUIRE([AC_EXEEXT])dnl
102 dnl
103
104 AC_LIBTOOL_SYS_MAX_CMD_LEN
105 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
106 AC_LIBTOOL_OBJDIR
107
108 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
109 _LT_AC_PROG_ECHO_BACKSLASH
110
111 case $host_os in
112 aix3*)
113 # AIX sometimes has problems with the GCC collect2 program. For some
114 # reason, if we set the COLLECT_NAMES environment variable, the problems
115 # vanish in a puff of smoke.
116 if test "X${COLLECT_NAMES+set}" != Xset; then
117 COLLECT_NAMES=
118 export COLLECT_NAMES
119 fi
120 ;;
121 esac
122
123 # Sed substitution that helps us do robust quoting. It backslashifies
124 # metacharacters that are still active within double-quoted strings.
125 Xsed='sed -e 1s/^X//'
126 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
127
128 # Same as above, but do not quote variable references.
129 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
130
131 # Sed substitution to delay expansion of an escaped shell variable in a
132 # double_quote_subst'ed string.
133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
134
135 # Sed substitution to avoid accidental globbing in evaled expressions
136 no_glob_subst='s/\*/\\\*/g'
137
138 # Constants:
139 rm="rm -f"
140
141 # Global variables:
142 default_ofile=libtool
143 can_build_shared=yes
144
145 # All known linkers require a `.a' archive for static linking (except MSVC,
146 # which needs '.lib').
147 libext=a
148 ltmain="$ac_aux_dir/ltmain.sh"
149 ofile="$default_ofile"
150 with_gnu_ld="$lt_cv_prog_gnu_ld"
151
152 AC_CHECK_TOOL(AR, ar, false)
153 AC_CHECK_TOOL(RANLIB, ranlib, :)
154 AC_CHECK_TOOL(STRIP, strip, :)
155
156 old_CC="$CC"
157 old_CFLAGS="$CFLAGS"
158
159 # Set sane defaults for various variables
160 test -z "$AR" && AR=ar
161 test -z "$AR_FLAGS" && AR_FLAGS=cru
162 test -z "$AS" && AS=as
163 test -z "$CC" && CC=cc
164 test -z "$LTCC" && LTCC=$CC
165 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166 test -z "$DLLTOOL" && DLLTOOL=dlltool
167 test -z "$LD" && LD=ld
168 test -z "$LN_S" && LN_S="ln -s"
169 test -z "$MAGIC_CMD" && MAGIC_CMD=file
170 test -z "$NM" && NM=nm
171 test -z "$SED" && SED=sed
172 test -z "$OBJDUMP" && OBJDUMP=objdump
173 test -z "$RANLIB" && RANLIB=:
174 test -z "$STRIP" && STRIP=:
175 test -z "$ac_objext" && ac_objext=o
176
177 # Determine commands to create old-style static archives.
178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
179 old_postinstall_cmds='chmod 644 $oldlib'
180 old_postuninstall_cmds=
181
182 if test -n "$RANLIB"; then
183 case $host_os in
184 openbsd*)
185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186 ;;
187 *)
188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189 ;;
190 esac
191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192 fi
193
194 _LT_CC_BASENAME([$compiler])
195
196 # Only perform the check for file, if the check method requires it
197 case $deplibs_check_method in
198 file_magic*)
199 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
200 AC_PATH_MAGIC
201 fi
202 ;;
203 esac
204
205 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
206 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
207 enable_win32_dll=yes, enable_win32_dll=no)
208
209 AC_ARG_ENABLE([libtool-lock],
210 [AC_HELP_STRING([--disable-libtool-lock],
211 [avoid locking (might break parallel builds)])])
212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
213
214 AC_ARG_WITH([pic],
215 [AC_HELP_STRING([--with-pic],
216 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
217 [pic_mode="$withval"],
218 [pic_mode=default])
219 test -z "$pic_mode" && pic_mode=default
220
221 # Use C for the default configuration in the libtool script
222 tagname=
223 AC_LIBTOOL_LANG_C_CONFIG
224 _LT_AC_TAGCONFIG
225 ])# AC_LIBTOOL_SETUP
226
227
228 # _LT_AC_SYS_COMPILER
229 # -------------------
230 AC_DEFUN([_LT_AC_SYS_COMPILER],
231 [AC_REQUIRE([AC_PROG_CC])dnl
232
233 # If no C compiler was specified, use CC.
234 LTCC=${LTCC-"$CC"}
235
236 # If no C compiler flags were specified, use CFLAGS.
237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
238
239 # Allow CC to be a program name with arguments.
240 compiler=$CC
241 ])# _LT_AC_SYS_COMPILER
242
243
244 # _LT_CC_BASENAME(CC)
245 # -------------------
246 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
247 AC_DEFUN([_LT_CC_BASENAME],
248 [for cc_temp in $1""; do
249 case $cc_temp in
250 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
251 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
252 \-*) ;;
253 *) break;;
254 esac
255 done
256 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
257 ])
258
259
260 # _LT_COMPILER_BOILERPLATE
261 # ------------------------
262 # Check for compiler boilerplate output or warnings with
263 # the simple compiler test code.
264 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
265 [AC_REQUIRE([LT_AC_PROG_SED])dnl
266 ac_outfile=conftest.$ac_objext
267 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269 _lt_compiler_boilerplate=`cat conftest.err`
270 $rm conftest*
271 ])# _LT_COMPILER_BOILERPLATE
272
273
274 # _LT_LINKER_BOILERPLATE
275 # ----------------------
276 # Check for linker boilerplate output or warnings with
277 # the simple link test code.
278 AC_DEFUN([_LT_LINKER_BOILERPLATE],
279 [AC_REQUIRE([LT_AC_PROG_SED])dnl
280 ac_outfile=conftest.$ac_objext
281 echo "$lt_simple_link_test_code" >conftest.$ac_ext
282 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
283 _lt_linker_boilerplate=`cat conftest.err`
284 $rm conftest*
285 ])# _LT_LINKER_BOILERPLATE
286
287
288 # _LT_AC_SYS_LIBPATH_AIX
289 # ----------------------
290 # Links a minimal program and checks the executable
291 # for the system default hardcoded library path. In most cases,
292 # this is /usr/lib:/lib, but when the MPI compilers are used
293 # the location of the communication and MPI libs are included too.
294 # If we don't find anything, use the default library path according
295 # to the aix ld manual.
296 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
297 [AC_REQUIRE([LT_AC_PROG_SED])dnl
298 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
299 lt_aix_libpath_sed='
300 /Import File Strings/,/^$/ {
301 /^0/ {
302 s/^0 *\(.*\)$/\1/
303 p
304 }
305 }'
306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
307 # Check for a 64-bit object if we didn't find anything.
308 if test -z "$aix_libpath"; then
309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
310 fi],[])
311 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
312 ])# _LT_AC_SYS_LIBPATH_AIX
313
314
315 # _LT_AC_SHELL_INIT(ARG)
316 # ----------------------
317 AC_DEFUN([_LT_AC_SHELL_INIT],
318 [ifdef([AC_DIVERSION_NOTICE],
319 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
320 [AC_DIVERT_PUSH(NOTICE)])
321 $1
322 AC_DIVERT_POP
323 ])# _LT_AC_SHELL_INIT
324
325
326 # _LT_AC_PROG_ECHO_BACKSLASH
327 # --------------------------
328 # Add some code to the start of the generated configure script which
329 # will find an echo command which doesn't interpret backslashes.
330 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
331 [_LT_AC_SHELL_INIT([
332 # Check that we are running under the correct shell.
333 SHELL=${CONFIG_SHELL-/bin/sh}
334
335 case X$ECHO in
336 X*--fallback-echo)
337 # Remove one level of quotation (which was required for Make).
338 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
339 ;;
340 esac
341
342 echo=${ECHO-echo}
343 if test "X[$]1" = X--no-reexec; then
344 # Discard the --no-reexec flag, and continue.
345 shift
346 elif test "X[$]1" = X--fallback-echo; then
347 # Avoid inline document here, it may be left over
348 :
349 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
350 # Yippee, $echo works!
351 :
352 else
353 # Restart under the correct shell.
354 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
355 fi
356
357 if test "X[$]1" = X--fallback-echo; then
358 # used as fallback echo
359 shift
360 cat <<EOF
361 [$]*
362 EOF
363 exit 0
364 fi
365
366 # The HP-UX ksh and POSIX shell print the target directory to stdout
367 # if CDPATH is set.
368 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
369
370 if test -z "$ECHO"; then
371 if test "X${echo_test_string+set}" != Xset; then
372 # find a string as large as possible, as long as the shell can cope with it
373 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
374 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
375 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
376 echo_test_string=`eval $cmd` &&
377 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
378 then
379 break
380 fi
381 done
382 fi
383
384 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
385 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
386 test "X$echo_testing_string" = "X$echo_test_string"; then
387 :
388 else
389 # The Solaris, AIX, and Digital Unix default echo programs unquote
390 # backslashes. This makes it impossible to quote backslashes using
391 # echo "$something" | sed 's/\\/\\\\/g'
392 #
393 # So, first we look for a working echo in the user's PATH.
394
395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
396 for dir in $PATH /usr/ucb; do
397 IFS="$lt_save_ifs"
398 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
399 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
400 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
401 test "X$echo_testing_string" = "X$echo_test_string"; then
402 echo="$dir/echo"
403 break
404 fi
405 done
406 IFS="$lt_save_ifs"
407
408 if test "X$echo" = Xecho; then
409 # We didn't find a better echo, so look for alternatives.
410 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
411 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
412 test "X$echo_testing_string" = "X$echo_test_string"; then
413 # This shell has a builtin print -r that does the trick.
414 echo='print -r'
415 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
416 test "X$CONFIG_SHELL" != X/bin/ksh; then
417 # If we have ksh, try running configure again with it.
418 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
419 export ORIGINAL_CONFIG_SHELL
420 CONFIG_SHELL=/bin/ksh
421 export CONFIG_SHELL
422 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
423 else
424 # Try using printf.
425 echo='printf %s\n'
426 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
427 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
428 test "X$echo_testing_string" = "X$echo_test_string"; then
429 # Cool, printf works
430 :
431 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
432 test "X$echo_testing_string" = 'X\t' &&
433 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
434 test "X$echo_testing_string" = "X$echo_test_string"; then
435 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
436 export CONFIG_SHELL
437 SHELL="$CONFIG_SHELL"
438 export SHELL
439 echo="$CONFIG_SHELL [$]0 --fallback-echo"
440 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
441 test "X$echo_testing_string" = 'X\t' &&
442 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
443 test "X$echo_testing_string" = "X$echo_test_string"; then
444 echo="$CONFIG_SHELL [$]0 --fallback-echo"
445 else
446 # maybe with a smaller string...
447 prev=:
448
449 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
450 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
451 then
452 break
453 fi
454 prev="$cmd"
455 done
456
457 if test "$prev" != 'sed 50q "[$]0"'; then
458 echo_test_string=`eval $prev`
459 export echo_test_string
460 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
461 else
462 # Oops. We lost completely, so just stick with echo.
463 echo=echo
464 fi
465 fi
466 fi
467 fi
468 fi
469 fi
470
471 # Copy echo and quote the copy suitably for passing to libtool from
472 # the Makefile, instead of quoting the original, which is used later.
473 ECHO=$echo
474 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
475 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
476 fi
477
478 AC_SUBST(ECHO)
479 ])])# _LT_AC_PROG_ECHO_BACKSLASH
480
481
482 # _LT_AC_LOCK
483 # -----------
484 AC_DEFUN([_LT_AC_LOCK],
485 [AC_ARG_ENABLE([libtool-lock],
486 [AC_HELP_STRING([--disable-libtool-lock],
487 [avoid locking (might break parallel builds)])])
488 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
489
490 # Some flags need to be propagated to the compiler or linker for good
491 # libtool support.
492 case $host in
493 ia64-*-hpux*)
494 # Find out which ABI we are using.
495 echo 'int i;' > conftest.$ac_ext
496 if AC_TRY_EVAL(ac_compile); then
497 case `/usr/bin/file conftest.$ac_objext` in
498 *ELF-32*)
499 HPUX_IA64_MODE="32"
500 ;;
501 *ELF-64*)
502 HPUX_IA64_MODE="64"
503 ;;
504 esac
505 fi
506 rm -rf conftest*
507 ;;
508 *-*-irix6*)
509 # Find out which ABI we are using.
510 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
511 if AC_TRY_EVAL(ac_compile); then
512 if test "$lt_cv_prog_gnu_ld" = yes; then
513 case `/usr/bin/file conftest.$ac_objext` in
514 *32-bit*)
515 LD="${LD-ld} -melf32bsmip"
516 ;;
517 *N32*)
518 LD="${LD-ld} -melf32bmipn32"
519 ;;
520 *64-bit*)
521 LD="${LD-ld} -melf64bmip"
522 ;;
523 esac
524 else
525 case `/usr/bin/file conftest.$ac_objext` in
526 *32-bit*)
527 LD="${LD-ld} -32"
528 ;;
529 *N32*)
530 LD="${LD-ld} -n32"
531 ;;
532 *64-bit*)
533 LD="${LD-ld} -64"
534 ;;
535 esac
536 fi
537 fi
538 rm -rf conftest*
539 ;;
540
541 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
542 s390*-*linux*|sparc*-*linux*)
543 # Find out which ABI we are using.
544 echo 'int i;' > conftest.$ac_ext
545 if AC_TRY_EVAL(ac_compile); then
546 case `/usr/bin/file conftest.o` in
547 *32-bit*)
548 case $host in
549 x86_64-*kfreebsd*-gnu)
550 LD="${LD-ld} -m elf_i386_fbsd"
551 ;;
552 x86_64-*linux*)
553 LD="${LD-ld} -m elf_i386"
554 ;;
555 ppc64-*linux*|powerpc64-*linux*)
556 LD="${LD-ld} -m elf32ppclinux"
557 ;;
558 s390x-*linux*)
559 LD="${LD-ld} -m elf_s390"
560 ;;
561 sparc64-*linux*)
562 LD="${LD-ld} -m elf32_sparc"
563 ;;
564 esac
565 ;;
566 *64-bit*)
567 case $host in
568 x86_64-*kfreebsd*-gnu)
569 LD="${LD-ld} -m elf_x86_64_fbsd"
570 ;;
571 x86_64-*linux*)
572 LD="${LD-ld} -m elf_x86_64"
573 ;;
574 ppc*-*linux*|powerpc*-*linux*)
575 LD="${LD-ld} -m elf64ppc"
576 ;;
577 s390*-*linux*)
578 LD="${LD-ld} -m elf64_s390"
579 ;;
580 sparc*-*linux*)
581 LD="${LD-ld} -m elf64_sparc"
582 ;;
583 esac
584 ;;
585 esac
586 fi
587 rm -rf conftest*
588 ;;
589
590 *-*-sco3.2v5*)
591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
592 SAVE_CFLAGS="$CFLAGS"
593 CFLAGS="$CFLAGS -belf"
594 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
595 [AC_LANG_PUSH(C)
596 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
597 AC_LANG_POP])
598 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
600 CFLAGS="$SAVE_CFLAGS"
601 fi
602 ;;
603 sparc*-*solaris*)
604 # Find out which ABI we are using.
605 echo 'int i;' > conftest.$ac_ext
606 if AC_TRY_EVAL(ac_compile); then
607 case `/usr/bin/file conftest.o` in
608 *64-bit*)
609 case $lt_cv_prog_gnu_ld in
610 yes*) LD="${LD-ld} -m elf64_sparc" ;;
611 *) LD="${LD-ld} -64" ;;
612 esac
613 ;;
614 esac
615 fi
616 rm -rf conftest*
617 ;;
618
619 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
620 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
621 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
622 AC_CHECK_TOOL(AS, as, false)
623 AC_CHECK_TOOL(OBJDUMP, objdump, false)
624 ;;
625 ])
626 esac
627
628 need_locks="$enable_libtool_lock"
629
630 ])# _LT_AC_LOCK
631
632
633 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
634 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
635 # ----------------------------------------------------------------
636 # Check whether the given compiler option works
637 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
638 [AC_REQUIRE([LT_AC_PROG_SED])
639 AC_CACHE_CHECK([$1], [$2],
640 [$2=no
641 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
643 lt_compiler_flag="$3"
644 # Insert the option either (1) after the last *FLAGS variable, or
645 # (2) before a word containing "conftest.", or (3) at the end.
646 # Note that $ac_compile itself does not contain backslashes and begins
647 # with a dollar sign (not a hyphen), so the echo should work correctly.
648 # The option is referenced via a variable to avoid confusing sed.
649 lt_compile=`echo "$ac_compile" | $SED \
650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
651 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
652 -e 's:$: $lt_compiler_flag:'`
653 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
654 (eval "$lt_compile" 2>conftest.err)
655 ac_status=$?
656 cat conftest.err >&AS_MESSAGE_LOG_FD
657 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
658 if (exit $ac_status) && test -s "$ac_outfile"; then
659 # The compiler can only warn and ignore the option if not recognized
660 # So say no if there are warnings other than the usual output.
661 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
664 $2=yes
665 fi
666 fi
667 $rm conftest*
668 ])
669
670 if test x"[$]$2" = xyes; then
671 ifelse([$5], , :, [$5])
672 else
673 ifelse([$6], , :, [$6])
674 fi
675 ])# AC_LIBTOOL_COMPILER_OPTION
676
677
678 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
679 # [ACTION-SUCCESS], [ACTION-FAILURE])
680 # ------------------------------------------------------------
681 # Check whether the given compiler option works
682 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
683 [AC_REQUIRE([LT_AC_PROG_SED])dnl
684 AC_CACHE_CHECK([$1], [$2],
685 [$2=no
686 save_LDFLAGS="$LDFLAGS"
687 LDFLAGS="$LDFLAGS $3"
688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
690 # The linker can only warn and ignore the option if not recognized
691 # So say no if there are warnings
692 if test -s conftest.err; then
693 # Append any errors to the config.log.
694 cat conftest.err 1>&AS_MESSAGE_LOG_FD
695 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
697 if diff conftest.exp conftest.er2 >/dev/null; then
698 $2=yes
699 fi
700 else
701 $2=yes
702 fi
703 fi
704 $rm conftest*
705 LDFLAGS="$save_LDFLAGS"
706 ])
707
708 if test x"[$]$2" = xyes; then
709 ifelse([$4], , :, [$4])
710 else
711 ifelse([$5], , :, [$5])
712 fi
713 ])# AC_LIBTOOL_LINKER_OPTION
714
715
716 # AC_LIBTOOL_SYS_MAX_CMD_LEN
717 # --------------------------
718 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
719 [# find the maximum length of command line arguments
720 AC_MSG_CHECKING([the maximum length of command line arguments])
721 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
722 i=0
723 teststring="ABCD"
724
725 case $build_os in
726 msdosdjgpp*)
727 # On DJGPP, this test can blow up pretty badly due to problems in libc
728 # (any single argument exceeding 2000 bytes causes a buffer overrun
729 # during glob expansion). Even if it were fixed, the result of this
730 # check would be larger than it should be.
731 lt_cv_sys_max_cmd_len=12288; # 12K is about right
732 ;;
733
734 gnu*)
735 # Under GNU Hurd, this test is not required because there is
736 # no limit to the length of command line arguments.
737 # Libtool will interpret -1 as no limit whatsoever
738 lt_cv_sys_max_cmd_len=-1;
739 ;;
740
741 cygwin* | mingw*)
742 # On Win9x/ME, this test blows up -- it succeeds, but takes
743 # about 5 minutes as the teststring grows exponentially.
744 # Worse, since 9x/ME are not pre-emptively multitasking,
745 # you end up with a "frozen" computer, even though with patience
746 # the test eventually succeeds (with a max line length of 256k).
747 # Instead, let's just punt: use the minimum linelength reported by
748 # all of the supported platforms: 8192 (on NT/2K/XP).
749 lt_cv_sys_max_cmd_len=8192;
750 ;;
751
752 amigaos*)
753 # On AmigaOS with pdksh, this test takes hours, literally.
754 # So we just punt and use a minimum line length of 8192.
755 lt_cv_sys_max_cmd_len=8192;
756 ;;
757
758 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
759 # This has been around since 386BSD, at least. Likely further.
760 if test -x /sbin/sysctl; then
761 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
762 elif test -x /usr/sbin/sysctl; then
763 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
764 else
765 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
766 fi
767 # And add a safety zone
768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
770 ;;
771
772 interix*)
773 # We know the value 262144 and hardcode it with a safety zone (like BSD)
774 lt_cv_sys_max_cmd_len=196608
775 ;;
776
777 osf*)
778 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
779 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
780 # nice to cause kernel panics so lets avoid the loop below.
781 # First set a reasonable default.
782 lt_cv_sys_max_cmd_len=16384
783 #
784 if test -x /sbin/sysconfig; then
785 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
786 *1*) lt_cv_sys_max_cmd_len=-1 ;;
787 esac
788 fi
789 ;;
790 sco3.2v5*)
791 lt_cv_sys_max_cmd_len=102400
792 ;;
793 sysv5* | sco5v6* | sysv4.2uw2*)
794 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
795 if test -n "$kargmax"; then
796 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
797 else
798 lt_cv_sys_max_cmd_len=32768
799 fi
800 ;;
801 *)
802 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
803 if test -n "$lt_cv_sys_max_cmd_len"; then
804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
806 else
807 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
808 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
809 = "XX$teststring") >/dev/null 2>&1 &&
810 new_result=`expr "X$teststring" : ".*" 2>&1` &&
811 lt_cv_sys_max_cmd_len=$new_result &&
812 test $i != 17 # 1/2 MB should be enough
813 do
814 i=`expr $i + 1`
815 teststring=$teststring$teststring
816 done
817 teststring=
818 # Add a significant safety factor because C++ compilers can tack on massive
819 # amounts of additional arguments before passing them to the linker.
820 # It appears as though 1/2 is a usable value.
821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
822 fi
823 ;;
824 esac
825 ])
826 if test -n $lt_cv_sys_max_cmd_len ; then
827 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
828 else
829 AC_MSG_RESULT(none)
830 fi
831 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
832
833
834 # _LT_AC_CHECK_DLFCN
835 # ------------------
836 AC_DEFUN([_LT_AC_CHECK_DLFCN],
837 [AC_CHECK_HEADERS(dlfcn.h)dnl
838 ])# _LT_AC_CHECK_DLFCN
839
840
841 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
842 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
843 # ---------------------------------------------------------------------
844 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
845 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
846 if test "$cross_compiling" = yes; then :
847 [$4]
848 else
849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
850 lt_status=$lt_dlunknown
851 cat > conftest.$ac_ext <<EOF
852 [#line __oline__ "configure"
853 #include "confdefs.h"
854
855 #if HAVE_DLFCN_H
856 #include <dlfcn.h>
857 #endif
858
859 #include <stdio.h>
860
861 #ifdef RTLD_GLOBAL
862 # define LT_DLGLOBAL RTLD_GLOBAL
863 #else
864 # ifdef DL_GLOBAL
865 # define LT_DLGLOBAL DL_GLOBAL
866 # else
867 # define LT_DLGLOBAL 0
868 # endif
869 #endif
870
871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
872 find out it does not work in some platform. */
873 #ifndef LT_DLLAZY_OR_NOW
874 # ifdef RTLD_LAZY
875 # define LT_DLLAZY_OR_NOW RTLD_LAZY
876 # else
877 # ifdef DL_LAZY
878 # define LT_DLLAZY_OR_NOW DL_LAZY
879 # else
880 # ifdef RTLD_NOW
881 # define LT_DLLAZY_OR_NOW RTLD_NOW
882 # else
883 # ifdef DL_NOW
884 # define LT_DLLAZY_OR_NOW DL_NOW
885 # else
886 # define LT_DLLAZY_OR_NOW 0
887 # endif
888 # endif
889 # endif
890 # endif
891 #endif
892
893 #ifdef __cplusplus
894 extern "C" void exit (int);
895 #endif
896
897 void fnord() { int i=42;}
898 int main ()
899 {
900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
901 int status = $lt_dlunknown;
902
903 if (self)
904 {
905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
907 /* dlclose (self); */
908 }
909 else
910 puts (dlerror ());
911
912 exit (status);
913 }]
914 EOF
915 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
916 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
917 lt_status=$?
918 case x$lt_status in
919 x$lt_dlno_uscore) $1 ;;
920 x$lt_dlneed_uscore) $2 ;;
921 x$lt_dlunknown|x*) $3 ;;
922 esac
923 else :
924 # compilation failed
925 $3
926 fi
927 fi
928 rm -fr conftest*
929 ])# _LT_AC_TRY_DLOPEN_SELF
930
931
932 # AC_LIBTOOL_DLOPEN_SELF
933 # ----------------------
934 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
935 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
936 if test "x$enable_dlopen" != xyes; then
937 enable_dlopen=unknown
938 enable_dlopen_self=unknown
939 enable_dlopen_self_static=unknown
940 else
941 lt_cv_dlopen=no
942 lt_cv_dlopen_libs=
943
944 case $host_os in
945 beos*)
946 lt_cv_dlopen="load_add_on"
947 lt_cv_dlopen_libs=
948 lt_cv_dlopen_self=yes
949 ;;
950
951 mingw* | pw32*)
952 lt_cv_dlopen="LoadLibrary"
953 lt_cv_dlopen_libs=
954 ;;
955
956 cygwin*)
957 lt_cv_dlopen="dlopen"
958 lt_cv_dlopen_libs=
959 ;;
960
961 darwin*)
962 # if libdl is installed we need to link against it
963 AC_CHECK_LIB([dl], [dlopen],
964 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
965 lt_cv_dlopen="dyld"
966 lt_cv_dlopen_libs=
967 lt_cv_dlopen_self=yes
968 ])
969 ;;
970
971 *)
972 AC_CHECK_FUNC([shl_load],
973 [lt_cv_dlopen="shl_load"],
974 [AC_CHECK_LIB([dld], [shl_load],
975 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
976 [AC_CHECK_FUNC([dlopen],
977 [lt_cv_dlopen="dlopen"],
978 [AC_CHECK_LIB([dl], [dlopen],
979 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
980 [AC_CHECK_LIB([svld], [dlopen],
981 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
982 [AC_CHECK_LIB([dld], [dld_link],
983 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
984 ])
985 ])
986 ])
987 ])
988 ])
989 ;;
990 esac
991
992 if test "x$lt_cv_dlopen" != xno; then
993 enable_dlopen=yes
994 else
995 enable_dlopen=no
996 fi
997
998 case $lt_cv_dlopen in
999 dlopen)
1000 save_CPPFLAGS="$CPPFLAGS"
1001 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1002
1003 save_LDFLAGS="$LDFLAGS"
1004 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1005
1006 save_LIBS="$LIBS"
1007 LIBS="$lt_cv_dlopen_libs $LIBS"
1008
1009 AC_CACHE_CHECK([whether a program can dlopen itself],
1010 lt_cv_dlopen_self, [dnl
1011 _LT_AC_TRY_DLOPEN_SELF(
1012 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1013 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1014 ])
1015
1016 if test "x$lt_cv_dlopen_self" = xyes; then
1017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1018 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1019 lt_cv_dlopen_self_static, [dnl
1020 _LT_AC_TRY_DLOPEN_SELF(
1021 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1022 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1023 ])
1024 fi
1025
1026 CPPFLAGS="$save_CPPFLAGS"
1027 LDFLAGS="$save_LDFLAGS"
1028 LIBS="$save_LIBS"
1029 ;;
1030 esac
1031
1032 case $lt_cv_dlopen_self in
1033 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1034 *) enable_dlopen_self=unknown ;;
1035 esac
1036
1037 case $lt_cv_dlopen_self_static in
1038 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1039 *) enable_dlopen_self_static=unknown ;;
1040 esac
1041 fi
1042 ])# AC_LIBTOOL_DLOPEN_SELF
1043
1044
1045 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1046 # ---------------------------------
1047 # Check to see if options -c and -o are simultaneously supported by compiler
1048 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1049 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1050 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1051 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1052 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1053 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1054 $rm -r conftest 2>/dev/null
1055 mkdir conftest
1056 cd conftest
1057 mkdir out
1058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1059
1060 lt_compiler_flag="-o out/conftest2.$ac_objext"
1061 # Insert the option either (1) after the last *FLAGS variable, or
1062 # (2) before a word containing "conftest.", or (3) at the end.
1063 # Note that $ac_compile itself does not contain backslashes and begins
1064 # with a dollar sign (not a hyphen), so the echo should work correctly.
1065 lt_compile=`echo "$ac_compile" | $SED \
1066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1067 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1068 -e 's:$: $lt_compiler_flag:'`
1069 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1070 (eval "$lt_compile" 2>out/conftest.err)
1071 ac_status=$?
1072 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1073 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1075 then
1076 # The compiler can only warn and ignore the option if not recognized
1077 # So say no if there are warnings
1078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1081 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1082 fi
1083 fi
1084 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1085 $rm conftest*
1086 # SGI C++ compiler will create directory out/ii_files/ for
1087 # template instantiation
1088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1089 $rm out/* && rmdir out
1090 cd ..
1091 rmdir conftest
1092 $rm conftest*
1093 ])
1094 ])# AC_LIBTOOL_PROG_CC_C_O
1095
1096
1097 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1098 # -----------------------------------------
1099 # Check to see if we can do hard links to lock some files if needed
1100 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1101 [AC_REQUIRE([_LT_AC_LOCK])dnl
1102
1103 hard_links="nottested"
1104 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1105 # do not overwrite the value of need_locks provided by the user
1106 AC_MSG_CHECKING([if we can lock with hard links])
1107 hard_links=yes
1108 $rm conftest*
1109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1110 touch conftest.a
1111 ln conftest.a conftest.b 2>&5 || hard_links=no
1112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1113 AC_MSG_RESULT([$hard_links])
1114 if test "$hard_links" = no; then
1115 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1116 need_locks=warn
1117 fi
1118 else
1119 need_locks=no
1120 fi
1121 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1122
1123
1124 # AC_LIBTOOL_OBJDIR
1125 # -----------------
1126 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1127 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1128 [rm -f .libs 2>/dev/null
1129 mkdir .libs 2>/dev/null
1130 if test -d .libs; then
1131 lt_cv_objdir=.libs
1132 else
1133 # MS-DOS does not allow filenames that begin with a dot.
1134 lt_cv_objdir=_libs
1135 fi
1136 rmdir .libs 2>/dev/null])
1137 objdir=$lt_cv_objdir
1138 ])# AC_LIBTOOL_OBJDIR
1139
1140
1141 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1142 # ----------------------------------------------
1143 # Check hardcoding attributes.
1144 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1145 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1146 _LT_AC_TAGVAR(hardcode_action, $1)=
1147 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1148 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1149 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1150
1151 # We can hardcode non-existant directories.
1152 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1153 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1154 # have to relink, otherwise we might link with an installed library
1155 # when we should be linking with a yet-to-be-installed one
1156 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1157 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1158 # Linking always hardcodes the temporary library directory.
1159 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1160 else
1161 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1162 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1163 fi
1164 else
1165 # We cannot hardcode anything, or else we can only hardcode existing
1166 # directories.
1167 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1168 fi
1169 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1170
1171 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1172 # Fast installation is not supported
1173 enable_fast_install=no
1174 elif test "$shlibpath_overrides_runpath" = yes ||
1175 test "$enable_shared" = no; then
1176 # Fast installation is not necessary
1177 enable_fast_install=needless
1178 fi
1179 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1180
1181
1182 # AC_LIBTOOL_SYS_LIB_STRIP
1183 # ------------------------
1184 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1185 [striplib=
1186 old_striplib=
1187 AC_MSG_CHECKING([whether stripping libraries is possible])
1188 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1190 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1191 AC_MSG_RESULT([yes])
1192 else
1193 # FIXME - insert some real tests, host_os isn't really good enough
1194 case $host_os in
1195 darwin*)
1196 if test -n "$STRIP" ; then
1197 striplib="$STRIP -x"
1198 old_striplib="$STRIP -S"
1199 AC_MSG_RESULT([yes])
1200 else
1201 AC_MSG_RESULT([no])
1202 fi
1203 ;;
1204 *)
1205 AC_MSG_RESULT([no])
1206 ;;
1207 esac
1208 fi
1209 ])# AC_LIBTOOL_SYS_LIB_STRIP
1210
1211
1212 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1213 # -----------------------------
1214 # PORTME Fill in your ld.so characteristics
1215 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1216 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1217 AC_MSG_CHECKING([dynamic linker characteristics])
1218 library_names_spec=
1219 libname_spec='lib$name'
1220 soname_spec=
1221 shrext_cmds=".so"
1222 postinstall_cmds=
1223 postuninstall_cmds=
1224 finish_cmds=
1225 finish_eval=
1226 shlibpath_var=
1227 shlibpath_overrides_runpath=unknown
1228 version_type=none
1229 dynamic_linker="$host_os ld.so"
1230 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1231 m4_if($1,[],[
1232 if test "$GCC" = yes; then
1233 case $host_os in
1234 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1235 *) lt_awk_arg="/^libraries:/" ;;
1236 esac
1237 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1238 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1239 # if the path contains ";" then we assume it to be the separator
1240 # otherwise default to the standard path separator (i.e. ":") - it is
1241 # assumed that no part of a normal pathname contains ";" but that should
1242 # okay in the real world where ";" in dirpaths is itself problematic.
1243 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1244 else
1245 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1246 fi
1247 # Ok, now we have the path, separated by spaces, we can step through it
1248 # and add multilib dir if necessary.
1249 lt_tmp_lt_search_path_spec=
1250 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1251 for lt_sys_path in $lt_search_path_spec; do
1252 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1254 else
1255 test -d "$lt_sys_path" && \
1256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1257 fi
1258 done
1259 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1260 BEGIN {RS=" "; FS="/|\n";} {
1261 lt_foo="";
1262 lt_count=0;
1263 for (lt_i = NF; lt_i > 0; lt_i--) {
1264 if ($lt_i != "" && $lt_i != ".") {
1265 if ($lt_i == "..") {
1266 lt_count++;
1267 } else {
1268 if (lt_count == 0) {
1269 lt_foo="/" $lt_i lt_foo;
1270 } else {
1271 lt_count--;
1272 }
1273 }
1274 }
1275 }
1276 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1277 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1278 }'`
1279 sys_lib_search_path_spec=`echo $lt_search_path_spec`
1280 else
1281 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1282 fi])
1283 need_lib_prefix=unknown
1284 hardcode_into_libs=no
1285
1286 # when you set need_version to no, make sure it does not cause -set_version
1287 # flags to be left without arguments
1288 need_version=unknown
1289
1290 case $host_os in
1291 aix3*)
1292 version_type=linux
1293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1294 shlibpath_var=LIBPATH
1295
1296 # AIX 3 has no versioning support, so we append a major version to the name.
1297 soname_spec='${libname}${release}${shared_ext}$major'
1298 ;;
1299
1300 aix4* | aix5*)
1301 version_type=linux
1302 need_lib_prefix=no
1303 need_version=no
1304 hardcode_into_libs=yes
1305 if test "$host_cpu" = ia64; then
1306 # AIX 5 supports IA64
1307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1308 shlibpath_var=LD_LIBRARY_PATH
1309 else
1310 # With GCC up to 2.95.x, collect2 would create an import file
1311 # for dependence libraries. The import file would start with
1312 # the line `#! .'. This would cause the generated library to
1313 # depend on `.', always an invalid library. This was fixed in
1314 # development snapshots of GCC prior to 3.0.
1315 case $host_os in
1316 aix4 | aix4.[[01]] | aix4.[[01]].*)
1317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1318 echo ' yes '
1319 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1320 :
1321 else
1322 can_build_shared=no
1323 fi
1324 ;;
1325 esac
1326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1327 # soname into executable. Probably we can add versioning support to
1328 # collect2, so additional links can be useful in future.
1329 if test "$aix_use_runtimelinking" = yes; then
1330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1331 # instead of lib<name>.a to let people know that these are not
1332 # typical AIX shared libraries.
1333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1334 else
1335 # We preserve .a as extension for shared libraries through AIX4.2
1336 # and later when we are not doing run time linking.
1337 library_names_spec='${libname}${release}.a $libname.a'
1338 soname_spec='${libname}${release}${shared_ext}$major'
1339 fi
1340 shlibpath_var=LIBPATH
1341 fi
1342 ;;
1343
1344 amigaos*)
1345 library_names_spec='$libname.ixlibrary $libname.a'
1346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1347 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'
1348 ;;
1349
1350 beos*)
1351 library_names_spec='${libname}${shared_ext}'
1352 dynamic_linker="$host_os ld.so"
1353 shlibpath_var=LIBRARY_PATH
1354 ;;
1355
1356 bsdi[[45]]*)
1357 version_type=linux
1358 need_version=no
1359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1360 soname_spec='${libname}${release}${shared_ext}$major'
1361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1362 shlibpath_var=LD_LIBRARY_PATH
1363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1365 # the default ld.so.conf also contains /usr/contrib/lib and
1366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1367 # libtool to hard-code these into programs
1368 ;;
1369
1370 cygwin* | mingw* | pw32*)
1371 version_type=windows
1372 shrext_cmds=".dll"
1373 need_version=no
1374 need_lib_prefix=no
1375
1376 case $GCC,$host_os in
1377 yes,cygwin* | yes,mingw* | yes,pw32*)
1378 library_names_spec='$libname.dll.a'
1379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1380 postinstall_cmds='base_file=`basename \${file}`~
1381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1382 dldir=$destdir/`dirname \$dlpath`~
1383 test -d \$dldir || mkdir -p \$dldir~
1384 $install_prog $dir/$dlname \$dldir/$dlname~
1385 chmod a+x \$dldir/$dlname'
1386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1387 dlpath=$dir/\$dldll~
1388 $rm \$dlpath'
1389 shlibpath_overrides_runpath=yes
1390
1391 case $host_os in
1392 cygwin*)
1393 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1395 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1396 ;;
1397 mingw*)
1398 # MinGW DLLs use traditional 'lib' prefix
1399 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1400 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1401 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1402 # It is most probably a Windows format PATH printed by
1403 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1404 # path with ; separators, and with drive letters. We can handle the
1405 # drive letters (cygwin fileutils understands them), so leave them,
1406 # especially as we might pass files found there to a mingw objdump,
1407 # which wouldn't understand a cygwinified path. Ahh.
1408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1409 else
1410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1411 fi
1412 ;;
1413 pw32*)
1414 # pw32 DLLs use 'pw' prefix rather than 'lib'
1415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1416 ;;
1417 esac
1418 ;;
1419
1420 *)
1421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1422 ;;
1423 esac
1424 dynamic_linker='Win32 ld.exe'
1425 # FIXME: first we should search . and the directory the executable is in
1426 shlibpath_var=PATH
1427 ;;
1428
1429 darwin* | rhapsody*)
1430 dynamic_linker="$host_os dyld"
1431 version_type=darwin
1432 need_lib_prefix=no
1433 need_version=no
1434 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1435 soname_spec='${libname}${release}${major}$shared_ext'
1436 shlibpath_overrides_runpath=yes
1437 shlibpath_var=DYLD_LIBRARY_PATH
1438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1439 m4_if([$1], [],[
1440 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1442 ;;
1443
1444 dgux*)
1445 version_type=linux
1446 need_lib_prefix=no
1447 need_version=no
1448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1449 soname_spec='${libname}${release}${shared_ext}$major'
1450 shlibpath_var=LD_LIBRARY_PATH
1451 ;;
1452
1453 freebsd1*)
1454 dynamic_linker=no
1455 ;;
1456
1457 freebsd* | dragonfly*)
1458 # DragonFly does not have aout. When/if they implement a new
1459 # versioning mechanism, adjust this.
1460 if test -x /usr/bin/objformat; then
1461 objformat=`/usr/bin/objformat`
1462 else
1463 case $host_os in
1464 freebsd[[123]]*) objformat=aout ;;
1465 *) objformat=elf ;;
1466 esac
1467 fi
1468 version_type=freebsd-$objformat
1469 case $version_type in
1470 freebsd-elf*)
1471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1472 need_version=no
1473 need_lib_prefix=no
1474 ;;
1475 freebsd-*)
1476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1477 need_version=yes
1478 ;;
1479 esac
1480 shlibpath_var=LD_LIBRARY_PATH
1481 case $host_os in
1482 freebsd2*)
1483 shlibpath_overrides_runpath=yes
1484 ;;
1485 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1486 shlibpath_overrides_runpath=yes
1487 hardcode_into_libs=yes
1488 ;;
1489 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1490 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1491 shlibpath_overrides_runpath=no
1492 hardcode_into_libs=yes
1493 ;;
1494 *) # from 4.6 on, and DragonFly
1495 shlibpath_overrides_runpath=yes
1496 hardcode_into_libs=yes
1497 ;;
1498 esac
1499 ;;
1500
1501 gnu*)
1502 version_type=linux
1503 need_lib_prefix=no
1504 need_version=no
1505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1506 soname_spec='${libname}${release}${shared_ext}$major'
1507 shlibpath_var=LD_LIBRARY_PATH
1508 hardcode_into_libs=yes
1509 ;;
1510
1511 hpux9* | hpux10* | hpux11*)
1512 # Give a soname corresponding to the major version so that dld.sl refuses to
1513 # link against other versions.
1514 version_type=sunos
1515 need_lib_prefix=no
1516 need_version=no
1517 case $host_cpu in
1518 ia64*)
1519 shrext_cmds='.so'
1520 hardcode_into_libs=yes
1521 dynamic_linker="$host_os dld.so"
1522 shlibpath_var=LD_LIBRARY_PATH
1523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1525 soname_spec='${libname}${release}${shared_ext}$major'
1526 if test "X$HPUX_IA64_MODE" = X32; then
1527 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1528 else
1529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1530 fi
1531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1532 ;;
1533 hppa*64*)
1534 shrext_cmds='.sl'
1535 hardcode_into_libs=yes
1536 dynamic_linker="$host_os dld.sl"
1537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1540 soname_spec='${libname}${release}${shared_ext}$major'
1541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1543 ;;
1544 *)
1545 shrext_cmds='.sl'
1546 dynamic_linker="$host_os dld.sl"
1547 shlibpath_var=SHLIB_PATH
1548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1550 soname_spec='${libname}${release}${shared_ext}$major'
1551 ;;
1552 esac
1553 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1554 postinstall_cmds='chmod 555 $lib'
1555 ;;
1556
1557 interix[[3-9]]*)
1558 version_type=linux
1559 need_lib_prefix=no
1560 need_version=no
1561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1562 soname_spec='${libname}${release}${shared_ext}$major'
1563 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1564 shlibpath_var=LD_LIBRARY_PATH
1565 shlibpath_overrides_runpath=no
1566 hardcode_into_libs=yes
1567 ;;
1568
1569 irix5* | irix6* | nonstopux*)
1570 case $host_os in
1571 nonstopux*) version_type=nonstopux ;;
1572 *)
1573 if test "$lt_cv_prog_gnu_ld" = yes; then
1574 version_type=linux
1575 else
1576 version_type=irix
1577 fi ;;
1578 esac
1579 need_lib_prefix=no
1580 need_version=no
1581 soname_spec='${libname}${release}${shared_ext}$major'
1582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1583 case $host_os in
1584 irix5* | nonstopux*)
1585 libsuff= shlibsuff=
1586 ;;
1587 *)
1588 case $LD in # libtool.m4 will add one of these switches to LD
1589 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1590 libsuff= shlibsuff= libmagic=32-bit;;
1591 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1592 libsuff=32 shlibsuff=N32 libmagic=N32;;
1593 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1594 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1595 *) libsuff= shlibsuff= libmagic=never-match;;
1596 esac
1597 ;;
1598 esac
1599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1600 shlibpath_overrides_runpath=no
1601 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1602 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1603 hardcode_into_libs=yes
1604 ;;
1605
1606 # No shared lib support for Linux oldld, aout, or coff.
1607 linux*oldld* | linux*aout* | linux*coff*)
1608 dynamic_linker=no
1609 ;;
1610
1611 # This must be Linux ELF.
1612 linux* | k*bsd*-gnu)
1613 version_type=linux
1614 need_lib_prefix=no
1615 need_version=no
1616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1617 soname_spec='${libname}${release}${shared_ext}$major'
1618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1619 shlibpath_var=LD_LIBRARY_PATH
1620 shlibpath_overrides_runpath=no
1621 # This implies no fast_install, which is unacceptable.
1622 # Some rework will be needed to allow for fast_install
1623 # before this can be enabled.
1624 hardcode_into_libs=yes
1625
1626 # Append ld.so.conf contents to the search path
1627 if test -f /etc/ld.so.conf; then
1628 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1629 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1630 fi
1631
1632 # We used to test for /lib/ld.so.1 and disable shared libraries on
1633 # powerpc, because MkLinux only supported shared libraries with the
1634 # GNU dynamic linker. Since this was broken with cross compilers,
1635 # most powerpc-linux boxes support dynamic linking these days and
1636 # people can always --disable-shared, the test was removed, and we
1637 # assume the GNU/Linux dynamic linker is in use.
1638 dynamic_linker='GNU/Linux ld.so'
1639 ;;
1640
1641 netbsdelf*-gnu)
1642 version_type=linux
1643 need_lib_prefix=no
1644 need_version=no
1645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1646 soname_spec='${libname}${release}${shared_ext}$major'
1647 shlibpath_var=LD_LIBRARY_PATH
1648 shlibpath_overrides_runpath=no
1649 hardcode_into_libs=yes
1650 dynamic_linker='NetBSD ld.elf_so'
1651 ;;
1652
1653 netbsd*)
1654 version_type=sunos
1655 need_lib_prefix=no
1656 need_version=no
1657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1660 dynamic_linker='NetBSD (a.out) ld.so'
1661 else
1662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1663 soname_spec='${libname}${release}${shared_ext}$major'
1664 dynamic_linker='NetBSD ld.elf_so'
1665 fi
1666 shlibpath_var=LD_LIBRARY_PATH
1667 shlibpath_overrides_runpath=yes
1668 hardcode_into_libs=yes
1669 ;;
1670
1671 newsos6)
1672 version_type=linux
1673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1674 shlibpath_var=LD_LIBRARY_PATH
1675 shlibpath_overrides_runpath=yes
1676 ;;
1677
1678 nto-qnx*)
1679 version_type=linux
1680 need_lib_prefix=no
1681 need_version=no
1682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1683 soname_spec='${libname}${release}${shared_ext}$major'
1684 shlibpath_var=LD_LIBRARY_PATH
1685 shlibpath_overrides_runpath=yes
1686 ;;
1687
1688 openbsd*)
1689 version_type=sunos
1690 sys_lib_dlsearch_path_spec="/usr/lib"
1691 need_lib_prefix=no
1692 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1693 case $host_os in
1694 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1695 *) need_version=no ;;
1696 esac
1697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1699 shlibpath_var=LD_LIBRARY_PATH
1700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1701 case $host_os in
1702 openbsd2.[[89]] | openbsd2.[[89]].*)
1703 shlibpath_overrides_runpath=no
1704 ;;
1705 *)
1706 shlibpath_overrides_runpath=yes
1707 ;;
1708 esac
1709 else
1710 shlibpath_overrides_runpath=yes
1711 fi
1712 ;;
1713
1714 os2*)
1715 libname_spec='$name'
1716 shrext_cmds=".dll"
1717 need_lib_prefix=no
1718 library_names_spec='$libname${shared_ext} $libname.a'
1719 dynamic_linker='OS/2 ld.exe'
1720 shlibpath_var=LIBPATH
1721 ;;
1722
1723 osf3* | osf4* | osf5*)
1724 version_type=osf
1725 need_lib_prefix=no
1726 need_version=no
1727 soname_spec='${libname}${release}${shared_ext}$major'
1728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1729 shlibpath_var=LD_LIBRARY_PATH
1730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1732 ;;
1733
1734 rdos*)
1735 dynamic_linker=no
1736 ;;
1737
1738 solaris*)
1739 version_type=linux
1740 need_lib_prefix=no
1741 need_version=no
1742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1743 soname_spec='${libname}${release}${shared_ext}$major'
1744 shlibpath_var=LD_LIBRARY_PATH
1745 shlibpath_overrides_runpath=yes
1746 hardcode_into_libs=yes
1747 # ldd complains unless libraries are executable
1748 postinstall_cmds='chmod +x $lib'
1749 ;;
1750
1751 sunos4*)
1752 version_type=sunos
1753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1755 shlibpath_var=LD_LIBRARY_PATH
1756 shlibpath_overrides_runpath=yes
1757 if test "$with_gnu_ld" = yes; then
1758 need_lib_prefix=no
1759 fi
1760 need_version=yes
1761 ;;
1762
1763 sysv4 | sysv4.3*)
1764 version_type=linux
1765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1766 soname_spec='${libname}${release}${shared_ext}$major'
1767 shlibpath_var=LD_LIBRARY_PATH
1768 case $host_vendor in
1769 sni)
1770 shlibpath_overrides_runpath=no
1771 need_lib_prefix=no
1772 export_dynamic_flag_spec='${wl}-Blargedynsym'
1773 runpath_var=LD_RUN_PATH
1774 ;;
1775 siemens)
1776 need_lib_prefix=no
1777 ;;
1778 motorola)
1779 need_lib_prefix=no
1780 need_version=no
1781 shlibpath_overrides_runpath=no
1782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1783 ;;
1784 esac
1785 ;;
1786
1787 sysv4*MP*)
1788 if test -d /usr/nec ;then
1789 version_type=linux
1790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1791 soname_spec='$libname${shared_ext}.$major'
1792 shlibpath_var=LD_LIBRARY_PATH
1793 fi
1794 ;;
1795
1796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1797 version_type=freebsd-elf
1798 need_lib_prefix=no
1799 need_version=no
1800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1801 soname_spec='${libname}${release}${shared_ext}$major'
1802 shlibpath_var=LD_LIBRARY_PATH
1803 hardcode_into_libs=yes
1804 if test "$with_gnu_ld" = yes; then
1805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1806 shlibpath_overrides_runpath=no
1807 else
1808 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1809 shlibpath_overrides_runpath=yes
1810 case $host_os in
1811 sco3.2v5*)
1812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1813 ;;
1814 esac
1815 fi
1816 sys_lib_dlsearch_path_spec='/usr/lib'
1817 ;;
1818
1819 uts4*)
1820 version_type=linux
1821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1822 soname_spec='${libname}${release}${shared_ext}$major'
1823 shlibpath_var=LD_LIBRARY_PATH
1824 ;;
1825
1826 *)
1827 dynamic_linker=no
1828 ;;
1829 esac
1830 AC_MSG_RESULT([$dynamic_linker])
1831 test "$dynamic_linker" = no && can_build_shared=no
1832
1833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1834 if test "$GCC" = yes; then
1835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1836 fi
1837 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1838
1839
1840 # _LT_AC_TAGCONFIG
1841 # ----------------
1842 AC_DEFUN([_LT_AC_TAGCONFIG],
1843 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1844 AC_ARG_WITH([tags],
1845 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1846 [include additional configurations @<:@automatic@:>@])],
1847 [tagnames="$withval"])
1848
1849 if test -f "$ltmain" && test -n "$tagnames"; then
1850 if test ! -f "${ofile}"; then
1851 AC_MSG_WARN([output file `$ofile' does not exist])
1852 fi
1853
1854 if test -z "$LTCC"; then
1855 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1856 if test -z "$LTCC"; then
1857 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1858 else
1859 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1860 fi
1861 fi
1862 if test -z "$LTCFLAGS"; then
1863 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1864 fi
1865
1866 # Extract list of available tagged configurations in $ofile.
1867 # Note that this assumes the entire list is on one line.
1868 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1869
1870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1871 for tagname in $tagnames; do
1872 IFS="$lt_save_ifs"
1873 # Check whether tagname contains only valid characters
1874 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1875 "") ;;
1876 *) AC_MSG_ERROR([invalid tag name: $tagname])
1877 ;;
1878 esac
1879
1880 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1881 then
1882 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1883 fi
1884
1885 # Update the list of available tags.
1886 if test -n "$tagname"; then
1887 echo appending configuration tag \"$tagname\" to $ofile
1888
1889 case $tagname in
1890 CXX)
1891 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1892 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1893 (test "X$CXX" != "Xg++"))) ; then
1894 AC_LIBTOOL_LANG_CXX_CONFIG
1895 else
1896 tagname=""
1897 fi
1898 ;;
1899
1900 F77)
1901 if test -n "$F77" && test "X$F77" != "Xno"; then
1902 AC_LIBTOOL_LANG_F77_CONFIG
1903 else
1904 tagname=""
1905 fi
1906 ;;
1907
1908 GCJ)
1909 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1910 AC_LIBTOOL_LANG_GCJ_CONFIG
1911 else
1912 tagname=""
1913 fi
1914 ;;
1915
1916 RC)
1917 AC_LIBTOOL_LANG_RC_CONFIG
1918 ;;
1919
1920 *)
1921 AC_MSG_ERROR([Unsupported tag name: $tagname])
1922 ;;
1923 esac
1924
1925 # Append the new tag name to the list of available tags.
1926 if test -n "$tagname" ; then
1927 available_tags="$available_tags $tagname"
1928 fi
1929 fi
1930 done
1931 IFS="$lt_save_ifs"
1932
1933 # Now substitute the updated list of available tags.
1934 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1935 mv "${ofile}T" "$ofile"
1936 chmod +x "$ofile"
1937 else
1938 rm -f "${ofile}T"
1939 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1940 fi
1941 fi
1942 ])# _LT_AC_TAGCONFIG
1943
1944
1945 # AC_LIBTOOL_DLOPEN
1946 # -----------------
1947 # enable checks for dlopen support
1948 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1949 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1950 ])# AC_LIBTOOL_DLOPEN
1951
1952
1953 # AC_LIBTOOL_WIN32_DLL
1954 # --------------------
1955 # declare package support for building win32 DLLs
1956 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1957 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1958 ])# AC_LIBTOOL_WIN32_DLL
1959
1960
1961 # AC_ENABLE_SHARED([DEFAULT])
1962 # ---------------------------
1963 # implement the --enable-shared flag
1964 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1965 AC_DEFUN([AC_ENABLE_SHARED],
1966 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1967 AC_ARG_ENABLE([shared],
1968 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1969 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1970 [p=${PACKAGE-default}
1971 case $enableval in
1972 yes) enable_shared=yes ;;
1973 no) enable_shared=no ;;
1974 *)
1975 enable_shared=no
1976 # Look at the argument we got. We use all the common list separators.
1977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1978 for pkg in $enableval; do
1979 IFS="$lt_save_ifs"
1980 if test "X$pkg" = "X$p"; then
1981 enable_shared=yes
1982 fi
1983 done
1984 IFS="$lt_save_ifs"
1985 ;;
1986 esac],
1987 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1988 ])# AC_ENABLE_SHARED
1989
1990
1991 # AC_DISABLE_SHARED
1992 # -----------------
1993 # set the default shared flag to --disable-shared
1994 AC_DEFUN([AC_DISABLE_SHARED],
1995 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1996 AC_ENABLE_SHARED(no)
1997 ])# AC_DISABLE_SHARED
1998
1999
2000 # AC_ENABLE_STATIC([DEFAULT])
2001 # ---------------------------
2002 # implement the --enable-static flag
2003 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2004 AC_DEFUN([AC_ENABLE_STATIC],
2005 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2006 AC_ARG_ENABLE([static],
2007 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2008 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2009 [p=${PACKAGE-default}
2010 case $enableval in
2011 yes) enable_static=yes ;;
2012 no) enable_static=no ;;
2013 *)
2014 enable_static=no
2015 # Look at the argument we got. We use all the common list separators.
2016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2017 for pkg in $enableval; do
2018 IFS="$lt_save_ifs"
2019 if test "X$pkg" = "X$p"; then
2020 enable_static=yes
2021 fi
2022 done
2023 IFS="$lt_save_ifs"
2024 ;;
2025 esac],
2026 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2027 ])# AC_ENABLE_STATIC
2028
2029
2030 # AC_DISABLE_STATIC
2031 # -----------------
2032 # set the default static flag to --disable-static
2033 AC_DEFUN([AC_DISABLE_STATIC],
2034 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2035 AC_ENABLE_STATIC(no)
2036 ])# AC_DISABLE_STATIC
2037
2038
2039 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2040 # ---------------------------------
2041 # implement the --enable-fast-install flag
2042 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2043 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2044 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2045 AC_ARG_ENABLE([fast-install],
2046 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2047 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2048 [p=${PACKAGE-default}
2049 case $enableval in
2050 yes) enable_fast_install=yes ;;
2051 no) enable_fast_install=no ;;
2052 *)
2053 enable_fast_install=no
2054 # Look at the argument we got. We use all the common list separators.
2055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2056 for pkg in $enableval; do
2057 IFS="$lt_save_ifs"
2058 if test "X$pkg" = "X$p"; then
2059 enable_fast_install=yes
2060 fi
2061 done
2062 IFS="$lt_save_ifs"
2063 ;;
2064 esac],
2065 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2066 ])# AC_ENABLE_FAST_INSTALL
2067
2068
2069 # AC_DISABLE_FAST_INSTALL
2070 # -----------------------
2071 # set the default to --disable-fast-install
2072 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2073 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2074 AC_ENABLE_FAST_INSTALL(no)
2075 ])# AC_DISABLE_FAST_INSTALL
2076
2077
2078 # AC_LIBTOOL_PICMODE([MODE])
2079 # --------------------------
2080 # implement the --with-pic flag
2081 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2082 AC_DEFUN([AC_LIBTOOL_PICMODE],
2083 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2084 pic_mode=ifelse($#,1,$1,default)
2085 ])# AC_LIBTOOL_PICMODE
2086
2087
2088 # AC_PROG_EGREP
2089 # -------------
2090 # This is predefined starting with Autoconf 2.54, so this conditional
2091 # definition can be removed once we require Autoconf 2.54 or later.
2092 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2093 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2094 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2095 then ac_cv_prog_egrep='grep -E'
2096 else ac_cv_prog_egrep='egrep'
2097 fi])
2098 EGREP=$ac_cv_prog_egrep
2099 AC_SUBST([EGREP])
2100 ])])
2101
2102
2103 # AC_PATH_TOOL_PREFIX
2104 # -------------------
2105 # find a file program which can recognize shared library
2106 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2107 [AC_REQUIRE([AC_PROG_EGREP])dnl
2108 AC_MSG_CHECKING([for $1])
2109 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2110 [case $MAGIC_CMD in
2111 [[\\/*] | ?:[\\/]*])
2112 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2113 ;;
2114 *)
2115 lt_save_MAGIC_CMD="$MAGIC_CMD"
2116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2117 dnl $ac_dummy forces splitting on constant user-supplied paths.
2118 dnl POSIX.2 word splitting is done only on the output of word expansions,
2119 dnl not every word. This closes a longstanding sh security hole.
2120 ac_dummy="ifelse([$2], , $PATH, [$2])"
2121 for ac_dir in $ac_dummy; do
2122 IFS="$lt_save_ifs"
2123 test -z "$ac_dir" && ac_dir=.
2124 if test -f $ac_dir/$1; then
2125 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2126 if test -n "$file_magic_test_file"; then
2127 case $deplibs_check_method in
2128 "file_magic "*)
2129 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2132 $EGREP "$file_magic_regex" > /dev/null; then
2133 :
2134 else
2135 cat <<EOF 1>&2
2136
2137 *** Warning: the command libtool uses to detect shared libraries,
2138 *** $file_magic_cmd, produces output that libtool cannot recognize.
2139 *** The result is that libtool may fail to recognize shared libraries
2140 *** as such. This will affect the creation of libtool libraries that
2141 *** depend on shared libraries, but programs linked with such libtool
2142 *** libraries will work regardless of this problem. Nevertheless, you
2143 *** may want to report the problem to your system manager and/or to
2144 *** bug-libtool@gnu.org
2145
2146 EOF
2147 fi ;;
2148 esac
2149 fi
2150 break
2151 fi
2152 done
2153 IFS="$lt_save_ifs"
2154 MAGIC_CMD="$lt_save_MAGIC_CMD"
2155 ;;
2156 esac])
2157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2158 if test -n "$MAGIC_CMD"; then
2159 AC_MSG_RESULT($MAGIC_CMD)
2160 else
2161 AC_MSG_RESULT(no)
2162 fi
2163 ])# AC_PATH_TOOL_PREFIX
2164
2165
2166 # AC_PATH_MAGIC
2167 # -------------
2168 # find a file program which can recognize a shared library
2169 AC_DEFUN([AC_PATH_MAGIC],
2170 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2171 if test -z "$lt_cv_path_MAGIC_CMD"; then
2172 if test -n "$ac_tool_prefix"; then
2173 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2174 else
2175 MAGIC_CMD=:
2176 fi
2177 fi
2178 ])# AC_PATH_MAGIC
2179
2180
2181 # AC_PROG_LD
2182 # ----------
2183 # find the pathname to the GNU or non-GNU linker
2184 AC_DEFUN([AC_PROG_LD],
2185 [AC_ARG_WITH([gnu-ld],
2186 [AC_HELP_STRING([--with-gnu-ld],
2187 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2188 [test "$withval" = no || with_gnu_ld=yes],
2189 [with_gnu_ld=no])
2190 AC_REQUIRE([LT_AC_PROG_SED])dnl
2191 AC_REQUIRE([AC_PROG_CC])dnl
2192 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2193 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2194 ac_prog=ld
2195 if test "$GCC" = yes; then
2196 # Check if gcc -print-prog-name=ld gives a path.
2197 AC_MSG_CHECKING([for ld used by $CC])
2198 case $host in
2199 *-*-mingw*)
2200 # gcc leaves a trailing carriage return which upsets mingw
2201 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2202 *)
2203 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2204 esac
2205 case $ac_prog in
2206 # Accept absolute paths.
2207 [[\\/]]* | ?:[[\\/]]*)
2208 re_direlt='/[[^/]][[^/]]*/\.\./'
2209 # Canonicalize the pathname of ld
2210 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2211 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2212 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2213 done
2214 test -z "$LD" && LD="$ac_prog"
2215 ;;
2216 "")
2217 # If it fails, then pretend we aren't using GCC.
2218 ac_prog=ld
2219 ;;
2220 *)
2221 # If it is relative, then search for the first ld in PATH.
2222 with_gnu_ld=unknown
2223 ;;
2224 esac
2225 elif test "$with_gnu_ld" = yes; then
2226 AC_MSG_CHECKING([for GNU ld])
2227 else
2228 AC_MSG_CHECKING([for non-GNU ld])
2229 fi
2230 AC_CACHE_VAL(lt_cv_path_LD,
2231 [if test -z "$LD"; then
2232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2233 for ac_dir in $PATH; do
2234 IFS="$lt_save_ifs"
2235 test -z "$ac_dir" && ac_dir=.
2236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2237 lt_cv_path_LD="$ac_dir/$ac_prog"
2238 # Check to see if the program is GNU ld. I'd rather use --version,
2239 # but apparently some variants of GNU ld only accept -v.
2240 # Break only if it was the GNU/non-GNU ld that we prefer.
2241 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2242 *GNU* | *'with BFD'*)
2243 test "$with_gnu_ld" != no && break
2244 ;;
2245 *)
2246 test "$with_gnu_ld" != yes && break
2247 ;;
2248 esac
2249 fi
2250 done
2251 IFS="$lt_save_ifs"
2252 else
2253 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2254 fi])
2255 LD="$lt_cv_path_LD"
2256 if test -n "$LD"; then
2257 AC_MSG_RESULT($LD)
2258 else
2259 AC_MSG_RESULT(no)
2260 fi
2261 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2262 AC_PROG_LD_GNU
2263 ])# AC_PROG_LD
2264
2265
2266 # AC_PROG_LD_GNU
2267 # --------------
2268 AC_DEFUN([AC_PROG_LD_GNU],
2269 [AC_REQUIRE([AC_PROG_EGREP])dnl
2270 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2271 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2272 case `$LD -v 2>&1 </dev/null` in
2273 *GNU* | *'with BFD'*)
2274 lt_cv_prog_gnu_ld=yes
2275 ;;
2276 *)
2277 lt_cv_prog_gnu_ld=no
2278 ;;
2279 esac])
2280 with_gnu_ld=$lt_cv_prog_gnu_ld
2281 ])# AC_PROG_LD_GNU
2282
2283
2284 # AC_PROG_LD_RELOAD_FLAG
2285 # ----------------------
2286 # find reload flag for linker
2287 # -- PORTME Some linkers may need a different reload flag.
2288 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2289 [AC_CACHE_CHECK([for $LD option to reload object files],
2290 lt_cv_ld_reload_flag,
2291 [lt_cv_ld_reload_flag='-r'])
2292 reload_flag=$lt_cv_ld_reload_flag
2293 case $reload_flag in
2294 "" | " "*) ;;
2295 *) reload_flag=" $reload_flag" ;;
2296 esac
2297 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2298 case $host_os in
2299 darwin*)
2300 if test "$GCC" = yes; then
2301 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2302 else
2303 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2304 fi
2305 ;;
2306 esac
2307 ])# AC_PROG_LD_RELOAD_FLAG
2308
2309
2310 # AC_DEPLIBS_CHECK_METHOD
2311 # -----------------------
2312 # how to check for library dependencies
2313 # -- PORTME fill in with the dynamic library characteristics
2314 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2315 [AC_CACHE_CHECK([how to recognize dependent libraries],
2316 lt_cv_deplibs_check_method,
2317 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2318 lt_cv_file_magic_test_file=
2319 lt_cv_deplibs_check_method='unknown'
2320 # Need to set the preceding variable on all platforms that support
2321 # interlibrary dependencies.
2322 # 'none' -- dependencies not supported.
2323 # `unknown' -- same as none, but documents that we really don't know.
2324 # 'pass_all' -- all dependencies passed with no checks.
2325 # 'test_compile' -- check by making test program.
2326 # 'file_magic [[regex]]' -- check by looking for files in library path
2327 # which responds to the $file_magic_cmd with a given extended regex.
2328 # If you have `file' or equivalent on your system and you're not sure
2329 # whether `pass_all' will *always* work, you probably want this one.
2330
2331 case $host_os in
2332 aix4* | aix5*)
2333 lt_cv_deplibs_check_method=pass_all
2334 ;;
2335
2336 beos*)
2337 lt_cv_deplibs_check_method=pass_all
2338 ;;
2339
2340 bsdi[[45]]*)
2341 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2342 lt_cv_file_magic_cmd='/usr/bin/file -L'
2343 lt_cv_file_magic_test_file=/shlib/libc.so
2344 ;;
2345
2346 cygwin*)
2347 # func_win32_libid is a shell function defined in ltmain.sh
2348 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2349 lt_cv_file_magic_cmd='func_win32_libid'
2350 ;;
2351
2352 mingw* | pw32*)
2353 # Base MSYS/MinGW do not provide the 'file' command needed by
2354 # func_win32_libid shell function, so use a weaker test based on 'objdump',
2355 # unless we find 'file', for example because we are cross-compiling.
2356 if ( file / ) >/dev/null 2>&1; then
2357 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2358 lt_cv_file_magic_cmd='func_win32_libid'
2359 else
2360 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2361 lt_cv_file_magic_cmd='$OBJDUMP -f'
2362 fi
2363 ;;
2364
2365 darwin* | rhapsody*)
2366 lt_cv_deplibs_check_method=pass_all
2367 ;;
2368
2369 freebsd* | dragonfly*)
2370 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2371 case $host_cpu in
2372 i*86 )
2373 # Not sure whether the presence of OpenBSD here was a mistake.
2374 # Let's accept both of them until this is cleared up.
2375 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2376 lt_cv_file_magic_cmd=/usr/bin/file
2377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2378 ;;
2379 esac
2380 else
2381 lt_cv_deplibs_check_method=pass_all
2382 fi
2383 ;;
2384
2385 gnu*)
2386 lt_cv_deplibs_check_method=pass_all
2387 ;;
2388
2389 hpux10.20* | hpux11*)
2390 lt_cv_file_magic_cmd=/usr/bin/file
2391 case $host_cpu in
2392 ia64*)
2393 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2395 ;;
2396 hppa*64*)
2397 [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]']
2398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2399 ;;
2400 *)
2401 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2403 ;;
2404 esac
2405 ;;
2406
2407 interix[[3-9]]*)
2408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2409 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2410 ;;
2411
2412 irix5* | irix6* | nonstopux*)
2413 case $LD in
2414 *-32|*"-32 ") libmagic=32-bit;;
2415 *-n32|*"-n32 ") libmagic=N32;;
2416 *-64|*"-64 ") libmagic=64-bit;;
2417 *) libmagic=never-match;;
2418 esac
2419 lt_cv_deplibs_check_method=pass_all
2420 ;;
2421
2422 # This must be Linux ELF.
2423 linux* | k*bsd*-gnu)
2424 lt_cv_deplibs_check_method=pass_all
2425 ;;
2426
2427 netbsd* | netbsdelf*-gnu)
2428 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2429 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2430 else
2431 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2432 fi
2433 ;;
2434
2435 newos6*)
2436 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2437 lt_cv_file_magic_cmd=/usr/bin/file
2438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2439 ;;
2440
2441 nto-qnx*)
2442 lt_cv_deplibs_check_method=unknown
2443 ;;
2444
2445 openbsd*)
2446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2447 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2448 else
2449 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2450 fi
2451 ;;
2452
2453 osf3* | osf4* | osf5*)
2454 lt_cv_deplibs_check_method=pass_all
2455 ;;
2456
2457 rdos*)
2458 lt_cv_deplibs_check_method=pass_all
2459 ;;
2460
2461 solaris*)
2462 lt_cv_deplibs_check_method=pass_all
2463 ;;
2464
2465 sysv4 | sysv4.3*)
2466 case $host_vendor in
2467 motorola)
2468 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]]'
2469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2470 ;;
2471 ncr)
2472 lt_cv_deplibs_check_method=pass_all
2473 ;;
2474 sequent)
2475 lt_cv_file_magic_cmd='/bin/file'
2476 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2477 ;;
2478 sni)
2479 lt_cv_file_magic_cmd='/bin/file'
2480 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2481 lt_cv_file_magic_test_file=/lib/libc.so
2482 ;;
2483 siemens)
2484 lt_cv_deplibs_check_method=pass_all
2485 ;;
2486 pc)
2487 lt_cv_deplibs_check_method=pass_all
2488 ;;
2489 esac
2490 ;;
2491
2492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2493 lt_cv_deplibs_check_method=pass_all
2494 ;;
2495 esac
2496 ])
2497 file_magic_cmd=$lt_cv_file_magic_cmd
2498 deplibs_check_method=$lt_cv_deplibs_check_method
2499 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2500 ])# AC_DEPLIBS_CHECK_METHOD
2501
2502
2503 # AC_PROG_NM
2504 # ----------
2505 # find the pathname to a BSD-compatible name lister
2506 AC_DEFUN([AC_PROG_NM],
2507 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2508 [if test -n "$NM"; then
2509 # Let the user override the test.
2510 lt_cv_path_NM="$NM"
2511 else
2512 lt_nm_to_check="${ac_tool_prefix}nm"
2513 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2514 lt_nm_to_check="$lt_nm_to_check nm"
2515 fi
2516 for lt_tmp_nm in $lt_nm_to_check; do
2517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2518 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2519 IFS="$lt_save_ifs"
2520 test -z "$ac_dir" && ac_dir=.
2521 tmp_nm="$ac_dir/$lt_tmp_nm"
2522 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2523 # Check to see if the nm accepts a BSD-compat flag.
2524 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2525 # nm: unknown option "B" ignored
2526 # Tru64's nm complains that /dev/null is an invalid object file
2527 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2528 */dev/null* | *'Invalid file or object type'*)
2529 lt_cv_path_NM="$tmp_nm -B"
2530 break
2531 ;;
2532 *)
2533 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2534 */dev/null*)
2535 lt_cv_path_NM="$tmp_nm -p"
2536 break
2537 ;;
2538 *)
2539 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2540 continue # so that we can try to find one that supports BSD flags
2541 ;;
2542 esac
2543 ;;
2544 esac
2545 fi
2546 done
2547 IFS="$lt_save_ifs"
2548 done
2549 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2550 fi])
2551 NM="$lt_cv_path_NM"
2552 ])# AC_PROG_NM
2553
2554
2555 # AC_CHECK_LIBM
2556 # -------------
2557 # check for math library
2558 AC_DEFUN([AC_CHECK_LIBM],
2559 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2560 LIBM=
2561 case $host in
2562 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2563 # These system don't have libm, or don't need it
2564 ;;
2565 *-ncr-sysv4.3*)
2566 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2567 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2568 ;;
2569 *)
2570 AC_CHECK_LIB(m, cos, LIBM="-lm")
2571 ;;
2572 esac
2573 ])# AC_CHECK_LIBM
2574
2575
2576 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2577 # -----------------------------------
2578 # sets LIBLTDL to the link flags for the libltdl convenience library and
2579 # LTDLINCL to the include flags for the libltdl header and adds
2580 # --enable-ltdl-convenience to the configure arguments. Note that
2581 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2582 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2583 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2584 # (note the single quotes!). If your package is not flat and you're not
2585 # using automake, define top_builddir and top_srcdir appropriately in
2586 # the Makefiles.
2587 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2588 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2589 case $enable_ltdl_convenience in
2590 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2591 "") enable_ltdl_convenience=yes
2592 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2593 esac
2594 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2595 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2596 # For backwards non-gettext consistent compatibility...
2597 INCLTDL="$LTDLINCL"
2598 ])# AC_LIBLTDL_CONVENIENCE
2599
2600
2601 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2602 # -----------------------------------
2603 # sets LIBLTDL to the link flags for the libltdl installable library and
2604 # LTDLINCL to the include flags for the libltdl header and adds
2605 # --enable-ltdl-install to the configure arguments. Note that
2606 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2607 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2608 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2609 # '${top_srcdir}/' (note the single quotes!). If your package is not
2610 # flat and you're not using automake, define top_builddir and top_srcdir
2611 # appropriately in the Makefiles.
2612 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2613 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2614 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2615 AC_CHECK_LIB(ltdl, lt_dlinit,
2616 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2617 [if test x"$enable_ltdl_install" = xno; then
2618 AC_MSG_WARN([libltdl not installed, but installation disabled])
2619 else
2620 enable_ltdl_install=yes
2621 fi
2622 ])
2623 if test x"$enable_ltdl_install" = x"yes"; then
2624 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2625 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2626 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2627 else
2628 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2629 LIBLTDL="-lltdl"
2630 LTDLINCL=
2631 fi
2632 # For backwards non-gettext consistent compatibility...
2633 INCLTDL="$LTDLINCL"
2634 ])# AC_LIBLTDL_INSTALLABLE
2635
2636
2637 # AC_LIBTOOL_CXX
2638 # --------------
2639 # enable support for C++ libraries
2640 AC_DEFUN([AC_LIBTOOL_CXX],
2641 [AC_REQUIRE([_LT_AC_LANG_CXX])
2642 ])# AC_LIBTOOL_CXX
2643
2644
2645 # _LT_AC_LANG_CXX
2646 # ---------------
2647 AC_DEFUN([_LT_AC_LANG_CXX],
2648 [AC_REQUIRE([AC_PROG_CXX])
2649 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2650 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2651 ])# _LT_AC_LANG_CXX
2652
2653 # _LT_AC_PROG_CXXCPP
2654 # ------------------
2655 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2656 [
2657 AC_REQUIRE([AC_PROG_CXX])
2658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2659 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2660 (test "X$CXX" != "Xg++"))) ; then
2661 AC_PROG_CXXCPP
2662 fi
2663 ])# _LT_AC_PROG_CXXCPP
2664
2665 # AC_LIBTOOL_F77
2666 # --------------
2667 # enable support for Fortran 77 libraries
2668 AC_DEFUN([AC_LIBTOOL_F77],
2669 [AC_REQUIRE([_LT_AC_LANG_F77])
2670 ])# AC_LIBTOOL_F77
2671
2672
2673 # _LT_AC_LANG_F77
2674 # ---------------
2675 AC_DEFUN([_LT_AC_LANG_F77],
2676 [AC_REQUIRE([AC_PROG_F77])
2677 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2678 ])# _LT_AC_LANG_F77
2679
2680
2681 # AC_LIBTOOL_GCJ
2682 # --------------
2683 # enable support for GCJ libraries
2684 AC_DEFUN([AC_LIBTOOL_GCJ],
2685 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2686 ])# AC_LIBTOOL_GCJ
2687
2688
2689 # _LT_AC_LANG_GCJ
2690 # ---------------
2691 AC_DEFUN([_LT_AC_LANG_GCJ],
2692 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2693 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2694 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2695 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2696 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2697 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2698 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2699 ])# _LT_AC_LANG_GCJ
2700
2701
2702 # AC_LIBTOOL_RC
2703 # -------------
2704 # enable support for Windows resource files
2705 AC_DEFUN([AC_LIBTOOL_RC],
2706 [AC_REQUIRE([LT_AC_PROG_RC])
2707 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2708 ])# AC_LIBTOOL_RC
2709
2710
2711 # AC_LIBTOOL_LANG_C_CONFIG
2712 # ------------------------
2713 # Ensure that the configuration vars for the C compiler are
2714 # suitably defined. Those variables are subsequently used by
2715 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2716 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2717 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2718 [lt_save_CC="$CC"
2719 AC_LANG_PUSH(C)
2720
2721 # Source file extension for C test sources.
2722 ac_ext=c
2723
2724 # Object file extension for compiled C test sources.
2725 objext=o
2726 _LT_AC_TAGVAR(objext, $1)=$objext
2727
2728 # Code to be used in simple compile tests
2729 lt_simple_compile_test_code="int some_variable = 0;"
2730
2731 # Code to be used in simple link tests
2732 lt_simple_link_test_code='int main(){return(0);}'
2733
2734 _LT_AC_SYS_COMPILER
2735
2736 # save warnings/boilerplate of simple test code
2737 _LT_COMPILER_BOILERPLATE
2738 _LT_LINKER_BOILERPLATE
2739
2740 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2741 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2742 AC_LIBTOOL_PROG_CC_C_O($1)
2743 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2744 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2745 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2746 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2747 AC_LIBTOOL_SYS_LIB_STRIP
2748 AC_LIBTOOL_DLOPEN_SELF
2749
2750 # Report which library types will actually be built
2751 AC_MSG_CHECKING([if libtool supports shared libraries])
2752 AC_MSG_RESULT([$can_build_shared])
2753
2754 AC_MSG_CHECKING([whether to build shared libraries])
2755 test "$can_build_shared" = "no" && enable_shared=no
2756
2757 # On AIX, shared libraries and static libraries use the same namespace, and
2758 # are all built from PIC.
2759 case $host_os in
2760 aix3*)
2761 test "$enable_shared" = yes && enable_static=no
2762 if test -n "$RANLIB"; then
2763 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2764 postinstall_cmds='$RANLIB $lib'
2765 fi
2766 ;;
2767
2768 aix4* | aix5*)
2769 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2770 test "$enable_shared" = yes && enable_static=no
2771 fi
2772 ;;
2773 esac
2774 AC_MSG_RESULT([$enable_shared])
2775
2776 AC_MSG_CHECKING([whether to build static libraries])
2777 # Make sure either enable_shared or enable_static is yes.
2778 test "$enable_shared" = yes || enable_static=yes
2779 AC_MSG_RESULT([$enable_static])
2780
2781 AC_LIBTOOL_CONFIG($1)
2782
2783 AC_LANG_POP
2784 CC="$lt_save_CC"
2785 ])# AC_LIBTOOL_LANG_C_CONFIG
2786
2787
2788 # AC_LIBTOOL_LANG_CXX_CONFIG
2789 # --------------------------
2790 # Ensure that the configuration vars for the C compiler are
2791 # suitably defined. Those variables are subsequently used by
2792 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2793 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2794 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2795 [AC_LANG_PUSH(C++)
2796 AC_REQUIRE([AC_PROG_CXX])
2797 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2798
2799 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2800 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2801 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2802 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2803 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2804 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2805 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2806 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2807 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2808 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2809 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2810 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2811 _LT_AC_TAGVAR(module_cmds, $1)=
2812 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2813 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2814 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2815 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2816 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2817 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2818
2819 # Dependencies to place before and after the object being linked:
2820 _LT_AC_TAGVAR(predep_objects, $1)=
2821 _LT_AC_TAGVAR(postdep_objects, $1)=
2822 _LT_AC_TAGVAR(predeps, $1)=
2823 _LT_AC_TAGVAR(postdeps, $1)=
2824 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2825
2826 # Source file extension for C++ test sources.
2827 ac_ext=cpp
2828
2829 # Object file extension for compiled C++ test sources.
2830 objext=o
2831 _LT_AC_TAGVAR(objext, $1)=$objext
2832
2833 # Code to be used in simple compile tests
2834 lt_simple_compile_test_code="int some_variable = 0;"
2835
2836 # Code to be used in simple link tests
2837 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2838
2839 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2840 _LT_AC_SYS_COMPILER
2841
2842 # save warnings/boilerplate of simple test code
2843 _LT_COMPILER_BOILERPLATE
2844 _LT_LINKER_BOILERPLATE
2845
2846 # Allow CC to be a program name with arguments.
2847 lt_save_CC=$CC
2848 lt_save_LD=$LD
2849 lt_save_GCC=$GCC
2850 GCC=$GXX
2851 lt_save_with_gnu_ld=$with_gnu_ld
2852 lt_save_path_LD=$lt_cv_path_LD
2853 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2854 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2855 else
2856 $as_unset lt_cv_prog_gnu_ld
2857 fi
2858 if test -n "${lt_cv_path_LDCXX+set}"; then
2859 lt_cv_path_LD=$lt_cv_path_LDCXX
2860 else
2861 $as_unset lt_cv_path_LD
2862 fi
2863 test -z "${LDCXX+set}" || LD=$LDCXX
2864 CC=${CXX-"c++"}
2865 compiler=$CC
2866 _LT_AC_TAGVAR(compiler, $1)=$CC
2867 _LT_CC_BASENAME([$compiler])
2868
2869 # We don't want -fno-exception wen compiling C++ code, so set the
2870 # no_builtin_flag separately
2871 if test "$GXX" = yes; then
2872 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2873 else
2874 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2875 fi
2876
2877 if test "$GXX" = yes; then
2878 # Set up default GNU C++ configuration
2879
2880 AC_PROG_LD
2881
2882 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2883 # archiving commands below assume that GNU ld is being used.
2884 if test "$with_gnu_ld" = yes; then
2885 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2886 _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'
2887
2888 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2889 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2890
2891 # If archive_cmds runs LD, not CC, wlarc should be empty
2892 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2893 # investigate it a little bit more. (MM)
2894 wlarc='${wl}'
2895
2896 # ancient GNU ld didn't support --whole-archive et. al.
2897 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2898 grep 'no-whole-archive' > /dev/null; then
2899 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2900 else
2901 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2902 fi
2903 else
2904 with_gnu_ld=no
2905 wlarc=
2906
2907 # A generic and very simple default shared library creation
2908 # command for GNU C++ for the case where it uses the native
2909 # linker, instead of GNU ld. If possible, this setting should
2910 # overridden to take advantage of the native linker features on
2911 # the platform it is being used on.
2912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2913 fi
2914
2915 # Commands to make compiler produce verbose output that lists
2916 # what "hidden" libraries, object files and flags are used when
2917 # linking a shared library.
2918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2919
2920 else
2921 GXX=no
2922 with_gnu_ld=no
2923 wlarc=
2924 fi
2925
2926 # PORTME: fill in a description of your system's C++ link characteristics
2927 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2928 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2929 case $host_os in
2930 aix3*)
2931 # FIXME: insert proper C++ library support
2932 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2933 ;;
2934 aix4* | aix5*)
2935 if test "$host_cpu" = ia64; then
2936 # On IA64, the linker does run time linking by default, so we don't
2937 # have to do anything special.
2938 aix_use_runtimelinking=no
2939 exp_sym_flag='-Bexport'
2940 no_entry_flag=""
2941 else
2942 aix_use_runtimelinking=no
2943
2944 # Test if we are trying to use run time linking or normal
2945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2946 # need to do runtime linking.
2947 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2948 for ld_flag in $LDFLAGS; do
2949 case $ld_flag in
2950 *-brtl*)
2951 aix_use_runtimelinking=yes
2952 break
2953 ;;
2954 esac
2955 done
2956 ;;
2957 esac
2958
2959 exp_sym_flag='-bexport'
2960 no_entry_flag='-bnoentry'
2961 fi
2962
2963 # When large executables or shared objects are built, AIX ld can
2964 # have problems creating the table of contents. If linking a library
2965 # or program results in "error TOC overflow" add -mminimal-toc to
2966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2968
2969 _LT_AC_TAGVAR(archive_cmds, $1)=''
2970 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2971 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2972 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2973
2974 if test "$GXX" = yes; then
2975 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2976 # We only want to do this on AIX 4.2 and lower, the check
2977 # below for broken collect2 doesn't work under 4.3+
2978 collect2name=`${CC} -print-prog-name=collect2`
2979 if test -f "$collect2name" && \
2980 strings "$collect2name" | grep resolve_lib_name >/dev/null
2981 then
2982 # We have reworked collect2
2983 :
2984 else
2985 # We have old collect2
2986 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2987 # It fails to find uninstalled libraries when the uninstalled
2988 # path is not listed in the libpath. Setting hardcode_minus_L
2989 # to unsupported forces relinking
2990 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2991 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2992 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2993 fi
2994 ;;
2995 esac
2996 shared_flag='-shared'
2997 if test "$aix_use_runtimelinking" = yes; then
2998 shared_flag="$shared_flag "'${wl}-G'
2999 fi
3000 else
3001 # not using gcc
3002 if test "$host_cpu" = ia64; then
3003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3004 # chokes on -Wl,-G. The following line is correct:
3005 shared_flag='-G'
3006 else
3007 if test "$aix_use_runtimelinking" = yes; then
3008 shared_flag='${wl}-G'
3009 else
3010 shared_flag='${wl}-bM:SRE'
3011 fi
3012 fi
3013 fi
3014
3015 # It seems that -bexpall does not export symbols beginning with
3016 # underscore (_), so it is better to generate a list of symbols to export.
3017 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3018 if test "$aix_use_runtimelinking" = yes; then
3019 # Warning - without using the other runtime loading flags (-brtl),
3020 # -berok will link without error, but may produce a broken library.
3021 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3022 # Determine the default libpath from the value encoded in an empty executable.
3023 _LT_AC_SYS_LIBPATH_AIX
3024 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3025
3026 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3027 else
3028 if test "$host_cpu" = ia64; then
3029 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3030 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3031 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3032 else
3033 # Determine the default libpath from the value encoded in an empty executable.
3034 _LT_AC_SYS_LIBPATH_AIX
3035 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3036 # Warning - without using the other run time loading flags,
3037 # -berok will link without error, but may produce a broken library.
3038 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3039 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3040 # Exported symbols can be pulled into shared objects from archives
3041 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3042 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3043 # This is similar to how AIX traditionally builds its shared libraries.
3044 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3045 fi
3046 fi
3047 ;;
3048
3049 beos*)
3050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3051 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3053 # support --undefined. This deserves some investigation. FIXME
3054 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3055 else
3056 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3057 fi
3058 ;;
3059
3060 chorus*)
3061 case $cc_basename in
3062 *)
3063 # FIXME: insert proper C++ library support
3064 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3065 ;;
3066 esac
3067 ;;
3068
3069 cygwin* | mingw* | pw32*)
3070 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3071 # as there is no search path for DLLs.
3072 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3073 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3074 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3075 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3076
3077 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3078 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3079 # If the export-symbols file already is a .def file (1st line
3080 # is EXPORTS), use it as is; otherwise, prepend...
3081 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3082 cp $export_symbols $output_objdir/$soname.def;
3083 else
3084 echo EXPORTS > $output_objdir/$soname.def;
3085 cat $export_symbols >> $output_objdir/$soname.def;
3086 fi~
3087 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3088 else
3089 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3090 fi
3091 ;;
3092 darwin* | rhapsody*)
3093 case $host_os in
3094 rhapsody* | darwin1.[[012]])
3095 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3096 ;;
3097 *) # Darwin 1.3 on
3098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3099 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3100 else
3101 case ${MACOSX_DEPLOYMENT_TARGET} in
3102 10.[[012]])
3103 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3104 ;;
3105 10.*)
3106 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3107 ;;
3108 esac
3109 fi
3110 ;;
3111 esac
3112 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3113 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3114 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3115 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3116 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3117 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3118
3119 if test "$GXX" = yes ; then
3120 lt_int_apple_cc_single_mod=no
3121 output_verbose_link_cmd='echo'
3122 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3123 lt_int_apple_cc_single_mod=yes
3124 fi
3125 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3126 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3127 else
3128 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -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'
3129 fi
3130 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3133 _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}'
3134 else
3135 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
3136 fi
3137 _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}'
3138 else
3139 case $cc_basename in
3140 xlc*)
3141 output_verbose_link_cmd='echo'
3142 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3143 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3145 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3146 _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}'
3147 ;;
3148 *)
3149 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3150 ;;
3151 esac
3152 fi
3153 ;;
3154
3155 dgux*)
3156 case $cc_basename in
3157 ec++*)
3158 # FIXME: insert proper C++ library support
3159 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3160 ;;
3161 ghcx*)
3162 # Green Hills C++ Compiler
3163 # FIXME: insert proper C++ library support
3164 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3165 ;;
3166 *)
3167 # FIXME: insert proper C++ library support
3168 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3169 ;;
3170 esac
3171 ;;
3172 freebsd[[12]]*)
3173 # C++ shared libraries reported to be fairly broken before switch to ELF
3174 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3175 ;;
3176 freebsd-elf*)
3177 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3178 ;;
3179 freebsd* | dragonfly*)
3180 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3181 # conventions
3182 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3183 ;;
3184 gnu*)
3185 ;;
3186 hpux9*)
3187 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3188 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3189 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3190 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3191 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3192 # but as the default
3193 # location of the library.
3194
3195 case $cc_basename in
3196 CC*)
3197 # FIXME: insert proper C++ library support
3198 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3199 ;;
3200 aCC*)
3201 _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'
3202 # Commands to make compiler produce verbose output that lists
3203 # what "hidden" libraries, object files and flags are used when
3204 # linking a shared library.
3205 #
3206 # There doesn't appear to be a way to prevent this compiler from
3207 # explicitly linking system object files so we need to strip them
3208 # from the output so that they don't get included in the library
3209 # dependencies.
3210 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'
3211 ;;
3212 *)
3213 if test "$GXX" = yes; then
3214 _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'
3215 else
3216 # FIXME: insert proper C++ library support
3217 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3218 fi
3219 ;;
3220 esac
3221 ;;
3222 hpux10*|hpux11*)
3223 if test $with_gnu_ld = no; then
3224 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3225 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3226
3227 case $host_cpu in
3228 hppa*64*|ia64*) ;;
3229 *)
3230 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3231 ;;
3232 esac
3233 fi
3234 case $host_cpu in
3235 hppa*64*|ia64*)
3236 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3237 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3238 ;;
3239 *)
3240 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3241 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3242 # but as the default
3243 # location of the library.
3244 ;;
3245 esac
3246
3247 case $cc_basename in
3248 CC*)
3249 # FIXME: insert proper C++ library support
3250 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3251 ;;
3252 aCC*)
3253 case $host_cpu in
3254 hppa*64*)
3255 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3256 ;;
3257 ia64*)
3258 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3259 ;;
3260 *)
3261 _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'
3262 ;;
3263 esac
3264 # Commands to make compiler produce verbose output that lists
3265 # what "hidden" libraries, object files and flags are used when
3266 # linking a shared library.
3267 #
3268 # There doesn't appear to be a way to prevent this compiler from
3269 # explicitly linking system object files so we need to strip them
3270 # from the output so that they don't get included in the library
3271 # dependencies.
3272 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'
3273 ;;
3274 *)
3275 if test "$GXX" = yes; then
3276 if test $with_gnu_ld = no; then
3277 case $host_cpu in
3278 hppa*64*)
3279 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3280 ;;
3281 ia64*)
3282 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3283 ;;
3284 *)
3285 _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'
3286 ;;
3287 esac
3288 fi
3289 else
3290 # FIXME: insert proper C++ library support
3291 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3292 fi
3293 ;;
3294 esac
3295 ;;
3296 interix[[3-9]]*)
3297 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3298 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3299 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3300 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3301 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3302 # Instead, shared libraries are loaded at an image base (0x10000000 by
3303 # default) and relocated if they conflict, which is a slow very memory
3304 # consuming and fragmenting process. To avoid this, we pick a random,
3305 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3306 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3307 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3308 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3309 ;;
3310 irix5* | irix6*)
3311 case $cc_basename in
3312 CC*)
3313 # SGI C++
3314 _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 ${output_objdir}/so_locations -o $lib'
3315
3316 # Archives containing C++ object files must be created using
3317 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3318 # necessary to make sure instantiated templates are included
3319 # in the archive.
3320 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3321 ;;
3322 *)
3323 if test "$GXX" = yes; then
3324 if test "$with_gnu_ld" = no; then
3325 _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}${output_objdir}/so_locations -o $lib'
3326 else
3327 _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'
3328 fi
3329 fi
3330 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3331 ;;
3332 esac
3333 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3334 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3335 ;;
3336 linux* | k*bsd*-gnu)
3337 case $cc_basename in
3338 KCC*)
3339 # Kuck and Associates, Inc. (KAI) C++ Compiler
3340
3341 # KCC will only create a shared library if the output file
3342 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3343 # to its proper name (with version) after linking.
3344 _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'
3345 _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'
3346 # Commands to make compiler produce verbose output that lists
3347 # what "hidden" libraries, object files and flags are used when
3348 # linking a shared library.
3349 #
3350 # There doesn't appear to be a way to prevent this compiler from
3351 # explicitly linking system object files so we need to strip them
3352 # from the output so that they don't get included in the library
3353 # dependencies.
3354 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'
3355
3356 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3357 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3358
3359 # Archives containing C++ object files must be created using
3360 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3361 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3362 ;;
3363 icpc*)
3364 # Intel C++
3365 with_gnu_ld=yes
3366 # version 8.0 and above of icpc choke on multiply defined symbols
3367 # if we add $predep_objects and $postdep_objects, however 7.1 and
3368 # earlier do not add the objects themselves.
3369 case `$CC -V 2>&1` in
3370 *"Version 7."*)
3371 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3372 _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'
3373 ;;
3374 *) # Version 8.0 or newer
3375 tmp_idyn=
3376 case $host_cpu in
3377 ia64*) tmp_idyn=' -i_dynamic';;
3378 esac
3379 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3380 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3381 ;;
3382 esac
3383 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3384 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3385 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3386 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3387 ;;
3388 pgCC*)
3389 # Portland Group C++ compiler
3390 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3391 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3392
3393 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3394 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3395 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3396 ;;
3397 cxx*)
3398 # Compaq C++
3399 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3400 _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'
3401
3402 runpath_var=LD_RUN_PATH
3403 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3404 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3405
3406 # Commands to make compiler produce verbose output that lists
3407 # what "hidden" libraries, object files and flags are used when
3408 # linking a shared library.
3409 #
3410 # There doesn't appear to be a way to prevent this compiler from
3411 # explicitly linking system object files so we need to strip them
3412 # from the output so that they don't get included in the library
3413 # dependencies.
3414 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'
3415 ;;
3416 *)
3417 case `$CC -V 2>&1 | sed 5q` in
3418 *Sun\ C*)
3419 # Sun C++ 5.9
3420 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3421 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3422 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3423 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3424 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3425
3426 # Not sure whether something based on
3427 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3428 # would be better.
3429 output_verbose_link_cmd='echo'
3430
3431 # Archives containing C++ object files must be created using
3432 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3433 # necessary to make sure instantiated templates are included
3434 # in the archive.
3435 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3436 ;;
3437 esac
3438 ;;
3439 esac
3440 ;;
3441 lynxos*)
3442 # FIXME: insert proper C++ library support
3443 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3444 ;;
3445 m88k*)
3446 # FIXME: insert proper C++ library support
3447 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3448 ;;
3449 mvs*)
3450 case $cc_basename in
3451 cxx*)
3452 # FIXME: insert proper C++ library support
3453 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3454 ;;
3455 *)
3456 # FIXME: insert proper C++ library support
3457 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3458 ;;
3459 esac
3460 ;;
3461 netbsd* | netbsdelf*-gnu)
3462 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3463 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3464 wlarc=
3465 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3466 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3467 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3468 fi
3469 # Workaround some broken pre-1.5 toolchains
3470 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3471 ;;
3472 openbsd2*)
3473 # C++ shared libraries are fairly broken
3474 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3475 ;;
3476 openbsd*)
3477 if test -f /usr/libexec/ld.so; then
3478 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3479 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3480 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3481 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3482 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3483 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3484 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3485 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3486 fi
3487 output_verbose_link_cmd='echo'
3488 else
3489 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3490 fi
3491 ;;
3492 osf3*)
3493 case $cc_basename in
3494 KCC*)
3495 # Kuck and Associates, Inc. (KAI) C++ Compiler
3496
3497 # KCC will only create a shared library if the output file
3498 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3499 # to its proper name (with version) after linking.
3500 _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'
3501
3502 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3503 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3504
3505 # Archives containing C++ object files must be created using
3506 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3507 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3508
3509 ;;
3510 RCC*)
3511 # Rational C++ 2.4.1
3512 # FIXME: insert proper C++ library support
3513 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3514 ;;
3515 cxx*)
3516 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3517 _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 ${output_objdir}/so_locations -o $lib'
3518
3519 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3520 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3521
3522 # Commands to make compiler produce verbose output that lists
3523 # what "hidden" libraries, object files and flags are used when
3524 # linking a shared library.
3525 #
3526 # There doesn't appear to be a way to prevent this compiler from
3527 # explicitly linking system object files so we need to strip them
3528 # from the output so that they don't get included in the library
3529 # dependencies.
3530 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'
3531 ;;
3532 *)
3533 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3534 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3535 _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}${output_objdir}/so_locations -o $lib'
3536
3537 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3538 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3539
3540 # Commands to make compiler produce verbose output that lists
3541 # what "hidden" libraries, object files and flags are used when
3542 # linking a shared library.
3543 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3544
3545 else
3546 # FIXME: insert proper C++ library support
3547 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3548 fi
3549 ;;
3550 esac
3551 ;;
3552 osf4* | osf5*)
3553 case $cc_basename in
3554 KCC*)
3555 # Kuck and Associates, Inc. (KAI) C++ Compiler
3556
3557 # KCC will only create a shared library if the output file
3558 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3559 # to its proper name (with version) after linking.
3560 _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'
3561
3562 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3563 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3564
3565 # Archives containing C++ object files must be created using
3566 # the KAI C++ compiler.
3567 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3568 ;;
3569 RCC*)
3570 # Rational C++ 2.4.1
3571 # FIXME: insert proper C++ library support
3572 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3573 ;;
3574 cxx*)
3575 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3576 _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 ${output_objdir}/so_locations -o $lib'
3577 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3578 echo "-hidden">> $lib.exp~
3579 $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 ${output_objdir}/so_locations -o $lib~
3580 $rm $lib.exp'
3581
3582 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3583 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3584
3585 # Commands to make compiler produce verbose output that lists
3586 # what "hidden" libraries, object files and flags are used when
3587 # linking a shared library.
3588 #
3589 # There doesn't appear to be a way to prevent this compiler from
3590 # explicitly linking system object files so we need to strip them
3591 # from the output so that they don't get included in the library
3592 # dependencies.
3593 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'
3594 ;;
3595 *)
3596 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3597 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3598 _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}${output_objdir}/so_locations -o $lib'
3599
3600 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3601 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3602
3603 # Commands to make compiler produce verbose output that lists
3604 # what "hidden" libraries, object files and flags are used when
3605 # linking a shared library.
3606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3607
3608 else
3609 # FIXME: insert proper C++ library support
3610 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3611 fi
3612 ;;
3613 esac
3614 ;;
3615 psos*)
3616 # FIXME: insert proper C++ library support
3617 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3618 ;;
3619 sunos4*)
3620 case $cc_basename in
3621 CC*)
3622 # Sun C++ 4.x
3623 # FIXME: insert proper C++ library support
3624 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3625 ;;
3626 lcc*)
3627 # Lucid
3628 # FIXME: insert proper C++ library support
3629 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3630 ;;
3631 *)
3632 # FIXME: insert proper C++ library support
3633 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3634 ;;
3635 esac
3636 ;;
3637 solaris*)
3638 case $cc_basename in
3639 CC*)
3640 # Sun C++ 4.2, 5.x and Centerline C++
3641 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3642 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3643 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3644 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3645 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3646
3647 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3648 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3649 case $host_os in
3650 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3651 *)
3652 # The compiler driver will combine and reorder linker options,
3653 # but understands `-z linker_flag'.
3654 # Supported since Solaris 2.6 (maybe 2.5.1?)
3655 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3656 ;;
3657 esac
3658 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3659
3660 output_verbose_link_cmd='echo'
3661
3662 # Archives containing C++ object files must be created using
3663 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3664 # necessary to make sure instantiated templates are included
3665 # in the archive.
3666 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3667 ;;
3668 gcx*)
3669 # Green Hills C++ Compiler
3670 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3671
3672 # The C++ compiler must be used to create the archive.
3673 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3674 ;;
3675 *)
3676 # GNU C++ compiler with Solaris linker
3677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3678 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3679 if $CC --version | grep -v '^2\.7' > /dev/null; then
3680 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3681 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3682 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3683
3684 # Commands to make compiler produce verbose output that lists
3685 # what "hidden" libraries, object files and flags are used when
3686 # linking a shared library.
3687 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3688 else
3689 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3690 # platform.
3691 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3692 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3693 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3694
3695 # Commands to make compiler produce verbose output that lists
3696 # what "hidden" libraries, object files and flags are used when
3697 # linking a shared library.
3698 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3699 fi
3700
3701 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3702 case $host_os in
3703 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3704 *)
3705 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3706 ;;
3707 esac
3708 fi
3709 ;;
3710 esac
3711 ;;
3712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3713 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3714 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3715 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3716 runpath_var='LD_RUN_PATH'
3717
3718 case $cc_basename in
3719 CC*)
3720 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3721 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3722 ;;
3723 *)
3724 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3725 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3726 ;;
3727 esac
3728 ;;
3729 sysv5* | sco3.2v5* | sco5v6*)
3730 # Note: We can NOT use -z defs as we might desire, because we do not
3731 # link with -lc, and that would cause any symbols used from libc to
3732 # always be unresolved, which means just about no library would
3733 # ever link correctly. If we're not using GNU ld we use -z text
3734 # though, which does catch some bad symbols but isn't as heavy-handed
3735 # as -z defs.
3736 # For security reasons, it is highly recommended that you always
3737 # use absolute paths for naming shared libraries, and exclude the
3738 # DT_RUNPATH tag from executables and libraries. But doing so
3739 # requires that you compile everything twice, which is a pain.
3740 # So that behaviour is only enabled if SCOABSPATH is set to a
3741 # non-empty value in the environment. Most likely only useful for
3742 # creating official distributions of packages.
3743 # This is a hack until libtool officially supports absolute path
3744 # names for shared libraries.
3745 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3746 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3747 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3748 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3749 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3750 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3751 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3752 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3753 runpath_var='LD_RUN_PATH'
3754
3755 case $cc_basename in
3756 CC*)
3757 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3758 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3759 ;;
3760 *)
3761 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3762 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3763 ;;
3764 esac
3765 ;;
3766 tandem*)
3767 case $cc_basename in
3768 NCC*)
3769 # NonStop-UX NCC 3.20
3770 # FIXME: insert proper C++ library support
3771 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3772 ;;
3773 *)
3774 # FIXME: insert proper C++ library support
3775 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3776 ;;
3777 esac
3778 ;;
3779 vxworks*)
3780 # FIXME: insert proper C++ library support
3781 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3782 ;;
3783 *)
3784 # FIXME: insert proper C++ library support
3785 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3786 ;;
3787 esac
3788 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3789 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3790
3791 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3792 _LT_AC_TAGVAR(LD, $1)="$LD"
3793
3794 AC_LIBTOOL_POSTDEP_PREDEP($1)
3795 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3796 AC_LIBTOOL_PROG_CC_C_O($1)
3797 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3798 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3799 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3800 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3801
3802 AC_LIBTOOL_CONFIG($1)
3803
3804 AC_LANG_POP
3805 CC=$lt_save_CC
3806 LDCXX=$LD
3807 LD=$lt_save_LD
3808 GCC=$lt_save_GCC
3809 with_gnu_ldcxx=$with_gnu_ld
3810 with_gnu_ld=$lt_save_with_gnu_ld
3811 lt_cv_path_LDCXX=$lt_cv_path_LD
3812 lt_cv_path_LD=$lt_save_path_LD
3813 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3814 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3815 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3816
3817 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3818 # ------------------------------------
3819 # Figure out "hidden" library dependencies from verbose
3820 # compiler output when linking a shared library.
3821 # Parse the compiler output and extract the necessary
3822 # objects, libraries and library flags.
3823 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3824 dnl we can't use the lt_simple_compile_test_code here,
3825 dnl because it contains code intended for an executable,
3826 dnl not a library. It's possible we should let each
3827 dnl tag define a new lt_????_link_test_code variable,
3828 dnl but it's only used here...
3829 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3830 int a;
3831 void foo (void) { a = 0; }
3832 EOF
3833 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3834 class Foo
3835 {
3836 public:
3837 Foo (void) { a = 0; }
3838 private:
3839 int a;
3840 };
3841 EOF
3842 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3843 subroutine foo
3844 implicit none
3845 integer*4 a
3846 a=0
3847 return
3848 end
3849 EOF
3850 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3851 public class foo {
3852 private int a;
3853 public void bar (void) {
3854 a = 0;
3855 }
3856 };
3857 EOF
3858 ])
3859 dnl Parse the compiler output and extract the necessary
3860 dnl objects, libraries and library flags.
3861 if AC_TRY_EVAL(ac_compile); then
3862 # Parse the compiler output and extract the necessary
3863 # objects, libraries and library flags.
3864
3865 # Sentinel used to keep track of whether or not we are before
3866 # the conftest object file.
3867 pre_test_object_deps_done=no
3868
3869 # The `*' in the case matches for architectures that use `case' in
3870 # $output_verbose_cmd can trigger glob expansion during the loop
3871 # eval without this substitution.
3872 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3873
3874 for p in `eval $output_verbose_link_cmd`; do
3875 case $p in
3876
3877 -L* | -R* | -l*)
3878 # Some compilers place space between "-{L,R}" and the path.
3879 # Remove the space.
3880 if test $p = "-L" \
3881 || test $p = "-R"; then
3882 prev=$p
3883 continue
3884 else
3885 prev=
3886 fi
3887
3888 if test "$pre_test_object_deps_done" = no; then
3889 case $p in
3890 -L* | -R*)
3891 # Internal compiler library paths should come after those
3892 # provided the user. The postdeps already come after the
3893 # user supplied libs so there is no need to process them.
3894 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3895 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3896 else
3897 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3898 fi
3899 ;;
3900 # The "-l" case would never come before the object being
3901 # linked, so don't bother handling this case.
3902 esac
3903 else
3904 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3905 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3906 else
3907 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3908 fi
3909 fi
3910 ;;
3911
3912 *.$objext)
3913 # This assumes that the test object file only shows up
3914 # once in the compiler output.
3915 if test "$p" = "conftest.$objext"; then
3916 pre_test_object_deps_done=yes
3917 continue
3918 fi
3919
3920 if test "$pre_test_object_deps_done" = no; then
3921 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3922 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3923 else
3924 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3925 fi
3926 else
3927 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3928 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3929 else
3930 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3931 fi
3932 fi
3933 ;;
3934
3935 *) ;; # Ignore the rest.
3936
3937 esac
3938 done
3939
3940 # Clean up.
3941 rm -f a.out a.exe
3942 else
3943 echo "libtool.m4: error: problem compiling $1 test program"
3944 fi
3945
3946 $rm -f confest.$objext
3947
3948 # PORTME: override above test on systems where it is broken
3949 ifelse([$1],[CXX],
3950 [case $host_os in
3951 interix[[3-9]]*)
3952 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3953 # hack all around it, let's just trust "g++" to DTRT.
3954 _LT_AC_TAGVAR(predep_objects,$1)=
3955 _LT_AC_TAGVAR(postdep_objects,$1)=
3956 _LT_AC_TAGVAR(postdeps,$1)=
3957 ;;
3958
3959 linux*)
3960 case `$CC -V 2>&1 | sed 5q` in
3961 *Sun\ C*)
3962 # Sun C++ 5.9
3963 #
3964 # The more standards-conforming stlport4 library is
3965 # incompatible with the Cstd library. Avoid specifying
3966 # it if it's in CXXFLAGS. Ignore libCrun as
3967 # -library=stlport4 depends on it.
3968 case " $CXX $CXXFLAGS " in
3969 *" -library=stlport4 "*)
3970 solaris_use_stlport4=yes
3971 ;;
3972 esac
3973 if test "$solaris_use_stlport4" != yes; then
3974 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3975 fi
3976 ;;
3977 esac
3978 ;;
3979
3980 solaris*)
3981 case $cc_basename in
3982 CC*)
3983 # The more standards-conforming stlport4 library is
3984 # incompatible with the Cstd library. Avoid specifying
3985 # it if it's in CXXFLAGS. Ignore libCrun as
3986 # -library=stlport4 depends on it.
3987 case " $CXX $CXXFLAGS " in
3988 *" -library=stlport4 "*)
3989 solaris_use_stlport4=yes
3990 ;;
3991 esac
3992
3993 # Adding this requires a known-good setup of shared libraries for
3994 # Sun compiler versions before 5.6, else PIC objects from an old
3995 # archive will be linked into the output, leading to subtle bugs.
3996 if test "$solaris_use_stlport4" != yes; then
3997 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3998 fi
3999 ;;
4000 esac
4001 ;;
4002 esac
4003 ])
4004
4005 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4006 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4007 esac
4008 ])# AC_LIBTOOL_POSTDEP_PREDEP
4009
4010 # AC_LIBTOOL_LANG_F77_CONFIG
4011 # --------------------------
4012 # Ensure that the configuration vars for the C compiler are
4013 # suitably defined. Those variables are subsequently used by
4014 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4015 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4016 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4017 [AC_REQUIRE([AC_PROG_F77])
4018 AC_LANG_PUSH(Fortran 77)
4019
4020 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4021 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4022 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4023 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4024 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4025 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4026 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4027 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4028 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4029 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4030 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4031 _LT_AC_TAGVAR(module_cmds, $1)=
4032 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4033 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4034 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4035 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4036 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4037 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4038
4039 # Source file extension for f77 test sources.
4040 ac_ext=f
4041
4042 # Object file extension for compiled f77 test sources.
4043 objext=o
4044 _LT_AC_TAGVAR(objext, $1)=$objext
4045
4046 # Code to be used in simple compile tests
4047 lt_simple_compile_test_code="\
4048 subroutine t
4049 return
4050 end
4051 "
4052
4053 # Code to be used in simple link tests
4054 lt_simple_link_test_code="\
4055 program t
4056 end
4057 "
4058
4059 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4060 _LT_AC_SYS_COMPILER
4061
4062 # save warnings/boilerplate of simple test code
4063 _LT_COMPILER_BOILERPLATE
4064 _LT_LINKER_BOILERPLATE
4065
4066 # Allow CC to be a program name with arguments.
4067 lt_save_CC="$CC"
4068 CC=${F77-"f77"}
4069 compiler=$CC
4070 _LT_AC_TAGVAR(compiler, $1)=$CC
4071 _LT_CC_BASENAME([$compiler])
4072
4073 AC_MSG_CHECKING([if libtool supports shared libraries])
4074 AC_MSG_RESULT([$can_build_shared])
4075
4076 AC_MSG_CHECKING([whether to build shared libraries])
4077 test "$can_build_shared" = "no" && enable_shared=no
4078
4079 # On AIX, shared libraries and static libraries use the same namespace, and
4080 # are all built from PIC.
4081 case $host_os in
4082 aix3*)
4083 test "$enable_shared" = yes && enable_static=no
4084 if test -n "$RANLIB"; then
4085 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4086 postinstall_cmds='$RANLIB $lib'
4087 fi
4088 ;;
4089 aix4* | aix5*)
4090 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4091 test "$enable_shared" = yes && enable_static=no
4092 fi
4093 ;;
4094 esac
4095 AC_MSG_RESULT([$enable_shared])
4096
4097 AC_MSG_CHECKING([whether to build static libraries])
4098 # Make sure either enable_shared or enable_static is yes.
4099 test "$enable_shared" = yes || enable_static=yes
4100 AC_MSG_RESULT([$enable_static])
4101
4102 _LT_AC_TAGVAR(GCC, $1)="$G77"
4103 _LT_AC_TAGVAR(LD, $1)="$LD"
4104
4105 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4106 AC_LIBTOOL_PROG_CC_C_O($1)
4107 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4108 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4109 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4110 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4111
4112 AC_LIBTOOL_CONFIG($1)
4113
4114 AC_LANG_POP
4115 CC="$lt_save_CC"
4116 ])# AC_LIBTOOL_LANG_F77_CONFIG
4117
4118
4119 # AC_LIBTOOL_LANG_GCJ_CONFIG
4120 # --------------------------
4121 # Ensure that the configuration vars for the C compiler are
4122 # suitably defined. Those variables are subsequently used by
4123 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4124 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4125 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4126 [AC_LANG_SAVE
4127
4128 # Source file extension for Java test sources.
4129 ac_ext=java
4130
4131 # Object file extension for compiled Java test sources.
4132 objext=o
4133 _LT_AC_TAGVAR(objext, $1)=$objext
4134
4135 # Code to be used in simple compile tests
4136 lt_simple_compile_test_code="class foo {}"
4137
4138 # Code to be used in simple link tests
4139 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4140
4141 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4142 _LT_AC_SYS_COMPILER
4143
4144 # save warnings/boilerplate of simple test code
4145 _LT_COMPILER_BOILERPLATE
4146 _LT_LINKER_BOILERPLATE
4147
4148 # Allow CC to be a program name with arguments.
4149 lt_save_CC="$CC"
4150 CC=${GCJ-"gcj"}
4151 compiler=$CC
4152 _LT_AC_TAGVAR(compiler, $1)=$CC
4153 _LT_CC_BASENAME([$compiler])
4154
4155 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4156 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4157
4158 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4159
4160 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4161 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4162 AC_LIBTOOL_PROG_CC_C_O($1)
4163 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4164 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4165 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4166 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4167
4168 AC_LIBTOOL_CONFIG($1)
4169
4170 AC_LANG_RESTORE
4171 CC="$lt_save_CC"
4172 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4173
4174
4175 # AC_LIBTOOL_LANG_RC_CONFIG
4176 # -------------------------
4177 # Ensure that the configuration vars for the Windows resource compiler are
4178 # suitably defined. Those variables are subsequently used by
4179 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4180 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4181 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4182 [AC_LANG_SAVE
4183
4184 # Source file extension for RC test sources.
4185 ac_ext=rc
4186
4187 # Object file extension for compiled RC test sources.
4188 objext=o
4189 _LT_AC_TAGVAR(objext, $1)=$objext
4190
4191 # Code to be used in simple compile tests
4192 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4193
4194 # Code to be used in simple link tests
4195 lt_simple_link_test_code="$lt_simple_compile_test_code"
4196
4197 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4198 _LT_AC_SYS_COMPILER
4199
4200 # save warnings/boilerplate of simple test code
4201 _LT_COMPILER_BOILERPLATE
4202 _LT_LINKER_BOILERPLATE
4203
4204 # Allow CC to be a program name with arguments.
4205 lt_save_CC="$CC"
4206 CC=${RC-"windres"}
4207 compiler=$CC
4208 _LT_AC_TAGVAR(compiler, $1)=$CC
4209 _LT_CC_BASENAME([$compiler])
4210 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4211
4212 AC_LIBTOOL_CONFIG($1)
4213
4214 AC_LANG_RESTORE
4215 CC="$lt_save_CC"
4216 ])# AC_LIBTOOL_LANG_RC_CONFIG
4217
4218
4219 # AC_LIBTOOL_CONFIG([TAGNAME])
4220 # ----------------------------
4221 # If TAGNAME is not passed, then create an initial libtool script
4222 # with a default configuration from the untagged config vars. Otherwise
4223 # add code to config.status for appending the configuration named by
4224 # TAGNAME from the matching tagged config vars.
4225 AC_DEFUN([AC_LIBTOOL_CONFIG],
4226 [# The else clause should only fire when bootstrapping the
4227 # libtool distribution, otherwise you forgot to ship ltmain.sh
4228 # with your package, and you will get complaints that there are
4229 # no rules to generate ltmain.sh.
4230 if test -f "$ltmain"; then
4231 # See if we are running on zsh, and set the options which allow our commands through
4232 # without removal of \ escapes.
4233 if test -n "${ZSH_VERSION+set}" ; then
4234 setopt NO_GLOB_SUBST
4235 fi
4236 # Now quote all the things that may contain metacharacters while being
4237 # careful not to overquote the AC_SUBSTed values. We take copies of the
4238 # variables and quote the copies for generation of the libtool script.
4239 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4240 SED SHELL STRIP \
4241 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4242 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4243 deplibs_check_method reload_flag reload_cmds need_locks \
4244 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4245 lt_cv_sys_global_symbol_to_c_name_address \
4246 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4247 old_postinstall_cmds old_postuninstall_cmds \
4248 _LT_AC_TAGVAR(compiler, $1) \
4249 _LT_AC_TAGVAR(CC, $1) \
4250 _LT_AC_TAGVAR(LD, $1) \
4251 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4252 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4253 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4254 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4255 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4256 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4257 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4258 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4259 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4260 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4261 _LT_AC_TAGVAR(predep_objects, $1) \
4262 _LT_AC_TAGVAR(postdep_objects, $1) \
4263 _LT_AC_TAGVAR(predeps, $1) \
4264 _LT_AC_TAGVAR(postdeps, $1) \
4265 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4266 _LT_AC_TAGVAR(archive_cmds, $1) \
4267 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4268 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4269 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4270 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4271 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4272 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4273 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4274 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4275 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4276 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4277 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4278 _LT_AC_TAGVAR(module_cmds, $1) \
4279 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4280 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4281 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4282 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4283 _LT_AC_TAGVAR(include_expsyms, $1); do
4284
4285 case $var in
4286 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4287 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4288 _LT_AC_TAGVAR(archive_cmds, $1) | \
4289 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4290 _LT_AC_TAGVAR(module_cmds, $1) | \
4291 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4292 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4293 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4294 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4295 postinstall_cmds | postuninstall_cmds | \
4296 old_postinstall_cmds | old_postuninstall_cmds | \
4297 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4298 # Double-quote double-evaled strings.
4299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4300 ;;
4301 *)
4302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4303 ;;
4304 esac
4305 done
4306
4307 case $lt_echo in
4308 *'\[$]0 --fallback-echo"')
4309 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4310 ;;
4311 esac
4312
4313 ifelse([$1], [],
4314 [cfgfile="${ofile}T"
4315 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4316 $rm -f "$cfgfile"
4317 AC_MSG_NOTICE([creating $ofile])],
4318 [cfgfile="$ofile"])
4319
4320 cat <<__EOF__ >> "$cfgfile"
4321 ifelse([$1], [],
4322 [#! $SHELL
4323
4324 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4325 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4326 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4327 #
4328 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4329 # Free Software Foundation, Inc.
4330 #
4331 # This file is part of GNU Libtool:
4332 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4333 #
4334 # This program is free software; you can redistribute it and/or modify
4335 # it under the terms of the GNU General Public License as published by
4336 # the Free Software Foundation; either version 2 of the License, or
4337 # (at your option) any later version.
4338 #
4339 # This program is distributed in the hope that it will be useful, but
4340 # WITHOUT ANY WARRANTY; without even the implied warranty of
4341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4342 # General Public License for more details.
4343 #
4344 # You should have received a copy of the GNU General Public License
4345 # along with this program; if not, write to the Free Software
4346 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4347 #
4348 # As a special exception to the GNU General Public License, if you
4349 # distribute this file as part of a program that contains a
4350 # configuration script generated by Autoconf, you may include it under
4351 # the same distribution terms that you use for the rest of that program.
4352
4353 # A sed program that does not truncate output.
4354 SED=$lt_SED
4355
4356 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4357 Xsed="$SED -e 1s/^X//"
4358
4359 # The HP-UX ksh and POSIX shell print the target directory to stdout
4360 # if CDPATH is set.
4361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4362
4363 # The names of the tagged configurations supported by this script.
4364 available_tags=
4365
4366 # ### BEGIN LIBTOOL CONFIG],
4367 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4368
4369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4370
4371 # Shell to use when invoking shell scripts.
4372 SHELL=$lt_SHELL
4373
4374 # Whether or not to build shared libraries.
4375 build_libtool_libs=$enable_shared
4376
4377 # Whether or not to build static libraries.
4378 build_old_libs=$enable_static
4379
4380 # Whether or not to add -lc for building shared libraries.
4381 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4382
4383 # Whether or not to disallow shared libs when runtime libs are static
4384 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4385
4386 # Whether or not to optimize for fast installation.
4387 fast_install=$enable_fast_install
4388
4389 # The host system.
4390 host_alias=$host_alias
4391 host=$host
4392 host_os=$host_os
4393
4394 # The build system.
4395 build_alias=$build_alias
4396 build=$build
4397 build_os=$build_os
4398
4399 # An echo program that does not interpret backslashes.
4400 echo=$lt_echo
4401
4402 # The archiver.
4403 AR=$lt_AR
4404 AR_FLAGS=$lt_AR_FLAGS
4405
4406 # A C compiler.
4407 LTCC=$lt_LTCC
4408
4409 # LTCC compiler flags.
4410 LTCFLAGS=$lt_LTCFLAGS
4411
4412 # A language-specific compiler.
4413 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4414
4415 # Is the compiler the GNU C compiler?
4416 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4417
4418 # An ERE matcher.
4419 EGREP=$lt_EGREP
4420
4421 # The linker used to build libraries.
4422 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4423
4424 # Whether we need hard or soft links.
4425 LN_S=$lt_LN_S
4426
4427 # A BSD-compatible nm program.
4428 NM=$lt_NM
4429
4430 # A symbol stripping program
4431 STRIP=$lt_STRIP
4432
4433 # Used to examine libraries when file_magic_cmd begins "file"
4434 MAGIC_CMD=$MAGIC_CMD
4435
4436 # Used on cygwin: DLL creation program.
4437 DLLTOOL="$DLLTOOL"
4438
4439 # Used on cygwin: object dumper.
4440 OBJDUMP="$OBJDUMP"
4441
4442 # Used on cygwin: assembler.
4443 AS="$AS"
4444
4445 # The name of the directory that contains temporary libtool files.
4446 objdir=$objdir
4447
4448 # How to create reloadable object files.
4449 reload_flag=$lt_reload_flag
4450 reload_cmds=$lt_reload_cmds
4451
4452 # How to pass a linker flag through the compiler.
4453 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4454
4455 # Object file suffix (normally "o").
4456 objext="$ac_objext"
4457
4458 # Old archive suffix (normally "a").
4459 libext="$libext"
4460
4461 # Shared library suffix (normally ".so").
4462 shrext_cmds='$shrext_cmds'
4463
4464 # Executable file suffix (normally "").
4465 exeext="$exeext"
4466
4467 # Additional compiler flags for building library objects.
4468 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4469 pic_mode=$pic_mode
4470
4471 # What is the maximum length of a command?
4472 max_cmd_len=$lt_cv_sys_max_cmd_len
4473
4474 # Does compiler simultaneously support -c and -o options?
4475 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4476
4477 # Must we lock files when doing compilation?
4478 need_locks=$lt_need_locks
4479
4480 # Do we need the lib prefix for modules?
4481 need_lib_prefix=$need_lib_prefix
4482
4483 # Do we need a version for libraries?
4484 need_version=$need_version
4485
4486 # Whether dlopen is supported.
4487 dlopen_support=$enable_dlopen
4488
4489 # Whether dlopen of programs is supported.
4490 dlopen_self=$enable_dlopen_self
4491
4492 # Whether dlopen of statically linked programs is supported.
4493 dlopen_self_static=$enable_dlopen_self_static
4494
4495 # Compiler flag to prevent dynamic linking.
4496 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4497
4498 # Compiler flag to turn off builtin functions.
4499 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4500
4501 # Compiler flag to allow reflexive dlopens.
4502 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4503
4504 # Compiler flag to generate shared objects directly from archives.
4505 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4506
4507 # Compiler flag to generate thread-safe objects.
4508 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4509
4510 # Library versioning type.
4511 version_type=$version_type
4512
4513 # Format of library name prefix.
4514 libname_spec=$lt_libname_spec
4515
4516 # List of archive names. First name is the real one, the rest are links.
4517 # The last name is the one that the linker finds with -lNAME.
4518 library_names_spec=$lt_library_names_spec
4519
4520 # The coded name of the library, if different from the real name.
4521 soname_spec=$lt_soname_spec
4522
4523 # Commands used to build and install an old-style archive.
4524 RANLIB=$lt_RANLIB
4525 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4526 old_postinstall_cmds=$lt_old_postinstall_cmds
4527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4528
4529 # Create an old-style archive from a shared archive.
4530 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4531
4532 # Create a temporary old-style archive to link instead of a shared archive.
4533 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4534
4535 # Commands used to build and install a shared archive.
4536 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4537 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4538 postinstall_cmds=$lt_postinstall_cmds
4539 postuninstall_cmds=$lt_postuninstall_cmds
4540
4541 # Commands used to build a loadable module (assumed same as above if empty)
4542 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4543 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4544
4545 # Commands to strip libraries.
4546 old_striplib=$lt_old_striplib
4547 striplib=$lt_striplib
4548
4549 # Dependencies to place before the objects being linked to create a
4550 # shared library.
4551 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4552
4553 # Dependencies to place after the objects being linked to create a
4554 # shared library.
4555 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4556
4557 # Dependencies to place before the objects being linked to create a
4558 # shared library.
4559 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4560
4561 # Dependencies to place after the objects being linked to create a
4562 # shared library.
4563 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4564
4565 # The library search path used internally by the compiler when linking
4566 # a shared library.
4567 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4568
4569 # Method to check whether dependent libraries are shared objects.
4570 deplibs_check_method=$lt_deplibs_check_method
4571
4572 # Command to use when deplibs_check_method == file_magic.
4573 file_magic_cmd=$lt_file_magic_cmd
4574
4575 # Flag that allows shared libraries with undefined symbols to be built.
4576 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4577
4578 # Flag that forces no undefined symbols.
4579 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4580
4581 # Commands used to finish a libtool library installation in a directory.
4582 finish_cmds=$lt_finish_cmds
4583
4584 # Same as above, but a single script fragment to be evaled but not shown.
4585 finish_eval=$lt_finish_eval
4586
4587 # Take the output of nm and produce a listing of raw symbols and C names.
4588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4589
4590 # Transform the output of nm in a proper C declaration
4591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4592
4593 # Transform the output of nm in a C name address pair
4594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4595
4596 # This is the shared library runtime path variable.
4597 runpath_var=$runpath_var
4598
4599 # This is the shared library path variable.
4600 shlibpath_var=$shlibpath_var
4601
4602 # Is shlibpath searched before the hard-coded library search path?
4603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4604
4605 # How to hardcode a shared library path into an executable.
4606 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4607
4608 # Whether we should hardcode library paths into libraries.
4609 hardcode_into_libs=$hardcode_into_libs
4610
4611 # Flag to hardcode \$libdir into a binary during linking.
4612 # This must work even if \$libdir does not exist.
4613 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4614
4615 # If ld is used when linking, flag to hardcode \$libdir into
4616 # a binary during linking. This must work even if \$libdir does
4617 # not exist.
4618 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4619
4620 # Whether we need a single -rpath flag with a separated argument.
4621 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4622
4623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4624 # resulting binary.
4625 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4626
4627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4628 # resulting binary.
4629 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4630
4631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4632 # the resulting binary.
4633 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4634
4635 # Set to yes if building a shared library automatically hardcodes DIR into the library
4636 # and all subsequent libraries and executables linked against it.
4637 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4638
4639 # Variables whose values should be saved in libtool wrapper scripts and
4640 # restored at relink time.
4641 variables_saved_for_relink="$variables_saved_for_relink"
4642
4643 # Whether libtool must link a program against all its dependency libraries.
4644 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4645
4646 # Compile-time system search path for libraries
4647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4648
4649 # Run-time system search path for libraries
4650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4651
4652 # Fix the shell variable \$srcfile for the compiler.
4653 fix_srcfile_path=$lt_fix_srcfile_path
4654
4655 # Set to yes if exported symbols are required.
4656 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4657
4658 # The commands to list exported symbols.
4659 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4660
4661 # The commands to extract the exported symbol list from a shared archive.
4662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4663
4664 # Symbols that should not be listed in the preloaded symbols.
4665 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4666
4667 # Symbols that must always be exported.
4668 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4669
4670 ifelse([$1],[],
4671 [# ### END LIBTOOL CONFIG],
4672 [# ### END LIBTOOL TAG CONFIG: $tagname])
4673
4674 __EOF__
4675
4676 ifelse([$1],[], [
4677 case $host_os in
4678 aix3*)
4679 cat <<\EOF >> "$cfgfile"
4680
4681 # AIX sometimes has problems with the GCC collect2 program. For some
4682 # reason, if we set the COLLECT_NAMES environment variable, the problems
4683 # vanish in a puff of smoke.
4684 if test "X${COLLECT_NAMES+set}" != Xset; then
4685 COLLECT_NAMES=
4686 export COLLECT_NAMES
4687 fi
4688 EOF
4689 ;;
4690 esac
4691
4692 # We use sed instead of cat because bash on DJGPP gets confused if
4693 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4694 # text mode, it properly converts lines to CR/LF. This bash problem
4695 # is reportedly fixed, but why not run on old versions too?
4696 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4697
4698 mv -f "$cfgfile" "$ofile" || \
4699 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4700 chmod +x "$ofile"
4701 ])
4702 else
4703 # If there is no Makefile yet, we rely on a make rule to execute
4704 # `config.status --recheck' to rerun these tests and create the
4705 # libtool script then.
4706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4707 if test -f "$ltmain_in"; then
4708 test -f Makefile && make "$ltmain"
4709 fi
4710 fi
4711 ])# AC_LIBTOOL_CONFIG
4712
4713
4714 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4715 # -------------------------------------------
4716 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4717 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4718
4719 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4720
4721 if test "$GCC" = yes; then
4722 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4723
4724 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4725 lt_cv_prog_compiler_rtti_exceptions,
4726 [-fno-rtti -fno-exceptions], [],
4727 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4728 fi
4729 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4730
4731
4732 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4733 # ---------------------------------
4734 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4735 [AC_REQUIRE([AC_CANONICAL_HOST])
4736 AC_REQUIRE([LT_AC_PROG_SED])
4737 AC_REQUIRE([AC_PROG_NM])
4738 AC_REQUIRE([AC_OBJEXT])
4739 # Check for command to grab the raw symbol name followed by C symbol from nm.
4740 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4741 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4742 [
4743 # These are sane defaults that work on at least a few old systems.
4744 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4745
4746 # Character class describing NM global symbol codes.
4747 symcode='[[BCDEGRST]]'
4748
4749 # Regexp to match symbols that can be accessed directly from C.
4750 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4751
4752 # Transform an extracted symbol line into a proper C declaration
4753 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4754
4755 # Transform an extracted symbol line into symbol name and symbol address
4756 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'"
4757
4758 # Define system-specific variables.
4759 case $host_os in
4760 aix*)
4761 symcode='[[BCDT]]'
4762 ;;
4763 cygwin* | mingw* | pw32*)
4764 symcode='[[ABCDGISTW]]'
4765 ;;
4766 hpux*) # Its linker distinguishes data from code symbols
4767 if test "$host_cpu" = ia64; then
4768 symcode='[[ABCDEGRST]]'
4769 fi
4770 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4771 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'"
4772 ;;
4773 linux* | k*bsd*-gnu)
4774 if test "$host_cpu" = ia64; then
4775 symcode='[[ABCDGIRSTW]]'
4776 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4777 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'"
4778 fi
4779 ;;
4780 irix* | nonstopux*)
4781 symcode='[[BCDEGRST]]'
4782 ;;
4783 osf*)
4784 symcode='[[BCDEGQRST]]'
4785 ;;
4786 solaris*)
4787 symcode='[[BDRT]]'
4788 ;;
4789 sco3.2v5*)
4790 symcode='[[DT]]'
4791 ;;
4792 sysv4.2uw2*)
4793 symcode='[[DT]]'
4794 ;;
4795 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4796 symcode='[[ABDT]]'
4797 ;;
4798 sysv4)
4799 symcode='[[DFNSTU]]'
4800 ;;
4801 esac
4802
4803 # Handle CRLF in mingw tool chain
4804 opt_cr=
4805 case $build_os in
4806 mingw*)
4807 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4808 ;;
4809 esac
4810
4811 # If we're using GNU nm, then use its standard symbol codes.
4812 case `$NM -V 2>&1` in
4813 *GNU* | *'with BFD'*)
4814 symcode='[[ABCDGIRSTW]]' ;;
4815 esac
4816
4817 # Try without a prefix undercore, then with it.
4818 for ac_symprfx in "" "_"; do
4819
4820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4821 symxfrm="\\1 $ac_symprfx\\2 \\2"
4822
4823 # Write the raw and C identifiers.
4824 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4825
4826 # Check to see that the pipe works correctly.
4827 pipe_works=no
4828
4829 rm -f conftest*
4830 cat > conftest.$ac_ext <<EOF
4831 #ifdef __cplusplus
4832 extern "C" {
4833 #endif
4834 char nm_test_var;
4835 void nm_test_func(){}
4836 #ifdef __cplusplus
4837 }
4838 #endif
4839 int main(){nm_test_var='a';nm_test_func();return(0);}
4840 EOF
4841
4842 if AC_TRY_EVAL(ac_compile); then
4843 # Now try to grab the symbols.
4844 nlist=conftest.nm
4845 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4846 # Try sorting and uniquifying the output.
4847 if sort "$nlist" | uniq > "$nlist"T; then
4848 mv -f "$nlist"T "$nlist"
4849 else
4850 rm -f "$nlist"T
4851 fi
4852
4853 # Make sure that we snagged all the symbols we need.
4854 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4855 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4856 cat <<EOF > conftest.$ac_ext
4857 #ifdef __cplusplus
4858 extern "C" {
4859 #endif
4860
4861 EOF
4862 # Now generate the symbol file.
4863 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4864
4865 cat <<EOF >> conftest.$ac_ext
4866 #if defined (__STDC__) && __STDC__
4867 # define lt_ptr_t void *
4868 #else
4869 # define lt_ptr_t char *
4870 # define const
4871 #endif
4872
4873 /* The mapping between symbol names and symbols. */
4874 const struct {
4875 const char *name;
4876 lt_ptr_t address;
4877 }
4878 lt_preloaded_symbols[[]] =
4879 {
4880 EOF
4881 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4882 cat <<\EOF >> conftest.$ac_ext
4883 {0, (lt_ptr_t) 0}
4884 };
4885
4886 #ifdef __cplusplus
4887 }
4888 #endif
4889 EOF
4890 # Now try linking the two files.
4891 mv conftest.$ac_objext conftstm.$ac_objext
4892 lt_save_LIBS="$LIBS"
4893 lt_save_CFLAGS="$CFLAGS"
4894 LIBS="conftstm.$ac_objext"
4895 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4896 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4897 pipe_works=yes
4898 fi
4899 LIBS="$lt_save_LIBS"
4900 CFLAGS="$lt_save_CFLAGS"
4901 else
4902 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4903 fi
4904 else
4905 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4906 fi
4907 else
4908 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4909 fi
4910 else
4911 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4912 cat conftest.$ac_ext >&5
4913 fi
4914 rm -f conftest* conftst*
4915
4916 # Do not use the global_symbol_pipe unless it works.
4917 if test "$pipe_works" = yes; then
4918 break
4919 else
4920 lt_cv_sys_global_symbol_pipe=
4921 fi
4922 done
4923 ])
4924 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4925 lt_cv_sys_global_symbol_to_cdecl=
4926 fi
4927 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4928 AC_MSG_RESULT(failed)
4929 else
4930 AC_MSG_RESULT(ok)
4931 fi
4932 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4933
4934
4935 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4936 # ---------------------------------------
4937 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4938 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4939 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4940 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4941
4942 AC_MSG_CHECKING([for $compiler option to produce PIC])
4943 ifelse([$1],[CXX],[
4944 # C++ specific cases for pic, static, wl, etc.
4945 if test "$GXX" = yes; then
4946 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4947 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4948
4949 case $host_os in
4950 aix*)
4951 # All AIX code is PIC.
4952 if test "$host_cpu" = ia64; then
4953 # AIX 5 now supports IA64 processor
4954 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4955 fi
4956 ;;
4957 amigaos*)
4958 # FIXME: we need at least 68020 code to build shared libraries, but
4959 # adding the `-m68020' flag to GCC prevents building anything better,
4960 # like `-m68040'.
4961 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4962 ;;
4963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4964 # PIC is the default for these OSes.
4965 ;;
4966 mingw* | cygwin* | os2* | pw32*)
4967 # This hack is so that the source file can tell whether it is being
4968 # built for inclusion in a dll (and should export symbols for example).
4969 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4970 # (--disable-auto-import) libraries
4971 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4972 ;;
4973 darwin* | rhapsody*)
4974 # PIC is the default on this platform
4975 # Common symbols not allowed in MH_DYLIB files
4976 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4977 ;;
4978 *djgpp*)
4979 # DJGPP does not support shared libraries at all
4980 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4981 ;;
4982 interix[[3-9]]*)
4983 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4984 # Instead, we relocate shared libraries at runtime.
4985 ;;
4986 sysv4*MP*)
4987 if test -d /usr/nec; then
4988 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4989 fi
4990 ;;
4991 hpux*)
4992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4993 # not for PA HP-UX.
4994 case $host_cpu in
4995 hppa*64*|ia64*)
4996 ;;
4997 *)
4998 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4999 ;;
5000 esac
5001 ;;
5002 *)
5003 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5004 ;;
5005 esac
5006 else
5007 case $host_os in
5008 aix4* | aix5*)
5009 # All AIX code is PIC.
5010 if test "$host_cpu" = ia64; then
5011 # AIX 5 now supports IA64 processor
5012 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5013 else
5014 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5015 fi
5016 ;;
5017 chorus*)
5018 case $cc_basename in
5019 cxch68*)
5020 # Green Hills C++ Compiler
5021 # _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"
5022 ;;
5023 esac
5024 ;;
5025 darwin*)
5026 # PIC is the default on this platform
5027 # Common symbols not allowed in MH_DYLIB files
5028 case $cc_basename in
5029 xlc*)
5030 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5031 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5032 ;;
5033 esac
5034 ;;
5035 dgux*)
5036 case $cc_basename in
5037 ec++*)
5038 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5039 ;;
5040 ghcx*)
5041 # Green Hills C++ Compiler
5042 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5043 ;;
5044 *)
5045 ;;
5046 esac
5047 ;;
5048 freebsd* | dragonfly*)
5049 # FreeBSD uses GNU C++
5050 ;;
5051 hpux9* | hpux10* | hpux11*)
5052 case $cc_basename in
5053 CC*)
5054 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5055 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5056 if test "$host_cpu" != ia64; then
5057 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5058 fi
5059 ;;
5060 aCC*)
5061 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5062 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5063 case $host_cpu in
5064 hppa*64*|ia64*)
5065 # +Z the default
5066 ;;
5067 *)
5068 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5069 ;;
5070 esac
5071 ;;
5072 *)
5073 ;;
5074 esac
5075 ;;
5076 interix*)
5077 # This is c89, which is MS Visual C++ (no shared libs)
5078 # Anyone wants to do a port?
5079 ;;
5080 irix5* | irix6* | nonstopux*)
5081 case $cc_basename in
5082 CC*)
5083 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5084 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5085 # CC pic flag -KPIC is the default.
5086 ;;
5087 *)
5088 ;;
5089 esac
5090 ;;
5091 linux* | k*bsd*-gnu)
5092 case $cc_basename in
5093 KCC*)
5094 # KAI C++ Compiler
5095 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5096 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5097 ;;
5098 icpc* | ecpc*)
5099 # Intel C++
5100 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5101 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5102 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5103 ;;
5104 pgCC*)
5105 # Portland Group C++ compiler.
5106 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5107 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5108 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5109 ;;
5110 cxx*)
5111 # Compaq C++
5112 # Make sure the PIC flag is empty. It appears that all Alpha
5113 # Linux and Compaq Tru64 Unix objects are PIC.
5114 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5115 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5116 ;;
5117 *)
5118 case `$CC -V 2>&1 | sed 5q` in
5119 *Sun\ C*)
5120 # Sun C++ 5.9
5121 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5122 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5123 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5124 ;;
5125 esac
5126 ;;
5127 esac
5128 ;;
5129 lynxos*)
5130 ;;
5131 m88k*)
5132 ;;
5133 mvs*)
5134 case $cc_basename in
5135 cxx*)
5136 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5137 ;;
5138 *)
5139 ;;
5140 esac
5141 ;;
5142 netbsd* | netbsdelf*-gnu)
5143 ;;
5144 osf3* | osf4* | osf5*)
5145 case $cc_basename in
5146 KCC*)
5147 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5148 ;;
5149 RCC*)
5150 # Rational C++ 2.4.1
5151 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5152 ;;
5153 cxx*)
5154 # Digital/Compaq C++
5155 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5156 # Make sure the PIC flag is empty. It appears that all Alpha
5157 # Linux and Compaq Tru64 Unix objects are PIC.
5158 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5159 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5160 ;;
5161 *)
5162 ;;
5163 esac
5164 ;;
5165 psos*)
5166 ;;
5167 solaris*)
5168 case $cc_basename in
5169 CC*)
5170 # Sun C++ 4.2, 5.x and Centerline C++
5171 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5172 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5173 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5174 ;;
5175 gcx*)
5176 # Green Hills C++ Compiler
5177 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5178 ;;
5179 *)
5180 ;;
5181 esac
5182 ;;
5183 sunos4*)
5184 case $cc_basename in
5185 CC*)
5186 # Sun C++ 4.x
5187 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5188 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5189 ;;
5190 lcc*)
5191 # Lucid
5192 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5193 ;;
5194 *)
5195 ;;
5196 esac
5197 ;;
5198 tandem*)
5199 case $cc_basename in
5200 NCC*)
5201 # NonStop-UX NCC 3.20
5202 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5203 ;;
5204 *)
5205 ;;
5206 esac
5207 ;;
5208 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5209 case $cc_basename in
5210 CC*)
5211 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5212 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5213 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5214 ;;
5215 esac
5216 ;;
5217 vxworks*)
5218 ;;
5219 *)
5220 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5221 ;;
5222 esac
5223 fi
5224 ],
5225 [
5226 if test "$GCC" = yes; then
5227 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5228 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5229
5230 case $host_os in
5231 aix*)
5232 # All AIX code is PIC.
5233 if test "$host_cpu" = ia64; then
5234 # AIX 5 now supports IA64 processor
5235 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5236 fi
5237 ;;
5238
5239 amigaos*)
5240 # FIXME: we need at least 68020 code to build shared libraries, but
5241 # adding the `-m68020' flag to GCC prevents building anything better,
5242 # like `-m68040'.
5243 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5244 ;;
5245
5246 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5247 # PIC is the default for these OSes.
5248 ;;
5249
5250 mingw* | cygwin* | pw32* | os2*)
5251 # This hack is so that the source file can tell whether it is being
5252 # built for inclusion in a dll (and should export symbols for example).
5253 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5254 # (--disable-auto-import) libraries
5255 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5256 ;;
5257
5258 darwin* | rhapsody*)
5259 # PIC is the default on this platform
5260 # Common symbols not allowed in MH_DYLIB files
5261 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5262 ;;
5263
5264 interix[[3-9]]*)
5265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5266 # Instead, we relocate shared libraries at runtime.
5267 ;;
5268
5269 msdosdjgpp*)
5270 # Just because we use GCC doesn't mean we suddenly get shared libraries
5271 # on systems that don't support them.
5272 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5273 enable_shared=no
5274 ;;
5275
5276 sysv4*MP*)
5277 if test -d /usr/nec; then
5278 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5279 fi
5280 ;;
5281
5282 hpux*)
5283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5284 # not for PA HP-UX.
5285 case $host_cpu in
5286 hppa*64*|ia64*)
5287 # +Z the default
5288 ;;
5289 *)
5290 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5291 ;;
5292 esac
5293 ;;
5294
5295 *)
5296 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5297 ;;
5298 esac
5299 else
5300 # PORTME Check for flag to pass linker flags through the system compiler.
5301 case $host_os in
5302 aix*)
5303 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5304 if test "$host_cpu" = ia64; then
5305 # AIX 5 now supports IA64 processor
5306 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5307 else
5308 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5309 fi
5310 ;;
5311 darwin*)
5312 # PIC is the default on this platform
5313 # Common symbols not allowed in MH_DYLIB files
5314 case $cc_basename in
5315 xlc*)
5316 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5317 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5318 ;;
5319 esac
5320 ;;
5321
5322 mingw* | cygwin* | pw32* | os2*)
5323 # This hack is so that the source file can tell whether it is being
5324 # built for inclusion in a dll (and should export symbols for example).
5325 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5326 ;;
5327
5328 hpux9* | hpux10* | hpux11*)
5329 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5331 # not for PA HP-UX.
5332 case $host_cpu in
5333 hppa*64*|ia64*)
5334 # +Z the default
5335 ;;
5336 *)
5337 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5338 ;;
5339 esac
5340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5341 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5342 ;;
5343
5344 irix5* | irix6* | nonstopux*)
5345 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5346 # PIC (with -KPIC) is the default.
5347 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5348 ;;
5349
5350 newsos6)
5351 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5352 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5353 ;;
5354
5355 linux* | k*bsd*-gnu)
5356 case $cc_basename in
5357 icc* | ecc*)
5358 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5359 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5360 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5361 ;;
5362 pgcc* | pgf77* | pgf90* | pgf95*)
5363 # Portland Group compilers (*not* the Pentium gcc compiler,
5364 # which looks to be a dead project)
5365 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5366 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5367 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5368 ;;
5369 ccc*)
5370 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5371 # All Alpha code is PIC.
5372 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5373 ;;
5374 *)
5375 case `$CC -V 2>&1 | sed 5q` in
5376 *Sun\ C*)
5377 # Sun C 5.9
5378 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5379 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5380 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5381 ;;
5382 *Sun\ F*)
5383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5384 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5385 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5386 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5387 ;;
5388 esac
5389 ;;
5390 esac
5391 ;;
5392
5393 osf3* | osf4* | osf5*)
5394 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5395 # All OSF/1 code is PIC.
5396 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5397 ;;
5398
5399 rdos*)
5400 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5401 ;;
5402
5403 solaris*)
5404 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5405 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5406 case $cc_basename in
5407 f77* | f90* | f95*)
5408 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5409 *)
5410 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5411 esac
5412 ;;
5413
5414 sunos4*)
5415 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5416 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5417 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5418 ;;
5419
5420 sysv4 | sysv4.2uw2* | sysv4.3*)
5421 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5422 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5423 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5424 ;;
5425
5426 sysv4*MP*)
5427 if test -d /usr/nec ;then
5428 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5429 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5430 fi
5431 ;;
5432
5433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5434 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5435 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5436 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5437 ;;
5438
5439 unicos*)
5440 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5441 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5442 ;;
5443
5444 uts4*)
5445 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5446 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5447 ;;
5448
5449 *)
5450 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5451 ;;
5452 esac
5453 fi
5454 ])
5455 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5456
5457 #
5458 # Check to make sure the PIC flag actually works.
5459 #
5460 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5461 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5462 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5463 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5464 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5465 "" | " "*) ;;
5466 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5467 esac],
5468 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5469 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5470 fi
5471 case $host_os in
5472 # For platforms which do not support PIC, -DPIC is meaningless:
5473 *djgpp*)
5474 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5475 ;;
5476 *)
5477 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5478 ;;
5479 esac
5480
5481 #
5482 # Check to make sure the static flag actually works.
5483 #
5484 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5485 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5486 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5487 $lt_tmp_static_flag,
5488 [],
5489 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5490 ])
5491
5492
5493 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5494 # ------------------------------------
5495 # See if the linker supports building shared libraries.
5496 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5497 [AC_REQUIRE([LT_AC_PROG_SED])dnl
5498 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5499 ifelse([$1],[CXX],[
5500 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5501 case $host_os in
5502 aix4* | aix5*)
5503 # If we're using GNU nm, then we don't want the "-C" option.
5504 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5505 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5506 _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'
5507 else
5508 _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'
5509 fi
5510 ;;
5511 pw32*)
5512 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5513 ;;
5514 cygwin* | mingw*)
5515 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5516 ;;
5517 linux* | k*bsd*-gnu)
5518 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5519 ;;
5520 *)
5521 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5522 ;;
5523 esac
5524 ],[
5525 runpath_var=
5526 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5527 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5528 _LT_AC_TAGVAR(archive_cmds, $1)=
5529 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5530 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5531 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5532 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5533 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5534 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5535 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5536 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5537 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5538 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5539 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5540 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5541 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5542 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5543 _LT_AC_TAGVAR(module_cmds, $1)=
5544 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5545 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5546 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5547 # include_expsyms should be a list of space-separated symbols to be *always*
5548 # included in the symbol list
5549 _LT_AC_TAGVAR(include_expsyms, $1)=
5550 # exclude_expsyms can be an extended regexp of symbols to exclude
5551 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5553 # as well as any symbol that contains `d'.
5554 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5556 # platforms (ab)use it in PIC code, but their linkers get confused if
5557 # the symbol is explicitly referenced. Since portable code cannot
5558 # rely on this symbol name, it's probably fine to never include it in
5559 # preloaded symbol tables.
5560 extract_expsyms_cmds=
5561 # Just being paranoid about ensuring that cc_basename is set.
5562 _LT_CC_BASENAME([$compiler])
5563 case $host_os in
5564 cygwin* | mingw* | pw32*)
5565 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5566 # When not using gcc, we currently assume that we are using
5567 # Microsoft Visual C++.
5568 if test "$GCC" != yes; then
5569 with_gnu_ld=no
5570 fi
5571 ;;
5572 interix*)
5573 # we just hope/assume this is gcc and not c89 (= MSVC++)
5574 with_gnu_ld=yes
5575 ;;
5576 openbsd*)
5577 with_gnu_ld=no
5578 ;;
5579 esac
5580
5581 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5582 if test "$with_gnu_ld" = yes; then
5583 # If archive_cmds runs LD, not CC, wlarc should be empty
5584 wlarc='${wl}'
5585
5586 # Set some defaults for GNU ld with shared library support. These
5587 # are reset later if shared libraries are not supported. Putting them
5588 # here allows them to be overridden if necessary.
5589 runpath_var=LD_RUN_PATH
5590 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5591 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5592 # ancient GNU ld didn't support --whole-archive et. al.
5593 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5594 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5595 else
5596 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5597 fi
5598 supports_anon_versioning=no
5599 case `$LD -v 2>/dev/null` in
5600 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5603 *\ 2.11.*) ;; # other 2.11 versions
5604 *) supports_anon_versioning=yes ;;
5605 esac
5606
5607 # See if GNU ld supports shared libraries.
5608 case $host_os in
5609 aix3* | aix4* | aix5*)
5610 # On AIX/PPC, the GNU linker is very broken
5611 if test "$host_cpu" != ia64; then
5612 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5613 cat <<EOF 1>&2
5614
5615 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5616 *** to be unable to reliably create shared libraries on AIX.
5617 *** Therefore, libtool is disabling shared libraries support. If you
5618 *** really care for shared libraries, you may want to modify your PATH
5619 *** so that a non-GNU linker is found, and then restart.
5620
5621 EOF
5622 fi
5623 ;;
5624
5625 amigaos*)
5626 _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)'
5627 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5628 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5629
5630 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5631 # that the semantics of dynamic libraries on AmigaOS, at least up
5632 # to version 4, is to share data among multiple programs linked
5633 # with the same dynamic library. Since this doesn't match the
5634 # behavior of shared libraries on other platforms, we can't use
5635 # them.
5636 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5637 ;;
5638
5639 beos*)
5640 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5641 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5643 # support --undefined. This deserves some investigation. FIXME
5644 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5645 else
5646 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5647 fi
5648 ;;
5649
5650 cygwin* | mingw* | pw32*)
5651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5652 # as there is no search path for DLLs.
5653 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5654 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5655 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5656 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5657 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5658
5659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5660 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5661 # If the export-symbols file already is a .def file (1st line
5662 # is EXPORTS), use it as is; otherwise, prepend...
5663 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5664 cp $export_symbols $output_objdir/$soname.def;
5665 else
5666 echo EXPORTS > $output_objdir/$soname.def;
5667 cat $export_symbols >> $output_objdir/$soname.def;
5668 fi~
5669 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5670 else
5671 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5672 fi
5673 ;;
5674
5675 interix[[3-9]]*)
5676 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5677 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5678 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5679 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5681 # Instead, shared libraries are loaded at an image base (0x10000000 by
5682 # default) and relocated if they conflict, which is a slow very memory
5683 # consuming and fragmenting process. To avoid this, we pick a random,
5684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5685 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5686 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5687 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5688 ;;
5689
5690 gnu* | linux* | k*bsd*-gnu)
5691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5692 tmp_addflag=
5693 case $cc_basename,$host_cpu in
5694 pgcc*) # Portland Group C compiler
5695 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5696 tmp_addflag=' $pic_flag'
5697 ;;
5698 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5699 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5700 tmp_addflag=' $pic_flag -Mnomain' ;;
5701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5702 tmp_addflag=' -i_dynamic' ;;
5703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5704 tmp_addflag=' -i_dynamic -nofor_main' ;;
5705 ifc* | ifort*) # Intel Fortran compiler
5706 tmp_addflag=' -nofor_main' ;;
5707 esac
5708 case `$CC -V 2>&1 | sed 5q` in
5709 *Sun\ C*) # Sun C 5.9
5710 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5711 tmp_sharedflag='-G' ;;
5712 *Sun\ F*) # Sun Fortran 8.3
5713 tmp_sharedflag='-G' ;;
5714 *)
5715 tmp_sharedflag='-shared' ;;
5716 esac
5717 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5718
5719 if test $supports_anon_versioning = yes; then
5720 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5721 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5722 $echo "local: *; };" >> $output_objdir/$libname.ver~
5723 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5724 fi
5725 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5726 else
5727 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5728 fi
5729 ;;
5730
5731 netbsd* | netbsdelf*-gnu)
5732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5733 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5734 wlarc=
5735 else
5736 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5737 _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'
5738 fi
5739 ;;
5740
5741 solaris*)
5742 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5743 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5744 cat <<EOF 1>&2
5745
5746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5747 *** create shared libraries on Solaris systems. Therefore, libtool
5748 *** is disabling shared libraries support. We urge you to upgrade GNU
5749 *** binutils to release 2.9.1 or newer. Another option is to modify
5750 *** your PATH or compiler configuration so that the native linker is
5751 *** used, and then restart.
5752
5753 EOF
5754 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5755 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5756 _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'
5757 else
5758 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5759 fi
5760 ;;
5761
5762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5763 case `$LD -v 2>&1` in
5764 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5765 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5766 cat <<_LT_EOF 1>&2
5767
5768 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5769 *** reliably create shared libraries on SCO systems. Therefore, libtool
5770 *** is disabling shared libraries support. We urge you to upgrade GNU
5771 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5772 *** your PATH or compiler configuration so that the native linker is
5773 *** used, and then restart.
5774
5775 _LT_EOF
5776 ;;
5777 *)
5778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5779 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5780 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5781 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5782 else
5783 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5784 fi
5785 ;;
5786 esac
5787 ;;
5788
5789 sunos4*)
5790 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5791 wlarc=
5792 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5793 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5794 ;;
5795
5796 *)
5797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5798 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5799 _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'
5800 else
5801 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5802 fi
5803 ;;
5804 esac
5805
5806 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5807 runpath_var=
5808 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5809 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5810 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5811 fi
5812 else
5813 # PORTME fill in a description of your system's linker (not GNU ld)
5814 case $host_os in
5815 aix3*)
5816 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5817 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5818 _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'
5819 # Note: this linker hardcodes the directories in LIBPATH if there
5820 # are no directories specified by -L.
5821 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5822 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5823 # Neither direct hardcoding nor static linking is supported with a
5824 # broken collect2.
5825 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5826 fi
5827 ;;
5828
5829 aix4* | aix5*)
5830 if test "$host_cpu" = ia64; then
5831 # On IA64, the linker does run time linking by default, so we don't
5832 # have to do anything special.
5833 aix_use_runtimelinking=no
5834 exp_sym_flag='-Bexport'
5835 no_entry_flag=""
5836 else
5837 # If we're using GNU nm, then we don't want the "-C" option.
5838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5839 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5840 _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'
5841 else
5842 _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'
5843 fi
5844 aix_use_runtimelinking=no
5845
5846 # Test if we are trying to use run time linking or normal
5847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5848 # need to do runtime linking.
5849 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5850 for ld_flag in $LDFLAGS; do
5851 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5852 aix_use_runtimelinking=yes
5853 break
5854 fi
5855 done
5856 ;;
5857 esac
5858
5859 exp_sym_flag='-bexport'
5860 no_entry_flag='-bnoentry'
5861 fi
5862
5863 # When large executables or shared objects are built, AIX ld can
5864 # have problems creating the table of contents. If linking a library
5865 # or program results in "error TOC overflow" add -mminimal-toc to
5866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5868
5869 _LT_AC_TAGVAR(archive_cmds, $1)=''
5870 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5871 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5872 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5873
5874 if test "$GCC" = yes; then
5875 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5876 # We only want to do this on AIX 4.2 and lower, the check
5877 # below for broken collect2 doesn't work under 4.3+
5878 collect2name=`${CC} -print-prog-name=collect2`
5879 if test -f "$collect2name" && \
5880 strings "$collect2name" | grep resolve_lib_name >/dev/null
5881 then
5882 # We have reworked collect2
5883 :
5884 else
5885 # We have old collect2
5886 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5887 # It fails to find uninstalled libraries when the uninstalled
5888 # path is not listed in the libpath. Setting hardcode_minus_L
5889 # to unsupported forces relinking
5890 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5891 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5892 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5893 fi
5894 ;;
5895 esac
5896 shared_flag='-shared'
5897 if test "$aix_use_runtimelinking" = yes; then
5898 shared_flag="$shared_flag "'${wl}-G'
5899 fi
5900 else
5901 # not using gcc
5902 if test "$host_cpu" = ia64; then
5903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5904 # chokes on -Wl,-G. The following line is correct:
5905 shared_flag='-G'
5906 else
5907 if test "$aix_use_runtimelinking" = yes; then
5908 shared_flag='${wl}-G'
5909 else
5910 shared_flag='${wl}-bM:SRE'
5911 fi
5912 fi
5913 fi
5914
5915 # It seems that -bexpall does not export symbols beginning with
5916 # underscore (_), so it is better to generate a list of symbols to export.
5917 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5918 if test "$aix_use_runtimelinking" = yes; then
5919 # Warning - without using the other runtime loading flags (-brtl),
5920 # -berok will link without error, but may produce a broken library.
5921 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5922 # Determine the default libpath from the value encoded in an empty executable.
5923 _LT_AC_SYS_LIBPATH_AIX
5924 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5925 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5926 else
5927 if test "$host_cpu" = ia64; then
5928 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5929 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5930 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5931 else
5932 # Determine the default libpath from the value encoded in an empty executable.
5933 _LT_AC_SYS_LIBPATH_AIX
5934 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5935 # Warning - without using the other run time loading flags,
5936 # -berok will link without error, but may produce a broken library.
5937 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5938 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5939 # Exported symbols can be pulled into shared objects from archives
5940 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5941 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5942 # This is similar to how AIX traditionally builds its shared libraries.
5943 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5944 fi
5945 fi
5946 ;;
5947
5948 amigaos*)
5949 _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)'
5950 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5951 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5952 # see comment about different semantics on the GNU ld section
5953 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5954 ;;
5955
5956 bsdi[[45]]*)
5957 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5958 ;;
5959
5960 cygwin* | mingw* | pw32*)
5961 # When not using gcc, we currently assume that we are using
5962 # Microsoft Visual C++.
5963 # hardcode_libdir_flag_spec is actually meaningless, as there is
5964 # no search path for DLLs.
5965 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5966 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5967 # Tell ltmain to make .lib files, not .a files.
5968 libext=lib
5969 # Tell ltmain to make .dll files, not .so files.
5970 shrext_cmds=".dll"
5971 # FIXME: Setting linknames here is a bad hack.
5972 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5973 # The linker will automatically build a .lib file if we build a DLL.
5974 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5975 # FIXME: Should let the user specify the lib program.
5976 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5977 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5978 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5979 ;;
5980
5981 darwin* | rhapsody*)
5982 case $host_os in
5983 rhapsody* | darwin1.[[012]])
5984 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5985 ;;
5986 *) # Darwin 1.3 on
5987 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5988 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5989 else
5990 case ${MACOSX_DEPLOYMENT_TARGET} in
5991 10.[[012]])
5992 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5993 ;;
5994 10.*)
5995 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5996 ;;
5997 esac
5998 fi
5999 ;;
6000 esac
6001 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6002 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6003 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6004 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6005 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6006 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6007 if test "$GCC" = yes ; then
6008 output_verbose_link_cmd='echo'
6009 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6010 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6011 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6012 _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}'
6013 _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}'
6014 else
6015 case $cc_basename in
6016 xlc*)
6017 output_verbose_link_cmd='echo'
6018 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6019 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6020 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6021 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6022 _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}'
6023 ;;
6024 *)
6025 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6026 ;;
6027 esac
6028 fi
6029 ;;
6030
6031 dgux*)
6032 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6033 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6034 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6035 ;;
6036
6037 freebsd1*)
6038 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6039 ;;
6040
6041 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6042 # support. Future versions do this automatically, but an explicit c++rt0.o
6043 # does not break anything, and helps significantly (at the cost of a little
6044 # extra space).
6045 freebsd2.2*)
6046 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6047 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6048 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6049 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6050 ;;
6051
6052 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6053 freebsd2*)
6054 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6055 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6056 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6057 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6058 ;;
6059
6060 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6061 freebsd* | dragonfly*)
6062 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6063 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6064 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6065 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6066 ;;
6067
6068 hpux9*)
6069 if test "$GCC" = yes; then
6070 _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'
6071 else
6072 _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'
6073 fi
6074 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6075 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6076 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6077
6078 # hardcode_minus_L: Not really in the search PATH,
6079 # but as the default location of the library.
6080 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6081 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6082 ;;
6083
6084 hpux10*)
6085 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6086 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6087 else
6088 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6089 fi
6090 if test "$with_gnu_ld" = no; then
6091 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6092 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6093
6094 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6095 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6096
6097 # hardcode_minus_L: Not really in the search PATH,
6098 # but as the default location of the library.
6099 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6100 fi
6101 ;;
6102
6103 hpux11*)
6104 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6105 case $host_cpu in
6106 hppa*64*)
6107 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6108 ;;
6109 ia64*)
6110 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6111 ;;
6112 *)
6113 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6114 ;;
6115 esac
6116 else
6117 case $host_cpu in
6118 hppa*64*)
6119 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6120 ;;
6121 ia64*)
6122 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6123 ;;
6124 *)
6125 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6126 ;;
6127 esac
6128 fi
6129 if test "$with_gnu_ld" = no; then
6130 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6131 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6132
6133 case $host_cpu in
6134 hppa*64*|ia64*)
6135 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6136 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6137 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6138 ;;
6139 *)
6140 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6141 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6142
6143 # hardcode_minus_L: Not really in the search PATH,
6144 # but as the default location of the library.
6145 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6146 ;;
6147 esac
6148 fi
6149 ;;
6150
6151 irix5* | irix6* | nonstopux*)
6152 if test "$GCC" = yes; then
6153 _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'
6154 else
6155 _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'
6156 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6157 fi
6158 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6159 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6160 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6161 ;;
6162
6163 netbsd* | netbsdelf*-gnu)
6164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6165 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6166 else
6167 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6168 fi
6169 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6170 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6171 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6172 ;;
6173
6174 newsos6)
6175 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6176 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6177 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6178 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6179 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6180 ;;
6181
6182 openbsd*)
6183 if test -f /usr/libexec/ld.so; then
6184 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6185 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6187 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6188 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6189 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6190 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6191 else
6192 case $host_os in
6193 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6194 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6195 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6196 ;;
6197 *)
6198 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6199 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6200 ;;
6201 esac
6202 fi
6203 else
6204 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6205 fi
6206 ;;
6207
6208 os2*)
6209 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6210 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6211 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6212 _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'
6213 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6214 ;;
6215
6216 osf3*)
6217 if test "$GCC" = yes; then
6218 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6219 _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'
6220 else
6221 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6222 _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'
6223 fi
6224 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6225 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6226 ;;
6227
6228 osf4* | osf5*) # as osf3* with the addition of -msym flag
6229 if test "$GCC" = yes; then
6230 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6231 _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'
6232 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6233 else
6234 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6235 _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'
6236 _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~
6237 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6238
6239 # Both c and cxx compiler support -rpath directly
6240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6241 fi
6242 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6243 ;;
6244
6245 solaris*)
6246 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6247 if test "$GCC" = yes; then
6248 wlarc='${wl}'
6249 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6250 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6251 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6252 else
6253 wlarc=''
6254 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6255 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6256 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6257 fi
6258 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6259 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6260 case $host_os in
6261 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6262 *)
6263 # The compiler driver will combine and reorder linker options,
6264 # but understands `-z linker_flag'. GCC discards it without `$wl',
6265 # but is careful enough not to reorder.
6266 # Supported since Solaris 2.6 (maybe 2.5.1?)
6267 if test "$GCC" = yes; then
6268 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6269 else
6270 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6271 fi
6272 ;;
6273 esac
6274 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6275 ;;
6276
6277 sunos4*)
6278 if test "x$host_vendor" = xsequent; then
6279 # Use $CC to link under sequent, because it throws in some extra .o
6280 # files that make .init and .fini sections work.
6281 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6282 else
6283 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6284 fi
6285 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6286 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6287 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6288 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6289 ;;
6290
6291 sysv4)
6292 case $host_vendor in
6293 sni)
6294 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6295 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6296 ;;
6297 siemens)
6298 ## LD is ld it makes a PLAMLIB
6299 ## CC just makes a GrossModule.
6300 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6301 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6302 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6303 ;;
6304 motorola)
6305 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6306 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6307 ;;
6308 esac
6309 runpath_var='LD_RUN_PATH'
6310 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6311 ;;
6312
6313 sysv4.3*)
6314 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6315 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6316 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6317 ;;
6318
6319 sysv4*MP*)
6320 if test -d /usr/nec; then
6321 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6322 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6323 runpath_var=LD_RUN_PATH
6324 hardcode_runpath_var=yes
6325 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6326 fi
6327 ;;
6328
6329 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6330 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6331 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6332 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6333 runpath_var='LD_RUN_PATH'
6334
6335 if test "$GCC" = yes; then
6336 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6337 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6338 else
6339 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6340 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6341 fi
6342 ;;
6343
6344 sysv5* | sco3.2v5* | sco5v6*)
6345 # Note: We can NOT use -z defs as we might desire, because we do not
6346 # link with -lc, and that would cause any symbols used from libc to
6347 # always be unresolved, which means just about no library would
6348 # ever link correctly. If we're not using GNU ld we use -z text
6349 # though, which does catch some bad symbols but isn't as heavy-handed
6350 # as -z defs.
6351 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6352 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6353 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6354 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6355 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6356 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6357 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6358 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6359 runpath_var='LD_RUN_PATH'
6360
6361 if test "$GCC" = yes; then
6362 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6363 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6364 else
6365 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6366 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6367 fi
6368 ;;
6369
6370 uts4*)
6371 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6372 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6373 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6374 ;;
6375
6376 *)
6377 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6378 ;;
6379 esac
6380 fi
6381 ])
6382 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6383 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6384
6385 #
6386 # Do we need to explicitly link libc?
6387 #
6388 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6389 x|xyes)
6390 # Assume -lc should be added
6391 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6392
6393 if test "$enable_shared" = yes && test "$GCC" = yes; then
6394 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6395 *'~'*)
6396 # FIXME: we may have to deal with multi-command sequences.
6397 ;;
6398 '$CC '*)
6399 # Test whether the compiler implicitly links with -lc since on some
6400 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6401 # to ld, don't add -lc before -lgcc.
6402 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6403 $rm conftest*
6404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6405
6406 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6407 soname=conftest
6408 lib=conftest
6409 libobjs=conftest.$ac_objext
6410 deplibs=
6411 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6412 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6413 compiler_flags=-v
6414 linker_flags=-v
6415 verstring=
6416 output_objdir=.
6417 libname=conftest
6418 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6419 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6420 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6421 then
6422 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6423 else
6424 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6425 fi
6426 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6427 else
6428 cat conftest.err 1>&5
6429 fi
6430 $rm conftest*
6431 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6432 ;;
6433 esac
6434 fi
6435 ;;
6436 esac
6437 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6438
6439
6440 # _LT_AC_FILE_LTDLL_C
6441 # -------------------
6442 # Be careful that the start marker always follows a newline.
6443 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6444 # /* ltdll.c starts here */
6445 # #define WIN32_LEAN_AND_MEAN
6446 # #include <windows.h>
6447 # #undef WIN32_LEAN_AND_MEAN
6448 # #include <stdio.h>
6449 #
6450 # #ifndef __CYGWIN__
6451 # # ifdef __CYGWIN32__
6452 # # define __CYGWIN__ __CYGWIN32__
6453 # # endif
6454 # #endif
6455 #
6456 # #ifdef __cplusplus
6457 # extern "C" {
6458 # #endif
6459 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6460 # #ifdef __cplusplus
6461 # }
6462 # #endif
6463 #
6464 # #ifdef __CYGWIN__
6465 # #include <cygwin/cygwin_dll.h>
6466 # DECLARE_CYGWIN_DLL( DllMain );
6467 # #endif
6468 # HINSTANCE __hDllInstance_base;
6469 #
6470 # BOOL APIENTRY
6471 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6472 # {
6473 # __hDllInstance_base = hInst;
6474 # return TRUE;
6475 # }
6476 # /* ltdll.c ends here */
6477 ])# _LT_AC_FILE_LTDLL_C
6478
6479
6480 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6481 # ---------------------------------
6482 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6483
6484
6485 # old names
6486 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6487 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6488 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6489 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6490 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6491 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6492 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6493
6494 # This is just to silence aclocal about the macro not being used
6495 ifelse([AC_DISABLE_FAST_INSTALL])
6496
6497 AC_DEFUN([LT_AC_PROG_GCJ],
6498 [AC_CHECK_TOOL(GCJ, gcj, no)
6499 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6500 AC_SUBST(GCJFLAGS)
6501 ])
6502
6503 AC_DEFUN([LT_AC_PROG_RC],
6504 [AC_CHECK_TOOL(RC, windres, no)
6505 ])
6506
6507
6508 # Cheap backport of AS_EXECUTABLE_P and required macros
6509 # from Autoconf 2.59; we should not use $as_executable_p directly.
6510
6511 # _AS_TEST_PREPARE
6512 # ----------------
6513 m4_ifndef([_AS_TEST_PREPARE],
6514 [m4_defun([_AS_TEST_PREPARE],
6515 [if test -x / >/dev/null 2>&1; then
6516 as_executable_p='test -x'
6517 else
6518 as_executable_p='test -f'
6519 fi
6520 ])])# _AS_TEST_PREPARE
6521
6522 # AS_EXECUTABLE_P
6523 # ---------------
6524 # Check whether a file is executable.
6525 m4_ifndef([AS_EXECUTABLE_P],
6526 [m4_defun([AS_EXECUTABLE_P],
6527 [AS_REQUIRE([_AS_TEST_PREPARE])dnl
6528 $as_executable_p $1[]dnl
6529 ])])# AS_EXECUTABLE_P
6530
6531 # NOTE: This macro has been submitted for inclusion into #
6532 # GNU Autoconf as AC_PROG_SED. When it is available in #
6533 # a released version of Autoconf we should remove this #
6534 # macro and use it instead. #
6535 # LT_AC_PROG_SED
6536 # --------------
6537 # Check for a fully-functional sed program, that truncates
6538 # as few characters as possible. Prefer GNU sed if found.
6539 AC_DEFUN([LT_AC_PROG_SED],
6540 [AC_MSG_CHECKING([for a sed that does not truncate output])
6541 AC_CACHE_VAL(lt_cv_path_SED,
6542 [# Loop through the user's path and test for sed and gsed.
6543 # Then use that list of sed's as ones to test for truncation.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for lt_ac_prog in sed gsed; do
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6552 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6553 fi
6554 done
6555 done
6556 done
6557 IFS=$as_save_IFS
6558 lt_ac_max=0
6559 lt_ac_count=0
6560 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6561 # along with /bin/sed that truncates output.
6562 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6563 test ! -f $lt_ac_sed && continue
6564 cat /dev/null > conftest.in
6565 lt_ac_count=0
6566 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6567 # Check for GNU sed and select it if it is found.
6568 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6569 lt_cv_path_SED=$lt_ac_sed
6570 break
6571 fi
6572 while true; do
6573 cat conftest.in conftest.in >conftest.tmp
6574 mv conftest.tmp conftest.in
6575 cp conftest.in conftest.nl
6576 echo >>conftest.nl
6577 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6578 cmp -s conftest.out conftest.nl || break
6579 # 10000 chars as input seems more than enough
6580 test $lt_ac_count -gt 10 && break
6581 lt_ac_count=`expr $lt_ac_count + 1`
6582 if test $lt_ac_count -gt $lt_ac_max; then
6583 lt_ac_max=$lt_ac_count
6584 lt_cv_path_SED=$lt_ac_sed
6585 fi
6586 done
6587 done
6588 ])
6589 SED=$lt_cv_path_SED
6590 AC_SUBST([SED])
6591 AC_MSG_RESULT([$SED])
6592 ])
6593
6594 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6595 #
6596 # This file is free software; the Free Software Foundation
6597 # gives unlimited permission to copy and/or distribute it,
6598 # with or without modifications, as long as this notice is preserved.
6599
6600 # AM_AUTOMAKE_VERSION(VERSION)
6601 # ----------------------------
6602 # Automake X.Y traces this macro to ensure aclocal.m4 has been
6603 # generated from the m4 files accompanying Automake X.Y.
6604 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6605
6606 # AM_SET_CURRENT_AUTOMAKE_VERSION
6607 # -------------------------------
6608 # Call AM_AUTOMAKE_VERSION so it can be traced.
6609 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6610 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6611 [AM_AUTOMAKE_VERSION([1.9.6])])
6612
6613 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
6614
6615 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6616 #
6617 # This file is free software; the Free Software Foundation
6618 # gives unlimited permission to copy and/or distribute it,
6619 # with or without modifications, as long as this notice is preserved.
6620
6621 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6622 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6623 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6624 #
6625 # Of course, Automake must honor this variable whenever it calls a
6626 # tool from the auxiliary directory. The problem is that $srcdir (and
6627 # therefore $ac_aux_dir as well) can be either absolute or relative,
6628 # depending on how configure is run. This is pretty annoying, since
6629 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
6630 # source directory, any form will work fine, but in subdirectories a
6631 # relative path needs to be adjusted first.
6632 #
6633 # $ac_aux_dir/missing
6634 # fails when called from a subdirectory if $ac_aux_dir is relative
6635 # $top_srcdir/$ac_aux_dir/missing
6636 # fails if $ac_aux_dir is absolute,
6637 # fails when called from a subdirectory in a VPATH build with
6638 # a relative $ac_aux_dir
6639 #
6640 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6641 # are both prefixed by $srcdir. In an in-source build this is usually
6642 # harmless because $srcdir is `.', but things will broke when you
6643 # start a VPATH build or use an absolute $srcdir.
6644 #
6645 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6646 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6647 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6648 # and then we would define $MISSING as
6649 # MISSING="\${SHELL} $am_aux_dir/missing"
6650 # This will work as long as MISSING is not called from configure, because
6651 # unfortunately $(top_srcdir) has no meaning in configure.
6652 # However there are other variables, like CC, which are often used in
6653 # configure, and could therefore not use this "fixed" $ac_aux_dir.
6654 #
6655 # Another solution, used here, is to always expand $ac_aux_dir to an
6656 # absolute PATH. The drawback is that using absolute paths prevent a
6657 # configured tree to be moved without reconfiguration.
6658
6659 AC_DEFUN([AM_AUX_DIR_EXPAND],
6660 [dnl Rely on autoconf to set up CDPATH properly.
6661 AC_PREREQ([2.50])dnl
6662 # expand $ac_aux_dir to an absolute path
6663 am_aux_dir=`cd $ac_aux_dir && pwd`
6664 ])
6665
6666 # AM_CONDITIONAL -*- Autoconf -*-
6667
6668 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6669 # Free Software Foundation, Inc.
6670 #
6671 # This file is free software; the Free Software Foundation
6672 # gives unlimited permission to copy and/or distribute it,
6673 # with or without modifications, as long as this notice is preserved.
6674
6675 # serial 7
6676
6677 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6678 # -------------------------------------
6679 # Define a conditional.
6680 AC_DEFUN([AM_CONDITIONAL],
6681 [AC_PREREQ(2.52)dnl
6682 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6683 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6684 AC_SUBST([$1_TRUE])
6685 AC_SUBST([$1_FALSE])
6686 if $2; then
6687 $1_TRUE=
6688 $1_FALSE='#'
6689 else
6690 $1_TRUE='#'
6691 $1_FALSE=
6692 fi
6693 AC_CONFIG_COMMANDS_PRE(
6694 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6695 AC_MSG_ERROR([[conditional "$1" was never defined.
6696 Usually this means the macro was only invoked conditionally.]])
6697 fi])])
6698
6699
6700 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6701 # Free Software Foundation, Inc.
6702 #
6703 # This file is free software; the Free Software Foundation
6704 # gives unlimited permission to copy and/or distribute it,
6705 # with or without modifications, as long as this notice is preserved.
6706
6707 # serial 8
6708
6709 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6710 # written in clear, in which case automake, when reading aclocal.m4,
6711 # will think it sees a *use*, and therefore will trigger all it's
6712 # C support machinery. Also note that it means that autoscan, seeing
6713 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6714
6715
6716 # _AM_DEPENDENCIES(NAME)
6717 # ----------------------
6718 # See how the compiler implements dependency checking.
6719 # NAME is "CC", "CXX", "GCJ", or "OBJC".
6720 # We try a few techniques and use that to set a single cache variable.
6721 #
6722 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6723 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6724 # dependency, and given that the user is not expected to run this macro,
6725 # just rely on AC_PROG_CC.
6726 AC_DEFUN([_AM_DEPENDENCIES],
6727 [AC_REQUIRE([AM_SET_DEPDIR])dnl
6728 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6729 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6730 AC_REQUIRE([AM_DEP_TRACK])dnl
6731
6732 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6733 [$1], CXX, [depcc="$CXX" am_compiler_list=],
6734 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6735 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6736 [depcc="$$1" am_compiler_list=])
6737
6738 AC_CACHE_CHECK([dependency style of $depcc],
6739 [am_cv_$1_dependencies_compiler_type],
6740 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6741 # We make a subdir and do the tests there. Otherwise we can end up
6742 # making bogus files that we don't know about and never remove. For
6743 # instance it was reported that on HP-UX the gcc test will end up
6744 # making a dummy file named `D' -- because `-MD' means `put the output
6745 # in D'.
6746 mkdir conftest.dir
6747 # Copy depcomp to subdir because otherwise we won't find it if we're
6748 # using a relative directory.
6749 cp "$am_depcomp" conftest.dir
6750 cd conftest.dir
6751 # We will build objects and dependencies in a subdirectory because
6752 # it helps to detect inapplicable dependency modes. For instance
6753 # both Tru64's cc and ICC support -MD to output dependencies as a
6754 # side effect of compilation, but ICC will put the dependencies in
6755 # the current directory while Tru64 will put them in the object
6756 # directory.
6757 mkdir sub
6758
6759 am_cv_$1_dependencies_compiler_type=none
6760 if test "$am_compiler_list" = ""; then
6761 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6762 fi
6763 for depmode in $am_compiler_list; do
6764 # Setup a source with many dependencies, because some compilers
6765 # like to wrap large dependency lists on column 80 (with \), and
6766 # we should not choose a depcomp mode which is confused by this.
6767 #
6768 # We need to recreate these files for each test, as the compiler may
6769 # overwrite some of them when testing with obscure command lines.
6770 # This happens at least with the AIX C compiler.
6771 : > sub/conftest.c
6772 for i in 1 2 3 4 5 6; do
6773 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6775 # Solaris 8's {/usr,}/bin/sh.
6776 touch sub/conftst$i.h
6777 done
6778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6779
6780 case $depmode in
6781 nosideeffect)
6782 # after this tag, mechanisms are not by side-effect, so they'll
6783 # only be used when explicitly requested
6784 if test "x$enable_dependency_tracking" = xyes; then
6785 continue
6786 else
6787 break
6788 fi
6789 ;;
6790 none) break ;;
6791 esac
6792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6793 # mode. It turns out that the SunPro C++ compiler does not properly
6794 # handle `-M -o', and we need to detect this.
6795 if depmode=$depmode \
6796 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6798 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6799 >/dev/null 2>conftest.err &&
6800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6801 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6803 # icc doesn't choke on unknown options, it will just issue warnings
6804 # or remarks (even with -Werror). So we grep stderr for any message
6805 # that says an option was ignored or not supported.
6806 # When given -MP, icc 7.0 and 7.1 complain thusly:
6807 # icc: Command line warning: ignoring option '-M'; no argument required
6808 # The diagnosis changed in icc 8.0:
6809 # icc: Command line remark: option '-MP' not supported
6810 if (grep 'ignoring option' conftest.err ||
6811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6812 am_cv_$1_dependencies_compiler_type=$depmode
6813 break
6814 fi
6815 fi
6816 done
6817
6818 cd ..
6819 rm -rf conftest.dir
6820 else
6821 am_cv_$1_dependencies_compiler_type=none
6822 fi
6823 ])
6824 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6825 AM_CONDITIONAL([am__fastdep$1], [
6826 test "x$enable_dependency_tracking" != xno \
6827 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6828 ])
6829
6830
6831 # AM_SET_DEPDIR
6832 # -------------
6833 # Choose a directory name for dependency files.
6834 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
6835 AC_DEFUN([AM_SET_DEPDIR],
6836 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6837 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6838 ])
6839
6840
6841 # AM_DEP_TRACK
6842 # ------------
6843 AC_DEFUN([AM_DEP_TRACK],
6844 [AC_ARG_ENABLE(dependency-tracking,
6845 [ --disable-dependency-tracking speeds up one-time build
6846 --enable-dependency-tracking do not reject slow dependency extractors])
6847 if test "x$enable_dependency_tracking" != xno; then
6848 am_depcomp="$ac_aux_dir/depcomp"
6849 AMDEPBACKSLASH='\'
6850 fi
6851 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6852 AC_SUBST([AMDEPBACKSLASH])
6853 ])
6854
6855 # Generate code to set up dependency tracking. -*- Autoconf -*-
6856
6857 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6858 # Free Software Foundation, Inc.
6859 #
6860 # This file is free software; the Free Software Foundation
6861 # gives unlimited permission to copy and/or distribute it,
6862 # with or without modifications, as long as this notice is preserved.
6863
6864 #serial 3
6865
6866 # _AM_OUTPUT_DEPENDENCY_COMMANDS
6867 # ------------------------------
6868 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6869 [for mf in $CONFIG_FILES; do
6870 # Strip MF so we end up with the name of the file.
6871 mf=`echo "$mf" | sed -e 's/:.*$//'`
6872 # Check whether this is an Automake generated Makefile or not.
6873 # We used to match only the files named `Makefile.in', but
6874 # some people rename them; so instead we look at the file content.
6875 # Grep'ing the first line is not enough: some people post-process
6876 # each Makefile.in and add a new line on top of each file to say so.
6877 # So let's grep whole file.
6878 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6879 dirpart=`AS_DIRNAME("$mf")`
6880 else
6881 continue
6882 fi
6883 # Extract the definition of DEPDIR, am__include, and am__quote
6884 # from the Makefile without running `make'.
6885 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6886 test -z "$DEPDIR" && continue
6887 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6888 test -z "am__include" && continue
6889 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6890 # When using ansi2knr, U may be empty or an underscore; expand it
6891 U=`sed -n 's/^U = //p' < "$mf"`
6892 # Find all dependency output files, they are included files with
6893 # $(DEPDIR) in their names. We invoke sed twice because it is the
6894 # simplest approach to changing $(DEPDIR) to its actual value in the
6895 # expansion.
6896 for file in `sed -n "
6897 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6898 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6899 # Make sure the directory exists.
6900 test -f "$dirpart/$file" && continue
6901 fdir=`AS_DIRNAME(["$file"])`
6902 AS_MKDIR_P([$dirpart/$fdir])
6903 # echo "creating $dirpart/$file"
6904 echo '# dummy' > "$dirpart/$file"
6905 done
6906 done
6907 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6908
6909
6910 # AM_OUTPUT_DEPENDENCY_COMMANDS
6911 # -----------------------------
6912 # This macro should only be invoked once -- use via AC_REQUIRE.
6913 #
6914 # This code is only required when automatic dependency tracking
6915 # is enabled. FIXME. This creates each `.P' file that we will
6916 # need in order to bootstrap the dependency handling code.
6917 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6918 [AC_CONFIG_COMMANDS([depfiles],
6919 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6920 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6921 ])
6922
6923 # Do all the work for Automake. -*- Autoconf -*-
6924
6925 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6926 # Free Software Foundation, Inc.
6927 #
6928 # This file is free software; the Free Software Foundation
6929 # gives unlimited permission to copy and/or distribute it,
6930 # with or without modifications, as long as this notice is preserved.
6931
6932 # serial 12
6933
6934 # This macro actually does too much. Some checks are only needed if
6935 # your package does certain things. But this isn't really a big deal.
6936
6937 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6938 # AM_INIT_AUTOMAKE([OPTIONS])
6939 # -----------------------------------------------
6940 # The call with PACKAGE and VERSION arguments is the old style
6941 # call (pre autoconf-2.50), which is being phased out. PACKAGE
6942 # and VERSION should now be passed to AC_INIT and removed from
6943 # the call to AM_INIT_AUTOMAKE.
6944 # We support both call styles for the transition. After
6945 # the next Automake release, Autoconf can make the AC_INIT
6946 # arguments mandatory, and then we can depend on a new Autoconf
6947 # release and drop the old call support.
6948 AC_DEFUN([AM_INIT_AUTOMAKE],
6949 [AC_PREREQ([2.58])dnl
6950 dnl Autoconf wants to disallow AM_ names. We explicitly allow
6951 dnl the ones we care about.
6952 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6953 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6954 AC_REQUIRE([AC_PROG_INSTALL])dnl
6955 # test to see if srcdir already configured
6956 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6957 test -f $srcdir/config.status; then
6958 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6959 fi
6960
6961 # test whether we have cygpath
6962 if test -z "$CYGPATH_W"; then
6963 if (cygpath --version) >/dev/null 2>/dev/null; then
6964 CYGPATH_W='cygpath -w'
6965 else
6966 CYGPATH_W=echo
6967 fi
6968 fi
6969 AC_SUBST([CYGPATH_W])
6970
6971 # Define the identity of the package.
6972 dnl Distinguish between old-style and new-style calls.
6973 m4_ifval([$2],
6974 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6975 AC_SUBST([PACKAGE], [$1])dnl
6976 AC_SUBST([VERSION], [$2])],
6977 [_AM_SET_OPTIONS([$1])dnl
6978 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6979 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6980
6981 _AM_IF_OPTION([no-define],,
6982 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6983 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6984
6985 # Some tools Automake needs.
6986 AC_REQUIRE([AM_SANITY_CHECK])dnl
6987 AC_REQUIRE([AC_ARG_PROGRAM])dnl
6988 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6989 AM_MISSING_PROG(AUTOCONF, autoconf)
6990 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6991 AM_MISSING_PROG(AUTOHEADER, autoheader)
6992 AM_MISSING_PROG(MAKEINFO, makeinfo)
6993 AM_PROG_INSTALL_SH
6994 AM_PROG_INSTALL_STRIP
6995 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6996 # We need awk for the "check" target. The system "awk" is bad on
6997 # some platforms.
6998 AC_REQUIRE([AC_PROG_AWK])dnl
6999 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7000 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7001 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7002 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7003 [_AM_PROG_TAR([v7])])])
7004 _AM_IF_OPTION([no-dependencies],,
7005 [AC_PROVIDE_IFELSE([AC_PROG_CC],
7006 [_AM_DEPENDENCIES(CC)],
7007 [define([AC_PROG_CC],
7008 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7009 AC_PROVIDE_IFELSE([AC_PROG_CXX],
7010 [_AM_DEPENDENCIES(CXX)],
7011 [define([AC_PROG_CXX],
7012 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7013 ])
7014 ])
7015
7016
7017 # When config.status generates a header, we must update the stamp-h file.
7018 # This file resides in the same directory as the config header
7019 # that is generated. The stamp files are numbered to have different names.
7020
7021 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7022 # loop where config.status creates the headers, so we can generate
7023 # our stamp files there.
7024 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7025 [# Compute $1's index in $config_headers.
7026 _am_stamp_count=1
7027 for _am_header in $config_headers :; do
7028 case $_am_header in
7029 $1 | $1:* )
7030 break ;;
7031 * )
7032 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7033 esac
7034 done
7035 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7036
7037 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7038 #
7039 # This file is free software; the Free Software Foundation
7040 # gives unlimited permission to copy and/or distribute it,
7041 # with or without modifications, as long as this notice is preserved.
7042
7043 # AM_PROG_INSTALL_SH
7044 # ------------------
7045 # Define $install_sh.
7046 AC_DEFUN([AM_PROG_INSTALL_SH],
7047 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7048 install_sh=${install_sh-"$am_aux_dir/install-sh"}
7049 AC_SUBST(install_sh)])
7050
7051 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7052 #
7053 # This file is free software; the Free Software Foundation
7054 # gives unlimited permission to copy and/or distribute it,
7055 # with or without modifications, as long as this notice is preserved.
7056
7057 # serial 2
7058
7059 # Check whether the underlying file-system supports filenames
7060 # with a leading dot. For instance MS-DOS doesn't.
7061 AC_DEFUN([AM_SET_LEADING_DOT],
7062 [rm -rf .tst 2>/dev/null
7063 mkdir .tst 2>/dev/null
7064 if test -d .tst; then
7065 am__leading_dot=.
7066 else
7067 am__leading_dot=_
7068 fi
7069 rmdir .tst 2>/dev/null
7070 AC_SUBST([am__leading_dot])])
7071
7072 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
7073 # From Jim Meyering
7074
7075 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7076 # Free Software Foundation, Inc.
7077 #
7078 # This file is free software; the Free Software Foundation
7079 # gives unlimited permission to copy and/or distribute it,
7080 # with or without modifications, as long as this notice is preserved.
7081
7082 # serial 4
7083
7084 AC_DEFUN([AM_MAINTAINER_MODE],
7085 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7086 dnl maintainer-mode is disabled by default
7087 AC_ARG_ENABLE(maintainer-mode,
7088 [ --enable-maintainer-mode enable make rules and dependencies not useful
7089 (and sometimes confusing) to the casual installer],
7090 USE_MAINTAINER_MODE=$enableval,
7091 USE_MAINTAINER_MODE=no)
7092 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7093 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7094 MAINT=$MAINTAINER_MODE_TRUE
7095 AC_SUBST(MAINT)dnl
7096 ]
7097 )
7098
7099 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7100
7101 # Check to see how 'make' treats includes. -*- Autoconf -*-
7102
7103 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7104 #
7105 # This file is free software; the Free Software Foundation
7106 # gives unlimited permission to copy and/or distribute it,
7107 # with or without modifications, as long as this notice is preserved.
7108
7109 # serial 3
7110
7111 # AM_MAKE_INCLUDE()
7112 # -----------------
7113 # Check to see how make treats includes.
7114 AC_DEFUN([AM_MAKE_INCLUDE],
7115 [am_make=${MAKE-make}
7116 cat > confinc << 'END'
7117 am__doit:
7118 @echo done
7119 .PHONY: am__doit
7120 END
7121 # If we don't find an include directive, just comment out the code.
7122 AC_MSG_CHECKING([for style of include used by $am_make])
7123 am__include="#"
7124 am__quote=
7125 _am_result=none
7126 # First try GNU make style include.
7127 echo "include confinc" > confmf
7128 # We grep out `Entering directory' and `Leaving directory'
7129 # messages which can occur if `w' ends up in MAKEFLAGS.
7130 # In particular we don't look at `^make:' because GNU make might
7131 # be invoked under some other name (usually "gmake"), in which
7132 # case it prints its new name instead of `make'.
7133 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7134 am__include=include
7135 am__quote=
7136 _am_result=GNU
7137 fi
7138 # Now try BSD make style include.
7139 if test "$am__include" = "#"; then
7140 echo '.include "confinc"' > confmf
7141 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7142 am__include=.include
7143 am__quote="\""
7144 _am_result=BSD
7145 fi
7146 fi
7147 AC_SUBST([am__include])
7148 AC_SUBST([am__quote])
7149 AC_MSG_RESULT([$_am_result])
7150 rm -f confinc confmf
7151 ])
7152
7153 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7154
7155 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7156 # Free Software Foundation, Inc.
7157 #
7158 # This file is free software; the Free Software Foundation
7159 # gives unlimited permission to copy and/or distribute it,
7160 # with or without modifications, as long as this notice is preserved.
7161
7162 # serial 4
7163
7164 # AM_MISSING_PROG(NAME, PROGRAM)
7165 # ------------------------------
7166 AC_DEFUN([AM_MISSING_PROG],
7167 [AC_REQUIRE([AM_MISSING_HAS_RUN])
7168 $1=${$1-"${am_missing_run}$2"}
7169 AC_SUBST($1)])
7170
7171
7172 # AM_MISSING_HAS_RUN
7173 # ------------------
7174 # Define MISSING if not defined so far and test if it supports --run.
7175 # If it does, set am_missing_run to use it, otherwise, to nothing.
7176 AC_DEFUN([AM_MISSING_HAS_RUN],
7177 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7178 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7179 # Use eval to expand $SHELL
7180 if eval "$MISSING --run true"; then
7181 am_missing_run="$MISSING --run "
7182 else
7183 am_missing_run=
7184 AC_MSG_WARN([`missing' script is too old or missing])
7185 fi
7186 ])
7187
7188 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7189 #
7190 # This file is free software; the Free Software Foundation
7191 # gives unlimited permission to copy and/or distribute it,
7192 # with or without modifications, as long as this notice is preserved.
7193
7194 # AM_PROG_MKDIR_P
7195 # ---------------
7196 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7197 #
7198 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7199 # created by `make install' are always world readable, even if the
7200 # installer happens to have an overly restrictive umask (e.g. 077).
7201 # This was a mistake. There are at least two reasons why we must not
7202 # use `-m 0755':
7203 # - it causes special bits like SGID to be ignored,
7204 # - it may be too restrictive (some setups expect 775 directories).
7205 #
7206 # Do not use -m 0755 and let people choose whatever they expect by
7207 # setting umask.
7208 #
7209 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
7210 # Some implementations (such as Solaris 8's) are not thread-safe: if a
7211 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7212 # concurrently, both version can detect that a/ is missing, but only
7213 # one can create it and the other will error out. Consequently we
7214 # restrict ourselves to GNU make (using the --version option ensures
7215 # this.)
7216 AC_DEFUN([AM_PROG_MKDIR_P],
7217 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7218 # We used to keeping the `.' as first argument, in order to
7219 # allow $(mkdir_p) to be used without argument. As in
7220 # $(mkdir_p) $(somedir)
7221 # where $(somedir) is conditionally defined. However this is wrong
7222 # for two reasons:
7223 # 1. if the package is installed by a user who cannot write `.'
7224 # make install will fail,
7225 # 2. the above comment should most certainly read
7226 # $(mkdir_p) $(DESTDIR)$(somedir)
7227 # so it does not work when $(somedir) is undefined and
7228 # $(DESTDIR) is not.
7229 # To support the latter case, we have to write
7230 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7231 # so the `.' trick is pointless.
7232 mkdir_p='mkdir -p --'
7233 else
7234 # On NextStep and OpenStep, the `mkdir' command does not
7235 # recognize any option. It will interpret all options as
7236 # directories to create, and then abort because `.' already
7237 # exists.
7238 for d in ./-p ./--version;
7239 do
7240 test -d $d && rmdir $d
7241 done
7242 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7243 if test -f "$ac_aux_dir/mkinstalldirs"; then
7244 mkdir_p='$(mkinstalldirs)'
7245 else
7246 mkdir_p='$(install_sh) -d'
7247 fi
7248 fi
7249 AC_SUBST([mkdir_p])])
7250
7251 # Helper functions for option handling. -*- Autoconf -*-
7252
7253 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7254 #
7255 # This file is free software; the Free Software Foundation
7256 # gives unlimited permission to copy and/or distribute it,
7257 # with or without modifications, as long as this notice is preserved.
7258
7259 # serial 3
7260
7261 # _AM_MANGLE_OPTION(NAME)
7262 # -----------------------
7263 AC_DEFUN([_AM_MANGLE_OPTION],
7264 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7265
7266 # _AM_SET_OPTION(NAME)
7267 # ------------------------------
7268 # Set option NAME. Presently that only means defining a flag for this option.
7269 AC_DEFUN([_AM_SET_OPTION],
7270 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7271
7272 # _AM_SET_OPTIONS(OPTIONS)
7273 # ----------------------------------
7274 # OPTIONS is a space-separated list of Automake options.
7275 AC_DEFUN([_AM_SET_OPTIONS],
7276 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7277
7278 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7279 # -------------------------------------------
7280 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7281 AC_DEFUN([_AM_IF_OPTION],
7282 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7283
7284 # Check to make sure that the build environment is sane. -*- Autoconf -*-
7285
7286 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7287 # Free Software Foundation, Inc.
7288 #
7289 # This file is free software; the Free Software Foundation
7290 # gives unlimited permission to copy and/or distribute it,
7291 # with or without modifications, as long as this notice is preserved.
7292
7293 # serial 4
7294
7295 # AM_SANITY_CHECK
7296 # ---------------
7297 AC_DEFUN([AM_SANITY_CHECK],
7298 [AC_MSG_CHECKING([whether build environment is sane])
7299 # Just in case
7300 sleep 1
7301 echo timestamp > conftest.file
7302 # Do `set' in a subshell so we don't clobber the current shell's
7303 # arguments. Must try -L first in case configure is actually a
7304 # symlink; some systems play weird games with the mod time of symlinks
7305 # (eg FreeBSD returns the mod time of the symlink's containing
7306 # directory).
7307 if (
7308 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7309 if test "$[*]" = "X"; then
7310 # -L didn't work.
7311 set X `ls -t $srcdir/configure conftest.file`
7312 fi
7313 rm -f conftest.file
7314 if test "$[*]" != "X $srcdir/configure conftest.file" \
7315 && test "$[*]" != "X conftest.file $srcdir/configure"; then
7316
7317 # If neither matched, then we have a broken ls. This can happen
7318 # if, for instance, CONFIG_SHELL is bash and it inherits a
7319 # broken ls alias from the environment. This has actually
7320 # happened. Such a system could not be considered "sane".
7321 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7322 alias in your environment])
7323 fi
7324
7325 test "$[2]" = conftest.file
7326 )
7327 then
7328 # Ok.
7329 :
7330 else
7331 AC_MSG_ERROR([newly created file is older than distributed files!
7332 Check your system clock])
7333 fi
7334 AC_MSG_RESULT(yes)])
7335
7336 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7337 #
7338 # This file is free software; the Free Software Foundation
7339 # gives unlimited permission to copy and/or distribute it,
7340 # with or without modifications, as long as this notice is preserved.
7341
7342 # AM_PROG_INSTALL_STRIP
7343 # ---------------------
7344 # One issue with vendor `install' (even GNU) is that you can't
7345 # specify the program used to strip binaries. This is especially
7346 # annoying in cross-compiling environments, where the build's strip
7347 # is unlikely to handle the host's binaries.
7348 # Fortunately install-sh will honor a STRIPPROG variable, so we
7349 # always use install-sh in `make install-strip', and initialize
7350 # STRIPPROG with the value of the STRIP variable (set by the user).
7351 AC_DEFUN([AM_PROG_INSTALL_STRIP],
7352 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7353 # Installed binaries are usually stripped using `strip' when the user
7354 # run `make install-strip'. However `strip' might not be the right
7355 # tool to use in cross-compilation environments, therefore Automake
7356 # will honor the `STRIP' environment variable to overrule this program.
7357 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7358 if test "$cross_compiling" != no; then
7359 AC_CHECK_TOOL([STRIP], [strip], :)
7360 fi
7361 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7362 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7363
7364 # Check how to create a tarball. -*- Autoconf -*-
7365
7366 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7367 #
7368 # This file is free software; the Free Software Foundation
7369 # gives unlimited permission to copy and/or distribute it,
7370 # with or without modifications, as long as this notice is preserved.
7371
7372 # serial 2
7373
7374 # _AM_PROG_TAR(FORMAT)
7375 # --------------------
7376 # Check how to create a tarball in format FORMAT.
7377 # FORMAT should be one of `v7', `ustar', or `pax'.
7378 #
7379 # Substitute a variable $(am__tar) that is a command
7380 # writing to stdout a FORMAT-tarball containing the directory
7381 # $tardir.
7382 # tardir=directory && $(am__tar) > result.tar
7383 #
7384 # Substitute a variable $(am__untar) that extract such
7385 # a tarball read from stdin.
7386 # $(am__untar) < result.tar
7387 AC_DEFUN([_AM_PROG_TAR],
7388 [# Always define AMTAR for backward compatibility.
7389 AM_MISSING_PROG([AMTAR], [tar])
7390 m4_if([$1], [v7],
7391 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7392 [m4_case([$1], [ustar],, [pax],,
7393 [m4_fatal([Unknown tar format])])
7394 AC_MSG_CHECKING([how to create a $1 tar archive])
7395 # Loop over all known methods to create a tar archive until one works.
7396 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7397 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
7398 # Do not fold the above two line into one, because Tru64 sh and
7399 # Solaris sh will not grok spaces in the rhs of `-'.
7400 for _am_tool in $_am_tools
7401 do
7402 case $_am_tool in
7403 gnutar)
7404 for _am_tar in tar gnutar gtar;
7405 do
7406 AM_RUN_LOG([$_am_tar --version]) && break
7407 done
7408 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7409 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7410 am__untar="$_am_tar -xf -"
7411 ;;
7412 plaintar)
7413 # Must skip GNU tar: if it does not support --format= it doesn't create
7414 # ustar tarball either.
7415 (tar --version) >/dev/null 2>&1 && continue
7416 am__tar='tar chf - "$$tardir"'
7417 am__tar_='tar chf - "$tardir"'
7418 am__untar='tar xf -'
7419 ;;
7420 pax)
7421 am__tar='pax -L -x $1 -w "$$tardir"'
7422 am__tar_='pax -L -x $1 -w "$tardir"'
7423 am__untar='pax -r'
7424 ;;
7425 cpio)
7426 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7427 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7428 am__untar='cpio -i -H $1 -d'
7429 ;;
7430 none)
7431 am__tar=false
7432 am__tar_=false
7433 am__untar=false
7434 ;;
7435 esac
7436
7437 # If the value was cached, stop now. We just wanted to have am__tar
7438 # and am__untar set.
7439 test -n "${am_cv_prog_tar_$1}" && break
7440
7441 # tar/untar a dummy directory, and stop if the command works
7442 rm -rf conftest.dir
7443 mkdir conftest.dir
7444 echo GrepMe > conftest.dir/file
7445 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7446 rm -rf conftest.dir
7447 if test -s conftest.tar; then
7448 AM_RUN_LOG([$am__untar <conftest.tar])
7449 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7450 fi
7451 done
7452 rm -rf conftest.dir
7453
7454 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7455 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7456 AC_SUBST([am__tar])
7457 AC_SUBST([am__untar])
7458 ]) # _AM_PROG_TAR
7459
7460 m4_include([m4/gettext.m4])
7461 m4_include([m4/iconv.m4])
7462 m4_include([m4/intlmacosx.m4])
7463 m4_include([m4/lib-ld.m4])
7464 m4_include([m4/lib-link.m4])
7465 m4_include([m4/lib-prefix.m4])
7466 m4_include([m4/nls.m4])
7467 m4_include([m4/po.m4])
7468 m4_include([m4/progtest.m4])
+0
-1
current/bindings/Makefile.am less more
0 SUBDIRS = python perl pascal ruby php
+0
-530
current/bindings/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
53 html-recursive info-recursive install-data-recursive \
54 install-exec-recursive install-info-recursive \
55 install-recursive installcheck-recursive installdirs-recursive \
56 pdf-recursive ps-recursive uninstall-info-recursive \
57 uninstall-recursive
58 ETAGS = etags
59 CTAGS = ctags
60 DIST_SUBDIRS = $(SUBDIRS)
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMDEP_FALSE = @AMDEP_FALSE@
64 AMDEP_TRUE = @AMDEP_TRUE@
65 AMTAR = @AMTAR@
66 AR = @AR@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 CPP = @CPP@
75 CPPFLAGS = @CPPFLAGS@
76 CXX = @CXX@
77 CXXCPP = @CXXCPP@
78 CXXDEPMODE = @CXXDEPMODE@
79 CXXFLAGS = @CXXFLAGS@
80 CYGPATH_W = @CYGPATH_W@
81 DATADIRNAME = @DATADIRNAME@
82 DEFS = @DEFS@
83 DEPDIR = @DEPDIR@
84 ECHO = @ECHO@
85 ECHO_C = @ECHO_C@
86 ECHO_N = @ECHO_N@
87 ECHO_T = @ECHO_T@
88 EGREP = @EGREP@
89 EXEEXT = @EXEEXT@
90 F77 = @F77@
91 FFLAGS = @FFLAGS@
92 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
93 GMSGFMT = @GMSGFMT@
94 GMSGFMT_015 = @GMSGFMT_015@
95 GREP = @GREP@
96 INSTALL_DATA = @INSTALL_DATA@
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
98 INSTALL_SCRIPT = @INSTALL_SCRIPT@
99 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
100 INTLLIBS = @INTLLIBS@
101 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
102 LDFLAGS = @LDFLAGS@
103 LIBICONV = @LIBICONV@
104 LIBINTL = @LIBINTL@
105 LIBOBJS = @LIBOBJS@
106 LIBS = @LIBS@
107 LIBTOOL = @LIBTOOL@
108 LN_S = @LN_S@
109 LTLIBICONV = @LTLIBICONV@
110 LTLIBINTL = @LTLIBINTL@
111 LTLIBOBJS = @LTLIBOBJS@
112 MAINT = @MAINT@
113 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
114 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
115 MAKEINFO = @MAKEINFO@
116 MSGFMT = @MSGFMT@
117 MSGFMT_015 = @MSGFMT_015@
118 MSGMERGE = @MSGMERGE@
119 OBJEXT = @OBJEXT@
120 PACKAGE = @PACKAGE@
121 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
122 PACKAGE_NAME = @PACKAGE_NAME@
123 PACKAGE_STRING = @PACKAGE_STRING@
124 PACKAGE_TARNAME = @PACKAGE_TARNAME@
125 PACKAGE_VERSION = @PACKAGE_VERSION@
126 PATH_SEPARATOR = @PATH_SEPARATOR@
127 PA_MODULES_PATH = @PA_MODULES_PATH@
128 PA_VERSION = @PA_VERSION@
129 PE_CFLAGS = @PE_CFLAGS@
130 PE_MODULES_PATH = @PE_MODULES_PATH@
131 PH_CONFIG_PATH = @PH_CONFIG_PATH@
132 PH_MODULES_PATH = @PH_MODULES_PATH@
133 PKG_CONFIG = @PKG_CONFIG@
134 POSUB = @POSUB@
135 PY_CFLAGS = @PY_CFLAGS@
136 PY_MODULES_PATH = @PY_MODULES_PATH@
137 PY_VERSION = @PY_VERSION@
138 RANLIB = @RANLIB@
139 RU_CFLAGS = @RU_CFLAGS@
140 RU_MODULES_PATH = @RU_MODULES_PATH@
141 RU_VERSION = @RU_VERSION@
142 SED = @SED@
143 SET_MAKE = @SET_MAKE@
144 SHELL = @SHELL@
145 STRIP = @STRIP@
146 USE_NLS = @USE_NLS@
147 VERSION = @VERSION@
148 VERSION_INFO = @VERSION_INFO@
149 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
150 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
151 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
152 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
153 WITH_PERL_FALSE = @WITH_PERL_FALSE@
154 WITH_PERL_TRUE = @WITH_PERL_TRUE@
155 WITH_PHP_FALSE = @WITH_PHP_FALSE@
156 WITH_PHP_TRUE = @WITH_PHP_TRUE@
157 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
158 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
159 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
160 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
161 XGETTEXT = @XGETTEXT@
162 XGETTEXT_015 = @XGETTEXT_015@
163 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
164 ac_ct_CC = @ac_ct_CC@
165 ac_ct_CXX = @ac_ct_CXX@
166 ac_ct_F77 = @ac_ct_F77@
167 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
168 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
169 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
170 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
171 am__include = @am__include@
172 am__leading_dot = @am__leading_dot@
173 am__quote = @am__quote@
174 am__tar = @am__tar@
175 am__untar = @am__untar@
176 bindir = @bindir@
177 build = @build@
178 build_alias = @build_alias@
179 build_cpu = @build_cpu@
180 build_os = @build_os@
181 build_vendor = @build_vendor@
182 datadir = @datadir@
183 datarootdir = @datarootdir@
184 docdir = @docdir@
185 dvidir = @dvidir@
186 exec_prefix = @exec_prefix@
187 have_pascal = @have_pascal@
188 have_perl = @have_perl@
189 have_php = @have_php@
190 have_php_config = @have_php_config@
191 have_python = @have_python@
192 have_ruby = @have_ruby@
193 have_swig = @have_swig@
194 host = @host@
195 host_alias = @host_alias@
196 host_cpu = @host_cpu@
197 host_os = @host_os@
198 host_vendor = @host_vendor@
199 htmldir = @htmldir@
200 includedir = @includedir@
201 infodir = @infodir@
202 install_sh = @install_sh@
203 libdir = @libdir@
204 libexecdir = @libexecdir@
205 localedir = @localedir@
206 localstatedir = @localstatedir@
207 mandir = @mandir@
208 mkdir_p = @mkdir_p@
209 oldincludedir = @oldincludedir@
210 pdfdir = @pdfdir@
211 prefix = @prefix@
212 program_transform_name = @program_transform_name@
213 psdir = @psdir@
214 sbindir = @sbindir@
215 sharedstatedir = @sharedstatedir@
216 sysconfdir = @sysconfdir@
217 target_alias = @target_alias@
218 SUBDIRS = python perl pascal ruby php
219 all: all-recursive
220
221 .SUFFIXES:
222 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
223 @for dep in $?; do \
224 case '$(am__configure_deps)' in \
225 *$$dep*) \
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
227 && exit 0; \
228 exit 1;; \
229 esac; \
230 done; \
231 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/Makefile'; \
232 cd $(top_srcdir) && \
233 $(AUTOMAKE) --gnu bindings/Makefile
234 .PRECIOUS: Makefile
235 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
236 @case '$?' in \
237 *config.status*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
239 *) \
240 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
241 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
242 esac;
243
244 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
246
247 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
251
252 mostlyclean-libtool:
253 -rm -f *.lo
254
255 clean-libtool:
256 -rm -rf .libs _libs
257
258 distclean-libtool:
259 -rm -f libtool
260 uninstall-info-am:
261
262 # This directory's subdirectories are mostly independent; you can cd
263 # into them and run `make' without going through this Makefile.
264 # To change the values of `make' variables: instead of editing Makefiles,
265 # (1) if the variable is set in `config.status', edit `config.status'
266 # (which will cause the Makefiles to be regenerated when you run `make');
267 # (2) otherwise, pass the desired values on the `make' command line.
268 $(RECURSIVE_TARGETS):
269 @failcom='exit 1'; \
270 for f in x $$MAKEFLAGS; do \
271 case $$f in \
272 *=* | --[!k]*);; \
273 *k*) failcom='fail=yes';; \
274 esac; \
275 done; \
276 dot_seen=no; \
277 target=`echo $@ | sed s/-recursive//`; \
278 list='$(SUBDIRS)'; for subdir in $$list; do \
279 echo "Making $$target in $$subdir"; \
280 if test "$$subdir" = "."; then \
281 dot_seen=yes; \
282 local_target="$$target-am"; \
283 else \
284 local_target="$$target"; \
285 fi; \
286 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
287 || eval $$failcom; \
288 done; \
289 if test "$$dot_seen" = "no"; then \
290 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
291 fi; test -z "$$fail"
292
293 mostlyclean-recursive clean-recursive distclean-recursive \
294 maintainer-clean-recursive:
295 @failcom='exit 1'; \
296 for f in x $$MAKEFLAGS; do \
297 case $$f in \
298 *=* | --[!k]*);; \
299 *k*) failcom='fail=yes';; \
300 esac; \
301 done; \
302 dot_seen=no; \
303 case "$@" in \
304 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
305 *) list='$(SUBDIRS)' ;; \
306 esac; \
307 rev=''; for subdir in $$list; do \
308 if test "$$subdir" = "."; then :; else \
309 rev="$$subdir $$rev"; \
310 fi; \
311 done; \
312 rev="$$rev ."; \
313 target=`echo $@ | sed s/-recursive//`; \
314 for subdir in $$rev; do \
315 echo "Making $$target in $$subdir"; \
316 if test "$$subdir" = "."; then \
317 local_target="$$target-am"; \
318 else \
319 local_target="$$target"; \
320 fi; \
321 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
322 || eval $$failcom; \
323 done && test -z "$$fail"
324 tags-recursive:
325 list='$(SUBDIRS)'; for subdir in $$list; do \
326 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
327 done
328 ctags-recursive:
329 list='$(SUBDIRS)'; for subdir in $$list; do \
330 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
331 done
332
333 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) ' { files[$$0] = 1; } \
339 END { for (i in files) print i; }'`; \
340 mkid -fID $$unique
341 tags: TAGS
342
343 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
348 include_option=--etags-include; \
349 empty_fix=.; \
350 else \
351 include_option=--include; \
352 empty_fix=; \
353 fi; \
354 list='$(SUBDIRS)'; for subdir in $$list; do \
355 if test "$$subdir" = .; then :; else \
356 test ! -f $$subdir/TAGS || \
357 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
358 fi; \
359 done; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) ' { files[$$0] = 1; } \
365 END { for (i in files) print i; }'`; \
366 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
367 test -n "$$unique" || unique=$$empty_fix; \
368 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
369 $$tags $$unique; \
370 fi
371 ctags: CTAGS
372 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
373 $(TAGS_FILES) $(LISP)
374 tags=; \
375 here=`pwd`; \
376 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
377 unique=`for i in $$list; do \
378 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379 done | \
380 $(AWK) ' { files[$$0] = 1; } \
381 END { for (i in files) print i; }'`; \
382 test -z "$(CTAGS_ARGS)$$tags$$unique" \
383 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
384 $$tags $$unique
385
386 GTAGS:
387 here=`$(am__cd) $(top_builddir) && pwd` \
388 && cd $(top_srcdir) \
389 && gtags -i $(GTAGS_ARGS) $$here
390
391 distclean-tags:
392 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
393
394 distdir: $(DISTFILES)
395 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
396 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
397 list='$(DISTFILES)'; for file in $$list; do \
398 case $$file in \
399 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
400 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
401 esac; \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
404 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
405 dir="/$$dir"; \
406 $(mkdir_p) "$(distdir)$$dir"; \
407 else \
408 dir=''; \
409 fi; \
410 if test -d $$d/$$file; then \
411 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
412 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
413 fi; \
414 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
415 else \
416 test -f $(distdir)/$$file \
417 || cp -p $$d/$$file $(distdir)/$$file \
418 || exit 1; \
419 fi; \
420 done
421 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
422 if test "$$subdir" = .; then :; else \
423 test -d "$(distdir)/$$subdir" \
424 || $(mkdir_p) "$(distdir)/$$subdir" \
425 || exit 1; \
426 distdir=`$(am__cd) $(distdir) && pwd`; \
427 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
428 (cd $$subdir && \
429 $(MAKE) $(AM_MAKEFLAGS) \
430 top_distdir="$$top_distdir" \
431 distdir="$$distdir/$$subdir" \
432 distdir) \
433 || exit 1; \
434 fi; \
435 done
436 check-am: all-am
437 check: check-recursive
438 all-am: Makefile
439 installdirs: installdirs-recursive
440 installdirs-am:
441 install: install-recursive
442 install-exec: install-exec-recursive
443 install-data: install-data-recursive
444 uninstall: uninstall-recursive
445
446 install-am: all-am
447 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
448
449 installcheck: installcheck-recursive
450 install-strip:
451 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
452 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
453 `test -z '$(STRIP)' || \
454 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
455 mostlyclean-generic:
456
457 clean-generic:
458
459 distclean-generic:
460 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
461
462 maintainer-clean-generic:
463 @echo "This command is intended for maintainers to use"
464 @echo "it deletes files that may require special tools to rebuild."
465 clean: clean-recursive
466
467 clean-am: clean-generic clean-libtool mostlyclean-am
468
469 distclean: distclean-recursive
470 -rm -f Makefile
471 distclean-am: clean-am distclean-generic distclean-libtool \
472 distclean-tags
473
474 dvi: dvi-recursive
475
476 dvi-am:
477
478 html: html-recursive
479
480 info: info-recursive
481
482 info-am:
483
484 install-data-am:
485
486 install-exec-am:
487
488 install-info: install-info-recursive
489
490 install-man:
491
492 installcheck-am:
493
494 maintainer-clean: maintainer-clean-recursive
495 -rm -f Makefile
496 maintainer-clean-am: distclean-am maintainer-clean-generic
497
498 mostlyclean: mostlyclean-recursive
499
500 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
501
502 pdf: pdf-recursive
503
504 pdf-am:
505
506 ps: ps-recursive
507
508 ps-am:
509
510 uninstall-am: uninstall-info-am
511
512 uninstall-info: uninstall-info-recursive
513
514 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
515 clean clean-generic clean-libtool clean-recursive ctags \
516 ctags-recursive distclean distclean-generic distclean-libtool \
517 distclean-recursive distclean-tags distdir dvi dvi-am html \
518 html-am info info-am install install-am install-data \
519 install-data-am install-exec install-exec-am install-info \
520 install-info-am install-man install-strip installcheck \
521 installcheck-am installdirs installdirs-am maintainer-clean \
522 maintainer-clean-generic maintainer-clean-recursive \
523 mostlyclean mostlyclean-generic mostlyclean-libtool \
524 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
525 uninstall uninstall-am uninstall-info-am
526
527 # Tell versions [3.59,3.63) of GNU make to not export all variables.
528 # Otherwise a system limit (for SysV at least) may be exceeded.
529 .NOEXPORT:
+0
-26
current/bindings/pascal/Makefile.am less more
0
1 EXTRA_DIST = Package.fpc hdate.pp hdate_dyn_pascal.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_dyn_pascal.o
10
11 hdate.o: hdate.pp
12 fpc hdate.pp
13
14 hdate_dyn_pascal.o: hdate_dyn_pascal.pp hdate.o
15 fpc hdate_dyn_pascal.pp
16
17 install-data-local:hdate_dyn_pascal.o hdate.o
18 $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
19 $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
20 $(INSTALL_DATA) hdate_dyn_pascal.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.o
21 $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
22 $(INSTALL_DATA) hdate_dyn_pascal.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.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
-394
current/bindings/pascal/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings/pascal
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
53 ACLOCAL = @ACLOCAL@
54 AMDEP_FALSE = @AMDEP_FALSE@
55 AMDEP_TRUE = @AMDEP_TRUE@
56 AMTAR = @AMTAR@
57 AR = @AR@
58 AUTOCONF = @AUTOCONF@
59 AUTOHEADER = @AUTOHEADER@
60 AUTOMAKE = @AUTOMAKE@
61 AWK = @AWK@
62 CC = @CC@
63 CCDEPMODE = @CCDEPMODE@
64 CFLAGS = @CFLAGS@
65 CPP = @CPP@
66 CPPFLAGS = @CPPFLAGS@
67 CXX = @CXX@
68 CXXCPP = @CXXCPP@
69 CXXDEPMODE = @CXXDEPMODE@
70 CXXFLAGS = @CXXFLAGS@
71 CYGPATH_W = @CYGPATH_W@
72 DATADIRNAME = @DATADIRNAME@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 ECHO = @ECHO@
76 ECHO_C = @ECHO_C@
77 ECHO_N = @ECHO_N@
78 ECHO_T = @ECHO_T@
79 EGREP = @EGREP@
80 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
83 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
84 GMSGFMT = @GMSGFMT@
85 GMSGFMT_015 = @GMSGFMT_015@
86 GREP = @GREP@
87 INSTALL_DATA = @INSTALL_DATA@
88 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89 INSTALL_SCRIPT = @INSTALL_SCRIPT@
90 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91 INTLLIBS = @INTLLIBS@
92 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
93 LDFLAGS = @LDFLAGS@
94 LIBICONV = @LIBICONV@
95 LIBINTL = @LIBINTL@
96 LIBOBJS = @LIBOBJS@
97 LIBS = @LIBS@
98 LIBTOOL = @LIBTOOL@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
105 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
106 MAKEINFO = @MAKEINFO@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 OBJEXT = @OBJEXT@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PA_MODULES_PATH = @PA_MODULES_PATH@
119 PA_VERSION = @PA_VERSION@
120 PE_CFLAGS = @PE_CFLAGS@
121 PE_MODULES_PATH = @PE_MODULES_PATH@
122 PH_CONFIG_PATH = @PH_CONFIG_PATH@
123 PH_MODULES_PATH = @PH_MODULES_PATH@
124 PKG_CONFIG = @PKG_CONFIG@
125 POSUB = @POSUB@
126 PY_CFLAGS = @PY_CFLAGS@
127 PY_MODULES_PATH = @PY_MODULES_PATH@
128 PY_VERSION = @PY_VERSION@
129 RANLIB = @RANLIB@
130 RU_CFLAGS = @RU_CFLAGS@
131 RU_MODULES_PATH = @RU_MODULES_PATH@
132 RU_VERSION = @RU_VERSION@
133 SED = @SED@
134 SET_MAKE = @SET_MAKE@
135 SHELL = @SHELL@
136 STRIP = @STRIP@
137 USE_NLS = @USE_NLS@
138 VERSION = @VERSION@
139 VERSION_INFO = @VERSION_INFO@
140 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
141 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
142 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
143 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
144 WITH_PERL_FALSE = @WITH_PERL_FALSE@
145 WITH_PERL_TRUE = @WITH_PERL_TRUE@
146 WITH_PHP_FALSE = @WITH_PHP_FALSE@
147 WITH_PHP_TRUE = @WITH_PHP_TRUE@
148 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
149 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
150 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
151 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
152 XGETTEXT = @XGETTEXT@
153 XGETTEXT_015 = @XGETTEXT_015@
154 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_CXX = @ac_ct_CXX@
157 ac_ct_F77 = @ac_ct_F77@
158 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
159 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
160 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
161 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
162 am__include = @am__include@
163 am__leading_dot = @am__leading_dot@
164 am__quote = @am__quote@
165 am__tar = @am__tar@
166 am__untar = @am__untar@
167 bindir = @bindir@
168 build = @build@
169 build_alias = @build_alias@
170 build_cpu = @build_cpu@
171 build_os = @build_os@
172 build_vendor = @build_vendor@
173 datadir = @datadir@
174 datarootdir = @datarootdir@
175 docdir = @docdir@
176 dvidir = @dvidir@
177 exec_prefix = @exec_prefix@
178 have_pascal = @have_pascal@
179 have_perl = @have_perl@
180 have_php = @have_php@
181 have_php_config = @have_php_config@
182 have_python = @have_python@
183 have_ruby = @have_ruby@
184 have_swig = @have_swig@
185 host = @host@
186 host_alias = @host_alias@
187 host_cpu = @host_cpu@
188 host_os = @host_os@
189 host_vendor = @host_vendor@
190 htmldir = @htmldir@
191 includedir = @includedir@
192 infodir = @infodir@
193 install_sh = @install_sh@
194 libdir = @libdir@
195 libexecdir = @libexecdir@
196 localedir = @localedir@
197 localstatedir = @localstatedir@
198 mandir = @mandir@
199 mkdir_p = @mkdir_p@
200 oldincludedir = @oldincludedir@
201 pdfdir = @pdfdir@
202 prefix = @prefix@
203 program_transform_name = @program_transform_name@
204 psdir = @psdir@
205 sbindir = @sbindir@
206 sharedstatedir = @sharedstatedir@
207 sysconfdir = @sysconfdir@
208 target_alias = @target_alias@
209 EXTRA_DIST = Package.fpc hdate.pp hdate_dyn_pascal.pp fpc_README changelog
210 @WITH_PASCAL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
211 @WITH_PASCAL_TRUE@CLEANFILES = *.o *.ppu
212 all: all-am
213
214 .SUFFIXES:
215 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
216 @for dep in $?; do \
217 case '$(am__configure_deps)' in \
218 *$$dep*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
220 && exit 0; \
221 exit 1;; \
222 esac; \
223 done; \
224 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/pascal/Makefile'; \
225 cd $(top_srcdir) && \
226 $(AUTOMAKE) --gnu bindings/pascal/Makefile
227 .PRECIOUS: Makefile
228 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
229 @case '$?' in \
230 *config.status*) \
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
232 *) \
233 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
234 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
235 esac;
236
237 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239
240 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
242 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244
245 mostlyclean-libtool:
246 -rm -f *.lo
247
248 clean-libtool:
249 -rm -rf .libs _libs
250
251 distclean-libtool:
252 -rm -f libtool
253 uninstall-info-am:
254 tags: TAGS
255 TAGS:
256
257 ctags: CTAGS
258 CTAGS:
259
260
261 distdir: $(DISTFILES)
262 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
263 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
264 list='$(DISTFILES)'; for file in $$list; do \
265 case $$file in \
266 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
267 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
268 esac; \
269 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
270 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
271 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
272 dir="/$$dir"; \
273 $(mkdir_p) "$(distdir)$$dir"; \
274 else \
275 dir=''; \
276 fi; \
277 if test -d $$d/$$file; then \
278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
279 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
280 fi; \
281 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
282 else \
283 test -f $(distdir)/$$file \
284 || cp -p $$d/$$file $(distdir)/$$file \
285 || exit 1; \
286 fi; \
287 done
288 check-am: all-am
289 check: check-am
290 all-am: Makefile
291 installdirs:
292 install: install-am
293 install-exec: install-exec-am
294 install-data: install-data-am
295 uninstall: uninstall-am
296
297 install-am: all-am
298 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
299
300 installcheck: installcheck-am
301 install-strip:
302 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
303 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
304 `test -z '$(STRIP)' || \
305 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
306 mostlyclean-generic:
307
308 clean-generic:
309 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
310
311 distclean-generic:
312 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
313
314 maintainer-clean-generic:
315 @echo "This command is intended for maintainers to use"
316 @echo "it deletes files that may require special tools to rebuild."
317 @WITH_PASCAL_FALSE@install-data-local:
318 clean: clean-am
319
320 clean-am: clean-generic clean-libtool mostlyclean-am
321
322 distclean: distclean-am
323 -rm -f Makefile
324 distclean-am: clean-am distclean-generic distclean-libtool
325
326 dvi: dvi-am
327
328 dvi-am:
329
330 html: html-am
331
332 info: info-am
333
334 info-am:
335
336 install-data-am: install-data-local
337
338 install-exec-am:
339
340 install-info: install-info-am
341
342 install-man:
343
344 installcheck-am:
345
346 maintainer-clean: maintainer-clean-am
347 -rm -f Makefile
348 maintainer-clean-am: distclean-am maintainer-clean-generic
349
350 mostlyclean: mostlyclean-am
351
352 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
353
354 pdf: pdf-am
355
356 pdf-am:
357
358 ps: ps-am
359
360 ps-am:
361
362 uninstall-am: uninstall-info-am
363
364 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
365 distclean distclean-generic distclean-libtool distdir dvi \
366 dvi-am html html-am info info-am install install-am \
367 install-data install-data-am install-data-local install-exec \
368 install-exec-am install-info install-info-am install-man \
369 install-strip installcheck installcheck-am installdirs \
370 maintainer-clean maintainer-clean-generic mostlyclean \
371 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
372 uninstall uninstall-am uninstall-info-am
373
374
375 @WITH_PASCAL_TRUE@all-am: hdate.o hdate_dyn_pascal.o
376
377 @WITH_PASCAL_TRUE@hdate.o: hdate.pp
378 @WITH_PASCAL_TRUE@ fpc hdate.pp
379
380 @WITH_PASCAL_TRUE@hdate_dyn_pascal.o: hdate_dyn_pascal.pp hdate.o
381 @WITH_PASCAL_TRUE@ fpc hdate_dyn_pascal.pp
382
383 @WITH_PASCAL_TRUE@install-data-local:hdate_dyn_pascal.o hdate.o
384 @WITH_PASCAL_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
385 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
386 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate_dyn_pascal.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.o
387 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
388 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate_dyn_pascal.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.ppu
389 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
390 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
391 # Tell versions [3.59,3.63) of GNU make to not export all variables.
392 # Otherwise a system limit (for SysV at least) may be exceeded.
393 .NOEXPORT:
+0
-12
current/bindings/pascal/Package.fpc less more
0 [package]
1 name=hdate
2 version=1.4.11
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
-30
current/bindings/pascal/changelog less more
0 25/01/2008
1 - Moved the class implementation to examples/binding
2 - Added better support for FPDoc
3 - Changed the demo for the class usage
4
5 11-12/01/2008
6 - Added support for newer API functions added at 1.3
7 - Added support for dynamic loading for the API.
8 - Added dynamic loading capabilities to the examples.
9 - Moved to GPL 3
10
11 25/11/2005
12 - Added some constants and fixed comments according the orginal API file
13
14 25/11/2005
15 - Added some constants and fixed comments according the orginal API file
16
17 27/05/2005
18 - Created a Changelog.
19
20 19-21/05/2005
21 - hdate_class.pp was created.
22 - Made changes for Free Pascal 2 support on with the units.
23
24 13/03/2005
25 - Bug fix in hdate.pp - Added {$PACKRECORDS C}
26
27 10-11/03/2005
28 - hdate.pp was created.
29 - hdate_obj.pp was created.
+0
-68
current/bindings/pascal/fpc_README less more
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 <kzamir@walla.co.il> and can be found at http://libhdate.sourceforge.net/ .
8
9 The current version of LibHDate is 1.4.10 and contains a Free Pascal binding only that was written by Ido Kanner <idokan@gmail.com>.
10
11 Existed Files:
12 /bindings/pascal/fpc_README - This file.
13
14 COPYING - A copy of the GPL license.
15
16 examples/bindings/pascal/hdate_obj.pp - An Object Oriented implementation for the hdate.pp API.
17 examples/bindings/pascal/hdate_obj_demo.pp - An example for the use of the Object Oriented unit.
18 examples/bindings/pascal/hdate_class.pp - A self made Object Oriented implementation for the LibHdate API.
19
20 bindings/pascal/
21 bindings/pascal/hdate.pp - The main low level API of LibHdate binding.
22 bindings/pascal/hdate_dyn_pascal.pp - A dynamic linking library.
23
24
25 Compiling
26 =========
27
28 The ctypes.pp unit was taken from FPC 1.9.8 version and was modified to contain also some floating point C equivalent.
29 The FPC version 2.0 have the floating points definition. If you are using FPC version 2.0 or above please remove the unit.
30
31 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 the units globally with all of your applications.
32
33 It is recommanded to use FPC 2.2.0 or above for the newer version of this library.
34
35 =========================================================================
36 the old README from version 1.1.1
37 =========================================================================
38
39 About
40 =====
41
42 LibHdate is a small C,C++ library for Hebrew calendar and dates, holidays, and reading sequence (parasha).
43 It is using the sorce code from Amos Shapir's hdate package fixed and patched by Nadav Har'El.
44 The Torah reading sequence is from tables by Zvi Har'El.
45
46 The LibHdate is GPL library written by Kobi Zamir <kzamir@walla.co.il> and can be found at http://libhdate.sourceforge.net/ .
47
48 This version of LibHDate contains a FreePascal binding that was written by Ido Kanner <idokan@gmail.com>.
49
50 Existed Files:
51 fpc_README - This file.
52 src/ctypes.pp - A unit for making C like integer and floating points variable type.
53 src/hdate.pp - The main low level API of LibHdate binding.
54 src/hdate_obj.pp - An Object Oriented implementation for the hdate.pp API.
55 src/hdate_obj_demo.pp - An example for the use of the Object Oriented unit.
56 src/hcal.pp - An example for the use of the low level API.
57
58 Compiling
59 =========
60
61 The ctypes.pp unit was taken from FPC 1.9.8 version and was modified to contain also some floating point C equivalent.
62 I hope that version 2.0 will contains them as well, if not please keep this unit, otherwise feel free to remove it.
63
64 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
65 the units globally with all of your applications.
66
67
+0
-556
current/bindings/pascal/hdate.pp less more
0 (* libhdate
1
2 Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
3 Copyright (C) 2005-2008 Ido Kanner <idokan@gmail.com>
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 of the License, or
8 (at your option) 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 Library 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, Boston, MA 02111-1307, USA.
18
19 History:
20 11/01/2008 - Added support for 1.3 API and cleaned the calling.
21 25/11/2005 - Added some constants and fixed comments according the orginal API file
22 13/03/2005 - Bug Fixed Added {$PACKRECORDS C}
23 10-11/03/2005 - Initial Translation of version 0.31.0
24 *)
25 {$MODE FPC}{$PACKRECORDS C}
26 {$LINKLIB hdate}
27
28 unit hdate;
29
30 interface
31 uses cTypes;
32
33 const
34 // the global name of the hdate library: <b>DEPERCATED</b>
35 LIBHDATE_LIBRARY_NAME = 'hdate';
36
37 (** @def HDATE_DIASPORA_FLAG
38 @brief use diaspora dates and holydays flag
39 *)
40 HDATE_DIASPORA_FLAG = -1;
41
42 (** @def HDATE_ISRAEL_FLAG
43 @brief use israel dates and holydays flag
44 *)
45 HDATE_ISRAEL_FLAG = 0;
46
47 (** @def HDATE_SHORT_FLAG
48 @brief use short strings flag
49 *)
50 HDATE_SHORT_FLAG = -1;
51
52 (** @def HDATE_LONG_FLAG
53 @brief use long strings flag
54 *)
55 HDATE_LONG_FLAG = 0;
56
57
58 { Base structore for hebrew dates }
59
60 type
61 // A pointer to the Thdate_struct record
62 Phdate_struct = ^Thdate_struct;
63 Thdate_struct = record
64 //The number of day in the hebrew month (1..31).
65 hd_day : cInt;
66 //The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
67 hd_mon : cInt;
68 //The number of the hebrew year.
69 hd_year : cInt;
70 //The number of the day in the month. (1..31)
71 gd_day : cInt;
72 //The number of the month 1..12 (1 - jan).
73 gd_mon : cInt;
74 //The number of the year.
75 gd_year : cInt;
76 //The day of the week 1..7 (1 - sunday).
77 hd_dw : cInt;
78 //The length of the year in days.
79 hd_size_of_year : cInt;
80 //The week day of Hebrew new year.
81 hd_new_year_dw : cInt;
82 //The number type of year.
83 hd_year_type : cInt;
84 //The Julian day number
85 hd_jd : cInt;
86 //The number of days passed since 1 tishrey
87 hd_days : cInt;
88 //The number of weeks passed since 1 tishrey
89 hd_weeks : cInt;
90 end;
91 (********************************************************************************)
92 (********************************************************************************)
93
94 (**
95 @brief compute date structure from the Gregorian date
96
97 @param h pointer this hdate struct.
98 @param d Day of month 1..31
99 @param m Month 1..12
100 @param y Year in 4 digits e.g. 2001
101 @return pointer to this hdate struct
102 *)
103 function hdate_set_gdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
104 cdecl; external;
105
106 (**
107 @brief compute date structure from the Hebrew date
108
109 @param h pointer this hdate struct.
110 @param d Day of month 1..31
111 @param m Month 1..14 , (13 - Adar 1, 14 - Adar 2)
112 @param y Year in 4 digits e.g. 5731
113 @return pointer to this hdate struct
114 *)
115 function hdate_set_hdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
116 cdecl; external;
117
118 (**
119 @brief compute date structure from the Julian day
120
121 @param h pointer this hdate struct.
122 @param jd the julian day number.
123 @return pointer to this hdate struct
124 *)
125 function hdate_set_jd (h : Phdate_struct; jd : cInt) : Phdate_struct;
126 cdecl; external;
127
128 (*************************************************************)
129 (*************************************************************)
130
131 (**
132 @brief get formated hebrew date.
133
134 return the short ( e.g. "1 Tishrey" ) or
135 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
136
137 @param h pointer this hdate struct.
138 @param diaspora if true give diaspora holydays.
139 @param s short flag.
140 @return a static string of foramted date
141 *)
142 function hdate_get_format_date (h : Phdate_struct; diaspora, s : cInt) : PChar;
143 cdecl; external;
144
145 (**
146 @brief get the number of hebrew parasha.
147
148 @param h pointer this hdate struct.
149 @param diaspora if true give diaspora readings
150 @return the number of parasha 1. Bereshit etc..
151 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
152 *)
153 function hdate_get_parasha (h : Phdate_struct; diaspora : cInt) : cInt;
154 cdecl; external;
155
156 (**
157 @brief get the number of hebrew holyday.
158
159 @param h pointer this hdate struct.
160 @param diaspora if true give diaspora holydays
161 @return the number of holyday.
162 *)
163 function hdate_get_holyday (h : Phdate_struct; diaspora : cInt) : cInt;
164 cdecl; external;
165
166 (*************************************************************)
167 (*************************************************************)
168
169 (**
170 @brief convert an integer to hebrew string.
171
172 @param n The int to convert
173 @return a static string of the hebrew number UTF-8 (logical)
174 @attention ( 0 < n < 10000)
175 *)
176 function hdate_get_int_string (n : cInt) : PChar;
177 cdecl; external;
178
179 (**
180 @brief get name of week day.
181
182 @param day The number of the day 1..7 (1 - sun).
183 @param s short flag
184 true - returns a short string: sun, false returns: sunday.
185 @return a static string of the day of the week
186 *)
187 function hdate_get_day_string (day : cInt; s : cInt) : PChar;
188 cdecl; external;
189
190 (**
191 @brief name of month.
192
193 @param month the number of the month 1..12 (1 - jan).
194 @param s short flag.
195 @return a static string of month name
196 *)
197 function hdate_get_month_string (month : cInt; s : cInt) : PChar;
198 cdecl; external;
199
200 (**
201 @brief name of hebrew month.
202
203 @param month the number of the month 1..14
204 (1 - tishre, 13 - adar 1, 14 - adar 2).
205 @param s short flag.
206 @return a static string of month name
207 *)
208 function hdate_get_hebrew_month_string (month : cInt; s : cInt) : PChar;
209 cdecl; external;
210
211 (**
212 @brief name of hebrew holyday.
213
214 @param holyday the holyday number.
215 @param s short flag.
216 @return a static string of holyday name
217 *)
218 function hdate_get_holyday_string (holyday, s : cInt) : PChar;
219 cdecl; external;
220
221 (**
222 @brief name of parasha
223
224 @param parasha the number of parasha 1-Bereshit
225 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
226 @param s short flag.
227 @return a static string of parasha name
228 *)
229 function hdate_get_parasha_string (parasha, s : cInt) : PChar;
230 cdecl; external;
231
232 (*************************************************************)
233 (*************************************************************)
234
235 (**
236 @brief get the hebrew holyday type.
237
238 @param holyday the holyday number.
239 @return the number of holyday type.
240 *)
241 function hdate_get_holyday_type (holyday : cInt) : cInt;
242 cdecl; external;
243
244 (**
245 @brief size of hebrew year in days.
246
247 @param hebrew_year the hebrew year.
248 @return size of Hebrew year
249 *)
250 function hdate_get_size_of_hebrew_year (hebrew_year : cInt) : cInt;
251 cdecl; external;
252
253 (*************************************************************)
254 (*************************************************************)
255
256 (**
257 @brief Days since Tishrey 3744
258
259 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
260
261 @param hebrew_year The Hebrew year
262 @return Number of days since 3,1,3744
263 *)
264 function hdate_days_from_3744 (hebrew_year : cInt) : cInt;
265 cdecl; external;
266
267 (**
268 @brief Return Hebrew year type based on size and first week day of year.
269
270 @param size_of_year Length of year in days
271 @param new_year_dw First week day of year
272 @return the number for year type (1..14)
273 *)
274 function hdate_get_year_type (size_of_year, new_year_dw : cInt) : cInt;
275 cdecl; external;
276
277 (**
278 @brief Compute Julian day from Gregorian date
279
280 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
281
282 @param day Day of month 1..31
283 @param month Month 1..12
284 @param year Year in 4 digits e.g. 2001
285 @return the julian day number
286 *)
287 function hdate_gdate_to_jd (day, month, year : cInt) : cInt;
288 cdecl; external;
289
290 (**
291 @brief Compute Julian day from Hebrew day, month and year
292
293 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
294
295 @param day Day of month 1..31
296 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
297 @param year Hebrew year in 4 digits e.g. 5753
298 @param jd_tishrey1 return the julian number of 1 Tishrey this year
299 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
300 @return the julian day number
301 *)
302 function hdate_hdate_to_jd (day, month, year : cInt; jd_tishrey1, jd_tishrey1_next_year : pcInt) : cInt;
303 cdecl; external;
304
305 (**
306 @brief Converting from the Julian day to the Gregorian date
307
308 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
309
310 @param jd Julian day
311 @param day return Day of month 1..31
312 @param month return Month 1..12
313 @param year return Year in 4 digits e.g. 2001
314 *)
315 procedure hdate_jd_to_gdate (jd : cInt; day, month, year : pcInt);
316 cdecl; external;
317
318 (**
319 @brief Converting from the Julian day to the Hebrew day
320
321 @author Yaacov Zamir 2005
322
323 @param jd Julian day
324 @param day return Day of month 1..31
325 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
326 @param year return Year in 4 digits e.g. 2001
327 @param jd_tishrey1 return the julian number of 1 Tishrey this year
328 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
329 *)
330 procedure hdate_jd_to_hdate (jd : cInt; day, month, year, jd_tishrey1, jd_tishrey1_next_year : pcInt);
331 cdecl; external;
332
333 (*************************************************************)
334 (*************************************************************)
335
336 (**
337 @brief days from 1 january
338
339 @param day this day of month
340 @param month this month
341 @param year this year
342 @return the days from 1 jan
343 *)
344 function hdate_get_day_of_year (day, month, year : cInt) : cInt;
345 cdecl; external;
346
347 (**
348 @brief utc sunrise/set time for a gregorian date
349
350 @param day this day of month
351 @param month this month
352 @param year this year
353 @param longitude longitude to use in calculations
354 degrees, negative values are east
355 @param latitude latitude to use in calculations
356 degrees, negative values are south
357 @param sunrise return the utc sunrise in minutes after midnight (00:00)
358 @param sunset return the utc sunset in minutes after midnight (00:00)
359 *)
360 procedure hdate_get_utc_sun_time (day, month, year : cInt; latitude, longitude : cDouble; sunrise, sunset : pcInt);
361 cdecl; external;
362
363 (*************************************************************)
364 (*************************************************************)
365
366 (**
367 @brief get the Gregorian day of the month
368
369 @param h pointer this hdate struct.
370 @return the Gregorian day of the month, 1..31.
371 *)
372 function hdate_get_gday (h : Phdate_struct) : cInt;
373 cdecl; external;
374
375 (**
376 @brief get the Gregorian month
377
378 @param h pointer this hdate struct.
379 @return the Gregorian month, jan = 1.
380 *)
381 function hdate_get_gmonth (h : Phdate_struct) : cInt;
382 cdecl; external;
383
384 (**
385 @brief get the Gregorian year
386
387 @param h pointer this hdate struct.
388 @return the Gregorian year.
389 *)
390 function hdate_get_gyear (h : Phdate_struct) : cInt;
391 cdecl; external;
392
393 (**
394 @brief get the Hebrew day of the month
395
396 @param h pointer this hdate struct.
397 @return the Hebrew day of the month, 1..30.
398 *)
399 function hdate_get_hday (h : Phdate_struct) : cInt;
400 cdecl; external;
401
402 (**
403 @brief get the Hebrew month
404
405 @param h pointer this hdate struct.
406 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
407 *)
408 function hdate_get_hmonth (h : Phdate_struct) : cInt;
409 cdecl; external;
410
411 (**
412 @brief get the Hebrew year
413
414 @param h pointer this hdate struct.
415 @return the Hebrew year.
416 *)
417 function hdate_get_hyear (h : Phdate_struct) : cInt;
418 cdecl; external;
419
420 (**
421 @brief get the day of the week
422
423 @param h pointer this hdate struct.
424 @return the the day of the week.
425 *)
426 function hdate_get_day_of_the_week (h : Phdate_struct) : cInt;
427 cdecl; external;
428
429 (**
430 @brief get the size of the hebrew year
431
432 @param h pointer this hdate struct.
433 @return the the size of the hebrew year.
434 *)
435 function hdate_get_size_of_year (h : Phdate_struct) : cInt;
436 cdecl; external;
437
438 (**
439 @brief get the new year day of the week
440
441 @param h pointer this hdate struct.
442 @return the the new year day of the week.
443 *)
444 function hdate_get_new_year_day_of_the_week (h : Phdate_struct) : cInt;
445 cdecl; external;
446
447 (**
448 @brief get the Julian day number
449
450 @param h pointer this hdate struct.
451 @return the Julian day number.
452 *)
453 function hdate_get_julian (h : Phdate_struct) : cInt;
454 cdecl; external;
455
456 (**
457 @brief get the number of days passed since 1 tishrey
458
459 @param h pointer this hdate struct.
460 @return the number of days passed since 1 tishrey.
461 *)
462 function hdate_get_days (h : Phdate_struct) : cInt;
463 cdecl; external;
464
465 (**
466 @brief get the number of weeks passed since 1 tishrey
467
468 @param h pointer this hdate struct.
469 @return the number of weeks passed since 1 tishrey.
470 *)
471 function hdate_get_weeks (h : Phdate_struct) : cInt;
472 cdecl; external;
473
474 (*************************************************************)
475 (*************************************************************)
476
477 (**
478 @brief creat a new hdate struct object, must be deleted using delete_hdate.
479
480 @return a new hdate object
481 *)
482 function new_hdate : Phdate_struct;
483 cdecl; external;
484
485 (**
486 @brief delete an hdate struct object.
487
488 @param h pointer this hdate struct.
489 *)
490 function delete_hdate (h : Phdate_struct) : Phdate_struct;
491 cdecl; external;
492
493 (*************************************************************)
494 (*************************************************************)
495
496 (**
497 @brief Return a static string, with the package name and version
498
499 @return a a static string, with the package name and version
500 *)
501 function hdate_get_version_string : PChar;
502 cdecl; external;
503
504 (**
505 @brief Return a static string, with the name of translator
506
507 @return a a static string, with the name of translator
508 *)
509 function hdate_get_translator_string : PChar;
510 cdecl; external;
511
512 (**
513 @brief utc sun times for altitude at a gregorian date
514
515 @param day this day of month
516 @param month this month
517 @param year this year
518 @param latitude latitude to use in calculations
519 @param longitude longitude to use in calculations
520 @param deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
521 @param sunrise return the utc sunrise in minutes
522 @param sunset return the utc sunset in minutes
523 *)
524 procedure hdate_get_utc_sun_time_deg(day, month, year : cint; latitude, longitude, deg : cdouble; sunrise, sunset : pcint);
525 cdecl; external;
526
527
528 (**
529 @brief utc sunrise/set time for a gregorian date
530
531 @param day this day of month
532 @param month this month
533 @param year this year
534 @param longitude longitude to use in calculations
535 @param latitude latitude to use in calculations
536 @param sun_hour return the length of shaa zmanit in minutes
537 @param first_light return the utc alut ha-shachar in minutes
538 @param talit return the utc tphilin and talit in minutes
539 @param sunrise return the utc sunrise in minutes
540 @param midday return the utc midday in minutes
541 @param sunset return the utc sunset in minutes
542 @param first_stars return the utc tzeit hacochavim in minutes
543 @param three_stars return the utc shlosha cochavim in minutes
544 *)
545 procedure hdate_get_utc_sun_time_full (day, month, year : cint;
546 latitude, longitude : cdouble;
547 sun_hour, first_light, talit, sunrise, midday, sunset,
548 first_stars, three_stars : pcint);
549 cdecl; external;
550
551
552
553 implementation
554
555 end.
+0
-758
current/bindings/pascal/hdate_dyn_pascal.pp less more
0
1 (* libhdate
2 Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
3 Copyright (C) 2008 Ido Kanner <idokan@gmail.com>
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 3 of the License, or
8 (at your option) 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, see <http://www.gnu.org/licenses/>.
17
18 History:
19 25/01/2008 - Fixed some logical bugs.
20 - Added FPDoc support
21 12/01/2008 - Added support for dynamic loading for the library
22 *)
23
24 Unit hdate_dyn_pascal;
25
26 {$IFDEF FPC}
27 {$MODE FPC}
28 {$PACKRECORDS C}
29 {$CALLING cdecl}
30 {$ENDIF}
31
32
33 (*
34 Auto load means that we are loading the functions when the unit is loaded.
35 Disable this define will mean that you should load and unload it by hand, using the needed procedures
36 *)
37 {$DEFINE AUTO_LOAD}
38
39 Interface
40
41 {$IFDEF FPC}
42
43 Uses
44 ctypes;
45 {$ENDIF}
46
47 { Load and assign the hdate library dynamiclly
48 Note: If AUTO_LOAD is defined, then no need to use this procedure
49 }
50 Procedure hdate_init;
51
52 { Free the memory from the hdate library loading
53 Note: If AUTO_LOAD is defined, then no need to use this procedure
54 }
55 Procedure hdate_done;
56
57 { Return true if the library was was loaded, or false if not }
58 Function IsLoaded : Boolean;
59
60 Const
61 {$IFDEF UNIX}
62 LIBHDATE_LIBRARY_NAME = 'libhdate.so';
63 {$ELSE}
64 {$IFDEF MSWINODWS}
65 LIBHDATE_LIBRARY_NAME = 'hdate.dll';
66 {$ELSE}
67 {$FATAL Unsupported environment}
68 {$ENDIF}
69 {$ENDIF}
70
71 (** @def HDATE_DIASPORA_FLAG
72 @brief use diaspora dates and holydays flag
73 *)
74 HDATE_DIASPORA_FLAG = -1;
75
76 (** @def HDATE_ISRAEL_FLAG
77 @brief use israel dates and holydays flag
78 *)
79 HDATE_ISRAEL_FLAG = 0;
80
81 (** @def HDATE_SHORT_FLAG
82 @brief use short strings flag
83 *)
84 HDATE_SHORT_FLAG = -1;
85
86 (** @def HDATE_LONG_FLAG
87 @brief use long strings flag
88 *)
89 HDATE_LONG_FLAG = 0;
90
91
92 { Base structore for hebrew dates }
93
94 Type
95 // A pointer to the Thdate_struct record
96 Phdate_struct = ^Thdate_struct;
97 Thdate_struct = Record
98 hd_day : cInt;
99 //The number of day in the hebrew month (1..31).
100 hd_mon : cInt;
101 //The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
102 hd_year : cInt;
103 //The number of the hebrew year.
104 gd_day : cInt;
105 //The number of the day in the month. (1..31)
106 gd_mon : cInt;
107 //The number of the month 1..12 (1 - jan).
108 gd_year : cInt;
109 //The number of the year.
110 hd_dw : cInt;
111 //The day of the week 1..7 (1 - sunday).
112 hd_size_of_year : cInt;
113 //The length of the year in days.
114 hd_new_year_dw : cInt;
115 //The week day of Hebrew new year.
116 hd_year_type : cInt;
117 //The number type of year.
118 hd_jd : cInt;
119 //The Julian day number
120 hd_days : cInt;
121 //The number of days passed since 1 tishrey
122 hd_weeks : cInt;
123 //The number of weeks passed since 1 tishrey
124 End;
125 (********************************************************************************)
126 (********************************************************************************)
127
128 Var
129 (**
130 @brief compute date structure from the Gregorian date
131
132 @param h pointer this hdate struct.
133 @param d Day of month 1..31
134 @param m Month 1..12
135 @param y Year in 4 digits e.g. 2001
136 @return pointer to this hdate struct
137 *)
138 hdate_set_gdate : Function (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
139
140
141 (**
142 @brief compute date structure from the Hebrew date
143
144 @param h pointer this hdate struct.
145 @param d Day of month 1..31
146 @param m Month 1..14 , (13 - Adar 1, 14 - Adar 2)
147 @param y Year in 4 digits e.g. 5731
148 @return pointer to this hdate struct
149 *)
150 hdate_set_hdate : Function (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
151
152
153 (**
154 @brief compute date structure from the Julian day
155
156 @param h pointer this hdate struct.
157 @param jd the julian day number.
158 @return pointer to this hdate struct
159 *)
160 hdate_set_jd : Function (h : Phdate_struct; jd : cInt) : Phdate_struct;
161
162 (*************************************************************)
163 (*************************************************************)
164
165
166 (**
167 @brief get formated hebrew date.
168
169 return the short ( e.g. "1 Tishrey" ) or
170 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
171
172 @param h pointer this hdate struct.
173 @param diaspora if true give diaspora holydays.
174 @param s short flag.
175 @return a static string of foramted date
176 *)
177 hdate_get_format_date : Function (h : Phdate_struct; diaspora, s : cInt) : PChar;
178
179
180 (**
181 @brief get the number of hebrew parasha.
182
183 @param h pointer this hdate struct.
184 @param diaspora if true give diaspora readings
185 @return the number of parasha 1. Bereshit etc..
186 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
187 *)
188 hdate_get_parasha : Function (h : Phdate_struct; diaspora : cInt) : cInt;
189
190
191 (**
192 @brief get the number of hebrew holyday.
193
194 @param h pointer this hdate struct.
195 @param diaspora if true give diaspora holydays
196 @return the number of holyday.
197 *)
198 hdate_get_holyday : Function (h : Phdate_struct; diaspora : cInt) : cInt;
199
200 (*************************************************************)
201 (*************************************************************)
202
203
204 (**
205 @brief convert an integer to hebrew string.
206
207 @param n The int to convert
208 @return a static string of the hebrew number UTF-8 (logical)
209 @attention ( 0 < n < 10000)
210 *)
211 hdate_get_int_string : Function (n : cInt) : PChar;
212
213
214
215 (**
216 @brief get name of week day.
217
218 @param day The number of the day 1..7 (1 - sun).
219 @param s short flag
220 true - returns a short string: sun, false returns: sunday.
221 @return a static string of the day of the week
222 *)
223 hdate_get_day_string : Function (day : cInt; s : cInt) : PChar;
224
225
226
227 (**
228 @brief name of month.
229
230 @param month the number of the month 1..12 (1 - jan).
231 @param s short flag.
232 @return a static string of month name
233 *)
234 hdate_get_month_string : Function (month : cInt; s : cInt) : PChar;
235
236
237
238 (**
239 @brief name of hebrew month.
240
241 @param month the number of the month 1..14
242 (1 - tishre, 13 - adar 1, 14 - adar 2).
243 @param s short flag.
244 @return a static string of month name
245 *)
246 hdate_get_hebrew_month_string : Function (month : cInt; s : cInt) : PChar;
247
248
249
250 (**
251 @brief name of hebrew holyday.
252
253 @param holyday the holyday number.
254 @param s short flag.
255 @return a static string of holyday name
256 *)
257 hdate_get_holyday_string : Function (holyday, s : cInt) : PChar;
258
259
260
261 (**
262 @brief name of parasha
263
264 @param parasha the number of parasha 1-Bereshit
265 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
266 @param s short flag.
267 @return a static string of parasha name
268 *)
269 hdate_get_parasha_string : Function (parasha, s : cInt) : PChar;
270
271
272 (*************************************************************)
273 (*************************************************************)
274
275
276 (**
277 @brief get the hebrew holyday type.
278
279 @param holyday the holyday number.
280 @return the number of holyday type.
281 *)
282 hdate_get_holyday_type : Function (holyday : cInt) : cInt;
283
284
285
286 (**
287 @brief size of hebrew year in days.
288
289 @param hebrew_year the hebrew year.
290 @return size of Hebrew year
291 *)
292 hdate_get_size_of_hebrew_year : Function (hebrew_year : cInt) : cInt;
293
294
295 (*************************************************************)
296 (*************************************************************)
297
298
299 (**
300 @brief Days since Tishrey 3744
301
302 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
303
304 @param hebrew_year The Hebrew year
305 @return Number of days since 3,1,3744
306 *)
307 hdate_days_from_3744 : Function (hebrew_year : cInt) : cInt;
308
309
310
311 (**
312 @brief Return Hebrew year type based on size and first week day of year.
313
314 @param size_of_year Length of year in days
315 @param new_year_dw First week day of year
316 @return the number for year type (1..14)
317 *)
318 hdate_get_year_type : Function (size_of_year, new_year_dw : cInt) : cInt;
319
320
321
322 (**
323 @brief Compute Julian day from Gregorian date
324
325 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
326
327 @param day Day of month 1..31
328 @param month Month 1..12
329 @param year Year in 4 digits e.g. 2001
330 @return the julian day number
331 *)
332 hdate_gdate_to_jd : Function (day, month, year : cInt) : cInt;
333
334
335
336 (**
337 @brief Compute Julian day from Hebrew day, month and year
338
339 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
340
341 @param day Day of month 1..31
342 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
343 @param year Hebrew year in 4 digits e.g. 5753
344 @param jd_tishrey1 return the julian number of 1 Tishrey this year
345 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
346 @return the julian day number
347 *)
348 hdate_hdate_to_jd : Function (day, month, year : cInt; jd_tishrey1, jd_tishrey1_next_year : pcInt)
349 : cInt;
350
351
352
353 (**
354 @brief Converting from the Julian day to the Gregorian date
355
356 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
357
358 @param jd Julian day
359 @param day return Day of month 1..31
360 @param month return Month 1..12
361 @param year return Year in 4 digits e.g. 2001
362 *)
363 hdate_jd_to_gdate : Procedure (jd : cInt; day, month, year : pcInt);
364
365
366
367 (**
368 @brief Converting from the Julian day to the Hebrew day
369
370 @author Yaacov Zamir 2005
371
372 @param jd Julian day
373 @param day return Day of month 1..31
374 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
375 @param year return Year in 4 digits e.g. 2001
376 @param jd_tishrey1 return the julian number of 1 Tishrey this year
377 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
378 *)
379 hdate_jd_to_hdate : Procedure (jd : cInt; day, month, year, jd_tishrey1, jd_tishrey1_next_year :
380 pcInt);
381
382
383 (*************************************************************)
384 (*************************************************************)
385
386
387 (**
388 @brief days from 1 january
389
390 @param day this day of month
391 @param month this month
392 @param year this year
393 @return the days from 1 jan
394 *)
395 hdate_get_day_of_year : Function (day, month, year : cInt) : cInt;
396
397
398
399 (**
400 @brief utc sunrise/set time for a gregorian date
401
402 @param day this day of month
403 @param month this month
404 @param year this year
405 @param longitude longitude to use in calculations
406 degrees, negative values are east
407 @param latitude latitude to use in calculations
408 degrees, negative values are south
409 @param sunrise return the utc sunrise in minutes after midnight (00:00)
410 @param sunset return the utc sunset in minutes after midnight (00:00)
411 *)
412 hdate_get_utc_sun_time : Procedure (day, month, year : cInt; latitude, longitude : cDouble;
413 sunrise, sunset : pcInt);
414
415
416 (*************************************************************)
417 (*************************************************************)
418
419
420 (**
421 @brief get the Gregorian day of the month
422
423 @param h pointer this hdate struct.
424 @return the Gregorian day of the month, 1..31.
425 *)
426 hdate_get_gday : Function (h : Phdate_struct) : cInt;
427
428
429
430 (**
431 @brief get the Gregorian month
432
433 @param h pointer this hdate struct.
434 @return the Gregorian month, jan = 1.
435 *)
436 hdate_get_gmonth : Function (h : Phdate_struct) : cInt;
437
438
439
440 (**
441 @brief get the Gregorian year
442
443 @param h pointer this hdate struct.
444 @return the Gregorian year.
445 *)
446 hdate_get_gyear : Function (h : Phdate_struct) : cInt;
447
448
449
450 (**
451 @brief get the Hebrew day of the month
452
453 @param h pointer this hdate struct.
454 @return the Hebrew day of the month, 1..30.
455 *)
456 hdate_get_hday : Function (h : Phdate_struct) : cInt;
457
458
459
460 (**
461 @brief get the Hebrew month
462
463 @param h pointer this hdate struct.
464 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
465 *)
466 hdate_get_hmonth : Function (h : Phdate_struct) : cInt;
467
468
469 (**
470 @brief get the Hebrew year
471
472 @param h pointer this hdate struct.
473 @return the Hebrew year.
474 *)
475 hdate_get_hyear : Function (h : Phdate_struct) : cInt;
476
477
478
479 (**
480 @brief get the day of the week
481
482 @param h pointer this hdate struct.
483 @return the the day of the week.
484 *)
485 hdate_get_day_of_the_week : Function (h : Phdate_struct) : cInt;
486
487
488
489 (**
490 @brief get the size of the hebrew year
491
492 @param h pointer this hdate struct.
493 @return the the size of the hebrew year.
494 *)
495 hdate_get_size_of_year : Function (h : Phdate_struct) : cInt;
496
497
498
499 (**
500 @brief get the new year day of the week
501
502 @param h pointer this hdate struct.
503 @return the the new year day of the week.
504 *)
505 hdate_get_new_year_day_of_the_week : Function (h : Phdate_struct) : cInt;
506
507
508
509 (**
510 @brief get the Julian day number
511
512 @param h pointer this hdate struct.
513 @return the Julian day number.
514 *)
515 hdate_get_julian : Function (h : Phdate_struct) : cInt;
516
517
518
519 (**
520 @brief get the number of days passed since 1 tishrey
521
522 @param h pointer this hdate struct.
523 @return the number of days passed since 1 tishrey.
524 *)
525 hdate_get_days : Function (h : Phdate_struct) : cInt;
526
527
528
529 (**
530 @brief get the number of weeks passed since 1 tishrey
531
532 @param h pointer this hdate struct.
533 @return the number of weeks passed since 1 tishrey.
534 *)
535 hdate_get_weeks : Function (h : Phdate_struct) : cInt;
536
537
538 (*************************************************************)
539 (*************************************************************)
540
541
542 (**
543 @brief creat a new hdate struct object, must be deleted using delete_hdate.
544
545 @return a new hdate object
546 *)
547 new_hdate : Function : Phdate_struct;
548
549
550 (**
551 @brief delete an hdate struct object.
552
553 @param h pointer this hdate struct.
554 *)
555 delete_hdate : Function (h : Phdate_struct) : Phdate_struct;
556
557
558 (*************************************************************)
559 (*************************************************************)
560
561
562 (**
563 @brief Return a static string, with the package name and version
564
565 @return a a static string, with the package name and version
566 *)
567 hdate_get_version_string : Function : PChar;
568
569
570 (**
571 @brief Return a static string, with the name of translator
572
573 @return a a static string, with the name of translator
574 *)
575 hdate_get_translator_string : Function : PChar;
576
577
578 (**
579 @brief utc sun times for altitude at a gregorian date
580
581 @param day this day of month
582 @param month this month
583 @param year this year
584 @param latitude latitude to use in calculations
585 @param longitude longitude to use in calculations
586 @param deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
587 @param sunrise return the utc sunrise in minutes
588 @param sunset return the utc sunset in minutes
589 *)
590 hdate_get_utc_sun_time_deg : Procedure (day, month, year : cint;
591 latitude, longitude, deg : cdouble;
592 sunrise, sunset : pcint);
593
594
595 (**
596 @brief utc sunrise/set time for a gregorian date
597
598 @param day this day of month
599 @param month this month
600 @param year this year
601 @param longitude longitude to use in calculations
602 @param latitude latitude to use in calculations
603 @param sun_hour return the length of shaa zmanit in minutes
604 @param first_light return the utc alut ha-shachar in minutes
605 @param talit return the utc tphilin and talit in minutes
606 @param sunrise return the utc sunrise in minutes
607 @param midday return the utc midday in minutes
608 @param sunset return the utc sunset in minutes
609 @param first_stars return the utc tzeit hacochavim in minutes
610 @param three_stars return the utc shlosha cochavim in minutes
611 *)
612 hdate_get_utc_sun_time_full : Procedure (day, month, year : cint;
613 latitude, longitude : cdouble;
614 sun_hour, first_light, talit, sunrise, midday, sunset,
615 first_stars, three_stars : pcint);
616
617
618 Implementation
619 Uses dynlibs;
620
621 Var
622 Loaded : Boolean;
623 LibHandle : TLibHandle;
624
625 Procedure hdate_init;
626
627 { Internal function of hdate_init, that load the function and assign it to the right function/procedure}
628 Function AssignProc(Name : PChar; Fnc : Pointer) : boolean;
629 Var
630 address : pointer;
631 pfnc : ^pointer;
632 Begin
633 address := Nil;
634 address := GetProcedureAddress(LibHandle, Name);
635 pfnc := Fnc;
636 pfnc^ := address;
637 AssignProc := address <> Nil;
638 End;
639
640 Begin
641 If (Loaded) and (LibHandle <> NilHandle) Then
642 exit;
643
644 Loaded := False;
645 LibHandle := LoadLibrary(LIBHDATE_LIBRARY_NAME);
646 If LibHandle = NilHandle Then
647 exit;
648
649 If Not AssignProc('hdate_set_gdate', @hdate_set_gdate) Then
650 exit;
651 If Not AssignProc('hdate_set_hdate', @hdate_set_hdate) Then
652 exit;
653 If Not AssignProc('hdate_set_jd', @hdate_set_jd) Then
654 exit;
655 If Not AssignProc('hdate_get_format_date', @hdate_get_format_date) Then
656 exit;
657 If Not AssignProc('hdate_get_parasha', @hdate_get_parasha) Then
658 exit;
659 If Not AssignProc('hdate_get_holyday', @hdate_get_holyday) Then
660 exit;
661 If Not AssignProc('hdate_get_int_string', @hdate_get_int_string) Then
662 exit;
663 If Not AssignProc('hdate_get_day_string', @hdate_get_day_string) Then
664 exit;
665 If Not AssignProc('hdate_get_month_string', @hdate_get_month_string) Then
666 exit;
667 If Not AssignProc('hdate_get_hebrew_month_string', @hdate_get_hebrew_month_string) Then
668 exit;
669 If Not AssignProc('hdate_get_holyday_string', @hdate_get_holyday_string) Then
670 exit;
671 If Not AssignProc('hdate_get_parasha_string', @hdate_get_parasha_string) Then
672 exit;
673 If Not AssignProc('hdate_get_holyday_type', @hdate_get_holyday_type) Then
674 exit;
675 If Not AssignProc('hdate_get_size_of_hebrew_year', @hdate_get_size_of_hebrew_year) Then
676 exit;
677 If Not AssignProc('hdate_days_from_3744', @hdate_days_from_3744) Then
678 exit;
679 If Not AssignProc('hdate_get_year_type', @hdate_get_year_type) Then
680 exit;
681 If Not AssignProc('hdate_gdate_to_jd', @hdate_gdate_to_jd) Then
682 exit;
683 If Not AssignProc('hdate_hdate_to_jd', @hdate_hdate_to_jd) Then
684 exit;
685 If Not AssignProc('hdate_jd_to_gdate', @hdate_jd_to_gdate) Then
686 exit;
687 If Not AssignProc('hdate_jd_to_hdate', @hdate_jd_to_hdate) Then
688 exit;
689 If Not AssignProc('hdate_get_day_of_year', @hdate_get_day_of_year) Then
690 exit;
691 If Not AssignProc('hdate_get_utc_sun_time', @hdate_get_utc_sun_time) Then
692 exit;
693 If Not AssignProc('hdate_get_gday', @hdate_get_gday) Then
694 exit;
695 If Not AssignProc('hdate_get_gmonth', @hdate_get_gmonth) Then
696 exit;
697 If Not AssignProc('hdate_get_gyear', @hdate_get_gyear) Then
698 exit;
699 If Not AssignProc('hdate_get_hday', @hdate_get_hday) Then
700 exit;
701 If Not AssignProc('hdate_get_hmonth', @hdate_get_hmonth) Then
702 exit;
703 If Not AssignProc('hdate_get_hyear', @hdate_get_hyear) Then
704 exit;
705 If Not AssignProc('hdate_get_day_of_the_week', @hdate_get_day_of_the_week) Then
706 exit;
707 If Not AssignProc('hdate_get_size_of_year', @hdate_get_size_of_year) Then
708 exit;
709 If Not AssignProc('hdate_get_new_year_day_of_the_week', @hdate_get_new_year_day_of_the_week) Then
710 exit;
711 If Not AssignProc('hdate_get_julian', @hdate_get_julian) Then
712 exit;
713 If Not AssignProc('hdate_get_days', @hdate_get_days) Then
714 exit;
715 If Not AssignProc('hdate_get_weeks', @hdate_get_weeks) Then
716 exit;
717 If Not AssignProc('new_hdate', @new_hdate) Then
718 exit;
719 If Not AssignProc('delete_hdate', @delete_hdate) Then
720 exit;
721 If Not AssignProc('hdate_get_version_string', @hdate_get_version_string) Then
722 exit;
723 If Not AssignProc('hdate_get_translator_string', @hdate_get_translator_string) Then
724 exit;
725 If Not AssignProc('hdate_get_utc_sun_time_deg', @hdate_get_utc_sun_time_deg) Then
726 exit;
727 If Not AssignProc('hdate_get_utc_sun_time_full', @hdate_get_utc_sun_time_full) Then
728 exit;
729
730 Loaded := true;
731 End;
732
733 Procedure hdate_done;
734 Begin
735 If LibHandle <> NilHandle Then
736 UnloadLibrary(LibHandle);
737
738 LibHandle := NilHandle;
739 Loaded := false;
740 End;
741
742 Function IsLoaded : Boolean;
743 Begin
744 IsLoaded := Loaded;
745 End;
746
747 initialization
748 Loaded := false;
749 {$IFDEF AUTO_LOAD}
750 hdate_init;
751 {$ENDIF}
752 finalization
753 {$IFDEF AUTO_LOAD}
754 hdate_done;
755 {$ENDIF}
756 End.
757
+0
-25
current/bindings/perl/Makefile.am less more
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
-391
current/bindings/perl/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings/perl
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
53 ACLOCAL = @ACLOCAL@
54 AMDEP_FALSE = @AMDEP_FALSE@
55 AMDEP_TRUE = @AMDEP_TRUE@
56 AMTAR = @AMTAR@
57 AR = @AR@
58 AUTOCONF = @AUTOCONF@
59 AUTOHEADER = @AUTOHEADER@
60 AUTOMAKE = @AUTOMAKE@
61 AWK = @AWK@
62 CC = @CC@
63 CCDEPMODE = @CCDEPMODE@
64 CFLAGS = @CFLAGS@
65 CPP = @CPP@
66 CPPFLAGS = @CPPFLAGS@
67 CXX = @CXX@
68 CXXCPP = @CXXCPP@
69 CXXDEPMODE = @CXXDEPMODE@
70 CXXFLAGS = @CXXFLAGS@
71 CYGPATH_W = @CYGPATH_W@
72 DATADIRNAME = @DATADIRNAME@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 ECHO = @ECHO@
76 ECHO_C = @ECHO_C@
77 ECHO_N = @ECHO_N@
78 ECHO_T = @ECHO_T@
79 EGREP = @EGREP@
80 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
83 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
84 GMSGFMT = @GMSGFMT@
85 GMSGFMT_015 = @GMSGFMT_015@
86 GREP = @GREP@
87 INSTALL_DATA = @INSTALL_DATA@
88 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89 INSTALL_SCRIPT = @INSTALL_SCRIPT@
90 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91 INTLLIBS = @INTLLIBS@
92 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
93 LDFLAGS = @LDFLAGS@
94 LIBICONV = @LIBICONV@
95 LIBINTL = @LIBINTL@
96 LIBOBJS = @LIBOBJS@
97 LIBS = @LIBS@
98 LIBTOOL = @LIBTOOL@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
105 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
106 MAKEINFO = @MAKEINFO@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 OBJEXT = @OBJEXT@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PA_MODULES_PATH = @PA_MODULES_PATH@
119 PA_VERSION = @PA_VERSION@
120 PE_CFLAGS = @PE_CFLAGS@
121 PE_MODULES_PATH = @PE_MODULES_PATH@
122 PH_CONFIG_PATH = @PH_CONFIG_PATH@
123 PH_MODULES_PATH = @PH_MODULES_PATH@
124 PKG_CONFIG = @PKG_CONFIG@
125 POSUB = @POSUB@
126 PY_CFLAGS = @PY_CFLAGS@
127 PY_MODULES_PATH = @PY_MODULES_PATH@
128 PY_VERSION = @PY_VERSION@
129 RANLIB = @RANLIB@
130 RU_CFLAGS = @RU_CFLAGS@
131 RU_MODULES_PATH = @RU_MODULES_PATH@
132 RU_VERSION = @RU_VERSION@
133 SED = @SED@
134 SET_MAKE = @SET_MAKE@
135 SHELL = @SHELL@
136 STRIP = @STRIP@
137 USE_NLS = @USE_NLS@
138 VERSION = @VERSION@
139 VERSION_INFO = @VERSION_INFO@
140 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
141 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
142 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
143 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
144 WITH_PERL_FALSE = @WITH_PERL_FALSE@
145 WITH_PERL_TRUE = @WITH_PERL_TRUE@
146 WITH_PHP_FALSE = @WITH_PHP_FALSE@
147 WITH_PHP_TRUE = @WITH_PHP_TRUE@
148 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
149 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
150 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
151 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
152 XGETTEXT = @XGETTEXT@
153 XGETTEXT_015 = @XGETTEXT_015@
154 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_CXX = @ac_ct_CXX@
157 ac_ct_F77 = @ac_ct_F77@
158 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
159 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
160 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
161 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
162 am__include = @am__include@
163 am__leading_dot = @am__leading_dot@
164 am__quote = @am__quote@
165 am__tar = @am__tar@
166 am__untar = @am__untar@
167 bindir = @bindir@
168 build = @build@
169 build_alias = @build_alias@
170 build_cpu = @build_cpu@
171 build_os = @build_os@
172 build_vendor = @build_vendor@
173 datadir = @datadir@
174 datarootdir = @datarootdir@
175 docdir = @docdir@
176 dvidir = @dvidir@
177 exec_prefix = @exec_prefix@
178 have_pascal = @have_pascal@
179 have_perl = @have_perl@
180 have_php = @have_php@
181 have_php_config = @have_php_config@
182 have_python = @have_python@
183 have_ruby = @have_ruby@
184 have_swig = @have_swig@
185 host = @host@
186 host_alias = @host_alias@
187 host_cpu = @host_cpu@
188 host_os = @host_os@
189 host_vendor = @host_vendor@
190 htmldir = @htmldir@
191 includedir = @includedir@
192 infodir = @infodir@
193 install_sh = @install_sh@
194 libdir = @libdir@
195 libexecdir = @libexecdir@
196 localedir = @localedir@
197 localstatedir = @localstatedir@
198 mandir = @mandir@
199 mkdir_p = @mkdir_p@
200 oldincludedir = @oldincludedir@
201 pdfdir = @pdfdir@
202 prefix = @prefix@
203 program_transform_name = @program_transform_name@
204 psdir = @psdir@
205 sbindir = @sbindir@
206 sharedstatedir = @sharedstatedir@
207 sysconfdir = @sysconfdir@
208 target_alias = @target_alias@
209 EXTRA_DIST = hdate.i
210 @WITH_PERL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
211 @WITH_PERL_TRUE@CLEANFILES = *.o *.cxx *.so *wrap* *.pm
212 all: all-am
213
214 .SUFFIXES:
215 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
216 @for dep in $?; do \
217 case '$(am__configure_deps)' in \
218 *$$dep*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
220 && exit 0; \
221 exit 1;; \
222 esac; \
223 done; \
224 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/perl/Makefile'; \
225 cd $(top_srcdir) && \
226 $(AUTOMAKE) --gnu bindings/perl/Makefile
227 .PRECIOUS: Makefile
228 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
229 @case '$?' in \
230 *config.status*) \
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
232 *) \
233 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
234 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
235 esac;
236
237 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239
240 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
242 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244
245 mostlyclean-libtool:
246 -rm -f *.lo
247
248 clean-libtool:
249 -rm -rf .libs _libs
250
251 distclean-libtool:
252 -rm -f libtool
253 uninstall-info-am:
254 tags: TAGS
255 TAGS:
256
257 ctags: CTAGS
258 CTAGS:
259
260
261 distdir: $(DISTFILES)
262 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
263 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
264 list='$(DISTFILES)'; for file in $$list; do \
265 case $$file in \
266 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
267 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
268 esac; \
269 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
270 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
271 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
272 dir="/$$dir"; \
273 $(mkdir_p) "$(distdir)$$dir"; \
274 else \
275 dir=''; \
276 fi; \
277 if test -d $$d/$$file; then \
278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
279 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
280 fi; \
281 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
282 else \
283 test -f $(distdir)/$$file \
284 || cp -p $$d/$$file $(distdir)/$$file \
285 || exit 1; \
286 fi; \
287 done
288 check-am: all-am
289 check: check-am
290 all-am: Makefile
291 installdirs:
292 install: install-am
293 install-exec: install-exec-am
294 install-data: install-data-am
295 uninstall: uninstall-am
296
297 install-am: all-am
298 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
299
300 installcheck: installcheck-am
301 install-strip:
302 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
303 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
304 `test -z '$(STRIP)' || \
305 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
306 mostlyclean-generic:
307
308 clean-generic:
309 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
310
311 distclean-generic:
312 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
313
314 maintainer-clean-generic:
315 @echo "This command is intended for maintainers to use"
316 @echo "it deletes files that may require special tools to rebuild."
317 @WITH_PERL_FALSE@install-data-local:
318 clean: clean-am
319
320 clean-am: clean-generic clean-libtool mostlyclean-am
321
322 distclean: distclean-am
323 -rm -f Makefile
324 distclean-am: clean-am distclean-generic distclean-libtool
325
326 dvi: dvi-am
327
328 dvi-am:
329
330 html: html-am
331
332 info: info-am
333
334 info-am:
335
336 install-data-am: install-data-local
337
338 install-exec-am:
339
340 install-info: install-info-am
341
342 install-man:
343
344 installcheck-am:
345
346 maintainer-clean: maintainer-clean-am
347 -rm -f Makefile
348 maintainer-clean-am: distclean-am maintainer-clean-generic
349
350 mostlyclean: mostlyclean-am
351
352 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
353
354 pdf: pdf-am
355
356 pdf-am:
357
358 ps: ps-am
359
360 ps-am:
361
362 uninstall-am: uninstall-info-am
363
364 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
365 distclean distclean-generic distclean-libtool distdir dvi \
366 dvi-am html html-am info info-am install install-am \
367 install-data install-data-am install-data-local install-exec \
368 install-exec-am install-info install-info-am install-man \
369 install-strip installcheck installcheck-am installdirs \
370 maintainer-clean maintainer-clean-generic mostlyclean \
371 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
372 uninstall uninstall-am uninstall-info-am
373
374
375 @WITH_PERL_TRUE@all-am: hdate.so
376
377 @WITH_PERL_TRUE@hdate.so: hdate_wrap.cxx
378 @WITH_PERL_TRUE@ g++ -fpic -c hdate_wrap.cxx $(PE_CFLAGS) -I$(top_srcdir)/src
379 @WITH_PERL_TRUE@ g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o hdate.so
380
381 @WITH_PERL_TRUE@hdate_wrap.cxx: hdate.i
382 @WITH_PERL_TRUE@ swig -perl -c++ hdate.i
383
384 @WITH_PERL_TRUE@install-data-local: hdate.so
385 @WITH_PERL_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/
386 @WITH_PERL_TRUE@ $(INSTALL_DATA) hdate.so $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/hdate.so
387 @WITH_PERL_TRUE@ $(INSTALL_DATA) hdate.pm $(DESTDIR)$(PE_MODULES_PATH)/hdate.pm
388 # Tell versions [3.59,3.63) of GNU make to not export all variables.
389 # Otherwise a system limit (for SysV at least) may be exceeded.
390 .NOEXPORT:
+0
-12
current/bindings/perl/hdate.i less more
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
-26
current/bindings/php/Makefile.am less more
0
1 EXTRA_DIST = hdate.i hdate.ini
2
3 if WITH_PHP
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.cpp *.h *.so *wrap*
8
9 all-am: hdate.so
10
11
12 hdate.so: hdate_wrap.cpp
13 g++ -I$(top_srcdir)/src `php-config --includes` -fpic -c hdate_wrap.cpp
14 gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -lstdc++ -o hdate.so
15
16 hdate_wrap.cpp: hdate.i
17 swig -php5 -c++ hdate.i
18
19 install-data-local: hdate.so hdate.ini
20 $(mkinstalldirs) $(DESTDIR)$(PH_MODULES_PATH)
21 $(INSTALL_DATA) hdate.so $(DESTDIR)$(PH_MODULES_PATH)/hdate.so
22
23 $(mkinstalldirs) $(DESTDIR)$(PH_CONFIG_PATH)
24 $(INSTALL_DATA) hdate.ini $(DESTDIR)$(PH_CONFIG_PATH)/hdate.ini
25 endif
+0
-393
current/bindings/php/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings/php
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
53 ACLOCAL = @ACLOCAL@
54 AMDEP_FALSE = @AMDEP_FALSE@
55 AMDEP_TRUE = @AMDEP_TRUE@
56 AMTAR = @AMTAR@
57 AR = @AR@
58 AUTOCONF = @AUTOCONF@
59 AUTOHEADER = @AUTOHEADER@
60 AUTOMAKE = @AUTOMAKE@
61 AWK = @AWK@
62 CC = @CC@
63 CCDEPMODE = @CCDEPMODE@
64 CFLAGS = @CFLAGS@
65 CPP = @CPP@
66 CPPFLAGS = @CPPFLAGS@
67 CXX = @CXX@
68 CXXCPP = @CXXCPP@
69 CXXDEPMODE = @CXXDEPMODE@
70 CXXFLAGS = @CXXFLAGS@
71 CYGPATH_W = @CYGPATH_W@
72 DATADIRNAME = @DATADIRNAME@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 ECHO = @ECHO@
76 ECHO_C = @ECHO_C@
77 ECHO_N = @ECHO_N@
78 ECHO_T = @ECHO_T@
79 EGREP = @EGREP@
80 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
83 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
84 GMSGFMT = @GMSGFMT@
85 GMSGFMT_015 = @GMSGFMT_015@
86 GREP = @GREP@
87 INSTALL_DATA = @INSTALL_DATA@
88 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89 INSTALL_SCRIPT = @INSTALL_SCRIPT@
90 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91 INTLLIBS = @INTLLIBS@
92 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
93 LDFLAGS = @LDFLAGS@
94 LIBICONV = @LIBICONV@
95 LIBINTL = @LIBINTL@
96 LIBOBJS = @LIBOBJS@
97 LIBS = @LIBS@
98 LIBTOOL = @LIBTOOL@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
105 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
106 MAKEINFO = @MAKEINFO@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 OBJEXT = @OBJEXT@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PA_MODULES_PATH = @PA_MODULES_PATH@
119 PA_VERSION = @PA_VERSION@
120 PE_CFLAGS = @PE_CFLAGS@
121 PE_MODULES_PATH = @PE_MODULES_PATH@
122 PH_CONFIG_PATH = @PH_CONFIG_PATH@
123 PH_MODULES_PATH = @PH_MODULES_PATH@
124 PKG_CONFIG = @PKG_CONFIG@
125 POSUB = @POSUB@
126 PY_CFLAGS = @PY_CFLAGS@
127 PY_MODULES_PATH = @PY_MODULES_PATH@
128 PY_VERSION = @PY_VERSION@
129 RANLIB = @RANLIB@
130 RU_CFLAGS = @RU_CFLAGS@
131 RU_MODULES_PATH = @RU_MODULES_PATH@
132 RU_VERSION = @RU_VERSION@
133 SED = @SED@
134 SET_MAKE = @SET_MAKE@
135 SHELL = @SHELL@
136 STRIP = @STRIP@
137 USE_NLS = @USE_NLS@
138 VERSION = @VERSION@
139 VERSION_INFO = @VERSION_INFO@
140 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
141 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
142 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
143 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
144 WITH_PERL_FALSE = @WITH_PERL_FALSE@
145 WITH_PERL_TRUE = @WITH_PERL_TRUE@
146 WITH_PHP_FALSE = @WITH_PHP_FALSE@
147 WITH_PHP_TRUE = @WITH_PHP_TRUE@
148 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
149 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
150 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
151 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
152 XGETTEXT = @XGETTEXT@
153 XGETTEXT_015 = @XGETTEXT_015@
154 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_CXX = @ac_ct_CXX@
157 ac_ct_F77 = @ac_ct_F77@
158 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
159 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
160 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
161 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
162 am__include = @am__include@
163 am__leading_dot = @am__leading_dot@
164 am__quote = @am__quote@
165 am__tar = @am__tar@
166 am__untar = @am__untar@
167 bindir = @bindir@
168 build = @build@
169 build_alias = @build_alias@
170 build_cpu = @build_cpu@
171 build_os = @build_os@
172 build_vendor = @build_vendor@
173 datadir = @datadir@
174 datarootdir = @datarootdir@
175 docdir = @docdir@
176 dvidir = @dvidir@
177 exec_prefix = @exec_prefix@
178 have_pascal = @have_pascal@
179 have_perl = @have_perl@
180 have_php = @have_php@
181 have_php_config = @have_php_config@
182 have_python = @have_python@
183 have_ruby = @have_ruby@
184 have_swig = @have_swig@
185 host = @host@
186 host_alias = @host_alias@
187 host_cpu = @host_cpu@
188 host_os = @host_os@
189 host_vendor = @host_vendor@
190 htmldir = @htmldir@
191 includedir = @includedir@
192 infodir = @infodir@
193 install_sh = @install_sh@
194 libdir = @libdir@
195 libexecdir = @libexecdir@
196 localedir = @localedir@
197 localstatedir = @localstatedir@
198 mandir = @mandir@
199 mkdir_p = @mkdir_p@
200 oldincludedir = @oldincludedir@
201 pdfdir = @pdfdir@
202 prefix = @prefix@
203 program_transform_name = @program_transform_name@
204 psdir = @psdir@
205 sbindir = @sbindir@
206 sharedstatedir = @sharedstatedir@
207 sysconfdir = @sysconfdir@
208 target_alias = @target_alias@
209 EXTRA_DIST = hdate.i hdate.ini
210 @WITH_PHP_TRUE@DEPS = $(top_builddir)/src/libhdate.la
211 @WITH_PHP_TRUE@CLEANFILES = *.o *.cpp *.h *.so *wrap*
212 all: all-am
213
214 .SUFFIXES:
215 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
216 @for dep in $?; do \
217 case '$(am__configure_deps)' in \
218 *$$dep*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
220 && exit 0; \
221 exit 1;; \
222 esac; \
223 done; \
224 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/php/Makefile'; \
225 cd $(top_srcdir) && \
226 $(AUTOMAKE) --gnu bindings/php/Makefile
227 .PRECIOUS: Makefile
228 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
229 @case '$?' in \
230 *config.status*) \
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
232 *) \
233 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
234 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
235 esac;
236
237 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239
240 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
242 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244
245 mostlyclean-libtool:
246 -rm -f *.lo
247
248 clean-libtool:
249 -rm -rf .libs _libs
250
251 distclean-libtool:
252 -rm -f libtool
253 uninstall-info-am:
254 tags: TAGS
255 TAGS:
256
257 ctags: CTAGS
258 CTAGS:
259
260
261 distdir: $(DISTFILES)
262 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
263 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
264 list='$(DISTFILES)'; for file in $$list; do \
265 case $$file in \
266 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
267 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
268 esac; \
269 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
270 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
271 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
272 dir="/$$dir"; \
273 $(mkdir_p) "$(distdir)$$dir"; \
274 else \
275 dir=''; \
276 fi; \
277 if test -d $$d/$$file; then \
278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
279 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
280 fi; \
281 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
282 else \
283 test -f $(distdir)/$$file \
284 || cp -p $$d/$$file $(distdir)/$$file \
285 || exit 1; \
286 fi; \
287 done
288 check-am: all-am
289 check: check-am
290 all-am: Makefile
291 installdirs:
292 install: install-am
293 install-exec: install-exec-am
294 install-data: install-data-am
295 uninstall: uninstall-am
296
297 install-am: all-am
298 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
299
300 installcheck: installcheck-am
301 install-strip:
302 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
303 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
304 `test -z '$(STRIP)' || \
305 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
306 mostlyclean-generic:
307
308 clean-generic:
309 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
310
311 distclean-generic:
312 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
313
314 maintainer-clean-generic:
315 @echo "This command is intended for maintainers to use"
316 @echo "it deletes files that may require special tools to rebuild."
317 @WITH_PHP_FALSE@install-data-local:
318 clean: clean-am
319
320 clean-am: clean-generic clean-libtool mostlyclean-am
321
322 distclean: distclean-am
323 -rm -f Makefile
324 distclean-am: clean-am distclean-generic distclean-libtool
325
326 dvi: dvi-am
327
328 dvi-am:
329
330 html: html-am
331
332 info: info-am
333
334 info-am:
335
336 install-data-am: install-data-local
337
338 install-exec-am:
339
340 install-info: install-info-am
341
342 install-man:
343
344 installcheck-am:
345
346 maintainer-clean: maintainer-clean-am
347 -rm -f Makefile
348 maintainer-clean-am: distclean-am maintainer-clean-generic
349
350 mostlyclean: mostlyclean-am
351
352 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
353
354 pdf: pdf-am
355
356 pdf-am:
357
358 ps: ps-am
359
360 ps-am:
361
362 uninstall-am: uninstall-info-am
363
364 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
365 distclean distclean-generic distclean-libtool distdir dvi \
366 dvi-am html html-am info info-am install install-am \
367 install-data install-data-am install-data-local install-exec \
368 install-exec-am install-info install-info-am install-man \
369 install-strip installcheck installcheck-am installdirs \
370 maintainer-clean maintainer-clean-generic mostlyclean \
371 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
372 uninstall uninstall-am uninstall-info-am
373
374
375 @WITH_PHP_TRUE@all-am: hdate.so
376
377 @WITH_PHP_TRUE@hdate.so: hdate_wrap.cpp
378 @WITH_PHP_TRUE@ g++ -I$(top_srcdir)/src `php-config --includes` -fpic -c hdate_wrap.cpp
379 @WITH_PHP_TRUE@ gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -lstdc++ -o hdate.so
380
381 @WITH_PHP_TRUE@hdate_wrap.cpp: hdate.i
382 @WITH_PHP_TRUE@ swig -php5 -c++ hdate.i
383
384 @WITH_PHP_TRUE@install-data-local: hdate.so hdate.ini
385 @WITH_PHP_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PH_MODULES_PATH)
386 @WITH_PHP_TRUE@ $(INSTALL_DATA) hdate.so $(DESTDIR)$(PH_MODULES_PATH)/hdate.so
387
388 @WITH_PHP_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PH_CONFIG_PATH)
389 @WITH_PHP_TRUE@ $(INSTALL_DATA) hdate.ini $(DESTDIR)$(PH_CONFIG_PATH)/hdate.ini
390 # Tell versions [3.59,3.63) of GNU make to not export all variables.
391 # Otherwise a system limit (for SysV at least) may be exceeded.
392 .NOEXPORT:
+0
-9
current/bindings/php/hdate.i less more
0 // file : hdate.i
1 %module hdate
2 %{
3 #include "../../src/hdatepp.h"
4 %}
5
6 %include ../../src/hdatepp.h
7
8
+0
-2
current/bindings/php/hdate.ini less more
0 # configuration for php hdate module
1 extension=hdate.so
+0
-25
current/bindings/python/Makefile.am less more
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
-391
current/bindings/python/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings/python
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
53 ACLOCAL = @ACLOCAL@
54 AMDEP_FALSE = @AMDEP_FALSE@
55 AMDEP_TRUE = @AMDEP_TRUE@
56 AMTAR = @AMTAR@
57 AR = @AR@
58 AUTOCONF = @AUTOCONF@
59 AUTOHEADER = @AUTOHEADER@
60 AUTOMAKE = @AUTOMAKE@
61 AWK = @AWK@
62 CC = @CC@
63 CCDEPMODE = @CCDEPMODE@
64 CFLAGS = @CFLAGS@
65 CPP = @CPP@
66 CPPFLAGS = @CPPFLAGS@
67 CXX = @CXX@
68 CXXCPP = @CXXCPP@
69 CXXDEPMODE = @CXXDEPMODE@
70 CXXFLAGS = @CXXFLAGS@
71 CYGPATH_W = @CYGPATH_W@
72 DATADIRNAME = @DATADIRNAME@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 ECHO = @ECHO@
76 ECHO_C = @ECHO_C@
77 ECHO_N = @ECHO_N@
78 ECHO_T = @ECHO_T@
79 EGREP = @EGREP@
80 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
83 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
84 GMSGFMT = @GMSGFMT@
85 GMSGFMT_015 = @GMSGFMT_015@
86 GREP = @GREP@
87 INSTALL_DATA = @INSTALL_DATA@
88 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89 INSTALL_SCRIPT = @INSTALL_SCRIPT@
90 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91 INTLLIBS = @INTLLIBS@
92 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
93 LDFLAGS = @LDFLAGS@
94 LIBICONV = @LIBICONV@
95 LIBINTL = @LIBINTL@
96 LIBOBJS = @LIBOBJS@
97 LIBS = @LIBS@
98 LIBTOOL = @LIBTOOL@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
105 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
106 MAKEINFO = @MAKEINFO@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 OBJEXT = @OBJEXT@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PA_MODULES_PATH = @PA_MODULES_PATH@
119 PA_VERSION = @PA_VERSION@
120 PE_CFLAGS = @PE_CFLAGS@
121 PE_MODULES_PATH = @PE_MODULES_PATH@
122 PH_CONFIG_PATH = @PH_CONFIG_PATH@
123 PH_MODULES_PATH = @PH_MODULES_PATH@
124 PKG_CONFIG = @PKG_CONFIG@
125 POSUB = @POSUB@
126 PY_CFLAGS = @PY_CFLAGS@
127 PY_MODULES_PATH = @PY_MODULES_PATH@
128 PY_VERSION = @PY_VERSION@
129 RANLIB = @RANLIB@
130 RU_CFLAGS = @RU_CFLAGS@
131 RU_MODULES_PATH = @RU_MODULES_PATH@
132 RU_VERSION = @RU_VERSION@
133 SED = @SED@
134 SET_MAKE = @SET_MAKE@
135 SHELL = @SHELL@
136 STRIP = @STRIP@
137 USE_NLS = @USE_NLS@
138 VERSION = @VERSION@
139 VERSION_INFO = @VERSION_INFO@
140 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
141 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
142 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
143 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
144 WITH_PERL_FALSE = @WITH_PERL_FALSE@
145 WITH_PERL_TRUE = @WITH_PERL_TRUE@
146 WITH_PHP_FALSE = @WITH_PHP_FALSE@
147 WITH_PHP_TRUE = @WITH_PHP_TRUE@
148 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
149 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
150 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
151 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
152 XGETTEXT = @XGETTEXT@
153 XGETTEXT_015 = @XGETTEXT_015@
154 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_CXX = @ac_ct_CXX@
157 ac_ct_F77 = @ac_ct_F77@
158 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
159 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
160 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
161 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
162 am__include = @am__include@
163 am__leading_dot = @am__leading_dot@
164 am__quote = @am__quote@
165 am__tar = @am__tar@
166 am__untar = @am__untar@
167 bindir = @bindir@
168 build = @build@
169 build_alias = @build_alias@
170 build_cpu = @build_cpu@
171 build_os = @build_os@
172 build_vendor = @build_vendor@
173 datadir = @datadir@
174 datarootdir = @datarootdir@
175 docdir = @docdir@
176 dvidir = @dvidir@
177 exec_prefix = @exec_prefix@
178 have_pascal = @have_pascal@
179 have_perl = @have_perl@
180 have_php = @have_php@
181 have_php_config = @have_php_config@
182 have_python = @have_python@
183 have_ruby = @have_ruby@
184 have_swig = @have_swig@
185 host = @host@
186 host_alias = @host_alias@
187 host_cpu = @host_cpu@
188 host_os = @host_os@
189 host_vendor = @host_vendor@
190 htmldir = @htmldir@
191 includedir = @includedir@
192 infodir = @infodir@
193 install_sh = @install_sh@
194 libdir = @libdir@
195 libexecdir = @libexecdir@
196 localedir = @localedir@
197 localstatedir = @localstatedir@
198 mandir = @mandir@
199 mkdir_p = @mkdir_p@
200 oldincludedir = @oldincludedir@
201 pdfdir = @pdfdir@
202 prefix = @prefix@
203 program_transform_name = @program_transform_name@
204 psdir = @psdir@
205 sbindir = @sbindir@
206 sharedstatedir = @sharedstatedir@
207 sysconfdir = @sysconfdir@
208 target_alias = @target_alias@
209 EXTRA_DIST = hdate.i
210 @WITH_PYTHON_TRUE@DEPS = $(top_builddir)/src/libhdate.la
211 @WITH_PYTHON_TRUE@CLEANFILES = *.o *.cxx *.so *wrap* *.py
212 all: all-am
213
214 .SUFFIXES:
215 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
216 @for dep in $?; do \
217 case '$(am__configure_deps)' in \
218 *$$dep*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
220 && exit 0; \
221 exit 1;; \
222 esac; \
223 done; \
224 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/python/Makefile'; \
225 cd $(top_srcdir) && \
226 $(AUTOMAKE) --gnu bindings/python/Makefile
227 .PRECIOUS: Makefile
228 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
229 @case '$?' in \
230 *config.status*) \
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
232 *) \
233 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
234 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
235 esac;
236
237 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239
240 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
242 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244
245 mostlyclean-libtool:
246 -rm -f *.lo
247
248 clean-libtool:
249 -rm -rf .libs _libs
250
251 distclean-libtool:
252 -rm -f libtool
253 uninstall-info-am:
254 tags: TAGS
255 TAGS:
256
257 ctags: CTAGS
258 CTAGS:
259
260
261 distdir: $(DISTFILES)
262 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
263 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
264 list='$(DISTFILES)'; for file in $$list; do \
265 case $$file in \
266 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
267 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
268 esac; \
269 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
270 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
271 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
272 dir="/$$dir"; \
273 $(mkdir_p) "$(distdir)$$dir"; \
274 else \
275 dir=''; \
276 fi; \
277 if test -d $$d/$$file; then \
278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
279 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
280 fi; \
281 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
282 else \
283 test -f $(distdir)/$$file \
284 || cp -p $$d/$$file $(distdir)/$$file \
285 || exit 1; \
286 fi; \
287 done
288 check-am: all-am
289 check: check-am
290 all-am: Makefile
291 installdirs:
292 install: install-am
293 install-exec: install-exec-am
294 install-data: install-data-am
295 uninstall: uninstall-am
296
297 install-am: all-am
298 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
299
300 installcheck: installcheck-am
301 install-strip:
302 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
303 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
304 `test -z '$(STRIP)' || \
305 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
306 mostlyclean-generic:
307
308 clean-generic:
309 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
310
311 distclean-generic:
312 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
313
314 maintainer-clean-generic:
315 @echo "This command is intended for maintainers to use"
316 @echo "it deletes files that may require special tools to rebuild."
317 @WITH_PYTHON_FALSE@install-data-local:
318 clean: clean-am
319
320 clean-am: clean-generic clean-libtool mostlyclean-am
321
322 distclean: distclean-am
323 -rm -f Makefile
324 distclean-am: clean-am distclean-generic distclean-libtool
325
326 dvi: dvi-am
327
328 dvi-am:
329
330 html: html-am
331
332 info: info-am
333
334 info-am:
335
336 install-data-am: install-data-local
337
338 install-exec-am:
339
340 install-info: install-info-am
341
342 install-man:
343
344 installcheck-am:
345
346 maintainer-clean: maintainer-clean-am
347 -rm -f Makefile
348 maintainer-clean-am: distclean-am maintainer-clean-generic
349
350 mostlyclean: mostlyclean-am
351
352 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
353
354 pdf: pdf-am
355
356 pdf-am:
357
358 ps: ps-am
359
360 ps-am:
361
362 uninstall-am: uninstall-info-am
363
364 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
365 distclean distclean-generic distclean-libtool distdir dvi \
366 dvi-am html html-am info info-am install install-am \
367 install-data install-data-am install-data-local install-exec \
368 install-exec-am install-info install-info-am install-man \
369 install-strip installcheck installcheck-am installdirs \
370 maintainer-clean maintainer-clean-generic mostlyclean \
371 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
372 uninstall uninstall-am uninstall-info-am
373
374
375 @WITH_PYTHON_TRUE@all-am: _hdate.so
376
377 @WITH_PYTHON_TRUE@_hdate.so: hdate_wrap.cxx
378 @WITH_PYTHON_TRUE@ g++ -fpic -c hdate_wrap.cxx $(PY_CFLAGS) -I$(top_srcdir)/src
379 @WITH_PYTHON_TRUE@ g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o _hdate.so
380
381 @WITH_PYTHON_TRUE@hdate_wrap.cxx: hdate.i
382 @WITH_PYTHON_TRUE@ swig -python -c++ hdate.i
383
384 @WITH_PYTHON_TRUE@install-data-local: _hdate.so
385 @WITH_PYTHON_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PY_MODULES_PATH)
386 @WITH_PYTHON_TRUE@ $(INSTALL_DATA) _hdate.so $(DESTDIR)$(PY_MODULES_PATH)/_hdate.so
387 @WITH_PYTHON_TRUE@ $(INSTALL_DATA) hdate.py $(DESTDIR)$(PY_MODULES_PATH)/hdate.py
388 # Tell versions [3.59,3.63) of GNU make to not export all variables.
389 # Otherwise a system limit (for SysV at least) may be exceeded.
390 .NOEXPORT:
+0
-12
current/bindings/python/hdate.i less more
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
-24
current/bindings/ruby/Makefile.am less more
0
1 EXTRA_DIST = hdate.i
2
3 if WITH_RUBY
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.cxx *.so *wrap*
8
9 all-am: hdate.so
10
11
12 hdate.so: hdate_wrap.cxx
13 g++ -fpic -fno-strict-aliasing -g -O2 -c hdate_wrap.cxx $(RU_CFLAGS) -I$(top_srcdir)/src
14 gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -rdynamic -Wl,-export-dynamic -lruby$(RU_VERSION) -lpthread -ldl -lcrypt -lm -lc -lstdc++ -o hdate.so
15
16 hdate_wrap.cxx: hdate.i
17 swig -c++ -ruby hdate.i
18
19 install-data-local: hdate.so
20 $(mkinstalldirs) $(DESTDIR)$(RU_MODULES_PATH)
21 $(INSTALL_DATA) hdate.so $(DESTDIR)$(RU_MODULES_PATH)/hdate.so
22
23 endif
+0
-390
current/bindings/ruby/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings/ruby
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
53 ACLOCAL = @ACLOCAL@
54 AMDEP_FALSE = @AMDEP_FALSE@
55 AMDEP_TRUE = @AMDEP_TRUE@
56 AMTAR = @AMTAR@
57 AR = @AR@
58 AUTOCONF = @AUTOCONF@
59 AUTOHEADER = @AUTOHEADER@
60 AUTOMAKE = @AUTOMAKE@
61 AWK = @AWK@
62 CC = @CC@
63 CCDEPMODE = @CCDEPMODE@
64 CFLAGS = @CFLAGS@
65 CPP = @CPP@
66 CPPFLAGS = @CPPFLAGS@
67 CXX = @CXX@
68 CXXCPP = @CXXCPP@
69 CXXDEPMODE = @CXXDEPMODE@
70 CXXFLAGS = @CXXFLAGS@
71 CYGPATH_W = @CYGPATH_W@
72 DATADIRNAME = @DATADIRNAME@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 ECHO = @ECHO@
76 ECHO_C = @ECHO_C@
77 ECHO_N = @ECHO_N@
78 ECHO_T = @ECHO_T@
79 EGREP = @EGREP@
80 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
83 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
84 GMSGFMT = @GMSGFMT@
85 GMSGFMT_015 = @GMSGFMT_015@
86 GREP = @GREP@
87 INSTALL_DATA = @INSTALL_DATA@
88 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89 INSTALL_SCRIPT = @INSTALL_SCRIPT@
90 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91 INTLLIBS = @INTLLIBS@
92 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
93 LDFLAGS = @LDFLAGS@
94 LIBICONV = @LIBICONV@
95 LIBINTL = @LIBINTL@
96 LIBOBJS = @LIBOBJS@
97 LIBS = @LIBS@
98 LIBTOOL = @LIBTOOL@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
105 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
106 MAKEINFO = @MAKEINFO@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 OBJEXT = @OBJEXT@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PA_MODULES_PATH = @PA_MODULES_PATH@
119 PA_VERSION = @PA_VERSION@
120 PE_CFLAGS = @PE_CFLAGS@
121 PE_MODULES_PATH = @PE_MODULES_PATH@
122 PH_CONFIG_PATH = @PH_CONFIG_PATH@
123 PH_MODULES_PATH = @PH_MODULES_PATH@
124 PKG_CONFIG = @PKG_CONFIG@
125 POSUB = @POSUB@
126 PY_CFLAGS = @PY_CFLAGS@
127 PY_MODULES_PATH = @PY_MODULES_PATH@
128 PY_VERSION = @PY_VERSION@
129 RANLIB = @RANLIB@
130 RU_CFLAGS = @RU_CFLAGS@
131 RU_MODULES_PATH = @RU_MODULES_PATH@
132 RU_VERSION = @RU_VERSION@
133 SED = @SED@
134 SET_MAKE = @SET_MAKE@
135 SHELL = @SHELL@
136 STRIP = @STRIP@
137 USE_NLS = @USE_NLS@
138 VERSION = @VERSION@
139 VERSION_INFO = @VERSION_INFO@
140 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
141 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
142 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
143 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
144 WITH_PERL_FALSE = @WITH_PERL_FALSE@
145 WITH_PERL_TRUE = @WITH_PERL_TRUE@
146 WITH_PHP_FALSE = @WITH_PHP_FALSE@
147 WITH_PHP_TRUE = @WITH_PHP_TRUE@
148 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
149 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
150 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
151 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
152 XGETTEXT = @XGETTEXT@
153 XGETTEXT_015 = @XGETTEXT_015@
154 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_CXX = @ac_ct_CXX@
157 ac_ct_F77 = @ac_ct_F77@
158 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
159 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
160 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
161 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
162 am__include = @am__include@
163 am__leading_dot = @am__leading_dot@
164 am__quote = @am__quote@
165 am__tar = @am__tar@
166 am__untar = @am__untar@
167 bindir = @bindir@
168 build = @build@
169 build_alias = @build_alias@
170 build_cpu = @build_cpu@
171 build_os = @build_os@
172 build_vendor = @build_vendor@
173 datadir = @datadir@
174 datarootdir = @datarootdir@
175 docdir = @docdir@
176 dvidir = @dvidir@
177 exec_prefix = @exec_prefix@
178 have_pascal = @have_pascal@
179 have_perl = @have_perl@
180 have_php = @have_php@
181 have_php_config = @have_php_config@
182 have_python = @have_python@
183 have_ruby = @have_ruby@
184 have_swig = @have_swig@
185 host = @host@
186 host_alias = @host_alias@
187 host_cpu = @host_cpu@
188 host_os = @host_os@
189 host_vendor = @host_vendor@
190 htmldir = @htmldir@
191 includedir = @includedir@
192 infodir = @infodir@
193 install_sh = @install_sh@
194 libdir = @libdir@
195 libexecdir = @libexecdir@
196 localedir = @localedir@
197 localstatedir = @localstatedir@
198 mandir = @mandir@
199 mkdir_p = @mkdir_p@
200 oldincludedir = @oldincludedir@
201 pdfdir = @pdfdir@
202 prefix = @prefix@
203 program_transform_name = @program_transform_name@
204 psdir = @psdir@
205 sbindir = @sbindir@
206 sharedstatedir = @sharedstatedir@
207 sysconfdir = @sysconfdir@
208 target_alias = @target_alias@
209 EXTRA_DIST = hdate.i
210 @WITH_RUBY_TRUE@DEPS = $(top_builddir)/src/libhdate.la
211 @WITH_RUBY_TRUE@CLEANFILES = *.o *.cxx *.so *wrap*
212 all: all-am
213
214 .SUFFIXES:
215 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
216 @for dep in $?; do \
217 case '$(am__configure_deps)' in \
218 *$$dep*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
220 && exit 0; \
221 exit 1;; \
222 esac; \
223 done; \
224 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/ruby/Makefile'; \
225 cd $(top_srcdir) && \
226 $(AUTOMAKE) --gnu bindings/ruby/Makefile
227 .PRECIOUS: Makefile
228 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
229 @case '$?' in \
230 *config.status*) \
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
232 *) \
233 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
234 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
235 esac;
236
237 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239
240 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
242 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244
245 mostlyclean-libtool:
246 -rm -f *.lo
247
248 clean-libtool:
249 -rm -rf .libs _libs
250
251 distclean-libtool:
252 -rm -f libtool
253 uninstall-info-am:
254 tags: TAGS
255 TAGS:
256
257 ctags: CTAGS
258 CTAGS:
259
260
261 distdir: $(DISTFILES)
262 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
263 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
264 list='$(DISTFILES)'; for file in $$list; do \
265 case $$file in \
266 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
267 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
268 esac; \
269 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
270 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
271 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
272 dir="/$$dir"; \
273 $(mkdir_p) "$(distdir)$$dir"; \
274 else \
275 dir=''; \
276 fi; \
277 if test -d $$d/$$file; then \
278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
279 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
280 fi; \
281 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
282 else \
283 test -f $(distdir)/$$file \
284 || cp -p $$d/$$file $(distdir)/$$file \
285 || exit 1; \
286 fi; \
287 done
288 check-am: all-am
289 check: check-am
290 all-am: Makefile
291 installdirs:
292 install: install-am
293 install-exec: install-exec-am
294 install-data: install-data-am
295 uninstall: uninstall-am
296
297 install-am: all-am
298 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
299
300 installcheck: installcheck-am
301 install-strip:
302 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
303 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
304 `test -z '$(STRIP)' || \
305 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
306 mostlyclean-generic:
307
308 clean-generic:
309 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
310
311 distclean-generic:
312 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
313
314 maintainer-clean-generic:
315 @echo "This command is intended for maintainers to use"
316 @echo "it deletes files that may require special tools to rebuild."
317 @WITH_RUBY_FALSE@install-data-local:
318 clean: clean-am
319
320 clean-am: clean-generic clean-libtool mostlyclean-am
321
322 distclean: distclean-am
323 -rm -f Makefile
324 distclean-am: clean-am distclean-generic distclean-libtool
325
326 dvi: dvi-am
327
328 dvi-am:
329
330 html: html-am
331
332 info: info-am
333
334 info-am:
335
336 install-data-am: install-data-local
337
338 install-exec-am:
339
340 install-info: install-info-am
341
342 install-man:
343
344 installcheck-am:
345
346 maintainer-clean: maintainer-clean-am
347 -rm -f Makefile
348 maintainer-clean-am: distclean-am maintainer-clean-generic
349
350 mostlyclean: mostlyclean-am
351
352 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
353
354 pdf: pdf-am
355
356 pdf-am:
357
358 ps: ps-am
359
360 ps-am:
361
362 uninstall-am: uninstall-info-am
363
364 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
365 distclean distclean-generic distclean-libtool distdir dvi \
366 dvi-am html html-am info info-am install install-am \
367 install-data install-data-am install-data-local install-exec \
368 install-exec-am install-info install-info-am install-man \
369 install-strip installcheck installcheck-am installdirs \
370 maintainer-clean maintainer-clean-generic mostlyclean \
371 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
372 uninstall uninstall-am uninstall-info-am
373
374
375 @WITH_RUBY_TRUE@all-am: hdate.so
376
377 @WITH_RUBY_TRUE@hdate.so: hdate_wrap.cxx
378 @WITH_RUBY_TRUE@ g++ -fpic -fno-strict-aliasing -g -O2 -c hdate_wrap.cxx $(RU_CFLAGS) -I$(top_srcdir)/src
379 @WITH_RUBY_TRUE@ gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -rdynamic -Wl,-export-dynamic -lruby$(RU_VERSION) -lpthread -ldl -lcrypt -lm -lc -lstdc++ -o hdate.so
380
381 @WITH_RUBY_TRUE@hdate_wrap.cxx: hdate.i
382 @WITH_RUBY_TRUE@ swig -c++ -ruby hdate.i
383
384 @WITH_RUBY_TRUE@install-data-local: hdate.so
385 @WITH_RUBY_TRUE@ $(mkinstalldirs) $(DESTDIR)$(RU_MODULES_PATH)
386 @WITH_RUBY_TRUE@ $(INSTALL_DATA) hdate.so $(DESTDIR)$(RU_MODULES_PATH)/hdate.so
387 # Tell versions [3.59,3.63) of GNU make to not export all variables.
388 # Otherwise a system limit (for SysV at least) may be exceeded.
389 .NOEXPORT:
+0
-9
current/bindings/ruby/hdate.i less more
0 // file : hdate.i
1 %module hdate
2 %{
3 #include "../../src/hdatepp.h"
4 %}
5
6 %include ../../src/hdatepp.h
7
8
+0
-142
current/compile less more
0 #! /bin/sh
1 # Wrapper for compilers which do not understand `-c -o'.
2
3 scriptversion=2005-05-14.22
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # This file is maintained in Automake, please report
28 # bugs to <bug-automake@gnu.org> or send patches to
29 # <automake-patches@gnu.org>.
30
31 case $1 in
32 '')
33 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
34 exit 1;
35 ;;
36 -h | --h*)
37 cat <<\EOF
38 Usage: compile [--help] [--version] PROGRAM [ARGS]
39
40 Wrapper for compilers which do not understand `-c -o'.
41 Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
42 arguments, and rename the output as expected.
43
44 If you are trying to build a whole package this is not the
45 right script to run: please start by reading the file `INSTALL'.
46
47 Report bugs to <bug-automake@gnu.org>.
48 EOF
49 exit $?
50 ;;
51 -v | --v*)
52 echo "compile $scriptversion"
53 exit $?
54 ;;
55 esac
56
57 ofile=
58 cfile=
59 eat=
60
61 for arg
62 do
63 if test -n "$eat"; then
64 eat=
65 else
66 case $1 in
67 -o)
68 # configure might choose to run compile as `compile cc -o foo foo.c'.
69 # So we strip `-o arg' only if arg is an object.
70 eat=1
71 case $2 in
72 *.o | *.obj)
73 ofile=$2
74 ;;
75 *)
76 set x "$@" -o "$2"
77 shift
78 ;;
79 esac
80 ;;
81 *.c)
82 cfile=$1
83 set x "$@" "$1"
84 shift
85 ;;
86 *)
87 set x "$@" "$1"
88 shift
89 ;;
90 esac
91 fi
92 shift
93 done
94
95 if test -z "$ofile" || test -z "$cfile"; then
96 # If no `-o' option was seen then we might have been invoked from a
97 # pattern rule where we don't need one. That is ok -- this is a
98 # normal compilation that the losing compiler can handle. If no
99 # `.c' file was seen then we are probably linking. That is also
100 # ok.
101 exec "$@"
102 fi
103
104 # Name of file we expect compiler to create.
105 cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
106
107 # Create the lock directory.
108 # Note: use `[/.-]' here to ensure that we don't use the same name
109 # that we are using for the .o file. Also, base the name on the expected
110 # object file name, since that is what matters with a parallel build.
111 lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
112 while true; do
113 if mkdir "$lockdir" >/dev/null 2>&1; then
114 break
115 fi
116 sleep 1
117 done
118 # FIXME: race condition here if user kills between mkdir and trap.
119 trap "rmdir '$lockdir'; exit 1" 1 2 15
120
121 # Run the compile.
122 "$@"
123 ret=$?
124
125 if test -f "$cofile"; then
126 mv "$cofile" "$ofile"
127 elif test -f "${cofile}bj"; then
128 mv "${cofile}bj" "$ofile"
129 fi
130
131 rmdir "$lockdir"
132 exit $ret
133
134 # Local Variables:
135 # mode: shell-script
136 # sh-indentation: 2
137 # eval: (add-hook 'write-file-hooks 'time-stamp)
138 # time-stamp-start: "scriptversion="
139 # time-stamp-format: "%:y-%02m-%02d.%02H"
140 # time-stamp-end: "$"
141 # End:
+0
-1516
current/config.guess less more
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, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2007-07-22'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
59 Free Software Foundation, Inc.
60
61 This is free software; see the source for copying conditions. There is NO
62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64 help="
65 Try \`$me --help' for more information."
66
67 # Parse command line
68 while test $# -gt 0 ; do
69 case $1 in
70 --time-stamp | --time* | -t )
71 echo "$timestamp" ; exit ;;
72 --version | -v )
73 echo "$version" ; exit ;;
74 --help | --h* | -h )
75 echo "$usage"; exit ;;
76 -- ) # Stop option processing
77 shift; break ;;
78 - ) # Use stdin as input.
79 break ;;
80 -* )
81 echo "$me: invalid option $1$help" >&2
82 exit 1 ;;
83 * )
84 break ;;
85 esac
86 done
87
88 if test $# != 0; then
89 echo "$me: too many arguments$help" >&2
90 exit 1
91 fi
92
93 trap 'exit 1' 1 2 15
94
95 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
96 # compiler to aid in system detection is discouraged as it requires
97 # temporary files to be created and, as you can see below, it is a
98 # headache to deal with in a portable fashion.
99
100 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
101 # use `HOST_CC' if defined, but it is deprecated.
102
103 # Portable tmp directory creation inspired by the Autoconf team.
104
105 set_cc_for_build='
106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108 : ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113 dummy=$tmp/dummy ;
114 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115 case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do
118 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
119 CC_FOR_BUILD="$c"; break ;
120 fi ;
121 done ;
122 if test x"$CC_FOR_BUILD" = x ; then
123 CC_FOR_BUILD=no_compiler_found ;
124 fi
125 ;;
126 ,,*) CC_FOR_BUILD=$CC ;;
127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128 esac ; set_cc_for_build= ;'
129
130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131 # (ghazi@noc.rutgers.edu 1994-08-24)
132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
133 PATH=$PATH:/.attbin ; export PATH
134 fi
135
136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141 # Note: order is significant - the case branches are not exclusive.
142
143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
163 sh5el) machine=sh5le-unknown ;;
164 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165 esac
166 # The Operating System including object format, if it has switched
167 # to ELF recently, or will in the future.
168 case "${UNAME_MACHINE_ARCH}" in
169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170 eval $set_cc_for_build
171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172 | grep __ELF__ >/dev/null
173 then
174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175 # Return netbsd for either. FIX?
176 os=netbsd
177 else
178 os=netbsdelf
179 fi
180 ;;
181 *)
182 os=netbsd
183 ;;
184 esac
185 # The OS release
186 # Debian GNU/NetBSD machines have a different userland, and
187 # thus, need a distinct triplet. However, they do not need
188 # kernel version information, so it can be replaced with a
189 # suitable tag, in the style of linux-gnu.
190 case "${UNAME_VERSION}" in
191 Debian*)
192 release='-gnu'
193 ;;
194 *)
195 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
196 ;;
197 esac
198 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
199 # contains redundant information, the shorter form:
200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201 echo "${machine}-${os}${release}"
202 exit ;;
203 *:OpenBSD:*:*)
204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
207 *:ekkoBSD:*:*)
208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
213 macppc:MirBSD:*:*)
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
215 exit ;;
216 *:MirBSD:*:*)
217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
218 exit ;;
219 alpha:OSF1:*:*)
220 case $UNAME_RELEASE in
221 *4.0)
222 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223 ;;
224 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 ;;
227 esac
228 # According to Compaq, /usr/sbin/psrinfo has been available on
229 # OSF/1 and Tru64 systems produced since 1995. I hope that
230 # covers most systems running today. This code pipes the CPU
231 # types through head -n 1, so we only detect the type of CPU 0.
232 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
233 case "$ALPHA_CPU_TYPE" in
234 "EV4 (21064)")
235 UNAME_MACHINE="alpha" ;;
236 "EV4.5 (21064)")
237 UNAME_MACHINE="alpha" ;;
238 "LCA4 (21066/21068)")
239 UNAME_MACHINE="alpha" ;;
240 "EV5 (21164)")
241 UNAME_MACHINE="alphaev5" ;;
242 "EV5.6 (21164A)")
243 UNAME_MACHINE="alphaev56" ;;
244 "EV5.6 (21164PC)")
245 UNAME_MACHINE="alphapca56" ;;
246 "EV5.7 (21164PC)")
247 UNAME_MACHINE="alphapca57" ;;
248 "EV6 (21264)")
249 UNAME_MACHINE="alphaev6" ;;
250 "EV6.7 (21264A)")
251 UNAME_MACHINE="alphaev67" ;;
252 "EV6.8CB (21264C)")
253 UNAME_MACHINE="alphaev68" ;;
254 "EV6.8AL (21264B)")
255 UNAME_MACHINE="alphaev68" ;;
256 "EV6.8CX (21264D)")
257 UNAME_MACHINE="alphaev68" ;;
258 "EV6.9A (21264/EV69A)")
259 UNAME_MACHINE="alphaev69" ;;
260 "EV7 (21364)")
261 UNAME_MACHINE="alphaev7" ;;
262 "EV7.9 (21364A)")
263 UNAME_MACHINE="alphaev79" ;;
264 esac
265 # A Pn.n version is a patched version.
266 # A Vn.n version is a released version.
267 # A Tn.n version is a released field test version.
268 # A Xn.n version is an unreleased experimental baselevel.
269 # 1.2 uses "1.2" for uname -r.
270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
272 Alpha\ *:Windows_NT*:*)
273 # How do we know it's Interix rather than the generic POSIX subsystem?
274 # Should we change UNAME_MACHINE based on the output of uname instead
275 # of the specific Alpha model?
276 echo alpha-pc-interix
277 exit ;;
278 21064:Windows_NT:50:3)
279 echo alpha-dec-winnt3.5
280 exit ;;
281 Amiga*:UNIX_System_V:4.0:*)
282 echo m68k-unknown-sysv4
283 exit ;;
284 *:[Aa]miga[Oo][Ss]:*:*)
285 echo ${UNAME_MACHINE}-unknown-amigaos
286 exit ;;
287 *:[Mm]orph[Oo][Ss]:*:*)
288 echo ${UNAME_MACHINE}-unknown-morphos
289 exit ;;
290 *:OS/390:*:*)
291 echo i370-ibm-openedition
292 exit ;;
293 *:z/VM:*:*)
294 echo s390-ibm-zvmoe
295 exit ;;
296 *:OS400:*:*)
297 echo powerpc-ibm-os400
298 exit ;;
299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300 echo arm-acorn-riscix${UNAME_RELEASE}
301 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
303 echo arm-unknown-riscos
304 exit ;;
305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
306 echo hppa1.1-hitachi-hiuxmpp
307 exit ;;
308 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
309 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
310 if test "`(/bin/universe) 2>/dev/null`" = att ; then
311 echo pyramid-pyramid-sysv3
312 else
313 echo pyramid-pyramid-bsd
314 fi
315 exit ;;
316 NILE*:*:*:dcosx)
317 echo pyramid-pyramid-svr4
318 exit ;;
319 DRS?6000:unix:4.0:6*)
320 echo sparc-icl-nx6
321 exit ;;
322 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
323 case `/usr/bin/uname -p` in
324 sparc) echo sparc-icl-nx7; exit ;;
325 esac ;;
326 sun4H:SunOS:5.*:*)
327 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328 exit ;;
329 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
330 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331 exit ;;
332 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
333 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334 exit ;;
335 sun4*:SunOS:6*:*)
336 # According to config.sub, this is the proper way to canonicalize
337 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
338 # it's likely to be more like Solaris than SunOS4.
339 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
340 exit ;;
341 sun4*:SunOS:*:*)
342 case "`/usr/bin/arch -k`" in
343 Series*|S4*)
344 UNAME_RELEASE=`uname -v`
345 ;;
346 esac
347 # Japanese Language versions have a version number like `4.1.3-JL'.
348 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
349 exit ;;
350 sun3*:SunOS:*:*)
351 echo m68k-sun-sunos${UNAME_RELEASE}
352 exit ;;
353 sun*:*:4.2BSD:*)
354 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
355 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
356 case "`/bin/arch`" in
357 sun3)
358 echo m68k-sun-sunos${UNAME_RELEASE}
359 ;;
360 sun4)
361 echo sparc-sun-sunos${UNAME_RELEASE}
362 ;;
363 esac
364 exit ;;
365 aushp:SunOS:*:*)
366 echo sparc-auspex-sunos${UNAME_RELEASE}
367 exit ;;
368 # The situation for MiNT is a little confusing. The machine name
369 # can be virtually everything (everything which is not
370 # "atarist" or "atariste" at least should have a processor
371 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
372 # to the lowercase version "mint" (or "freemint"). Finally
373 # the system name "TOS" denotes a system which is actually not
374 # MiNT. But MiNT is downward compatible to TOS, so this should
375 # be no problem.
376 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
377 echo m68k-atari-mint${UNAME_RELEASE}
378 exit ;;
379 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
380 echo m68k-atari-mint${UNAME_RELEASE}
381 exit ;;
382 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
383 echo m68k-atari-mint${UNAME_RELEASE}
384 exit ;;
385 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
386 echo m68k-milan-mint${UNAME_RELEASE}
387 exit ;;
388 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
389 echo m68k-hades-mint${UNAME_RELEASE}
390 exit ;;
391 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
392 echo m68k-unknown-mint${UNAME_RELEASE}
393 exit ;;
394 m68k:machten:*:*)
395 echo m68k-apple-machten${UNAME_RELEASE}
396 exit ;;
397 powerpc:machten:*:*)
398 echo powerpc-apple-machten${UNAME_RELEASE}
399 exit ;;
400 RISC*:Mach:*:*)
401 echo mips-dec-mach_bsd4.3
402 exit ;;
403 RISC*:ULTRIX:*:*)
404 echo mips-dec-ultrix${UNAME_RELEASE}
405 exit ;;
406 VAX*:ULTRIX*:*:*)
407 echo vax-dec-ultrix${UNAME_RELEASE}
408 exit ;;
409 2020:CLIX:*:* | 2430:CLIX:*:*)
410 echo clipper-intergraph-clix${UNAME_RELEASE}
411 exit ;;
412 mips:*:*:UMIPS | mips:*:*:RISCos)
413 eval $set_cc_for_build
414 sed 's/^ //' << EOF >$dummy.c
415 #ifdef __cplusplus
416 #include <stdio.h> /* for printf() prototype */
417 int main (int argc, char *argv[]) {
418 #else
419 int main (argc, argv) int argc; char *argv[]; {
420 #endif
421 #if defined (host_mips) && defined (MIPSEB)
422 #if defined (SYSTYPE_SYSV)
423 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
424 #endif
425 #if defined (SYSTYPE_SVR4)
426 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
427 #endif
428 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
429 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
430 #endif
431 #endif
432 exit (-1);
433 }
434 EOF
435 $CC_FOR_BUILD -o $dummy $dummy.c &&
436 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
437 SYSTEM_NAME=`$dummy $dummyarg` &&
438 { echo "$SYSTEM_NAME"; exit; }
439 echo mips-mips-riscos${UNAME_RELEASE}
440 exit ;;
441 Motorola:PowerMAX_OS:*:*)
442 echo powerpc-motorola-powermax
443 exit ;;
444 Motorola:*:4.3:PL8-*)
445 echo powerpc-harris-powermax
446 exit ;;
447 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
448 echo powerpc-harris-powermax
449 exit ;;
450 Night_Hawk:Power_UNIX:*:*)
451 echo powerpc-harris-powerunix
452 exit ;;
453 m88k:CX/UX:7*:*)
454 echo m88k-harris-cxux7
455 exit ;;
456 m88k:*:4*:R4*)
457 echo m88k-motorola-sysv4
458 exit ;;
459 m88k:*:3*:R3*)
460 echo m88k-motorola-sysv3
461 exit ;;
462 AViiON:dgux:*:*)
463 # DG/UX returns AViiON for all architectures
464 UNAME_PROCESSOR=`/usr/bin/uname -p`
465 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
466 then
467 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
468 [ ${TARGET_BINARY_INTERFACE}x = x ]
469 then
470 echo m88k-dg-dgux${UNAME_RELEASE}
471 else
472 echo m88k-dg-dguxbcs${UNAME_RELEASE}
473 fi
474 else
475 echo i586-dg-dgux${UNAME_RELEASE}
476 fi
477 exit ;;
478 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
479 echo m88k-dolphin-sysv3
480 exit ;;
481 M88*:*:R3*:*)
482 # Delta 88k system running SVR3
483 echo m88k-motorola-sysv3
484 exit ;;
485 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
486 echo m88k-tektronix-sysv3
487 exit ;;
488 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
489 echo m68k-tektronix-bsd
490 exit ;;
491 *:IRIX*:*:*)
492 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
493 exit ;;
494 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
495 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
496 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
497 i*86:AIX:*:*)
498 echo i386-ibm-aix
499 exit ;;
500 ia64:AIX:*:*)
501 if [ -x /usr/bin/oslevel ] ; then
502 IBM_REV=`/usr/bin/oslevel`
503 else
504 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
505 fi
506 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
507 exit ;;
508 *:AIX:2:3)
509 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
510 eval $set_cc_for_build
511 sed 's/^ //' << EOF >$dummy.c
512 #include <sys/systemcfg.h>
513
514 main()
515 {
516 if (!__power_pc())
517 exit(1);
518 puts("powerpc-ibm-aix3.2.5");
519 exit(0);
520 }
521 EOF
522 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
523 then
524 echo "$SYSTEM_NAME"
525 else
526 echo rs6000-ibm-aix3.2.5
527 fi
528 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
529 echo rs6000-ibm-aix3.2.4
530 else
531 echo rs6000-ibm-aix3.2
532 fi
533 exit ;;
534 *:AIX:*:[45])
535 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
536 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
537 IBM_ARCH=rs6000
538 else
539 IBM_ARCH=powerpc
540 fi
541 if [ -x /usr/bin/oslevel ] ; then
542 IBM_REV=`/usr/bin/oslevel`
543 else
544 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
545 fi
546 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
547 exit ;;
548 *:AIX:*:*)
549 echo rs6000-ibm-aix
550 exit ;;
551 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
552 echo romp-ibm-bsd4.4
553 exit ;;
554 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
555 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
556 exit ;; # report: romp-ibm BSD 4.3
557 *:BOSX:*:*)
558 echo rs6000-bull-bosx
559 exit ;;
560 DPX/2?00:B.O.S.:*:*)
561 echo m68k-bull-sysv3
562 exit ;;
563 9000/[34]??:4.3bsd:1.*:*)
564 echo m68k-hp-bsd
565 exit ;;
566 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
567 echo m68k-hp-bsd4.4
568 exit ;;
569 9000/[34678]??:HP-UX:*:*)
570 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
571 case "${UNAME_MACHINE}" in
572 9000/31? ) HP_ARCH=m68000 ;;
573 9000/[34]?? ) HP_ARCH=m68k ;;
574 9000/[678][0-9][0-9])
575 if [ -x /usr/bin/getconf ]; then
576 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
577 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
578 case "${sc_cpu_version}" in
579 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
580 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
581 532) # CPU_PA_RISC2_0
582 case "${sc_kernel_bits}" in
583 32) HP_ARCH="hppa2.0n" ;;
584 64) HP_ARCH="hppa2.0w" ;;
585 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
586 esac ;;
587 esac
588 fi
589 if [ "${HP_ARCH}" = "" ]; then
590 eval $set_cc_for_build
591 sed 's/^ //' << EOF >$dummy.c
592
593 #define _HPUX_SOURCE
594 #include <stdlib.h>
595 #include <unistd.h>
596
597 int main ()
598 {
599 #if defined(_SC_KERNEL_BITS)
600 long bits = sysconf(_SC_KERNEL_BITS);
601 #endif
602 long cpu = sysconf (_SC_CPU_VERSION);
603
604 switch (cpu)
605 {
606 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
607 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
608 case CPU_PA_RISC2_0:
609 #if defined(_SC_KERNEL_BITS)
610 switch (bits)
611 {
612 case 64: puts ("hppa2.0w"); break;
613 case 32: puts ("hppa2.0n"); break;
614 default: puts ("hppa2.0"); break;
615 } break;
616 #else /* !defined(_SC_KERNEL_BITS) */
617 puts ("hppa2.0"); break;
618 #endif
619 default: puts ("hppa1.0"); break;
620 }
621 exit (0);
622 }
623 EOF
624 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
625 test -z "$HP_ARCH" && HP_ARCH=hppa
626 fi ;;
627 esac
628 if [ ${HP_ARCH} = "hppa2.0w" ]
629 then
630 eval $set_cc_for_build
631
632 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
633 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
634 # generating 64-bit code. GNU and HP use different nomenclature:
635 #
636 # $ CC_FOR_BUILD=cc ./config.guess
637 # => hppa2.0w-hp-hpux11.23
638 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
639 # => hppa64-hp-hpux11.23
640
641 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
642 grep __LP64__ >/dev/null
643 then
644 HP_ARCH="hppa2.0w"
645 else
646 HP_ARCH="hppa64"
647 fi
648 fi
649 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
650 exit ;;
651 ia64:HP-UX:*:*)
652 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
653 echo ia64-hp-hpux${HPUX_REV}
654 exit ;;
655 3050*:HI-UX:*:*)
656 eval $set_cc_for_build
657 sed 's/^ //' << EOF >$dummy.c
658 #include <unistd.h>
659 int
660 main ()
661 {
662 long cpu = sysconf (_SC_CPU_VERSION);
663 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
664 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
665 results, however. */
666 if (CPU_IS_PA_RISC (cpu))
667 {
668 switch (cpu)
669 {
670 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
671 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
672 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
673 default: puts ("hppa-hitachi-hiuxwe2"); break;
674 }
675 }
676 else if (CPU_IS_HP_MC68K (cpu))
677 puts ("m68k-hitachi-hiuxwe2");
678 else puts ("unknown-hitachi-hiuxwe2");
679 exit (0);
680 }
681 EOF
682 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
683 { echo "$SYSTEM_NAME"; exit; }
684 echo unknown-hitachi-hiuxwe2
685 exit ;;
686 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
687 echo hppa1.1-hp-bsd
688 exit ;;
689 9000/8??:4.3bsd:*:*)
690 echo hppa1.0-hp-bsd
691 exit ;;
692 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
693 echo hppa1.0-hp-mpeix
694 exit ;;
695 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
696 echo hppa1.1-hp-osf
697 exit ;;
698 hp8??:OSF1:*:*)
699 echo hppa1.0-hp-osf
700 exit ;;
701 i*86:OSF1:*:*)
702 if [ -x /usr/sbin/sysversion ] ; then
703 echo ${UNAME_MACHINE}-unknown-osf1mk
704 else
705 echo ${UNAME_MACHINE}-unknown-osf1
706 fi
707 exit ;;
708 parisc*:Lites*:*:*)
709 echo hppa1.1-hp-lites
710 exit ;;
711 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
712 echo c1-convex-bsd
713 exit ;;
714 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
715 if getsysinfo -f scalar_acc
716 then echo c32-convex-bsd
717 else echo c2-convex-bsd
718 fi
719 exit ;;
720 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
721 echo c34-convex-bsd
722 exit ;;
723 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
724 echo c38-convex-bsd
725 exit ;;
726 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
727 echo c4-convex-bsd
728 exit ;;
729 CRAY*Y-MP:*:*:*)
730 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
731 exit ;;
732 CRAY*[A-Z]90:*:*:*)
733 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
734 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
735 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
736 -e 's/\.[^.]*$/.X/'
737 exit ;;
738 CRAY*TS:*:*:*)
739 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
740 exit ;;
741 CRAY*T3E:*:*:*)
742 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
743 exit ;;
744 CRAY*SV1:*:*:*)
745 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
746 exit ;;
747 *:UNICOS/mp:*:*)
748 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749 exit ;;
750 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
751 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
752 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
753 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
754 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
755 exit ;;
756 5000:UNIX_System_V:4.*:*)
757 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
758 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
759 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
760 exit ;;
761 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
762 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
763 exit ;;
764 sparc*:BSD/OS:*:*)
765 echo sparc-unknown-bsdi${UNAME_RELEASE}
766 exit ;;
767 *:BSD/OS:*:*)
768 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
769 exit ;;
770 *:FreeBSD:*:*)
771 case ${UNAME_MACHINE} in
772 pc98)
773 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
774 amd64)
775 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
776 *)
777 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
778 esac
779 exit ;;
780 i*:CYGWIN*:*)
781 echo ${UNAME_MACHINE}-pc-cygwin
782 exit ;;
783 *:MINGW*:*)
784 echo ${UNAME_MACHINE}-pc-mingw32
785 exit ;;
786 i*:windows32*:*)
787 # uname -m includes "-pc" on this system.
788 echo ${UNAME_MACHINE}-mingw32
789 exit ;;
790 i*:PW*:*)
791 echo ${UNAME_MACHINE}-pc-pw32
792 exit ;;
793 *:Interix*:[3456]*)
794 case ${UNAME_MACHINE} in
795 x86)
796 echo i586-pc-interix${UNAME_RELEASE}
797 exit ;;
798 EM64T | authenticamd)
799 echo x86_64-unknown-interix${UNAME_RELEASE}
800 exit ;;
801 esac ;;
802 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
803 echo i${UNAME_MACHINE}-pc-mks
804 exit ;;
805 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
806 # How do we know it's Interix rather than the generic POSIX subsystem?
807 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
808 # UNAME_MACHINE based on the output of uname instead of i386?
809 echo i586-pc-interix
810 exit ;;
811 i*:UWIN*:*)
812 echo ${UNAME_MACHINE}-pc-uwin
813 exit ;;
814 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
815 echo x86_64-unknown-cygwin
816 exit ;;
817 p*:CYGWIN*:*)
818 echo powerpcle-unknown-cygwin
819 exit ;;
820 prep*:SunOS:5.*:*)
821 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
822 exit ;;
823 *:GNU:*:*)
824 # the GNU system
825 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
826 exit ;;
827 *:GNU/*:*:*)
828 # other systems with GNU libc and userland
829 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
830 exit ;;
831 i*86:Minix:*:*)
832 echo ${UNAME_MACHINE}-pc-minix
833 exit ;;
834 arm*:Linux:*:*)
835 echo ${UNAME_MACHINE}-unknown-linux-gnu
836 exit ;;
837 avr32*:Linux:*:*)
838 echo ${UNAME_MACHINE}-unknown-linux-gnu
839 exit ;;
840 cris:Linux:*:*)
841 echo cris-axis-linux-gnu
842 exit ;;
843 crisv32:Linux:*:*)
844 echo crisv32-axis-linux-gnu
845 exit ;;
846 frv:Linux:*:*)
847 echo frv-unknown-linux-gnu
848 exit ;;
849 ia64:Linux:*:*)
850 echo ${UNAME_MACHINE}-unknown-linux-gnu
851 exit ;;
852 m32r*:Linux:*:*)
853 echo ${UNAME_MACHINE}-unknown-linux-gnu
854 exit ;;
855 m68*:Linux:*:*)
856 echo ${UNAME_MACHINE}-unknown-linux-gnu
857 exit ;;
858 mips:Linux:*:*)
859 eval $set_cc_for_build
860 sed 's/^ //' << EOF >$dummy.c
861 #undef CPU
862 #undef mips
863 #undef mipsel
864 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
865 CPU=mipsel
866 #else
867 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
868 CPU=mips
869 #else
870 CPU=
871 #endif
872 #endif
873 EOF
874 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
875 /^CPU/{
876 s: ::g
877 p
878 }'`"
879 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
880 ;;
881 mips64:Linux:*:*)
882 eval $set_cc_for_build
883 sed 's/^ //' << EOF >$dummy.c
884 #undef CPU
885 #undef mips64
886 #undef mips64el
887 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
888 CPU=mips64el
889 #else
890 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
891 CPU=mips64
892 #else
893 CPU=
894 #endif
895 #endif
896 EOF
897 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
898 /^CPU/{
899 s: ::g
900 p
901 }'`"
902 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
903 ;;
904 or32:Linux:*:*)
905 echo or32-unknown-linux-gnu
906 exit ;;
907 ppc:Linux:*:*)
908 echo powerpc-unknown-linux-gnu
909 exit ;;
910 ppc64:Linux:*:*)
911 echo powerpc64-unknown-linux-gnu
912 exit ;;
913 alpha:Linux:*:*)
914 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
915 EV5) UNAME_MACHINE=alphaev5 ;;
916 EV56) UNAME_MACHINE=alphaev56 ;;
917 PCA56) UNAME_MACHINE=alphapca56 ;;
918 PCA57) UNAME_MACHINE=alphapca56 ;;
919 EV6) UNAME_MACHINE=alphaev6 ;;
920 EV67) UNAME_MACHINE=alphaev67 ;;
921 EV68*) UNAME_MACHINE=alphaev68 ;;
922 esac
923 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
924 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
925 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
926 exit ;;
927 parisc:Linux:*:* | hppa:Linux:*:*)
928 # Look for CPU level
929 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
930 PA7*) echo hppa1.1-unknown-linux-gnu ;;
931 PA8*) echo hppa2.0-unknown-linux-gnu ;;
932 *) echo hppa-unknown-linux-gnu ;;
933 esac
934 exit ;;
935 parisc64:Linux:*:* | hppa64:Linux:*:*)
936 echo hppa64-unknown-linux-gnu
937 exit ;;
938 s390:Linux:*:* | s390x:Linux:*:*)
939 echo ${UNAME_MACHINE}-ibm-linux
940 exit ;;
941 sh64*:Linux:*:*)
942 echo ${UNAME_MACHINE}-unknown-linux-gnu
943 exit ;;
944 sh*:Linux:*:*)
945 echo ${UNAME_MACHINE}-unknown-linux-gnu
946 exit ;;
947 sparc:Linux:*:* | sparc64:Linux:*:*)
948 echo ${UNAME_MACHINE}-unknown-linux-gnu
949 exit ;;
950 vax:Linux:*:*)
951 echo ${UNAME_MACHINE}-dec-linux-gnu
952 exit ;;
953 x86_64:Linux:*:*)
954 echo x86_64-unknown-linux-gnu
955 exit ;;
956 xtensa:Linux:*:*)
957 echo xtensa-unknown-linux-gnu
958 exit ;;
959 i*86:Linux:*:*)
960 # The BFD linker knows what the default object file format is, so
961 # first see if it will tell us. cd to the root directory to prevent
962 # problems with other programs or directories called `ld' in the path.
963 # Set LC_ALL=C to ensure ld outputs messages in English.
964 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
965 | sed -ne '/supported targets:/!d
966 s/[ ][ ]*/ /g
967 s/.*supported targets: *//
968 s/ .*//
969 p'`
970 case "$ld_supported_targets" in
971 elf32-i386)
972 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
973 ;;
974 a.out-i386-linux)
975 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
976 exit ;;
977 coff-i386)
978 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
979 exit ;;
980 "")
981 # Either a pre-BFD a.out linker (linux-gnuoldld) or
982 # one that does not give us useful --help.
983 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
984 exit ;;
985 esac
986 # Determine whether the default compiler is a.out or elf
987 eval $set_cc_for_build
988 sed 's/^ //' << EOF >$dummy.c
989 #include <features.h>
990 #ifdef __ELF__
991 # ifdef __GLIBC__
992 # if __GLIBC__ >= 2
993 LIBC=gnu
994 # else
995 LIBC=gnulibc1
996 # endif
997 # else
998 LIBC=gnulibc1
999 # endif
1000 #else
1001 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1002 LIBC=gnu
1003 #else
1004 LIBC=gnuaout
1005 #endif
1006 #endif
1007 #ifdef __dietlibc__
1008 LIBC=dietlibc
1009 #endif
1010 EOF
1011 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1012 /^LIBC/{
1013 s: ::g
1014 p
1015 }'`"
1016 test x"${LIBC}" != x && {
1017 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1018 exit
1019 }
1020 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1021 ;;
1022 i*86:DYNIX/ptx:4*:*)
1023 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1024 # earlier versions are messed up and put the nodename in both
1025 # sysname and nodename.
1026 echo i386-sequent-sysv4
1027 exit ;;
1028 i*86:UNIX_SV:4.2MP:2.*)
1029 # Unixware is an offshoot of SVR4, but it has its own version
1030 # number series starting with 2...
1031 # I am not positive that other SVR4 systems won't match this,
1032 # I just have to hope. -- rms.
1033 # Use sysv4.2uw... so that sysv4* matches it.
1034 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1035 exit ;;
1036 i*86:OS/2:*:*)
1037 # If we were able to find `uname', then EMX Unix compatibility
1038 # is probably installed.
1039 echo ${UNAME_MACHINE}-pc-os2-emx
1040 exit ;;
1041 i*86:XTS-300:*:STOP)
1042 echo ${UNAME_MACHINE}-unknown-stop
1043 exit ;;
1044 i*86:atheos:*:*)
1045 echo ${UNAME_MACHINE}-unknown-atheos
1046 exit ;;
1047 i*86:syllable:*:*)
1048 echo ${UNAME_MACHINE}-pc-syllable
1049 exit ;;
1050 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1051 echo i386-unknown-lynxos${UNAME_RELEASE}
1052 exit ;;
1053 i*86:*DOS:*:*)
1054 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1055 exit ;;
1056 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1057 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1058 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1059 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1060 else
1061 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1062 fi
1063 exit ;;
1064 i*86:*:5:[678]*)
1065 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1066 case `/bin/uname -X | grep "^Machine"` in
1067 *486*) UNAME_MACHINE=i486 ;;
1068 *Pentium) UNAME_MACHINE=i586 ;;
1069 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1070 esac
1071 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1072 exit ;;
1073 i*86:*:3.2:*)
1074 if test -f /usr/options/cb.name; then
1075 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1076 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1077 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1078 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1079 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1080 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1081 && UNAME_MACHINE=i586
1082 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1083 && UNAME_MACHINE=i686
1084 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1085 && UNAME_MACHINE=i686
1086 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1087 else
1088 echo ${UNAME_MACHINE}-pc-sysv32
1089 fi
1090 exit ;;
1091 pc:*:*:*)
1092 # Left here for compatibility:
1093 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1094 # the processor, so we play safe by assuming i386.
1095 echo i386-pc-msdosdjgpp
1096 exit ;;
1097 Intel:Mach:3*:*)
1098 echo i386-pc-mach3
1099 exit ;;
1100 paragon:*:*:*)
1101 echo i860-intel-osf1
1102 exit ;;
1103 i860:*:4.*:*) # i860-SVR4
1104 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1105 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1106 else # Add other i860-SVR4 vendors below as they are discovered.
1107 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1108 fi
1109 exit ;;
1110 mini*:CTIX:SYS*5:*)
1111 # "miniframe"
1112 echo m68010-convergent-sysv
1113 exit ;;
1114 mc68k:UNIX:SYSTEM5:3.51m)
1115 echo m68k-convergent-sysv
1116 exit ;;
1117 M680?0:D-NIX:5.3:*)
1118 echo m68k-diab-dnix
1119 exit ;;
1120 M68*:*:R3V[5678]*:*)
1121 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1122 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)
1123 OS_REL=''
1124 test -r /etc/.relid \
1125 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1126 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1127 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1128 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1129 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1130 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1131 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1132 && { echo i486-ncr-sysv4; exit; } ;;
1133 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1134 echo m68k-unknown-lynxos${UNAME_RELEASE}
1135 exit ;;
1136 mc68030:UNIX_System_V:4.*:*)
1137 echo m68k-atari-sysv4
1138 exit ;;
1139 TSUNAMI:LynxOS:2.*:*)
1140 echo sparc-unknown-lynxos${UNAME_RELEASE}
1141 exit ;;
1142 rs6000:LynxOS:2.*:*)
1143 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1144 exit ;;
1145 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1146 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1147 exit ;;
1148 SM[BE]S:UNIX_SV:*:*)
1149 echo mips-dde-sysv${UNAME_RELEASE}
1150 exit ;;
1151 RM*:ReliantUNIX-*:*:*)
1152 echo mips-sni-sysv4
1153 exit ;;
1154 RM*:SINIX-*:*:*)
1155 echo mips-sni-sysv4
1156 exit ;;
1157 *:SINIX-*:*:*)
1158 if uname -p 2>/dev/null >/dev/null ; then
1159 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1160 echo ${UNAME_MACHINE}-sni-sysv4
1161 else
1162 echo ns32k-sni-sysv
1163 fi
1164 exit ;;
1165 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1166 # says <Richard.M.Bartel@ccMail.Census.GOV>
1167 echo i586-unisys-sysv4
1168 exit ;;
1169 *:UNIX_System_V:4*:FTX*)
1170 # From Gerald Hewes <hewes@openmarket.com>.
1171 # How about differentiating between stratus architectures? -djm
1172 echo hppa1.1-stratus-sysv4
1173 exit ;;
1174 *:*:*:FTX*)
1175 # From seanf@swdc.stratus.com.
1176 echo i860-stratus-sysv4
1177 exit ;;
1178 i*86:VOS:*:*)
1179 # From Paul.Green@stratus.com.
1180 echo ${UNAME_MACHINE}-stratus-vos
1181 exit ;;
1182 *:VOS:*:*)
1183 # From Paul.Green@stratus.com.
1184 echo hppa1.1-stratus-vos
1185 exit ;;
1186 mc68*:A/UX:*:*)
1187 echo m68k-apple-aux${UNAME_RELEASE}
1188 exit ;;
1189 news*:NEWS-OS:6*:*)
1190 echo mips-sony-newsos6
1191 exit ;;
1192 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1193 if [ -d /usr/nec ]; then
1194 echo mips-nec-sysv${UNAME_RELEASE}
1195 else
1196 echo mips-unknown-sysv${UNAME_RELEASE}
1197 fi
1198 exit ;;
1199 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1200 echo powerpc-be-beos
1201 exit ;;
1202 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1203 echo powerpc-apple-beos
1204 exit ;;
1205 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1206 echo i586-pc-beos
1207 exit ;;
1208 SX-4:SUPER-UX:*:*)
1209 echo sx4-nec-superux${UNAME_RELEASE}
1210 exit ;;
1211 SX-5:SUPER-UX:*:*)
1212 echo sx5-nec-superux${UNAME_RELEASE}
1213 exit ;;
1214 SX-6:SUPER-UX:*:*)
1215 echo sx6-nec-superux${UNAME_RELEASE}
1216 exit ;;
1217 SX-7:SUPER-UX:*:*)
1218 echo sx7-nec-superux${UNAME_RELEASE}
1219 exit ;;
1220 SX-8:SUPER-UX:*:*)
1221 echo sx8-nec-superux${UNAME_RELEASE}
1222 exit ;;
1223 SX-8R:SUPER-UX:*:*)
1224 echo sx8r-nec-superux${UNAME_RELEASE}
1225 exit ;;
1226 Power*:Rhapsody:*:*)
1227 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1228 exit ;;
1229 *:Rhapsody:*:*)
1230 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1231 exit ;;
1232 *:Darwin:*:*)
1233 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1234 case $UNAME_PROCESSOR in
1235 unknown) UNAME_PROCESSOR=powerpc ;;
1236 esac
1237 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1238 exit ;;
1239 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1240 UNAME_PROCESSOR=`uname -p`
1241 if test "$UNAME_PROCESSOR" = "x86"; then
1242 UNAME_PROCESSOR=i386
1243 UNAME_MACHINE=pc
1244 fi
1245 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1246 exit ;;
1247 *:QNX:*:4*)
1248 echo i386-pc-qnx
1249 exit ;;
1250 NSE-?:NONSTOP_KERNEL:*:*)
1251 echo nse-tandem-nsk${UNAME_RELEASE}
1252 exit ;;
1253 NSR-?:NONSTOP_KERNEL:*:*)
1254 echo nsr-tandem-nsk${UNAME_RELEASE}
1255 exit ;;
1256 *:NonStop-UX:*:*)
1257 echo mips-compaq-nonstopux
1258 exit ;;
1259 BS2000:POSIX*:*:*)
1260 echo bs2000-siemens-sysv
1261 exit ;;
1262 DS/*:UNIX_System_V:*:*)
1263 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1264 exit ;;
1265 *:Plan9:*:*)
1266 # "uname -m" is not consistent, so use $cputype instead. 386
1267 # is converted to i386 for consistency with other x86
1268 # operating systems.
1269 if test "$cputype" = "386"; then
1270 UNAME_MACHINE=i386
1271 else
1272 UNAME_MACHINE="$cputype"
1273 fi
1274 echo ${UNAME_MACHINE}-unknown-plan9
1275 exit ;;
1276 *:TOPS-10:*:*)
1277 echo pdp10-unknown-tops10
1278 exit ;;
1279 *:TENEX:*:*)
1280 echo pdp10-unknown-tenex
1281 exit ;;
1282 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1283 echo pdp10-dec-tops20
1284 exit ;;
1285 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1286 echo pdp10-xkl-tops20
1287 exit ;;
1288 *:TOPS-20:*:*)
1289 echo pdp10-unknown-tops20
1290 exit ;;
1291 *:ITS:*:*)
1292 echo pdp10-unknown-its
1293 exit ;;
1294 SEI:*:*:SEIUX)
1295 echo mips-sei-seiux${UNAME_RELEASE}
1296 exit ;;
1297 *:DragonFly:*:*)
1298 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1299 exit ;;
1300 *:*VMS:*:*)
1301 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1302 case "${UNAME_MACHINE}" in
1303 A*) echo alpha-dec-vms ; exit ;;
1304 I*) echo ia64-dec-vms ; exit ;;
1305 V*) echo vax-dec-vms ; exit ;;
1306 esac ;;
1307 *:XENIX:*:SysV)
1308 echo i386-pc-xenix
1309 exit ;;
1310 i*86:skyos:*:*)
1311 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1312 exit ;;
1313 i*86:rdos:*:*)
1314 echo ${UNAME_MACHINE}-pc-rdos
1315 exit ;;
1316 esac
1317
1318 #echo '(No uname command or uname output not recognized.)' 1>&2
1319 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1320
1321 eval $set_cc_for_build
1322 cat >$dummy.c <<EOF
1323 #ifdef _SEQUENT_
1324 # include <sys/types.h>
1325 # include <sys/utsname.h>
1326 #endif
1327 main ()
1328 {
1329 #if defined (sony)
1330 #if defined (MIPSEB)
1331 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1332 I don't know.... */
1333 printf ("mips-sony-bsd\n"); exit (0);
1334 #else
1335 #include <sys/param.h>
1336 printf ("m68k-sony-newsos%s\n",
1337 #ifdef NEWSOS4
1338 "4"
1339 #else
1340 ""
1341 #endif
1342 ); exit (0);
1343 #endif
1344 #endif
1345
1346 #if defined (__arm) && defined (__acorn) && defined (__unix)
1347 printf ("arm-acorn-riscix\n"); exit (0);
1348 #endif
1349
1350 #if defined (hp300) && !defined (hpux)
1351 printf ("m68k-hp-bsd\n"); exit (0);
1352 #endif
1353
1354 #if defined (NeXT)
1355 #if !defined (__ARCHITECTURE__)
1356 #define __ARCHITECTURE__ "m68k"
1357 #endif
1358 int version;
1359 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1360 if (version < 4)
1361 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1362 else
1363 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1364 exit (0);
1365 #endif
1366
1367 #if defined (MULTIMAX) || defined (n16)
1368 #if defined (UMAXV)
1369 printf ("ns32k-encore-sysv\n"); exit (0);
1370 #else
1371 #if defined (CMU)
1372 printf ("ns32k-encore-mach\n"); exit (0);
1373 #else
1374 printf ("ns32k-encore-bsd\n"); exit (0);
1375 #endif
1376 #endif
1377 #endif
1378
1379 #if defined (__386BSD__)
1380 printf ("i386-pc-bsd\n"); exit (0);
1381 #endif
1382
1383 #if defined (sequent)
1384 #if defined (i386)
1385 printf ("i386-sequent-dynix\n"); exit (0);
1386 #endif
1387 #if defined (ns32000)
1388 printf ("ns32k-sequent-dynix\n"); exit (0);
1389 #endif
1390 #endif
1391
1392 #if defined (_SEQUENT_)
1393 struct utsname un;
1394
1395 uname(&un);
1396
1397 if (strncmp(un.version, "V2", 2) == 0) {
1398 printf ("i386-sequent-ptx2\n"); exit (0);
1399 }
1400 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1401 printf ("i386-sequent-ptx1\n"); exit (0);
1402 }
1403 printf ("i386-sequent-ptx\n"); exit (0);
1404
1405 #endif
1406
1407 #if defined (vax)
1408 # if !defined (ultrix)
1409 # include <sys/param.h>
1410 # if defined (BSD)
1411 # if BSD == 43
1412 printf ("vax-dec-bsd4.3\n"); exit (0);
1413 # else
1414 # if BSD == 199006
1415 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1416 # else
1417 printf ("vax-dec-bsd\n"); exit (0);
1418 # endif
1419 # endif
1420 # else
1421 printf ("vax-dec-bsd\n"); exit (0);
1422 # endif
1423 # else
1424 printf ("vax-dec-ultrix\n"); exit (0);
1425 # endif
1426 #endif
1427
1428 #if defined (alliant) && defined (i860)
1429 printf ("i860-alliant-bsd\n"); exit (0);
1430 #endif
1431
1432 exit (1);
1433 }
1434 EOF
1435
1436 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1437 { echo "$SYSTEM_NAME"; exit; }
1438
1439 # Apollos put the system type in the environment.
1440
1441 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1442
1443 # Convex versions that predate uname can use getsysinfo(1)
1444
1445 if [ -x /usr/convex/getsysinfo ]
1446 then
1447 case `getsysinfo -f cpu_type` in
1448 c1*)
1449 echo c1-convex-bsd
1450 exit ;;
1451 c2*)
1452 if getsysinfo -f scalar_acc
1453 then echo c32-convex-bsd
1454 else echo c2-convex-bsd
1455 fi
1456 exit ;;
1457 c34*)
1458 echo c34-convex-bsd
1459 exit ;;
1460 c38*)
1461 echo c38-convex-bsd
1462 exit ;;
1463 c4*)
1464 echo c4-convex-bsd
1465 exit ;;
1466 esac
1467 fi
1468
1469 cat >&2 <<EOF
1470 $0: unable to guess system type
1471
1472 This script, last modified $timestamp, has failed to recognize
1473 the operating system you are using. It is advised that you
1474 download the most up to date version of the config scripts from
1475
1476 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1477 and
1478 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1479
1480 If the version you run ($0) is already up to date, please
1481 send the following data and any information you think might be
1482 pertinent to <config-patches@gnu.org> in order to provide the needed
1483 information to handle your system.
1484
1485 config.guess timestamp = $timestamp
1486
1487 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1488 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1489 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1490 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1491
1492 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1493 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1494
1495 hostinfo = `(hostinfo) 2>/dev/null`
1496 /bin/universe = `(/bin/universe) 2>/dev/null`
1497 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1498 /bin/arch = `(/bin/arch) 2>/dev/null`
1499 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1500 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1501
1502 UNAME_MACHINE = ${UNAME_MACHINE}
1503 UNAME_RELEASE = ${UNAME_RELEASE}
1504 UNAME_SYSTEM = ${UNAME_SYSTEM}
1505 UNAME_VERSION = ${UNAME_VERSION}
1506 EOF
1507
1508 exit 1
1509
1510 # Local variables:
1511 # eval: (add-hook 'write-file-hooks 'time-stamp)
1512 # time-stamp-start: "timestamp='"
1513 # time-stamp-format: "%:y-%02m-%02d"
1514 # time-stamp-end: "'"
1515 # End:
+0
-666
current/config.rpath less more
0 #! /bin/sh
1 # Output a system dependent set of variables, describing how to set the
2 # run time search path of shared libraries in an executable.
3 #
4 # Copyright 1996-2007 Free Software Foundation, Inc.
5 # Taken from GNU libtool, 2001
6 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7 #
8 # This file is free software; the Free Software Foundation gives
9 # unlimited permission to copy and/or distribute it, with or without
10 # modifications, as long as this notice is preserved.
11 #
12 # The first argument passed to this file is the canonical host specification,
13 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
14 # or
15 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
16 # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
17 # should be set by the caller.
18 #
19 # The set of defined variables is at the end of this script.
20
21 # Known limitations:
22 # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
23 # than 256 bytes, otherwise the compiler driver will dump core. The only
24 # known workaround is to choose shorter directory names for the build
25 # directory and/or the installation directory.
26
27 # All known linkers require a `.a' archive for static linking (except MSVC,
28 # which needs '.lib').
29 libext=a
30 shrext=.so
31
32 host="$1"
33 host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
34 host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
35 host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
36
37 # Code taken from libtool.m4's _LT_CC_BASENAME.
38
39 for cc_temp in $CC""; do
40 case $cc_temp in
41 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43 \-*) ;;
44 *) break;;
45 esac
46 done
47 cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
48
49 # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
50
51 wl=
52 if test "$GCC" = yes; then
53 wl='-Wl,'
54 else
55 case "$host_os" in
56 aix*)
57 wl='-Wl,'
58 ;;
59 darwin*)
60 case $cc_basename in
61 xlc*)
62 wl='-Wl,'
63 ;;
64 esac
65 ;;
66 mingw* | cygwin* | pw32* | os2*)
67 ;;
68 hpux9* | hpux10* | hpux11*)
69 wl='-Wl,'
70 ;;
71 irix5* | irix6* | nonstopux*)
72 wl='-Wl,'
73 ;;
74 newsos6)
75 ;;
76 linux* | k*bsd*-gnu)
77 case $cc_basename in
78 icc* | ecc*)
79 wl='-Wl,'
80 ;;
81 pgcc | pgf77 | pgf90)
82 wl='-Wl,'
83 ;;
84 ccc*)
85 wl='-Wl,'
86 ;;
87 como)
88 wl='-lopt='
89 ;;
90 *)
91 case `$CC -V 2>&1 | sed 5q` in
92 *Sun\ C*)
93 wl='-Wl,'
94 ;;
95 esac
96 ;;
97 esac
98 ;;
99 osf3* | osf4* | osf5*)
100 wl='-Wl,'
101 ;;
102 rdos*)
103 ;;
104 solaris*)
105 wl='-Wl,'
106 ;;
107 sunos4*)
108 wl='-Qoption ld '
109 ;;
110 sysv4 | sysv4.2uw2* | sysv4.3*)
111 wl='-Wl,'
112 ;;
113 sysv4*MP*)
114 ;;
115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
116 wl='-Wl,'
117 ;;
118 unicos*)
119 wl='-Wl,'
120 ;;
121 uts4*)
122 ;;
123 esac
124 fi
125
126 # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
127
128 hardcode_libdir_flag_spec=
129 hardcode_libdir_separator=
130 hardcode_direct=no
131 hardcode_minus_L=no
132
133 case "$host_os" in
134 cygwin* | mingw* | pw32*)
135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
136 # When not using gcc, we currently assume that we are using
137 # Microsoft Visual C++.
138 if test "$GCC" != yes; then
139 with_gnu_ld=no
140 fi
141 ;;
142 interix*)
143 # we just hope/assume this is gcc and not c89 (= MSVC++)
144 with_gnu_ld=yes
145 ;;
146 openbsd*)
147 with_gnu_ld=no
148 ;;
149 esac
150
151 ld_shlibs=yes
152 if test "$with_gnu_ld" = yes; then
153 # Set some defaults for GNU ld with shared library support. These
154 # are reset later if shared libraries are not supported. Putting them
155 # here allows them to be overridden if necessary.
156 # Unlike libtool, we use -rpath here, not --rpath, since the documented
157 # option of GNU ld is called -rpath, not --rpath.
158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
159 case "$host_os" in
160 aix3* | aix4* | aix5*)
161 # On AIX/PPC, the GNU linker is very broken
162 if test "$host_cpu" != ia64; then
163 ld_shlibs=no
164 fi
165 ;;
166 amigaos*)
167 hardcode_libdir_flag_spec='-L$libdir'
168 hardcode_minus_L=yes
169 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
170 # that the semantics of dynamic libraries on AmigaOS, at least up
171 # to version 4, is to share data among multiple programs linked
172 # with the same dynamic library. Since this doesn't match the
173 # behavior of shared libraries on other platforms, we cannot use
174 # them.
175 ld_shlibs=no
176 ;;
177 beos*)
178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
179 :
180 else
181 ld_shlibs=no
182 fi
183 ;;
184 cygwin* | mingw* | pw32*)
185 # hardcode_libdir_flag_spec is actually meaningless, as there is
186 # no search path for DLLs.
187 hardcode_libdir_flag_spec='-L$libdir'
188 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
189 :
190 else
191 ld_shlibs=no
192 fi
193 ;;
194 interix[3-9]*)
195 hardcode_direct=no
196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
197 ;;
198 gnu* | linux* | k*bsd*-gnu)
199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
200 :
201 else
202 ld_shlibs=no
203 fi
204 ;;
205 netbsd*)
206 ;;
207 solaris*)
208 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
209 ld_shlibs=no
210 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
211 :
212 else
213 ld_shlibs=no
214 fi
215 ;;
216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
217 case `$LD -v 2>&1` in
218 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
219 ld_shlibs=no
220 ;;
221 *)
222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
223 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
224 else
225 ld_shlibs=no
226 fi
227 ;;
228 esac
229 ;;
230 sunos4*)
231 hardcode_direct=yes
232 ;;
233 *)
234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
235 :
236 else
237 ld_shlibs=no
238 fi
239 ;;
240 esac
241 if test "$ld_shlibs" = no; then
242 hardcode_libdir_flag_spec=
243 fi
244 else
245 case "$host_os" in
246 aix3*)
247 # Note: this linker hardcodes the directories in LIBPATH if there
248 # are no directories specified by -L.
249 hardcode_minus_L=yes
250 if test "$GCC" = yes; then
251 # Neither direct hardcoding nor static linking is supported with a
252 # broken collect2.
253 hardcode_direct=unsupported
254 fi
255 ;;
256 aix4* | aix5*)
257 if test "$host_cpu" = ia64; then
258 # On IA64, the linker does run time linking by default, so we don't
259 # have to do anything special.
260 aix_use_runtimelinking=no
261 else
262 aix_use_runtimelinking=no
263 # Test if we are trying to use run time linking or normal
264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
265 # need to do runtime linking.
266 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
267 for ld_flag in $LDFLAGS; do
268 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
269 aix_use_runtimelinking=yes
270 break
271 fi
272 done
273 ;;
274 esac
275 fi
276 hardcode_direct=yes
277 hardcode_libdir_separator=':'
278 if test "$GCC" = yes; then
279 case $host_os in aix4.[012]|aix4.[012].*)
280 collect2name=`${CC} -print-prog-name=collect2`
281 if test -f "$collect2name" && \
282 strings "$collect2name" | grep resolve_lib_name >/dev/null
283 then
284 # We have reworked collect2
285 :
286 else
287 # We have old collect2
288 hardcode_direct=unsupported
289 hardcode_minus_L=yes
290 hardcode_libdir_flag_spec='-L$libdir'
291 hardcode_libdir_separator=
292 fi
293 ;;
294 esac
295 fi
296 # Begin _LT_AC_SYS_LIBPATH_AIX.
297 echo 'int main () { return 0; }' > conftest.c
298 ${CC} ${LDFLAGS} conftest.c -o conftest
299 aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
300 }'`
301 if test -z "$aix_libpath"; then
302 aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
303 }'`
304 fi
305 if test -z "$aix_libpath"; then
306 aix_libpath="/usr/lib:/lib"
307 fi
308 rm -f conftest.c conftest
309 # End _LT_AC_SYS_LIBPATH_AIX.
310 if test "$aix_use_runtimelinking" = yes; then
311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
312 else
313 if test "$host_cpu" = ia64; then
314 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
315 else
316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
317 fi
318 fi
319 ;;
320 amigaos*)
321 hardcode_libdir_flag_spec='-L$libdir'
322 hardcode_minus_L=yes
323 # see comment about different semantics on the GNU ld section
324 ld_shlibs=no
325 ;;
326 bsdi[45]*)
327 ;;
328 cygwin* | mingw* | pw32*)
329 # When not using gcc, we currently assume that we are using
330 # Microsoft Visual C++.
331 # hardcode_libdir_flag_spec is actually meaningless, as there is
332 # no search path for DLLs.
333 hardcode_libdir_flag_spec=' '
334 libext=lib
335 ;;
336 darwin* | rhapsody*)
337 hardcode_direct=no
338 if test "$GCC" = yes ; then
339 :
340 else
341 case $cc_basename in
342 xlc*)
343 ;;
344 *)
345 ld_shlibs=no
346 ;;
347 esac
348 fi
349 ;;
350 dgux*)
351 hardcode_libdir_flag_spec='-L$libdir'
352 ;;
353 freebsd1*)
354 ld_shlibs=no
355 ;;
356 freebsd2.2*)
357 hardcode_libdir_flag_spec='-R$libdir'
358 hardcode_direct=yes
359 ;;
360 freebsd2*)
361 hardcode_direct=yes
362 hardcode_minus_L=yes
363 ;;
364 freebsd* | dragonfly*)
365 hardcode_libdir_flag_spec='-R$libdir'
366 hardcode_direct=yes
367 ;;
368 hpux9*)
369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
370 hardcode_libdir_separator=:
371 hardcode_direct=yes
372 # hardcode_minus_L: Not really in the search PATH,
373 # but as the default location of the library.
374 hardcode_minus_L=yes
375 ;;
376 hpux10*)
377 if test "$with_gnu_ld" = no; then
378 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
379 hardcode_libdir_separator=:
380 hardcode_direct=yes
381 # hardcode_minus_L: Not really in the search PATH,
382 # but as the default location of the library.
383 hardcode_minus_L=yes
384 fi
385 ;;
386 hpux11*)
387 if test "$with_gnu_ld" = no; then
388 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
389 hardcode_libdir_separator=:
390 case $host_cpu in
391 hppa*64*|ia64*)
392 hardcode_direct=no
393 ;;
394 *)
395 hardcode_direct=yes
396 # hardcode_minus_L: Not really in the search PATH,
397 # but as the default location of the library.
398 hardcode_minus_L=yes
399 ;;
400 esac
401 fi
402 ;;
403 irix5* | irix6* | nonstopux*)
404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
405 hardcode_libdir_separator=:
406 ;;
407 netbsd*)
408 hardcode_libdir_flag_spec='-R$libdir'
409 hardcode_direct=yes
410 ;;
411 newsos6)
412 hardcode_direct=yes
413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
414 hardcode_libdir_separator=:
415 ;;
416 openbsd*)
417 if test -f /usr/libexec/ld.so; then
418 hardcode_direct=yes
419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
421 else
422 case "$host_os" in
423 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
424 hardcode_libdir_flag_spec='-R$libdir'
425 ;;
426 *)
427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
428 ;;
429 esac
430 fi
431 else
432 ld_shlibs=no
433 fi
434 ;;
435 os2*)
436 hardcode_libdir_flag_spec='-L$libdir'
437 hardcode_minus_L=yes
438 ;;
439 osf3*)
440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
441 hardcode_libdir_separator=:
442 ;;
443 osf4* | osf5*)
444 if test "$GCC" = yes; then
445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
446 else
447 # Both cc and cxx compiler support -rpath directly
448 hardcode_libdir_flag_spec='-rpath $libdir'
449 fi
450 hardcode_libdir_separator=:
451 ;;
452 solaris*)
453 hardcode_libdir_flag_spec='-R$libdir'
454 ;;
455 sunos4*)
456 hardcode_libdir_flag_spec='-L$libdir'
457 hardcode_direct=yes
458 hardcode_minus_L=yes
459 ;;
460 sysv4)
461 case $host_vendor in
462 sni)
463 hardcode_direct=yes # is this really true???
464 ;;
465 siemens)
466 hardcode_direct=no
467 ;;
468 motorola)
469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
470 ;;
471 esac
472 ;;
473 sysv4.3*)
474 ;;
475 sysv4*MP*)
476 if test -d /usr/nec; then
477 ld_shlibs=yes
478 fi
479 ;;
480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
481 ;;
482 sysv5* | sco3.2v5* | sco5v6*)
483 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
484 hardcode_libdir_separator=':'
485 ;;
486 uts4*)
487 hardcode_libdir_flag_spec='-L$libdir'
488 ;;
489 *)
490 ld_shlibs=no
491 ;;
492 esac
493 fi
494
495 # Check dynamic linker characteristics
496 # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
497 # Unlike libtool.m4, here we don't care about _all_ names of the library, but
498 # only about the one the linker finds when passed -lNAME. This is the last
499 # element of library_names_spec in libtool.m4, or possibly two of them if the
500 # linker has special search rules.
501 library_names_spec= # the last element of library_names_spec in libtool.m4
502 libname_spec='lib$name'
503 case "$host_os" in
504 aix3*)
505 library_names_spec='$libname.a'
506 ;;
507 aix4* | aix5*)
508 library_names_spec='$libname$shrext'
509 ;;
510 amigaos*)
511 library_names_spec='$libname.a'
512 ;;
513 beos*)
514 library_names_spec='$libname$shrext'
515 ;;
516 bsdi[45]*)
517 library_names_spec='$libname$shrext'
518 ;;
519 cygwin* | mingw* | pw32*)
520 shrext=.dll
521 library_names_spec='$libname.dll.a $libname.lib'
522 ;;
523 darwin* | rhapsody*)
524 shrext=.dylib
525 library_names_spec='$libname$shrext'
526 ;;
527 dgux*)
528 library_names_spec='$libname$shrext'
529 ;;
530 freebsd1*)
531 ;;
532 freebsd* | dragonfly*)
533 case "$host_os" in
534 freebsd[123]*)
535 library_names_spec='$libname$shrext$versuffix' ;;
536 *)
537 library_names_spec='$libname$shrext' ;;
538 esac
539 ;;
540 gnu*)
541 library_names_spec='$libname$shrext'
542 ;;
543 hpux9* | hpux10* | hpux11*)
544 case $host_cpu in
545 ia64*)
546 shrext=.so
547 ;;
548 hppa*64*)
549 shrext=.sl
550 ;;
551 *)
552 shrext=.sl
553 ;;
554 esac
555 library_names_spec='$libname$shrext'
556 ;;
557 interix[3-9]*)
558 library_names_spec='$libname$shrext'
559 ;;
560 irix5* | irix6* | nonstopux*)
561 library_names_spec='$libname$shrext'
562 case "$host_os" in
563 irix5* | nonstopux*)
564 libsuff= shlibsuff=
565 ;;
566 *)
567 case $LD in
568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
571 *) libsuff= shlibsuff= ;;
572 esac
573 ;;
574 esac
575 ;;
576 linux*oldld* | linux*aout* | linux*coff*)
577 ;;
578 linux* | k*bsd*-gnu)
579 library_names_spec='$libname$shrext'
580 ;;
581 knetbsd*-gnu)
582 library_names_spec='$libname$shrext'
583 ;;
584 netbsd*)
585 library_names_spec='$libname$shrext'
586 ;;
587 newsos6)
588 library_names_spec='$libname$shrext'
589 ;;
590 nto-qnx*)
591 library_names_spec='$libname$shrext'
592 ;;
593 openbsd*)
594 library_names_spec='$libname$shrext$versuffix'
595 ;;
596 os2*)
597 libname_spec='$name'
598 shrext=.dll
599 library_names_spec='$libname.a'
600 ;;
601 osf3* | osf4* | osf5*)
602 library_names_spec='$libname$shrext'
603 ;;
604 rdos*)
605 ;;
606 solaris*)
607 library_names_spec='$libname$shrext'
608 ;;
609 sunos4*)
610 library_names_spec='$libname$shrext$versuffix'
611 ;;
612 sysv4 | sysv4.3*)
613 library_names_spec='$libname$shrext'
614 ;;
615 sysv4*MP*)
616 library_names_spec='$libname$shrext'
617 ;;
618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
619 library_names_spec='$libname$shrext'
620 ;;
621 uts4*)
622 library_names_spec='$libname$shrext'
623 ;;
624 esac
625
626 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
627 escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
628 shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
629 escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
630 escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
631 escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
632
633 LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
634
635 # How to pass a linker flag through the compiler.
636 wl="$escaped_wl"
637
638 # Static library suffix (normally "a").
639 libext="$libext"
640
641 # Shared library suffix (normally "so").
642 shlibext="$shlibext"
643
644 # Format of library name prefix.
645 libname_spec="$escaped_libname_spec"
646
647 # Library names that the linker finds when passed -lNAME.
648 library_names_spec="$escaped_library_names_spec"
649
650 # Flag to hardcode \$libdir into a binary during linking.
651 # This must work even if \$libdir does not exist.
652 hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
653
654 # Whether we need a single -rpath flag with a separated argument.
655 hardcode_libdir_separator="$hardcode_libdir_separator"
656
657 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
658 # resulting binary.
659 hardcode_direct="$hardcode_direct"
660
661 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
662 # resulting binary.
663 hardcode_minus_L="$hardcode_minus_L"
664
665 EOF
+0
-1626
current/config.sub less more
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, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2007-06-28'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # This file is supposed to be the same for all GNU packages
42 # and recognize all the CPU types, system types and aliases
43 # that are meaningful with *any* GNU software.
44 # Each package is responsible for reporting which valid configurations
45 # it does not support. The user should be able to distinguish
46 # a failure to support a valid configuration from a meaningless
47 # configuration.
48
49 # The goal of this file is to map all the various variations of a given
50 # machine specification into a single specification in the form:
51 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
52 # or in some cases, the newer four-part form:
53 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
54 # It is wrong to echo any other type of specification.
55
56 me=`echo "$0" | sed -e 's,.*/,,'`
57
58 usage="\
59 Usage: $0 [OPTION] CPU-MFR-OPSYS
60 $0 [OPTION] ALIAS
61
62 Canonicalize a configuration name.
63
64 Operation modes:
65 -h, --help print this help, then exit
66 -t, --time-stamp print date of last modification, then exit
67 -v, --version print version number, then exit
68
69 Report bugs and patches to <config-patches@gnu.org>."
70
71 version="\
72 GNU config.sub ($timestamp)
73
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
75 Free Software Foundation, Inc.
76
77 This is free software; see the source for copying conditions. There is NO
78 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
79
80 help="
81 Try \`$me --help' for more information."
82
83 # Parse command line
84 while test $# -gt 0 ; do
85 case $1 in
86 --time-stamp | --time* | -t )
87 echo "$timestamp" ; exit ;;
88 --version | -v )
89 echo "$version" ; exit ;;
90 --help | --h* | -h )
91 echo "$usage"; exit ;;
92 -- ) # Stop option processing
93 shift; break ;;
94 - ) # Use stdin as input.
95 break ;;
96 -* )
97 echo "$me: invalid option $1$help"
98 exit 1 ;;
99
100 *local*)
101 # First pass through any local machine types.
102 echo $1
103 exit ;;
104
105 * )
106 break ;;
107 esac
108 done
109
110 case $# in
111 0) echo "$me: missing argument$help" >&2
112 exit 1;;
113 1) ;;
114 *) echo "$me: too many arguments$help" >&2
115 exit 1;;
116 esac
117
118 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
119 # Here we must recognize all the valid KERNEL-OS combinations.
120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121 case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 storm-chaos* | os2-emx* | rtmk-nova*)
125 os=-$maybe_os
126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
127 ;;
128 *)
129 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
130 if [ $basic_machine != $1 ]
131 then os=`echo $1 | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
134 esac
135
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray)
151 os=
152 basic_machine=$1
153 ;;
154 -sim | -cisco | -oki | -wec | -winbond)
155 os=
156 basic_machine=$1
157 ;;
158 -scout)
159 ;;
160 -wrs)
161 os=-vxworks
162 basic_machine=$1
163 ;;
164 -chorusos*)
165 os=-chorusos
166 basic_machine=$1
167 ;;
168 -chorusrdb)
169 os=-chorusrdb
170 basic_machine=$1
171 ;;
172 -hiux*)
173 os=-hiuxwe2
174 ;;
175 -sco6)
176 os=-sco5v6
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
178 ;;
179 -sco5)
180 os=-sco3.2v5
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco4)
184 os=-sco3.2v4
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco3.2.[4-9]*)
188 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2v[4-9]*)
192 # Don't forget version if it is 3.2v4 or newer.
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco5v6*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco*)
200 os=-sco3.2v2
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -udk*)
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -isc)
207 os=-isc2.2
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -clix*)
211 basic_machine=clipper-intergraph
212 ;;
213 -isc*)
214 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
215 ;;
216 -lynx*)
217 os=-lynxos
218 ;;
219 -ptx*)
220 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
221 ;;
222 -windowsnt*)
223 os=`echo $os | sed -e 's/windowsnt/winnt/'`
224 ;;
225 -psos*)
226 os=-psos
227 ;;
228 -mint | -mint[0-9]*)
229 basic_machine=m68k-atari
230 os=-mint
231 ;;
232 esac
233
234 # Decode aliases for certain CPU-COMPANY combinations.
235 case $basic_machine in
236 # Recognize the basic CPU types without company name.
237 # Some are omitted here because they have special meanings below.
238 1750a | 580 \
239 | a29k \
240 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
241 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
242 | am33_2.0 \
243 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
244 | bfin \
245 | c4x | clipper \
246 | d10v | d30v | dlx | dsp16xx \
247 | fido | fr30 | frv \
248 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
249 | i370 | i860 | i960 | ia64 \
250 | ip2k | iq2000 \
251 | m32c | m32r | m32rle | m68000 | m68k | m88k \
252 | maxq | mb | microblaze | mcore | mep \
253 | mips | mipsbe | mipseb | mipsel | mipsle \
254 | mips16 \
255 | mips64 | mips64el \
256 | mips64vr | mips64vrel \
257 | mips64orion | mips64orionel \
258 | mips64vr4100 | mips64vr4100el \
259 | mips64vr4300 | mips64vr4300el \
260 | mips64vr5000 | mips64vr5000el \
261 | mips64vr5900 | mips64vr5900el \
262 | mipsisa32 | mipsisa32el \
263 | mipsisa32r2 | mipsisa32r2el \
264 | mipsisa64 | mipsisa64el \
265 | mipsisa64r2 | mipsisa64r2el \
266 | mipsisa64sb1 | mipsisa64sb1el \
267 | mipsisa64sr71k | mipsisa64sr71kel \
268 | mipstx39 | mipstx39el \
269 | mn10200 | mn10300 \
270 | mt \
271 | msp430 \
272 | nios | nios2 \
273 | ns16k | ns32k \
274 | or32 \
275 | pdp10 | pdp11 | pj | pjl \
276 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
277 | pyramid \
278 | score \
279 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
280 | sh64 | sh64le \
281 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
282 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
283 | spu | strongarm \
284 | tahoe | thumb | tic4x | tic80 | tron \
285 | v850 | v850e \
286 | we32k \
287 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
288 | z8k)
289 basic_machine=$basic_machine-unknown
290 ;;
291 m6811 | m68hc11 | m6812 | m68hc12)
292 # Motorola 68HC11/12.
293 basic_machine=$basic_machine-unknown
294 os=-none
295 ;;
296 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
297 ;;
298 ms1)
299 basic_machine=mt-unknown
300 ;;
301
302 # We use `pc' rather than `unknown'
303 # because (1) that's what they normally are, and
304 # (2) the word "unknown" tends to confuse beginning users.
305 i*86 | x86_64)
306 basic_machine=$basic_machine-pc
307 ;;
308 # Object if more than one company name word.
309 *-*-*)
310 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
311 exit 1
312 ;;
313 # Recognize the basic CPU types with company name.
314 580-* \
315 | a29k-* \
316 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
317 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
320 | avr-* | avr32-* \
321 | bfin-* | bs2000-* \
322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
323 | clipper-* | craynv-* | cydra-* \
324 | d10v-* | d30v-* | dlx-* \
325 | elxsi-* \
326 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
327 | h8300-* | h8500-* \
328 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
329 | i*86-* | i860-* | i960-* | ia64-* \
330 | ip2k-* | iq2000-* \
331 | m32c-* | m32r-* | m32rle-* \
332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
333 | m88110-* | m88k-* | maxq-* | mcore-* \
334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
335 | mips16-* \
336 | mips64-* | mips64el-* \
337 | mips64vr-* | mips64vrel-* \
338 | mips64orion-* | mips64orionel-* \
339 | mips64vr4100-* | mips64vr4100el-* \
340 | mips64vr4300-* | mips64vr4300el-* \
341 | mips64vr5000-* | mips64vr5000el-* \
342 | mips64vr5900-* | mips64vr5900el-* \
343 | mipsisa32-* | mipsisa32el-* \
344 | mipsisa32r2-* | mipsisa32r2el-* \
345 | mipsisa64-* | mipsisa64el-* \
346 | mipsisa64r2-* | mipsisa64r2el-* \
347 | mipsisa64sb1-* | mipsisa64sb1el-* \
348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
349 | mipstx39-* | mipstx39el-* \
350 | mmix-* \
351 | mt-* \
352 | msp430-* \
353 | nios-* | nios2-* \
354 | none-* | np1-* | ns16k-* | ns32k-* \
355 | orion-* \
356 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
357 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
358 | pyramid-* \
359 | romp-* | rs6000-* \
360 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
361 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
362 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
363 | sparclite-* \
364 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
365 | tahoe-* | thumb-* \
366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
367 | tron-* \
368 | v850-* | v850e-* | vax-* \
369 | we32k-* \
370 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
371 | xstormy16-* | xtensa-* \
372 | ymp-* \
373 | z8k-*)
374 ;;
375 # Recognize the various machine names and aliases which stand
376 # for a CPU type and a company and sometimes even an OS.
377 386bsd)
378 basic_machine=i386-unknown
379 os=-bsd
380 ;;
381 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
382 basic_machine=m68000-att
383 ;;
384 3b*)
385 basic_machine=we32k-att
386 ;;
387 a29khif)
388 basic_machine=a29k-amd
389 os=-udi
390 ;;
391 abacus)
392 basic_machine=abacus-unknown
393 ;;
394 adobe68k)
395 basic_machine=m68010-adobe
396 os=-scout
397 ;;
398 alliant | fx80)
399 basic_machine=fx80-alliant
400 ;;
401 altos | altos3068)
402 basic_machine=m68k-altos
403 ;;
404 am29k)
405 basic_machine=a29k-none
406 os=-bsd
407 ;;
408 amd64)
409 basic_machine=x86_64-pc
410 ;;
411 amd64-*)
412 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
413 ;;
414 amdahl)
415 basic_machine=580-amdahl
416 os=-sysv
417 ;;
418 amiga | amiga-*)
419 basic_machine=m68k-unknown
420 ;;
421 amigaos | amigados)
422 basic_machine=m68k-unknown
423 os=-amigaos
424 ;;
425 amigaunix | amix)
426 basic_machine=m68k-unknown
427 os=-sysv4
428 ;;
429 apollo68)
430 basic_machine=m68k-apollo
431 os=-sysv
432 ;;
433 apollo68bsd)
434 basic_machine=m68k-apollo
435 os=-bsd
436 ;;
437 aux)
438 basic_machine=m68k-apple
439 os=-aux
440 ;;
441 balance)
442 basic_machine=ns32k-sequent
443 os=-dynix
444 ;;
445 c90)
446 basic_machine=c90-cray
447 os=-unicos
448 ;;
449 convex-c1)
450 basic_machine=c1-convex
451 os=-bsd
452 ;;
453 convex-c2)
454 basic_machine=c2-convex
455 os=-bsd
456 ;;
457 convex-c32)
458 basic_machine=c32-convex
459 os=-bsd
460 ;;
461 convex-c34)
462 basic_machine=c34-convex
463 os=-bsd
464 ;;
465 convex-c38)
466 basic_machine=c38-convex
467 os=-bsd
468 ;;
469 cray | j90)
470 basic_machine=j90-cray
471 os=-unicos
472 ;;
473 craynv)
474 basic_machine=craynv-cray
475 os=-unicosmp
476 ;;
477 cr16)
478 basic_machine=cr16-unknown
479 os=-elf
480 ;;
481 crds | unos)
482 basic_machine=m68k-crds
483 ;;
484 crisv32 | crisv32-* | etraxfs*)
485 basic_machine=crisv32-axis
486 ;;
487 cris | cris-* | etrax*)
488 basic_machine=cris-axis
489 ;;
490 crx)
491 basic_machine=crx-unknown
492 os=-elf
493 ;;
494 da30 | da30-*)
495 basic_machine=m68k-da30
496 ;;
497 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
498 basic_machine=mips-dec
499 ;;
500 decsystem10* | dec10*)
501 basic_machine=pdp10-dec
502 os=-tops10
503 ;;
504 decsystem20* | dec20*)
505 basic_machine=pdp10-dec
506 os=-tops20
507 ;;
508 delta | 3300 | motorola-3300 | motorola-delta \
509 | 3300-motorola | delta-motorola)
510 basic_machine=m68k-motorola
511 ;;
512 delta88)
513 basic_machine=m88k-motorola
514 os=-sysv3
515 ;;
516 djgpp)
517 basic_machine=i586-pc
518 os=-msdosdjgpp
519 ;;
520 dpx20 | dpx20-*)
521 basic_machine=rs6000-bull
522 os=-bosx
523 ;;
524 dpx2* | dpx2*-bull)
525 basic_machine=m68k-bull
526 os=-sysv3
527 ;;
528 ebmon29k)
529 basic_machine=a29k-amd
530 os=-ebmon
531 ;;
532 elxsi)
533 basic_machine=elxsi-elxsi
534 os=-bsd
535 ;;
536 encore | umax | mmax)
537 basic_machine=ns32k-encore
538 ;;
539 es1800 | OSE68k | ose68k | ose | OSE)
540 basic_machine=m68k-ericsson
541 os=-ose
542 ;;
543 fx2800)
544 basic_machine=i860-alliant
545 ;;
546 genix)
547 basic_machine=ns32k-ns
548 ;;
549 gmicro)
550 basic_machine=tron-gmicro
551 os=-sysv
552 ;;
553 go32)
554 basic_machine=i386-pc
555 os=-go32
556 ;;
557 h3050r* | hiux*)
558 basic_machine=hppa1.1-hitachi
559 os=-hiuxwe2
560 ;;
561 h8300hms)
562 basic_machine=h8300-hitachi
563 os=-hms
564 ;;
565 h8300xray)
566 basic_machine=h8300-hitachi
567 os=-xray
568 ;;
569 h8500hms)
570 basic_machine=h8500-hitachi
571 os=-hms
572 ;;
573 harris)
574 basic_machine=m88k-harris
575 os=-sysv3
576 ;;
577 hp300-*)
578 basic_machine=m68k-hp
579 ;;
580 hp300bsd)
581 basic_machine=m68k-hp
582 os=-bsd
583 ;;
584 hp300hpux)
585 basic_machine=m68k-hp
586 os=-hpux
587 ;;
588 hp3k9[0-9][0-9] | hp9[0-9][0-9])
589 basic_machine=hppa1.0-hp
590 ;;
591 hp9k2[0-9][0-9] | hp9k31[0-9])
592 basic_machine=m68000-hp
593 ;;
594 hp9k3[2-9][0-9])
595 basic_machine=m68k-hp
596 ;;
597 hp9k6[0-9][0-9] | hp6[0-9][0-9])
598 basic_machine=hppa1.0-hp
599 ;;
600 hp9k7[0-79][0-9] | hp7[0-79][0-9])
601 basic_machine=hppa1.1-hp
602 ;;
603 hp9k78[0-9] | hp78[0-9])
604 # FIXME: really hppa2.0-hp
605 basic_machine=hppa1.1-hp
606 ;;
607 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
608 # FIXME: really hppa2.0-hp
609 basic_machine=hppa1.1-hp
610 ;;
611 hp9k8[0-9][13679] | hp8[0-9][13679])
612 basic_machine=hppa1.1-hp
613 ;;
614 hp9k8[0-9][0-9] | hp8[0-9][0-9])
615 basic_machine=hppa1.0-hp
616 ;;
617 hppa-next)
618 os=-nextstep3
619 ;;
620 hppaosf)
621 basic_machine=hppa1.1-hp
622 os=-osf
623 ;;
624 hppro)
625 basic_machine=hppa1.1-hp
626 os=-proelf
627 ;;
628 i370-ibm* | ibm*)
629 basic_machine=i370-ibm
630 ;;
631 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
632 i*86v32)
633 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
634 os=-sysv32
635 ;;
636 i*86v4*)
637 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
638 os=-sysv4
639 ;;
640 i*86v)
641 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
642 os=-sysv
643 ;;
644 i*86sol2)
645 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
646 os=-solaris2
647 ;;
648 i386mach)
649 basic_machine=i386-mach
650 os=-mach
651 ;;
652 i386-vsta | vsta)
653 basic_machine=i386-unknown
654 os=-vsta
655 ;;
656 iris | iris4d)
657 basic_machine=mips-sgi
658 case $os in
659 -irix*)
660 ;;
661 *)
662 os=-irix4
663 ;;
664 esac
665 ;;
666 isi68 | isi)
667 basic_machine=m68k-isi
668 os=-sysv
669 ;;
670 m88k-omron*)
671 basic_machine=m88k-omron
672 ;;
673 magnum | m3230)
674 basic_machine=mips-mips
675 os=-sysv
676 ;;
677 merlin)
678 basic_machine=ns32k-utek
679 os=-sysv
680 ;;
681 mingw32)
682 basic_machine=i386-pc
683 os=-mingw32
684 ;;
685 mingw32ce)
686 basic_machine=arm-unknown
687 os=-mingw32ce
688 ;;
689 miniframe)
690 basic_machine=m68000-convergent
691 ;;
692 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
693 basic_machine=m68k-atari
694 os=-mint
695 ;;
696 mips3*-*)
697 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
698 ;;
699 mips3*)
700 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
701 ;;
702 monitor)
703 basic_machine=m68k-rom68k
704 os=-coff
705 ;;
706 morphos)
707 basic_machine=powerpc-unknown
708 os=-morphos
709 ;;
710 msdos)
711 basic_machine=i386-pc
712 os=-msdos
713 ;;
714 ms1-*)
715 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
716 ;;
717 mvs)
718 basic_machine=i370-ibm
719 os=-mvs
720 ;;
721 ncr3000)
722 basic_machine=i486-ncr
723 os=-sysv4
724 ;;
725 netbsd386)
726 basic_machine=i386-unknown
727 os=-netbsd
728 ;;
729 netwinder)
730 basic_machine=armv4l-rebel
731 os=-linux
732 ;;
733 news | news700 | news800 | news900)
734 basic_machine=m68k-sony
735 os=-newsos
736 ;;
737 news1000)
738 basic_machine=m68030-sony
739 os=-newsos
740 ;;
741 news-3600 | risc-news)
742 basic_machine=mips-sony
743 os=-newsos
744 ;;
745 necv70)
746 basic_machine=v70-nec
747 os=-sysv
748 ;;
749 next | m*-next )
750 basic_machine=m68k-next
751 case $os in
752 -nextstep* )
753 ;;
754 -ns2*)
755 os=-nextstep2
756 ;;
757 *)
758 os=-nextstep3
759 ;;
760 esac
761 ;;
762 nh3000)
763 basic_machine=m68k-harris
764 os=-cxux
765 ;;
766 nh[45]000)
767 basic_machine=m88k-harris
768 os=-cxux
769 ;;
770 nindy960)
771 basic_machine=i960-intel
772 os=-nindy
773 ;;
774 mon960)
775 basic_machine=i960-intel
776 os=-mon960
777 ;;
778 nonstopux)
779 basic_machine=mips-compaq
780 os=-nonstopux
781 ;;
782 np1)
783 basic_machine=np1-gould
784 ;;
785 nsr-tandem)
786 basic_machine=nsr-tandem
787 ;;
788 op50n-* | op60c-*)
789 basic_machine=hppa1.1-oki
790 os=-proelf
791 ;;
792 openrisc | openrisc-*)
793 basic_machine=or32-unknown
794 ;;
795 os400)
796 basic_machine=powerpc-ibm
797 os=-os400
798 ;;
799 OSE68000 | ose68000)
800 basic_machine=m68000-ericsson
801 os=-ose
802 ;;
803 os68k)
804 basic_machine=m68k-none
805 os=-os68k
806 ;;
807 pa-hitachi)
808 basic_machine=hppa1.1-hitachi
809 os=-hiuxwe2
810 ;;
811 paragon)
812 basic_machine=i860-intel
813 os=-osf
814 ;;
815 pbd)
816 basic_machine=sparc-tti
817 ;;
818 pbb)
819 basic_machine=m68k-tti
820 ;;
821 pc532 | pc532-*)
822 basic_machine=ns32k-pc532
823 ;;
824 pc98)
825 basic_machine=i386-pc
826 ;;
827 pc98-*)
828 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
829 ;;
830 pentium | p5 | k5 | k6 | nexgen | viac3)
831 basic_machine=i586-pc
832 ;;
833 pentiumpro | p6 | 6x86 | athlon | athlon_*)
834 basic_machine=i686-pc
835 ;;
836 pentiumii | pentium2 | pentiumiii | pentium3)
837 basic_machine=i686-pc
838 ;;
839 pentium4)
840 basic_machine=i786-pc
841 ;;
842 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
843 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
844 ;;
845 pentiumpro-* | p6-* | 6x86-* | athlon-*)
846 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
847 ;;
848 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
849 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
850 ;;
851 pentium4-*)
852 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
853 ;;
854 pn)
855 basic_machine=pn-gould
856 ;;
857 power) basic_machine=power-ibm
858 ;;
859 ppc) basic_machine=powerpc-unknown
860 ;;
861 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
862 ;;
863 ppcle | powerpclittle | ppc-le | powerpc-little)
864 basic_machine=powerpcle-unknown
865 ;;
866 ppcle-* | powerpclittle-*)
867 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
868 ;;
869 ppc64) basic_machine=powerpc64-unknown
870 ;;
871 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
872 ;;
873 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
874 basic_machine=powerpc64le-unknown
875 ;;
876 ppc64le-* | powerpc64little-*)
877 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
878 ;;
879 ps2)
880 basic_machine=i386-ibm
881 ;;
882 pw32)
883 basic_machine=i586-unknown
884 os=-pw32
885 ;;
886 rdos)
887 basic_machine=i386-pc
888 os=-rdos
889 ;;
890 rom68k)
891 basic_machine=m68k-rom68k
892 os=-coff
893 ;;
894 rm[46]00)
895 basic_machine=mips-siemens
896 ;;
897 rtpc | rtpc-*)
898 basic_machine=romp-ibm
899 ;;
900 s390 | s390-*)
901 basic_machine=s390-ibm
902 ;;
903 s390x | s390x-*)
904 basic_machine=s390x-ibm
905 ;;
906 sa29200)
907 basic_machine=a29k-amd
908 os=-udi
909 ;;
910 sb1)
911 basic_machine=mipsisa64sb1-unknown
912 ;;
913 sb1el)
914 basic_machine=mipsisa64sb1el-unknown
915 ;;
916 sde)
917 basic_machine=mipsisa32-sde
918 os=-elf
919 ;;
920 sei)
921 basic_machine=mips-sei
922 os=-seiux
923 ;;
924 sequent)
925 basic_machine=i386-sequent
926 ;;
927 sh)
928 basic_machine=sh-hitachi
929 os=-hms
930 ;;
931 sh5el)
932 basic_machine=sh5le-unknown
933 ;;
934 sh64)
935 basic_machine=sh64-unknown
936 ;;
937 sparclite-wrs | simso-wrs)
938 basic_machine=sparclite-wrs
939 os=-vxworks
940 ;;
941 sps7)
942 basic_machine=m68k-bull
943 os=-sysv2
944 ;;
945 spur)
946 basic_machine=spur-unknown
947 ;;
948 st2000)
949 basic_machine=m68k-tandem
950 ;;
951 stratus)
952 basic_machine=i860-stratus
953 os=-sysv4
954 ;;
955 sun2)
956 basic_machine=m68000-sun
957 ;;
958 sun2os3)
959 basic_machine=m68000-sun
960 os=-sunos3
961 ;;
962 sun2os4)
963 basic_machine=m68000-sun
964 os=-sunos4
965 ;;
966 sun3os3)
967 basic_machine=m68k-sun
968 os=-sunos3
969 ;;
970 sun3os4)
971 basic_machine=m68k-sun
972 os=-sunos4
973 ;;
974 sun4os3)
975 basic_machine=sparc-sun
976 os=-sunos3
977 ;;
978 sun4os4)
979 basic_machine=sparc-sun
980 os=-sunos4
981 ;;
982 sun4sol2)
983 basic_machine=sparc-sun
984 os=-solaris2
985 ;;
986 sun3 | sun3-*)
987 basic_machine=m68k-sun
988 ;;
989 sun4)
990 basic_machine=sparc-sun
991 ;;
992 sun386 | sun386i | roadrunner)
993 basic_machine=i386-sun
994 ;;
995 sv1)
996 basic_machine=sv1-cray
997 os=-unicos
998 ;;
999 symmetry)
1000 basic_machine=i386-sequent
1001 os=-dynix
1002 ;;
1003 t3e)
1004 basic_machine=alphaev5-cray
1005 os=-unicos
1006 ;;
1007 t90)
1008 basic_machine=t90-cray
1009 os=-unicos
1010 ;;
1011 tic54x | c54x*)
1012 basic_machine=tic54x-unknown
1013 os=-coff
1014 ;;
1015 tic55x | c55x*)
1016 basic_machine=tic55x-unknown
1017 os=-coff
1018 ;;
1019 tic6x | c6x*)
1020 basic_machine=tic6x-unknown
1021 os=-coff
1022 ;;
1023 tx39)
1024 basic_machine=mipstx39-unknown
1025 ;;
1026 tx39el)
1027 basic_machine=mipstx39el-unknown
1028 ;;
1029 toad1)
1030 basic_machine=pdp10-xkl
1031 os=-tops20
1032 ;;
1033 tower | tower-32)
1034 basic_machine=m68k-ncr
1035 ;;
1036 tpf)
1037 basic_machine=s390x-ibm
1038 os=-tpf
1039 ;;
1040 udi29k)
1041 basic_machine=a29k-amd
1042 os=-udi
1043 ;;
1044 ultra3)
1045 basic_machine=a29k-nyu
1046 os=-sym1
1047 ;;
1048 v810 | necv810)
1049 basic_machine=v810-nec
1050 os=-none
1051 ;;
1052 vaxv)
1053 basic_machine=vax-dec
1054 os=-sysv
1055 ;;
1056 vms)
1057 basic_machine=vax-dec
1058 os=-vms
1059 ;;
1060 vpp*|vx|vx-*)
1061 basic_machine=f301-fujitsu
1062 ;;
1063 vxworks960)
1064 basic_machine=i960-wrs
1065 os=-vxworks
1066 ;;
1067 vxworks68)
1068 basic_machine=m68k-wrs
1069 os=-vxworks
1070 ;;
1071 vxworks29k)
1072 basic_machine=a29k-wrs
1073 os=-vxworks
1074 ;;
1075 w65*)
1076 basic_machine=w65-wdc
1077 os=-none
1078 ;;
1079 w89k-*)
1080 basic_machine=hppa1.1-winbond
1081 os=-proelf
1082 ;;
1083 xbox)
1084 basic_machine=i686-pc
1085 os=-mingw32
1086 ;;
1087 xps | xps100)
1088 basic_machine=xps100-honeywell
1089 ;;
1090 ymp)
1091 basic_machine=ymp-cray
1092 os=-unicos
1093 ;;
1094 z8k-*-coff)
1095 basic_machine=z8k-unknown
1096 os=-sim
1097 ;;
1098 none)
1099 basic_machine=none-none
1100 os=-none
1101 ;;
1102
1103 # Here we handle the default manufacturer of certain CPU types. It is in
1104 # some cases the only manufacturer, in others, it is the most popular.
1105 w89k)
1106 basic_machine=hppa1.1-winbond
1107 ;;
1108 op50n)
1109 basic_machine=hppa1.1-oki
1110 ;;
1111 op60c)
1112 basic_machine=hppa1.1-oki
1113 ;;
1114 romp)
1115 basic_machine=romp-ibm
1116 ;;
1117 mmix)
1118 basic_machine=mmix-knuth
1119 ;;
1120 rs6000)
1121 basic_machine=rs6000-ibm
1122 ;;
1123 vax)
1124 basic_machine=vax-dec
1125 ;;
1126 pdp10)
1127 # there are many clones, so DEC is not a safe bet
1128 basic_machine=pdp10-unknown
1129 ;;
1130 pdp11)
1131 basic_machine=pdp11-dec
1132 ;;
1133 we32k)
1134 basic_machine=we32k-att
1135 ;;
1136 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1137 basic_machine=sh-unknown
1138 ;;
1139 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1140 basic_machine=sparc-sun
1141 ;;
1142 cydra)
1143 basic_machine=cydra-cydrome
1144 ;;
1145 orion)
1146 basic_machine=orion-highlevel
1147 ;;
1148 orion105)
1149 basic_machine=clipper-highlevel
1150 ;;
1151 mac | mpw | mac-mpw)
1152 basic_machine=m68k-apple
1153 ;;
1154 pmac | pmac-mpw)
1155 basic_machine=powerpc-apple
1156 ;;
1157 *-unknown)
1158 # Make sure to match an already-canonicalized machine name.
1159 ;;
1160 *)
1161 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1162 exit 1
1163 ;;
1164 esac
1165
1166 # Here we canonicalize certain aliases for manufacturers.
1167 case $basic_machine in
1168 *-digital*)
1169 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1170 ;;
1171 *-commodore*)
1172 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1173 ;;
1174 *)
1175 ;;
1176 esac
1177
1178 # Decode manufacturer-specific aliases for certain operating systems.
1179
1180 if [ x"$os" != x"" ]
1181 then
1182 case $os in
1183 # First match some system type aliases
1184 # that might get confused with valid system types.
1185 # -solaris* is a basic system type, with this one exception.
1186 -solaris1 | -solaris1.*)
1187 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1188 ;;
1189 -solaris)
1190 os=-solaris2
1191 ;;
1192 -svr4*)
1193 os=-sysv4
1194 ;;
1195 -unixware*)
1196 os=-sysv4.2uw
1197 ;;
1198 -gnu/linux*)
1199 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1200 ;;
1201 # First accept the basic system types.
1202 # The portable systems comes first.
1203 # Each alternative MUST END IN A *, to match a version number.
1204 # -sysv* is not here because it comes later, after sysvr4.
1205 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1206 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1207 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1208 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1209 | -aos* \
1210 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1211 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1212 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1213 | -openbsd* | -solidbsd* \
1214 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1215 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1216 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1217 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1218 | -chorusos* | -chorusrdb* \
1219 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1220 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1221 | -uxpv* | -beos* | -mpeix* | -udk* \
1222 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1223 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1224 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1225 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1226 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1227 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1228 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1229 # Remember, each alternative MUST END IN *, to match a version number.
1230 ;;
1231 -qnx*)
1232 case $basic_machine in
1233 x86-* | i*86-*)
1234 ;;
1235 *)
1236 os=-nto$os
1237 ;;
1238 esac
1239 ;;
1240 -nto-qnx*)
1241 ;;
1242 -nto*)
1243 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1244 ;;
1245 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1246 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1247 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1248 ;;
1249 -mac*)
1250 os=`echo $os | sed -e 's|mac|macos|'`
1251 ;;
1252 -linux-dietlibc)
1253 os=-linux-dietlibc
1254 ;;
1255 -linux*)
1256 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1257 ;;
1258 -sunos5*)
1259 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1260 ;;
1261 -sunos6*)
1262 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1263 ;;
1264 -opened*)
1265 os=-openedition
1266 ;;
1267 -os400*)
1268 os=-os400
1269 ;;
1270 -wince*)
1271 os=-wince
1272 ;;
1273 -osfrose*)
1274 os=-osfrose
1275 ;;
1276 -osf*)
1277 os=-osf
1278 ;;
1279 -utek*)
1280 os=-bsd
1281 ;;
1282 -dynix*)
1283 os=-bsd
1284 ;;
1285 -acis*)
1286 os=-aos
1287 ;;
1288 -atheos*)
1289 os=-atheos
1290 ;;
1291 -syllable*)
1292 os=-syllable
1293 ;;
1294 -386bsd)
1295 os=-bsd
1296 ;;
1297 -ctix* | -uts*)
1298 os=-sysv
1299 ;;
1300 -nova*)
1301 os=-rtmk-nova
1302 ;;
1303 -ns2 )
1304 os=-nextstep2
1305 ;;
1306 -nsk*)
1307 os=-nsk
1308 ;;
1309 # Preserve the version number of sinix5.
1310 -sinix5.*)
1311 os=`echo $os | sed -e 's|sinix|sysv|'`
1312 ;;
1313 -sinix*)
1314 os=-sysv4
1315 ;;
1316 -tpf*)
1317 os=-tpf
1318 ;;
1319 -triton*)
1320 os=-sysv3
1321 ;;
1322 -oss*)
1323 os=-sysv3
1324 ;;
1325 -svr4)
1326 os=-sysv4
1327 ;;
1328 -svr3)
1329 os=-sysv3
1330 ;;
1331 -sysvr4)
1332 os=-sysv4
1333 ;;
1334 # This must come after -sysvr4.
1335 -sysv*)
1336 ;;
1337 -ose*)
1338 os=-ose
1339 ;;
1340 -es1800*)
1341 os=-ose
1342 ;;
1343 -xenix)
1344 os=-xenix
1345 ;;
1346 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1347 os=-mint
1348 ;;
1349 -aros*)
1350 os=-aros
1351 ;;
1352 -kaos*)
1353 os=-kaos
1354 ;;
1355 -zvmoe)
1356 os=-zvmoe
1357 ;;
1358 -none)
1359 ;;
1360 *)
1361 # Get rid of the `-' at the beginning of $os.
1362 os=`echo $os | sed 's/[^-]*-//'`
1363 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1364 exit 1
1365 ;;
1366 esac
1367 else
1368
1369 # Here we handle the default operating systems that come with various machines.
1370 # The value should be what the vendor currently ships out the door with their
1371 # machine or put another way, the most popular os provided with the machine.
1372
1373 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1374 # "-sun"), then you have to tell the case statement up towards the top
1375 # that MANUFACTURER isn't an operating system. Otherwise, code above
1376 # will signal an error saying that MANUFACTURER isn't an operating
1377 # system, and we'll never get to this point.
1378
1379 case $basic_machine in
1380 score-*)
1381 os=-elf
1382 ;;
1383 spu-*)
1384 os=-elf
1385 ;;
1386 *-acorn)
1387 os=-riscix1.2
1388 ;;
1389 arm*-rebel)
1390 os=-linux
1391 ;;
1392 arm*-semi)
1393 os=-aout
1394 ;;
1395 c4x-* | tic4x-*)
1396 os=-coff
1397 ;;
1398 # This must come before the *-dec entry.
1399 pdp10-*)
1400 os=-tops20
1401 ;;
1402 pdp11-*)
1403 os=-none
1404 ;;
1405 *-dec | vax-*)
1406 os=-ultrix4.2
1407 ;;
1408 m68*-apollo)
1409 os=-domain
1410 ;;
1411 i386-sun)
1412 os=-sunos4.0.2
1413 ;;
1414 m68000-sun)
1415 os=-sunos3
1416 # This also exists in the configure program, but was not the
1417 # default.
1418 # os=-sunos4
1419 ;;
1420 m68*-cisco)
1421 os=-aout
1422 ;;
1423 mep-*)
1424 os=-elf
1425 ;;
1426 mips*-cisco)
1427 os=-elf
1428 ;;
1429 mips*-*)
1430 os=-elf
1431 ;;
1432 or32-*)
1433 os=-coff
1434 ;;
1435 *-tti) # must be before sparc entry or we get the wrong os.
1436 os=-sysv3
1437 ;;
1438 sparc-* | *-sun)
1439 os=-sunos4.1.1
1440 ;;
1441 *-be)
1442 os=-beos
1443 ;;
1444 *-haiku)
1445 os=-haiku
1446 ;;
1447 *-ibm)
1448 os=-aix
1449 ;;
1450 *-knuth)
1451 os=-mmixware
1452 ;;
1453 *-wec)
1454 os=-proelf
1455 ;;
1456 *-winbond)
1457 os=-proelf
1458 ;;
1459 *-oki)
1460 os=-proelf
1461 ;;
1462 *-hp)
1463 os=-hpux
1464 ;;
1465 *-hitachi)
1466 os=-hiux
1467 ;;
1468 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1469 os=-sysv
1470 ;;
1471 *-cbm)
1472 os=-amigaos
1473 ;;
1474 *-dg)
1475 os=-dgux
1476 ;;
1477 *-dolphin)
1478 os=-sysv3
1479 ;;
1480 m68k-ccur)
1481 os=-rtu
1482 ;;
1483 m88k-omron*)
1484 os=-luna
1485 ;;
1486 *-next )
1487 os=-nextstep
1488 ;;
1489 *-sequent)
1490 os=-ptx
1491 ;;
1492 *-crds)
1493 os=-unos
1494 ;;
1495 *-ns)
1496 os=-genix
1497 ;;
1498 i370-*)
1499 os=-mvs
1500 ;;
1501 *-next)
1502 os=-nextstep3
1503 ;;
1504 *-gould)
1505 os=-sysv
1506 ;;
1507 *-highlevel)
1508 os=-bsd
1509 ;;
1510 *-encore)
1511 os=-bsd
1512 ;;
1513 *-sgi)
1514 os=-irix
1515 ;;
1516 *-siemens)
1517 os=-sysv4
1518 ;;
1519 *-masscomp)
1520 os=-rtu
1521 ;;
1522 f30[01]-fujitsu | f700-fujitsu)
1523 os=-uxpv
1524 ;;
1525 *-rom68k)
1526 os=-coff
1527 ;;
1528 *-*bug)
1529 os=-coff
1530 ;;
1531 *-apple)
1532 os=-macos
1533 ;;
1534 *-atari*)
1535 os=-mint
1536 ;;
1537 *)
1538 os=-none
1539 ;;
1540 esac
1541 fi
1542
1543 # Here we handle the case where we know the os, and the CPU type, but not the
1544 # manufacturer. We pick the logical manufacturer.
1545 vendor=unknown
1546 case $basic_machine in
1547 *-unknown)
1548 case $os in
1549 -riscix*)
1550 vendor=acorn
1551 ;;
1552 -sunos*)
1553 vendor=sun
1554 ;;
1555 -aix*)
1556 vendor=ibm
1557 ;;
1558 -beos*)
1559 vendor=be
1560 ;;
1561 -hpux*)
1562 vendor=hp
1563 ;;
1564 -mpeix*)
1565 vendor=hp
1566 ;;
1567 -hiux*)
1568 vendor=hitachi
1569 ;;
1570 -unos*)
1571 vendor=crds
1572 ;;
1573 -dgux*)
1574 vendor=dg
1575 ;;
1576 -luna*)
1577 vendor=omron
1578 ;;
1579 -genix*)
1580 vendor=ns
1581 ;;
1582 -mvs* | -opened*)
1583 vendor=ibm
1584 ;;
1585 -os400*)
1586 vendor=ibm
1587 ;;
1588 -ptx*)
1589 vendor=sequent
1590 ;;
1591 -tpf*)
1592 vendor=ibm
1593 ;;
1594 -vxsim* | -vxworks* | -windiss*)
1595 vendor=wrs
1596 ;;
1597 -aux*)
1598 vendor=apple
1599 ;;
1600 -hms*)
1601 vendor=hitachi
1602 ;;
1603 -mpw* | -macos*)
1604 vendor=apple
1605 ;;
1606 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1607 vendor=atari
1608 ;;
1609 -vos*)
1610 vendor=stratus
1611 ;;
1612 esac
1613 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1614 ;;
1615 esac
1616
1617 echo $basic_machine$os
1618 exit
1619
1620 # Local variables:
1621 # eval: (add-hook 'write-file-hooks 'time-stamp)
1622 # time-stamp-start: "timestamp='"
1623 # time-stamp-format: "%:y-%02m-%02d"
1624 # time-stamp-end: "'"
1625 # End:
+0
-25307
current/configure less more
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.61.
3 #
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in
23 *posix*) set -o posix ;;
24 esac
25
26 fi
27
28
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
48 fi
49 rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" "" $as_nl"
68
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81 ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106 do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
158 fi
159
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
163 }
164 as_func_success () {
165 as_func_return 0
166 }
167 as_func_failure () {
168 as_func_return 1
169 }
170 as_func_ret_success () {
171 return 0
172 }
173 as_func_ret_failure () {
174 return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179 :
180 else
181 exitcode=1
182 echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191 :
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204 else
205 exitcode=1
206 echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217 :
218 else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
226 /*)
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in
248 *posix*) set -o posix ;;
249 esac
250
251 fi
252
253
254 :
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in
269 *posix*) set -o posix ;;
270 esac
271
272 fi
273
274
275 :
276 (as_func_return () {
277 (exit $1)
278 }
279 as_func_success () {
280 as_func_return 0
281 }
282 as_func_failure () {
283 as_func_return 1
284 }
285 as_func_ret_success () {
286 return 0
287 }
288 as_func_ret_failure () {
289 return 1
290 }
291
292 exitcode=0
293 if as_func_success; then
294 :
295 else
296 exitcode=1
297 echo as_func_success failed.
298 fi
299
300 if as_func_failure; then
301 exitcode=1
302 echo as_func_failure succeeded.
303 fi
304
305 if as_func_ret_success; then
306 :
307 else
308 exitcode=1
309 echo as_func_ret_success failed.
310 fi
311
312 if as_func_ret_failure; then
313 exitcode=1
314 echo as_func_ret_failure succeeded.
315 fi
316
317 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 :
319 else
320 exitcode=1
321 echo positional parameters were not saved.
322 fi
323
324 test $exitcode = 0) || { (exit 1); exit 1; }
325
326 (
327 as_lineno_1=$LINENO
328 as_lineno_2=$LINENO
329 test "x$as_lineno_1" != "x$as_lineno_2" &&
330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331
332 _ASEOF
333 }; then
334 break
335 fi
336
337 fi
338
339 done
340
341 if test "x$CONFIG_SHELL" != x; then
342 for as_var in BASH_ENV ENV
343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 done
345 export CONFIG_SHELL
346 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 fi
348
349
350 if test $as_have_required = no; then
351 echo This script requires a shell more modern than all the
352 echo shells that I found on your system. Please install a
353 echo modern shell, or manually run the script under such a
354 echo shell if you do have one.
355 { (exit 1); exit 1; }
356 fi
357
358
359 fi
360
361 fi
362
363
364
365 (eval "as_func_return () {
366 (exit \$1)
367 }
368 as_func_success () {
369 as_func_return 0
370 }
371 as_func_failure () {
372 as_func_return 1
373 }
374 as_func_ret_success () {
375 return 0
376 }
377 as_func_ret_failure () {
378 return 1
379 }
380
381 exitcode=0
382 if as_func_success; then
383 :
384 else
385 exitcode=1
386 echo as_func_success failed.
387 fi
388
389 if as_func_failure; then
390 exitcode=1
391 echo as_func_failure succeeded.
392 fi
393
394 if as_func_ret_success; then
395 :
396 else
397 exitcode=1
398 echo as_func_ret_success failed.
399 fi
400
401 if as_func_ret_failure; then
402 exitcode=1
403 echo as_func_ret_failure succeeded.
404 fi
405
406 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 :
408 else
409 exitcode=1
410 echo positional parameters were not saved.
411 fi
412
413 test \$exitcode = 0") || {
414 echo No shell found that supports shell functions.
415 echo Please tell autoconf@gnu.org about your system,
416 echo including any error possibly output before this
417 echo message
418 }
419
420
421
422 as_lineno_1=$LINENO
423 as_lineno_2=$LINENO
424 test "x$as_lineno_1" != "x$as_lineno_2" &&
425 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426
427 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
428 # uniformly replaced by the line number. The first 'sed' inserts a
429 # line-number line after each line using $LINENO; the second 'sed'
430 # does the real work. The second script uses 'N' to pair each
431 # line-number line with the line containing $LINENO, and appends
432 # trailing '-' during substitution so that $LINENO is not a special
433 # case at line end.
434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
435 # scripts with optimization help from Paolo Bonzini. Blame Lee
436 # E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
454 { (exit 1); exit 1; }; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
469 fi
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in
473 -n*)
474 case `echo 'x\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 *) ECHO_C='\c';;
477 esac;;
478 *)
479 ECHO_N='-n';;
480 esac
481
482 if expr a : '\(a\)' >/dev/null 2>&1 &&
483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 as_expr=expr
485 else
486 as_expr=false
487 fi
488
489 rm -f conf$$ conf$$.exe conf$$.file
490 if test -d conf$$.dir; then
491 rm -f conf$$.dir/conf$$.file
492 else
493 rm -f conf$$.dir
494 mkdir conf$$.dir
495 fi
496 echo >conf$$.file
497 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s='ln -s'
499 # ... but there are two gotchas:
500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
502 # In both cases, we have to default to `cp -p'.
503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 as_ln_s='cp -p'
505 elif ln conf$$.file conf$$ 2>/dev/null; then
506 as_ln_s=ln
507 else
508 as_ln_s='cp -p'
509 fi
510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511 rmdir conf$$.dir 2>/dev/null
512
513 if mkdir -p . 2>/dev/null; then
514 as_mkdir_p=:
515 else
516 test -d ./-p && rmdir ./-p
517 as_mkdir_p=false
518 fi
519
520 if test -x / >/dev/null 2>&1; then
521 as_test_x='test -x'
522 else
523 if ls -dL / >/dev/null 2>&1; then
524 as_ls_L_option=L
525 else
526 as_ls_L_option=
527 fi
528 as_test_x='
529 eval sh -c '\''
530 if test -d "$1"; then
531 test -d "$1/.";
532 else
533 case $1 in
534 -*)set "./$1";;
535 esac;
536 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
537 ???[sx]*):;;*)false;;esac;fi
538 '\'' sh
539 '
540 fi
541 as_executable_p=$as_test_x
542
543 # Sed expression to map a string onto a valid CPP name.
544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
546 # Sed expression to map a string onto a valid variable name.
547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
549
550
551
552 # Check that we are running under the correct shell.
553 SHELL=${CONFIG_SHELL-/bin/sh}
554
555 case X$ECHO in
556 X*--fallback-echo)
557 # Remove one level of quotation (which was required for Make).
558 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
559 ;;
560 esac
561
562 echo=${ECHO-echo}
563 if test "X$1" = X--no-reexec; then
564 # Discard the --no-reexec flag, and continue.
565 shift
566 elif test "X$1" = X--fallback-echo; then
567 # Avoid inline document here, it may be left over
568 :
569 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
570 # Yippee, $echo works!
571 :
572 else
573 # Restart under the correct shell.
574 exec $SHELL "$0" --no-reexec ${1+"$@"}
575 fi
576
577 if test "X$1" = X--fallback-echo; then
578 # used as fallback echo
579 shift
580 cat <<EOF
581 $*
582 EOF
583 exit 0
584 fi
585
586 # The HP-UX ksh and POSIX shell print the target directory to stdout
587 # if CDPATH is set.
588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
589
590 if test -z "$ECHO"; then
591 if test "X${echo_test_string+set}" != Xset; then
592 # find a string as large as possible, as long as the shell can cope with it
593 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
594 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
595 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
596 echo_test_string=`eval $cmd` &&
597 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 echo="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$echo" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 echo='print -r'
635 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 echo='printf %s\n'
646 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 echo="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 echo=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 ECHO=$echo
694 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 tagnames=${tagnames+${tagnames},}CXX
702
703 tagnames=${tagnames+${tagnames},}F77
704
705 exec 7<&0 </dev/null 6>&1
706
707 # Name of the host.
708 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
709 # so uname gets run too.
710 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711
712 #
713 # Initializations.
714 #
715 ac_default_prefix=/usr/local
716 ac_clean_files=
717 ac_config_libobj_dir=.
718 LIBOBJS=
719 cross_compiling=no
720 subdirs=
721 MFLAGS=
722 MAKEFLAGS=
723 SHELL=${CONFIG_SHELL-/bin/sh}
724
725 # Identity of this package.
726 PACKAGE_NAME=
727 PACKAGE_TARNAME=
728 PACKAGE_VERSION=
729 PACKAGE_STRING=
730 PACKAGE_BUGREPORT=
731
732 ac_unique_file="src/hdate.h"
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 # include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 # include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 gt_needs=
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 VERSION_INFO
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 MAINTAINER_MODE_TRUE
830 MAINTAINER_MODE_FALSE
831 MAINT
832 CC
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 DEPDIR
840 am__include
841 am__quote
842 AMDEP_TRUE
843 AMDEP_FALSE
844 AMDEPBACKSLASH
845 CCDEPMODE
846 am__fastdepCC_TRUE
847 am__fastdepCC_FALSE
848 CPP
849 GREP
850 EGREP
851 LN_S
852 build
853 build_cpu
854 build_vendor
855 build_os
856 host
857 host_cpu
858 host_vendor
859 host_os
860 SED
861 ECHO
862 AR
863 RANLIB
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 PKG_CONFIG
876 have_swig
877 have_pascal
878 PA_VERSION
879 PA_MODULES_PATH
880 WITH_PASCAL_TRUE
881 WITH_PASCAL_FALSE
882 have_python
883 PY_VERSION
884 PY_CFLAGS
885 PY_MODULES_PATH
886 WITH_PYTHON_TRUE
887 WITH_PYTHON_FALSE
888 have_ruby
889 RU_VERSION
890 RU_CFLAGS
891 RU_MODULES_PATH
892 WITH_RUBY_TRUE
893 WITH_RUBY_FALSE
894 have_php
895 have_php_config
896 PH_CONFIG_PATH
897 PH_MODULES_PATH
898 WITH_PHP_TRUE
899 WITH_PHP_FALSE
900 have_perl
901 PE_CFLAGS
902 PE_MODULES_PATH
903 WITH_PERL_TRUE
904 WITH_PERL_FALSE
905 USE_NLS
906 GETTEXT_MACRO_VERSION
907 MSGFMT
908 GMSGFMT
909 MSGFMT_015
910 GMSGFMT_015
911 XGETTEXT
912 XGETTEXT_015
913 MSGMERGE
914 XGETTEXT_EXTRA_OPTIONS
915 INTL_MACOSX_LIBS
916 LIBICONV
917 LTLIBICONV
918 INTLLIBS
919 LIBINTL
920 LTLIBINTL
921 POSUB
922 DATADIRNAME
923 WITH_HCAL_TRUE
924 WITH_HCAL_FALSE
925 LIBOBJS
926 LTLIBOBJS'
927 ac_subst_files=''
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CPP
937 CXX
938 CXXFLAGS
939 CCC
940 CXXCPP
941 F77
942 FFLAGS'
943
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052 eval enable_$ac_feature=no ;;
1053
1054 -docdir | --docdir | --docdi | --doc | --do)
1055 ac_prev=docdir ;;
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1058
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 ac_prev=dvidir ;;
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1063
1064 -enable-* | --enable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071 eval enable_$ac_feature=\$ac_optarg ;;
1072
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1081
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1084 with_gas=yes ;;
1085
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1092
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1097
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 ac_prev=htmldir ;;
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 | --ht=*)
1102 htmldir=$ac_optarg ;;
1103
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1110
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 ac_prev=infodir ;;
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1115
1116 -libdir | --libdir | --libdi | --libd)
1117 ac_prev=libdir ;;
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1120
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1127
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1132
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1139
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 ac_prev=mandir ;;
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1144
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1147 with_fp=no ;;
1148
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1151 no_create=yes ;;
1152
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 no_recursion=yes ;;
1156
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1165
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 ac_prev=prefix ;;
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1170
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1177
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1184
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1201
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 ac_prev=pdfdir ;;
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1206
1207 -psdir | --psdir | --psdi | --psd | --ps)
1208 ac_prev=psdir ;;
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 psdir=$ac_optarg ;;
1211
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 silent=yes ;;
1215
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1232
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1242
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1249
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1260
1261 -with-* | --with-*)
1262 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid package name: $ac_package" >&2
1266 { (exit 1); exit 1; }; }
1267 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268 eval with_$ac_package=\$ac_optarg ;;
1269
1270 -without-* | --without-*)
1271 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid package name: $ac_package" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277 eval with_$ac_package=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) { echo "$as_me: error: unrecognized option: $ac_option
1298 Try \`$0 --help' for more information." >&2
1299 { (exit 1); exit 1; }; }
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307 { (exit 1); exit 1; }; }
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 { echo "$as_me: error: missing argument to $ac_option" >&2
1325 { (exit 1); exit 1; }; }
1326 fi
1327
1328 # Be sure to have absolute directory names.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1333 do
1334 eval ac_val=\$$ac_var
1335 case $ac_val in
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338 esac
1339 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340 { (exit 1); exit 1; }; }
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used." >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359 fi
1360
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364 test "$silent" = yes && exec 6>/dev/null
1365
1366
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 { echo "$as_me: error: Working directory cannot be determined" >&2
1371 { (exit 1); exit 1; }; }
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 { echo "$as_me: error: pwd does not report name of working directory" >&2
1374 { (exit 1); exit 1; }; }
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$0" ||
1382 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$0" : 'X\(//\)[^/]' \| \
1384 X"$0" : 'X\(//\)$' \| \
1385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1386 echo X"$0" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1407 fi
1408 else
1409 ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414 { (exit 1); exit 1; }; }
1415 fi
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 ac_abs_confdir=`(
1418 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419 { (exit 1); exit 1; }; }
1420 pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1424 fi
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 done
1437
1438 #
1439 # Report the --help message.
1440 #
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1444 cat <<_ACEOF
1445 \`configure' configures this package to adapt to many kinds of systems.
1446
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1451
1452 Defaults for the options are specified in brackets.
1453
1454 Configuration:
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1464
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 [PREFIX]
1470
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1475
1476 For better control, use the options below.
1477
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498 _ACEOF
1499
1500 cat <<\_ACEOF
1501
1502 Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506
1507 System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514
1515 cat <<\_ACEOF
1516
1517 Optional Features:
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --enable-maintainer-mode enable make rules and dependencies not useful
1521 (and sometimes confusing) to the casual installer
1522 --disable-dependency-tracking speeds up one-time build
1523 --enable-dependency-tracking do not reject slow dependency extractors
1524 --enable-shared[=PKGS] build shared libraries [default=yes]
1525 --enable-static[=PKGS] build static libraries [default=yes]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --disable-pascal do not build pascal binding
1530 --disable-python do not build python binding
1531 --disable-ruby do not build ruby binding
1532 --disable-php do not build php binding
1533 --disable-perl do not build perl binding
1534 --disable-nls do not use Native Language Support
1535 --disable-rpath do not hardcode runtime library paths
1536 --disable-hcal do not build hcal/hdate utility programs
1537
1538 Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1542 --with-pic try to use only PIC/non-PIC objects [default=use
1543 both]
1544 --with-tags[=TAGS] include additional configurations [automatic]
1545 --with-python-sitelib-dir=PATH
1546 path to python site lib
1547 --with-ruby-sitelib-dir=PATH
1548 path to ruby site lib
1549 --with-php-sitelib-dir=PATH
1550 path to php site lib
1551 --with-perl-sitelib-dir=PATH
1552 path to perl site lib
1553 --with-gnu-ld assume the C compiler uses GNU ld default=no
1554 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1555 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1556 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1557 --without-libintl-prefix don't search for libintl in includedir and libdir
1558
1559 Some influential environment variables:
1560 CC C compiler command
1561 CFLAGS C compiler flags
1562 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1563 nonstandard directory <lib dir>
1564 LIBS libraries to pass to the linker, e.g. -l<library>
1565 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
1567 CPP C preprocessor
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1570 CXXCPP C++ preprocessor
1571 F77 Fortran 77 compiler command
1572 FFLAGS Fortran 77 compiler flags
1573
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1576
1577 _ACEOF
1578 ac_status=$?
1579 fi
1580
1581 if test "$ac_init_help" = "recursive"; then
1582 # If there are subdirs, report their specific --help.
1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584 test -d "$ac_dir" || continue
1585 ac_builddir=.
1586
1587 case "$ac_dir" in
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *)
1590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 esac ;;
1597 esac
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1602
1603 case $srcdir in
1604 .) # We are building in place.
1605 ac_srcdir=.
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
1609 ac_srcdir=$srcdir$ac_dir_suffix;
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1612 *) # Relative name.
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 esac
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1627 else
1628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 fi || ac_status=$?
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1631 done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636 cat <<\_ACEOF
1637 configure
1638 generated by GNU Autoconf 2.61
1639
1640 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1641 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644 _ACEOF
1645 exit
1646 fi
1647 cat >config.log <<_ACEOF
1648 This file contains any messages produced by compilers while
1649 running configure, to aid debugging if configure makes a mistake.
1650
1651 It was created by $as_me, which was
1652 generated by GNU Autoconf 2.61. Invocation command line was
1653
1654 $ $0 $@
1655
1656 _ACEOF
1657 exec 5>>config.log
1658 {
1659 cat <<_ASUNAME
1660 ## --------- ##
1661 ## Platform. ##
1662 ## --------- ##
1663
1664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669
1670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1671 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1672
1673 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1674 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1676 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1677 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1678 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1679 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680
1681 _ASUNAME
1682
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 echo "PATH: $as_dir"
1689 done
1690 IFS=$as_save_IFS
1691
1692 } >&5
1693
1694 cat >&5 <<_ACEOF
1695
1696
1697 ## ----------- ##
1698 ## Core tests. ##
1699 ## ----------- ##
1700
1701 _ACEOF
1702
1703
1704 # Keep a trace of the command line.
1705 # Strip out --no-create and --no-recursion so they do not pile up.
1706 # Strip out --silent because we don't want to record it for future runs.
1707 # Also quote any args containing shell meta-characters.
1708 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_configure_args=
1710 ac_configure_args0=
1711 ac_configure_args1=
1712 ac_must_keep_next=false
1713 for ac_pass in 1 2
1714 do
1715 for ac_arg
1716 do
1717 case $ac_arg in
1718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1720 | -silent | --silent | --silen | --sile | --sil)
1721 continue ;;
1722 *\'*)
1723 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 esac
1725 case $ac_pass in
1726 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1727 2)
1728 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1729 if test $ac_must_keep_next = true; then
1730 ac_must_keep_next=false # Got value, back to normal.
1731 else
1732 case $ac_arg in
1733 *=* | --config-cache | -C | -disable-* | --disable-* \
1734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1736 | -with-* | --with-* | -without-* | --without-* | --x)
1737 case "$ac_configure_args0 " in
1738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739 esac
1740 ;;
1741 -* ) ac_must_keep_next=true ;;
1742 esac
1743 fi
1744 ac_configure_args="$ac_configure_args '$ac_arg'"
1745 ;;
1746 esac
1747 done
1748 done
1749 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1750 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1751
1752 # When interrupted or exit'd, cleanup temporary files, and complete
1753 # config.log. We remove comments because anyway the quotes in there
1754 # would cause problems or look ugly.
1755 # WARNING: Use '\'' to represent an apostrophe within the trap.
1756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1757 trap 'exit_status=$?
1758 # Save into config.log some information that might help in debugging.
1759 {
1760 echo
1761
1762 cat <<\_ASBOX
1763 ## ---------------- ##
1764 ## Cache variables. ##
1765 ## ---------------- ##
1766 _ASBOX
1767 echo
1768 # The following way of writing the cache mishandles newlines in values,
1769 (
1770 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1771 eval ac_val=\$$ac_var
1772 case $ac_val in #(
1773 *${as_nl}*)
1774 case $ac_var in #(
1775 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1776 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1777 esac
1778 case $ac_var in #(
1779 _ | IFS | as_nl) ;; #(
1780 *) $as_unset $ac_var ;;
1781 esac ;;
1782 esac
1783 done
1784 (set) 2>&1 |
1785 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1786 *${as_nl}ac_space=\ *)
1787 sed -n \
1788 "s/'\''/'\''\\\\'\'''\''/g;
1789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1790 ;; #(
1791 *)
1792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793 ;;
1794 esac |
1795 sort
1796 )
1797 echo
1798
1799 cat <<\_ASBOX
1800 ## ----------------- ##
1801 ## Output variables. ##
1802 ## ----------------- ##
1803 _ASBOX
1804 echo
1805 for ac_var in $ac_subst_vars
1806 do
1807 eval ac_val=\$$ac_var
1808 case $ac_val in
1809 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810 esac
1811 echo "$ac_var='\''$ac_val'\''"
1812 done | sort
1813 echo
1814
1815 if test -n "$ac_subst_files"; then
1816 cat <<\_ASBOX
1817 ## ------------------- ##
1818 ## File substitutions. ##
1819 ## ------------------- ##
1820 _ASBOX
1821 echo
1822 for ac_var in $ac_subst_files
1823 do
1824 eval ac_val=\$$ac_var
1825 case $ac_val in
1826 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 esac
1828 echo "$ac_var='\''$ac_val'\''"
1829 done | sort
1830 echo
1831 fi
1832
1833 if test -s confdefs.h; then
1834 cat <<\_ASBOX
1835 ## ----------- ##
1836 ## confdefs.h. ##
1837 ## ----------- ##
1838 _ASBOX
1839 echo
1840 cat confdefs.h
1841 echo
1842 fi
1843 test "$ac_signal" != 0 &&
1844 echo "$as_me: caught signal $ac_signal"
1845 echo "$as_me: exit $exit_status"
1846 } >&5
1847 rm -f core *.core core.conftest.* &&
1848 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849 exit $exit_status
1850 ' 0
1851 for ac_signal in 1 2 13 15; do
1852 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 done
1854 ac_signal=0
1855
1856 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1857 rm -f -r conftest* confdefs.h
1858
1859 # Predefined preprocessor variables.
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 _ACEOF
1884
1885
1886 # Let the site file select an alternate cache file if it wants to.
1887 # Prefer explicitly selected file to automatically selected ones.
1888 if test -n "$CONFIG_SITE"; then
1889 set x "$CONFIG_SITE"
1890 elif test "x$prefix" != xNONE; then
1891 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1892 else
1893 set x "$ac_default_prefix/share/config.site" \
1894 "$ac_default_prefix/etc/config.site"
1895 fi
1896 shift
1897 for ac_site_file
1898 do
1899 if test -r "$ac_site_file"; then
1900 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1901 echo "$as_me: loading site script $ac_site_file" >&6;}
1902 sed 's/^/| /' "$ac_site_file" >&5
1903 . "$ac_site_file"
1904 fi
1905 done
1906
1907 if test -r "$cache_file"; then
1908 # Some versions of bash will fail to source /dev/null (special
1909 # files actually), so we avoid doing that.
1910 if test -f "$cache_file"; then
1911 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1912 echo "$as_me: loading cache $cache_file" >&6;}
1913 case $cache_file in
1914 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1915 *) . "./$cache_file";;
1916 esac
1917 fi
1918 else
1919 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1920 echo "$as_me: creating cache $cache_file" >&6;}
1921 >$cache_file
1922 fi
1923
1924 gt_needs="$gt_needs "
1925 # Check that the precious variables saved in the cache have kept the same
1926 # value.
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930 eval ac_new_set=\$ac_env_${ac_var}_set
1931 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932 eval ac_new_val=\$ac_env_${ac_var}_value
1933 case $ac_old_set,$ac_new_set in
1934 set,)
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1938 ,set)
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1942 ,);;
1943 *)
1944 if test "x$ac_old_val" != "x$ac_new_val"; then
1945 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1948 echo "$as_me: former value: $ac_old_val" >&2;}
1949 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1950 echo "$as_me: current value: $ac_new_val" >&2;}
1951 ac_cache_corrupted=:
1952 fi;;
1953 esac
1954 # Pass precious variables to config.status.
1955 if test "$ac_new_set" = set; then
1956 case $ac_new_val in
1957 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 *) ac_arg=$ac_var=$ac_new_val ;;
1959 esac
1960 case " $ac_configure_args " in
1961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1962 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 esac
1964 fi
1965 done
1966 if $ac_cache_corrupted; then
1967 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971 { (exit 1); exit 1; }; }
1972 fi
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995
1996
1997
1998 PACKAGE=libhdate
1999 LIBHDATE_MAJOR_VERSION=1
2000 LIBHDATE_MINOR_VERSION=4
2001 LIBHDATE_MICRO_VERSION=11
2002
2003 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
2004
2005 VERSION_INFO=$LIBHDATE_MAJOR_VERSION:$LIBHDATE_MINOR_VERSION:0
2006
2007
2008
2009 am__api_version="1.9"
2010 ac_aux_dir=
2011 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2012 if test -f "$ac_dir/install-sh"; then
2013 ac_aux_dir=$ac_dir
2014 ac_install_sh="$ac_aux_dir/install-sh -c"
2015 break
2016 elif test -f "$ac_dir/install.sh"; then
2017 ac_aux_dir=$ac_dir
2018 ac_install_sh="$ac_aux_dir/install.sh -c"
2019 break
2020 elif test -f "$ac_dir/shtool"; then
2021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/shtool install -c"
2023 break
2024 fi
2025 done
2026 if test -z "$ac_aux_dir"; then
2027 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2028 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2029 { (exit 1); exit 1; }; }
2030 fi
2031
2032 # These three variables are undocumented and unsupported,
2033 # and are intended to be withdrawn in a future Autoconf release.
2034 # They can cause serious problems if a builder's source tree is in a directory
2035 # whose full name contains unusual characters.
2036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2039
2040
2041 # Find a good install program. We prefer a C program (faster),
2042 # so one script is as good as another. But avoid the broken or
2043 # incompatible versions:
2044 # SysV /etc/install, /usr/sbin/install
2045 # SunOS /usr/etc/install
2046 # IRIX /sbin/install
2047 # AIX /bin/install
2048 # AmigaOS /C/install, which installs bootblocks on floppy discs
2049 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2050 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2052 # OS/2's system install, which has a completely different semantic
2053 # ./install, which can be erroneously created by make from ./install.sh.
2054 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2055 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2056 if test -z "$INSTALL"; then
2057 if test "${ac_cv_path_install+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
2065 # Account for people who put trailing slashes in PATH elements.
2066 case $as_dir/ in
2067 ./ | .// | /cC/* | \
2068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2069 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2070 /usr/ucb/* ) ;;
2071 *)
2072 # OSF1 and SCO ODT 3.0 have their own names for install.
2073 # Don't use installbsd from OSF since it installs stuff as root
2074 # by default.
2075 for ac_prog in ginstall scoinst install; do
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2078 if test $ac_prog = install &&
2079 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2080 # AIX install. It has an incompatible calling convention.
2081 :
2082 elif test $ac_prog = install &&
2083 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2084 # program-specific install script used by HP pwplus--don't use.
2085 :
2086 else
2087 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2088 break 3
2089 fi
2090 fi
2091 done
2092 done
2093 ;;
2094 esac
2095 done
2096 IFS=$as_save_IFS
2097
2098
2099 fi
2100 if test "${ac_cv_path_install+set}" = set; then
2101 INSTALL=$ac_cv_path_install
2102 else
2103 # As a last resort, use the slow shell script. Don't cache a
2104 # value for INSTALL within a source directory, because that will
2105 # break other packages using the cache if that directory is
2106 # removed, or if the value is a relative name.
2107 INSTALL=$ac_install_sh
2108 fi
2109 fi
2110 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2111 echo "${ECHO_T}$INSTALL" >&6; }
2112
2113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2114 # It thinks the first close brace ends the variable substitution.
2115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2116
2117 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2118
2119 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2120
2121 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2122 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2123 # Just in case
2124 sleep 1
2125 echo timestamp > conftest.file
2126 # Do `set' in a subshell so we don't clobber the current shell's
2127 # arguments. Must try -L first in case configure is actually a
2128 # symlink; some systems play weird games with the mod time of symlinks
2129 # (eg FreeBSD returns the mod time of the symlink's containing
2130 # directory).
2131 if (
2132 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2133 if test "$*" = "X"; then
2134 # -L didn't work.
2135 set X `ls -t $srcdir/configure conftest.file`
2136 fi
2137 rm -f conftest.file
2138 if test "$*" != "X $srcdir/configure conftest.file" \
2139 && test "$*" != "X conftest.file $srcdir/configure"; then
2140
2141 # If neither matched, then we have a broken ls. This can happen
2142 # if, for instance, CONFIG_SHELL is bash and it inherits a
2143 # broken ls alias from the environment. This has actually
2144 # happened. Such a system could not be considered "sane".
2145 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2146 alias in your environment" >&5
2147 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2148 alias in your environment" >&2;}
2149 { (exit 1); exit 1; }; }
2150 fi
2151
2152 test "$2" = conftest.file
2153 )
2154 then
2155 # Ok.
2156 :
2157 else
2158 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2159 Check your system clock" >&5
2160 echo "$as_me: error: newly created file is older than distributed files!
2161 Check your system clock" >&2;}
2162 { (exit 1); exit 1; }; }
2163 fi
2164 { echo "$as_me:$LINENO: result: yes" >&5
2165 echo "${ECHO_T}yes" >&6; }
2166 test "$program_prefix" != NONE &&
2167 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2168 # Use a double $ so make ignores it.
2169 test "$program_suffix" != NONE &&
2170 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2171 # Double any \ or $. echo might interpret backslashes.
2172 # By default was `s,x,x', remove it if useless.
2173 cat <<\_ACEOF >conftest.sed
2174 s/[\\$]/&&/g;s/;s,x,x,$//
2175 _ACEOF
2176 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2177 rm -f conftest.sed
2178
2179 # expand $ac_aux_dir to an absolute path
2180 am_aux_dir=`cd $ac_aux_dir && pwd`
2181
2182 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2183 # Use eval to expand $SHELL
2184 if eval "$MISSING --run true"; then
2185 am_missing_run="$MISSING --run "
2186 else
2187 am_missing_run=
2188 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2189 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2190 fi
2191
2192 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2193 # We used to keeping the `.' as first argument, in order to
2194 # allow $(mkdir_p) to be used without argument. As in
2195 # $(mkdir_p) $(somedir)
2196 # where $(somedir) is conditionally defined. However this is wrong
2197 # for two reasons:
2198 # 1. if the package is installed by a user who cannot write `.'
2199 # make install will fail,
2200 # 2. the above comment should most certainly read
2201 # $(mkdir_p) $(DESTDIR)$(somedir)
2202 # so it does not work when $(somedir) is undefined and
2203 # $(DESTDIR) is not.
2204 # To support the latter case, we have to write
2205 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2206 # so the `.' trick is pointless.
2207 mkdir_p='mkdir -p --'
2208 else
2209 # On NextStep and OpenStep, the `mkdir' command does not
2210 # recognize any option. It will interpret all options as
2211 # directories to create, and then abort because `.' already
2212 # exists.
2213 for d in ./-p ./--version;
2214 do
2215 test -d $d && rmdir $d
2216 done
2217 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2218 if test -f "$ac_aux_dir/mkinstalldirs"; then
2219 mkdir_p='$(mkinstalldirs)'
2220 else
2221 mkdir_p='$(install_sh) -d'
2222 fi
2223 fi
2224
2225 for ac_prog in gawk mawk nawk awk
2226 do
2227 # Extract the first word of "$ac_prog", so it can be a program name with args.
2228 set dummy $ac_prog; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_prog_AWK+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234 if test -n "$AWK"; then
2235 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244 ac_cv_prog_AWK="$ac_prog"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 break 2
2247 fi
2248 done
2249 done
2250 IFS=$as_save_IFS
2251
2252 fi
2253 fi
2254 AWK=$ac_cv_prog_AWK
2255 if test -n "$AWK"; then
2256 { echo "$as_me:$LINENO: result: $AWK" >&5
2257 echo "${ECHO_T}$AWK" >&6; }
2258 else
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2261 fi
2262
2263
2264 test -n "$AWK" && break
2265 done
2266
2267 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2268 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2269 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2270 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 cat >conftest.make <<\_ACEOF
2274 SHELL = /bin/sh
2275 all:
2276 @echo '@@@%%%=$(MAKE)=@@@%%%'
2277 _ACEOF
2278 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2279 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2280 *@@@%%%=?*=@@@%%%*)
2281 eval ac_cv_prog_make_${ac_make}_set=yes;;
2282 *)
2283 eval ac_cv_prog_make_${ac_make}_set=no;;
2284 esac
2285 rm -f conftest.make
2286 fi
2287 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2288 { echo "$as_me:$LINENO: result: yes" >&5
2289 echo "${ECHO_T}yes" >&6; }
2290 SET_MAKE=
2291 else
2292 { echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6; }
2294 SET_MAKE="MAKE=${MAKE-make}"
2295 fi
2296
2297 rm -rf .tst 2>/dev/null
2298 mkdir .tst 2>/dev/null
2299 if test -d .tst; then
2300 am__leading_dot=.
2301 else
2302 am__leading_dot=_
2303 fi
2304 rmdir .tst 2>/dev/null
2305
2306 # test to see if srcdir already configured
2307 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2308 test -f $srcdir/config.status; then
2309 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2310 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2311 { (exit 1); exit 1; }; }
2312 fi
2313
2314 # test whether we have cygpath
2315 if test -z "$CYGPATH_W"; then
2316 if (cygpath --version) >/dev/null 2>/dev/null; then
2317 CYGPATH_W='cygpath -w'
2318 else
2319 CYGPATH_W=echo
2320 fi
2321 fi
2322
2323
2324 # Define the identity of the package.
2325 PACKAGE=$PACKAGE
2326 VERSION=$VERSION
2327
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE "$PACKAGE"
2331 _ACEOF
2332
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define VERSION "$VERSION"
2336 _ACEOF
2337
2338 # Some tools Automake needs.
2339
2340 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2341
2342
2343 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2344
2345
2346 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2347
2348
2349 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2350
2351
2352 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2353
2354 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2355
2356 # Installed binaries are usually stripped using `strip' when the user
2357 # run `make install-strip'. However `strip' might not be the right
2358 # tool to use in cross-compilation environments, therefore Automake
2359 # will honor the `STRIP' environment variable to overrule this program.
2360 if test "$cross_compiling" != no; then
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}strip; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_STRIP+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$STRIP"; then
2370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 STRIP=$ac_cv_prog_STRIP
2390 if test -n "$STRIP"; then
2391 { echo "$as_me:$LINENO: result: $STRIP" >&5
2392 echo "${ECHO_T}$STRIP" >&6; }
2393 else
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2396 fi
2397
2398
2399 fi
2400 if test -z "$ac_cv_prog_STRIP"; then
2401 ac_ct_STRIP=$STRIP
2402 # Extract the first word of "strip", so it can be a program name with args.
2403 set dummy strip; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409 if test -n "$ac_ct_STRIP"; then
2410 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_ac_ct_STRIP="strip"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2422 fi
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2430 if test -n "$ac_ct_STRIP"; then
2431 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2432 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2433 else
2434 { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2436 fi
2437
2438 if test "x$ac_ct_STRIP" = x; then
2439 STRIP=":"
2440 else
2441 case $cross_compiling:$ac_tool_warned in
2442 yes:)
2443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&5
2446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet. If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449 ac_tool_warned=yes ;;
2450 esac
2451 STRIP=$ac_ct_STRIP
2452 fi
2453 else
2454 STRIP="$ac_cv_prog_STRIP"
2455 fi
2456
2457 fi
2458 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2459
2460 # We need awk for the "check" target. The system "awk" is bad on
2461 # some platforms.
2462 # Always define AMTAR for backward compatibility.
2463
2464 AMTAR=${AMTAR-"${am_missing_run}tar"}
2465
2466 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2467
2468
2469
2470
2471
2472 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2473 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2474 # Check whether --enable-maintainer-mode was given.
2475 if test "${enable_maintainer_mode+set}" = set; then
2476 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2477 else
2478 USE_MAINTAINER_MODE=no
2479 fi
2480
2481 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2482 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2483
2484
2485 if test $USE_MAINTAINER_MODE = yes; then
2486 MAINTAINER_MODE_TRUE=
2487 MAINTAINER_MODE_FALSE='#'
2488 else
2489 MAINTAINER_MODE_TRUE='#'
2490 MAINTAINER_MODE_FALSE=
2491 fi
2492
2493 MAINT=$MAINTAINER_MODE_TRUE
2494
2495
2496
2497 DEPDIR="${am__leading_dot}deps"
2498
2499 ac_config_commands="$ac_config_commands depfiles"
2500
2501
2502 am_make=${MAKE-make}
2503 cat > confinc << 'END'
2504 am__doit:
2505 @echo done
2506 .PHONY: am__doit
2507 END
2508 # If we don't find an include directive, just comment out the code.
2509 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2510 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2511 am__include="#"
2512 am__quote=
2513 _am_result=none
2514 # First try GNU make style include.
2515 echo "include confinc" > confmf
2516 # We grep out `Entering directory' and `Leaving directory'
2517 # messages which can occur if `w' ends up in MAKEFLAGS.
2518 # In particular we don't look at `^make:' because GNU make might
2519 # be invoked under some other name (usually "gmake"), in which
2520 # case it prints its new name instead of `make'.
2521 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2522 am__include=include
2523 am__quote=
2524 _am_result=GNU
2525 fi
2526 # Now try BSD make style include.
2527 if test "$am__include" = "#"; then
2528 echo '.include "confinc"' > confmf
2529 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2530 am__include=.include
2531 am__quote="\""
2532 _am_result=BSD
2533 fi
2534 fi
2535
2536
2537 { echo "$as_me:$LINENO: result: $_am_result" >&5
2538 echo "${ECHO_T}$_am_result" >&6; }
2539 rm -f confinc confmf
2540
2541 # Check whether --enable-dependency-tracking was given.
2542 if test "${enable_dependency_tracking+set}" = set; then
2543 enableval=$enable_dependency_tracking;
2544 fi
2545
2546 if test "x$enable_dependency_tracking" != xno; then
2547 am_depcomp="$ac_aux_dir/depcomp"
2548 AMDEPBACKSLASH='\'
2549 fi
2550
2551
2552 if test "x$enable_dependency_tracking" != xno; then
2553 AMDEP_TRUE=
2554 AMDEP_FALSE='#'
2555 else
2556 AMDEP_TRUE='#'
2557 AMDEP_FALSE=
2558 fi
2559
2560
2561
2562 ac_ext=c
2563 ac_cpp='$CPP $CPPFLAGS'
2564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2569 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572 if test "${ac_cv_prog_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594 fi
2595 CC=$ac_cv_prog_CC
2596 if test -n "$CC"; then
2597 { echo "$as_me:$LINENO: result: $CC" >&5
2598 echo "${ECHO_T}$CC" >&6; }
2599 else
2600 { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2602 fi
2603
2604
2605 fi
2606 if test -z "$ac_cv_prog_CC"; then
2607 ac_ct_CC=$CC
2608 # Extract the first word of "gcc", so it can be a program name with args.
2609 set dummy gcc; ac_word=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615 if test -n "$ac_ct_CC"; then
2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_ac_ct_CC="gcc"
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636 if test -n "$ac_ct_CC"; then
2637 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2638 echo "${ECHO_T}$ac_ct_CC" >&6; }
2639 else
2640 { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2642 fi
2643
2644 if test "x$ac_ct_CC" = x; then
2645 CC=""
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648 yes:)
2649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2650 whose name does not start with the host triplet. If you think this
2651 configuration is useful to you, please write to autoconf@gnu.org." >&5
2652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2653 whose name does not start with the host triplet. If you think this
2654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2655 ac_tool_warned=yes ;;
2656 esac
2657 CC=$ac_ct_CC
2658 fi
2659 else
2660 CC="$ac_cv_prog_CC"
2661 fi
2662
2663 if test -z "$CC"; then
2664 if test -n "$ac_tool_prefix"; then
2665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2666 set dummy ${ac_tool_prefix}cc; ac_word=$2
2667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2669 if test "${ac_cv_prog_CC+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_CC="${ac_tool_prefix}cc"
2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686 done
2687 done
2688 IFS=$as_save_IFS
2689
2690 fi
2691 fi
2692 CC=$ac_cv_prog_CC
2693 if test -n "$CC"; then
2694 { echo "$as_me:$LINENO: result: $CC" >&5
2695 echo "${ECHO_T}$CC" >&6; }
2696 else
2697 { echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6; }
2699 fi
2700
2701
2702 fi
2703 fi
2704 if test -z "$CC"; then
2705 # Extract the first word of "cc", so it can be a program name with args.
2706 set dummy cc; ac_word=$2
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_CC+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 ac_prog_rejected=no
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2724 ac_prog_rejected=yes
2725 continue
2726 fi
2727 ac_cv_prog_CC="cc"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731 done
2732 done
2733 IFS=$as_save_IFS
2734
2735 if test $ac_prog_rejected = yes; then
2736 # We found a bogon in the path, so make sure we never use it.
2737 set dummy $ac_cv_prog_CC
2738 shift
2739 if test $# != 0; then
2740 # We chose a different compiler from the bogus one.
2741 # However, it has the same basename, so the bogon will be chosen
2742 # first if we set CC to just the basename; use the full file name.
2743 shift
2744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2745 fi
2746 fi
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 { echo "$as_me:$LINENO: result: $CC" >&5
2752 echo "${ECHO_T}$CC" >&6; }
2753 else
2754 { echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6; }
2756 fi
2757
2758
2759 fi
2760 if test -z "$CC"; then
2761 if test -n "$ac_tool_prefix"; then
2762 for ac_prog in cl.exe
2763 do
2764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793 { echo "$as_me:$LINENO: result: $CC" >&5
2794 echo "${ECHO_T}$CC" >&6; }
2795 else
2796 { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2798 fi
2799
2800
2801 test -n "$CC" && break
2802 done
2803 fi
2804 if test -z "$CC"; then
2805 ac_ct_CC=$CC
2806 for ac_prog in cl.exe
2807 do
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809 set dummy $ac_prog; ac_word=$2
2810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_ac_ct_CC="$ac_prog"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6; }
2839 else
2840 { echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6; }
2842 fi
2843
2844
2845 test -n "$ac_ct_CC" && break
2846 done
2847
2848 if test "x$ac_ct_CC" = x; then
2849 CC=""
2850 else
2851 case $cross_compiling:$ac_tool_warned in
2852 yes:)
2853 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2854 whose name does not start with the host triplet. If you think this
2855 configuration is useful to you, please write to autoconf@gnu.org." >&5
2856 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet. If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2859 ac_tool_warned=yes ;;
2860 esac
2861 CC=$ac_ct_CC
2862 fi
2863 fi
2864
2865 fi
2866
2867
2868 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: no acceptable C compiler found in \$PATH
2871 See \`config.log' for more details." >&2;}
2872 { (exit 1); exit 1; }; }
2873
2874 # Provide some information about the compiler.
2875 echo "$as_me:$LINENO: checking for C compiler version" >&5
2876 ac_compiler=`set X $ac_compile; echo $2`
2877 { (ac_try="$ac_compiler --version >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compiler --version >&5") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887 { (ac_try="$ac_compiler -v >&5"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compiler -v >&5") 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2897 { (ac_try="$ac_compiler -V >&5"
2898 case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compiler -V >&5") 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2914
2915 int
2916 main ()
2917 {
2918
2919 ;
2920 return 0;
2921 }
2922 _ACEOF
2923 ac_clean_files_save=$ac_clean_files
2924 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2925 # Try to create an executable without -o first, disregard a.out.
2926 # It will help us diagnose broken compilers, and finding out an intuition
2927 # of exeext.
2928 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2929 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2930 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2931 #
2932 # List of possible output files, starting from the most likely.
2933 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2934 # only as a last resort. b.out is created by i960 compilers.
2935 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2936 #
2937 # The IRIX 6 linker writes into existing files which may not be
2938 # executable, retaining their permissions. Remove them first so a
2939 # subsequent execution test works.
2940 ac_rmfiles=
2941 for ac_file in $ac_files
2942 do
2943 case $ac_file in
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2945 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2946 esac
2947 done
2948 rm -f $ac_rmfiles
2949
2950 if { (ac_try="$ac_link_default"
2951 case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_link_default") 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; then
2960 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2961 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2962 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2963 # so that the user can short-circuit this test for compilers unknown to
2964 # Autoconf.
2965 for ac_file in $ac_files ''
2966 do
2967 test -f "$ac_file" || continue
2968 case $ac_file in
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2970 ;;
2971 [ab].out )
2972 # We found the default executable, but exeext='' is most
2973 # certainly right.
2974 break;;
2975 *.* )
2976 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2977 then :; else
2978 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 fi
2980 # We set ac_cv_exeext here because the later test for it is not
2981 # safe: cross compilers may not add the suffix if given an `-o'
2982 # argument, so we may need to know it at that point already.
2983 # Even if this section looks crufty: it has the advantage of
2984 # actually working.
2985 break;;
2986 * )
2987 break;;
2988 esac
2989 done
2990 test "$ac_cv_exeext" = no && ac_cv_exeext=
2991
2992 else
2993 ac_file=''
2994 fi
2995
2996 { echo "$as_me:$LINENO: result: $ac_file" >&5
2997 echo "${ECHO_T}$ac_file" >&6; }
2998 if test -z "$ac_file"; then
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&2;}
3006 { (exit 77); exit 77; }; }
3007 fi
3008
3009 ac_exeext=$ac_cv_exeext
3010
3011 # Check that the compiler produces executables we can run. If not, either
3012 # the compiler is broken, or we cross compile.
3013 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3014 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3015 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3016 # If not cross compiling, check that we can run a simple program.
3017 if test "$cross_compiling" != yes; then
3018 if { ac_try='./$ac_file'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 cross_compiling=no
3029 else
3030 if test "$cross_compiling" = maybe; then
3031 cross_compiling=yes
3032 else
3033 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3034 If you meant to cross compile, use \`--host'.
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3040 fi
3041 fi
3042 fi
3043 { echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6; }
3045
3046 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3047 ac_clean_files=$ac_clean_files_save
3048 # Check that the compiler produces executables we can run. If not, either
3049 # the compiler is broken, or we cross compile.
3050 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3051 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3052 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3053 echo "${ECHO_T}$cross_compiling" >&6; }
3054
3055 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3056 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3057 if { (ac_try="$ac_link"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_link") 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; then
3067 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3068 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3069 # work properly (i.e., refer to `conftest.exe'), while it won't with
3070 # `rm'.
3071 for ac_file in conftest.exe conftest conftest.*; do
3072 test -f "$ac_file" || continue
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3075 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3076 break;;
3077 * ) break;;
3078 esac
3079 done
3080 else
3081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&5
3083 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&2;}
3085 { (exit 1); exit 1; }; }
3086 fi
3087
3088 rm -f conftest$ac_cv_exeext
3089 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3090 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3091
3092 rm -f conftest.$ac_ext
3093 EXEEXT=$ac_cv_exeext
3094 ac_exeext=$EXEEXT
3095 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3096 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3097 if test "${ac_cv_objext+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106
3107 int
3108 main ()
3109 {
3110
3111 ;
3112 return 0;
3113 }
3114 _ACEOF
3115 rm -f conftest.o conftest.obj
3116 if { (ac_try="$ac_compile"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; then
3126 for ac_file in conftest.o conftest.obj conftest.*; do
3127 test -f "$ac_file" || continue;
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3130 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3131 break;;
3132 esac
3133 done
3134 else
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3139 See \`config.log' for more details." >&5
3140 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details." >&2;}
3142 { (exit 1); exit 1; }; }
3143 fi
3144
3145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3146 fi
3147 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3148 echo "${ECHO_T}$ac_cv_objext" >&6; }
3149 OBJEXT=$ac_cv_objext
3150 ac_objext=$OBJEXT
3151 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3152 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3153 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162
3163 int
3164 main ()
3165 {
3166 #ifndef __GNUC__
3167 choke me
3168 #endif
3169
3170 ;
3171 return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3191 ac_compiler_gnu=yes
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 ac_compiler_gnu=no
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3201
3202 fi
3203 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3204 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3205 GCC=`test $ac_compiler_gnu = yes && echo yes`
3206 ac_test_CFLAGS=${CFLAGS+set}
3207 ac_save_CFLAGS=$CFLAGS
3208 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3209 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3210 if test "${ac_cv_prog_cc_g+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 ac_save_c_werror_flag=$ac_c_werror_flag
3214 ac_c_werror_flag=yes
3215 ac_cv_prog_cc_g=no
3216 CFLAGS="-g"
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223
3224 int
3225 main ()
3226 {
3227
3228 ;
3229 return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (ac_try="$ac_compile"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_compile") 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } && {
3246 test -z "$ac_c_werror_flag" ||
3247 test ! -s conftest.err
3248 } && test -s conftest.$ac_objext; then
3249 ac_cv_prog_cc_g=yes
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 CFLAGS=""
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261
3262 int
3263 main ()
3264 {
3265
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } && {
3284 test -z "$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 } && test -s conftest.$ac_objext; then
3287 :
3288 else
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3293 CFLAGS="-g"
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300
3301 int
3302 main ()
3303 {
3304
3305 ;
3306 return 0;
3307 }
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } && {
3323 test -z "$ac_c_werror_flag" ||
3324 test ! -s conftest.err
3325 } && test -s conftest.$ac_objext; then
3326 ac_cv_prog_cc_g=yes
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331
3332 fi
3333
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 fi
3336
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 fi
3339
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_c_werror_flag=$ac_save_c_werror_flag
3342 fi
3343 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3349 CFLAGS="-g -O2"
3350 else
3351 CFLAGS="-g"
3352 fi
3353 else
3354 if test "$GCC" = yes; then
3355 CFLAGS="-O2"
3356 else
3357 CFLAGS=
3358 fi
3359 fi
3360 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3361 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3362 if test "${ac_cv_prog_cc_c89+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 ac_cv_prog_cc_c89=no
3366 ac_save_CC=$CC
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <stdarg.h>
3374 #include <stdio.h>
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3381 char **p;
3382 int i;
3383 {
3384 return p[i];
3385 }
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3387 {
3388 char *s;
3389 va_list v;
3390 va_start (v,p);
3391 s = g (p, va_arg (v,int));
3392 va_end (v);
3393 return s;
3394 }
3395
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std. */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3404
3405 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3406 inside strings and character constants. */
3407 #define FOO(x) 'x'
3408 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3409
3410 int test (int i, double x);
3411 struct s1 {int (*f) (int a);};
3412 struct s2 {int (*f) (double a);};
3413 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 int argc;
3415 char **argv;
3416 int
3417 main ()
3418 {
3419 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3425 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3426 do
3427 CC="$ac_save_CC $ac_arg"
3428 rm -f conftest.$ac_objext
3429 if { (ac_try="$ac_compile"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.$ac_objext; then
3445 ac_cv_prog_cc_c89=$ac_arg
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450
3451 fi
3452
3453 rm -f core conftest.err conftest.$ac_objext
3454 test "x$ac_cv_prog_cc_c89" != "xno" && break
3455 done
3456 rm -f conftest.$ac_ext
3457 CC=$ac_save_CC
3458
3459 fi
3460 # AC_CACHE_VAL
3461 case "x$ac_cv_prog_cc_c89" in
3462 x)
3463 { echo "$as_me:$LINENO: result: none needed" >&5
3464 echo "${ECHO_T}none needed" >&6; } ;;
3465 xno)
3466 { echo "$as_me:$LINENO: result: unsupported" >&5
3467 echo "${ECHO_T}unsupported" >&6; } ;;
3468 *)
3469 CC="$CC $ac_cv_prog_cc_c89"
3470 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3471 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3472 esac
3473
3474
3475 ac_ext=c
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
3481 depcc="$CC" am_compiler_list=
3482
3483 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3484 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3485 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3489 # We make a subdir and do the tests there. Otherwise we can end up
3490 # making bogus files that we don't know about and never remove. For
3491 # instance it was reported that on HP-UX the gcc test will end up
3492 # making a dummy file named `D' -- because `-MD' means `put the output
3493 # in D'.
3494 mkdir conftest.dir
3495 # Copy depcomp to subdir because otherwise we won't find it if we're
3496 # using a relative directory.
3497 cp "$am_depcomp" conftest.dir
3498 cd conftest.dir
3499 # We will build objects and dependencies in a subdirectory because
3500 # it helps to detect inapplicable dependency modes. For instance
3501 # both Tru64's cc and ICC support -MD to output dependencies as a
3502 # side effect of compilation, but ICC will put the dependencies in
3503 # the current directory while Tru64 will put them in the object
3504 # directory.
3505 mkdir sub
3506
3507 am_cv_CC_dependencies_compiler_type=none
3508 if test "$am_compiler_list" = ""; then
3509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3510 fi
3511 for depmode in $am_compiler_list; do
3512 # Setup a source with many dependencies, because some compilers
3513 # like to wrap large dependency lists on column 80 (with \), and
3514 # we should not choose a depcomp mode which is confused by this.
3515 #
3516 # We need to recreate these files for each test, as the compiler may
3517 # overwrite some of them when testing with obscure command lines.
3518 # This happens at least with the AIX C compiler.
3519 : > sub/conftest.c
3520 for i in 1 2 3 4 5 6; do
3521 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3522 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3523 # Solaris 8's {/usr,}/bin/sh.
3524 touch sub/conftst$i.h
3525 done
3526 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3527
3528 case $depmode in
3529 nosideeffect)
3530 # after this tag, mechanisms are not by side-effect, so they'll
3531 # only be used when explicitly requested
3532 if test "x$enable_dependency_tracking" = xyes; then
3533 continue
3534 else
3535 break
3536 fi
3537 ;;
3538 none) break ;;
3539 esac
3540 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3541 # mode. It turns out that the SunPro C++ compiler does not properly
3542 # handle `-M -o', and we need to detect this.
3543 if depmode=$depmode \
3544 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3546 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3547 >/dev/null 2>conftest.err &&
3548 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3549 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3550 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3551 # icc doesn't choke on unknown options, it will just issue warnings
3552 # or remarks (even with -Werror). So we grep stderr for any message
3553 # that says an option was ignored or not supported.
3554 # When given -MP, icc 7.0 and 7.1 complain thusly:
3555 # icc: Command line warning: ignoring option '-M'; no argument required
3556 # The diagnosis changed in icc 8.0:
3557 # icc: Command line remark: option '-MP' not supported
3558 if (grep 'ignoring option' conftest.err ||
3559 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3560 am_cv_CC_dependencies_compiler_type=$depmode
3561 break
3562 fi
3563 fi
3564 done
3565
3566 cd ..
3567 rm -rf conftest.dir
3568 else
3569 am_cv_CC_dependencies_compiler_type=none
3570 fi
3571
3572 fi
3573 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3574 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3575 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3576
3577
3578
3579 if
3580 test "x$enable_dependency_tracking" != xno \
3581 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3582 am__fastdepCC_TRUE=
3583 am__fastdepCC_FALSE='#'
3584 else
3585 am__fastdepCC_TRUE='#'
3586 am__fastdepCC_FALSE=
3587 fi
3588
3589
3590
3591 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3592 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3593 if test "${ac_cv_search_strerror+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 ac_func_search_save_LIBS=$LIBS
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603
3604 /* Override any GCC internal prototype to avoid an error.
3605 Use char because int might match the return type of a GCC
3606 builtin and then its argument prototype would still apply. */
3607 #ifdef __cplusplus
3608 extern "C"
3609 #endif
3610 char strerror ();
3611 int
3612 main ()
3613 {
3614 return strerror ();
3615 ;
3616 return 0;
3617 }
3618 _ACEOF
3619 for ac_lib in '' cposix; do
3620 if test -z "$ac_lib"; then
3621 ac_res="none required"
3622 else
3623 ac_res=-l$ac_lib
3624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3625 fi
3626 rm -f conftest.$ac_objext conftest$ac_exeext
3627 if { (ac_try="$ac_link"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_link") 2>conftest.er1
3634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } && {
3640 test -z "$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3642 } && test -s conftest$ac_exeext &&
3643 $as_test_x conftest$ac_exeext; then
3644 ac_cv_search_strerror=$ac_res
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649
3650 fi
3651
3652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3653 conftest$ac_exeext
3654 if test "${ac_cv_search_strerror+set}" = set; then
3655 break
3656 fi
3657 done
3658 if test "${ac_cv_search_strerror+set}" = set; then
3659 :
3660 else
3661 ac_cv_search_strerror=no
3662 fi
3663 rm conftest.$ac_ext
3664 LIBS=$ac_func_search_save_LIBS
3665 fi
3666 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3667 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3668 ac_res=$ac_cv_search_strerror
3669 if test "$ac_res" != no; then
3670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3671
3672 fi
3673
3674
3675 cat >>confdefs.h <<\_ACEOF
3676 #define _GNU_SOURCE 1
3677 _ACEOF
3678
3679
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3686 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3687 # On Suns, sometimes $CPP names a directory.
3688 if test -n "$CPP" && test -d "$CPP"; then
3689 CPP=
3690 fi
3691 if test -z "$CPP"; then
3692 if test "${ac_cv_prog_CPP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 # Double quotes because CPP needs to be expanded
3696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3697 do
3698 ac_preproc_ok=false
3699 for ac_c_preproc_warn_flag in '' yes
3700 do
3701 # Use a header file that comes with gcc, so configuring glibc
3702 # with a fresh cross-compiler works.
3703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3704 # <limits.h> exists even on freestanding compilers.
3705 # On the NeXT, cc -E runs the code through the compiler's parser,
3706 # not just through cpp. "Syntax error" is here to catch this case.
3707 cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h. */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3713 #ifdef __STDC__
3714 # include <limits.h>
3715 #else
3716 # include <assert.h>
3717 #endif
3718 Syntax error
3719 _ACEOF
3720 if { (ac_try="$ac_cpp conftest.$ac_ext"
3721 case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } >/dev/null && {
3733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 }; then
3736 :
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 # Broken: fails on valid input.
3742 continue
3743 fi
3744
3745 rm -f conftest.err conftest.$ac_ext
3746
3747 # OK, works on sane cases. Now check whether nonexistent headers
3748 # can be detected and how.
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 #include <ac_nonexistent.h>
3756 _ACEOF
3757 if { (ac_try="$ac_cpp conftest.$ac_ext"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } >/dev/null && {
3770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3771 test ! -s conftest.err
3772 }; then
3773 # Broken: success on invalid input.
3774 continue
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779 # Passes both tests.
3780 ac_preproc_ok=:
3781 break
3782 fi
3783
3784 rm -f conftest.err conftest.$ac_ext
3785
3786 done
3787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3788 rm -f conftest.err conftest.$ac_ext
3789 if $ac_preproc_ok; then
3790 break
3791 fi
3792
3793 done
3794 ac_cv_prog_CPP=$CPP
3795
3796 fi
3797 CPP=$ac_cv_prog_CPP
3798 else
3799 ac_cv_prog_CPP=$CPP
3800 fi
3801 { echo "$as_me:$LINENO: result: $CPP" >&5
3802 echo "${ECHO_T}$CPP" >&6; }
3803 ac_preproc_ok=false
3804 for ac_c_preproc_warn_flag in '' yes
3805 do
3806 # Use a header file that comes with gcc, so configuring glibc
3807 # with a fresh cross-compiler works.
3808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809 # <limits.h> exists even on freestanding compilers.
3810 # On the NeXT, cc -E runs the code through the compiler's parser,
3811 # not just through cpp. "Syntax error" is here to catch this case.
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 #ifdef __STDC__
3819 # include <limits.h>
3820 #else
3821 # include <assert.h>
3822 #endif
3823 Syntax error
3824 _ACEOF
3825 if { (ac_try="$ac_cpp conftest.$ac_ext"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null && {
3838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3839 test ! -s conftest.err
3840 }; then
3841 :
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 # Broken: fails on valid input.
3847 continue
3848 fi
3849
3850 rm -f conftest.err conftest.$ac_ext
3851
3852 # OK, works on sane cases. Now check whether nonexistent headers
3853 # can be detected and how.
3854 cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h. */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3860 #include <ac_nonexistent.h>
3861 _ACEOF
3862 if { (ac_try="$ac_cpp conftest.$ac_ext"
3863 case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev/null && {
3875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 }; then
3878 # Broken: success on invalid input.
3879 continue
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 # Passes both tests.
3885 ac_preproc_ok=:
3886 break
3887 fi
3888
3889 rm -f conftest.err conftest.$ac_ext
3890
3891 done
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.$ac_ext
3894 if $ac_preproc_ok; then
3895 :
3896 else
3897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&2;}
3901 { (exit 1); exit 1; }; }
3902 fi
3903
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
3910
3911 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3912 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3913 if test "${ac_cv_path_GREP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 # Extract the first word of "grep ggrep" to use in msg output
3917 if test -z "$GREP"; then
3918 set dummy grep ggrep; ac_prog_name=$2
3919 if test "${ac_cv_path_GREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 ac_path_GREP_found=false
3923 # Loop through the user's path and test for each of PROGNAME-LIST
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926 do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_prog in grep ggrep; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3932 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3933 # Check for GNU ac_path_GREP and select it if it is found.
3934 # Check for GNU $ac_path_GREP
3935 case `"$ac_path_GREP" --version 2>&1` in
3936 *GNU*)
3937 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3938 *)
3939 ac_count=0
3940 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3941 while :
3942 do
3943 cat "conftest.in" "conftest.in" >"conftest.tmp"
3944 mv "conftest.tmp" "conftest.in"
3945 cp "conftest.in" "conftest.nl"
3946 echo 'GREP' >> "conftest.nl"
3947 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949 ac_count=`expr $ac_count + 1`
3950 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3951 # Best one so far, save it but keep looking for a better one
3952 ac_cv_path_GREP="$ac_path_GREP"
3953 ac_path_GREP_max=$ac_count
3954 fi
3955 # 10*(2^10) chars as input seems more than enough
3956 test $ac_count -gt 10 && break
3957 done
3958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959 esac
3960
3961
3962 $ac_path_GREP_found && break 3
3963 done
3964 done
3965
3966 done
3967 IFS=$as_save_IFS
3968
3969
3970 fi
3971
3972 GREP="$ac_cv_path_GREP"
3973 if test -z "$GREP"; then
3974 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3975 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3976 { (exit 1); exit 1; }; }
3977 fi
3978
3979 else
3980 ac_cv_path_GREP=$GREP
3981 fi
3982
3983
3984 fi
3985 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3986 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3987 GREP="$ac_cv_path_GREP"
3988
3989
3990 { echo "$as_me:$LINENO: checking for egrep" >&5
3991 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3992 if test "${ac_cv_path_EGREP+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3996 then ac_cv_path_EGREP="$GREP -E"
3997 else
3998 # Extract the first word of "egrep" to use in msg output
3999 if test -z "$EGREP"; then
4000 set dummy egrep; ac_prog_name=$2
4001 if test "${ac_cv_path_EGREP+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 ac_path_EGREP_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in egrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4014 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4015 # Check for GNU ac_path_EGREP and select it if it is found.
4016 # Check for GNU $ac_path_EGREP
4017 case `"$ac_path_EGREP" --version 2>&1` in
4018 *GNU*)
4019 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4020 *)
4021 ac_count=0
4022 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4023 while :
4024 do
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 echo 'EGREP' >> "conftest.nl"
4029 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 ac_count=`expr $ac_count + 1`
4032 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_EGREP="$ac_path_EGREP"
4035 ac_path_EGREP_max=$ac_count
4036 fi
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4039 done
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 esac
4042
4043
4044 $ac_path_EGREP_found && break 3
4045 done
4046 done
4047
4048 done
4049 IFS=$as_save_IFS
4050
4051
4052 fi
4053
4054 EGREP="$ac_cv_path_EGREP"
4055 if test -z "$EGREP"; then
4056 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4057 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4058 { (exit 1); exit 1; }; }
4059 fi
4060
4061 else
4062 ac_cv_path_EGREP=$EGREP
4063 fi
4064
4065
4066 fi
4067 fi
4068 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4069 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4070 EGREP="$ac_cv_path_EGREP"
4071
4072
4073
4074 { echo "$as_me:$LINENO: checking for AIX" >&5
4075 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 #ifdef _AIX
4083 yes
4084 #endif
4085
4086 _ACEOF
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 $EGREP "yes" >/dev/null 2>&1; then
4089 { echo "$as_me:$LINENO: result: yes" >&5
4090 echo "${ECHO_T}yes" >&6; }
4091 cat >>confdefs.h <<\_ACEOF
4092 #define _ALL_SOURCE 1
4093 _ACEOF
4094
4095 else
4096 { echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6; }
4098 fi
4099 rm -f conftest*
4100
4101
4102 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4104 if test "${ac_cv_header_stdc+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h. */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <stdlib.h>
4114 #include <stdarg.h>
4115 #include <string.h>
4116 #include <float.h>
4117
4118 int
4119 main ()
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_compile") 2>conftest.er1
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } && {
4140 test -z "$ac_c_werror_flag" ||
4141 test ! -s conftest.err
4142 } && test -s conftest.$ac_objext; then
4143 ac_cv_header_stdc=yes
4144 else
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148 ac_cv_header_stdc=no
4149 fi
4150
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152
4153 if test $ac_cv_header_stdc = yes; then
4154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <string.h>
4162
4163 _ACEOF
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165 $EGREP "memchr" >/dev/null 2>&1; then
4166 :
4167 else
4168 ac_cv_header_stdc=no
4169 fi
4170 rm -f conftest*
4171
4172 fi
4173
4174 if test $ac_cv_header_stdc = yes; then
4175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4176 cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h. */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 #include <stdlib.h>
4183
4184 _ACEOF
4185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186 $EGREP "free" >/dev/null 2>&1; then
4187 :
4188 else
4189 ac_cv_header_stdc=no
4190 fi
4191 rm -f conftest*
4192
4193 fi
4194
4195 if test $ac_cv_header_stdc = yes; then
4196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4197 if test "$cross_compiling" = yes; then
4198 :
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <ctype.h>
4207 #include <stdlib.h>
4208 #if ((' ' & 0x0FF) == 0x020)
4209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4211 #else
4212 # define ISLOWER(c) \
4213 (('a' <= (c) && (c) <= 'i') \
4214 || ('j' <= (c) && (c) <= 'r') \
4215 || ('s' <= (c) && (c) <= 'z'))
4216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4217 #endif
4218
4219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4220 int
4221 main ()
4222 {
4223 int i;
4224 for (i = 0; i < 256; i++)
4225 if (XOR (islower (i), ISLOWER (i))
4226 || toupper (i) != TOUPPER (i))
4227 return 2;
4228 return 0;
4229 }
4230 _ACEOF
4231 rm -f conftest$ac_exeext
4232 if { (ac_try="$ac_link"
4233 case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_link") 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4242 { (case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_try") 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 :
4252 else
4253 echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ( exit $ac_status )
4258 ac_cv_header_stdc=no
4259 fi
4260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4261 fi
4262
4263
4264 fi
4265 fi
4266 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4268 if test $ac_cv_header_stdc = yes; then
4269
4270 cat >>confdefs.h <<\_ACEOF
4271 #define STDC_HEADERS 1
4272 _ACEOF
4273
4274 fi
4275
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287 inttypes.h stdint.h unistd.h
4288 do
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4302
4303 #include <$ac_header>
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (ac_try="$ac_compile"
4307 case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_compile") 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && {
4319 test -z "$ac_c_werror_flag" ||
4320 test ! -s conftest.err
4321 } && test -s conftest.$ac_objext; then
4322 eval "$as_ac_Header=yes"
4323 else
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327 eval "$as_ac_Header=no"
4328 fi
4329
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 fi
4332 ac_res=`eval echo '${'$as_ac_Header'}'`
4333 { echo "$as_me:$LINENO: result: $ac_res" >&5
4334 echo "${ECHO_T}$ac_res" >&6; }
4335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4336 cat >>confdefs.h <<_ACEOF
4337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338 _ACEOF
4339
4340 fi
4341
4342 done
4343
4344
4345 if test "${ac_cv_header_minix_config_h+set}" = set; then
4346 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4347 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4348 if test "${ac_cv_header_minix_config_h+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 fi
4351 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4352 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4353 else
4354 # Is the header compilable?
4355 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4356 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4364 #include <minix/config.h>
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (ac_try="$ac_compile"
4368 case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_compile") 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && {
4380 test -z "$ac_c_werror_flag" ||
4381 test ! -s conftest.err
4382 } && test -s conftest.$ac_objext; then
4383 ac_header_compiler=yes
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388 ac_header_compiler=no
4389 fi
4390
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4393 echo "${ECHO_T}$ac_header_compiler" >&6; }
4394
4395 # Is the header present?
4396 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4397 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h. */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 #include <minix/config.h>
4405 _ACEOF
4406 if { (ac_try="$ac_cpp conftest.$ac_ext"
4407 case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410 esac
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4413 ac_status=$?
4414 grep -v '^ *+' conftest.er1 >conftest.err
4415 rm -f conftest.er1
4416 cat conftest.err >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } >/dev/null && {
4419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4420 test ! -s conftest.err
4421 }; then
4422 ac_header_preproc=yes
4423 else
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427 ac_header_preproc=no
4428 fi
4429
4430 rm -f conftest.err conftest.$ac_ext
4431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4432 echo "${ECHO_T}$ac_header_preproc" >&6; }
4433
4434 # So? What about this header?
4435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4436 yes:no: )
4437 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4438 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4440 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4441 ac_header_preproc=yes
4442 ;;
4443 no:yes:* )
4444 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4445 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4447 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4449 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4451 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4453 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4454 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4455 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4456
4457 ;;
4458 esac
4459 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4460 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4461 if test "${ac_cv_header_minix_config_h+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 ac_cv_header_minix_config_h=$ac_header_preproc
4465 fi
4466 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4467 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4468
4469 fi
4470 if test $ac_cv_header_minix_config_h = yes; then
4471 MINIX=yes
4472 else
4473 MINIX=
4474 fi
4475
4476
4477 if test "$MINIX" = yes; then
4478
4479 cat >>confdefs.h <<\_ACEOF
4480 #define _POSIX_SOURCE 1
4481 _ACEOF
4482
4483
4484 cat >>confdefs.h <<\_ACEOF
4485 #define _POSIX_1_SOURCE 2
4486 _ACEOF
4487
4488
4489 cat >>confdefs.h <<\_ACEOF
4490 #define _MINIX 1
4491 _ACEOF
4492
4493 fi
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4506 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4507 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516
4517 # define __EXTENSIONS__ 1
4518 $ac_includes_default
4519 int
4520 main ()
4521 {
4522
4523 ;
4524 return 0;
4525 }
4526 _ACEOF
4527 rm -f conftest.$ac_objext
4528 if { (ac_try="$ac_compile"
4529 case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_compile") 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } && {
4541 test -z "$ac_c_werror_flag" ||
4542 test ! -s conftest.err
4543 } && test -s conftest.$ac_objext; then
4544 ac_cv_safe_to_define___extensions__=yes
4545 else
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549 ac_cv_safe_to_define___extensions__=no
4550 fi
4551
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 fi
4554 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4555 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4556 test $ac_cv_safe_to_define___extensions__ = yes &&
4557 cat >>confdefs.h <<\_ACEOF
4558 #define __EXTENSIONS__ 1
4559 _ACEOF
4560
4561 cat >>confdefs.h <<\_ACEOF
4562 #define _POSIX_PTHREAD_SEMANTICS 1
4563 _ACEOF
4564
4565 cat >>confdefs.h <<\_ACEOF
4566 #define _TANDEM_SOURCE 1
4567 _ACEOF
4568
4569
4570 ac_ext=c
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_prog_CC+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 if test -n "$CC"; then
4584 ac_cv_prog_CC="$CC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597 done
4598 done
4599 IFS=$as_save_IFS
4600
4601 fi
4602 fi
4603 CC=$ac_cv_prog_CC
4604 if test -n "$CC"; then
4605 { echo "$as_me:$LINENO: result: $CC" >&5
4606 echo "${ECHO_T}$CC" >&6; }
4607 else
4608 { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4610 fi
4611
4612
4613 fi
4614 if test -z "$ac_cv_prog_CC"; then
4615 ac_ct_CC=$CC
4616 # Extract the first word of "gcc", so it can be a program name with args.
4617 set dummy gcc; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 if test -n "$ac_ct_CC"; then
4624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_ac_ct_CC="gcc"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4644 if test -n "$ac_ct_CC"; then
4645 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4646 echo "${ECHO_T}$ac_ct_CC" >&6; }
4647 else
4648 { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4650 fi
4651
4652 if test "x$ac_ct_CC" = x; then
4653 CC=""
4654 else
4655 case $cross_compiling:$ac_tool_warned in
4656 yes:)
4657 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4658 whose name does not start with the host triplet. If you think this
4659 configuration is useful to you, please write to autoconf@gnu.org." >&5
4660 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4661 whose name does not start with the host triplet. If you think this
4662 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4663 ac_tool_warned=yes ;;
4664 esac
4665 CC=$ac_ct_CC
4666 fi
4667 else
4668 CC="$ac_cv_prog_CC"
4669 fi
4670
4671 if test -z "$CC"; then
4672 if test -n "$ac_tool_prefix"; then
4673 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4674 set dummy ${ac_tool_prefix}cc; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_CC+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 if test -n "$CC"; then
4681 ac_cv_prog_CC="$CC" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_CC="${ac_tool_prefix}cc"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 CC=$ac_cv_prog_CC
4701 if test -n "$CC"; then
4702 { echo "$as_me:$LINENO: result: $CC" >&5
4703 echo "${ECHO_T}$CC" >&6; }
4704 else
4705 { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4707 fi
4708
4709
4710 fi
4711 fi
4712 if test -z "$CC"; then
4713 # Extract the first word of "cc", so it can be a program name with args.
4714 set dummy cc; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_CC+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 if test -n "$CC"; then
4721 ac_cv_prog_CC="$CC" # Let the user override the test.
4722 else
4723 ac_prog_rejected=no
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4732 ac_prog_rejected=yes
4733 continue
4734 fi
4735 ac_cv_prog_CC="cc"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 if test $ac_prog_rejected = yes; then
4744 # We found a bogon in the path, so make sure we never use it.
4745 set dummy $ac_cv_prog_CC
4746 shift
4747 if test $# != 0; then
4748 # We chose a different compiler from the bogus one.
4749 # However, it has the same basename, so the bogon will be chosen
4750 # first if we set CC to just the basename; use the full file name.
4751 shift
4752 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4753 fi
4754 fi
4755 fi
4756 fi
4757 CC=$ac_cv_prog_CC
4758 if test -n "$CC"; then
4759 { echo "$as_me:$LINENO: result: $CC" >&5
4760 echo "${ECHO_T}$CC" >&6; }
4761 else
4762 { echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6; }
4764 fi
4765
4766
4767 fi
4768 if test -z "$CC"; then
4769 if test -n "$ac_tool_prefix"; then
4770 for ac_prog in cl.exe
4771 do
4772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_prog_CC+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 if test -n "$CC"; then
4780 ac_cv_prog_CC="$CC" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 CC=$ac_cv_prog_CC
4800 if test -n "$CC"; then
4801 { echo "$as_me:$LINENO: result: $CC" >&5
4802 echo "${ECHO_T}$CC" >&6; }
4803 else
4804 { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4806 fi
4807
4808
4809 test -n "$CC" && break
4810 done
4811 fi
4812 if test -z "$CC"; then
4813 ac_ct_CC=$CC
4814 for ac_prog in cl.exe
4815 do
4816 # Extract the first word of "$ac_prog", so it can be a program name with args.
4817 set dummy $ac_prog; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823 if test -n "$ac_ct_CC"; then
4824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_ac_ct_CC="$ac_prog"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4844 if test -n "$ac_ct_CC"; then
4845 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4846 echo "${ECHO_T}$ac_ct_CC" >&6; }
4847 else
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853 test -n "$ac_ct_CC" && break
4854 done
4855
4856 if test "x$ac_ct_CC" = x; then
4857 CC=""
4858 else
4859 case $cross_compiling:$ac_tool_warned in
4860 yes:)
4861 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4862 whose name does not start with the host triplet. If you think this
4863 configuration is useful to you, please write to autoconf@gnu.org." >&5
4864 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4865 whose name does not start with the host triplet. If you think this
4866 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4867 ac_tool_warned=yes ;;
4868 esac
4869 CC=$ac_ct_CC
4870 fi
4871 fi
4872
4873 fi
4874
4875
4876 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4877 See \`config.log' for more details." >&5
4878 echo "$as_me: error: no acceptable C compiler found in \$PATH
4879 See \`config.log' for more details." >&2;}
4880 { (exit 1); exit 1; }; }
4881
4882 # Provide some information about the compiler.
4883 echo "$as_me:$LINENO: checking for C compiler version" >&5
4884 ac_compiler=`set X $ac_compile; echo $2`
4885 { (ac_try="$ac_compiler --version >&5"
4886 case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_compiler --version >&5") 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }
4895 { (ac_try="$ac_compiler -v >&5"
4896 case "(($ac_try" in
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4899 esac
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901 (eval "$ac_compiler -v >&5") 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }
4905 { (ac_try="$ac_compiler -V >&5"
4906 case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909 esac
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_compiler -V >&5") 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }
4915
4916 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4917 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4918 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927
4928 int
4929 main ()
4930 {
4931 #ifndef __GNUC__
4932 choke me
4933 #endif
4934
4935 ;
4936 return 0;
4937 }
4938 _ACEOF
4939 rm -f conftest.$ac_objext
4940 if { (ac_try="$ac_compile"
4941 case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_compile") 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } && {
4953 test -z "$ac_c_werror_flag" ||
4954 test ! -s conftest.err
4955 } && test -s conftest.$ac_objext; then
4956 ac_compiler_gnu=yes
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 ac_compiler_gnu=no
4962 fi
4963
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4966
4967 fi
4968 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4969 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4970 GCC=`test $ac_compiler_gnu = yes && echo yes`
4971 ac_test_CFLAGS=${CFLAGS+set}
4972 ac_save_CFLAGS=$CFLAGS
4973 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4974 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4975 if test "${ac_cv_prog_cc_g+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 ac_save_c_werror_flag=$ac_c_werror_flag
4979 ac_c_werror_flag=yes
4980 ac_cv_prog_cc_g=no
4981 CFLAGS="-g"
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988
4989 int
4990 main ()
4991 {
4992
4993 ;
4994 return 0;
4995 }
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (ac_try="$ac_compile"
4999 case "(($ac_try" in
5000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001 *) ac_try_echo=$ac_try;;
5002 esac
5003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_c_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5014 ac_cv_prog_cc_g=yes
5015 else
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 CFLAGS=""
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026
5027 int
5028 main ()
5029 {
5030
5031 ;
5032 return 0;
5033 }
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5037 case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compile") 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && {
5049 test -z "$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 } && test -s conftest.$ac_objext; then
5052 :
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 ac_c_werror_flag=$ac_save_c_werror_flag
5058 CFLAGS="-g"
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065
5066 int
5067 main ()
5068 {
5069
5070 ;
5071 return 0;
5072 }
5073 _ACEOF
5074 rm -f conftest.$ac_objext
5075 if { (ac_try="$ac_compile"
5076 case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079 esac
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_compile") 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && {
5088 test -z "$ac_c_werror_flag" ||
5089 test ! -s conftest.err
5090 } && test -s conftest.$ac_objext; then
5091 ac_cv_prog_cc_g=yes
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096
5097 fi
5098
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 fi
5101
5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 fi
5104
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 ac_c_werror_flag=$ac_save_c_werror_flag
5107 fi
5108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5109 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5110 if test "$ac_test_CFLAGS" = set; then
5111 CFLAGS=$ac_save_CFLAGS
5112 elif test $ac_cv_prog_cc_g = yes; then
5113 if test "$GCC" = yes; then
5114 CFLAGS="-g -O2"
5115 else
5116 CFLAGS="-g"
5117 fi
5118 else
5119 if test "$GCC" = yes; then
5120 CFLAGS="-O2"
5121 else
5122 CFLAGS=
5123 fi
5124 fi
5125 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5126 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_cc_c89+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 ac_cv_prog_cc_c89=no
5131 ac_save_CC=$CC
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h. */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 #include <stdarg.h>
5139 #include <stdio.h>
5140 #include <sys/types.h>
5141 #include <sys/stat.h>
5142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5143 struct buf { int x; };
5144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5145 static char *e (p, i)
5146 char **p;
5147 int i;
5148 {
5149 return p[i];
5150 }
5151 static char *f (char * (*g) (char **, int), char **p, ...)
5152 {
5153 char *s;
5154 va_list v;
5155 va_start (v,p);
5156 s = g (p, va_arg (v,int));
5157 va_end (v);
5158 return s;
5159 }
5160
5161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5162 function prototypes and stuff, but not '\xHH' hex character constants.
5163 These don't provoke an error unfortunately, instead are silently treated
5164 as 'x'. The following induces an error, until -std is added to get
5165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5166 array size at least. It's necessary to write '\x00'==0 to get something
5167 that's true only with -std. */
5168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5169
5170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5171 inside strings and character constants. */
5172 #define FOO(x) 'x'
5173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5174
5175 int test (int i, double x);
5176 struct s1 {int (*f) (int a);};
5177 struct s2 {int (*f) (double a);};
5178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5179 int argc;
5180 char **argv;
5181 int
5182 main ()
5183 {
5184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5185 ;
5186 return 0;
5187 }
5188 _ACEOF
5189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5191 do
5192 CC="$ac_save_CC $ac_arg"
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.$ac_objext; then
5210 ac_cv_prog_cc_c89=$ac_arg
5211 else
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215
5216 fi
5217
5218 rm -f core conftest.err conftest.$ac_objext
5219 test "x$ac_cv_prog_cc_c89" != "xno" && break
5220 done
5221 rm -f conftest.$ac_ext
5222 CC=$ac_save_CC
5223
5224 fi
5225 # AC_CACHE_VAL
5226 case "x$ac_cv_prog_cc_c89" in
5227 x)
5228 { echo "$as_me:$LINENO: result: none needed" >&5
5229 echo "${ECHO_T}none needed" >&6; } ;;
5230 xno)
5231 { echo "$as_me:$LINENO: result: unsupported" >&5
5232 echo "${ECHO_T}unsupported" >&6; } ;;
5233 *)
5234 CC="$CC $ac_cv_prog_cc_c89"
5235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5236 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5237 esac
5238
5239
5240 ac_ext=c
5241 ac_cpp='$CPP $CPPFLAGS'
5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245
5246 depcc="$CC" am_compiler_list=
5247
5248 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5249 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5250 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5254 # We make a subdir and do the tests there. Otherwise we can end up
5255 # making bogus files that we don't know about and never remove. For
5256 # instance it was reported that on HP-UX the gcc test will end up
5257 # making a dummy file named `D' -- because `-MD' means `put the output
5258 # in D'.
5259 mkdir conftest.dir
5260 # Copy depcomp to subdir because otherwise we won't find it if we're
5261 # using a relative directory.
5262 cp "$am_depcomp" conftest.dir
5263 cd conftest.dir
5264 # We will build objects and dependencies in a subdirectory because
5265 # it helps to detect inapplicable dependency modes. For instance
5266 # both Tru64's cc and ICC support -MD to output dependencies as a
5267 # side effect of compilation, but ICC will put the dependencies in
5268 # the current directory while Tru64 will put them in the object
5269 # directory.
5270 mkdir sub
5271
5272 am_cv_CC_dependencies_compiler_type=none
5273 if test "$am_compiler_list" = ""; then
5274 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5275 fi
5276 for depmode in $am_compiler_list; do
5277 # Setup a source with many dependencies, because some compilers
5278 # like to wrap large dependency lists on column 80 (with \), and
5279 # we should not choose a depcomp mode which is confused by this.
5280 #
5281 # We need to recreate these files for each test, as the compiler may
5282 # overwrite some of them when testing with obscure command lines.
5283 # This happens at least with the AIX C compiler.
5284 : > sub/conftest.c
5285 for i in 1 2 3 4 5 6; do
5286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5287 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5288 # Solaris 8's {/usr,}/bin/sh.
5289 touch sub/conftst$i.h
5290 done
5291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5292
5293 case $depmode in
5294 nosideeffect)
5295 # after this tag, mechanisms are not by side-effect, so they'll
5296 # only be used when explicitly requested
5297 if test "x$enable_dependency_tracking" = xyes; then
5298 continue
5299 else
5300 break
5301 fi
5302 ;;
5303 none) break ;;
5304 esac
5305 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5306 # mode. It turns out that the SunPro C++ compiler does not properly
5307 # handle `-M -o', and we need to detect this.
5308 if depmode=$depmode \
5309 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5310 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5311 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5312 >/dev/null 2>conftest.err &&
5313 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5314 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5315 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5316 # icc doesn't choke on unknown options, it will just issue warnings
5317 # or remarks (even with -Werror). So we grep stderr for any message
5318 # that says an option was ignored or not supported.
5319 # When given -MP, icc 7.0 and 7.1 complain thusly:
5320 # icc: Command line warning: ignoring option '-M'; no argument required
5321 # The diagnosis changed in icc 8.0:
5322 # icc: Command line remark: option '-MP' not supported
5323 if (grep 'ignoring option' conftest.err ||
5324 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5325 am_cv_CC_dependencies_compiler_type=$depmode
5326 break
5327 fi
5328 fi
5329 done
5330
5331 cd ..
5332 rm -rf conftest.dir
5333 else
5334 am_cv_CC_dependencies_compiler_type=none
5335 fi
5336
5337 fi
5338 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5339 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5340 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5341
5342
5343
5344 if
5345 test "x$enable_dependency_tracking" != xno \
5346 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5347 am__fastdepCC_TRUE=
5348 am__fastdepCC_FALSE='#'
5349 else
5350 am__fastdepCC_TRUE='#'
5351 am__fastdepCC_FALSE=
5352 fi
5353
5354
5355 # Find a good install program. We prefer a C program (faster),
5356 # so one script is as good as another. But avoid the broken or
5357 # incompatible versions:
5358 # SysV /etc/install, /usr/sbin/install
5359 # SunOS /usr/etc/install
5360 # IRIX /sbin/install
5361 # AIX /bin/install
5362 # AmigaOS /C/install, which installs bootblocks on floppy discs
5363 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5364 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5365 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5366 # OS/2's system install, which has a completely different semantic
5367 # ./install, which can be erroneously created by make from ./install.sh.
5368 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5369 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5370 if test -z "$INSTALL"; then
5371 if test "${ac_cv_path_install+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 # Account for people who put trailing slashes in PATH elements.
5380 case $as_dir/ in
5381 ./ | .// | /cC/* | \
5382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5383 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5384 /usr/ucb/* ) ;;
5385 *)
5386 # OSF1 and SCO ODT 3.0 have their own names for install.
5387 # Don't use installbsd from OSF since it installs stuff as root
5388 # by default.
5389 for ac_prog in ginstall scoinst install; do
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5392 if test $ac_prog = install &&
5393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5394 # AIX install. It has an incompatible calling convention.
5395 :
5396 elif test $ac_prog = install &&
5397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5398 # program-specific install script used by HP pwplus--don't use.
5399 :
5400 else
5401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5402 break 3
5403 fi
5404 fi
5405 done
5406 done
5407 ;;
5408 esac
5409 done
5410 IFS=$as_save_IFS
5411
5412
5413 fi
5414 if test "${ac_cv_path_install+set}" = set; then
5415 INSTALL=$ac_cv_path_install
5416 else
5417 # As a last resort, use the slow shell script. Don't cache a
5418 # value for INSTALL within a source directory, because that will
5419 # break other packages using the cache if that directory is
5420 # removed, or if the value is a relative name.
5421 INSTALL=$ac_install_sh
5422 fi
5423 fi
5424 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5425 echo "${ECHO_T}$INSTALL" >&6; }
5426
5427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5428 # It thinks the first close brace ends the variable substitution.
5429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5430
5431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5432
5433 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5434
5435 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5436 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5437 LN_S=$as_ln_s
5438 if test "$LN_S" = "ln -s"; then
5439 { echo "$as_me:$LINENO: result: yes" >&5
5440 echo "${ECHO_T}yes" >&6; }
5441 else
5442 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5443 echo "${ECHO_T}no, using $LN_S" >&6; }
5444 fi
5445
5446 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5447 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5448 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5449 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 cat >conftest.make <<\_ACEOF
5453 SHELL = /bin/sh
5454 all:
5455 @echo '@@@%%%=$(MAKE)=@@@%%%'
5456 _ACEOF
5457 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5458 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5459 *@@@%%%=?*=@@@%%%*)
5460 eval ac_cv_prog_make_${ac_make}_set=yes;;
5461 *)
5462 eval ac_cv_prog_make_${ac_make}_set=no;;
5463 esac
5464 rm -f conftest.make
5465 fi
5466 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5467 { echo "$as_me:$LINENO: result: yes" >&5
5468 echo "${ECHO_T}yes" >&6; }
5469 SET_MAKE=
5470 else
5471 { echo "$as_me:$LINENO: result: no" >&5
5472 echo "${ECHO_T}no" >&6; }
5473 SET_MAKE="MAKE=${MAKE-make}"
5474 fi
5475
5476 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5477 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5478 if test "${ac_cv_header_stdc+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 #include <stdlib.h>
5488 #include <stdarg.h>
5489 #include <string.h>
5490 #include <float.h>
5491
5492 int
5493 main ()
5494 {
5495
5496 ;
5497 return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 ac_cv_header_stdc=yes
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522 ac_cv_header_stdc=no
5523 fi
5524
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526
5527 if test $ac_cv_header_stdc = yes; then
5528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 #include <string.h>
5536
5537 _ACEOF
5538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "memchr" >/dev/null 2>&1; then
5540 :
5541 else
5542 ac_cv_header_stdc=no
5543 fi
5544 rm -f conftest*
5545
5546 fi
5547
5548 if test $ac_cv_header_stdc = yes; then
5549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <stdlib.h>
5557
5558 _ACEOF
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560 $EGREP "free" >/dev/null 2>&1; then
5561 :
5562 else
5563 ac_cv_header_stdc=no
5564 fi
5565 rm -f conftest*
5566
5567 fi
5568
5569 if test $ac_cv_header_stdc = yes; then
5570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5571 if test "$cross_compiling" = yes; then
5572 :
5573 else
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 #include <ctype.h>
5581 #include <stdlib.h>
5582 #if ((' ' & 0x0FF) == 0x020)
5583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5585 #else
5586 # define ISLOWER(c) \
5587 (('a' <= (c) && (c) <= 'i') \
5588 || ('j' <= (c) && (c) <= 'r') \
5589 || ('s' <= (c) && (c) <= 'z'))
5590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5591 #endif
5592
5593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5594 int
5595 main ()
5596 {
5597 int i;
5598 for (i = 0; i < 256; i++)
5599 if (XOR (islower (i), ISLOWER (i))
5600 || toupper (i) != TOUPPER (i))
5601 return 2;
5602 return 0;
5603 }
5604 _ACEOF
5605 rm -f conftest$ac_exeext
5606 if { (ac_try="$ac_link"
5607 case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_link") 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5616 { (case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_try") 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 :
5626 else
5627 echo "$as_me: program exited with status $ac_status" >&5
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631 ( exit $ac_status )
5632 ac_cv_header_stdc=no
5633 fi
5634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5635 fi
5636
5637
5638 fi
5639 fi
5640 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5641 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5642 if test $ac_cv_header_stdc = yes; then
5643
5644 cat >>confdefs.h <<\_ACEOF
5645 #define STDC_HEADERS 1
5646 _ACEOF
5647
5648 fi
5649
5650 # Check whether --enable-shared was given.
5651 if test "${enable_shared+set}" = set; then
5652 enableval=$enable_shared; p=${PACKAGE-default}
5653 case $enableval in
5654 yes) enable_shared=yes ;;
5655 no) enable_shared=no ;;
5656 *)
5657 enable_shared=no
5658 # Look at the argument we got. We use all the common list separators.
5659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5660 for pkg in $enableval; do
5661 IFS="$lt_save_ifs"
5662 if test "X$pkg" = "X$p"; then
5663 enable_shared=yes
5664 fi
5665 done
5666 IFS="$lt_save_ifs"
5667 ;;
5668 esac
5669 else
5670 enable_shared=yes
5671 fi
5672
5673
5674 # Check whether --enable-static was given.
5675 if test "${enable_static+set}" = set; then
5676 enableval=$enable_static; p=${PACKAGE-default}
5677 case $enableval in
5678 yes) enable_static=yes ;;
5679 no) enable_static=no ;;
5680 *)
5681 enable_static=no
5682 # Look at the argument we got. We use all the common list separators.
5683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5684 for pkg in $enableval; do
5685 IFS="$lt_save_ifs"
5686 if test "X$pkg" = "X$p"; then
5687 enable_static=yes
5688 fi
5689 done
5690 IFS="$lt_save_ifs"
5691 ;;
5692 esac
5693 else
5694 enable_static=yes
5695 fi
5696
5697
5698 # Check whether --enable-fast-install was given.
5699 if test "${enable_fast_install+set}" = set; then
5700 enableval=$enable_fast_install; p=${PACKAGE-default}
5701 case $enableval in
5702 yes) enable_fast_install=yes ;;
5703 no) enable_fast_install=no ;;
5704 *)
5705 enable_fast_install=no
5706 # Look at the argument we got. We use all the common list separators.
5707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5708 for pkg in $enableval; do
5709 IFS="$lt_save_ifs"
5710 if test "X$pkg" = "X$p"; then
5711 enable_fast_install=yes
5712 fi
5713 done
5714 IFS="$lt_save_ifs"
5715 ;;
5716 esac
5717 else
5718 enable_fast_install=yes
5719 fi
5720
5721
5722 # Make sure we can run config.sub.
5723 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5724 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5725 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5726 { (exit 1); exit 1; }; }
5727
5728 { echo "$as_me:$LINENO: checking build system type" >&5
5729 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5730 if test "${ac_cv_build+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 ac_build_alias=$build_alias
5734 test "x$ac_build_alias" = x &&
5735 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5736 test "x$ac_build_alias" = x &&
5737 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5738 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5739 { (exit 1); exit 1; }; }
5740 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5741 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5742 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5743 { (exit 1); exit 1; }; }
5744
5745 fi
5746 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5747 echo "${ECHO_T}$ac_cv_build" >&6; }
5748 case $ac_cv_build in
5749 *-*-*) ;;
5750 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5751 echo "$as_me: error: invalid value of canonical build" >&2;}
5752 { (exit 1); exit 1; }; };;
5753 esac
5754 build=$ac_cv_build
5755 ac_save_IFS=$IFS; IFS='-'
5756 set x $ac_cv_build
5757 shift
5758 build_cpu=$1
5759 build_vendor=$2
5760 shift; shift
5761 # Remember, the first character of IFS is used to create $*,
5762 # except with old shells:
5763 build_os=$*
5764 IFS=$ac_save_IFS
5765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5766
5767
5768 { echo "$as_me:$LINENO: checking host system type" >&5
5769 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5770 if test "${ac_cv_host+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 if test "x$host_alias" = x; then
5774 ac_cv_host=$ac_cv_build
5775 else
5776 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5777 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5778 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5779 { (exit 1); exit 1; }; }
5780 fi
5781
5782 fi
5783 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5784 echo "${ECHO_T}$ac_cv_host" >&6; }
5785 case $ac_cv_host in
5786 *-*-*) ;;
5787 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5788 echo "$as_me: error: invalid value of canonical host" >&2;}
5789 { (exit 1); exit 1; }; };;
5790 esac
5791 host=$ac_cv_host
5792 ac_save_IFS=$IFS; IFS='-'
5793 set x $ac_cv_host
5794 shift
5795 host_cpu=$1
5796 host_vendor=$2
5797 shift; shift
5798 # Remember, the first character of IFS is used to create $*,
5799 # except with old shells:
5800 host_os=$*
5801 IFS=$ac_save_IFS
5802 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5803
5804
5805 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5806 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5807 if test "${lt_cv_path_SED+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 # Loop through the user's path and test for sed and gsed.
5811 # Then use that list of sed's as ones to test for truncation.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for lt_ac_prog in sed gsed; do
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5820 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5821 fi
5822 done
5823 done
5824 done
5825 IFS=$as_save_IFS
5826 lt_ac_max=0
5827 lt_ac_count=0
5828 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5829 # along with /bin/sed that truncates output.
5830 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5831 test ! -f $lt_ac_sed && continue
5832 cat /dev/null > conftest.in
5833 lt_ac_count=0
5834 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5835 # Check for GNU sed and select it if it is found.
5836 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5837 lt_cv_path_SED=$lt_ac_sed
5838 break
5839 fi
5840 while true; do
5841 cat conftest.in conftest.in >conftest.tmp
5842 mv conftest.tmp conftest.in
5843 cp conftest.in conftest.nl
5844 echo >>conftest.nl
5845 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5846 cmp -s conftest.out conftest.nl || break
5847 # 10000 chars as input seems more than enough
5848 test $lt_ac_count -gt 10 && break
5849 lt_ac_count=`expr $lt_ac_count + 1`
5850 if test $lt_ac_count -gt $lt_ac_max; then
5851 lt_ac_max=$lt_ac_count
5852 lt_cv_path_SED=$lt_ac_sed
5853 fi
5854 done
5855 done
5856
5857 fi
5858
5859 SED=$lt_cv_path_SED
5860
5861 { echo "$as_me:$LINENO: result: $SED" >&5
5862 echo "${ECHO_T}$SED" >&6; }
5863
5864
5865 # Check whether --with-gnu-ld was given.
5866 if test "${with_gnu_ld+set}" = set; then
5867 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5868 else
5869 with_gnu_ld=no
5870 fi
5871
5872 ac_prog=ld
5873 if test "$GCC" = yes; then
5874 # Check if gcc -print-prog-name=ld gives a path.
5875 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5876 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5877 case $host in
5878 *-*-mingw*)
5879 # gcc leaves a trailing carriage return which upsets mingw
5880 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5881 *)
5882 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5883 esac
5884 case $ac_prog in
5885 # Accept absolute paths.
5886 [\\/]* | ?:[\\/]*)
5887 re_direlt='/[^/][^/]*/\.\./'
5888 # Canonicalize the pathname of ld
5889 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5890 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5891 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5892 done
5893 test -z "$LD" && LD="$ac_prog"
5894 ;;
5895 "")
5896 # If it fails, then pretend we aren't using GCC.
5897 ac_prog=ld
5898 ;;
5899 *)
5900 # If it is relative, then search for the first ld in PATH.
5901 with_gnu_ld=unknown
5902 ;;
5903 esac
5904 elif test "$with_gnu_ld" = yes; then
5905 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5906 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5907 else
5908 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5909 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5910 fi
5911 if test "${lt_cv_path_LD+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 if test -z "$LD"; then
5915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5916 for ac_dir in $PATH; do
5917 IFS="$lt_save_ifs"
5918 test -z "$ac_dir" && ac_dir=.
5919 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5920 lt_cv_path_LD="$ac_dir/$ac_prog"
5921 # Check to see if the program is GNU ld. I'd rather use --version,
5922 # but apparently some variants of GNU ld only accept -v.
5923 # Break only if it was the GNU/non-GNU ld that we prefer.
5924 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5925 *GNU* | *'with BFD'*)
5926 test "$with_gnu_ld" != no && break
5927 ;;
5928 *)
5929 test "$with_gnu_ld" != yes && break
5930 ;;
5931 esac
5932 fi
5933 done
5934 IFS="$lt_save_ifs"
5935 else
5936 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5937 fi
5938 fi
5939
5940 LD="$lt_cv_path_LD"
5941 if test -n "$LD"; then
5942 { echo "$as_me:$LINENO: result: $LD" >&5
5943 echo "${ECHO_T}$LD" >&6; }
5944 else
5945 { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5947 fi
5948 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5949 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5950 { (exit 1); exit 1; }; }
5951 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5952 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5953 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5957 case `$LD -v 2>&1 </dev/null` in
5958 *GNU* | *'with BFD'*)
5959 lt_cv_prog_gnu_ld=yes
5960 ;;
5961 *)
5962 lt_cv_prog_gnu_ld=no
5963 ;;
5964 esac
5965 fi
5966 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5967 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5968 with_gnu_ld=$lt_cv_prog_gnu_ld
5969
5970
5971 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5972 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5973 if test "${lt_cv_ld_reload_flag+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 lt_cv_ld_reload_flag='-r'
5977 fi
5978 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5979 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5980 reload_flag=$lt_cv_ld_reload_flag
5981 case $reload_flag in
5982 "" | " "*) ;;
5983 *) reload_flag=" $reload_flag" ;;
5984 esac
5985 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5986 case $host_os in
5987 darwin*)
5988 if test "$GCC" = yes; then
5989 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5990 else
5991 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5992 fi
5993 ;;
5994 esac
5995
5996 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5997 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5998 if test "${lt_cv_path_NM+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 if test -n "$NM"; then
6002 # Let the user override the test.
6003 lt_cv_path_NM="$NM"
6004 else
6005 lt_nm_to_check="${ac_tool_prefix}nm"
6006 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6007 lt_nm_to_check="$lt_nm_to_check nm"
6008 fi
6009 for lt_tmp_nm in $lt_nm_to_check; do
6010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6011 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6012 IFS="$lt_save_ifs"
6013 test -z "$ac_dir" && ac_dir=.
6014 tmp_nm="$ac_dir/$lt_tmp_nm"
6015 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6016 # Check to see if the nm accepts a BSD-compat flag.
6017 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6018 # nm: unknown option "B" ignored
6019 # Tru64's nm complains that /dev/null is an invalid object file
6020 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6021 */dev/null* | *'Invalid file or object type'*)
6022 lt_cv_path_NM="$tmp_nm -B"
6023 break
6024 ;;
6025 *)
6026 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6027 */dev/null*)
6028 lt_cv_path_NM="$tmp_nm -p"
6029 break
6030 ;;
6031 *)
6032 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6033 continue # so that we can try to find one that supports BSD flags
6034 ;;
6035 esac
6036 ;;
6037 esac
6038 fi
6039 done
6040 IFS="$lt_save_ifs"
6041 done
6042 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6043 fi
6044 fi
6045 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6046 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6047 NM="$lt_cv_path_NM"
6048
6049 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6050 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6051 if test "${lt_cv_deplibs_check_method+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 lt_cv_file_magic_cmd='$MAGIC_CMD'
6055 lt_cv_file_magic_test_file=
6056 lt_cv_deplibs_check_method='unknown'
6057 # Need to set the preceding variable on all platforms that support
6058 # interlibrary dependencies.
6059 # 'none' -- dependencies not supported.
6060 # `unknown' -- same as none, but documents that we really don't know.
6061 # 'pass_all' -- all dependencies passed with no checks.
6062 # 'test_compile' -- check by making test program.
6063 # 'file_magic [[regex]]' -- check by looking for files in library path
6064 # which responds to the $file_magic_cmd with a given extended regex.
6065 # If you have `file' or equivalent on your system and you're not sure
6066 # whether `pass_all' will *always* work, you probably want this one.
6067
6068 case $host_os in
6069 aix4* | aix5*)
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
6072
6073 beos*)
6074 lt_cv_deplibs_check_method=pass_all
6075 ;;
6076
6077 bsdi[45]*)
6078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6079 lt_cv_file_magic_cmd='/usr/bin/file -L'
6080 lt_cv_file_magic_test_file=/shlib/libc.so
6081 ;;
6082
6083 cygwin*)
6084 # func_win32_libid is a shell function defined in ltmain.sh
6085 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6086 lt_cv_file_magic_cmd='func_win32_libid'
6087 ;;
6088
6089 mingw* | pw32*)
6090 # Base MSYS/MinGW do not provide the 'file' command needed by
6091 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6092 # unless we find 'file', for example because we are cross-compiling.
6093 if ( file / ) >/dev/null 2>&1; then
6094 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6095 lt_cv_file_magic_cmd='func_win32_libid'
6096 else
6097 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6098 lt_cv_file_magic_cmd='$OBJDUMP -f'
6099 fi
6100 ;;
6101
6102 darwin* | rhapsody*)
6103 lt_cv_deplibs_check_method=pass_all
6104 ;;
6105
6106 freebsd* | dragonfly*)
6107 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6108 case $host_cpu in
6109 i*86 )
6110 # Not sure whether the presence of OpenBSD here was a mistake.
6111 # Let's accept both of them until this is cleared up.
6112 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6113 lt_cv_file_magic_cmd=/usr/bin/file
6114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6115 ;;
6116 esac
6117 else
6118 lt_cv_deplibs_check_method=pass_all
6119 fi
6120 ;;
6121
6122 gnu*)
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125
6126 hpux10.20* | hpux11*)
6127 lt_cv_file_magic_cmd=/usr/bin/file
6128 case $host_cpu in
6129 ia64*)
6130 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6131 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6132 ;;
6133 hppa*64*)
6134 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]'
6135 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6136 ;;
6137 *)
6138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6139 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6140 ;;
6141 esac
6142 ;;
6143
6144 interix[3-9]*)
6145 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6147 ;;
6148
6149 irix5* | irix6* | nonstopux*)
6150 case $LD in
6151 *-32|*"-32 ") libmagic=32-bit;;
6152 *-n32|*"-n32 ") libmagic=N32;;
6153 *-64|*"-64 ") libmagic=64-bit;;
6154 *) libmagic=never-match;;
6155 esac
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158
6159 # This must be Linux ELF.
6160 linux* | k*bsd*-gnu)
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163
6164 netbsd* | netbsdelf*-gnu)
6165 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6167 else
6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6169 fi
6170 ;;
6171
6172 newos6*)
6173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6174 lt_cv_file_magic_cmd=/usr/bin/file
6175 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6176 ;;
6177
6178 nto-qnx*)
6179 lt_cv_deplibs_check_method=unknown
6180 ;;
6181
6182 openbsd*)
6183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6185 else
6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6187 fi
6188 ;;
6189
6190 osf3* | osf4* | osf5*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193
6194 rdos*)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197
6198 solaris*)
6199 lt_cv_deplibs_check_method=pass_all
6200 ;;
6201
6202 sysv4 | sysv4.3*)
6203 case $host_vendor in
6204 motorola)
6205 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]'
6206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6207 ;;
6208 ncr)
6209 lt_cv_deplibs_check_method=pass_all
6210 ;;
6211 sequent)
6212 lt_cv_file_magic_cmd='/bin/file'
6213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6214 ;;
6215 sni)
6216 lt_cv_file_magic_cmd='/bin/file'
6217 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6218 lt_cv_file_magic_test_file=/lib/libc.so
6219 ;;
6220 siemens)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223 pc)
6224 lt_cv_deplibs_check_method=pass_all
6225 ;;
6226 esac
6227 ;;
6228
6229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232 esac
6233
6234 fi
6235 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6236 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6237 file_magic_cmd=$lt_cv_file_magic_cmd
6238 deplibs_check_method=$lt_cv_deplibs_check_method
6239 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6240
6241
6242
6243
6244 # If no C compiler was specified, use CC.
6245 LTCC=${LTCC-"$CC"}
6246
6247 # If no C compiler flags were specified, use CFLAGS.
6248 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6249
6250 # Allow CC to be a program name with arguments.
6251 compiler=$CC
6252
6253 # Check whether --enable-libtool-lock was given.
6254 if test "${enable_libtool_lock+set}" = set; then
6255 enableval=$enable_libtool_lock;
6256 fi
6257
6258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6259
6260 # Some flags need to be propagated to the compiler or linker for good
6261 # libtool support.
6262 case $host in
6263 ia64-*-hpux*)
6264 # Find out which ABI we are using.
6265 echo 'int i;' > conftest.$ac_ext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; then
6271 case `/usr/bin/file conftest.$ac_objext` in
6272 *ELF-32*)
6273 HPUX_IA64_MODE="32"
6274 ;;
6275 *ELF-64*)
6276 HPUX_IA64_MODE="64"
6277 ;;
6278 esac
6279 fi
6280 rm -rf conftest*
6281 ;;
6282 *-*-irix6*)
6283 # Find out which ABI we are using.
6284 echo '#line 6285 "configure"' > conftest.$ac_ext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6286 (eval $ac_compile) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; then
6290 if test "$lt_cv_prog_gnu_ld" = yes; then
6291 case `/usr/bin/file conftest.$ac_objext` in
6292 *32-bit*)
6293 LD="${LD-ld} -melf32bsmip"
6294 ;;
6295 *N32*)
6296 LD="${LD-ld} -melf32bmipn32"
6297 ;;
6298 *64-bit*)
6299 LD="${LD-ld} -melf64bmip"
6300 ;;
6301 esac
6302 else
6303 case `/usr/bin/file conftest.$ac_objext` in
6304 *32-bit*)
6305 LD="${LD-ld} -32"
6306 ;;
6307 *N32*)
6308 LD="${LD-ld} -n32"
6309 ;;
6310 *64-bit*)
6311 LD="${LD-ld} -64"
6312 ;;
6313 esac
6314 fi
6315 fi
6316 rm -rf conftest*
6317 ;;
6318
6319 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6320 s390*-*linux*|sparc*-*linux*)
6321 # Find out which ABI we are using.
6322 echo 'int i;' > conftest.$ac_ext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; then
6328 case `/usr/bin/file conftest.o` in
6329 *32-bit*)
6330 case $host in
6331 x86_64-*kfreebsd*-gnu)
6332 LD="${LD-ld} -m elf_i386_fbsd"
6333 ;;
6334 x86_64-*linux*)
6335 LD="${LD-ld} -m elf_i386"
6336 ;;
6337 ppc64-*linux*|powerpc64-*linux*)
6338 LD="${LD-ld} -m elf32ppclinux"
6339 ;;
6340 s390x-*linux*)
6341 LD="${LD-ld} -m elf_s390"
6342 ;;
6343 sparc64-*linux*)
6344 LD="${LD-ld} -m elf32_sparc"
6345 ;;
6346 esac
6347 ;;
6348 *64-bit*)
6349 case $host in
6350 x86_64-*kfreebsd*-gnu)
6351 LD="${LD-ld} -m elf_x86_64_fbsd"
6352 ;;
6353 x86_64-*linux*)
6354 LD="${LD-ld} -m elf_x86_64"
6355 ;;
6356 ppc*-*linux*|powerpc*-*linux*)
6357 LD="${LD-ld} -m elf64ppc"
6358 ;;
6359 s390*-*linux*)
6360 LD="${LD-ld} -m elf64_s390"
6361 ;;
6362 sparc*-*linux*)
6363 LD="${LD-ld} -m elf64_sparc"
6364 ;;
6365 esac
6366 ;;
6367 esac
6368 fi
6369 rm -rf conftest*
6370 ;;
6371
6372 *-*-sco3.2v5*)
6373 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6374 SAVE_CFLAGS="$CFLAGS"
6375 CFLAGS="$CFLAGS -belf"
6376 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6377 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6378 if test "${lt_cv_cc_needs_belf+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 ac_ext=c
6382 ac_cpp='$CPP $CPPFLAGS'
6383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6386
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393
6394 int
6395 main ()
6396 {
6397
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext conftest$ac_exeext
6403 if { (ac_try="$ac_link"
6404 case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407 esac
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_link") 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest$ac_exeext &&
6419 $as_test_x conftest$ac_exeext; then
6420 lt_cv_cc_needs_belf=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 lt_cv_cc_needs_belf=no
6426 fi
6427
6428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6429 conftest$ac_exeext conftest.$ac_ext
6430 ac_ext=c
6431 ac_cpp='$CPP $CPPFLAGS'
6432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6435
6436 fi
6437 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6438 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6439 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6440 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6441 CFLAGS="$SAVE_CFLAGS"
6442 fi
6443 ;;
6444 sparc*-*solaris*)
6445 # Find out which ABI we are using.
6446 echo 'int i;' > conftest.$ac_ext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; then
6452 case `/usr/bin/file conftest.o` in
6453 *64-bit*)
6454 case $lt_cv_prog_gnu_ld in
6455 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6456 *) LD="${LD-ld} -64" ;;
6457 esac
6458 ;;
6459 esac
6460 fi
6461 rm -rf conftest*
6462 ;;
6463
6464
6465 esac
6466
6467 need_locks="$enable_libtool_lock"
6468
6469
6470
6471 for ac_header in dlfcn.h
6472 do
6473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 fi
6480 ac_res=`eval echo '${'$as_ac_Header'}'`
6481 { echo "$as_me:$LINENO: result: $ac_res" >&5
6482 echo "${ECHO_T}$ac_res" >&6; }
6483 else
6484 # Is the header compilable?
6485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6487 cat >conftest.$ac_ext <<_ACEOF
6488 /* confdefs.h. */
6489 _ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6493 $ac_includes_default
6494 #include <$ac_header>
6495 _ACEOF
6496 rm -f conftest.$ac_objext
6497 if { (ac_try="$ac_compile"
6498 case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501 esac
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_compile") 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
6512 } && test -s conftest.$ac_objext; then
6513 ac_header_compiler=yes
6514 else
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 ac_header_compiler=no
6519 fi
6520
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6523 echo "${ECHO_T}$ac_header_compiler" >&6; }
6524
6525 # Is the header present?
6526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 #include <$ac_header>
6535 _ACEOF
6536 if { (ac_try="$ac_cpp conftest.$ac_ext"
6537 case "(($ac_try" in
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6540 esac
6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } >/dev/null && {
6549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6550 test ! -s conftest.err
6551 }; then
6552 ac_header_preproc=yes
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6556
6557 ac_header_preproc=no
6558 fi
6559
6560 rm -f conftest.err conftest.$ac_ext
6561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6562 echo "${ECHO_T}$ac_header_preproc" >&6; }
6563
6564 # So? What about this header?
6565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6566 yes:no: )
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6571 ac_header_preproc=yes
6572 ;;
6573 no:yes:* )
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6586
6587 ;;
6588 esac
6589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 eval "$as_ac_Header=\$ac_header_preproc"
6595 fi
6596 ac_res=`eval echo '${'$as_ac_Header'}'`
6597 { echo "$as_me:$LINENO: result: $ac_res" >&5
6598 echo "${ECHO_T}$ac_res" >&6; }
6599
6600 fi
6601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6602 cat >>confdefs.h <<_ACEOF
6603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6604 _ACEOF
6605
6606 fi
6607
6608 done
6609
6610 ac_ext=cpp
6611 ac_cpp='$CXXCPP $CPPFLAGS'
6612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6615 if test -z "$CXX"; then
6616 if test -n "$CCC"; then
6617 CXX=$CCC
6618 else
6619 if test -n "$ac_tool_prefix"; then
6620 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6621 do
6622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_CXX+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629 if test -n "$CXX"; then
6630 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 CXX=$ac_cv_prog_CXX
6650 if test -n "$CXX"; then
6651 { echo "$as_me:$LINENO: result: $CXX" >&5
6652 echo "${ECHO_T}$CXX" >&6; }
6653 else
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 fi
6657
6658
6659 test -n "$CXX" && break
6660 done
6661 fi
6662 if test -z "$CXX"; then
6663 ac_ct_CXX=$CXX
6664 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6665 do
6666 # Extract the first word of "$ac_prog", so it can be a program name with args.
6667 set dummy $ac_prog; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 if test -n "$ac_ct_CXX"; then
6674 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_CXX="$ac_prog"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6694 if test -n "$ac_ct_CXX"; then
6695 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6696 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6697 else
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6700 fi
6701
6702
6703 test -n "$ac_ct_CXX" && break
6704 done
6705
6706 if test "x$ac_ct_CXX" = x; then
6707 CXX="g++"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6712 whose name does not start with the host triplet. If you think this
6713 configuration is useful to you, please write to autoconf@gnu.org." >&5
6714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6715 whose name does not start with the host triplet. If you think this
6716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6717 ac_tool_warned=yes ;;
6718 esac
6719 CXX=$ac_ct_CXX
6720 fi
6721 fi
6722
6723 fi
6724 fi
6725 # Provide some information about the compiler.
6726 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6727 ac_compiler=`set X $ac_compile; echo $2`
6728 { (ac_try="$ac_compiler --version >&5"
6729 case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6732 esac
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734 (eval "$ac_compiler --version >&5") 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }
6738 { (ac_try="$ac_compiler -v >&5"
6739 case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_compiler -v >&5") 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }
6748 { (ac_try="$ac_compiler -V >&5"
6749 case "(($ac_try" in
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6752 esac
6753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754 (eval "$ac_compiler -V >&5") 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }
6758
6759 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6760 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6761 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770
6771 int
6772 main ()
6773 {
6774 #ifndef __GNUC__
6775 choke me
6776 #endif
6777
6778 ;
6779 return 0;
6780 }
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (ac_try="$ac_compile"
6784 case "(($ac_try" in
6785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6787 esac
6788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_compile") 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && {
6796 test -z "$ac_cxx_werror_flag" ||
6797 test ! -s conftest.err
6798 } && test -s conftest.$ac_objext; then
6799 ac_compiler_gnu=yes
6800 else
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6803
6804 ac_compiler_gnu=no
6805 fi
6806
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6809
6810 fi
6811 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6812 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6813 GXX=`test $ac_compiler_gnu = yes && echo yes`
6814 ac_test_CXXFLAGS=${CXXFLAGS+set}
6815 ac_save_CXXFLAGS=$CXXFLAGS
6816 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6817 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_cxx_g+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6822 ac_cxx_werror_flag=yes
6823 ac_cv_prog_cxx_g=no
6824 CXXFLAGS="-g"
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831
6832 int
6833 main ()
6834 {
6835
6836 ;
6837 return 0;
6838 }
6839 _ACEOF
6840 rm -f conftest.$ac_objext
6841 if { (ac_try="$ac_compile"
6842 case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845 esac
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_compile") 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && {
6854 test -z "$ac_cxx_werror_flag" ||
6855 test ! -s conftest.err
6856 } && test -s conftest.$ac_objext; then
6857 ac_cv_prog_cxx_g=yes
6858 else
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 CXXFLAGS=""
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869
6870 int
6871 main ()
6872 {
6873
6874 ;
6875 return 0;
6876 }
6877 _ACEOF
6878 rm -f conftest.$ac_objext
6879 if { (ac_try="$ac_compile"
6880 case "(($ac_try" in
6881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882 *) ac_try_echo=$ac_try;;
6883 esac
6884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885 (eval "$ac_compile") 2>conftest.er1
6886 ac_status=$?
6887 grep -v '^ *+' conftest.er1 >conftest.err
6888 rm -f conftest.er1
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && {
6892 test -z "$ac_cxx_werror_flag" ||
6893 test ! -s conftest.err
6894 } && test -s conftest.$ac_objext; then
6895 :
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6901 CXXFLAGS="-g"
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908
6909 int
6910 main ()
6911 {
6912
6913 ;
6914 return 0;
6915 }
6916 _ACEOF
6917 rm -f conftest.$ac_objext
6918 if { (ac_try="$ac_compile"
6919 case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922 esac
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_compile") 2>conftest.er1
6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_cxx_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest.$ac_objext; then
6934 ac_cv_prog_cxx_g=yes
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939
6940 fi
6941
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 fi
6944
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 fi
6947
6948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6950 fi
6951 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6952 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6953 if test "$ac_test_CXXFLAGS" = set; then
6954 CXXFLAGS=$ac_save_CXXFLAGS
6955 elif test $ac_cv_prog_cxx_g = yes; then
6956 if test "$GXX" = yes; then
6957 CXXFLAGS="-g -O2"
6958 else
6959 CXXFLAGS="-g"
6960 fi
6961 else
6962 if test "$GXX" = yes; then
6963 CXXFLAGS="-O2"
6964 else
6965 CXXFLAGS=
6966 fi
6967 fi
6968 ac_ext=cpp
6969 ac_cpp='$CXXCPP $CPPFLAGS'
6970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6973
6974 depcc="$CXX" am_compiler_list=
6975
6976 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6977 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6978 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6982 # We make a subdir and do the tests there. Otherwise we can end up
6983 # making bogus files that we don't know about and never remove. For
6984 # instance it was reported that on HP-UX the gcc test will end up
6985 # making a dummy file named `D' -- because `-MD' means `put the output
6986 # in D'.
6987 mkdir conftest.dir
6988 # Copy depcomp to subdir because otherwise we won't find it if we're
6989 # using a relative directory.
6990 cp "$am_depcomp" conftest.dir
6991 cd conftest.dir
6992 # We will build objects and dependencies in a subdirectory because
6993 # it helps to detect inapplicable dependency modes. For instance
6994 # both Tru64's cc and ICC support -MD to output dependencies as a
6995 # side effect of compilation, but ICC will put the dependencies in
6996 # the current directory while Tru64 will put them in the object
6997 # directory.
6998 mkdir sub
6999
7000 am_cv_CXX_dependencies_compiler_type=none
7001 if test "$am_compiler_list" = ""; then
7002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7003 fi
7004 for depmode in $am_compiler_list; do
7005 # Setup a source with many dependencies, because some compilers
7006 # like to wrap large dependency lists on column 80 (with \), and
7007 # we should not choose a depcomp mode which is confused by this.
7008 #
7009 # We need to recreate these files for each test, as the compiler may
7010 # overwrite some of them when testing with obscure command lines.
7011 # This happens at least with the AIX C compiler.
7012 : > sub/conftest.c
7013 for i in 1 2 3 4 5 6; do
7014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7015 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7016 # Solaris 8's {/usr,}/bin/sh.
7017 touch sub/conftst$i.h
7018 done
7019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7020
7021 case $depmode in
7022 nosideeffect)
7023 # after this tag, mechanisms are not by side-effect, so they'll
7024 # only be used when explicitly requested
7025 if test "x$enable_dependency_tracking" = xyes; then
7026 continue
7027 else
7028 break
7029 fi
7030 ;;
7031 none) break ;;
7032 esac
7033 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7034 # mode. It turns out that the SunPro C++ compiler does not properly
7035 # handle `-M -o', and we need to detect this.
7036 if depmode=$depmode \
7037 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7038 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7039 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7040 >/dev/null 2>conftest.err &&
7041 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7042 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7043 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7044 # icc doesn't choke on unknown options, it will just issue warnings
7045 # or remarks (even with -Werror). So we grep stderr for any message
7046 # that says an option was ignored or not supported.
7047 # When given -MP, icc 7.0 and 7.1 complain thusly:
7048 # icc: Command line warning: ignoring option '-M'; no argument required
7049 # The diagnosis changed in icc 8.0:
7050 # icc: Command line remark: option '-MP' not supported
7051 if (grep 'ignoring option' conftest.err ||
7052 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7053 am_cv_CXX_dependencies_compiler_type=$depmode
7054 break
7055 fi
7056 fi
7057 done
7058
7059 cd ..
7060 rm -rf conftest.dir
7061 else
7062 am_cv_CXX_dependencies_compiler_type=none
7063 fi
7064
7065 fi
7066 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7067 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7068 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7069
7070
7071
7072 if
7073 test "x$enable_dependency_tracking" != xno \
7074 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7075 am__fastdepCXX_TRUE=
7076 am__fastdepCXX_FALSE='#'
7077 else
7078 am__fastdepCXX_TRUE='#'
7079 am__fastdepCXX_FALSE=
7080 fi
7081
7082
7083
7084
7085 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7086 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7087 (test "X$CXX" != "Xg++"))) ; then
7088 ac_ext=cpp
7089 ac_cpp='$CXXCPP $CPPFLAGS'
7090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7093 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7094 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7095 if test -z "$CXXCPP"; then
7096 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099 # Double quotes because CXXCPP needs to be expanded
7100 for CXXCPP in "$CXX -E" "/lib/cpp"
7101 do
7102 ac_preproc_ok=false
7103 for ac_cxx_preproc_warn_flag in '' yes
7104 do
7105 # Use a header file that comes with gcc, so configuring glibc
7106 # with a fresh cross-compiler works.
7107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7108 # <limits.h> exists even on freestanding compilers.
7109 # On the NeXT, cc -E runs the code through the compiler's parser,
7110 # not just through cpp. "Syntax error" is here to catch this case.
7111 cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h. */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 #ifdef __STDC__
7118 # include <limits.h>
7119 #else
7120 # include <assert.h>
7121 #endif
7122 Syntax error
7123 _ACEOF
7124 if { (ac_try="$ac_cpp conftest.$ac_ext"
7125 case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128 esac
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } >/dev/null && {
7137 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7138 test ! -s conftest.err
7139 }; then
7140 :
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 # Broken: fails on valid input.
7146 continue
7147 fi
7148
7149 rm -f conftest.err conftest.$ac_ext
7150
7151 # OK, works on sane cases. Now check whether nonexistent headers
7152 # can be detected and how.
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <ac_nonexistent.h>
7160 _ACEOF
7161 if { (ac_try="$ac_cpp conftest.$ac_ext"
7162 case "(($ac_try" in
7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164 *) ac_try_echo=$ac_try;;
7165 esac
7166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7168 ac_status=$?
7169 grep -v '^ *+' conftest.er1 >conftest.err
7170 rm -f conftest.er1
7171 cat conftest.err >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } >/dev/null && {
7174 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7175 test ! -s conftest.err
7176 }; then
7177 # Broken: success on invalid input.
7178 continue
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 # Passes both tests.
7184 ac_preproc_ok=:
7185 break
7186 fi
7187
7188 rm -f conftest.err conftest.$ac_ext
7189
7190 done
7191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7192 rm -f conftest.err conftest.$ac_ext
7193 if $ac_preproc_ok; then
7194 break
7195 fi
7196
7197 done
7198 ac_cv_prog_CXXCPP=$CXXCPP
7199
7200 fi
7201 CXXCPP=$ac_cv_prog_CXXCPP
7202 else
7203 ac_cv_prog_CXXCPP=$CXXCPP
7204 fi
7205 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7206 echo "${ECHO_T}$CXXCPP" >&6; }
7207 ac_preproc_ok=false
7208 for ac_cxx_preproc_warn_flag in '' yes
7209 do
7210 # Use a header file that comes with gcc, so configuring glibc
7211 # with a fresh cross-compiler works.
7212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7213 # <limits.h> exists even on freestanding compilers.
7214 # On the NeXT, cc -E runs the code through the compiler's parser,
7215 # not just through cpp. "Syntax error" is here to catch this case.
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #ifdef __STDC__
7223 # include <limits.h>
7224 #else
7225 # include <assert.h>
7226 #endif
7227 Syntax error
7228 _ACEOF
7229 if { (ac_try="$ac_cpp conftest.$ac_ext"
7230 case "(($ac_try" in
7231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7232 *) ac_try_echo=$ac_try;;
7233 esac
7234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7236 ac_status=$?
7237 grep -v '^ *+' conftest.er1 >conftest.err
7238 rm -f conftest.er1
7239 cat conftest.err >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } >/dev/null && {
7242 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7243 test ! -s conftest.err
7244 }; then
7245 :
7246 else
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7249
7250 # Broken: fails on valid input.
7251 continue
7252 fi
7253
7254 rm -f conftest.err conftest.$ac_ext
7255
7256 # OK, works on sane cases. Now check whether nonexistent headers
7257 # can be detected and how.
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 #include <ac_nonexistent.h>
7265 _ACEOF
7266 if { (ac_try="$ac_cpp conftest.$ac_ext"
7267 case "(($ac_try" in
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7270 esac
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } >/dev/null && {
7279 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7280 test ! -s conftest.err
7281 }; then
7282 # Broken: success on invalid input.
7283 continue
7284 else
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7287
7288 # Passes both tests.
7289 ac_preproc_ok=:
7290 break
7291 fi
7292
7293 rm -f conftest.err conftest.$ac_ext
7294
7295 done
7296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7297 rm -f conftest.err conftest.$ac_ext
7298 if $ac_preproc_ok; then
7299 :
7300 else
7301 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7302 See \`config.log' for more details." >&5
7303 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7304 See \`config.log' for more details." >&2;}
7305 { (exit 1); exit 1; }; }
7306 fi
7307
7308 ac_ext=cpp
7309 ac_cpp='$CXXCPP $CPPFLAGS'
7310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7313
7314 fi
7315
7316
7317 ac_ext=f
7318 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7319 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7321 if test -n "$ac_tool_prefix"; then
7322 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7323 do
7324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7328 if test "${ac_cv_prog_F77+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 if test -n "$F77"; then
7332 ac_cv_prog_F77="$F77" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 F77=$ac_cv_prog_F77
7352 if test -n "$F77"; then
7353 { echo "$as_me:$LINENO: result: $F77" >&5
7354 echo "${ECHO_T}$F77" >&6; }
7355 else
7356 { echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6; }
7358 fi
7359
7360
7361 test -n "$F77" && break
7362 done
7363 fi
7364 if test -z "$F77"; then
7365 ac_ct_F77=$F77
7366 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7367 do
7368 # Extract the first word of "$ac_prog", so it can be a program name with args.
7369 set dummy $ac_prog; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 if test -n "$ac_ct_F77"; then
7376 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_ac_ct_F77="$ac_prog"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389 done
7390 done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7396 if test -n "$ac_ct_F77"; then
7397 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7398 echo "${ECHO_T}$ac_ct_F77" >&6; }
7399 else
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7402 fi
7403
7404
7405 test -n "$ac_ct_F77" && break
7406 done
7407
7408 if test "x$ac_ct_F77" = x; then
7409 F77=""
7410 else
7411 case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7414 whose name does not start with the host triplet. If you think this
7415 configuration is useful to you, please write to autoconf@gnu.org." >&5
7416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7417 whose name does not start with the host triplet. If you think this
7418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7419 ac_tool_warned=yes ;;
7420 esac
7421 F77=$ac_ct_F77
7422 fi
7423 fi
7424
7425
7426 # Provide some information about the compiler.
7427 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7428 ac_compiler=`set X $ac_compile; echo $2`
7429 { (ac_try="$ac_compiler --version >&5"
7430 case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_compiler --version >&5") 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }
7439 { (ac_try="$ac_compiler -v >&5"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compiler -v >&5") 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }
7449 { (ac_try="$ac_compiler -V >&5"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compiler -V >&5") 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }
7459 rm -f a.out
7460
7461 # If we don't use `.F' as extension, the preprocessor is not run on the
7462 # input file. (Note that this only needs to work for GNU compilers.)
7463 ac_save_ext=$ac_ext
7464 ac_ext=F
7465 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7466 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7467 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 cat >conftest.$ac_ext <<_ACEOF
7471 program main
7472 #ifndef __GNUC__
7473 choke me
7474 #endif
7475
7476 end
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (ac_try="$ac_compile"
7480 case "(($ac_try" in
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7483 esac
7484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7485 (eval "$ac_compile") 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } && {
7492 test -z "$ac_f77_werror_flag" ||
7493 test ! -s conftest.err
7494 } && test -s conftest.$ac_objext; then
7495 ac_compiler_gnu=yes
7496 else
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500 ac_compiler_gnu=no
7501 fi
7502
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7505
7506 fi
7507 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7508 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7509 ac_ext=$ac_save_ext
7510 ac_test_FFLAGS=${FFLAGS+set}
7511 ac_save_FFLAGS=$FFLAGS
7512 FFLAGS=
7513 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7514 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7515 if test "${ac_cv_prog_f77_g+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 FFLAGS=-g
7519 cat >conftest.$ac_ext <<_ACEOF
7520 program main
7521
7522 end
7523 _ACEOF
7524 rm -f conftest.$ac_objext
7525 if { (ac_try="$ac_compile"
7526 case "(($ac_try" in
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7529 esac
7530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7531 (eval "$ac_compile") 2>conftest.er1
7532 ac_status=$?
7533 grep -v '^ *+' conftest.er1 >conftest.err
7534 rm -f conftest.er1
7535 cat conftest.err >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } && {
7538 test -z "$ac_f77_werror_flag" ||
7539 test ! -s conftest.err
7540 } && test -s conftest.$ac_objext; then
7541 ac_cv_prog_f77_g=yes
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 ac_cv_prog_f77_g=no
7547 fi
7548
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550
7551 fi
7552 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7553 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7554 if test "$ac_test_FFLAGS" = set; then
7555 FFLAGS=$ac_save_FFLAGS
7556 elif test $ac_cv_prog_f77_g = yes; then
7557 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7558 FFLAGS="-g -O2"
7559 else
7560 FFLAGS="-g"
7561 fi
7562 else
7563 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7564 FFLAGS="-O2"
7565 else
7566 FFLAGS=
7567 fi
7568 fi
7569
7570 G77=`test $ac_compiler_gnu = yes && echo yes`
7571 ac_ext=c
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7576
7577
7578
7579 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7580
7581 # find the maximum length of command line arguments
7582 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7583 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7584 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 i=0
7588 teststring="ABCD"
7589
7590 case $build_os in
7591 msdosdjgpp*)
7592 # On DJGPP, this test can blow up pretty badly due to problems in libc
7593 # (any single argument exceeding 2000 bytes causes a buffer overrun
7594 # during glob expansion). Even if it were fixed, the result of this
7595 # check would be larger than it should be.
7596 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7597 ;;
7598
7599 gnu*)
7600 # Under GNU Hurd, this test is not required because there is
7601 # no limit to the length of command line arguments.
7602 # Libtool will interpret -1 as no limit whatsoever
7603 lt_cv_sys_max_cmd_len=-1;
7604 ;;
7605
7606 cygwin* | mingw*)
7607 # On Win9x/ME, this test blows up -- it succeeds, but takes
7608 # about 5 minutes as the teststring grows exponentially.
7609 # Worse, since 9x/ME are not pre-emptively multitasking,
7610 # you end up with a "frozen" computer, even though with patience
7611 # the test eventually succeeds (with a max line length of 256k).
7612 # Instead, let's just punt: use the minimum linelength reported by
7613 # all of the supported platforms: 8192 (on NT/2K/XP).
7614 lt_cv_sys_max_cmd_len=8192;
7615 ;;
7616
7617 amigaos*)
7618 # On AmigaOS with pdksh, this test takes hours, literally.
7619 # So we just punt and use a minimum line length of 8192.
7620 lt_cv_sys_max_cmd_len=8192;
7621 ;;
7622
7623 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7624 # This has been around since 386BSD, at least. Likely further.
7625 if test -x /sbin/sysctl; then
7626 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7627 elif test -x /usr/sbin/sysctl; then
7628 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7629 else
7630 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7631 fi
7632 # And add a safety zone
7633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7635 ;;
7636
7637 interix*)
7638 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7639 lt_cv_sys_max_cmd_len=196608
7640 ;;
7641
7642 osf*)
7643 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7644 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7645 # nice to cause kernel panics so lets avoid the loop below.
7646 # First set a reasonable default.
7647 lt_cv_sys_max_cmd_len=16384
7648 #
7649 if test -x /sbin/sysconfig; then
7650 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7651 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7652 esac
7653 fi
7654 ;;
7655 sco3.2v5*)
7656 lt_cv_sys_max_cmd_len=102400
7657 ;;
7658 sysv5* | sco5v6* | sysv4.2uw2*)
7659 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7660 if test -n "$kargmax"; then
7661 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7662 else
7663 lt_cv_sys_max_cmd_len=32768
7664 fi
7665 ;;
7666 *)
7667 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7668 if test -n "$lt_cv_sys_max_cmd_len"; then
7669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7671 else
7672 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7673 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7674 = "XX$teststring") >/dev/null 2>&1 &&
7675 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7676 lt_cv_sys_max_cmd_len=$new_result &&
7677 test $i != 17 # 1/2 MB should be enough
7678 do
7679 i=`expr $i + 1`
7680 teststring=$teststring$teststring
7681 done
7682 teststring=
7683 # Add a significant safety factor because C++ compilers can tack on massive
7684 # amounts of additional arguments before passing them to the linker.
7685 # It appears as though 1/2 is a usable value.
7686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7687 fi
7688 ;;
7689 esac
7690
7691 fi
7692
7693 if test -n $lt_cv_sys_max_cmd_len ; then
7694 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7695 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7696 else
7697 { echo "$as_me:$LINENO: result: none" >&5
7698 echo "${ECHO_T}none" >&6; }
7699 fi
7700
7701
7702
7703
7704
7705 # Check for command to grab the raw symbol name followed by C symbol from nm.
7706 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7707 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7708 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711
7712 # These are sane defaults that work on at least a few old systems.
7713 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7714
7715 # Character class describing NM global symbol codes.
7716 symcode='[BCDEGRST]'
7717
7718 # Regexp to match symbols that can be accessed directly from C.
7719 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7720
7721 # Transform an extracted symbol line into a proper C declaration
7722 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7723
7724 # Transform an extracted symbol line into symbol name and symbol address
7725 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'"
7726
7727 # Define system-specific variables.
7728 case $host_os in
7729 aix*)
7730 symcode='[BCDT]'
7731 ;;
7732 cygwin* | mingw* | pw32*)
7733 symcode='[ABCDGISTW]'
7734 ;;
7735 hpux*) # Its linker distinguishes data from code symbols
7736 if test "$host_cpu" = ia64; then
7737 symcode='[ABCDEGRST]'
7738 fi
7739 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7740 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'"
7741 ;;
7742 linux* | k*bsd*-gnu)
7743 if test "$host_cpu" = ia64; then
7744 symcode='[ABCDGIRSTW]'
7745 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7746 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'"
7747 fi
7748 ;;
7749 irix* | nonstopux*)
7750 symcode='[BCDEGRST]'
7751 ;;
7752 osf*)
7753 symcode='[BCDEGQRST]'
7754 ;;
7755 solaris*)
7756 symcode='[BDRT]'
7757 ;;
7758 sco3.2v5*)
7759 symcode='[DT]'
7760 ;;
7761 sysv4.2uw2*)
7762 symcode='[DT]'
7763 ;;
7764 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7765 symcode='[ABDT]'
7766 ;;
7767 sysv4)
7768 symcode='[DFNSTU]'
7769 ;;
7770 esac
7771
7772 # Handle CRLF in mingw tool chain
7773 opt_cr=
7774 case $build_os in
7775 mingw*)
7776 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7777 ;;
7778 esac
7779
7780 # If we're using GNU nm, then use its standard symbol codes.
7781 case `$NM -V 2>&1` in
7782 *GNU* | *'with BFD'*)
7783 symcode='[ABCDGIRSTW]' ;;
7784 esac
7785
7786 # Try without a prefix undercore, then with it.
7787 for ac_symprfx in "" "_"; do
7788
7789 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7790 symxfrm="\\1 $ac_symprfx\\2 \\2"
7791
7792 # Write the raw and C identifiers.
7793 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7794
7795 # Check to see that the pipe works correctly.
7796 pipe_works=no
7797
7798 rm -f conftest*
7799 cat > conftest.$ac_ext <<EOF
7800 #ifdef __cplusplus
7801 extern "C" {
7802 #endif
7803 char nm_test_var;
7804 void nm_test_func(){}
7805 #ifdef __cplusplus
7806 }
7807 #endif
7808 int main(){nm_test_var='a';nm_test_func();return(0);}
7809 EOF
7810
7811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7812 (eval $ac_compile) 2>&5
7813 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; then
7816 # Now try to grab the symbols.
7817 nlist=conftest.nm
7818 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7819 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7820 ac_status=$?
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && test -s "$nlist"; then
7823 # Try sorting and uniquifying the output.
7824 if sort "$nlist" | uniq > "$nlist"T; then
7825 mv -f "$nlist"T "$nlist"
7826 else
7827 rm -f "$nlist"T
7828 fi
7829
7830 # Make sure that we snagged all the symbols we need.
7831 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7832 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7833 cat <<EOF > conftest.$ac_ext
7834 #ifdef __cplusplus
7835 extern "C" {
7836 #endif
7837
7838 EOF
7839 # Now generate the symbol file.
7840 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7841
7842 cat <<EOF >> conftest.$ac_ext
7843 #if defined (__STDC__) && __STDC__
7844 # define lt_ptr_t void *
7845 #else
7846 # define lt_ptr_t char *
7847 # define const
7848 #endif
7849
7850 /* The mapping between symbol names and symbols. */
7851 const struct {
7852 const char *name;
7853 lt_ptr_t address;
7854 }
7855 lt_preloaded_symbols[] =
7856 {
7857 EOF
7858 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7859 cat <<\EOF >> conftest.$ac_ext
7860 {0, (lt_ptr_t) 0}
7861 };
7862
7863 #ifdef __cplusplus
7864 }
7865 #endif
7866 EOF
7867 # Now try linking the two files.
7868 mv conftest.$ac_objext conftstm.$ac_objext
7869 lt_save_LIBS="$LIBS"
7870 lt_save_CFLAGS="$CFLAGS"
7871 LIBS="conftstm.$ac_objext"
7872 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7878 pipe_works=yes
7879 fi
7880 LIBS="$lt_save_LIBS"
7881 CFLAGS="$lt_save_CFLAGS"
7882 else
7883 echo "cannot find nm_test_func in $nlist" >&5
7884 fi
7885 else
7886 echo "cannot find nm_test_var in $nlist" >&5
7887 fi
7888 else
7889 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7890 fi
7891 else
7892 echo "$progname: failed program was:" >&5
7893 cat conftest.$ac_ext >&5
7894 fi
7895 rm -f conftest* conftst*
7896
7897 # Do not use the global_symbol_pipe unless it works.
7898 if test "$pipe_works" = yes; then
7899 break
7900 else
7901 lt_cv_sys_global_symbol_pipe=
7902 fi
7903 done
7904
7905 fi
7906
7907 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7908 lt_cv_sys_global_symbol_to_cdecl=
7909 fi
7910 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7911 { echo "$as_me:$LINENO: result: failed" >&5
7912 echo "${ECHO_T}failed" >&6; }
7913 else
7914 { echo "$as_me:$LINENO: result: ok" >&5
7915 echo "${ECHO_T}ok" >&6; }
7916 fi
7917
7918 { echo "$as_me:$LINENO: checking for objdir" >&5
7919 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7920 if test "${lt_cv_objdir+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 rm -f .libs 2>/dev/null
7924 mkdir .libs 2>/dev/null
7925 if test -d .libs; then
7926 lt_cv_objdir=.libs
7927 else
7928 # MS-DOS does not allow filenames that begin with a dot.
7929 lt_cv_objdir=_libs
7930 fi
7931 rmdir .libs 2>/dev/null
7932 fi
7933 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7934 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7935 objdir=$lt_cv_objdir
7936
7937
7938
7939
7940
7941 case $host_os in
7942 aix3*)
7943 # AIX sometimes has problems with the GCC collect2 program. For some
7944 # reason, if we set the COLLECT_NAMES environment variable, the problems
7945 # vanish in a puff of smoke.
7946 if test "X${COLLECT_NAMES+set}" != Xset; then
7947 COLLECT_NAMES=
7948 export COLLECT_NAMES
7949 fi
7950 ;;
7951 esac
7952
7953 # Sed substitution that helps us do robust quoting. It backslashifies
7954 # metacharacters that are still active within double-quoted strings.
7955 Xsed='sed -e 1s/^X//'
7956 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7957
7958 # Same as above, but do not quote variable references.
7959 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7960
7961 # Sed substitution to delay expansion of an escaped shell variable in a
7962 # double_quote_subst'ed string.
7963 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7964
7965 # Sed substitution to avoid accidental globbing in evaled expressions
7966 no_glob_subst='s/\*/\\\*/g'
7967
7968 # Constants:
7969 rm="rm -f"
7970
7971 # Global variables:
7972 default_ofile=libtool
7973 can_build_shared=yes
7974
7975 # All known linkers require a `.a' archive for static linking (except MSVC,
7976 # which needs '.lib').
7977 libext=a
7978 ltmain="$ac_aux_dir/ltmain.sh"
7979 ofile="$default_ofile"
7980 with_gnu_ld="$lt_cv_prog_gnu_ld"
7981
7982 if test -n "$ac_tool_prefix"; then
7983 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7984 set dummy ${ac_tool_prefix}ar; ac_word=$2
7985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7987 if test "${ac_cv_prog_AR+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990 if test -n "$AR"; then
7991 ac_cv_prog_AR="$AR" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8000 ac_cv_prog_AR="${ac_tool_prefix}ar"
8001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004 done
8005 done
8006 IFS=$as_save_IFS
8007
8008 fi
8009 fi
8010 AR=$ac_cv_prog_AR
8011 if test -n "$AR"; then
8012 { echo "$as_me:$LINENO: result: $AR" >&5
8013 echo "${ECHO_T}$AR" >&6; }
8014 else
8015 { echo "$as_me:$LINENO: result: no" >&5
8016 echo "${ECHO_T}no" >&6; }
8017 fi
8018
8019
8020 fi
8021 if test -z "$ac_cv_prog_AR"; then
8022 ac_ct_AR=$AR
8023 # Extract the first word of "ar", so it can be a program name with args.
8024 set dummy ar; ac_word=$2
8025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8027 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 if test -n "$ac_ct_AR"; then
8031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_ac_ct_AR="ar"
8041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8043 fi
8044 done
8045 done
8046 IFS=$as_save_IFS
8047
8048 fi
8049 fi
8050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8051 if test -n "$ac_ct_AR"; then
8052 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8053 echo "${ECHO_T}$ac_ct_AR" >&6; }
8054 else
8055 { echo "$as_me:$LINENO: result: no" >&5
8056 echo "${ECHO_T}no" >&6; }
8057 fi
8058
8059 if test "x$ac_ct_AR" = x; then
8060 AR="false"
8061 else
8062 case $cross_compiling:$ac_tool_warned in
8063 yes:)
8064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8065 whose name does not start with the host triplet. If you think this
8066 configuration is useful to you, please write to autoconf@gnu.org." >&5
8067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8068 whose name does not start with the host triplet. If you think this
8069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8070 ac_tool_warned=yes ;;
8071 esac
8072 AR=$ac_ct_AR
8073 fi
8074 else
8075 AR="$ac_cv_prog_AR"
8076 fi
8077
8078 if test -n "$ac_tool_prefix"; then
8079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8083 if test "${ac_cv_prog_RANLIB+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086 if test -n "$RANLIB"; then
8087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100 done
8101 done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 RANLIB=$ac_cv_prog_RANLIB
8107 if test -n "$RANLIB"; then
8108 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8109 echo "${ECHO_T}$RANLIB" >&6; }
8110 else
8111 { echo "$as_me:$LINENO: result: no" >&5
8112 echo "${ECHO_T}no" >&6; }
8113 fi
8114
8115
8116 fi
8117 if test -z "$ac_cv_prog_RANLIB"; then
8118 ac_ct_RANLIB=$RANLIB
8119 # Extract the first word of "ranlib", so it can be a program name with args.
8120 set dummy ranlib; ac_word=$2
8121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8123 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126 if test -n "$ac_ct_RANLIB"; then
8127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_ac_ct_RANLIB="ranlib"
8137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140 done
8141 done
8142 IFS=$as_save_IFS
8143
8144 fi
8145 fi
8146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8147 if test -n "$ac_ct_RANLIB"; then
8148 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8149 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8150 else
8151 { echo "$as_me:$LINENO: result: no" >&5
8152 echo "${ECHO_T}no" >&6; }
8153 fi
8154
8155 if test "x$ac_ct_RANLIB" = x; then
8156 RANLIB=":"
8157 else
8158 case $cross_compiling:$ac_tool_warned in
8159 yes:)
8160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8161 whose name does not start with the host triplet. If you think this
8162 configuration is useful to you, please write to autoconf@gnu.org." >&5
8163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8164 whose name does not start with the host triplet. If you think this
8165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8166 ac_tool_warned=yes ;;
8167 esac
8168 RANLIB=$ac_ct_RANLIB
8169 fi
8170 else
8171 RANLIB="$ac_cv_prog_RANLIB"
8172 fi
8173
8174 if test -n "$ac_tool_prefix"; then
8175 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8176 set dummy ${ac_tool_prefix}strip; ac_word=$2
8177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8179 if test "${ac_cv_prog_STRIP+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182 if test -n "$STRIP"; then
8183 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8187 do
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8195 fi
8196 done
8197 done
8198 IFS=$as_save_IFS
8199
8200 fi
8201 fi
8202 STRIP=$ac_cv_prog_STRIP
8203 if test -n "$STRIP"; then
8204 { echo "$as_me:$LINENO: result: $STRIP" >&5
8205 echo "${ECHO_T}$STRIP" >&6; }
8206 else
8207 { echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6; }
8209 fi
8210
8211
8212 fi
8213 if test -z "$ac_cv_prog_STRIP"; then
8214 ac_ct_STRIP=$STRIP
8215 # Extract the first word of "strip", so it can be a program name with args.
8216 set dummy strip; ac_word=$2
8217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8219 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222 if test -n "$ac_ct_STRIP"; then
8223 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_ac_ct_STRIP="strip"
8233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236 done
8237 done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8243 if test -n "$ac_ct_STRIP"; then
8244 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8245 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8246 else
8247 { echo "$as_me:$LINENO: result: no" >&5
8248 echo "${ECHO_T}no" >&6; }
8249 fi
8250
8251 if test "x$ac_ct_STRIP" = x; then
8252 STRIP=":"
8253 else
8254 case $cross_compiling:$ac_tool_warned in
8255 yes:)
8256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8257 whose name does not start with the host triplet. If you think this
8258 configuration is useful to you, please write to autoconf@gnu.org." >&5
8259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8260 whose name does not start with the host triplet. If you think this
8261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8262 ac_tool_warned=yes ;;
8263 esac
8264 STRIP=$ac_ct_STRIP
8265 fi
8266 else
8267 STRIP="$ac_cv_prog_STRIP"
8268 fi
8269
8270
8271 old_CC="$CC"
8272 old_CFLAGS="$CFLAGS"
8273
8274 # Set sane defaults for various variables
8275 test -z "$AR" && AR=ar
8276 test -z "$AR_FLAGS" && AR_FLAGS=cru
8277 test -z "$AS" && AS=as
8278 test -z "$CC" && CC=cc
8279 test -z "$LTCC" && LTCC=$CC
8280 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8281 test -z "$DLLTOOL" && DLLTOOL=dlltool
8282 test -z "$LD" && LD=ld
8283 test -z "$LN_S" && LN_S="ln -s"
8284 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8285 test -z "$NM" && NM=nm
8286 test -z "$SED" && SED=sed
8287 test -z "$OBJDUMP" && OBJDUMP=objdump
8288 test -z "$RANLIB" && RANLIB=:
8289 test -z "$STRIP" && STRIP=:
8290 test -z "$ac_objext" && ac_objext=o
8291
8292 # Determine commands to create old-style static archives.
8293 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8294 old_postinstall_cmds='chmod 644 $oldlib'
8295 old_postuninstall_cmds=
8296
8297 if test -n "$RANLIB"; then
8298 case $host_os in
8299 openbsd*)
8300 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8301 ;;
8302 *)
8303 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8304 ;;
8305 esac
8306 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8307 fi
8308
8309 for cc_temp in $compiler""; do
8310 case $cc_temp in
8311 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8312 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8313 \-*) ;;
8314 *) break;;
8315 esac
8316 done
8317 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8318
8319
8320 # Only perform the check for file, if the check method requires it
8321 case $deplibs_check_method in
8322 file_magic*)
8323 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8324 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8325 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8326 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329 case $MAGIC_CMD in
8330 [\\/*] | ?:[\\/]*)
8331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8332 ;;
8333 *)
8334 lt_save_MAGIC_CMD="$MAGIC_CMD"
8335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8336 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8337 for ac_dir in $ac_dummy; do
8338 IFS="$lt_save_ifs"
8339 test -z "$ac_dir" && ac_dir=.
8340 if test -f $ac_dir/${ac_tool_prefix}file; then
8341 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8342 if test -n "$file_magic_test_file"; then
8343 case $deplibs_check_method in
8344 "file_magic "*)
8345 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8347 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8348 $EGREP "$file_magic_regex" > /dev/null; then
8349 :
8350 else
8351 cat <<EOF 1>&2
8352
8353 *** Warning: the command libtool uses to detect shared libraries,
8354 *** $file_magic_cmd, produces output that libtool cannot recognize.
8355 *** The result is that libtool may fail to recognize shared libraries
8356 *** as such. This will affect the creation of libtool libraries that
8357 *** depend on shared libraries, but programs linked with such libtool
8358 *** libraries will work regardless of this problem. Nevertheless, you
8359 *** may want to report the problem to your system manager and/or to
8360 *** bug-libtool@gnu.org
8361
8362 EOF
8363 fi ;;
8364 esac
8365 fi
8366 break
8367 fi
8368 done
8369 IFS="$lt_save_ifs"
8370 MAGIC_CMD="$lt_save_MAGIC_CMD"
8371 ;;
8372 esac
8373 fi
8374
8375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8376 if test -n "$MAGIC_CMD"; then
8377 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8378 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8379 else
8380 { echo "$as_me:$LINENO: result: no" >&5
8381 echo "${ECHO_T}no" >&6; }
8382 fi
8383
8384 if test -z "$lt_cv_path_MAGIC_CMD"; then
8385 if test -n "$ac_tool_prefix"; then
8386 { echo "$as_me:$LINENO: checking for file" >&5
8387 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8388 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391 case $MAGIC_CMD in
8392 [\\/*] | ?:[\\/]*)
8393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8394 ;;
8395 *)
8396 lt_save_MAGIC_CMD="$MAGIC_CMD"
8397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8399 for ac_dir in $ac_dummy; do
8400 IFS="$lt_save_ifs"
8401 test -z "$ac_dir" && ac_dir=.
8402 if test -f $ac_dir/file; then
8403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8404 if test -n "$file_magic_test_file"; then
8405 case $deplibs_check_method in
8406 "file_magic "*)
8407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8410 $EGREP "$file_magic_regex" > /dev/null; then
8411 :
8412 else
8413 cat <<EOF 1>&2
8414
8415 *** Warning: the command libtool uses to detect shared libraries,
8416 *** $file_magic_cmd, produces output that libtool cannot recognize.
8417 *** The result is that libtool may fail to recognize shared libraries
8418 *** as such. This will affect the creation of libtool libraries that
8419 *** depend on shared libraries, but programs linked with such libtool
8420 *** libraries will work regardless of this problem. Nevertheless, you
8421 *** may want to report the problem to your system manager and/or to
8422 *** bug-libtool@gnu.org
8423
8424 EOF
8425 fi ;;
8426 esac
8427 fi
8428 break
8429 fi
8430 done
8431 IFS="$lt_save_ifs"
8432 MAGIC_CMD="$lt_save_MAGIC_CMD"
8433 ;;
8434 esac
8435 fi
8436
8437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8438 if test -n "$MAGIC_CMD"; then
8439 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8440 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8441 else
8442 { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8444 fi
8445
8446 else
8447 MAGIC_CMD=:
8448 fi
8449 fi
8450
8451 fi
8452 ;;
8453 esac
8454
8455 enable_dlopen=no
8456 enable_win32_dll=no
8457
8458 # Check whether --enable-libtool-lock was given.
8459 if test "${enable_libtool_lock+set}" = set; then
8460 enableval=$enable_libtool_lock;
8461 fi
8462
8463 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8464
8465
8466 # Check whether --with-pic was given.
8467 if test "${with_pic+set}" = set; then
8468 withval=$with_pic; pic_mode="$withval"
8469 else
8470 pic_mode=default
8471 fi
8472
8473 test -z "$pic_mode" && pic_mode=default
8474
8475 # Use C for the default configuration in the libtool script
8476 tagname=
8477 lt_save_CC="$CC"
8478 ac_ext=c
8479 ac_cpp='$CPP $CPPFLAGS'
8480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483
8484
8485 # Source file extension for C test sources.
8486 ac_ext=c
8487
8488 # Object file extension for compiled C test sources.
8489 objext=o
8490 objext=$objext
8491
8492 # Code to be used in simple compile tests
8493 lt_simple_compile_test_code="int some_variable = 0;"
8494
8495 # Code to be used in simple link tests
8496 lt_simple_link_test_code='int main(){return(0);}'
8497
8498
8499 # If no C compiler was specified, use CC.
8500 LTCC=${LTCC-"$CC"}
8501
8502 # If no C compiler flags were specified, use CFLAGS.
8503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8504
8505 # Allow CC to be a program name with arguments.
8506 compiler=$CC
8507
8508
8509 # save warnings/boilerplate of simple test code
8510 ac_outfile=conftest.$ac_objext
8511 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8512 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8513 _lt_compiler_boilerplate=`cat conftest.err`
8514 $rm conftest*
8515
8516 ac_outfile=conftest.$ac_objext
8517 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8518 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_linker_boilerplate=`cat conftest.err`
8520 $rm conftest*
8521
8522
8523
8524 lt_prog_compiler_no_builtin_flag=
8525
8526 if test "$GCC" = yes; then
8527 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8528
8529
8530 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8531 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8532 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 lt_cv_prog_compiler_rtti_exceptions=no
8536 ac_outfile=conftest.$ac_objext
8537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8538 lt_compiler_flag="-fno-rtti -fno-exceptions"
8539 # Insert the option either (1) after the last *FLAGS variable, or
8540 # (2) before a word containing "conftest.", or (3) at the end.
8541 # Note that $ac_compile itself does not contain backslashes and begins
8542 # with a dollar sign (not a hyphen), so the echo should work correctly.
8543 # The option is referenced via a variable to avoid confusing sed.
8544 lt_compile=`echo "$ac_compile" | $SED \
8545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8547 -e 's:$: $lt_compiler_flag:'`
8548 (eval echo "\"\$as_me:8549: $lt_compile\"" >&5)
8549 (eval "$lt_compile" 2>conftest.err)
8550 ac_status=$?
8551 cat conftest.err >&5
8552 echo "$as_me:8553: \$? = $ac_status" >&5
8553 if (exit $ac_status) && test -s "$ac_outfile"; then
8554 # The compiler can only warn and ignore the option if not recognized
8555 # So say no if there are warnings other than the usual output.
8556 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8559 lt_cv_prog_compiler_rtti_exceptions=yes
8560 fi
8561 fi
8562 $rm conftest*
8563
8564 fi
8565 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8566 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8567
8568 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8569 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8570 else
8571 :
8572 fi
8573
8574 fi
8575
8576 lt_prog_compiler_wl=
8577 lt_prog_compiler_pic=
8578 lt_prog_compiler_static=
8579
8580 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8581 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8582
8583 if test "$GCC" = yes; then
8584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_static='-static'
8586
8587 case $host_os in
8588 aix*)
8589 # All AIX code is PIC.
8590 if test "$host_cpu" = ia64; then
8591 # AIX 5 now supports IA64 processor
8592 lt_prog_compiler_static='-Bstatic'
8593 fi
8594 ;;
8595
8596 amigaos*)
8597 # FIXME: we need at least 68020 code to build shared libraries, but
8598 # adding the `-m68020' flag to GCC prevents building anything better,
8599 # like `-m68040'.
8600 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8601 ;;
8602
8603 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8604 # PIC is the default for these OSes.
8605 ;;
8606
8607 mingw* | cygwin* | pw32* | os2*)
8608 # This hack is so that the source file can tell whether it is being
8609 # built for inclusion in a dll (and should export symbols for example).
8610 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8611 # (--disable-auto-import) libraries
8612 lt_prog_compiler_pic='-DDLL_EXPORT'
8613 ;;
8614
8615 darwin* | rhapsody*)
8616 # PIC is the default on this platform
8617 # Common symbols not allowed in MH_DYLIB files
8618 lt_prog_compiler_pic='-fno-common'
8619 ;;
8620
8621 interix[3-9]*)
8622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8623 # Instead, we relocate shared libraries at runtime.
8624 ;;
8625
8626 msdosdjgpp*)
8627 # Just because we use GCC doesn't mean we suddenly get shared libraries
8628 # on systems that don't support them.
8629 lt_prog_compiler_can_build_shared=no
8630 enable_shared=no
8631 ;;
8632
8633 sysv4*MP*)
8634 if test -d /usr/nec; then
8635 lt_prog_compiler_pic=-Kconform_pic
8636 fi
8637 ;;
8638
8639 hpux*)
8640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8641 # not for PA HP-UX.
8642 case $host_cpu in
8643 hppa*64*|ia64*)
8644 # +Z the default
8645 ;;
8646 *)
8647 lt_prog_compiler_pic='-fPIC'
8648 ;;
8649 esac
8650 ;;
8651
8652 *)
8653 lt_prog_compiler_pic='-fPIC'
8654 ;;
8655 esac
8656 else
8657 # PORTME Check for flag to pass linker flags through the system compiler.
8658 case $host_os in
8659 aix*)
8660 lt_prog_compiler_wl='-Wl,'
8661 if test "$host_cpu" = ia64; then
8662 # AIX 5 now supports IA64 processor
8663 lt_prog_compiler_static='-Bstatic'
8664 else
8665 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8666 fi
8667 ;;
8668 darwin*)
8669 # PIC is the default on this platform
8670 # Common symbols not allowed in MH_DYLIB files
8671 case $cc_basename in
8672 xlc*)
8673 lt_prog_compiler_pic='-qnocommon'
8674 lt_prog_compiler_wl='-Wl,'
8675 ;;
8676 esac
8677 ;;
8678
8679 mingw* | cygwin* | pw32* | os2*)
8680 # This hack is so that the source file can tell whether it is being
8681 # built for inclusion in a dll (and should export symbols for example).
8682 lt_prog_compiler_pic='-DDLL_EXPORT'
8683 ;;
8684
8685 hpux9* | hpux10* | hpux11*)
8686 lt_prog_compiler_wl='-Wl,'
8687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8688 # not for PA HP-UX.
8689 case $host_cpu in
8690 hppa*64*|ia64*)
8691 # +Z the default
8692 ;;
8693 *)
8694 lt_prog_compiler_pic='+Z'
8695 ;;
8696 esac
8697 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8698 lt_prog_compiler_static='${wl}-a ${wl}archive'
8699 ;;
8700
8701 irix5* | irix6* | nonstopux*)
8702 lt_prog_compiler_wl='-Wl,'
8703 # PIC (with -KPIC) is the default.
8704 lt_prog_compiler_static='-non_shared'
8705 ;;
8706
8707 newsos6)
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8710 ;;
8711
8712 linux* | k*bsd*-gnu)
8713 case $cc_basename in
8714 icc* | ecc*)
8715 lt_prog_compiler_wl='-Wl,'
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-static'
8718 ;;
8719 pgcc* | pgf77* | pgf90* | pgf95*)
8720 # Portland Group compilers (*not* the Pentium gcc compiler,
8721 # which looks to be a dead project)
8722 lt_prog_compiler_wl='-Wl,'
8723 lt_prog_compiler_pic='-fpic'
8724 lt_prog_compiler_static='-Bstatic'
8725 ;;
8726 ccc*)
8727 lt_prog_compiler_wl='-Wl,'
8728 # All Alpha code is PIC.
8729 lt_prog_compiler_static='-non_shared'
8730 ;;
8731 *)
8732 case `$CC -V 2>&1 | sed 5q` in
8733 *Sun\ C*)
8734 # Sun C 5.9
8735 lt_prog_compiler_pic='-KPIC'
8736 lt_prog_compiler_static='-Bstatic'
8737 lt_prog_compiler_wl='-Wl,'
8738 ;;
8739 *Sun\ F*)
8740 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8741 lt_prog_compiler_pic='-KPIC'
8742 lt_prog_compiler_static='-Bstatic'
8743 lt_prog_compiler_wl=''
8744 ;;
8745 esac
8746 ;;
8747 esac
8748 ;;
8749
8750 osf3* | osf4* | osf5*)
8751 lt_prog_compiler_wl='-Wl,'
8752 # All OSF/1 code is PIC.
8753 lt_prog_compiler_static='-non_shared'
8754 ;;
8755
8756 rdos*)
8757 lt_prog_compiler_static='-non_shared'
8758 ;;
8759
8760 solaris*)
8761 lt_prog_compiler_pic='-KPIC'
8762 lt_prog_compiler_static='-Bstatic'
8763 case $cc_basename in
8764 f77* | f90* | f95*)
8765 lt_prog_compiler_wl='-Qoption ld ';;
8766 *)
8767 lt_prog_compiler_wl='-Wl,';;
8768 esac
8769 ;;
8770
8771 sunos4*)
8772 lt_prog_compiler_wl='-Qoption ld '
8773 lt_prog_compiler_pic='-PIC'
8774 lt_prog_compiler_static='-Bstatic'
8775 ;;
8776
8777 sysv4 | sysv4.2uw2* | sysv4.3*)
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_pic='-KPIC'
8780 lt_prog_compiler_static='-Bstatic'
8781 ;;
8782
8783 sysv4*MP*)
8784 if test -d /usr/nec ;then
8785 lt_prog_compiler_pic='-Kconform_pic'
8786 lt_prog_compiler_static='-Bstatic'
8787 fi
8788 ;;
8789
8790 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-KPIC'
8793 lt_prog_compiler_static='-Bstatic'
8794 ;;
8795
8796 unicos*)
8797 lt_prog_compiler_wl='-Wl,'
8798 lt_prog_compiler_can_build_shared=no
8799 ;;
8800
8801 uts4*)
8802 lt_prog_compiler_pic='-pic'
8803 lt_prog_compiler_static='-Bstatic'
8804 ;;
8805
8806 *)
8807 lt_prog_compiler_can_build_shared=no
8808 ;;
8809 esac
8810 fi
8811
8812 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8813 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8814
8815 #
8816 # Check to make sure the PIC flag actually works.
8817 #
8818 if test -n "$lt_prog_compiler_pic"; then
8819
8820 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8821 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8822 if test "${lt_prog_compiler_pic_works+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 lt_prog_compiler_pic_works=no
8826 ac_outfile=conftest.$ac_objext
8827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8828 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8829 # Insert the option either (1) after the last *FLAGS variable, or
8830 # (2) before a word containing "conftest.", or (3) at the end.
8831 # Note that $ac_compile itself does not contain backslashes and begins
8832 # with a dollar sign (not a hyphen), so the echo should work correctly.
8833 # The option is referenced via a variable to avoid confusing sed.
8834 lt_compile=`echo "$ac_compile" | $SED \
8835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8837 -e 's:$: $lt_compiler_flag:'`
8838 (eval echo "\"\$as_me:8839: $lt_compile\"" >&5)
8839 (eval "$lt_compile" 2>conftest.err)
8840 ac_status=$?
8841 cat conftest.err >&5
8842 echo "$as_me:8843: \$? = $ac_status" >&5
8843 if (exit $ac_status) && test -s "$ac_outfile"; then
8844 # The compiler can only warn and ignore the option if not recognized
8845 # So say no if there are warnings other than the usual output.
8846 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8848 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8849 lt_prog_compiler_pic_works=yes
8850 fi
8851 fi
8852 $rm conftest*
8853
8854 fi
8855 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8856 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8857
8858 if test x"$lt_prog_compiler_pic_works" = xyes; then
8859 case $lt_prog_compiler_pic in
8860 "" | " "*) ;;
8861 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8862 esac
8863 else
8864 lt_prog_compiler_pic=
8865 lt_prog_compiler_can_build_shared=no
8866 fi
8867
8868 fi
8869 case $host_os in
8870 # For platforms which do not support PIC, -DPIC is meaningless:
8871 *djgpp*)
8872 lt_prog_compiler_pic=
8873 ;;
8874 *)
8875 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8876 ;;
8877 esac
8878
8879 #
8880 # Check to make sure the static flag actually works.
8881 #
8882 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8883 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8884 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8885 if test "${lt_prog_compiler_static_works+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888 lt_prog_compiler_static_works=no
8889 save_LDFLAGS="$LDFLAGS"
8890 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8891 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8892 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8893 # The linker can only warn and ignore the option if not recognized
8894 # So say no if there are warnings
8895 if test -s conftest.err; then
8896 # Append any errors to the config.log.
8897 cat conftest.err 1>&5
8898 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8900 if diff conftest.exp conftest.er2 >/dev/null; then
8901 lt_prog_compiler_static_works=yes
8902 fi
8903 else
8904 lt_prog_compiler_static_works=yes
8905 fi
8906 fi
8907 $rm conftest*
8908 LDFLAGS="$save_LDFLAGS"
8909
8910 fi
8911 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8912 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8913
8914 if test x"$lt_prog_compiler_static_works" = xyes; then
8915 :
8916 else
8917 lt_prog_compiler_static=
8918 fi
8919
8920
8921 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8923 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 lt_cv_prog_compiler_c_o=no
8927 $rm -r conftest 2>/dev/null
8928 mkdir conftest
8929 cd conftest
8930 mkdir out
8931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8932
8933 lt_compiler_flag="-o out/conftest2.$ac_objext"
8934 # Insert the option either (1) after the last *FLAGS variable, or
8935 # (2) before a word containing "conftest.", or (3) at the end.
8936 # Note that $ac_compile itself does not contain backslashes and begins
8937 # with a dollar sign (not a hyphen), so the echo should work correctly.
8938 lt_compile=`echo "$ac_compile" | $SED \
8939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8941 -e 's:$: $lt_compiler_flag:'`
8942 (eval echo "\"\$as_me:8943: $lt_compile\"" >&5)
8943 (eval "$lt_compile" 2>out/conftest.err)
8944 ac_status=$?
8945 cat out/conftest.err >&5
8946 echo "$as_me:8947: \$? = $ac_status" >&5
8947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8948 then
8949 # The compiler can only warn and ignore the option if not recognized
8950 # So say no if there are warnings
8951 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8954 lt_cv_prog_compiler_c_o=yes
8955 fi
8956 fi
8957 chmod u+w . 2>&5
8958 $rm conftest*
8959 # SGI C++ compiler will create directory out/ii_files/ for
8960 # template instantiation
8961 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8962 $rm out/* && rmdir out
8963 cd ..
8964 rmdir conftest
8965 $rm conftest*
8966
8967 fi
8968 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8970
8971
8972 hard_links="nottested"
8973 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8974 # do not overwrite the value of need_locks provided by the user
8975 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8976 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8977 hard_links=yes
8978 $rm conftest*
8979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8980 touch conftest.a
8981 ln conftest.a conftest.b 2>&5 || hard_links=no
8982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8983 { echo "$as_me:$LINENO: result: $hard_links" >&5
8984 echo "${ECHO_T}$hard_links" >&6; }
8985 if test "$hard_links" = no; then
8986 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8987 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8988 need_locks=warn
8989 fi
8990 else
8991 need_locks=no
8992 fi
8993
8994 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8995 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8996
8997 runpath_var=
8998 allow_undefined_flag=
8999 enable_shared_with_static_runtimes=no
9000 archive_cmds=
9001 archive_expsym_cmds=
9002 old_archive_From_new_cmds=
9003 old_archive_from_expsyms_cmds=
9004 export_dynamic_flag_spec=
9005 whole_archive_flag_spec=
9006 thread_safe_flag_spec=
9007 hardcode_libdir_flag_spec=
9008 hardcode_libdir_flag_spec_ld=
9009 hardcode_libdir_separator=
9010 hardcode_direct=no
9011 hardcode_minus_L=no
9012 hardcode_shlibpath_var=unsupported
9013 link_all_deplibs=unknown
9014 hardcode_automatic=no
9015 module_cmds=
9016 module_expsym_cmds=
9017 always_export_symbols=no
9018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9019 # include_expsyms should be a list of space-separated symbols to be *always*
9020 # included in the symbol list
9021 include_expsyms=
9022 # exclude_expsyms can be an extended regexp of symbols to exclude
9023 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9024 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9025 # as well as any symbol that contains `d'.
9026 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9027 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9028 # platforms (ab)use it in PIC code, but their linkers get confused if
9029 # the symbol is explicitly referenced. Since portable code cannot
9030 # rely on this symbol name, it's probably fine to never include it in
9031 # preloaded symbol tables.
9032 extract_expsyms_cmds=
9033 # Just being paranoid about ensuring that cc_basename is set.
9034 for cc_temp in $compiler""; do
9035 case $cc_temp in
9036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9038 \-*) ;;
9039 *) break;;
9040 esac
9041 done
9042 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9043
9044 case $host_os in
9045 cygwin* | mingw* | pw32*)
9046 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9047 # When not using gcc, we currently assume that we are using
9048 # Microsoft Visual C++.
9049 if test "$GCC" != yes; then
9050 with_gnu_ld=no
9051 fi
9052 ;;
9053 interix*)
9054 # we just hope/assume this is gcc and not c89 (= MSVC++)
9055 with_gnu_ld=yes
9056 ;;
9057 openbsd*)
9058 with_gnu_ld=no
9059 ;;
9060 esac
9061
9062 ld_shlibs=yes
9063 if test "$with_gnu_ld" = yes; then
9064 # If archive_cmds runs LD, not CC, wlarc should be empty
9065 wlarc='${wl}'
9066
9067 # Set some defaults for GNU ld with shared library support. These
9068 # are reset later if shared libraries are not supported. Putting them
9069 # here allows them to be overridden if necessary.
9070 runpath_var=LD_RUN_PATH
9071 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9072 export_dynamic_flag_spec='${wl}--export-dynamic'
9073 # ancient GNU ld didn't support --whole-archive et. al.
9074 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9075 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9076 else
9077 whole_archive_flag_spec=
9078 fi
9079 supports_anon_versioning=no
9080 case `$LD -v 2>/dev/null` in
9081 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9082 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9083 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9084 *\ 2.11.*) ;; # other 2.11 versions
9085 *) supports_anon_versioning=yes ;;
9086 esac
9087
9088 # See if GNU ld supports shared libraries.
9089 case $host_os in
9090 aix3* | aix4* | aix5*)
9091 # On AIX/PPC, the GNU linker is very broken
9092 if test "$host_cpu" != ia64; then
9093 ld_shlibs=no
9094 cat <<EOF 1>&2
9095
9096 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9097 *** to be unable to reliably create shared libraries on AIX.
9098 *** Therefore, libtool is disabling shared libraries support. If you
9099 *** really care for shared libraries, you may want to modify your PATH
9100 *** so that a non-GNU linker is found, and then restart.
9101
9102 EOF
9103 fi
9104 ;;
9105
9106 amigaos*)
9107 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)'
9108 hardcode_libdir_flag_spec='-L$libdir'
9109 hardcode_minus_L=yes
9110
9111 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9112 # that the semantics of dynamic libraries on AmigaOS, at least up
9113 # to version 4, is to share data among multiple programs linked
9114 # with the same dynamic library. Since this doesn't match the
9115 # behavior of shared libraries on other platforms, we can't use
9116 # them.
9117 ld_shlibs=no
9118 ;;
9119
9120 beos*)
9121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9122 allow_undefined_flag=unsupported
9123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9124 # support --undefined. This deserves some investigation. FIXME
9125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 else
9127 ld_shlibs=no
9128 fi
9129 ;;
9130
9131 cygwin* | mingw* | pw32*)
9132 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9133 # as there is no search path for DLLs.
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 allow_undefined_flag=unsupported
9136 always_export_symbols=no
9137 enable_shared_with_static_runtimes=yes
9138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9139
9140 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9142 # If the export-symbols file already is a .def file (1st line
9143 # is EXPORTS), use it as is; otherwise, prepend...
9144 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9145 cp $export_symbols $output_objdir/$soname.def;
9146 else
9147 echo EXPORTS > $output_objdir/$soname.def;
9148 cat $export_symbols >> $output_objdir/$soname.def;
9149 fi~
9150 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9151 else
9152 ld_shlibs=no
9153 fi
9154 ;;
9155
9156 interix[3-9]*)
9157 hardcode_direct=no
9158 hardcode_shlibpath_var=no
9159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9160 export_dynamic_flag_spec='${wl}-E'
9161 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9162 # Instead, shared libraries are loaded at an image base (0x10000000 by
9163 # default) and relocated if they conflict, which is a slow very memory
9164 # consuming and fragmenting process. To avoid this, we pick a random,
9165 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9166 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9168 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9169 ;;
9170
9171 gnu* | linux* | k*bsd*-gnu)
9172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9173 tmp_addflag=
9174 case $cc_basename,$host_cpu in
9175 pgcc*) # Portland Group C compiler
9176 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9177 tmp_addflag=' $pic_flag'
9178 ;;
9179 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9180 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9181 tmp_addflag=' $pic_flag -Mnomain' ;;
9182 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9183 tmp_addflag=' -i_dynamic' ;;
9184 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9185 tmp_addflag=' -i_dynamic -nofor_main' ;;
9186 ifc* | ifort*) # Intel Fortran compiler
9187 tmp_addflag=' -nofor_main' ;;
9188 esac
9189 case `$CC -V 2>&1 | sed 5q` in
9190 *Sun\ C*) # Sun C 5.9
9191 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9192 tmp_sharedflag='-G' ;;
9193 *Sun\ F*) # Sun Fortran 8.3
9194 tmp_sharedflag='-G' ;;
9195 *)
9196 tmp_sharedflag='-shared' ;;
9197 esac
9198 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199
9200 if test $supports_anon_versioning = yes; then
9201 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9203 $echo "local: *; };" >> $output_objdir/$libname.ver~
9204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9205 fi
9206 link_all_deplibs=no
9207 else
9208 ld_shlibs=no
9209 fi
9210 ;;
9211
9212 netbsd* | netbsdelf*-gnu)
9213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9214 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9215 wlarc=
9216 else
9217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9219 fi
9220 ;;
9221
9222 solaris*)
9223 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9224 ld_shlibs=no
9225 cat <<EOF 1>&2
9226
9227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9228 *** create shared libraries on Solaris systems. Therefore, libtool
9229 *** is disabling shared libraries support. We urge you to upgrade GNU
9230 *** binutils to release 2.9.1 or newer. Another option is to modify
9231 *** your PATH or compiler configuration so that the native linker is
9232 *** used, and then restart.
9233
9234 EOF
9235 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9238 else
9239 ld_shlibs=no
9240 fi
9241 ;;
9242
9243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9244 case `$LD -v 2>&1` in
9245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9246 ld_shlibs=no
9247 cat <<_LT_EOF 1>&2
9248
9249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9250 *** reliably create shared libraries on SCO systems. Therefore, libtool
9251 *** is disabling shared libraries support. We urge you to upgrade GNU
9252 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9253 *** your PATH or compiler configuration so that the native linker is
9254 *** used, and then restart.
9255
9256 _LT_EOF
9257 ;;
9258 *)
9259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9260 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9263 else
9264 ld_shlibs=no
9265 fi
9266 ;;
9267 esac
9268 ;;
9269
9270 sunos4*)
9271 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9272 wlarc=
9273 hardcode_direct=yes
9274 hardcode_shlibpath_var=no
9275 ;;
9276
9277 *)
9278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281 else
9282 ld_shlibs=no
9283 fi
9284 ;;
9285 esac
9286
9287 if test "$ld_shlibs" = no; then
9288 runpath_var=
9289 hardcode_libdir_flag_spec=
9290 export_dynamic_flag_spec=
9291 whole_archive_flag_spec=
9292 fi
9293 else
9294 # PORTME fill in a description of your system's linker (not GNU ld)
9295 case $host_os in
9296 aix3*)
9297 allow_undefined_flag=unsupported
9298 always_export_symbols=yes
9299 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'
9300 # Note: this linker hardcodes the directories in LIBPATH if there
9301 # are no directories specified by -L.
9302 hardcode_minus_L=yes
9303 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9304 # Neither direct hardcoding nor static linking is supported with a
9305 # broken collect2.
9306 hardcode_direct=unsupported
9307 fi
9308 ;;
9309
9310 aix4* | aix5*)
9311 if test "$host_cpu" = ia64; then
9312 # On IA64, the linker does run time linking by default, so we don't
9313 # have to do anything special.
9314 aix_use_runtimelinking=no
9315 exp_sym_flag='-Bexport'
9316 no_entry_flag=""
9317 else
9318 # If we're using GNU nm, then we don't want the "-C" option.
9319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9320 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9321 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'
9322 else
9323 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'
9324 fi
9325 aix_use_runtimelinking=no
9326
9327 # Test if we are trying to use run time linking or normal
9328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9329 # need to do runtime linking.
9330 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9331 for ld_flag in $LDFLAGS; do
9332 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9333 aix_use_runtimelinking=yes
9334 break
9335 fi
9336 done
9337 ;;
9338 esac
9339
9340 exp_sym_flag='-bexport'
9341 no_entry_flag='-bnoentry'
9342 fi
9343
9344 # When large executables or shared objects are built, AIX ld can
9345 # have problems creating the table of contents. If linking a library
9346 # or program results in "error TOC overflow" add -mminimal-toc to
9347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9349
9350 archive_cmds=''
9351 hardcode_direct=yes
9352 hardcode_libdir_separator=':'
9353 link_all_deplibs=yes
9354
9355 if test "$GCC" = yes; then
9356 case $host_os in aix4.[012]|aix4.[012].*)
9357 # We only want to do this on AIX 4.2 and lower, the check
9358 # below for broken collect2 doesn't work under 4.3+
9359 collect2name=`${CC} -print-prog-name=collect2`
9360 if test -f "$collect2name" && \
9361 strings "$collect2name" | grep resolve_lib_name >/dev/null
9362 then
9363 # We have reworked collect2
9364 :
9365 else
9366 # We have old collect2
9367 hardcode_direct=unsupported
9368 # It fails to find uninstalled libraries when the uninstalled
9369 # path is not listed in the libpath. Setting hardcode_minus_L
9370 # to unsupported forces relinking
9371 hardcode_minus_L=yes
9372 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_libdir_separator=
9374 fi
9375 ;;
9376 esac
9377 shared_flag='-shared'
9378 if test "$aix_use_runtimelinking" = yes; then
9379 shared_flag="$shared_flag "'${wl}-G'
9380 fi
9381 else
9382 # not using gcc
9383 if test "$host_cpu" = ia64; then
9384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9385 # chokes on -Wl,-G. The following line is correct:
9386 shared_flag='-G'
9387 else
9388 if test "$aix_use_runtimelinking" = yes; then
9389 shared_flag='${wl}-G'
9390 else
9391 shared_flag='${wl}-bM:SRE'
9392 fi
9393 fi
9394 fi
9395
9396 # It seems that -bexpall does not export symbols beginning with
9397 # underscore (_), so it is better to generate a list of symbols to export.
9398 always_export_symbols=yes
9399 if test "$aix_use_runtimelinking" = yes; then
9400 # Warning - without using the other runtime loading flags (-brtl),
9401 # -berok will link without error, but may produce a broken library.
9402 allow_undefined_flag='-berok'
9403 # Determine the default libpath from the value encoded in an empty executable.
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h. */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410
9411 int
9412 main ()
9413 {
9414
9415 ;
9416 return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9421 case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest$ac_exeext &&
9436 $as_test_x conftest$ac_exeext; then
9437
9438 lt_aix_libpath_sed='
9439 /Import File Strings/,/^$/ {
9440 /^0/ {
9441 s/^0 *\(.*\)$/\1/
9442 p
9443 }
9444 }'
9445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9446 # Check for a 64-bit object if we didn't find anything.
9447 if test -z "$aix_libpath"; then
9448 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9449 fi
9450 else
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9453
9454
9455 fi
9456
9457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9458 conftest$ac_exeext conftest.$ac_ext
9459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9460
9461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9462 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9463 else
9464 if test "$host_cpu" = ia64; then
9465 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9466 allow_undefined_flag="-z nodefs"
9467 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9468 else
9469 # Determine the default libpath from the value encoded in an empty executable.
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h. */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9476
9477 int
9478 main ()
9479 {
9480
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9487 case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9490 esac
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } && {
9499 test -z "$ac_c_werror_flag" ||
9500 test ! -s conftest.err
9501 } && test -s conftest$ac_exeext &&
9502 $as_test_x conftest$ac_exeext; then
9503
9504 lt_aix_libpath_sed='
9505 /Import File Strings/,/^$/ {
9506 /^0/ {
9507 s/^0 *\(.*\)$/\1/
9508 p
9509 }
9510 }'
9511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512 # Check for a 64-bit object if we didn't find anything.
9513 if test -z "$aix_libpath"; then
9514 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515 fi
9516 else
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9519
9520
9521 fi
9522
9523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9524 conftest$ac_exeext conftest.$ac_ext
9525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9526
9527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9528 # Warning - without using the other run time loading flags,
9529 # -berok will link without error, but may produce a broken library.
9530 no_undefined_flag=' ${wl}-bernotok'
9531 allow_undefined_flag=' ${wl}-berok'
9532 # Exported symbols can be pulled into shared objects from archives
9533 whole_archive_flag_spec='$convenience'
9534 archive_cmds_need_lc=yes
9535 # This is similar to how AIX traditionally builds its shared libraries.
9536 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9537 fi
9538 fi
9539 ;;
9540
9541 amigaos*)
9542 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)'
9543 hardcode_libdir_flag_spec='-L$libdir'
9544 hardcode_minus_L=yes
9545 # see comment about different semantics on the GNU ld section
9546 ld_shlibs=no
9547 ;;
9548
9549 bsdi[45]*)
9550 export_dynamic_flag_spec=-rdynamic
9551 ;;
9552
9553 cygwin* | mingw* | pw32*)
9554 # When not using gcc, we currently assume that we are using
9555 # Microsoft Visual C++.
9556 # hardcode_libdir_flag_spec is actually meaningless, as there is
9557 # no search path for DLLs.
9558 hardcode_libdir_flag_spec=' '
9559 allow_undefined_flag=unsupported
9560 # Tell ltmain to make .lib files, not .a files.
9561 libext=lib
9562 # Tell ltmain to make .dll files, not .so files.
9563 shrext_cmds=".dll"
9564 # FIXME: Setting linknames here is a bad hack.
9565 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9566 # The linker will automatically build a .lib file if we build a DLL.
9567 old_archive_From_new_cmds='true'
9568 # FIXME: Should let the user specify the lib program.
9569 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9570 fix_srcfile_path='`cygpath -w "$srcfile"`'
9571 enable_shared_with_static_runtimes=yes
9572 ;;
9573
9574 darwin* | rhapsody*)
9575 case $host_os in
9576 rhapsody* | darwin1.[012])
9577 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9578 ;;
9579 *) # Darwin 1.3 on
9580 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9581 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9582 else
9583 case ${MACOSX_DEPLOYMENT_TARGET} in
9584 10.[012])
9585 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9586 ;;
9587 10.*)
9588 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9589 ;;
9590 esac
9591 fi
9592 ;;
9593 esac
9594 archive_cmds_need_lc=no
9595 hardcode_direct=no
9596 hardcode_automatic=yes
9597 hardcode_shlibpath_var=unsupported
9598 whole_archive_flag_spec=''
9599 link_all_deplibs=yes
9600 if test "$GCC" = yes ; then
9601 output_verbose_link_cmd='echo'
9602 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9603 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9605 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}'
9606 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}'
9607 else
9608 case $cc_basename in
9609 xlc*)
9610 output_verbose_link_cmd='echo'
9611 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9612 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9614 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9615 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}'
9616 ;;
9617 *)
9618 ld_shlibs=no
9619 ;;
9620 esac
9621 fi
9622 ;;
9623
9624 dgux*)
9625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626 hardcode_libdir_flag_spec='-L$libdir'
9627 hardcode_shlibpath_var=no
9628 ;;
9629
9630 freebsd1*)
9631 ld_shlibs=no
9632 ;;
9633
9634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9635 # support. Future versions do this automatically, but an explicit c++rt0.o
9636 # does not break anything, and helps significantly (at the cost of a little
9637 # extra space).
9638 freebsd2.2*)
9639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9640 hardcode_libdir_flag_spec='-R$libdir'
9641 hardcode_direct=yes
9642 hardcode_shlibpath_var=no
9643 ;;
9644
9645 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9646 freebsd2*)
9647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_direct=yes
9649 hardcode_minus_L=yes
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9654 freebsd* | dragonfly*)
9655 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_direct=yes
9658 hardcode_shlibpath_var=no
9659 ;;
9660
9661 hpux9*)
9662 if test "$GCC" = yes; then
9663 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'
9664 else
9665 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'
9666 fi
9667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9668 hardcode_libdir_separator=:
9669 hardcode_direct=yes
9670
9671 # hardcode_minus_L: Not really in the search PATH,
9672 # but as the default location of the library.
9673 hardcode_minus_L=yes
9674 export_dynamic_flag_spec='${wl}-E'
9675 ;;
9676
9677 hpux10*)
9678 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9682 fi
9683 if test "$with_gnu_ld" = no; then
9684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9685 hardcode_libdir_separator=:
9686
9687 hardcode_direct=yes
9688 export_dynamic_flag_spec='${wl}-E'
9689
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9693 fi
9694 ;;
9695
9696 hpux11*)
9697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9698 case $host_cpu in
9699 hppa*64*)
9700 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 ;;
9702 ia64*)
9703 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9704 ;;
9705 *)
9706 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9707 ;;
9708 esac
9709 else
9710 case $host_cpu in
9711 hppa*64*)
9712 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 ;;
9714 ia64*)
9715 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9716 ;;
9717 *)
9718 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9719 ;;
9720 esac
9721 fi
9722 if test "$with_gnu_ld" = no; then
9723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9724 hardcode_libdir_separator=:
9725
9726 case $host_cpu in
9727 hppa*64*|ia64*)
9728 hardcode_libdir_flag_spec_ld='+b $libdir'
9729 hardcode_direct=no
9730 hardcode_shlibpath_var=no
9731 ;;
9732 *)
9733 hardcode_direct=yes
9734 export_dynamic_flag_spec='${wl}-E'
9735
9736 # hardcode_minus_L: Not really in the search PATH,
9737 # but as the default location of the library.
9738 hardcode_minus_L=yes
9739 ;;
9740 esac
9741 fi
9742 ;;
9743
9744 irix5* | irix6* | nonstopux*)
9745 if test "$GCC" = yes; then
9746 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'
9747 else
9748 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'
9749 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9750 fi
9751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9752 hardcode_libdir_separator=:
9753 link_all_deplibs=yes
9754 ;;
9755
9756 netbsd* | netbsdelf*-gnu)
9757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9759 else
9760 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9761 fi
9762 hardcode_libdir_flag_spec='-R$libdir'
9763 hardcode_direct=yes
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 newsos6)
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_direct=yes
9770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9771 hardcode_libdir_separator=:
9772 hardcode_shlibpath_var=no
9773 ;;
9774
9775 openbsd*)
9776 if test -f /usr/libexec/ld.so; then
9777 hardcode_direct=yes
9778 hardcode_shlibpath_var=no
9779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9782 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9783 export_dynamic_flag_spec='${wl}-E'
9784 else
9785 case $host_os in
9786 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9788 hardcode_libdir_flag_spec='-R$libdir'
9789 ;;
9790 *)
9791 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9793 ;;
9794 esac
9795 fi
9796 else
9797 ld_shlibs=no
9798 fi
9799 ;;
9800
9801 os2*)
9802 hardcode_libdir_flag_spec='-L$libdir'
9803 hardcode_minus_L=yes
9804 allow_undefined_flag=unsupported
9805 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'
9806 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9807 ;;
9808
9809 osf3*)
9810 if test "$GCC" = yes; then
9811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9812 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'
9813 else
9814 allow_undefined_flag=' -expect_unresolved \*'
9815 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'
9816 fi
9817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818 hardcode_libdir_separator=:
9819 ;;
9820
9821 osf4* | osf5*) # as osf3* with the addition of -msym flag
9822 if test "$GCC" = yes; then
9823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9824 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'
9825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9826 else
9827 allow_undefined_flag=' -expect_unresolved \*'
9828 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'
9829 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9830 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9831
9832 # Both c and cxx compiler support -rpath directly
9833 hardcode_libdir_flag_spec='-rpath $libdir'
9834 fi
9835 hardcode_libdir_separator=:
9836 ;;
9837
9838 solaris*)
9839 no_undefined_flag=' -z text'
9840 if test "$GCC" = yes; then
9841 wlarc='${wl}'
9842 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9844 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9845 else
9846 wlarc=''
9847 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9850 fi
9851 hardcode_libdir_flag_spec='-R$libdir'
9852 hardcode_shlibpath_var=no
9853 case $host_os in
9854 solaris2.[0-5] | solaris2.[0-5].*) ;;
9855 *)
9856 # The compiler driver will combine and reorder linker options,
9857 # but understands `-z linker_flag'. GCC discards it without `$wl',
9858 # but is careful enough not to reorder.
9859 # Supported since Solaris 2.6 (maybe 2.5.1?)
9860 if test "$GCC" = yes; then
9861 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9862 else
9863 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9864 fi
9865 ;;
9866 esac
9867 link_all_deplibs=yes
9868 ;;
9869
9870 sunos4*)
9871 if test "x$host_vendor" = xsequent; then
9872 # Use $CC to link under sequent, because it throws in some extra .o
9873 # files that make .init and .fini sections work.
9874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9875 else
9876 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9877 fi
9878 hardcode_libdir_flag_spec='-L$libdir'
9879 hardcode_direct=yes
9880 hardcode_minus_L=yes
9881 hardcode_shlibpath_var=no
9882 ;;
9883
9884 sysv4)
9885 case $host_vendor in
9886 sni)
9887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9888 hardcode_direct=yes # is this really true???
9889 ;;
9890 siemens)
9891 ## LD is ld it makes a PLAMLIB
9892 ## CC just makes a GrossModule.
9893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9894 reload_cmds='$CC -r -o $output$reload_objs'
9895 hardcode_direct=no
9896 ;;
9897 motorola)
9898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9899 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9900 ;;
9901 esac
9902 runpath_var='LD_RUN_PATH'
9903 hardcode_shlibpath_var=no
9904 ;;
9905
9906 sysv4.3*)
9907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_shlibpath_var=no
9909 export_dynamic_flag_spec='-Bexport'
9910 ;;
9911
9912 sysv4*MP*)
9913 if test -d /usr/nec; then
9914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915 hardcode_shlibpath_var=no
9916 runpath_var=LD_RUN_PATH
9917 hardcode_runpath_var=yes
9918 ld_shlibs=yes
9919 fi
9920 ;;
9921
9922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9923 no_undefined_flag='${wl}-z,text'
9924 archive_cmds_need_lc=no
9925 hardcode_shlibpath_var=no
9926 runpath_var='LD_RUN_PATH'
9927
9928 if test "$GCC" = yes; then
9929 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9931 else
9932 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 fi
9935 ;;
9936
9937 sysv5* | sco3.2v5* | sco5v6*)
9938 # Note: We can NOT use -z defs as we might desire, because we do not
9939 # link with -lc, and that would cause any symbols used from libc to
9940 # always be unresolved, which means just about no library would
9941 # ever link correctly. If we're not using GNU ld we use -z text
9942 # though, which does catch some bad symbols but isn't as heavy-handed
9943 # as -z defs.
9944 no_undefined_flag='${wl}-z,text'
9945 allow_undefined_flag='${wl}-z,nodefs'
9946 archive_cmds_need_lc=no
9947 hardcode_shlibpath_var=no
9948 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9949 hardcode_libdir_separator=':'
9950 link_all_deplibs=yes
9951 export_dynamic_flag_spec='${wl}-Bexport'
9952 runpath_var='LD_RUN_PATH'
9953
9954 if test "$GCC" = yes; then
9955 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9957 else
9958 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9960 fi
9961 ;;
9962
9963 uts4*)
9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_libdir_flag_spec='-L$libdir'
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 *)
9970 ld_shlibs=no
9971 ;;
9972 esac
9973 fi
9974
9975 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9976 echo "${ECHO_T}$ld_shlibs" >&6; }
9977 test "$ld_shlibs" = no && can_build_shared=no
9978
9979 #
9980 # Do we need to explicitly link libc?
9981 #
9982 case "x$archive_cmds_need_lc" in
9983 x|xyes)
9984 # Assume -lc should be added
9985 archive_cmds_need_lc=yes
9986
9987 if test "$enable_shared" = yes && test "$GCC" = yes; then
9988 case $archive_cmds in
9989 *'~'*)
9990 # FIXME: we may have to deal with multi-command sequences.
9991 ;;
9992 '$CC '*)
9993 # Test whether the compiler implicitly links with -lc since on some
9994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9995 # to ld, don't add -lc before -lgcc.
9996 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9997 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9998 $rm conftest*
9999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10000
10001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002 (eval $ac_compile) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } 2>conftest.err; then
10006 soname=conftest
10007 lib=conftest
10008 libobjs=conftest.$ac_objext
10009 deplibs=
10010 wl=$lt_prog_compiler_wl
10011 pic_flag=$lt_prog_compiler_pic
10012 compiler_flags=-v
10013 linker_flags=-v
10014 verstring=
10015 output_objdir=.
10016 libname=conftest
10017 lt_save_allow_undefined_flag=$allow_undefined_flag
10018 allow_undefined_flag=
10019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10020 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }
10024 then
10025 archive_cmds_need_lc=no
10026 else
10027 archive_cmds_need_lc=yes
10028 fi
10029 allow_undefined_flag=$lt_save_allow_undefined_flag
10030 else
10031 cat conftest.err 1>&5
10032 fi
10033 $rm conftest*
10034 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10035 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10036 ;;
10037 esac
10038 fi
10039 ;;
10040 esac
10041
10042 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10043 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10044 library_names_spec=
10045 libname_spec='lib$name'
10046 soname_spec=
10047 shrext_cmds=".so"
10048 postinstall_cmds=
10049 postuninstall_cmds=
10050 finish_cmds=
10051 finish_eval=
10052 shlibpath_var=
10053 shlibpath_overrides_runpath=unknown
10054 version_type=none
10055 dynamic_linker="$host_os ld.so"
10056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10057
10058 if test "$GCC" = yes; then
10059 case $host_os in
10060 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10061 *) lt_awk_arg="/^libraries:/" ;;
10062 esac
10063 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10064 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10065 # if the path contains ";" then we assume it to be the separator
10066 # otherwise default to the standard path separator (i.e. ":") - it is
10067 # assumed that no part of a normal pathname contains ";" but that should
10068 # okay in the real world where ";" in dirpaths is itself problematic.
10069 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10070 else
10071 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10072 fi
10073 # Ok, now we have the path, separated by spaces, we can step through it
10074 # and add multilib dir if necessary.
10075 lt_tmp_lt_search_path_spec=
10076 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10077 for lt_sys_path in $lt_search_path_spec; do
10078 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10079 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10080 else
10081 test -d "$lt_sys_path" && \
10082 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10083 fi
10084 done
10085 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10086 BEGIN {RS=" "; FS="/|\n";} {
10087 lt_foo="";
10088 lt_count=0;
10089 for (lt_i = NF; lt_i > 0; lt_i--) {
10090 if ($lt_i != "" && $lt_i != ".") {
10091 if ($lt_i == "..") {
10092 lt_count++;
10093 } else {
10094 if (lt_count == 0) {
10095 lt_foo="/" $lt_i lt_foo;
10096 } else {
10097 lt_count--;
10098 }
10099 }
10100 }
10101 }
10102 if (lt_foo != "") { lt_freq[lt_foo]++; }
10103 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10104 }'`
10105 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10106 else
10107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10108 fi
10109 need_lib_prefix=unknown
10110 hardcode_into_libs=no
10111
10112 # when you set need_version to no, make sure it does not cause -set_version
10113 # flags to be left without arguments
10114 need_version=unknown
10115
10116 case $host_os in
10117 aix3*)
10118 version_type=linux
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10120 shlibpath_var=LIBPATH
10121
10122 # AIX 3 has no versioning support, so we append a major version to the name.
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 ;;
10125
10126 aix4* | aix5*)
10127 version_type=linux
10128 need_lib_prefix=no
10129 need_version=no
10130 hardcode_into_libs=yes
10131 if test "$host_cpu" = ia64; then
10132 # AIX 5 supports IA64
10133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 else
10136 # With GCC up to 2.95.x, collect2 would create an import file
10137 # for dependence libraries. The import file would start with
10138 # the line `#! .'. This would cause the generated library to
10139 # depend on `.', always an invalid library. This was fixed in
10140 # development snapshots of GCC prior to 3.0.
10141 case $host_os in
10142 aix4 | aix4.[01] | aix4.[01].*)
10143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10144 echo ' yes '
10145 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10146 :
10147 else
10148 can_build_shared=no
10149 fi
10150 ;;
10151 esac
10152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10153 # soname into executable. Probably we can add versioning support to
10154 # collect2, so additional links can be useful in future.
10155 if test "$aix_use_runtimelinking" = yes; then
10156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10157 # instead of lib<name>.a to let people know that these are not
10158 # typical AIX shared libraries.
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 else
10161 # We preserve .a as extension for shared libraries through AIX4.2
10162 # and later when we are not doing run time linking.
10163 library_names_spec='${libname}${release}.a $libname.a'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 fi
10166 shlibpath_var=LIBPATH
10167 fi
10168 ;;
10169
10170 amigaos*)
10171 library_names_spec='$libname.ixlibrary $libname.a'
10172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10173 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'
10174 ;;
10175
10176 beos*)
10177 library_names_spec='${libname}${shared_ext}'
10178 dynamic_linker="$host_os ld.so"
10179 shlibpath_var=LIBRARY_PATH
10180 ;;
10181
10182 bsdi[45]*)
10183 version_type=linux
10184 need_version=no
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10188 shlibpath_var=LD_LIBRARY_PATH
10189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10191 # the default ld.so.conf also contains /usr/contrib/lib and
10192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10193 # libtool to hard-code these into programs
10194 ;;
10195
10196 cygwin* | mingw* | pw32*)
10197 version_type=windows
10198 shrext_cmds=".dll"
10199 need_version=no
10200 need_lib_prefix=no
10201
10202 case $GCC,$host_os in
10203 yes,cygwin* | yes,mingw* | yes,pw32*)
10204 library_names_spec='$libname.dll.a'
10205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10206 postinstall_cmds='base_file=`basename \${file}`~
10207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10208 dldir=$destdir/`dirname \$dlpath`~
10209 test -d \$dldir || mkdir -p \$dldir~
10210 $install_prog $dir/$dlname \$dldir/$dlname~
10211 chmod a+x \$dldir/$dlname'
10212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10213 dlpath=$dir/\$dldll~
10214 $rm \$dlpath'
10215 shlibpath_overrides_runpath=yes
10216
10217 case $host_os in
10218 cygwin*)
10219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10221 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10222 ;;
10223 mingw*)
10224 # MinGW DLLs use traditional 'lib' prefix
10225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10228 # It is most probably a Windows format PATH printed by
10229 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10230 # path with ; separators, and with drive letters. We can handle the
10231 # drive letters (cygwin fileutils understands them), so leave them,
10232 # especially as we might pass files found there to a mingw objdump,
10233 # which wouldn't understand a cygwinified path. Ahh.
10234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10235 else
10236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10237 fi
10238 ;;
10239 pw32*)
10240 # pw32 DLLs use 'pw' prefix rather than 'lib'
10241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242 ;;
10243 esac
10244 ;;
10245
10246 *)
10247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10248 ;;
10249 esac
10250 dynamic_linker='Win32 ld.exe'
10251 # FIXME: first we should search . and the directory the executable is in
10252 shlibpath_var=PATH
10253 ;;
10254
10255 darwin* | rhapsody*)
10256 dynamic_linker="$host_os dyld"
10257 version_type=darwin
10258 need_lib_prefix=no
10259 need_version=no
10260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10261 soname_spec='${libname}${release}${major}$shared_ext'
10262 shlibpath_overrides_runpath=yes
10263 shlibpath_var=DYLD_LIBRARY_PATH
10264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10265
10266 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10268 ;;
10269
10270 dgux*)
10271 version_type=linux
10272 need_lib_prefix=no
10273 need_version=no
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 ;;
10278
10279 freebsd1*)
10280 dynamic_linker=no
10281 ;;
10282
10283 freebsd* | dragonfly*)
10284 # DragonFly does not have aout. When/if they implement a new
10285 # versioning mechanism, adjust this.
10286 if test -x /usr/bin/objformat; then
10287 objformat=`/usr/bin/objformat`
10288 else
10289 case $host_os in
10290 freebsd[123]*) objformat=aout ;;
10291 *) objformat=elf ;;
10292 esac
10293 fi
10294 version_type=freebsd-$objformat
10295 case $version_type in
10296 freebsd-elf*)
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10298 need_version=no
10299 need_lib_prefix=no
10300 ;;
10301 freebsd-*)
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10303 need_version=yes
10304 ;;
10305 esac
10306 shlibpath_var=LD_LIBRARY_PATH
10307 case $host_os in
10308 freebsd2*)
10309 shlibpath_overrides_runpath=yes
10310 ;;
10311 freebsd3.[01]* | freebsdelf3.[01]*)
10312 shlibpath_overrides_runpath=yes
10313 hardcode_into_libs=yes
10314 ;;
10315 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10316 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10317 shlibpath_overrides_runpath=no
10318 hardcode_into_libs=yes
10319 ;;
10320 *) # from 4.6 on, and DragonFly
10321 shlibpath_overrides_runpath=yes
10322 hardcode_into_libs=yes
10323 ;;
10324 esac
10325 ;;
10326
10327 gnu*)
10328 version_type=linux
10329 need_lib_prefix=no
10330 need_version=no
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 hardcode_into_libs=yes
10335 ;;
10336
10337 hpux9* | hpux10* | hpux11*)
10338 # Give a soname corresponding to the major version so that dld.sl refuses to
10339 # link against other versions.
10340 version_type=sunos
10341 need_lib_prefix=no
10342 need_version=no
10343 case $host_cpu in
10344 ia64*)
10345 shrext_cmds='.so'
10346 hardcode_into_libs=yes
10347 dynamic_linker="$host_os dld.so"
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 if test "X$HPUX_IA64_MODE" = X32; then
10353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10354 else
10355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10356 fi
10357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10358 ;;
10359 hppa*64*)
10360 shrext_cmds='.sl'
10361 hardcode_into_libs=yes
10362 dynamic_linker="$host_os dld.sl"
10363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10369 ;;
10370 *)
10371 shrext_cmds='.sl'
10372 dynamic_linker="$host_os dld.sl"
10373 shlibpath_var=SHLIB_PATH
10374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 ;;
10378 esac
10379 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10380 postinstall_cmds='chmod 555 $lib'
10381 ;;
10382
10383 interix[3-9]*)
10384 version_type=linux
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 shlibpath_overrides_runpath=no
10392 hardcode_into_libs=yes
10393 ;;
10394
10395 irix5* | irix6* | nonstopux*)
10396 case $host_os in
10397 nonstopux*) version_type=nonstopux ;;
10398 *)
10399 if test "$lt_cv_prog_gnu_ld" = yes; then
10400 version_type=linux
10401 else
10402 version_type=irix
10403 fi ;;
10404 esac
10405 need_lib_prefix=no
10406 need_version=no
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10409 case $host_os in
10410 irix5* | nonstopux*)
10411 libsuff= shlibsuff=
10412 ;;
10413 *)
10414 case $LD in # libtool.m4 will add one of these switches to LD
10415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10416 libsuff= shlibsuff= libmagic=32-bit;;
10417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10418 libsuff=32 shlibsuff=N32 libmagic=N32;;
10419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10421 *) libsuff= shlibsuff= libmagic=never-match;;
10422 esac
10423 ;;
10424 esac
10425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10426 shlibpath_overrides_runpath=no
10427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10429 hardcode_into_libs=yes
10430 ;;
10431
10432 # No shared lib support for Linux oldld, aout, or coff.
10433 linux*oldld* | linux*aout* | linux*coff*)
10434 dynamic_linker=no
10435 ;;
10436
10437 # This must be Linux ELF.
10438 linux* | k*bsd*-gnu)
10439 version_type=linux
10440 need_lib_prefix=no
10441 need_version=no
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 shlibpath_overrides_runpath=no
10447 # This implies no fast_install, which is unacceptable.
10448 # Some rework will be needed to allow for fast_install
10449 # before this can be enabled.
10450 hardcode_into_libs=yes
10451
10452 # Append ld.so.conf contents to the search path
10453 if test -f /etc/ld.so.conf; then
10454 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10456 fi
10457
10458 # We used to test for /lib/ld.so.1 and disable shared libraries on
10459 # powerpc, because MkLinux only supported shared libraries with the
10460 # GNU dynamic linker. Since this was broken with cross compilers,
10461 # most powerpc-linux boxes support dynamic linking these days and
10462 # people can always --disable-shared, the test was removed, and we
10463 # assume the GNU/Linux dynamic linker is in use.
10464 dynamic_linker='GNU/Linux ld.so'
10465 ;;
10466
10467 netbsdelf*-gnu)
10468 version_type=linux
10469 need_lib_prefix=no
10470 need_version=no
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10472 soname_spec='${libname}${release}${shared_ext}$major'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=no
10475 hardcode_into_libs=yes
10476 dynamic_linker='NetBSD ld.elf_so'
10477 ;;
10478
10479 netbsd*)
10480 version_type=sunos
10481 need_lib_prefix=no
10482 need_version=no
10483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10486 dynamic_linker='NetBSD (a.out) ld.so'
10487 else
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 dynamic_linker='NetBSD ld.elf_so'
10491 fi
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=yes
10494 hardcode_into_libs=yes
10495 ;;
10496
10497 newsos6)
10498 version_type=linux
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=yes
10502 ;;
10503
10504 nto-qnx*)
10505 version_type=linux
10506 need_lib_prefix=no
10507 need_version=no
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=yes
10512 ;;
10513
10514 openbsd*)
10515 version_type=sunos
10516 sys_lib_dlsearch_path_spec="/usr/lib"
10517 need_lib_prefix=no
10518 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10519 case $host_os in
10520 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10521 *) need_version=no ;;
10522 esac
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10527 case $host_os in
10528 openbsd2.[89] | openbsd2.[89].*)
10529 shlibpath_overrides_runpath=no
10530 ;;
10531 *)
10532 shlibpath_overrides_runpath=yes
10533 ;;
10534 esac
10535 else
10536 shlibpath_overrides_runpath=yes
10537 fi
10538 ;;
10539
10540 os2*)
10541 libname_spec='$name'
10542 shrext_cmds=".dll"
10543 need_lib_prefix=no
10544 library_names_spec='$libname${shared_ext} $libname.a'
10545 dynamic_linker='OS/2 ld.exe'
10546 shlibpath_var=LIBPATH
10547 ;;
10548
10549 osf3* | osf4* | osf5*)
10550 version_type=osf
10551 need_lib_prefix=no
10552 need_version=no
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10557 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10558 ;;
10559
10560 rdos*)
10561 dynamic_linker=no
10562 ;;
10563
10564 solaris*)
10565 version_type=linux
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=yes
10572 hardcode_into_libs=yes
10573 # ldd complains unless libraries are executable
10574 postinstall_cmds='chmod +x $lib'
10575 ;;
10576
10577 sunos4*)
10578 version_type=sunos
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10580 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=yes
10583 if test "$with_gnu_ld" = yes; then
10584 need_lib_prefix=no
10585 fi
10586 need_version=yes
10587 ;;
10588
10589 sysv4 | sysv4.3*)
10590 version_type=linux
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 case $host_vendor in
10595 sni)
10596 shlibpath_overrides_runpath=no
10597 need_lib_prefix=no
10598 export_dynamic_flag_spec='${wl}-Blargedynsym'
10599 runpath_var=LD_RUN_PATH
10600 ;;
10601 siemens)
10602 need_lib_prefix=no
10603 ;;
10604 motorola)
10605 need_lib_prefix=no
10606 need_version=no
10607 shlibpath_overrides_runpath=no
10608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10609 ;;
10610 esac
10611 ;;
10612
10613 sysv4*MP*)
10614 if test -d /usr/nec ;then
10615 version_type=linux
10616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10617 soname_spec='$libname${shared_ext}.$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 fi
10620 ;;
10621
10622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10623 version_type=freebsd-elf
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 hardcode_into_libs=yes
10630 if test "$with_gnu_ld" = yes; then
10631 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10632 shlibpath_overrides_runpath=no
10633 else
10634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10635 shlibpath_overrides_runpath=yes
10636 case $host_os in
10637 sco3.2v5*)
10638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10639 ;;
10640 esac
10641 fi
10642 sys_lib_dlsearch_path_spec='/usr/lib'
10643 ;;
10644
10645 uts4*)
10646 version_type=linux
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 ;;
10651
10652 *)
10653 dynamic_linker=no
10654 ;;
10655 esac
10656 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10657 echo "${ECHO_T}$dynamic_linker" >&6; }
10658 test "$dynamic_linker" = no && can_build_shared=no
10659
10660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10661 if test "$GCC" = yes; then
10662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10663 fi
10664
10665 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10666 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10667 hardcode_action=
10668 if test -n "$hardcode_libdir_flag_spec" || \
10669 test -n "$runpath_var" || \
10670 test "X$hardcode_automatic" = "Xyes" ; then
10671
10672 # We can hardcode non-existant directories.
10673 if test "$hardcode_direct" != no &&
10674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10675 # have to relink, otherwise we might link with an installed library
10676 # when we should be linking with a yet-to-be-installed one
10677 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10678 test "$hardcode_minus_L" != no; then
10679 # Linking always hardcodes the temporary library directory.
10680 hardcode_action=relink
10681 else
10682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10683 hardcode_action=immediate
10684 fi
10685 else
10686 # We cannot hardcode anything, or else we can only hardcode existing
10687 # directories.
10688 hardcode_action=unsupported
10689 fi
10690 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10691 echo "${ECHO_T}$hardcode_action" >&6; }
10692
10693 if test "$hardcode_action" = relink; then
10694 # Fast installation is not supported
10695 enable_fast_install=no
10696 elif test "$shlibpath_overrides_runpath" = yes ||
10697 test "$enable_shared" = no; then
10698 # Fast installation is not necessary
10699 enable_fast_install=needless
10700 fi
10701
10702 striplib=
10703 old_striplib=
10704 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10705 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10706 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10707 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10708 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10709 { echo "$as_me:$LINENO: result: yes" >&5
10710 echo "${ECHO_T}yes" >&6; }
10711 else
10712 # FIXME - insert some real tests, host_os isn't really good enough
10713 case $host_os in
10714 darwin*)
10715 if test -n "$STRIP" ; then
10716 striplib="$STRIP -x"
10717 old_striplib="$STRIP -S"
10718 { echo "$as_me:$LINENO: result: yes" >&5
10719 echo "${ECHO_T}yes" >&6; }
10720 else
10721 { echo "$as_me:$LINENO: result: no" >&5
10722 echo "${ECHO_T}no" >&6; }
10723 fi
10724 ;;
10725 *)
10726 { echo "$as_me:$LINENO: result: no" >&5
10727 echo "${ECHO_T}no" >&6; }
10728 ;;
10729 esac
10730 fi
10731
10732 if test "x$enable_dlopen" != xyes; then
10733 enable_dlopen=unknown
10734 enable_dlopen_self=unknown
10735 enable_dlopen_self_static=unknown
10736 else
10737 lt_cv_dlopen=no
10738 lt_cv_dlopen_libs=
10739
10740 case $host_os in
10741 beos*)
10742 lt_cv_dlopen="load_add_on"
10743 lt_cv_dlopen_libs=
10744 lt_cv_dlopen_self=yes
10745 ;;
10746
10747 mingw* | pw32*)
10748 lt_cv_dlopen="LoadLibrary"
10749 lt_cv_dlopen_libs=
10750 ;;
10751
10752 cygwin*)
10753 lt_cv_dlopen="dlopen"
10754 lt_cv_dlopen_libs=
10755 ;;
10756
10757 darwin*)
10758 # if libdl is installed we need to link against it
10759 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 ac_check_lib_save_LIBS=$LIBS
10765 LIBS="-ldl $LIBS"
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h. */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772
10773 /* Override any GCC internal prototype to avoid an error.
10774 Use char because int might match the return type of a GCC
10775 builtin and then its argument prototype would still apply. */
10776 #ifdef __cplusplus
10777 extern "C"
10778 #endif
10779 char dlopen ();
10780 int
10781 main ()
10782 {
10783 return dlopen ();
10784 ;
10785 return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (ac_try="$ac_link"
10790 case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest$ac_exeext &&
10805 $as_test_x conftest$ac_exeext; then
10806 ac_cv_lib_dl_dlopen=yes
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811 ac_cv_lib_dl_dlopen=no
10812 fi
10813
10814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10817 fi
10818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10819 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10820 if test $ac_cv_lib_dl_dlopen = yes; then
10821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10822 else
10823
10824 lt_cv_dlopen="dyld"
10825 lt_cv_dlopen_libs=
10826 lt_cv_dlopen_self=yes
10827
10828 fi
10829
10830 ;;
10831
10832 *)
10833 { echo "$as_me:$LINENO: checking for shl_load" >&5
10834 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10835 if test "${ac_cv_func_shl_load+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h. */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10846 #define shl_load innocuous_shl_load
10847
10848 /* System header to define __stub macros and hopefully few prototypes,
10849 which can conflict with char shl_load (); below.
10850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10851 <limits.h> exists even on freestanding compilers. */
10852
10853 #ifdef __STDC__
10854 # include <limits.h>
10855 #else
10856 # include <assert.h>
10857 #endif
10858
10859 #undef shl_load
10860
10861 /* Override any GCC internal prototype to avoid an error.
10862 Use char because int might match the return type of a GCC
10863 builtin and then its argument prototype would still apply. */
10864 #ifdef __cplusplus
10865 extern "C"
10866 #endif
10867 char shl_load ();
10868 /* The GNU C library defines this for functions which it implements
10869 to always fail with ENOSYS. Some functions are actually named
10870 something starting with __ and the normal name is an alias. */
10871 #if defined __stub_shl_load || defined __stub___shl_load
10872 choke me
10873 #endif
10874
10875 int
10876 main ()
10877 {
10878 return shl_load ();
10879 ;
10880 return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (ac_try="$ac_link"
10885 case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_link") 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && {
10897 test -z "$ac_c_werror_flag" ||
10898 test ! -s conftest.err
10899 } && test -s conftest$ac_exeext &&
10900 $as_test_x conftest$ac_exeext; then
10901 ac_cv_func_shl_load=yes
10902 else
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10905
10906 ac_cv_func_shl_load=no
10907 fi
10908
10909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10910 conftest$ac_exeext conftest.$ac_ext
10911 fi
10912 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10913 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10914 if test $ac_cv_func_shl_load = yes; then
10915 lt_cv_dlopen="shl_load"
10916 else
10917 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10918 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922 ac_check_lib_save_LIBS=$LIBS
10923 LIBS="-ldld $LIBS"
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h. */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char shl_load ();
10938 int
10939 main ()
10940 {
10941 return shl_load ();
10942 ;
10943 return 0;
10944 }
10945 _ACEOF
10946 rm -f conftest.$ac_objext conftest$ac_exeext
10947 if { (ac_try="$ac_link"
10948 case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_link") 2>conftest.er1
10954 ac_status=$?
10955 grep -v '^ *+' conftest.er1 >conftest.err
10956 rm -f conftest.er1
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } && {
10960 test -z "$ac_c_werror_flag" ||
10961 test ! -s conftest.err
10962 } && test -s conftest$ac_exeext &&
10963 $as_test_x conftest$ac_exeext; then
10964 ac_cv_lib_dld_shl_load=yes
10965 else
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 ac_cv_lib_dld_shl_load=no
10970 fi
10971
10972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10975 fi
10976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10977 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10978 if test $ac_cv_lib_dld_shl_load = yes; then
10979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10980 else
10981 { echo "$as_me:$LINENO: checking for dlopen" >&5
10982 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10983 if test "${ac_cv_func_dlopen+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 else
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h. */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10994 #define dlopen innocuous_dlopen
10995
10996 /* System header to define __stub macros and hopefully few prototypes,
10997 which can conflict with char dlopen (); below.
10998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10999 <limits.h> exists even on freestanding compilers. */
11000
11001 #ifdef __STDC__
11002 # include <limits.h>
11003 #else
11004 # include <assert.h>
11005 #endif
11006
11007 #undef dlopen
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dlopen ();
11016 /* The GNU C library defines this for functions which it implements
11017 to always fail with ENOSYS. Some functions are actually named
11018 something starting with __ and the normal name is an alias. */
11019 #if defined __stub_dlopen || defined __stub___dlopen
11020 choke me
11021 #endif
11022
11023 int
11024 main ()
11025 {
11026 return dlopen ();
11027 ;
11028 return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (ac_try="$ac_link"
11033 case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_link") 2>conftest.er1
11039 ac_status=$?
11040 grep -v '^ *+' conftest.er1 >conftest.err
11041 rm -f conftest.er1
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && {
11045 test -z "$ac_c_werror_flag" ||
11046 test ! -s conftest.err
11047 } && test -s conftest$ac_exeext &&
11048 $as_test_x conftest$ac_exeext; then
11049 ac_cv_func_dlopen=yes
11050 else
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054 ac_cv_func_dlopen=no
11055 fi
11056
11057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11058 conftest$ac_exeext conftest.$ac_ext
11059 fi
11060 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11061 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11062 if test $ac_cv_func_dlopen = yes; then
11063 lt_cv_dlopen="dlopen"
11064 else
11065 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11066 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070 ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-ldl $LIBS"
11072 cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h. */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078
11079 /* Override any GCC internal prototype to avoid an error.
11080 Use char because int might match the return type of a GCC
11081 builtin and then its argument prototype would still apply. */
11082 #ifdef __cplusplus
11083 extern "C"
11084 #endif
11085 char dlopen ();
11086 int
11087 main ()
11088 {
11089 return dlopen ();
11090 ;
11091 return 0;
11092 }
11093 _ACEOF
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (ac_try="$ac_link"
11096 case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099 esac
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_link") 2>conftest.er1
11102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && {
11108 test -z "$ac_c_werror_flag" ||
11109 test ! -s conftest.err
11110 } && test -s conftest$ac_exeext &&
11111 $as_test_x conftest$ac_exeext; then
11112 ac_cv_lib_dl_dlopen=yes
11113 else
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11116
11117 ac_cv_lib_dl_dlopen=no
11118 fi
11119
11120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11121 conftest$ac_exeext conftest.$ac_ext
11122 LIBS=$ac_check_lib_save_LIBS
11123 fi
11124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11125 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11126 if test $ac_cv_lib_dl_dlopen = yes; then
11127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11128 else
11129 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11130 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11131 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134 ac_check_lib_save_LIBS=$LIBS
11135 LIBS="-lsvld $LIBS"
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h. */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142
11143 /* Override any GCC internal prototype to avoid an error.
11144 Use char because int might match the return type of a GCC
11145 builtin and then its argument prototype would still apply. */
11146 #ifdef __cplusplus
11147 extern "C"
11148 #endif
11149 char dlopen ();
11150 int
11151 main ()
11152 {
11153 return dlopen ();
11154 ;
11155 return 0;
11156 }
11157 _ACEOF
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (ac_try="$ac_link"
11160 case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_link") 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && {
11172 test -z "$ac_c_werror_flag" ||
11173 test ! -s conftest.err
11174 } && test -s conftest$ac_exeext &&
11175 $as_test_x conftest$ac_exeext; then
11176 ac_cv_lib_svld_dlopen=yes
11177 else
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 ac_cv_lib_svld_dlopen=no
11182 fi
11183
11184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11185 conftest$ac_exeext conftest.$ac_ext
11186 LIBS=$ac_check_lib_save_LIBS
11187 fi
11188 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11190 if test $ac_cv_lib_svld_dlopen = yes; then
11191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11192 else
11193 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198 ac_check_lib_save_LIBS=$LIBS
11199 LIBS="-ldld $LIBS"
11200 cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h. */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11206
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 char dld_link ();
11214 int
11215 main ()
11216 {
11217 return dld_link ();
11218 ;
11219 return 0;
11220 }
11221 _ACEOF
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (ac_try="$ac_link"
11224 case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227 esac
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest$ac_exeext &&
11239 $as_test_x conftest$ac_exeext; then
11240 ac_cv_lib_dld_dld_link=yes
11241 else
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_cv_lib_dld_dld_link=no
11246 fi
11247
11248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11253 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11254 if test $ac_cv_lib_dld_dld_link = yes; then
11255 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11256 fi
11257
11258
11259 fi
11260
11261
11262 fi
11263
11264
11265 fi
11266
11267
11268 fi
11269
11270
11271 fi
11272
11273 ;;
11274 esac
11275
11276 if test "x$lt_cv_dlopen" != xno; then
11277 enable_dlopen=yes
11278 else
11279 enable_dlopen=no
11280 fi
11281
11282 case $lt_cv_dlopen in
11283 dlopen)
11284 save_CPPFLAGS="$CPPFLAGS"
11285 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11286
11287 save_LDFLAGS="$LDFLAGS"
11288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11289
11290 save_LIBS="$LIBS"
11291 LIBS="$lt_cv_dlopen_libs $LIBS"
11292
11293 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11294 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11295 if test "${lt_cv_dlopen_self+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 if test "$cross_compiling" = yes; then :
11299 lt_cv_dlopen_self=cross
11300 else
11301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11302 lt_status=$lt_dlunknown
11303 cat > conftest.$ac_ext <<EOF
11304 #line 11305 "configure"
11305 #include "confdefs.h"
11306
11307 #if HAVE_DLFCN_H
11308 #include <dlfcn.h>
11309 #endif
11310
11311 #include <stdio.h>
11312
11313 #ifdef RTLD_GLOBAL
11314 # define LT_DLGLOBAL RTLD_GLOBAL
11315 #else
11316 # ifdef DL_GLOBAL
11317 # define LT_DLGLOBAL DL_GLOBAL
11318 # else
11319 # define LT_DLGLOBAL 0
11320 # endif
11321 #endif
11322
11323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11324 find out it does not work in some platform. */
11325 #ifndef LT_DLLAZY_OR_NOW
11326 # ifdef RTLD_LAZY
11327 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11328 # else
11329 # ifdef DL_LAZY
11330 # define LT_DLLAZY_OR_NOW DL_LAZY
11331 # else
11332 # ifdef RTLD_NOW
11333 # define LT_DLLAZY_OR_NOW RTLD_NOW
11334 # else
11335 # ifdef DL_NOW
11336 # define LT_DLLAZY_OR_NOW DL_NOW
11337 # else
11338 # define LT_DLLAZY_OR_NOW 0
11339 # endif
11340 # endif
11341 # endif
11342 # endif
11343 #endif
11344
11345 #ifdef __cplusplus
11346 extern "C" void exit (int);
11347 #endif
11348
11349 void fnord() { int i=42;}
11350 int main ()
11351 {
11352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11353 int status = $lt_dlunknown;
11354
11355 if (self)
11356 {
11357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11359 /* dlclose (self); */
11360 }
11361 else
11362 puts (dlerror ());
11363
11364 exit (status);
11365 }
11366 EOF
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368 (eval $ac_link) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11372 (./conftest; exit; ) >&5 2>/dev/null
11373 lt_status=$?
11374 case x$lt_status in
11375 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11376 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11377 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11378 esac
11379 else :
11380 # compilation failed
11381 lt_cv_dlopen_self=no
11382 fi
11383 fi
11384 rm -fr conftest*
11385
11386
11387 fi
11388 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11389 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11390
11391 if test "x$lt_cv_dlopen_self" = xyes; then
11392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11393 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11394 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11395 if test "${lt_cv_dlopen_self_static+set}" = set; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398 if test "$cross_compiling" = yes; then :
11399 lt_cv_dlopen_self_static=cross
11400 else
11401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11402 lt_status=$lt_dlunknown
11403 cat > conftest.$ac_ext <<EOF
11404 #line 11405 "configure"
11405 #include "confdefs.h"
11406
11407 #if HAVE_DLFCN_H
11408 #include <dlfcn.h>
11409 #endif
11410
11411 #include <stdio.h>
11412
11413 #ifdef RTLD_GLOBAL
11414 # define LT_DLGLOBAL RTLD_GLOBAL
11415 #else
11416 # ifdef DL_GLOBAL
11417 # define LT_DLGLOBAL DL_GLOBAL
11418 # else
11419 # define LT_DLGLOBAL 0
11420 # endif
11421 #endif
11422
11423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11424 find out it does not work in some platform. */
11425 #ifndef LT_DLLAZY_OR_NOW
11426 # ifdef RTLD_LAZY
11427 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11428 # else
11429 # ifdef DL_LAZY
11430 # define LT_DLLAZY_OR_NOW DL_LAZY
11431 # else
11432 # ifdef RTLD_NOW
11433 # define LT_DLLAZY_OR_NOW RTLD_NOW
11434 # else
11435 # ifdef DL_NOW
11436 # define LT_DLLAZY_OR_NOW DL_NOW
11437 # else
11438 # define LT_DLLAZY_OR_NOW 0
11439 # endif
11440 # endif
11441 # endif
11442 # endif
11443 #endif
11444
11445 #ifdef __cplusplus
11446 extern "C" void exit (int);
11447 #endif
11448
11449 void fnord() { int i=42;}
11450 int main ()
11451 {
11452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11453 int status = $lt_dlunknown;
11454
11455 if (self)
11456 {
11457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11459 /* dlclose (self); */
11460 }
11461 else
11462 puts (dlerror ());
11463
11464 exit (status);
11465 }
11466 EOF
11467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468 (eval $ac_link) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11472 (./conftest; exit; ) >&5 2>/dev/null
11473 lt_status=$?
11474 case x$lt_status in
11475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11477 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11478 esac
11479 else :
11480 # compilation failed
11481 lt_cv_dlopen_self_static=no
11482 fi
11483 fi
11484 rm -fr conftest*
11485
11486
11487 fi
11488 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11489 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11490 fi
11491
11492 CPPFLAGS="$save_CPPFLAGS"
11493 LDFLAGS="$save_LDFLAGS"
11494 LIBS="$save_LIBS"
11495 ;;
11496 esac
11497
11498 case $lt_cv_dlopen_self in
11499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11500 *) enable_dlopen_self=unknown ;;
11501 esac
11502
11503 case $lt_cv_dlopen_self_static in
11504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11505 *) enable_dlopen_self_static=unknown ;;
11506 esac
11507 fi
11508
11509
11510 # Report which library types will actually be built
11511 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11512 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11513 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11514 echo "${ECHO_T}$can_build_shared" >&6; }
11515
11516 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11517 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11518 test "$can_build_shared" = "no" && enable_shared=no
11519
11520 # On AIX, shared libraries and static libraries use the same namespace, and
11521 # are all built from PIC.
11522 case $host_os in
11523 aix3*)
11524 test "$enable_shared" = yes && enable_static=no
11525 if test -n "$RANLIB"; then
11526 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11527 postinstall_cmds='$RANLIB $lib'
11528 fi
11529 ;;
11530
11531 aix4* | aix5*)
11532 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11533 test "$enable_shared" = yes && enable_static=no
11534 fi
11535 ;;
11536 esac
11537 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11538 echo "${ECHO_T}$enable_shared" >&6; }
11539
11540 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11541 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11542 # Make sure either enable_shared or enable_static is yes.
11543 test "$enable_shared" = yes || enable_static=yes
11544 { echo "$as_me:$LINENO: result: $enable_static" >&5
11545 echo "${ECHO_T}$enable_static" >&6; }
11546
11547 # The else clause should only fire when bootstrapping the
11548 # libtool distribution, otherwise you forgot to ship ltmain.sh
11549 # with your package, and you will get complaints that there are
11550 # no rules to generate ltmain.sh.
11551 if test -f "$ltmain"; then
11552 # See if we are running on zsh, and set the options which allow our commands through
11553 # without removal of \ escapes.
11554 if test -n "${ZSH_VERSION+set}" ; then
11555 setopt NO_GLOB_SUBST
11556 fi
11557 # Now quote all the things that may contain metacharacters while being
11558 # careful not to overquote the AC_SUBSTed values. We take copies of the
11559 # variables and quote the copies for generation of the libtool script.
11560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11561 SED SHELL STRIP \
11562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11564 deplibs_check_method reload_flag reload_cmds need_locks \
11565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11566 lt_cv_sys_global_symbol_to_c_name_address \
11567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11568 old_postinstall_cmds old_postuninstall_cmds \
11569 compiler \
11570 CC \
11571 LD \
11572 lt_prog_compiler_wl \
11573 lt_prog_compiler_pic \
11574 lt_prog_compiler_static \
11575 lt_prog_compiler_no_builtin_flag \
11576 export_dynamic_flag_spec \
11577 thread_safe_flag_spec \
11578 whole_archive_flag_spec \
11579 enable_shared_with_static_runtimes \
11580 old_archive_cmds \
11581 old_archive_from_new_cmds \
11582 predep_objects \
11583 postdep_objects \
11584 predeps \
11585 postdeps \
11586 compiler_lib_search_path \
11587 archive_cmds \
11588 archive_expsym_cmds \
11589 postinstall_cmds \
11590 postuninstall_cmds \
11591 old_archive_from_expsyms_cmds \
11592 allow_undefined_flag \
11593 no_undefined_flag \
11594 export_symbols_cmds \
11595 hardcode_libdir_flag_spec \
11596 hardcode_libdir_flag_spec_ld \
11597 hardcode_libdir_separator \
11598 hardcode_automatic \
11599 module_cmds \
11600 module_expsym_cmds \
11601 lt_cv_prog_compiler_c_o \
11602 fix_srcfile_path \
11603 exclude_expsyms \
11604 include_expsyms; do
11605
11606 case $var in
11607 old_archive_cmds | \
11608 old_archive_from_new_cmds | \
11609 archive_cmds | \
11610 archive_expsym_cmds | \
11611 module_cmds | \
11612 module_expsym_cmds | \
11613 old_archive_from_expsyms_cmds | \
11614 export_symbols_cmds | \
11615 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11616 postinstall_cmds | postuninstall_cmds | \
11617 old_postinstall_cmds | old_postuninstall_cmds | \
11618 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11619 # Double-quote double-evaled strings.
11620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11621 ;;
11622 *)
11623 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11624 ;;
11625 esac
11626 done
11627
11628 case $lt_echo in
11629 *'\$0 --fallback-echo"')
11630 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11631 ;;
11632 esac
11633
11634 cfgfile="${ofile}T"
11635 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11636 $rm -f "$cfgfile"
11637 { echo "$as_me:$LINENO: creating $ofile" >&5
11638 echo "$as_me: creating $ofile" >&6;}
11639
11640 cat <<__EOF__ >> "$cfgfile"
11641 #! $SHELL
11642
11643 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11644 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11645 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11646 #
11647 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11648 # Free Software Foundation, Inc.
11649 #
11650 # This file is part of GNU Libtool:
11651 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11652 #
11653 # This program is free software; you can redistribute it and/or modify
11654 # it under the terms of the GNU General Public License as published by
11655 # the Free Software Foundation; either version 2 of the License, or
11656 # (at your option) any later version.
11657 #
11658 # This program is distributed in the hope that it will be useful, but
11659 # WITHOUT ANY WARRANTY; without even the implied warranty of
11660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11661 # General Public License for more details.
11662 #
11663 # You should have received a copy of the GNU General Public License
11664 # along with this program; if not, write to the Free Software
11665 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11666 #
11667 # As a special exception to the GNU General Public License, if you
11668 # distribute this file as part of a program that contains a
11669 # configuration script generated by Autoconf, you may include it under
11670 # the same distribution terms that you use for the rest of that program.
11671
11672 # A sed program that does not truncate output.
11673 SED=$lt_SED
11674
11675 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11676 Xsed="$SED -e 1s/^X//"
11677
11678 # The HP-UX ksh and POSIX shell print the target directory to stdout
11679 # if CDPATH is set.
11680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11681
11682 # The names of the tagged configurations supported by this script.
11683 available_tags=
11684
11685 # ### BEGIN LIBTOOL CONFIG
11686
11687 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11688
11689 # Shell to use when invoking shell scripts.
11690 SHELL=$lt_SHELL
11691
11692 # Whether or not to build shared libraries.
11693 build_libtool_libs=$enable_shared
11694
11695 # Whether or not to build static libraries.
11696 build_old_libs=$enable_static
11697
11698 # Whether or not to add -lc for building shared libraries.
11699 build_libtool_need_lc=$archive_cmds_need_lc
11700
11701 # Whether or not to disallow shared libs when runtime libs are static
11702 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11703
11704 # Whether or not to optimize for fast installation.
11705 fast_install=$enable_fast_install
11706
11707 # The host system.
11708 host_alias=$host_alias
11709 host=$host
11710 host_os=$host_os
11711
11712 # The build system.
11713 build_alias=$build_alias
11714 build=$build
11715 build_os=$build_os
11716
11717 # An echo program that does not interpret backslashes.
11718 echo=$lt_echo
11719
11720 # The archiver.
11721 AR=$lt_AR
11722 AR_FLAGS=$lt_AR_FLAGS
11723
11724 # A C compiler.
11725 LTCC=$lt_LTCC
11726
11727 # LTCC compiler flags.
11728 LTCFLAGS=$lt_LTCFLAGS
11729
11730 # A language-specific compiler.
11731 CC=$lt_compiler
11732
11733 # Is the compiler the GNU C compiler?
11734 with_gcc=$GCC
11735
11736 # An ERE matcher.
11737 EGREP=$lt_EGREP
11738
11739 # The linker used to build libraries.
11740 LD=$lt_LD
11741
11742 # Whether we need hard or soft links.
11743 LN_S=$lt_LN_S
11744
11745 # A BSD-compatible nm program.
11746 NM=$lt_NM
11747
11748 # A symbol stripping program
11749 STRIP=$lt_STRIP
11750
11751 # Used to examine libraries when file_magic_cmd begins "file"
11752 MAGIC_CMD=$MAGIC_CMD
11753
11754 # Used on cygwin: DLL creation program.
11755 DLLTOOL="$DLLTOOL"
11756
11757 # Used on cygwin: object dumper.
11758 OBJDUMP="$OBJDUMP"
11759
11760 # Used on cygwin: assembler.
11761 AS="$AS"
11762
11763 # The name of the directory that contains temporary libtool files.
11764 objdir=$objdir
11765
11766 # How to create reloadable object files.
11767 reload_flag=$lt_reload_flag
11768 reload_cmds=$lt_reload_cmds
11769
11770 # How to pass a linker flag through the compiler.
11771 wl=$lt_lt_prog_compiler_wl
11772
11773 # Object file suffix (normally "o").
11774 objext="$ac_objext"
11775
11776 # Old archive suffix (normally "a").
11777 libext="$libext"
11778
11779 # Shared library suffix (normally ".so").
11780 shrext_cmds='$shrext_cmds'
11781
11782 # Executable file suffix (normally "").
11783 exeext="$exeext"
11784
11785 # Additional compiler flags for building library objects.
11786 pic_flag=$lt_lt_prog_compiler_pic
11787 pic_mode=$pic_mode
11788
11789 # What is the maximum length of a command?
11790 max_cmd_len=$lt_cv_sys_max_cmd_len
11791
11792 # Does compiler simultaneously support -c and -o options?
11793 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11794
11795 # Must we lock files when doing compilation?
11796 need_locks=$lt_need_locks
11797
11798 # Do we need the lib prefix for modules?
11799 need_lib_prefix=$need_lib_prefix
11800
11801 # Do we need a version for libraries?
11802 need_version=$need_version
11803
11804 # Whether dlopen is supported.
11805 dlopen_support=$enable_dlopen
11806
11807 # Whether dlopen of programs is supported.
11808 dlopen_self=$enable_dlopen_self
11809
11810 # Whether dlopen of statically linked programs is supported.
11811 dlopen_self_static=$enable_dlopen_self_static
11812
11813 # Compiler flag to prevent dynamic linking.
11814 link_static_flag=$lt_lt_prog_compiler_static
11815
11816 # Compiler flag to turn off builtin functions.
11817 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11818
11819 # Compiler flag to allow reflexive dlopens.
11820 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11821
11822 # Compiler flag to generate shared objects directly from archives.
11823 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11824
11825 # Compiler flag to generate thread-safe objects.
11826 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11827
11828 # Library versioning type.
11829 version_type=$version_type
11830
11831 # Format of library name prefix.
11832 libname_spec=$lt_libname_spec
11833
11834 # List of archive names. First name is the real one, the rest are links.
11835 # The last name is the one that the linker finds with -lNAME.
11836 library_names_spec=$lt_library_names_spec
11837
11838 # The coded name of the library, if different from the real name.
11839 soname_spec=$lt_soname_spec
11840
11841 # Commands used to build and install an old-style archive.
11842 RANLIB=$lt_RANLIB
11843 old_archive_cmds=$lt_old_archive_cmds
11844 old_postinstall_cmds=$lt_old_postinstall_cmds
11845 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11846
11847 # Create an old-style archive from a shared archive.
11848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11849
11850 # Create a temporary old-style archive to link instead of a shared archive.
11851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11852
11853 # Commands used to build and install a shared archive.
11854 archive_cmds=$lt_archive_cmds
11855 archive_expsym_cmds=$lt_archive_expsym_cmds
11856 postinstall_cmds=$lt_postinstall_cmds
11857 postuninstall_cmds=$lt_postuninstall_cmds
11858
11859 # Commands used to build a loadable module (assumed same as above if empty)
11860 module_cmds=$lt_module_cmds
11861 module_expsym_cmds=$lt_module_expsym_cmds
11862
11863 # Commands to strip libraries.
11864 old_striplib=$lt_old_striplib
11865 striplib=$lt_striplib
11866
11867 # Dependencies to place before the objects being linked to create a
11868 # shared library.
11869 predep_objects=$lt_predep_objects
11870
11871 # Dependencies to place after the objects being linked to create a
11872 # shared library.
11873 postdep_objects=$lt_postdep_objects
11874
11875 # Dependencies to place before the objects being linked to create a
11876 # shared library.
11877 predeps=$lt_predeps
11878
11879 # Dependencies to place after the objects being linked to create a
11880 # shared library.
11881 postdeps=$lt_postdeps
11882
11883 # The library search path used internally by the compiler when linking
11884 # a shared library.
11885 compiler_lib_search_path=$lt_compiler_lib_search_path
11886
11887 # Method to check whether dependent libraries are shared objects.
11888 deplibs_check_method=$lt_deplibs_check_method
11889
11890 # Command to use when deplibs_check_method == file_magic.
11891 file_magic_cmd=$lt_file_magic_cmd
11892
11893 # Flag that allows shared libraries with undefined symbols to be built.
11894 allow_undefined_flag=$lt_allow_undefined_flag
11895
11896 # Flag that forces no undefined symbols.
11897 no_undefined_flag=$lt_no_undefined_flag
11898
11899 # Commands used to finish a libtool library installation in a directory.
11900 finish_cmds=$lt_finish_cmds
11901
11902 # Same as above, but a single script fragment to be evaled but not shown.
11903 finish_eval=$lt_finish_eval
11904
11905 # Take the output of nm and produce a listing of raw symbols and C names.
11906 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11907
11908 # Transform the output of nm in a proper C declaration
11909 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11910
11911 # Transform the output of nm in a C name address pair
11912 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11913
11914 # This is the shared library runtime path variable.
11915 runpath_var=$runpath_var
11916
11917 # This is the shared library path variable.
11918 shlibpath_var=$shlibpath_var
11919
11920 # Is shlibpath searched before the hard-coded library search path?
11921 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11922
11923 # How to hardcode a shared library path into an executable.
11924 hardcode_action=$hardcode_action
11925
11926 # Whether we should hardcode library paths into libraries.
11927 hardcode_into_libs=$hardcode_into_libs
11928
11929 # Flag to hardcode \$libdir into a binary during linking.
11930 # This must work even if \$libdir does not exist.
11931 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11932
11933 # If ld is used when linking, flag to hardcode \$libdir into
11934 # a binary during linking. This must work even if \$libdir does
11935 # not exist.
11936 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11937
11938 # Whether we need a single -rpath flag with a separated argument.
11939 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11940
11941 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11942 # resulting binary.
11943 hardcode_direct=$hardcode_direct
11944
11945 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11946 # resulting binary.
11947 hardcode_minus_L=$hardcode_minus_L
11948
11949 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11950 # the resulting binary.
11951 hardcode_shlibpath_var=$hardcode_shlibpath_var
11952
11953 # Set to yes if building a shared library automatically hardcodes DIR into the library
11954 # and all subsequent libraries and executables linked against it.
11955 hardcode_automatic=$hardcode_automatic
11956
11957 # Variables whose values should be saved in libtool wrapper scripts and
11958 # restored at relink time.
11959 variables_saved_for_relink="$variables_saved_for_relink"
11960
11961 # Whether libtool must link a program against all its dependency libraries.
11962 link_all_deplibs=$link_all_deplibs
11963
11964 # Compile-time system search path for libraries
11965 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11966
11967 # Run-time system search path for libraries
11968 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11969
11970 # Fix the shell variable \$srcfile for the compiler.
11971 fix_srcfile_path=$lt_fix_srcfile_path
11972
11973 # Set to yes if exported symbols are required.
11974 always_export_symbols=$always_export_symbols
11975
11976 # The commands to list exported symbols.
11977 export_symbols_cmds=$lt_export_symbols_cmds
11978
11979 # The commands to extract the exported symbol list from a shared archive.
11980 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11981
11982 # Symbols that should not be listed in the preloaded symbols.
11983 exclude_expsyms=$lt_exclude_expsyms
11984
11985 # Symbols that must always be exported.
11986 include_expsyms=$lt_include_expsyms
11987
11988 # ### END LIBTOOL CONFIG
11989
11990 __EOF__
11991
11992
11993 case $host_os in
11994 aix3*)
11995 cat <<\EOF >> "$cfgfile"
11996
11997 # AIX sometimes has problems with the GCC collect2 program. For some
11998 # reason, if we set the COLLECT_NAMES environment variable, the problems
11999 # vanish in a puff of smoke.
12000 if test "X${COLLECT_NAMES+set}" != Xset; then
12001 COLLECT_NAMES=
12002 export COLLECT_NAMES
12003 fi
12004 EOF
12005 ;;
12006 esac
12007
12008 # We use sed instead of cat because bash on DJGPP gets confused if
12009 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12010 # text mode, it properly converts lines to CR/LF. This bash problem
12011 # is reportedly fixed, but why not run on old versions too?
12012 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12013
12014 mv -f "$cfgfile" "$ofile" || \
12015 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12016 chmod +x "$ofile"
12017
12018 else
12019 # If there is no Makefile yet, we rely on a make rule to execute
12020 # `config.status --recheck' to rerun these tests and create the
12021 # libtool script then.
12022 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12023 if test -f "$ltmain_in"; then
12024 test -f Makefile && make "$ltmain"
12025 fi
12026 fi
12027
12028
12029 ac_ext=c
12030 ac_cpp='$CPP $CPPFLAGS'
12031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12034
12035 CC="$lt_save_CC"
12036
12037
12038 # Check whether --with-tags was given.
12039 if test "${with_tags+set}" = set; then
12040 withval=$with_tags; tagnames="$withval"
12041 fi
12042
12043
12044 if test -f "$ltmain" && test -n "$tagnames"; then
12045 if test ! -f "${ofile}"; then
12046 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12047 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12048 fi
12049
12050 if test -z "$LTCC"; then
12051 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12052 if test -z "$LTCC"; then
12053 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12054 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12055 else
12056 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12057 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12058 fi
12059 fi
12060 if test -z "$LTCFLAGS"; then
12061 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12062 fi
12063
12064 # Extract list of available tagged configurations in $ofile.
12065 # Note that this assumes the entire list is on one line.
12066 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12067
12068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12069 for tagname in $tagnames; do
12070 IFS="$lt_save_ifs"
12071 # Check whether tagname contains only valid characters
12072 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12073 "") ;;
12074 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12075 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12076 { (exit 1); exit 1; }; }
12077 ;;
12078 esac
12079
12080 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12081 then
12082 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12083 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12084 { (exit 1); exit 1; }; }
12085 fi
12086
12087 # Update the list of available tags.
12088 if test -n "$tagname"; then
12089 echo appending configuration tag \"$tagname\" to $ofile
12090
12091 case $tagname in
12092 CXX)
12093 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12094 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12095 (test "X$CXX" != "Xg++"))) ; then
12096 ac_ext=cpp
12097 ac_cpp='$CXXCPP $CPPFLAGS'
12098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12101
12102
12103
12104
12105 archive_cmds_need_lc_CXX=no
12106 allow_undefined_flag_CXX=
12107 always_export_symbols_CXX=no
12108 archive_expsym_cmds_CXX=
12109 export_dynamic_flag_spec_CXX=
12110 hardcode_direct_CXX=no
12111 hardcode_libdir_flag_spec_CXX=
12112 hardcode_libdir_flag_spec_ld_CXX=
12113 hardcode_libdir_separator_CXX=
12114 hardcode_minus_L_CXX=no
12115 hardcode_shlibpath_var_CXX=unsupported
12116 hardcode_automatic_CXX=no
12117 module_cmds_CXX=
12118 module_expsym_cmds_CXX=
12119 link_all_deplibs_CXX=unknown
12120 old_archive_cmds_CXX=$old_archive_cmds
12121 no_undefined_flag_CXX=
12122 whole_archive_flag_spec_CXX=
12123 enable_shared_with_static_runtimes_CXX=no
12124
12125 # Dependencies to place before and after the object being linked:
12126 predep_objects_CXX=
12127 postdep_objects_CXX=
12128 predeps_CXX=
12129 postdeps_CXX=
12130 compiler_lib_search_path_CXX=
12131
12132 # Source file extension for C++ test sources.
12133 ac_ext=cpp
12134
12135 # Object file extension for compiled C++ test sources.
12136 objext=o
12137 objext_CXX=$objext
12138
12139 # Code to be used in simple compile tests
12140 lt_simple_compile_test_code="int some_variable = 0;"
12141
12142 # Code to be used in simple link tests
12143 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12144
12145 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12146
12147 # If no C compiler was specified, use CC.
12148 LTCC=${LTCC-"$CC"}
12149
12150 # If no C compiler flags were specified, use CFLAGS.
12151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12152
12153 # Allow CC to be a program name with arguments.
12154 compiler=$CC
12155
12156
12157 # save warnings/boilerplate of simple test code
12158 ac_outfile=conftest.$ac_objext
12159 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12161 _lt_compiler_boilerplate=`cat conftest.err`
12162 $rm conftest*
12163
12164 ac_outfile=conftest.$ac_objext
12165 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12167 _lt_linker_boilerplate=`cat conftest.err`
12168 $rm conftest*
12169
12170
12171 # Allow CC to be a program name with arguments.
12172 lt_save_CC=$CC
12173 lt_save_LD=$LD
12174 lt_save_GCC=$GCC
12175 GCC=$GXX
12176 lt_save_with_gnu_ld=$with_gnu_ld
12177 lt_save_path_LD=$lt_cv_path_LD
12178 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12179 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12180 else
12181 $as_unset lt_cv_prog_gnu_ld
12182 fi
12183 if test -n "${lt_cv_path_LDCXX+set}"; then
12184 lt_cv_path_LD=$lt_cv_path_LDCXX
12185 else
12186 $as_unset lt_cv_path_LD
12187 fi
12188 test -z "${LDCXX+set}" || LD=$LDCXX
12189 CC=${CXX-"c++"}
12190 compiler=$CC
12191 compiler_CXX=$CC
12192 for cc_temp in $compiler""; do
12193 case $cc_temp in
12194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12196 \-*) ;;
12197 *) break;;
12198 esac
12199 done
12200 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12201
12202
12203 # We don't want -fno-exception wen compiling C++ code, so set the
12204 # no_builtin_flag separately
12205 if test "$GXX" = yes; then
12206 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12207 else
12208 lt_prog_compiler_no_builtin_flag_CXX=
12209 fi
12210
12211 if test "$GXX" = yes; then
12212 # Set up default GNU C++ configuration
12213
12214
12215 # Check whether --with-gnu-ld was given.
12216 if test "${with_gnu_ld+set}" = set; then
12217 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12218 else
12219 with_gnu_ld=no
12220 fi
12221
12222 ac_prog=ld
12223 if test "$GCC" = yes; then
12224 # Check if gcc -print-prog-name=ld gives a path.
12225 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12226 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12227 case $host in
12228 *-*-mingw*)
12229 # gcc leaves a trailing carriage return which upsets mingw
12230 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12231 *)
12232 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12233 esac
12234 case $ac_prog in
12235 # Accept absolute paths.
12236 [\\/]* | ?:[\\/]*)
12237 re_direlt='/[^/][^/]*/\.\./'
12238 # Canonicalize the pathname of ld
12239 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12240 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12241 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12242 done
12243 test -z "$LD" && LD="$ac_prog"
12244 ;;
12245 "")
12246 # If it fails, then pretend we aren't using GCC.
12247 ac_prog=ld
12248 ;;
12249 *)
12250 # If it is relative, then search for the first ld in PATH.
12251 with_gnu_ld=unknown
12252 ;;
12253 esac
12254 elif test "$with_gnu_ld" = yes; then
12255 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12256 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12257 else
12258 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12259 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12260 fi
12261 if test "${lt_cv_path_LD+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 if test -z "$LD"; then
12265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12266 for ac_dir in $PATH; do
12267 IFS="$lt_save_ifs"
12268 test -z "$ac_dir" && ac_dir=.
12269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12270 lt_cv_path_LD="$ac_dir/$ac_prog"
12271 # Check to see if the program is GNU ld. I'd rather use --version,
12272 # but apparently some variants of GNU ld only accept -v.
12273 # Break only if it was the GNU/non-GNU ld that we prefer.
12274 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12275 *GNU* | *'with BFD'*)
12276 test "$with_gnu_ld" != no && break
12277 ;;
12278 *)
12279 test "$with_gnu_ld" != yes && break
12280 ;;
12281 esac
12282 fi
12283 done
12284 IFS="$lt_save_ifs"
12285 else
12286 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12287 fi
12288 fi
12289
12290 LD="$lt_cv_path_LD"
12291 if test -n "$LD"; then
12292 { echo "$as_me:$LINENO: result: $LD" >&5
12293 echo "${ECHO_T}$LD" >&6; }
12294 else
12295 { echo "$as_me:$LINENO: result: no" >&5
12296 echo "${ECHO_T}no" >&6; }
12297 fi
12298 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12299 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12300 { (exit 1); exit 1; }; }
12301 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12302 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12303 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12307 case `$LD -v 2>&1 </dev/null` in
12308 *GNU* | *'with BFD'*)
12309 lt_cv_prog_gnu_ld=yes
12310 ;;
12311 *)
12312 lt_cv_prog_gnu_ld=no
12313 ;;
12314 esac
12315 fi
12316 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12317 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12318 with_gnu_ld=$lt_cv_prog_gnu_ld
12319
12320
12321
12322 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12323 # archiving commands below assume that GNU ld is being used.
12324 if test "$with_gnu_ld" = yes; then
12325 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12326 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'
12327
12328 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12330
12331 # If archive_cmds runs LD, not CC, wlarc should be empty
12332 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12333 # investigate it a little bit more. (MM)
12334 wlarc='${wl}'
12335
12336 # ancient GNU ld didn't support --whole-archive et. al.
12337 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12338 grep 'no-whole-archive' > /dev/null; then
12339 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12340 else
12341 whole_archive_flag_spec_CXX=
12342 fi
12343 else
12344 with_gnu_ld=no
12345 wlarc=
12346
12347 # A generic and very simple default shared library creation
12348 # command for GNU C++ for the case where it uses the native
12349 # linker, instead of GNU ld. If possible, this setting should
12350 # overridden to take advantage of the native linker features on
12351 # the platform it is being used on.
12352 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12353 fi
12354
12355 # Commands to make compiler produce verbose output that lists
12356 # what "hidden" libraries, object files and flags are used when
12357 # linking a shared library.
12358 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12359
12360 else
12361 GXX=no
12362 with_gnu_ld=no
12363 wlarc=
12364 fi
12365
12366 # PORTME: fill in a description of your system's C++ link characteristics
12367 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12368 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12369 ld_shlibs_CXX=yes
12370 case $host_os in
12371 aix3*)
12372 # FIXME: insert proper C++ library support
12373 ld_shlibs_CXX=no
12374 ;;
12375 aix4* | aix5*)
12376 if test "$host_cpu" = ia64; then
12377 # On IA64, the linker does run time linking by default, so we don't
12378 # have to do anything special.
12379 aix_use_runtimelinking=no
12380 exp_sym_flag='-Bexport'
12381 no_entry_flag=""
12382 else
12383 aix_use_runtimelinking=no
12384
12385 # Test if we are trying to use run time linking or normal
12386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12387 # need to do runtime linking.
12388 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12389 for ld_flag in $LDFLAGS; do
12390 case $ld_flag in
12391 *-brtl*)
12392 aix_use_runtimelinking=yes
12393 break
12394 ;;
12395 esac
12396 done
12397 ;;
12398 esac
12399
12400 exp_sym_flag='-bexport'
12401 no_entry_flag='-bnoentry'
12402 fi
12403
12404 # When large executables or shared objects are built, AIX ld can
12405 # have problems creating the table of contents. If linking a library
12406 # or program results in "error TOC overflow" add -mminimal-toc to
12407 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12408 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12409
12410 archive_cmds_CXX=''
12411 hardcode_direct_CXX=yes
12412 hardcode_libdir_separator_CXX=':'
12413 link_all_deplibs_CXX=yes
12414
12415 if test "$GXX" = yes; then
12416 case $host_os in aix4.[012]|aix4.[012].*)
12417 # We only want to do this on AIX 4.2 and lower, the check
12418 # below for broken collect2 doesn't work under 4.3+
12419 collect2name=`${CC} -print-prog-name=collect2`
12420 if test -f "$collect2name" && \
12421 strings "$collect2name" | grep resolve_lib_name >/dev/null
12422 then
12423 # We have reworked collect2
12424 :
12425 else
12426 # We have old collect2
12427 hardcode_direct_CXX=unsupported
12428 # It fails to find uninstalled libraries when the uninstalled
12429 # path is not listed in the libpath. Setting hardcode_minus_L
12430 # to unsupported forces relinking
12431 hardcode_minus_L_CXX=yes
12432 hardcode_libdir_flag_spec_CXX='-L$libdir'
12433 hardcode_libdir_separator_CXX=
12434 fi
12435 ;;
12436 esac
12437 shared_flag='-shared'
12438 if test "$aix_use_runtimelinking" = yes; then
12439 shared_flag="$shared_flag "'${wl}-G'
12440 fi
12441 else
12442 # not using gcc
12443 if test "$host_cpu" = ia64; then
12444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12445 # chokes on -Wl,-G. The following line is correct:
12446 shared_flag='-G'
12447 else
12448 if test "$aix_use_runtimelinking" = yes; then
12449 shared_flag='${wl}-G'
12450 else
12451 shared_flag='${wl}-bM:SRE'
12452 fi
12453 fi
12454 fi
12455
12456 # It seems that -bexpall does not export symbols beginning with
12457 # underscore (_), so it is better to generate a list of symbols to export.
12458 always_export_symbols_CXX=yes
12459 if test "$aix_use_runtimelinking" = yes; then
12460 # Warning - without using the other runtime loading flags (-brtl),
12461 # -berok will link without error, but may produce a broken library.
12462 allow_undefined_flag_CXX='-berok'
12463 # Determine the default libpath from the value encoded in an empty executable.
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470
12471 int
12472 main ()
12473 {
12474
12475 ;
12476 return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (ac_try="$ac_link"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_link") 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } && {
12493 test -z "$ac_cxx_werror_flag" ||
12494 test ! -s conftest.err
12495 } && test -s conftest$ac_exeext &&
12496 $as_test_x conftest$ac_exeext; then
12497
12498 lt_aix_libpath_sed='
12499 /Import File Strings/,/^$/ {
12500 /^0/ {
12501 s/^0 *\(.*\)$/\1/
12502 p
12503 }
12504 }'
12505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12506 # Check for a 64-bit object if we didn't find anything.
12507 if test -z "$aix_libpath"; then
12508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12509 fi
12510 else
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514
12515 fi
12516
12517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12518 conftest$ac_exeext conftest.$ac_ext
12519 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12520
12521 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12522
12523 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12524 else
12525 if test "$host_cpu" = ia64; then
12526 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12527 allow_undefined_flag_CXX="-z nodefs"
12528 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12529 else
12530 # Determine the default libpath from the value encoded in an empty executable.
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h. */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12537
12538 int
12539 main ()
12540 {
12541
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_link") 2>conftest.er1
12554 ac_status=$?
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && {
12560 test -z "$ac_cxx_werror_flag" ||
12561 test ! -s conftest.err
12562 } && test -s conftest$ac_exeext &&
12563 $as_test_x conftest$ac_exeext; then
12564
12565 lt_aix_libpath_sed='
12566 /Import File Strings/,/^$/ {
12567 /^0/ {
12568 s/^0 *\(.*\)$/\1/
12569 p
12570 }
12571 }'
12572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12573 # Check for a 64-bit object if we didn't find anything.
12574 if test -z "$aix_libpath"; then
12575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12576 fi
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581
12582 fi
12583
12584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12585 conftest$ac_exeext conftest.$ac_ext
12586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12587
12588 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12589 # Warning - without using the other run time loading flags,
12590 # -berok will link without error, but may produce a broken library.
12591 no_undefined_flag_CXX=' ${wl}-bernotok'
12592 allow_undefined_flag_CXX=' ${wl}-berok'
12593 # Exported symbols can be pulled into shared objects from archives
12594 whole_archive_flag_spec_CXX='$convenience'
12595 archive_cmds_need_lc_CXX=yes
12596 # This is similar to how AIX traditionally builds its shared libraries.
12597 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12598 fi
12599 fi
12600 ;;
12601
12602 beos*)
12603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12604 allow_undefined_flag_CXX=unsupported
12605 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12606 # support --undefined. This deserves some investigation. FIXME
12607 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12608 else
12609 ld_shlibs_CXX=no
12610 fi
12611 ;;
12612
12613 chorus*)
12614 case $cc_basename in
12615 *)
12616 # FIXME: insert proper C++ library support
12617 ld_shlibs_CXX=no
12618 ;;
12619 esac
12620 ;;
12621
12622 cygwin* | mingw* | pw32*)
12623 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12624 # as there is no search path for DLLs.
12625 hardcode_libdir_flag_spec_CXX='-L$libdir'
12626 allow_undefined_flag_CXX=unsupported
12627 always_export_symbols_CXX=no
12628 enable_shared_with_static_runtimes_CXX=yes
12629
12630 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12631 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12632 # If the export-symbols file already is a .def file (1st line
12633 # is EXPORTS), use it as is; otherwise, prepend...
12634 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12635 cp $export_symbols $output_objdir/$soname.def;
12636 else
12637 echo EXPORTS > $output_objdir/$soname.def;
12638 cat $export_symbols >> $output_objdir/$soname.def;
12639 fi~
12640 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12641 else
12642 ld_shlibs_CXX=no
12643 fi
12644 ;;
12645 darwin* | rhapsody*)
12646 case $host_os in
12647 rhapsody* | darwin1.[012])
12648 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12649 ;;
12650 *) # Darwin 1.3 on
12651 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12652 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12653 else
12654 case ${MACOSX_DEPLOYMENT_TARGET} in
12655 10.[012])
12656 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12657 ;;
12658 10.*)
12659 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12660 ;;
12661 esac
12662 fi
12663 ;;
12664 esac
12665 archive_cmds_need_lc_CXX=no
12666 hardcode_direct_CXX=no
12667 hardcode_automatic_CXX=yes
12668 hardcode_shlibpath_var_CXX=unsupported
12669 whole_archive_flag_spec_CXX=''
12670 link_all_deplibs_CXX=yes
12671
12672 if test "$GXX" = yes ; then
12673 lt_int_apple_cc_single_mod=no
12674 output_verbose_link_cmd='echo'
12675 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12676 lt_int_apple_cc_single_mod=yes
12677 fi
12678 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12679 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12680 else
12681 archive_cmds_CXX='$CC -r -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'
12682 fi
12683 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12684 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12685 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12686 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}'
12687 else
12688 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
12689 fi
12690 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}'
12691 else
12692 case $cc_basename in
12693 xlc*)
12694 output_verbose_link_cmd='echo'
12695 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12696 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12698 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12699 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}'
12700 ;;
12701 *)
12702 ld_shlibs_CXX=no
12703 ;;
12704 esac
12705 fi
12706 ;;
12707
12708 dgux*)
12709 case $cc_basename in
12710 ec++*)
12711 # FIXME: insert proper C++ library support
12712 ld_shlibs_CXX=no
12713 ;;
12714 ghcx*)
12715 # Green Hills C++ Compiler
12716 # FIXME: insert proper C++ library support
12717 ld_shlibs_CXX=no
12718 ;;
12719 *)
12720 # FIXME: insert proper C++ library support
12721 ld_shlibs_CXX=no
12722 ;;
12723 esac
12724 ;;
12725 freebsd[12]*)
12726 # C++ shared libraries reported to be fairly broken before switch to ELF
12727 ld_shlibs_CXX=no
12728 ;;
12729 freebsd-elf*)
12730 archive_cmds_need_lc_CXX=no
12731 ;;
12732 freebsd* | dragonfly*)
12733 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12734 # conventions
12735 ld_shlibs_CXX=yes
12736 ;;
12737 gnu*)
12738 ;;
12739 hpux9*)
12740 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12741 hardcode_libdir_separator_CXX=:
12742 export_dynamic_flag_spec_CXX='${wl}-E'
12743 hardcode_direct_CXX=yes
12744 hardcode_minus_L_CXX=yes # Not in the search PATH,
12745 # but as the default
12746 # location of the library.
12747
12748 case $cc_basename in
12749 CC*)
12750 # FIXME: insert proper C++ library support
12751 ld_shlibs_CXX=no
12752 ;;
12753 aCC*)
12754 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'
12755 # Commands to make compiler produce verbose output that lists
12756 # what "hidden" libraries, object files and flags are used when
12757 # linking a shared library.
12758 #
12759 # There doesn't appear to be a way to prevent this compiler from
12760 # explicitly linking system object files so we need to strip them
12761 # from the output so that they don't get included in the library
12762 # dependencies.
12763 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'
12764 ;;
12765 *)
12766 if test "$GXX" = yes; then
12767 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'
12768 else
12769 # FIXME: insert proper C++ library support
12770 ld_shlibs_CXX=no
12771 fi
12772 ;;
12773 esac
12774 ;;
12775 hpux10*|hpux11*)
12776 if test $with_gnu_ld = no; then
12777 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12778 hardcode_libdir_separator_CXX=:
12779
12780 case $host_cpu in
12781 hppa*64*|ia64*) ;;
12782 *)
12783 export_dynamic_flag_spec_CXX='${wl}-E'
12784 ;;
12785 esac
12786 fi
12787 case $host_cpu in
12788 hppa*64*|ia64*)
12789 hardcode_direct_CXX=no
12790 hardcode_shlibpath_var_CXX=no
12791 ;;
12792 *)
12793 hardcode_direct_CXX=yes
12794 hardcode_minus_L_CXX=yes # Not in the search PATH,
12795 # but as the default
12796 # location of the library.
12797 ;;
12798 esac
12799
12800 case $cc_basename in
12801 CC*)
12802 # FIXME: insert proper C++ library support
12803 ld_shlibs_CXX=no
12804 ;;
12805 aCC*)
12806 case $host_cpu in
12807 hppa*64*)
12808 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12809 ;;
12810 ia64*)
12811 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12812 ;;
12813 *)
12814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12815 ;;
12816 esac
12817 # Commands to make compiler produce verbose output that lists
12818 # what "hidden" libraries, object files and flags are used when
12819 # linking a shared library.
12820 #
12821 # There doesn't appear to be a way to prevent this compiler from
12822 # explicitly linking system object files so we need to strip them
12823 # from the output so that they don't get included in the library
12824 # dependencies.
12825 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'
12826 ;;
12827 *)
12828 if test "$GXX" = yes; then
12829 if test $with_gnu_ld = no; then
12830 case $host_cpu in
12831 hppa*64*)
12832 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12833 ;;
12834 ia64*)
12835 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12836 ;;
12837 *)
12838 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'
12839 ;;
12840 esac
12841 fi
12842 else
12843 # FIXME: insert proper C++ library support
12844 ld_shlibs_CXX=no
12845 fi
12846 ;;
12847 esac
12848 ;;
12849 interix[3-9]*)
12850 hardcode_direct_CXX=no
12851 hardcode_shlibpath_var_CXX=no
12852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12853 export_dynamic_flag_spec_CXX='${wl}-E'
12854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12855 # Instead, shared libraries are loaded at an image base (0x10000000 by
12856 # default) and relocated if they conflict, which is a slow very memory
12857 # consuming and fragmenting process. To avoid this, we pick a random,
12858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12860 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12861 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12862 ;;
12863 irix5* | irix6*)
12864 case $cc_basename in
12865 CC*)
12866 # SGI C++
12867 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 ${output_objdir}/so_locations -o $lib'
12868
12869 # Archives containing C++ object files must be created using
12870 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12871 # necessary to make sure instantiated templates are included
12872 # in the archive.
12873 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12874 ;;
12875 *)
12876 if test "$GXX" = yes; then
12877 if test "$with_gnu_ld" = no; then
12878 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}${output_objdir}/so_locations -o $lib'
12879 else
12880 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'
12881 fi
12882 fi
12883 link_all_deplibs_CXX=yes
12884 ;;
12885 esac
12886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12887 hardcode_libdir_separator_CXX=:
12888 ;;
12889 linux* | k*bsd*-gnu)
12890 case $cc_basename in
12891 KCC*)
12892 # Kuck and Associates, Inc. (KAI) C++ Compiler
12893
12894 # KCC will only create a shared library if the output file
12895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12896 # to its proper name (with version) after linking.
12897 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'
12898 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'
12899 # Commands to make compiler produce verbose output that lists
12900 # what "hidden" libraries, object files and flags are used when
12901 # linking a shared library.
12902 #
12903 # There doesn't appear to be a way to prevent this compiler from
12904 # explicitly linking system object files so we need to strip them
12905 # from the output so that they don't get included in the library
12906 # dependencies.
12907 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'
12908
12909 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12911
12912 # Archives containing C++ object files must be created using
12913 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12914 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12915 ;;
12916 icpc*)
12917 # Intel C++
12918 with_gnu_ld=yes
12919 # version 8.0 and above of icpc choke on multiply defined symbols
12920 # if we add $predep_objects and $postdep_objects, however 7.1 and
12921 # earlier do not add the objects themselves.
12922 case `$CC -V 2>&1` in
12923 *"Version 7."*)
12924 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12925 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'
12926 ;;
12927 *) # Version 8.0 or newer
12928 tmp_idyn=
12929 case $host_cpu in
12930 ia64*) tmp_idyn=' -i_dynamic';;
12931 esac
12932 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12933 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12934 ;;
12935 esac
12936 archive_cmds_need_lc_CXX=no
12937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12938 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12939 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12940 ;;
12941 pgCC*)
12942 # Portland Group C++ compiler
12943 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12944 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12945
12946 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12948 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12949 ;;
12950 cxx*)
12951 # Compaq C++
12952 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12953 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'
12954
12955 runpath_var=LD_RUN_PATH
12956 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12957 hardcode_libdir_separator_CXX=:
12958
12959 # Commands to make compiler produce verbose output that lists
12960 # what "hidden" libraries, object files and flags are used when
12961 # linking a shared library.
12962 #
12963 # There doesn't appear to be a way to prevent this compiler from
12964 # explicitly linking system object files so we need to strip them
12965 # from the output so that they don't get included in the library
12966 # dependencies.
12967 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'
12968 ;;
12969 *)
12970 case `$CC -V 2>&1 | sed 5q` in
12971 *Sun\ C*)
12972 # Sun C++ 5.9
12973 no_undefined_flag_CXX=' -zdefs'
12974 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12975 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12976 hardcode_libdir_flag_spec_CXX='-R$libdir'
12977 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12978
12979 # Not sure whether something based on
12980 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12981 # would be better.
12982 output_verbose_link_cmd='echo'
12983
12984 # Archives containing C++ object files must be created using
12985 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12986 # necessary to make sure instantiated templates are included
12987 # in the archive.
12988 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12989 ;;
12990 esac
12991 ;;
12992 esac
12993 ;;
12994 lynxos*)
12995 # FIXME: insert proper C++ library support
12996 ld_shlibs_CXX=no
12997 ;;
12998 m88k*)
12999 # FIXME: insert proper C++ library support
13000 ld_shlibs_CXX=no
13001 ;;
13002 mvs*)
13003 case $cc_basename in
13004 cxx*)
13005 # FIXME: insert proper C++ library support
13006 ld_shlibs_CXX=no
13007 ;;
13008 *)
13009 # FIXME: insert proper C++ library support
13010 ld_shlibs_CXX=no
13011 ;;
13012 esac
13013 ;;
13014 netbsd* | netbsdelf*-gnu)
13015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13016 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13017 wlarc=
13018 hardcode_libdir_flag_spec_CXX='-R$libdir'
13019 hardcode_direct_CXX=yes
13020 hardcode_shlibpath_var_CXX=no
13021 fi
13022 # Workaround some broken pre-1.5 toolchains
13023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13024 ;;
13025 openbsd2*)
13026 # C++ shared libraries are fairly broken
13027 ld_shlibs_CXX=no
13028 ;;
13029 openbsd*)
13030 if test -f /usr/libexec/ld.so; then
13031 hardcode_direct_CXX=yes
13032 hardcode_shlibpath_var_CXX=no
13033 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13036 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13037 export_dynamic_flag_spec_CXX='${wl}-E'
13038 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13039 fi
13040 output_verbose_link_cmd='echo'
13041 else
13042 ld_shlibs_CXX=no
13043 fi
13044 ;;
13045 osf3*)
13046 case $cc_basename in
13047 KCC*)
13048 # Kuck and Associates, Inc. (KAI) C++ Compiler
13049
13050 # KCC will only create a shared library if the output file
13051 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13052 # to its proper name (with version) after linking.
13053 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'
13054
13055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13056 hardcode_libdir_separator_CXX=:
13057
13058 # Archives containing C++ object files must be created using
13059 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13060 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13061
13062 ;;
13063 RCC*)
13064 # Rational C++ 2.4.1
13065 # FIXME: insert proper C++ library support
13066 ld_shlibs_CXX=no
13067 ;;
13068 cxx*)
13069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13070 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 ${output_objdir}/so_locations -o $lib'
13071
13072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13073 hardcode_libdir_separator_CXX=:
13074
13075 # Commands to make compiler produce verbose output that lists
13076 # what "hidden" libraries, object files and flags are used when
13077 # linking a shared library.
13078 #
13079 # There doesn't appear to be a way to prevent this compiler from
13080 # explicitly linking system object files so we need to strip them
13081 # from the output so that they don't get included in the library
13082 # dependencies.
13083 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'
13084 ;;
13085 *)
13086 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13087 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13088 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}${output_objdir}/so_locations -o $lib'
13089
13090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13091 hardcode_libdir_separator_CXX=:
13092
13093 # Commands to make compiler produce verbose output that lists
13094 # what "hidden" libraries, object files and flags are used when
13095 # linking a shared library.
13096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13097
13098 else
13099 # FIXME: insert proper C++ library support
13100 ld_shlibs_CXX=no
13101 fi
13102 ;;
13103 esac
13104 ;;
13105 osf4* | osf5*)
13106 case $cc_basename in
13107 KCC*)
13108 # Kuck and Associates, Inc. (KAI) C++ Compiler
13109
13110 # KCC will only create a shared library if the output file
13111 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13112 # to its proper name (with version) after linking.
13113 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'
13114
13115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13116 hardcode_libdir_separator_CXX=:
13117
13118 # Archives containing C++ object files must be created using
13119 # the KAI C++ compiler.
13120 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13121 ;;
13122 RCC*)
13123 # Rational C++ 2.4.1
13124 # FIXME: insert proper C++ library support
13125 ld_shlibs_CXX=no
13126 ;;
13127 cxx*)
13128 allow_undefined_flag_CXX=' -expect_unresolved \*'
13129 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 ${output_objdir}/so_locations -o $lib'
13130 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13131 echo "-hidden">> $lib.exp~
13132 $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 ${output_objdir}/so_locations -o $lib~
13133 $rm $lib.exp'
13134
13135 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13136 hardcode_libdir_separator_CXX=:
13137
13138 # Commands to make compiler produce verbose output that lists
13139 # what "hidden" libraries, object files and flags are used when
13140 # linking a shared library.
13141 #
13142 # There doesn't appear to be a way to prevent this compiler from
13143 # explicitly linking system object files so we need to strip them
13144 # from the output so that they don't get included in the library
13145 # dependencies.
13146 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'
13147 ;;
13148 *)
13149 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13151 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}${output_objdir}/so_locations -o $lib'
13152
13153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13154 hardcode_libdir_separator_CXX=:
13155
13156 # Commands to make compiler produce verbose output that lists
13157 # what "hidden" libraries, object files and flags are used when
13158 # linking a shared library.
13159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13160
13161 else
13162 # FIXME: insert proper C++ library support
13163 ld_shlibs_CXX=no
13164 fi
13165 ;;
13166 esac
13167 ;;
13168 psos*)
13169 # FIXME: insert proper C++ library support
13170 ld_shlibs_CXX=no
13171 ;;
13172 sunos4*)
13173 case $cc_basename in
13174 CC*)
13175 # Sun C++ 4.x
13176 # FIXME: insert proper C++ library support
13177 ld_shlibs_CXX=no
13178 ;;
13179 lcc*)
13180 # Lucid
13181 # FIXME: insert proper C++ library support
13182 ld_shlibs_CXX=no
13183 ;;
13184 *)
13185 # FIXME: insert proper C++ library support
13186 ld_shlibs_CXX=no
13187 ;;
13188 esac
13189 ;;
13190 solaris*)
13191 case $cc_basename in
13192 CC*)
13193 # Sun C++ 4.2, 5.x and Centerline C++
13194 archive_cmds_need_lc_CXX=yes
13195 no_undefined_flag_CXX=' -zdefs'
13196 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13197 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13198 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13199
13200 hardcode_libdir_flag_spec_CXX='-R$libdir'
13201 hardcode_shlibpath_var_CXX=no
13202 case $host_os in
13203 solaris2.[0-5] | solaris2.[0-5].*) ;;
13204 *)
13205 # The compiler driver will combine and reorder linker options,
13206 # but understands `-z linker_flag'.
13207 # Supported since Solaris 2.6 (maybe 2.5.1?)
13208 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13209 ;;
13210 esac
13211 link_all_deplibs_CXX=yes
13212
13213 output_verbose_link_cmd='echo'
13214
13215 # Archives containing C++ object files must be created using
13216 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13217 # necessary to make sure instantiated templates are included
13218 # in the archive.
13219 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13220 ;;
13221 gcx*)
13222 # Green Hills C++ Compiler
13223 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13224
13225 # The C++ compiler must be used to create the archive.
13226 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13227 ;;
13228 *)
13229 # GNU C++ compiler with Solaris linker
13230 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13231 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13232 if $CC --version | grep -v '^2\.7' > /dev/null; then
13233 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13234 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13235 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13236
13237 # Commands to make compiler produce verbose output that lists
13238 # what "hidden" libraries, object files and flags are used when
13239 # linking a shared library.
13240 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13241 else
13242 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13243 # platform.
13244 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13245 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13246 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13247
13248 # Commands to make compiler produce verbose output that lists
13249 # what "hidden" libraries, object files and flags are used when
13250 # linking a shared library.
13251 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13252 fi
13253
13254 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13255 case $host_os in
13256 solaris2.[0-5] | solaris2.[0-5].*) ;;
13257 *)
13258 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13259 ;;
13260 esac
13261 fi
13262 ;;
13263 esac
13264 ;;
13265 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13266 no_undefined_flag_CXX='${wl}-z,text'
13267 archive_cmds_need_lc_CXX=no
13268 hardcode_shlibpath_var_CXX=no
13269 runpath_var='LD_RUN_PATH'
13270
13271 case $cc_basename in
13272 CC*)
13273 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13274 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13275 ;;
13276 *)
13277 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13278 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279 ;;
13280 esac
13281 ;;
13282 sysv5* | sco3.2v5* | sco5v6*)
13283 # Note: We can NOT use -z defs as we might desire, because we do not
13284 # link with -lc, and that would cause any symbols used from libc to
13285 # always be unresolved, which means just about no library would
13286 # ever link correctly. If we're not using GNU ld we use -z text
13287 # though, which does catch some bad symbols but isn't as heavy-handed
13288 # as -z defs.
13289 # For security reasons, it is highly recommended that you always
13290 # use absolute paths for naming shared libraries, and exclude the
13291 # DT_RUNPATH tag from executables and libraries. But doing so
13292 # requires that you compile everything twice, which is a pain.
13293 # So that behaviour is only enabled if SCOABSPATH is set to a
13294 # non-empty value in the environment. Most likely only useful for
13295 # creating official distributions of packages.
13296 # This is a hack until libtool officially supports absolute path
13297 # names for shared libraries.
13298 no_undefined_flag_CXX='${wl}-z,text'
13299 allow_undefined_flag_CXX='${wl}-z,nodefs'
13300 archive_cmds_need_lc_CXX=no
13301 hardcode_shlibpath_var_CXX=no
13302 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13303 hardcode_libdir_separator_CXX=':'
13304 link_all_deplibs_CXX=yes
13305 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13306 runpath_var='LD_RUN_PATH'
13307
13308 case $cc_basename in
13309 CC*)
13310 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13311 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13312 ;;
13313 *)
13314 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13315 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13316 ;;
13317 esac
13318 ;;
13319 tandem*)
13320 case $cc_basename in
13321 NCC*)
13322 # NonStop-UX NCC 3.20
13323 # FIXME: insert proper C++ library support
13324 ld_shlibs_CXX=no
13325 ;;
13326 *)
13327 # FIXME: insert proper C++ library support
13328 ld_shlibs_CXX=no
13329 ;;
13330 esac
13331 ;;
13332 vxworks*)
13333 # FIXME: insert proper C++ library support
13334 ld_shlibs_CXX=no
13335 ;;
13336 *)
13337 # FIXME: insert proper C++ library support
13338 ld_shlibs_CXX=no
13339 ;;
13340 esac
13341 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13342 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13343 test "$ld_shlibs_CXX" = no && can_build_shared=no
13344
13345 GCC_CXX="$GXX"
13346 LD_CXX="$LD"
13347
13348
13349 cat > conftest.$ac_ext <<EOF
13350 class Foo
13351 {
13352 public:
13353 Foo (void) { a = 0; }
13354 private:
13355 int a;
13356 };
13357 EOF
13358
13359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13360 (eval $ac_compile) 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; then
13364 # Parse the compiler output and extract the necessary
13365 # objects, libraries and library flags.
13366
13367 # Sentinel used to keep track of whether or not we are before
13368 # the conftest object file.
13369 pre_test_object_deps_done=no
13370
13371 # The `*' in the case matches for architectures that use `case' in
13372 # $output_verbose_cmd can trigger glob expansion during the loop
13373 # eval without this substitution.
13374 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13375
13376 for p in `eval $output_verbose_link_cmd`; do
13377 case $p in
13378
13379 -L* | -R* | -l*)
13380 # Some compilers place space between "-{L,R}" and the path.
13381 # Remove the space.
13382 if test $p = "-L" \
13383 || test $p = "-R"; then
13384 prev=$p
13385 continue
13386 else
13387 prev=
13388 fi
13389
13390 if test "$pre_test_object_deps_done" = no; then
13391 case $p in
13392 -L* | -R*)
13393 # Internal compiler library paths should come after those
13394 # provided the user. The postdeps already come after the
13395 # user supplied libs so there is no need to process them.
13396 if test -z "$compiler_lib_search_path_CXX"; then
13397 compiler_lib_search_path_CXX="${prev}${p}"
13398 else
13399 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13400 fi
13401 ;;
13402 # The "-l" case would never come before the object being
13403 # linked, so don't bother handling this case.
13404 esac
13405 else
13406 if test -z "$postdeps_CXX"; then
13407 postdeps_CXX="${prev}${p}"
13408 else
13409 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13410 fi
13411 fi
13412 ;;
13413
13414 *.$objext)
13415 # This assumes that the test object file only shows up
13416 # once in the compiler output.
13417 if test "$p" = "conftest.$objext"; then
13418 pre_test_object_deps_done=yes
13419 continue
13420 fi
13421
13422 if test "$pre_test_object_deps_done" = no; then
13423 if test -z "$predep_objects_CXX"; then
13424 predep_objects_CXX="$p"
13425 else
13426 predep_objects_CXX="$predep_objects_CXX $p"
13427 fi
13428 else
13429 if test -z "$postdep_objects_CXX"; then
13430 postdep_objects_CXX="$p"
13431 else
13432 postdep_objects_CXX="$postdep_objects_CXX $p"
13433 fi
13434 fi
13435 ;;
13436
13437 *) ;; # Ignore the rest.
13438
13439 esac
13440 done
13441
13442 # Clean up.
13443 rm -f a.out a.exe
13444 else
13445 echo "libtool.m4: error: problem compiling CXX test program"
13446 fi
13447
13448 $rm -f confest.$objext
13449
13450 # PORTME: override above test on systems where it is broken
13451 case $host_os in
13452 interix[3-9]*)
13453 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13454 # hack all around it, let's just trust "g++" to DTRT.
13455 predep_objects_CXX=
13456 postdep_objects_CXX=
13457 postdeps_CXX=
13458 ;;
13459
13460 linux*)
13461 case `$CC -V 2>&1 | sed 5q` in
13462 *Sun\ C*)
13463 # Sun C++ 5.9
13464 #
13465 # The more standards-conforming stlport4 library is
13466 # incompatible with the Cstd library. Avoid specifying
13467 # it if it's in CXXFLAGS. Ignore libCrun as
13468 # -library=stlport4 depends on it.
13469 case " $CXX $CXXFLAGS " in
13470 *" -library=stlport4 "*)
13471 solaris_use_stlport4=yes
13472 ;;
13473 esac
13474 if test "$solaris_use_stlport4" != yes; then
13475 postdeps_CXX='-library=Cstd -library=Crun'
13476 fi
13477 ;;
13478 esac
13479 ;;
13480
13481 solaris*)
13482 case $cc_basename in
13483 CC*)
13484 # The more standards-conforming stlport4 library is
13485 # incompatible with the Cstd library. Avoid specifying
13486 # it if it's in CXXFLAGS. Ignore libCrun as
13487 # -library=stlport4 depends on it.
13488 case " $CXX $CXXFLAGS " in
13489 *" -library=stlport4 "*)
13490 solaris_use_stlport4=yes
13491 ;;
13492 esac
13493
13494 # Adding this requires a known-good setup of shared libraries for
13495 # Sun compiler versions before 5.6, else PIC objects from an old
13496 # archive will be linked into the output, leading to subtle bugs.
13497 if test "$solaris_use_stlport4" != yes; then
13498 postdeps_CXX='-library=Cstd -library=Crun'
13499 fi
13500 ;;
13501 esac
13502 ;;
13503 esac
13504
13505
13506 case " $postdeps_CXX " in
13507 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13508 esac
13509
13510 lt_prog_compiler_wl_CXX=
13511 lt_prog_compiler_pic_CXX=
13512 lt_prog_compiler_static_CXX=
13513
13514 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13515 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13516
13517 # C++ specific cases for pic, static, wl, etc.
13518 if test "$GXX" = yes; then
13519 lt_prog_compiler_wl_CXX='-Wl,'
13520 lt_prog_compiler_static_CXX='-static'
13521
13522 case $host_os in
13523 aix*)
13524 # All AIX code is PIC.
13525 if test "$host_cpu" = ia64; then
13526 # AIX 5 now supports IA64 processor
13527 lt_prog_compiler_static_CXX='-Bstatic'
13528 fi
13529 ;;
13530 amigaos*)
13531 # FIXME: we need at least 68020 code to build shared libraries, but
13532 # adding the `-m68020' flag to GCC prevents building anything better,
13533 # like `-m68040'.
13534 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13535 ;;
13536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13537 # PIC is the default for these OSes.
13538 ;;
13539 mingw* | cygwin* | os2* | pw32*)
13540 # This hack is so that the source file can tell whether it is being
13541 # built for inclusion in a dll (and should export symbols for example).
13542 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13543 # (--disable-auto-import) libraries
13544 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13545 ;;
13546 darwin* | rhapsody*)
13547 # PIC is the default on this platform
13548 # Common symbols not allowed in MH_DYLIB files
13549 lt_prog_compiler_pic_CXX='-fno-common'
13550 ;;
13551 *djgpp*)
13552 # DJGPP does not support shared libraries at all
13553 lt_prog_compiler_pic_CXX=
13554 ;;
13555 interix[3-9]*)
13556 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13557 # Instead, we relocate shared libraries at runtime.
13558 ;;
13559 sysv4*MP*)
13560 if test -d /usr/nec; then
13561 lt_prog_compiler_pic_CXX=-Kconform_pic
13562 fi
13563 ;;
13564 hpux*)
13565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13566 # not for PA HP-UX.
13567 case $host_cpu in
13568 hppa*64*|ia64*)
13569 ;;
13570 *)
13571 lt_prog_compiler_pic_CXX='-fPIC'
13572 ;;
13573 esac
13574 ;;
13575 *)
13576 lt_prog_compiler_pic_CXX='-fPIC'
13577 ;;
13578 esac
13579 else
13580 case $host_os in
13581 aix4* | aix5*)
13582 # All AIX code is PIC.
13583 if test "$host_cpu" = ia64; then
13584 # AIX 5 now supports IA64 processor
13585 lt_prog_compiler_static_CXX='-Bstatic'
13586 else
13587 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13588 fi
13589 ;;
13590 chorus*)
13591 case $cc_basename in
13592 cxch68*)
13593 # Green Hills C++ Compiler
13594 # _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"
13595 ;;
13596 esac
13597 ;;
13598 darwin*)
13599 # PIC is the default on this platform
13600 # Common symbols not allowed in MH_DYLIB files
13601 case $cc_basename in
13602 xlc*)
13603 lt_prog_compiler_pic_CXX='-qnocommon'
13604 lt_prog_compiler_wl_CXX='-Wl,'
13605 ;;
13606 esac
13607 ;;
13608 dgux*)
13609 case $cc_basename in
13610 ec++*)
13611 lt_prog_compiler_pic_CXX='-KPIC'
13612 ;;
13613 ghcx*)
13614 # Green Hills C++ Compiler
13615 lt_prog_compiler_pic_CXX='-pic'
13616 ;;
13617 *)
13618 ;;
13619 esac
13620 ;;
13621 freebsd* | dragonfly*)
13622 # FreeBSD uses GNU C++
13623 ;;
13624 hpux9* | hpux10* | hpux11*)
13625 case $cc_basename in
13626 CC*)
13627 lt_prog_compiler_wl_CXX='-Wl,'
13628 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13629 if test "$host_cpu" != ia64; then
13630 lt_prog_compiler_pic_CXX='+Z'
13631 fi
13632 ;;
13633 aCC*)
13634 lt_prog_compiler_wl_CXX='-Wl,'
13635 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13636 case $host_cpu in
13637 hppa*64*|ia64*)
13638 # +Z the default
13639 ;;
13640 *)
13641 lt_prog_compiler_pic_CXX='+Z'
13642 ;;
13643 esac
13644 ;;
13645 *)
13646 ;;
13647 esac
13648 ;;
13649 interix*)
13650 # This is c89, which is MS Visual C++ (no shared libs)
13651 # Anyone wants to do a port?
13652 ;;
13653 irix5* | irix6* | nonstopux*)
13654 case $cc_basename in
13655 CC*)
13656 lt_prog_compiler_wl_CXX='-Wl,'
13657 lt_prog_compiler_static_CXX='-non_shared'
13658 # CC pic flag -KPIC is the default.
13659 ;;
13660 *)
13661 ;;
13662 esac
13663 ;;
13664 linux* | k*bsd*-gnu)
13665 case $cc_basename in
13666 KCC*)
13667 # KAI C++ Compiler
13668 lt_prog_compiler_wl_CXX='--backend -Wl,'
13669 lt_prog_compiler_pic_CXX='-fPIC'
13670 ;;
13671 icpc* | ecpc*)
13672 # Intel C++
13673 lt_prog_compiler_wl_CXX='-Wl,'
13674 lt_prog_compiler_pic_CXX='-KPIC'
13675 lt_prog_compiler_static_CXX='-static'
13676 ;;
13677 pgCC*)
13678 # Portland Group C++ compiler.
13679 lt_prog_compiler_wl_CXX='-Wl,'
13680 lt_prog_compiler_pic_CXX='-fpic'
13681 lt_prog_compiler_static_CXX='-Bstatic'
13682 ;;
13683 cxx*)
13684 # Compaq C++
13685 # Make sure the PIC flag is empty. It appears that all Alpha
13686 # Linux and Compaq Tru64 Unix objects are PIC.
13687 lt_prog_compiler_pic_CXX=
13688 lt_prog_compiler_static_CXX='-non_shared'
13689 ;;
13690 *)
13691 case `$CC -V 2>&1 | sed 5q` in
13692 *Sun\ C*)
13693 # Sun C++ 5.9
13694 lt_prog_compiler_pic_CXX='-KPIC'
13695 lt_prog_compiler_static_CXX='-Bstatic'
13696 lt_prog_compiler_wl_CXX='-Qoption ld '
13697 ;;
13698 esac
13699 ;;
13700 esac
13701 ;;
13702 lynxos*)
13703 ;;
13704 m88k*)
13705 ;;
13706 mvs*)
13707 case $cc_basename in
13708 cxx*)
13709 lt_prog_compiler_pic_CXX='-W c,exportall'
13710 ;;
13711 *)
13712 ;;
13713 esac
13714 ;;
13715 netbsd* | netbsdelf*-gnu)
13716 ;;
13717 osf3* | osf4* | osf5*)
13718 case $cc_basename in
13719 KCC*)
13720 lt_prog_compiler_wl_CXX='--backend -Wl,'
13721 ;;
13722 RCC*)
13723 # Rational C++ 2.4.1
13724 lt_prog_compiler_pic_CXX='-pic'
13725 ;;
13726 cxx*)
13727 # Digital/Compaq C++
13728 lt_prog_compiler_wl_CXX='-Wl,'
13729 # Make sure the PIC flag is empty. It appears that all Alpha
13730 # Linux and Compaq Tru64 Unix objects are PIC.
13731 lt_prog_compiler_pic_CXX=
13732 lt_prog_compiler_static_CXX='-non_shared'
13733 ;;
13734 *)
13735 ;;
13736 esac
13737 ;;
13738 psos*)
13739 ;;
13740 solaris*)
13741 case $cc_basename in
13742 CC*)
13743 # Sun C++ 4.2, 5.x and Centerline C++
13744 lt_prog_compiler_pic_CXX='-KPIC'
13745 lt_prog_compiler_static_CXX='-Bstatic'
13746 lt_prog_compiler_wl_CXX='-Qoption ld '
13747 ;;
13748 gcx*)
13749 # Green Hills C++ Compiler
13750 lt_prog_compiler_pic_CXX='-PIC'
13751 ;;
13752 *)
13753 ;;
13754 esac
13755 ;;
13756 sunos4*)
13757 case $cc_basename in
13758 CC*)
13759 # Sun C++ 4.x
13760 lt_prog_compiler_pic_CXX='-pic'
13761 lt_prog_compiler_static_CXX='-Bstatic'
13762 ;;
13763 lcc*)
13764 # Lucid
13765 lt_prog_compiler_pic_CXX='-pic'
13766 ;;
13767 *)
13768 ;;
13769 esac
13770 ;;
13771 tandem*)
13772 case $cc_basename in
13773 NCC*)
13774 # NonStop-UX NCC 3.20
13775 lt_prog_compiler_pic_CXX='-KPIC'
13776 ;;
13777 *)
13778 ;;
13779 esac
13780 ;;
13781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13782 case $cc_basename in
13783 CC*)
13784 lt_prog_compiler_wl_CXX='-Wl,'
13785 lt_prog_compiler_pic_CXX='-KPIC'
13786 lt_prog_compiler_static_CXX='-Bstatic'
13787 ;;
13788 esac
13789 ;;
13790 vxworks*)
13791 ;;
13792 *)
13793 lt_prog_compiler_can_build_shared_CXX=no
13794 ;;
13795 esac
13796 fi
13797
13798 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13799 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13800
13801 #
13802 # Check to make sure the PIC flag actually works.
13803 #
13804 if test -n "$lt_prog_compiler_pic_CXX"; then
13805
13806 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13807 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13808 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811 lt_prog_compiler_pic_works_CXX=no
13812 ac_outfile=conftest.$ac_objext
13813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13814 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13815 # Insert the option either (1) after the last *FLAGS variable, or
13816 # (2) before a word containing "conftest.", or (3) at the end.
13817 # Note that $ac_compile itself does not contain backslashes and begins
13818 # with a dollar sign (not a hyphen), so the echo should work correctly.
13819 # The option is referenced via a variable to avoid confusing sed.
13820 lt_compile=`echo "$ac_compile" | $SED \
13821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13823 -e 's:$: $lt_compiler_flag:'`
13824 (eval echo "\"\$as_me:13825: $lt_compile\"" >&5)
13825 (eval "$lt_compile" 2>conftest.err)
13826 ac_status=$?
13827 cat conftest.err >&5
13828 echo "$as_me:13829: \$? = $ac_status" >&5
13829 if (exit $ac_status) && test -s "$ac_outfile"; then
13830 # The compiler can only warn and ignore the option if not recognized
13831 # So say no if there are warnings other than the usual output.
13832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13835 lt_prog_compiler_pic_works_CXX=yes
13836 fi
13837 fi
13838 $rm conftest*
13839
13840 fi
13841 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13842 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13843
13844 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13845 case $lt_prog_compiler_pic_CXX in
13846 "" | " "*) ;;
13847 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13848 esac
13849 else
13850 lt_prog_compiler_pic_CXX=
13851 lt_prog_compiler_can_build_shared_CXX=no
13852 fi
13853
13854 fi
13855 case $host_os in
13856 # For platforms which do not support PIC, -DPIC is meaningless:
13857 *djgpp*)
13858 lt_prog_compiler_pic_CXX=
13859 ;;
13860 *)
13861 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13862 ;;
13863 esac
13864
13865 #
13866 # Check to make sure the static flag actually works.
13867 #
13868 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13869 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13870 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13871 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 lt_prog_compiler_static_works_CXX=no
13875 save_LDFLAGS="$LDFLAGS"
13876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13877 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13879 # The linker can only warn and ignore the option if not recognized
13880 # So say no if there are warnings
13881 if test -s conftest.err; then
13882 # Append any errors to the config.log.
13883 cat conftest.err 1>&5
13884 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13886 if diff conftest.exp conftest.er2 >/dev/null; then
13887 lt_prog_compiler_static_works_CXX=yes
13888 fi
13889 else
13890 lt_prog_compiler_static_works_CXX=yes
13891 fi
13892 fi
13893 $rm conftest*
13894 LDFLAGS="$save_LDFLAGS"
13895
13896 fi
13897 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13898 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13899
13900 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13901 :
13902 else
13903 lt_prog_compiler_static_CXX=
13904 fi
13905
13906
13907 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13908 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13909 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 else
13912 lt_cv_prog_compiler_c_o_CXX=no
13913 $rm -r conftest 2>/dev/null
13914 mkdir conftest
13915 cd conftest
13916 mkdir out
13917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13918
13919 lt_compiler_flag="-o out/conftest2.$ac_objext"
13920 # Insert the option either (1) after the last *FLAGS variable, or
13921 # (2) before a word containing "conftest.", or (3) at the end.
13922 # Note that $ac_compile itself does not contain backslashes and begins
13923 # with a dollar sign (not a hyphen), so the echo should work correctly.
13924 lt_compile=`echo "$ac_compile" | $SED \
13925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13927 -e 's:$: $lt_compiler_flag:'`
13928 (eval echo "\"\$as_me:13929: $lt_compile\"" >&5)
13929 (eval "$lt_compile" 2>out/conftest.err)
13930 ac_status=$?
13931 cat out/conftest.err >&5
13932 echo "$as_me:13933: \$? = $ac_status" >&5
13933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13934 then
13935 # The compiler can only warn and ignore the option if not recognized
13936 # So say no if there are warnings
13937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13940 lt_cv_prog_compiler_c_o_CXX=yes
13941 fi
13942 fi
13943 chmod u+w . 2>&5
13944 $rm conftest*
13945 # SGI C++ compiler will create directory out/ii_files/ for
13946 # template instantiation
13947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13948 $rm out/* && rmdir out
13949 cd ..
13950 rmdir conftest
13951 $rm conftest*
13952
13953 fi
13954 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13955 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13956
13957
13958 hard_links="nottested"
13959 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13960 # do not overwrite the value of need_locks provided by the user
13961 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13962 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13963 hard_links=yes
13964 $rm conftest*
13965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13966 touch conftest.a
13967 ln conftest.a conftest.b 2>&5 || hard_links=no
13968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13969 { echo "$as_me:$LINENO: result: $hard_links" >&5
13970 echo "${ECHO_T}$hard_links" >&6; }
13971 if test "$hard_links" = no; then
13972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13973 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13974 need_locks=warn
13975 fi
13976 else
13977 need_locks=no
13978 fi
13979
13980 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13981 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13982
13983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13984 case $host_os in
13985 aix4* | aix5*)
13986 # If we're using GNU nm, then we don't want the "-C" option.
13987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13989 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'
13990 else
13991 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'
13992 fi
13993 ;;
13994 pw32*)
13995 export_symbols_cmds_CXX="$ltdll_cmds"
13996 ;;
13997 cygwin* | mingw*)
13998 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13999 ;;
14000 linux* | k*bsd*-gnu)
14001 link_all_deplibs_CXX=no
14002 ;;
14003 *)
14004 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14005 ;;
14006 esac
14007
14008 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14009 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14010 test "$ld_shlibs_CXX" = no && can_build_shared=no
14011
14012 #
14013 # Do we need to explicitly link libc?
14014 #
14015 case "x$archive_cmds_need_lc_CXX" in
14016 x|xyes)
14017 # Assume -lc should be added
14018 archive_cmds_need_lc_CXX=yes
14019
14020 if test "$enable_shared" = yes && test "$GCC" = yes; then
14021 case $archive_cmds_CXX in
14022 *'~'*)
14023 # FIXME: we may have to deal with multi-command sequences.
14024 ;;
14025 '$CC '*)
14026 # Test whether the compiler implicitly links with -lc since on some
14027 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14028 # to ld, don't add -lc before -lgcc.
14029 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14030 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14031 $rm conftest*
14032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14033
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035 (eval $ac_compile) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } 2>conftest.err; then
14039 soname=conftest
14040 lib=conftest
14041 libobjs=conftest.$ac_objext
14042 deplibs=
14043 wl=$lt_prog_compiler_wl_CXX
14044 pic_flag=$lt_prog_compiler_pic_CXX
14045 compiler_flags=-v
14046 linker_flags=-v
14047 verstring=
14048 output_objdir=.
14049 libname=conftest
14050 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14051 allow_undefined_flag_CXX=
14052 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14053 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }
14057 then
14058 archive_cmds_need_lc_CXX=no
14059 else
14060 archive_cmds_need_lc_CXX=yes
14061 fi
14062 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14063 else
14064 cat conftest.err 1>&5
14065 fi
14066 $rm conftest*
14067 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14068 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14069 ;;
14070 esac
14071 fi
14072 ;;
14073 esac
14074
14075 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14076 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14077 library_names_spec=
14078 libname_spec='lib$name'
14079 soname_spec=
14080 shrext_cmds=".so"
14081 postinstall_cmds=
14082 postuninstall_cmds=
14083 finish_cmds=
14084 finish_eval=
14085 shlibpath_var=
14086 shlibpath_overrides_runpath=unknown
14087 version_type=none
14088 dynamic_linker="$host_os ld.so"
14089 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14090
14091 need_lib_prefix=unknown
14092 hardcode_into_libs=no
14093
14094 # when you set need_version to no, make sure it does not cause -set_version
14095 # flags to be left without arguments
14096 need_version=unknown
14097
14098 case $host_os in
14099 aix3*)
14100 version_type=linux
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14102 shlibpath_var=LIBPATH
14103
14104 # AIX 3 has no versioning support, so we append a major version to the name.
14105 soname_spec='${libname}${release}${shared_ext}$major'
14106 ;;
14107
14108 aix4* | aix5*)
14109 version_type=linux
14110 need_lib_prefix=no
14111 need_version=no
14112 hardcode_into_libs=yes
14113 if test "$host_cpu" = ia64; then
14114 # AIX 5 supports IA64
14115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14116 shlibpath_var=LD_LIBRARY_PATH
14117 else
14118 # With GCC up to 2.95.x, collect2 would create an import file
14119 # for dependence libraries. The import file would start with
14120 # the line `#! .'. This would cause the generated library to
14121 # depend on `.', always an invalid library. This was fixed in
14122 # development snapshots of GCC prior to 3.0.
14123 case $host_os in
14124 aix4 | aix4.[01] | aix4.[01].*)
14125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14126 echo ' yes '
14127 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14128 :
14129 else
14130 can_build_shared=no
14131 fi
14132 ;;
14133 esac
14134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14135 # soname into executable. Probably we can add versioning support to
14136 # collect2, so additional links can be useful in future.
14137 if test "$aix_use_runtimelinking" = yes; then
14138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14139 # instead of lib<name>.a to let people know that these are not
14140 # typical AIX shared libraries.
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142 else
14143 # We preserve .a as extension for shared libraries through AIX4.2
14144 # and later when we are not doing run time linking.
14145 library_names_spec='${libname}${release}.a $libname.a'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 fi
14148 shlibpath_var=LIBPATH
14149 fi
14150 ;;
14151
14152 amigaos*)
14153 library_names_spec='$libname.ixlibrary $libname.a'
14154 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14155 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'
14156 ;;
14157
14158 beos*)
14159 library_names_spec='${libname}${shared_ext}'
14160 dynamic_linker="$host_os ld.so"
14161 shlibpath_var=LIBRARY_PATH
14162 ;;
14163
14164 bsdi[45]*)
14165 version_type=linux
14166 need_version=no
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14172 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14173 # the default ld.so.conf also contains /usr/contrib/lib and
14174 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14175 # libtool to hard-code these into programs
14176 ;;
14177
14178 cygwin* | mingw* | pw32*)
14179 version_type=windows
14180 shrext_cmds=".dll"
14181 need_version=no
14182 need_lib_prefix=no
14183
14184 case $GCC,$host_os in
14185 yes,cygwin* | yes,mingw* | yes,pw32*)
14186 library_names_spec='$libname.dll.a'
14187 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14188 postinstall_cmds='base_file=`basename \${file}`~
14189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14190 dldir=$destdir/`dirname \$dlpath`~
14191 test -d \$dldir || mkdir -p \$dldir~
14192 $install_prog $dir/$dlname \$dldir/$dlname~
14193 chmod a+x \$dldir/$dlname'
14194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14195 dlpath=$dir/\$dldll~
14196 $rm \$dlpath'
14197 shlibpath_overrides_runpath=yes
14198
14199 case $host_os in
14200 cygwin*)
14201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14203 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14204 ;;
14205 mingw*)
14206 # MinGW DLLs use traditional 'lib' prefix
14207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14208 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14209 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14210 # It is most probably a Windows format PATH printed by
14211 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14212 # path with ; separators, and with drive letters. We can handle the
14213 # drive letters (cygwin fileutils understands them), so leave them,
14214 # especially as we might pass files found there to a mingw objdump,
14215 # which wouldn't understand a cygwinified path. Ahh.
14216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14217 else
14218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14219 fi
14220 ;;
14221 pw32*)
14222 # pw32 DLLs use 'pw' prefix rather than 'lib'
14223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14224 ;;
14225 esac
14226 ;;
14227
14228 *)
14229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14230 ;;
14231 esac
14232 dynamic_linker='Win32 ld.exe'
14233 # FIXME: first we should search . and the directory the executable is in
14234 shlibpath_var=PATH
14235 ;;
14236
14237 darwin* | rhapsody*)
14238 dynamic_linker="$host_os dyld"
14239 version_type=darwin
14240 need_lib_prefix=no
14241 need_version=no
14242 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14243 soname_spec='${libname}${release}${major}$shared_ext'
14244 shlibpath_overrides_runpath=yes
14245 shlibpath_var=DYLD_LIBRARY_PATH
14246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14247
14248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14249 ;;
14250
14251 dgux*)
14252 version_type=linux
14253 need_lib_prefix=no
14254 need_version=no
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 shlibpath_var=LD_LIBRARY_PATH
14258 ;;
14259
14260 freebsd1*)
14261 dynamic_linker=no
14262 ;;
14263
14264 freebsd* | dragonfly*)
14265 # DragonFly does not have aout. When/if they implement a new
14266 # versioning mechanism, adjust this.
14267 if test -x /usr/bin/objformat; then
14268 objformat=`/usr/bin/objformat`
14269 else
14270 case $host_os in
14271 freebsd[123]*) objformat=aout ;;
14272 *) objformat=elf ;;
14273 esac
14274 fi
14275 version_type=freebsd-$objformat
14276 case $version_type in
14277 freebsd-elf*)
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14279 need_version=no
14280 need_lib_prefix=no
14281 ;;
14282 freebsd-*)
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14284 need_version=yes
14285 ;;
14286 esac
14287 shlibpath_var=LD_LIBRARY_PATH
14288 case $host_os in
14289 freebsd2*)
14290 shlibpath_overrides_runpath=yes
14291 ;;
14292 freebsd3.[01]* | freebsdelf3.[01]*)
14293 shlibpath_overrides_runpath=yes
14294 hardcode_into_libs=yes
14295 ;;
14296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14298 shlibpath_overrides_runpath=no
14299 hardcode_into_libs=yes
14300 ;;
14301 *) # from 4.6 on, and DragonFly
14302 shlibpath_overrides_runpath=yes
14303 hardcode_into_libs=yes
14304 ;;
14305 esac
14306 ;;
14307
14308 gnu*)
14309 version_type=linux
14310 need_lib_prefix=no
14311 need_version=no
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 hardcode_into_libs=yes
14316 ;;
14317
14318 hpux9* | hpux10* | hpux11*)
14319 # Give a soname corresponding to the major version so that dld.sl refuses to
14320 # link against other versions.
14321 version_type=sunos
14322 need_lib_prefix=no
14323 need_version=no
14324 case $host_cpu in
14325 ia64*)
14326 shrext_cmds='.so'
14327 hardcode_into_libs=yes
14328 dynamic_linker="$host_os dld.so"
14329 shlibpath_var=LD_LIBRARY_PATH
14330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332 soname_spec='${libname}${release}${shared_ext}$major'
14333 if test "X$HPUX_IA64_MODE" = X32; then
14334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14335 else
14336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14337 fi
14338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14339 ;;
14340 hppa*64*)
14341 shrext_cmds='.sl'
14342 hardcode_into_libs=yes
14343 dynamic_linker="$host_os dld.sl"
14344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14350 ;;
14351 *)
14352 shrext_cmds='.sl'
14353 dynamic_linker="$host_os dld.sl"
14354 shlibpath_var=SHLIB_PATH
14355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 ;;
14359 esac
14360 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14361 postinstall_cmds='chmod 555 $lib'
14362 ;;
14363
14364 interix[3-9]*)
14365 version_type=linux
14366 need_lib_prefix=no
14367 need_version=no
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14371 shlibpath_var=LD_LIBRARY_PATH
14372 shlibpath_overrides_runpath=no
14373 hardcode_into_libs=yes
14374 ;;
14375
14376 irix5* | irix6* | nonstopux*)
14377 case $host_os in
14378 nonstopux*) version_type=nonstopux ;;
14379 *)
14380 if test "$lt_cv_prog_gnu_ld" = yes; then
14381 version_type=linux
14382 else
14383 version_type=irix
14384 fi ;;
14385 esac
14386 need_lib_prefix=no
14387 need_version=no
14388 soname_spec='${libname}${release}${shared_ext}$major'
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14390 case $host_os in
14391 irix5* | nonstopux*)
14392 libsuff= shlibsuff=
14393 ;;
14394 *)
14395 case $LD in # libtool.m4 will add one of these switches to LD
14396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14397 libsuff= shlibsuff= libmagic=32-bit;;
14398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14399 libsuff=32 shlibsuff=N32 libmagic=N32;;
14400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14402 *) libsuff= shlibsuff= libmagic=never-match;;
14403 esac
14404 ;;
14405 esac
14406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14407 shlibpath_overrides_runpath=no
14408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14410 hardcode_into_libs=yes
14411 ;;
14412
14413 # No shared lib support for Linux oldld, aout, or coff.
14414 linux*oldld* | linux*aout* | linux*coff*)
14415 dynamic_linker=no
14416 ;;
14417
14418 # This must be Linux ELF.
14419 linux* | k*bsd*-gnu)
14420 version_type=linux
14421 need_lib_prefix=no
14422 need_version=no
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14426 shlibpath_var=LD_LIBRARY_PATH
14427 shlibpath_overrides_runpath=no
14428 # This implies no fast_install, which is unacceptable.
14429 # Some rework will be needed to allow for fast_install
14430 # before this can be enabled.
14431 hardcode_into_libs=yes
14432
14433 # Append ld.so.conf contents to the search path
14434 if test -f /etc/ld.so.conf; then
14435 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14436 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14437 fi
14438
14439 # We used to test for /lib/ld.so.1 and disable shared libraries on
14440 # powerpc, because MkLinux only supported shared libraries with the
14441 # GNU dynamic linker. Since this was broken with cross compilers,
14442 # most powerpc-linux boxes support dynamic linking these days and
14443 # people can always --disable-shared, the test was removed, and we
14444 # assume the GNU/Linux dynamic linker is in use.
14445 dynamic_linker='GNU/Linux ld.so'
14446 ;;
14447
14448 netbsdelf*-gnu)
14449 version_type=linux
14450 need_lib_prefix=no
14451 need_version=no
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 shlibpath_overrides_runpath=no
14456 hardcode_into_libs=yes
14457 dynamic_linker='NetBSD ld.elf_so'
14458 ;;
14459
14460 netbsd*)
14461 version_type=sunos
14462 need_lib_prefix=no
14463 need_version=no
14464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14467 dynamic_linker='NetBSD (a.out) ld.so'
14468 else
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14470 soname_spec='${libname}${release}${shared_ext}$major'
14471 dynamic_linker='NetBSD ld.elf_so'
14472 fi
14473 shlibpath_var=LD_LIBRARY_PATH
14474 shlibpath_overrides_runpath=yes
14475 hardcode_into_libs=yes
14476 ;;
14477
14478 newsos6)
14479 version_type=linux
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 shlibpath_overrides_runpath=yes
14483 ;;
14484
14485 nto-qnx*)
14486 version_type=linux
14487 need_lib_prefix=no
14488 need_version=no
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 shlibpath_overrides_runpath=yes
14493 ;;
14494
14495 openbsd*)
14496 version_type=sunos
14497 sys_lib_dlsearch_path_spec="/usr/lib"
14498 need_lib_prefix=no
14499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14500 case $host_os in
14501 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14502 *) need_version=no ;;
14503 esac
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14506 shlibpath_var=LD_LIBRARY_PATH
14507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14508 case $host_os in
14509 openbsd2.[89] | openbsd2.[89].*)
14510 shlibpath_overrides_runpath=no
14511 ;;
14512 *)
14513 shlibpath_overrides_runpath=yes
14514 ;;
14515 esac
14516 else
14517 shlibpath_overrides_runpath=yes
14518 fi
14519 ;;
14520
14521 os2*)
14522 libname_spec='$name'
14523 shrext_cmds=".dll"
14524 need_lib_prefix=no
14525 library_names_spec='$libname${shared_ext} $libname.a'
14526 dynamic_linker='OS/2 ld.exe'
14527 shlibpath_var=LIBPATH
14528 ;;
14529
14530 osf3* | osf4* | osf5*)
14531 version_type=osf
14532 need_lib_prefix=no
14533 need_version=no
14534 soname_spec='${libname}${release}${shared_ext}$major'
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14539 ;;
14540
14541 rdos*)
14542 dynamic_linker=no
14543 ;;
14544
14545 solaris*)
14546 version_type=linux
14547 need_lib_prefix=no
14548 need_version=no
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes
14553 hardcode_into_libs=yes
14554 # ldd complains unless libraries are executable
14555 postinstall_cmds='chmod +x $lib'
14556 ;;
14557
14558 sunos4*)
14559 version_type=sunos
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 shlibpath_overrides_runpath=yes
14564 if test "$with_gnu_ld" = yes; then
14565 need_lib_prefix=no
14566 fi
14567 need_version=yes
14568 ;;
14569
14570 sysv4 | sysv4.3*)
14571 version_type=linux
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 case $host_vendor in
14576 sni)
14577 shlibpath_overrides_runpath=no
14578 need_lib_prefix=no
14579 export_dynamic_flag_spec='${wl}-Blargedynsym'
14580 runpath_var=LD_RUN_PATH
14581 ;;
14582 siemens)
14583 need_lib_prefix=no
14584 ;;
14585 motorola)
14586 need_lib_prefix=no
14587 need_version=no
14588 shlibpath_overrides_runpath=no
14589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14590 ;;
14591 esac
14592 ;;
14593
14594 sysv4*MP*)
14595 if test -d /usr/nec ;then
14596 version_type=linux
14597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14598 soname_spec='$libname${shared_ext}.$major'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 fi
14601 ;;
14602
14603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14604 version_type=freebsd-elf
14605 need_lib_prefix=no
14606 need_version=no
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 hardcode_into_libs=yes
14611 if test "$with_gnu_ld" = yes; then
14612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14613 shlibpath_overrides_runpath=no
14614 else
14615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14616 shlibpath_overrides_runpath=yes
14617 case $host_os in
14618 sco3.2v5*)
14619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14620 ;;
14621 esac
14622 fi
14623 sys_lib_dlsearch_path_spec='/usr/lib'
14624 ;;
14625
14626 uts4*)
14627 version_type=linux
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 shlibpath_var=LD_LIBRARY_PATH
14631 ;;
14632
14633 *)
14634 dynamic_linker=no
14635 ;;
14636 esac
14637 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14638 echo "${ECHO_T}$dynamic_linker" >&6; }
14639 test "$dynamic_linker" = no && can_build_shared=no
14640
14641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14642 if test "$GCC" = yes; then
14643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14644 fi
14645
14646 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14648 hardcode_action_CXX=
14649 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14650 test -n "$runpath_var_CXX" || \
14651 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14652
14653 # We can hardcode non-existant directories.
14654 if test "$hardcode_direct_CXX" != no &&
14655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14656 # have to relink, otherwise we might link with an installed library
14657 # when we should be linking with a yet-to-be-installed one
14658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14659 test "$hardcode_minus_L_CXX" != no; then
14660 # Linking always hardcodes the temporary library directory.
14661 hardcode_action_CXX=relink
14662 else
14663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14664 hardcode_action_CXX=immediate
14665 fi
14666 else
14667 # We cannot hardcode anything, or else we can only hardcode existing
14668 # directories.
14669 hardcode_action_CXX=unsupported
14670 fi
14671 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14672 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14673
14674 if test "$hardcode_action_CXX" = relink; then
14675 # Fast installation is not supported
14676 enable_fast_install=no
14677 elif test "$shlibpath_overrides_runpath" = yes ||
14678 test "$enable_shared" = no; then
14679 # Fast installation is not necessary
14680 enable_fast_install=needless
14681 fi
14682
14683
14684 # The else clause should only fire when bootstrapping the
14685 # libtool distribution, otherwise you forgot to ship ltmain.sh
14686 # with your package, and you will get complaints that there are
14687 # no rules to generate ltmain.sh.
14688 if test -f "$ltmain"; then
14689 # See if we are running on zsh, and set the options which allow our commands through
14690 # without removal of \ escapes.
14691 if test -n "${ZSH_VERSION+set}" ; then
14692 setopt NO_GLOB_SUBST
14693 fi
14694 # Now quote all the things that may contain metacharacters while being
14695 # careful not to overquote the AC_SUBSTed values. We take copies of the
14696 # variables and quote the copies for generation of the libtool script.
14697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14698 SED SHELL STRIP \
14699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14701 deplibs_check_method reload_flag reload_cmds need_locks \
14702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14703 lt_cv_sys_global_symbol_to_c_name_address \
14704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14705 old_postinstall_cmds old_postuninstall_cmds \
14706 compiler_CXX \
14707 CC_CXX \
14708 LD_CXX \
14709 lt_prog_compiler_wl_CXX \
14710 lt_prog_compiler_pic_CXX \
14711 lt_prog_compiler_static_CXX \
14712 lt_prog_compiler_no_builtin_flag_CXX \
14713 export_dynamic_flag_spec_CXX \
14714 thread_safe_flag_spec_CXX \
14715 whole_archive_flag_spec_CXX \
14716 enable_shared_with_static_runtimes_CXX \
14717 old_archive_cmds_CXX \
14718 old_archive_from_new_cmds_CXX \
14719 predep_objects_CXX \
14720 postdep_objects_CXX \
14721 predeps_CXX \
14722 postdeps_CXX \
14723 compiler_lib_search_path_CXX \
14724 archive_cmds_CXX \
14725 archive_expsym_cmds_CXX \
14726 postinstall_cmds_CXX \
14727 postuninstall_cmds_CXX \
14728 old_archive_from_expsyms_cmds_CXX \
14729 allow_undefined_flag_CXX \
14730 no_undefined_flag_CXX \
14731 export_symbols_cmds_CXX \
14732 hardcode_libdir_flag_spec_CXX \
14733 hardcode_libdir_flag_spec_ld_CXX \
14734 hardcode_libdir_separator_CXX \
14735 hardcode_automatic_CXX \
14736 module_cmds_CXX \
14737 module_expsym_cmds_CXX \
14738 lt_cv_prog_compiler_c_o_CXX \
14739 fix_srcfile_path_CXX \
14740 exclude_expsyms_CXX \
14741 include_expsyms_CXX; do
14742
14743 case $var in
14744 old_archive_cmds_CXX | \
14745 old_archive_from_new_cmds_CXX | \
14746 archive_cmds_CXX | \
14747 archive_expsym_cmds_CXX | \
14748 module_cmds_CXX | \
14749 module_expsym_cmds_CXX | \
14750 old_archive_from_expsyms_cmds_CXX | \
14751 export_symbols_cmds_CXX | \
14752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14753 postinstall_cmds | postuninstall_cmds | \
14754 old_postinstall_cmds | old_postuninstall_cmds | \
14755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14756 # Double-quote double-evaled strings.
14757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14758 ;;
14759 *)
14760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14761 ;;
14762 esac
14763 done
14764
14765 case $lt_echo in
14766 *'\$0 --fallback-echo"')
14767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14768 ;;
14769 esac
14770
14771 cfgfile="$ofile"
14772
14773 cat <<__EOF__ >> "$cfgfile"
14774 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14775
14776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14777
14778 # Shell to use when invoking shell scripts.
14779 SHELL=$lt_SHELL
14780
14781 # Whether or not to build shared libraries.
14782 build_libtool_libs=$enable_shared
14783
14784 # Whether or not to build static libraries.
14785 build_old_libs=$enable_static
14786
14787 # Whether or not to add -lc for building shared libraries.
14788 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14789
14790 # Whether or not to disallow shared libs when runtime libs are static
14791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14792
14793 # Whether or not to optimize for fast installation.
14794 fast_install=$enable_fast_install
14795
14796 # The host system.
14797 host_alias=$host_alias
14798 host=$host
14799 host_os=$host_os
14800
14801 # The build system.
14802 build_alias=$build_alias
14803 build=$build
14804 build_os=$build_os
14805
14806 # An echo program that does not interpret backslashes.
14807 echo=$lt_echo
14808
14809 # The archiver.
14810 AR=$lt_AR
14811 AR_FLAGS=$lt_AR_FLAGS
14812
14813 # A C compiler.
14814 LTCC=$lt_LTCC
14815
14816 # LTCC compiler flags.
14817 LTCFLAGS=$lt_LTCFLAGS
14818
14819 # A language-specific compiler.
14820 CC=$lt_compiler_CXX
14821
14822 # Is the compiler the GNU C compiler?
14823 with_gcc=$GCC_CXX
14824
14825 # An ERE matcher.
14826 EGREP=$lt_EGREP
14827
14828 # The linker used to build libraries.
14829 LD=$lt_LD_CXX
14830
14831 # Whether we need hard or soft links.
14832 LN_S=$lt_LN_S
14833
14834 # A BSD-compatible nm program.
14835 NM=$lt_NM
14836
14837 # A symbol stripping program
14838 STRIP=$lt_STRIP
14839
14840 # Used to examine libraries when file_magic_cmd begins "file"
14841 MAGIC_CMD=$MAGIC_CMD
14842
14843 # Used on cygwin: DLL creation program.
14844 DLLTOOL="$DLLTOOL"
14845
14846 # Used on cygwin: object dumper.
14847 OBJDUMP="$OBJDUMP"
14848
14849 # Used on cygwin: assembler.
14850 AS="$AS"
14851
14852 # The name of the directory that contains temporary libtool files.
14853 objdir=$objdir
14854
14855 # How to create reloadable object files.
14856 reload_flag=$lt_reload_flag
14857 reload_cmds=$lt_reload_cmds
14858
14859 # How to pass a linker flag through the compiler.
14860 wl=$lt_lt_prog_compiler_wl_CXX
14861
14862 # Object file suffix (normally "o").
14863 objext="$ac_objext"
14864
14865 # Old archive suffix (normally "a").
14866 libext="$libext"
14867
14868 # Shared library suffix (normally ".so").
14869 shrext_cmds='$shrext_cmds'
14870
14871 # Executable file suffix (normally "").
14872 exeext="$exeext"
14873
14874 # Additional compiler flags for building library objects.
14875 pic_flag=$lt_lt_prog_compiler_pic_CXX
14876 pic_mode=$pic_mode
14877
14878 # What is the maximum length of a command?
14879 max_cmd_len=$lt_cv_sys_max_cmd_len
14880
14881 # Does compiler simultaneously support -c and -o options?
14882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14883
14884 # Must we lock files when doing compilation?
14885 need_locks=$lt_need_locks
14886
14887 # Do we need the lib prefix for modules?
14888 need_lib_prefix=$need_lib_prefix
14889
14890 # Do we need a version for libraries?
14891 need_version=$need_version
14892
14893 # Whether dlopen is supported.
14894 dlopen_support=$enable_dlopen
14895
14896 # Whether dlopen of programs is supported.
14897 dlopen_self=$enable_dlopen_self
14898
14899 # Whether dlopen of statically linked programs is supported.
14900 dlopen_self_static=$enable_dlopen_self_static
14901
14902 # Compiler flag to prevent dynamic linking.
14903 link_static_flag=$lt_lt_prog_compiler_static_CXX
14904
14905 # Compiler flag to turn off builtin functions.
14906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14907
14908 # Compiler flag to allow reflexive dlopens.
14909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14910
14911 # Compiler flag to generate shared objects directly from archives.
14912 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14913
14914 # Compiler flag to generate thread-safe objects.
14915 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14916
14917 # Library versioning type.
14918 version_type=$version_type
14919
14920 # Format of library name prefix.
14921 libname_spec=$lt_libname_spec
14922
14923 # List of archive names. First name is the real one, the rest are links.
14924 # The last name is the one that the linker finds with -lNAME.
14925 library_names_spec=$lt_library_names_spec
14926
14927 # The coded name of the library, if different from the real name.
14928 soname_spec=$lt_soname_spec
14929
14930 # Commands used to build and install an old-style archive.
14931 RANLIB=$lt_RANLIB
14932 old_archive_cmds=$lt_old_archive_cmds_CXX
14933 old_postinstall_cmds=$lt_old_postinstall_cmds
14934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14935
14936 # Create an old-style archive from a shared archive.
14937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14938
14939 # Create a temporary old-style archive to link instead of a shared archive.
14940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14941
14942 # Commands used to build and install a shared archive.
14943 archive_cmds=$lt_archive_cmds_CXX
14944 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14945 postinstall_cmds=$lt_postinstall_cmds
14946 postuninstall_cmds=$lt_postuninstall_cmds
14947
14948 # Commands used to build a loadable module (assumed same as above if empty)
14949 module_cmds=$lt_module_cmds_CXX
14950 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14951
14952 # Commands to strip libraries.
14953 old_striplib=$lt_old_striplib
14954 striplib=$lt_striplib
14955
14956 # Dependencies to place before the objects being linked to create a
14957 # shared library.
14958 predep_objects=$lt_predep_objects_CXX
14959
14960 # Dependencies to place after the objects being linked to create a
14961 # shared library.
14962 postdep_objects=$lt_postdep_objects_CXX
14963
14964 # Dependencies to place before the objects being linked to create a
14965 # shared library.
14966 predeps=$lt_predeps_CXX
14967
14968 # Dependencies to place after the objects being linked to create a
14969 # shared library.
14970 postdeps=$lt_postdeps_CXX
14971
14972 # The library search path used internally by the compiler when linking
14973 # a shared library.
14974 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14975
14976 # Method to check whether dependent libraries are shared objects.
14977 deplibs_check_method=$lt_deplibs_check_method
14978
14979 # Command to use when deplibs_check_method == file_magic.
14980 file_magic_cmd=$lt_file_magic_cmd
14981
14982 # Flag that allows shared libraries with undefined symbols to be built.
14983 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14984
14985 # Flag that forces no undefined symbols.
14986 no_undefined_flag=$lt_no_undefined_flag_CXX
14987
14988 # Commands used to finish a libtool library installation in a directory.
14989 finish_cmds=$lt_finish_cmds
14990
14991 # Same as above, but a single script fragment to be evaled but not shown.
14992 finish_eval=$lt_finish_eval
14993
14994 # Take the output of nm and produce a listing of raw symbols and C names.
14995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14996
14997 # Transform the output of nm in a proper C declaration
14998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14999
15000 # Transform the output of nm in a C name address pair
15001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15002
15003 # This is the shared library runtime path variable.
15004 runpath_var=$runpath_var
15005
15006 # This is the shared library path variable.
15007 shlibpath_var=$shlibpath_var
15008
15009 # Is shlibpath searched before the hard-coded library search path?
15010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15011
15012 # How to hardcode a shared library path into an executable.
15013 hardcode_action=$hardcode_action_CXX
15014
15015 # Whether we should hardcode library paths into libraries.
15016 hardcode_into_libs=$hardcode_into_libs
15017
15018 # Flag to hardcode \$libdir into a binary during linking.
15019 # This must work even if \$libdir does not exist.
15020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15021
15022 # If ld is used when linking, flag to hardcode \$libdir into
15023 # a binary during linking. This must work even if \$libdir does
15024 # not exist.
15025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15026
15027 # Whether we need a single -rpath flag with a separated argument.
15028 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15029
15030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15031 # resulting binary.
15032 hardcode_direct=$hardcode_direct_CXX
15033
15034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15035 # resulting binary.
15036 hardcode_minus_L=$hardcode_minus_L_CXX
15037
15038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15039 # the resulting binary.
15040 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15041
15042 # Set to yes if building a shared library automatically hardcodes DIR into the library
15043 # and all subsequent libraries and executables linked against it.
15044 hardcode_automatic=$hardcode_automatic_CXX
15045
15046 # Variables whose values should be saved in libtool wrapper scripts and
15047 # restored at relink time.
15048 variables_saved_for_relink="$variables_saved_for_relink"
15049
15050 # Whether libtool must link a program against all its dependency libraries.
15051 link_all_deplibs=$link_all_deplibs_CXX
15052
15053 # Compile-time system search path for libraries
15054 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15055
15056 # Run-time system search path for libraries
15057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15058
15059 # Fix the shell variable \$srcfile for the compiler.
15060 fix_srcfile_path=$lt_fix_srcfile_path
15061
15062 # Set to yes if exported symbols are required.
15063 always_export_symbols=$always_export_symbols_CXX
15064
15065 # The commands to list exported symbols.
15066 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15067
15068 # The commands to extract the exported symbol list from a shared archive.
15069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15070
15071 # Symbols that should not be listed in the preloaded symbols.
15072 exclude_expsyms=$lt_exclude_expsyms_CXX
15073
15074 # Symbols that must always be exported.
15075 include_expsyms=$lt_include_expsyms_CXX
15076
15077 # ### END LIBTOOL TAG CONFIG: $tagname
15078
15079 __EOF__
15080
15081
15082 else
15083 # If there is no Makefile yet, we rely on a make rule to execute
15084 # `config.status --recheck' to rerun these tests and create the
15085 # libtool script then.
15086 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15087 if test -f "$ltmain_in"; then
15088 test -f Makefile && make "$ltmain"
15089 fi
15090 fi
15091
15092
15093 ac_ext=c
15094 ac_cpp='$CPP $CPPFLAGS'
15095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15098
15099 CC=$lt_save_CC
15100 LDCXX=$LD
15101 LD=$lt_save_LD
15102 GCC=$lt_save_GCC
15103 with_gnu_ldcxx=$with_gnu_ld
15104 with_gnu_ld=$lt_save_with_gnu_ld
15105 lt_cv_path_LDCXX=$lt_cv_path_LD
15106 lt_cv_path_LD=$lt_save_path_LD
15107 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15108 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15109
15110 else
15111 tagname=""
15112 fi
15113 ;;
15114
15115 F77)
15116 if test -n "$F77" && test "X$F77" != "Xno"; then
15117
15118 ac_ext=f
15119 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15120 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15121 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15122
15123
15124 archive_cmds_need_lc_F77=no
15125 allow_undefined_flag_F77=
15126 always_export_symbols_F77=no
15127 archive_expsym_cmds_F77=
15128 export_dynamic_flag_spec_F77=
15129 hardcode_direct_F77=no
15130 hardcode_libdir_flag_spec_F77=
15131 hardcode_libdir_flag_spec_ld_F77=
15132 hardcode_libdir_separator_F77=
15133 hardcode_minus_L_F77=no
15134 hardcode_automatic_F77=no
15135 module_cmds_F77=
15136 module_expsym_cmds_F77=
15137 link_all_deplibs_F77=unknown
15138 old_archive_cmds_F77=$old_archive_cmds
15139 no_undefined_flag_F77=
15140 whole_archive_flag_spec_F77=
15141 enable_shared_with_static_runtimes_F77=no
15142
15143 # Source file extension for f77 test sources.
15144 ac_ext=f
15145
15146 # Object file extension for compiled f77 test sources.
15147 objext=o
15148 objext_F77=$objext
15149
15150 # Code to be used in simple compile tests
15151 lt_simple_compile_test_code="\
15152 subroutine t
15153 return
15154 end
15155 "
15156
15157 # Code to be used in simple link tests
15158 lt_simple_link_test_code="\
15159 program t
15160 end
15161 "
15162
15163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15164
15165 # If no C compiler was specified, use CC.
15166 LTCC=${LTCC-"$CC"}
15167
15168 # If no C compiler flags were specified, use CFLAGS.
15169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15170
15171 # Allow CC to be a program name with arguments.
15172 compiler=$CC
15173
15174
15175 # save warnings/boilerplate of simple test code
15176 ac_outfile=conftest.$ac_objext
15177 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15178 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15179 _lt_compiler_boilerplate=`cat conftest.err`
15180 $rm conftest*
15181
15182 ac_outfile=conftest.$ac_objext
15183 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15184 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15185 _lt_linker_boilerplate=`cat conftest.err`
15186 $rm conftest*
15187
15188
15189 # Allow CC to be a program name with arguments.
15190 lt_save_CC="$CC"
15191 CC=${F77-"f77"}
15192 compiler=$CC
15193 compiler_F77=$CC
15194 for cc_temp in $compiler""; do
15195 case $cc_temp in
15196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15198 \-*) ;;
15199 *) break;;
15200 esac
15201 done
15202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15203
15204
15205 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15206 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15207 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15208 echo "${ECHO_T}$can_build_shared" >&6; }
15209
15210 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15211 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15212 test "$can_build_shared" = "no" && enable_shared=no
15213
15214 # On AIX, shared libraries and static libraries use the same namespace, and
15215 # are all built from PIC.
15216 case $host_os in
15217 aix3*)
15218 test "$enable_shared" = yes && enable_static=no
15219 if test -n "$RANLIB"; then
15220 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15221 postinstall_cmds='$RANLIB $lib'
15222 fi
15223 ;;
15224 aix4* | aix5*)
15225 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15226 test "$enable_shared" = yes && enable_static=no
15227 fi
15228 ;;
15229 esac
15230 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15231 echo "${ECHO_T}$enable_shared" >&6; }
15232
15233 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15234 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15235 # Make sure either enable_shared or enable_static is yes.
15236 test "$enable_shared" = yes || enable_static=yes
15237 { echo "$as_me:$LINENO: result: $enable_static" >&5
15238 echo "${ECHO_T}$enable_static" >&6; }
15239
15240 GCC_F77="$G77"
15241 LD_F77="$LD"
15242
15243 lt_prog_compiler_wl_F77=
15244 lt_prog_compiler_pic_F77=
15245 lt_prog_compiler_static_F77=
15246
15247 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15248 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15249
15250 if test "$GCC" = yes; then
15251 lt_prog_compiler_wl_F77='-Wl,'
15252 lt_prog_compiler_static_F77='-static'
15253
15254 case $host_os in
15255 aix*)
15256 # All AIX code is PIC.
15257 if test "$host_cpu" = ia64; then
15258 # AIX 5 now supports IA64 processor
15259 lt_prog_compiler_static_F77='-Bstatic'
15260 fi
15261 ;;
15262
15263 amigaos*)
15264 # FIXME: we need at least 68020 code to build shared libraries, but
15265 # adding the `-m68020' flag to GCC prevents building anything better,
15266 # like `-m68040'.
15267 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15268 ;;
15269
15270 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15271 # PIC is the default for these OSes.
15272 ;;
15273
15274 mingw* | cygwin* | pw32* | os2*)
15275 # This hack is so that the source file can tell whether it is being
15276 # built for inclusion in a dll (and should export symbols for example).
15277 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15278 # (--disable-auto-import) libraries
15279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15280 ;;
15281
15282 darwin* | rhapsody*)
15283 # PIC is the default on this platform
15284 # Common symbols not allowed in MH_DYLIB files
15285 lt_prog_compiler_pic_F77='-fno-common'
15286 ;;
15287
15288 interix[3-9]*)
15289 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15290 # Instead, we relocate shared libraries at runtime.
15291 ;;
15292
15293 msdosdjgpp*)
15294 # Just because we use GCC doesn't mean we suddenly get shared libraries
15295 # on systems that don't support them.
15296 lt_prog_compiler_can_build_shared_F77=no
15297 enable_shared=no
15298 ;;
15299
15300 sysv4*MP*)
15301 if test -d /usr/nec; then
15302 lt_prog_compiler_pic_F77=-Kconform_pic
15303 fi
15304 ;;
15305
15306 hpux*)
15307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15308 # not for PA HP-UX.
15309 case $host_cpu in
15310 hppa*64*|ia64*)
15311 # +Z the default
15312 ;;
15313 *)
15314 lt_prog_compiler_pic_F77='-fPIC'
15315 ;;
15316 esac
15317 ;;
15318
15319 *)
15320 lt_prog_compiler_pic_F77='-fPIC'
15321 ;;
15322 esac
15323 else
15324 # PORTME Check for flag to pass linker flags through the system compiler.
15325 case $host_os in
15326 aix*)
15327 lt_prog_compiler_wl_F77='-Wl,'
15328 if test "$host_cpu" = ia64; then
15329 # AIX 5 now supports IA64 processor
15330 lt_prog_compiler_static_F77='-Bstatic'
15331 else
15332 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15333 fi
15334 ;;
15335 darwin*)
15336 # PIC is the default on this platform
15337 # Common symbols not allowed in MH_DYLIB files
15338 case $cc_basename in
15339 xlc*)
15340 lt_prog_compiler_pic_F77='-qnocommon'
15341 lt_prog_compiler_wl_F77='-Wl,'
15342 ;;
15343 esac
15344 ;;
15345
15346 mingw* | cygwin* | pw32* | os2*)
15347 # This hack is so that the source file can tell whether it is being
15348 # built for inclusion in a dll (and should export symbols for example).
15349 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15350 ;;
15351
15352 hpux9* | hpux10* | hpux11*)
15353 lt_prog_compiler_wl_F77='-Wl,'
15354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15355 # not for PA HP-UX.
15356 case $host_cpu in
15357 hppa*64*|ia64*)
15358 # +Z the default
15359 ;;
15360 *)
15361 lt_prog_compiler_pic_F77='+Z'
15362 ;;
15363 esac
15364 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15365 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15366 ;;
15367
15368 irix5* | irix6* | nonstopux*)
15369 lt_prog_compiler_wl_F77='-Wl,'
15370 # PIC (with -KPIC) is the default.
15371 lt_prog_compiler_static_F77='-non_shared'
15372 ;;
15373
15374 newsos6)
15375 lt_prog_compiler_pic_F77='-KPIC'
15376 lt_prog_compiler_static_F77='-Bstatic'
15377 ;;
15378
15379 linux* | k*bsd*-gnu)
15380 case $cc_basename in
15381 icc* | ecc*)
15382 lt_prog_compiler_wl_F77='-Wl,'
15383 lt_prog_compiler_pic_F77='-KPIC'
15384 lt_prog_compiler_static_F77='-static'
15385 ;;
15386 pgcc* | pgf77* | pgf90* | pgf95*)
15387 # Portland Group compilers (*not* the Pentium gcc compiler,
15388 # which looks to be a dead project)
15389 lt_prog_compiler_wl_F77='-Wl,'
15390 lt_prog_compiler_pic_F77='-fpic'
15391 lt_prog_compiler_static_F77='-Bstatic'
15392 ;;
15393 ccc*)
15394 lt_prog_compiler_wl_F77='-Wl,'
15395 # All Alpha code is PIC.
15396 lt_prog_compiler_static_F77='-non_shared'
15397 ;;
15398 *)
15399 case `$CC -V 2>&1 | sed 5q` in
15400 *Sun\ C*)
15401 # Sun C 5.9
15402 lt_prog_compiler_pic_F77='-KPIC'
15403 lt_prog_compiler_static_F77='-Bstatic'
15404 lt_prog_compiler_wl_F77='-Wl,'
15405 ;;
15406 *Sun\ F*)
15407 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15408 lt_prog_compiler_pic_F77='-KPIC'
15409 lt_prog_compiler_static_F77='-Bstatic'
15410 lt_prog_compiler_wl_F77=''
15411 ;;
15412 esac
15413 ;;
15414 esac
15415 ;;
15416
15417 osf3* | osf4* | osf5*)
15418 lt_prog_compiler_wl_F77='-Wl,'
15419 # All OSF/1 code is PIC.
15420 lt_prog_compiler_static_F77='-non_shared'
15421 ;;
15422
15423 rdos*)
15424 lt_prog_compiler_static_F77='-non_shared'
15425 ;;
15426
15427 solaris*)
15428 lt_prog_compiler_pic_F77='-KPIC'
15429 lt_prog_compiler_static_F77='-Bstatic'
15430 case $cc_basename in
15431 f77* | f90* | f95*)
15432 lt_prog_compiler_wl_F77='-Qoption ld ';;
15433 *)
15434 lt_prog_compiler_wl_F77='-Wl,';;
15435 esac
15436 ;;
15437
15438 sunos4*)
15439 lt_prog_compiler_wl_F77='-Qoption ld '
15440 lt_prog_compiler_pic_F77='-PIC'
15441 lt_prog_compiler_static_F77='-Bstatic'
15442 ;;
15443
15444 sysv4 | sysv4.2uw2* | sysv4.3*)
15445 lt_prog_compiler_wl_F77='-Wl,'
15446 lt_prog_compiler_pic_F77='-KPIC'
15447 lt_prog_compiler_static_F77='-Bstatic'
15448 ;;
15449
15450 sysv4*MP*)
15451 if test -d /usr/nec ;then
15452 lt_prog_compiler_pic_F77='-Kconform_pic'
15453 lt_prog_compiler_static_F77='-Bstatic'
15454 fi
15455 ;;
15456
15457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15458 lt_prog_compiler_wl_F77='-Wl,'
15459 lt_prog_compiler_pic_F77='-KPIC'
15460 lt_prog_compiler_static_F77='-Bstatic'
15461 ;;
15462
15463 unicos*)
15464 lt_prog_compiler_wl_F77='-Wl,'
15465 lt_prog_compiler_can_build_shared_F77=no
15466 ;;
15467
15468 uts4*)
15469 lt_prog_compiler_pic_F77='-pic'
15470 lt_prog_compiler_static_F77='-Bstatic'
15471 ;;
15472
15473 *)
15474 lt_prog_compiler_can_build_shared_F77=no
15475 ;;
15476 esac
15477 fi
15478
15479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15480 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15481
15482 #
15483 # Check to make sure the PIC flag actually works.
15484 #
15485 if test -n "$lt_prog_compiler_pic_F77"; then
15486
15487 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15488 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15489 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 lt_prog_compiler_pic_works_F77=no
15493 ac_outfile=conftest.$ac_objext
15494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15495 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15496 # Insert the option either (1) after the last *FLAGS variable, or
15497 # (2) before a word containing "conftest.", or (3) at the end.
15498 # Note that $ac_compile itself does not contain backslashes and begins
15499 # with a dollar sign (not a hyphen), so the echo should work correctly.
15500 # The option is referenced via a variable to avoid confusing sed.
15501 lt_compile=`echo "$ac_compile" | $SED \
15502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504 -e 's:$: $lt_compiler_flag:'`
15505 (eval echo "\"\$as_me:15506: $lt_compile\"" >&5)
15506 (eval "$lt_compile" 2>conftest.err)
15507 ac_status=$?
15508 cat conftest.err >&5
15509 echo "$as_me:15510: \$? = $ac_status" >&5
15510 if (exit $ac_status) && test -s "$ac_outfile"; then
15511 # The compiler can only warn and ignore the option if not recognized
15512 # So say no if there are warnings other than the usual output.
15513 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15516 lt_prog_compiler_pic_works_F77=yes
15517 fi
15518 fi
15519 $rm conftest*
15520
15521 fi
15522 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15523 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15524
15525 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15526 case $lt_prog_compiler_pic_F77 in
15527 "" | " "*) ;;
15528 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15529 esac
15530 else
15531 lt_prog_compiler_pic_F77=
15532 lt_prog_compiler_can_build_shared_F77=no
15533 fi
15534
15535 fi
15536 case $host_os in
15537 # For platforms which do not support PIC, -DPIC is meaningless:
15538 *djgpp*)
15539 lt_prog_compiler_pic_F77=
15540 ;;
15541 *)
15542 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15543 ;;
15544 esac
15545
15546 #
15547 # Check to make sure the static flag actually works.
15548 #
15549 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15550 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15551 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15552 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 else
15555 lt_prog_compiler_static_works_F77=no
15556 save_LDFLAGS="$LDFLAGS"
15557 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15558 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15560 # The linker can only warn and ignore the option if not recognized
15561 # So say no if there are warnings
15562 if test -s conftest.err; then
15563 # Append any errors to the config.log.
15564 cat conftest.err 1>&5
15565 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15567 if diff conftest.exp conftest.er2 >/dev/null; then
15568 lt_prog_compiler_static_works_F77=yes
15569 fi
15570 else
15571 lt_prog_compiler_static_works_F77=yes
15572 fi
15573 fi
15574 $rm conftest*
15575 LDFLAGS="$save_LDFLAGS"
15576
15577 fi
15578 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15579 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15580
15581 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15582 :
15583 else
15584 lt_prog_compiler_static_F77=
15585 fi
15586
15587
15588 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15589 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15590 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593 lt_cv_prog_compiler_c_o_F77=no
15594 $rm -r conftest 2>/dev/null
15595 mkdir conftest
15596 cd conftest
15597 mkdir out
15598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15599
15600 lt_compiler_flag="-o out/conftest2.$ac_objext"
15601 # Insert the option either (1) after the last *FLAGS variable, or
15602 # (2) before a word containing "conftest.", or (3) at the end.
15603 # Note that $ac_compile itself does not contain backslashes and begins
15604 # with a dollar sign (not a hyphen), so the echo should work correctly.
15605 lt_compile=`echo "$ac_compile" | $SED \
15606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15608 -e 's:$: $lt_compiler_flag:'`
15609 (eval echo "\"\$as_me:15610: $lt_compile\"" >&5)
15610 (eval "$lt_compile" 2>out/conftest.err)
15611 ac_status=$?
15612 cat out/conftest.err >&5
15613 echo "$as_me:15614: \$? = $ac_status" >&5
15614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15615 then
15616 # The compiler can only warn and ignore the option if not recognized
15617 # So say no if there are warnings
15618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15621 lt_cv_prog_compiler_c_o_F77=yes
15622 fi
15623 fi
15624 chmod u+w . 2>&5
15625 $rm conftest*
15626 # SGI C++ compiler will create directory out/ii_files/ for
15627 # template instantiation
15628 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15629 $rm out/* && rmdir out
15630 cd ..
15631 rmdir conftest
15632 $rm conftest*
15633
15634 fi
15635 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15636 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15637
15638
15639 hard_links="nottested"
15640 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15641 # do not overwrite the value of need_locks provided by the user
15642 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15643 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15644 hard_links=yes
15645 $rm conftest*
15646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15647 touch conftest.a
15648 ln conftest.a conftest.b 2>&5 || hard_links=no
15649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15650 { echo "$as_me:$LINENO: result: $hard_links" >&5
15651 echo "${ECHO_T}$hard_links" >&6; }
15652 if test "$hard_links" = no; then
15653 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15654 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15655 need_locks=warn
15656 fi
15657 else
15658 need_locks=no
15659 fi
15660
15661 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15662 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15663
15664 runpath_var=
15665 allow_undefined_flag_F77=
15666 enable_shared_with_static_runtimes_F77=no
15667 archive_cmds_F77=
15668 archive_expsym_cmds_F77=
15669 old_archive_From_new_cmds_F77=
15670 old_archive_from_expsyms_cmds_F77=
15671 export_dynamic_flag_spec_F77=
15672 whole_archive_flag_spec_F77=
15673 thread_safe_flag_spec_F77=
15674 hardcode_libdir_flag_spec_F77=
15675 hardcode_libdir_flag_spec_ld_F77=
15676 hardcode_libdir_separator_F77=
15677 hardcode_direct_F77=no
15678 hardcode_minus_L_F77=no
15679 hardcode_shlibpath_var_F77=unsupported
15680 link_all_deplibs_F77=unknown
15681 hardcode_automatic_F77=no
15682 module_cmds_F77=
15683 module_expsym_cmds_F77=
15684 always_export_symbols_F77=no
15685 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15686 # include_expsyms should be a list of space-separated symbols to be *always*
15687 # included in the symbol list
15688 include_expsyms_F77=
15689 # exclude_expsyms can be an extended regexp of symbols to exclude
15690 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15691 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15692 # as well as any symbol that contains `d'.
15693 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15695 # platforms (ab)use it in PIC code, but their linkers get confused if
15696 # the symbol is explicitly referenced. Since portable code cannot
15697 # rely on this symbol name, it's probably fine to never include it in
15698 # preloaded symbol tables.
15699 extract_expsyms_cmds=
15700 # Just being paranoid about ensuring that cc_basename is set.
15701 for cc_temp in $compiler""; do
15702 case $cc_temp in
15703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15705 \-*) ;;
15706 *) break;;
15707 esac
15708 done
15709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15710
15711 case $host_os in
15712 cygwin* | mingw* | pw32*)
15713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15714 # When not using gcc, we currently assume that we are using
15715 # Microsoft Visual C++.
15716 if test "$GCC" != yes; then
15717 with_gnu_ld=no
15718 fi
15719 ;;
15720 interix*)
15721 # we just hope/assume this is gcc and not c89 (= MSVC++)
15722 with_gnu_ld=yes
15723 ;;
15724 openbsd*)
15725 with_gnu_ld=no
15726 ;;
15727 esac
15728
15729 ld_shlibs_F77=yes
15730 if test "$with_gnu_ld" = yes; then
15731 # If archive_cmds runs LD, not CC, wlarc should be empty
15732 wlarc='${wl}'
15733
15734 # Set some defaults for GNU ld with shared library support. These
15735 # are reset later if shared libraries are not supported. Putting them
15736 # here allows them to be overridden if necessary.
15737 runpath_var=LD_RUN_PATH
15738 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15739 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15740 # ancient GNU ld didn't support --whole-archive et. al.
15741 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15742 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15743 else
15744 whole_archive_flag_spec_F77=
15745 fi
15746 supports_anon_versioning=no
15747 case `$LD -v 2>/dev/null` in
15748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15750 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15751 *\ 2.11.*) ;; # other 2.11 versions
15752 *) supports_anon_versioning=yes ;;
15753 esac
15754
15755 # See if GNU ld supports shared libraries.
15756 case $host_os in
15757 aix3* | aix4* | aix5*)
15758 # On AIX/PPC, the GNU linker is very broken
15759 if test "$host_cpu" != ia64; then
15760 ld_shlibs_F77=no
15761 cat <<EOF 1>&2
15762
15763 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15764 *** to be unable to reliably create shared libraries on AIX.
15765 *** Therefore, libtool is disabling shared libraries support. If you
15766 *** really care for shared libraries, you may want to modify your PATH
15767 *** so that a non-GNU linker is found, and then restart.
15768
15769 EOF
15770 fi
15771 ;;
15772
15773 amigaos*)
15774 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)'
15775 hardcode_libdir_flag_spec_F77='-L$libdir'
15776 hardcode_minus_L_F77=yes
15777
15778 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15779 # that the semantics of dynamic libraries on AmigaOS, at least up
15780 # to version 4, is to share data among multiple programs linked
15781 # with the same dynamic library. Since this doesn't match the
15782 # behavior of shared libraries on other platforms, we can't use
15783 # them.
15784 ld_shlibs_F77=no
15785 ;;
15786
15787 beos*)
15788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15789 allow_undefined_flag_F77=unsupported
15790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15791 # support --undefined. This deserves some investigation. FIXME
15792 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15793 else
15794 ld_shlibs_F77=no
15795 fi
15796 ;;
15797
15798 cygwin* | mingw* | pw32*)
15799 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15800 # as there is no search path for DLLs.
15801 hardcode_libdir_flag_spec_F77='-L$libdir'
15802 allow_undefined_flag_F77=unsupported
15803 always_export_symbols_F77=no
15804 enable_shared_with_static_runtimes_F77=yes
15805 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15806
15807 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15808 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15809 # If the export-symbols file already is a .def file (1st line
15810 # is EXPORTS), use it as is; otherwise, prepend...
15811 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15812 cp $export_symbols $output_objdir/$soname.def;
15813 else
15814 echo EXPORTS > $output_objdir/$soname.def;
15815 cat $export_symbols >> $output_objdir/$soname.def;
15816 fi~
15817 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15818 else
15819 ld_shlibs_F77=no
15820 fi
15821 ;;
15822
15823 interix[3-9]*)
15824 hardcode_direct_F77=no
15825 hardcode_shlibpath_var_F77=no
15826 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15827 export_dynamic_flag_spec_F77='${wl}-E'
15828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15829 # Instead, shared libraries are loaded at an image base (0x10000000 by
15830 # default) and relocated if they conflict, which is a slow very memory
15831 # consuming and fragmenting process. To avoid this, we pick a random,
15832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15834 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15835 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15836 ;;
15837
15838 gnu* | linux* | k*bsd*-gnu)
15839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15840 tmp_addflag=
15841 case $cc_basename,$host_cpu in
15842 pgcc*) # Portland Group C compiler
15843 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15844 tmp_addflag=' $pic_flag'
15845 ;;
15846 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15847 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15848 tmp_addflag=' $pic_flag -Mnomain' ;;
15849 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15850 tmp_addflag=' -i_dynamic' ;;
15851 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15852 tmp_addflag=' -i_dynamic -nofor_main' ;;
15853 ifc* | ifort*) # Intel Fortran compiler
15854 tmp_addflag=' -nofor_main' ;;
15855 esac
15856 case `$CC -V 2>&1 | sed 5q` in
15857 *Sun\ C*) # Sun C 5.9
15858 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15859 tmp_sharedflag='-G' ;;
15860 *Sun\ F*) # Sun Fortran 8.3
15861 tmp_sharedflag='-G' ;;
15862 *)
15863 tmp_sharedflag='-shared' ;;
15864 esac
15865 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15866
15867 if test $supports_anon_versioning = yes; then
15868 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15870 $echo "local: *; };" >> $output_objdir/$libname.ver~
15871 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15872 fi
15873 link_all_deplibs_F77=no
15874 else
15875 ld_shlibs_F77=no
15876 fi
15877 ;;
15878
15879 netbsd* | netbsdelf*-gnu)
15880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15881 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15882 wlarc=
15883 else
15884 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15885 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15886 fi
15887 ;;
15888
15889 solaris*)
15890 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15891 ld_shlibs_F77=no
15892 cat <<EOF 1>&2
15893
15894 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15895 *** create shared libraries on Solaris systems. Therefore, libtool
15896 *** is disabling shared libraries support. We urge you to upgrade GNU
15897 *** binutils to release 2.9.1 or newer. Another option is to modify
15898 *** your PATH or compiler configuration so that the native linker is
15899 *** used, and then restart.
15900
15901 EOF
15902 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15904 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15905 else
15906 ld_shlibs_F77=no
15907 fi
15908 ;;
15909
15910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15911 case `$LD -v 2>&1` in
15912 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15913 ld_shlibs_F77=no
15914 cat <<_LT_EOF 1>&2
15915
15916 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15917 *** reliably create shared libraries on SCO systems. Therefore, libtool
15918 *** is disabling shared libraries support. We urge you to upgrade GNU
15919 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15920 *** your PATH or compiler configuration so that the native linker is
15921 *** used, and then restart.
15922
15923 _LT_EOF
15924 ;;
15925 *)
15926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15927 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15928 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15929 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15930 else
15931 ld_shlibs_F77=no
15932 fi
15933 ;;
15934 esac
15935 ;;
15936
15937 sunos4*)
15938 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15939 wlarc=
15940 hardcode_direct_F77=yes
15941 hardcode_shlibpath_var_F77=no
15942 ;;
15943
15944 *)
15945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15946 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15947 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15948 else
15949 ld_shlibs_F77=no
15950 fi
15951 ;;
15952 esac
15953
15954 if test "$ld_shlibs_F77" = no; then
15955 runpath_var=
15956 hardcode_libdir_flag_spec_F77=
15957 export_dynamic_flag_spec_F77=
15958 whole_archive_flag_spec_F77=
15959 fi
15960 else
15961 # PORTME fill in a description of your system's linker (not GNU ld)
15962 case $host_os in
15963 aix3*)
15964 allow_undefined_flag_F77=unsupported
15965 always_export_symbols_F77=yes
15966 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'
15967 # Note: this linker hardcodes the directories in LIBPATH if there
15968 # are no directories specified by -L.
15969 hardcode_minus_L_F77=yes
15970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15971 # Neither direct hardcoding nor static linking is supported with a
15972 # broken collect2.
15973 hardcode_direct_F77=unsupported
15974 fi
15975 ;;
15976
15977 aix4* | aix5*)
15978 if test "$host_cpu" = ia64; then
15979 # On IA64, the linker does run time linking by default, so we don't
15980 # have to do anything special.
15981 aix_use_runtimelinking=no
15982 exp_sym_flag='-Bexport'
15983 no_entry_flag=""
15984 else
15985 # If we're using GNU nm, then we don't want the "-C" option.
15986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15987 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15988 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'
15989 else
15990 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'
15991 fi
15992 aix_use_runtimelinking=no
15993
15994 # Test if we are trying to use run time linking or normal
15995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15996 # need to do runtime linking.
15997 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15998 for ld_flag in $LDFLAGS; do
15999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16000 aix_use_runtimelinking=yes
16001 break
16002 fi
16003 done
16004 ;;
16005 esac
16006
16007 exp_sym_flag='-bexport'
16008 no_entry_flag='-bnoentry'
16009 fi
16010
16011 # When large executables or shared objects are built, AIX ld can
16012 # have problems creating the table of contents. If linking a library
16013 # or program results in "error TOC overflow" add -mminimal-toc to
16014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16016
16017 archive_cmds_F77=''
16018 hardcode_direct_F77=yes
16019 hardcode_libdir_separator_F77=':'
16020 link_all_deplibs_F77=yes
16021
16022 if test "$GCC" = yes; then
16023 case $host_os in aix4.[012]|aix4.[012].*)
16024 # We only want to do this on AIX 4.2 and lower, the check
16025 # below for broken collect2 doesn't work under 4.3+
16026 collect2name=`${CC} -print-prog-name=collect2`
16027 if test -f "$collect2name" && \
16028 strings "$collect2name" | grep resolve_lib_name >/dev/null
16029 then
16030 # We have reworked collect2
16031 :
16032 else
16033 # We have old collect2
16034 hardcode_direct_F77=unsupported
16035 # It fails to find uninstalled libraries when the uninstalled
16036 # path is not listed in the libpath. Setting hardcode_minus_L
16037 # to unsupported forces relinking
16038 hardcode_minus_L_F77=yes
16039 hardcode_libdir_flag_spec_F77='-L$libdir'
16040 hardcode_libdir_separator_F77=
16041 fi
16042 ;;
16043 esac
16044 shared_flag='-shared'
16045 if test "$aix_use_runtimelinking" = yes; then
16046 shared_flag="$shared_flag "'${wl}-G'
16047 fi
16048 else
16049 # not using gcc
16050 if test "$host_cpu" = ia64; then
16051 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16052 # chokes on -Wl,-G. The following line is correct:
16053 shared_flag='-G'
16054 else
16055 if test "$aix_use_runtimelinking" = yes; then
16056 shared_flag='${wl}-G'
16057 else
16058 shared_flag='${wl}-bM:SRE'
16059 fi
16060 fi
16061 fi
16062
16063 # It seems that -bexpall does not export symbols beginning with
16064 # underscore (_), so it is better to generate a list of symbols to export.
16065 always_export_symbols_F77=yes
16066 if test "$aix_use_runtimelinking" = yes; then
16067 # Warning - without using the other runtime loading flags (-brtl),
16068 # -berok will link without error, but may produce a broken library.
16069 allow_undefined_flag_F77='-berok'
16070 # Determine the default libpath from the value encoded in an empty executable.
16071 cat >conftest.$ac_ext <<_ACEOF
16072 program main
16073
16074 end
16075 _ACEOF
16076 rm -f conftest.$ac_objext conftest$ac_exeext
16077 if { (ac_try="$ac_link"
16078 case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16081 esac
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_link") 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } && {
16090 test -z "$ac_f77_werror_flag" ||
16091 test ! -s conftest.err
16092 } && test -s conftest$ac_exeext &&
16093 $as_test_x conftest$ac_exeext; then
16094
16095 lt_aix_libpath_sed='
16096 /Import File Strings/,/^$/ {
16097 /^0/ {
16098 s/^0 *\(.*\)$/\1/
16099 p
16100 }
16101 }'
16102 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16103 # Check for a 64-bit object if we didn't find anything.
16104 if test -z "$aix_libpath"; then
16105 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16106 fi
16107 else
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16110
16111
16112 fi
16113
16114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16115 conftest$ac_exeext conftest.$ac_ext
16116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16117
16118 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16119 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16120 else
16121 if test "$host_cpu" = ia64; then
16122 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16123 allow_undefined_flag_F77="-z nodefs"
16124 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16125 else
16126 # Determine the default libpath from the value encoded in an empty executable.
16127 cat >conftest.$ac_ext <<_ACEOF
16128 program main
16129
16130 end
16131 _ACEOF
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (ac_try="$ac_link"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137 esac
16138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_link") 2>conftest.er1
16140 ac_status=$?
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && {
16146 test -z "$ac_f77_werror_flag" ||
16147 test ! -s conftest.err
16148 } && test -s conftest$ac_exeext &&
16149 $as_test_x conftest$ac_exeext; then
16150
16151 lt_aix_libpath_sed='
16152 /Import File Strings/,/^$/ {
16153 /^0/ {
16154 s/^0 *\(.*\)$/\1/
16155 p
16156 }
16157 }'
16158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16159 # Check for a 64-bit object if we didn't find anything.
16160 if test -z "$aix_libpath"; then
16161 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16162 fi
16163 else
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167
16168 fi
16169
16170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16171 conftest$ac_exeext conftest.$ac_ext
16172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16173
16174 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16175 # Warning - without using the other run time loading flags,
16176 # -berok will link without error, but may produce a broken library.
16177 no_undefined_flag_F77=' ${wl}-bernotok'
16178 allow_undefined_flag_F77=' ${wl}-berok'
16179 # Exported symbols can be pulled into shared objects from archives
16180 whole_archive_flag_spec_F77='$convenience'
16181 archive_cmds_need_lc_F77=yes
16182 # This is similar to how AIX traditionally builds its shared libraries.
16183 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16184 fi
16185 fi
16186 ;;
16187
16188 amigaos*)
16189 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)'
16190 hardcode_libdir_flag_spec_F77='-L$libdir'
16191 hardcode_minus_L_F77=yes
16192 # see comment about different semantics on the GNU ld section
16193 ld_shlibs_F77=no
16194 ;;
16195
16196 bsdi[45]*)
16197 export_dynamic_flag_spec_F77=-rdynamic
16198 ;;
16199
16200 cygwin* | mingw* | pw32*)
16201 # When not using gcc, we currently assume that we are using
16202 # Microsoft Visual C++.
16203 # hardcode_libdir_flag_spec is actually meaningless, as there is
16204 # no search path for DLLs.
16205 hardcode_libdir_flag_spec_F77=' '
16206 allow_undefined_flag_F77=unsupported
16207 # Tell ltmain to make .lib files, not .a files.
16208 libext=lib
16209 # Tell ltmain to make .dll files, not .so files.
16210 shrext_cmds=".dll"
16211 # FIXME: Setting linknames here is a bad hack.
16212 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16213 # The linker will automatically build a .lib file if we build a DLL.
16214 old_archive_From_new_cmds_F77='true'
16215 # FIXME: Should let the user specify the lib program.
16216 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16217 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16218 enable_shared_with_static_runtimes_F77=yes
16219 ;;
16220
16221 darwin* | rhapsody*)
16222 case $host_os in
16223 rhapsody* | darwin1.[012])
16224 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16225 ;;
16226 *) # Darwin 1.3 on
16227 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16228 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16229 else
16230 case ${MACOSX_DEPLOYMENT_TARGET} in
16231 10.[012])
16232 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16233 ;;
16234 10.*)
16235 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16236 ;;
16237 esac
16238 fi
16239 ;;
16240 esac
16241 archive_cmds_need_lc_F77=no
16242 hardcode_direct_F77=no
16243 hardcode_automatic_F77=yes
16244 hardcode_shlibpath_var_F77=unsupported
16245 whole_archive_flag_spec_F77=''
16246 link_all_deplibs_F77=yes
16247 if test "$GCC" = yes ; then
16248 output_verbose_link_cmd='echo'
16249 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16250 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16251 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16252 archive_expsym_cmds_F77='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}'
16253 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}'
16254 else
16255 case $cc_basename in
16256 xlc*)
16257 output_verbose_link_cmd='echo'
16258 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16259 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16260 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16261 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16262 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}'
16263 ;;
16264 *)
16265 ld_shlibs_F77=no
16266 ;;
16267 esac
16268 fi
16269 ;;
16270
16271 dgux*)
16272 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16273 hardcode_libdir_flag_spec_F77='-L$libdir'
16274 hardcode_shlibpath_var_F77=no
16275 ;;
16276
16277 freebsd1*)
16278 ld_shlibs_F77=no
16279 ;;
16280
16281 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16282 # support. Future versions do this automatically, but an explicit c++rt0.o
16283 # does not break anything, and helps significantly (at the cost of a little
16284 # extra space).
16285 freebsd2.2*)
16286 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16287 hardcode_libdir_flag_spec_F77='-R$libdir'
16288 hardcode_direct_F77=yes
16289 hardcode_shlibpath_var_F77=no
16290 ;;
16291
16292 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16293 freebsd2*)
16294 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16295 hardcode_direct_F77=yes
16296 hardcode_minus_L_F77=yes
16297 hardcode_shlibpath_var_F77=no
16298 ;;
16299
16300 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16301 freebsd* | dragonfly*)
16302 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16303 hardcode_libdir_flag_spec_F77='-R$libdir'
16304 hardcode_direct_F77=yes
16305 hardcode_shlibpath_var_F77=no
16306 ;;
16307
16308 hpux9*)
16309 if test "$GCC" = yes; then
16310 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'
16311 else
16312 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'
16313 fi
16314 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16315 hardcode_libdir_separator_F77=:
16316 hardcode_direct_F77=yes
16317
16318 # hardcode_minus_L: Not really in the search PATH,
16319 # but as the default location of the library.
16320 hardcode_minus_L_F77=yes
16321 export_dynamic_flag_spec_F77='${wl}-E'
16322 ;;
16323
16324 hpux10*)
16325 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16326 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16327 else
16328 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16329 fi
16330 if test "$with_gnu_ld" = no; then
16331 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16332 hardcode_libdir_separator_F77=:
16333
16334 hardcode_direct_F77=yes
16335 export_dynamic_flag_spec_F77='${wl}-E'
16336
16337 # hardcode_minus_L: Not really in the search PATH,
16338 # but as the default location of the library.
16339 hardcode_minus_L_F77=yes
16340 fi
16341 ;;
16342
16343 hpux11*)
16344 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16345 case $host_cpu in
16346 hppa*64*)
16347 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16348 ;;
16349 ia64*)
16350 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16351 ;;
16352 *)
16353 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16354 ;;
16355 esac
16356 else
16357 case $host_cpu in
16358 hppa*64*)
16359 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16360 ;;
16361 ia64*)
16362 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16363 ;;
16364 *)
16365 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16366 ;;
16367 esac
16368 fi
16369 if test "$with_gnu_ld" = no; then
16370 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16371 hardcode_libdir_separator_F77=:
16372
16373 case $host_cpu in
16374 hppa*64*|ia64*)
16375 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16376 hardcode_direct_F77=no
16377 hardcode_shlibpath_var_F77=no
16378 ;;
16379 *)
16380 hardcode_direct_F77=yes
16381 export_dynamic_flag_spec_F77='${wl}-E'
16382
16383 # hardcode_minus_L: Not really in the search PATH,
16384 # but as the default location of the library.
16385 hardcode_minus_L_F77=yes
16386 ;;
16387 esac
16388 fi
16389 ;;
16390
16391 irix5* | irix6* | nonstopux*)
16392 if test "$GCC" = yes; then
16393 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'
16394 else
16395 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'
16396 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16397 fi
16398 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16399 hardcode_libdir_separator_F77=:
16400 link_all_deplibs_F77=yes
16401 ;;
16402
16403 netbsd* | netbsdelf*-gnu)
16404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16405 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16406 else
16407 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16408 fi
16409 hardcode_libdir_flag_spec_F77='-R$libdir'
16410 hardcode_direct_F77=yes
16411 hardcode_shlibpath_var_F77=no
16412 ;;
16413
16414 newsos6)
16415 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16416 hardcode_direct_F77=yes
16417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16418 hardcode_libdir_separator_F77=:
16419 hardcode_shlibpath_var_F77=no
16420 ;;
16421
16422 openbsd*)
16423 if test -f /usr/libexec/ld.so; then
16424 hardcode_direct_F77=yes
16425 hardcode_shlibpath_var_F77=no
16426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16427 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16428 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16429 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16430 export_dynamic_flag_spec_F77='${wl}-E'
16431 else
16432 case $host_os in
16433 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16434 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16435 hardcode_libdir_flag_spec_F77='-R$libdir'
16436 ;;
16437 *)
16438 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16439 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16440 ;;
16441 esac
16442 fi
16443 else
16444 ld_shlibs_F77=no
16445 fi
16446 ;;
16447
16448 os2*)
16449 hardcode_libdir_flag_spec_F77='-L$libdir'
16450 hardcode_minus_L_F77=yes
16451 allow_undefined_flag_F77=unsupported
16452 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'
16453 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16454 ;;
16455
16456 osf3*)
16457 if test "$GCC" = yes; then
16458 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16459 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'
16460 else
16461 allow_undefined_flag_F77=' -expect_unresolved \*'
16462 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'
16463 fi
16464 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16465 hardcode_libdir_separator_F77=:
16466 ;;
16467
16468 osf4* | osf5*) # as osf3* with the addition of -msym flag
16469 if test "$GCC" = yes; then
16470 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16471 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'
16472 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16473 else
16474 allow_undefined_flag_F77=' -expect_unresolved \*'
16475 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'
16476 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~
16477 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16478
16479 # Both c and cxx compiler support -rpath directly
16480 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16481 fi
16482 hardcode_libdir_separator_F77=:
16483 ;;
16484
16485 solaris*)
16486 no_undefined_flag_F77=' -z text'
16487 if test "$GCC" = yes; then
16488 wlarc='${wl}'
16489 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16490 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16491 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16492 else
16493 wlarc=''
16494 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16497 fi
16498 hardcode_libdir_flag_spec_F77='-R$libdir'
16499 hardcode_shlibpath_var_F77=no
16500 case $host_os in
16501 solaris2.[0-5] | solaris2.[0-5].*) ;;
16502 *)
16503 # The compiler driver will combine and reorder linker options,
16504 # but understands `-z linker_flag'. GCC discards it without `$wl',
16505 # but is careful enough not to reorder.
16506 # Supported since Solaris 2.6 (maybe 2.5.1?)
16507 if test "$GCC" = yes; then
16508 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16509 else
16510 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16511 fi
16512 ;;
16513 esac
16514 link_all_deplibs_F77=yes
16515 ;;
16516
16517 sunos4*)
16518 if test "x$host_vendor" = xsequent; then
16519 # Use $CC to link under sequent, because it throws in some extra .o
16520 # files that make .init and .fini sections work.
16521 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16522 else
16523 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16524 fi
16525 hardcode_libdir_flag_spec_F77='-L$libdir'
16526 hardcode_direct_F77=yes
16527 hardcode_minus_L_F77=yes
16528 hardcode_shlibpath_var_F77=no
16529 ;;
16530
16531 sysv4)
16532 case $host_vendor in
16533 sni)
16534 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_direct_F77=yes # is this really true???
16536 ;;
16537 siemens)
16538 ## LD is ld it makes a PLAMLIB
16539 ## CC just makes a GrossModule.
16540 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16541 reload_cmds_F77='$CC -r -o $output$reload_objs'
16542 hardcode_direct_F77=no
16543 ;;
16544 motorola)
16545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16546 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16547 ;;
16548 esac
16549 runpath_var='LD_RUN_PATH'
16550 hardcode_shlibpath_var_F77=no
16551 ;;
16552
16553 sysv4.3*)
16554 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16555 hardcode_shlibpath_var_F77=no
16556 export_dynamic_flag_spec_F77='-Bexport'
16557 ;;
16558
16559 sysv4*MP*)
16560 if test -d /usr/nec; then
16561 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16562 hardcode_shlibpath_var_F77=no
16563 runpath_var=LD_RUN_PATH
16564 hardcode_runpath_var=yes
16565 ld_shlibs_F77=yes
16566 fi
16567 ;;
16568
16569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16570 no_undefined_flag_F77='${wl}-z,text'
16571 archive_cmds_need_lc_F77=no
16572 hardcode_shlibpath_var_F77=no
16573 runpath_var='LD_RUN_PATH'
16574
16575 if test "$GCC" = yes; then
16576 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16577 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16578 else
16579 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16580 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16581 fi
16582 ;;
16583
16584 sysv5* | sco3.2v5* | sco5v6*)
16585 # Note: We can NOT use -z defs as we might desire, because we do not
16586 # link with -lc, and that would cause any symbols used from libc to
16587 # always be unresolved, which means just about no library would
16588 # ever link correctly. If we're not using GNU ld we use -z text
16589 # though, which does catch some bad symbols but isn't as heavy-handed
16590 # as -z defs.
16591 no_undefined_flag_F77='${wl}-z,text'
16592 allow_undefined_flag_F77='${wl}-z,nodefs'
16593 archive_cmds_need_lc_F77=no
16594 hardcode_shlibpath_var_F77=no
16595 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16596 hardcode_libdir_separator_F77=':'
16597 link_all_deplibs_F77=yes
16598 export_dynamic_flag_spec_F77='${wl}-Bexport'
16599 runpath_var='LD_RUN_PATH'
16600
16601 if test "$GCC" = yes; then
16602 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16603 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16604 else
16605 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16606 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16607 fi
16608 ;;
16609
16610 uts4*)
16611 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612 hardcode_libdir_flag_spec_F77='-L$libdir'
16613 hardcode_shlibpath_var_F77=no
16614 ;;
16615
16616 *)
16617 ld_shlibs_F77=no
16618 ;;
16619 esac
16620 fi
16621
16622 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16623 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16624 test "$ld_shlibs_F77" = no && can_build_shared=no
16625
16626 #
16627 # Do we need to explicitly link libc?
16628 #
16629 case "x$archive_cmds_need_lc_F77" in
16630 x|xyes)
16631 # Assume -lc should be added
16632 archive_cmds_need_lc_F77=yes
16633
16634 if test "$enable_shared" = yes && test "$GCC" = yes; then
16635 case $archive_cmds_F77 in
16636 *'~'*)
16637 # FIXME: we may have to deal with multi-command sequences.
16638 ;;
16639 '$CC '*)
16640 # Test whether the compiler implicitly links with -lc since on some
16641 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16642 # to ld, don't add -lc before -lgcc.
16643 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16644 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16645 $rm conftest*
16646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16647
16648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16649 (eval $ac_compile) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } 2>conftest.err; then
16653 soname=conftest
16654 lib=conftest
16655 libobjs=conftest.$ac_objext
16656 deplibs=
16657 wl=$lt_prog_compiler_wl_F77
16658 pic_flag=$lt_prog_compiler_pic_F77
16659 compiler_flags=-v
16660 linker_flags=-v
16661 verstring=
16662 output_objdir=.
16663 libname=conftest
16664 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16665 allow_undefined_flag_F77=
16666 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16667 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }
16671 then
16672 archive_cmds_need_lc_F77=no
16673 else
16674 archive_cmds_need_lc_F77=yes
16675 fi
16676 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16677 else
16678 cat conftest.err 1>&5
16679 fi
16680 $rm conftest*
16681 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16682 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16683 ;;
16684 esac
16685 fi
16686 ;;
16687 esac
16688
16689 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16690 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16691 library_names_spec=
16692 libname_spec='lib$name'
16693 soname_spec=
16694 shrext_cmds=".so"
16695 postinstall_cmds=
16696 postuninstall_cmds=
16697 finish_cmds=
16698 finish_eval=
16699 shlibpath_var=
16700 shlibpath_overrides_runpath=unknown
16701 version_type=none
16702 dynamic_linker="$host_os ld.so"
16703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16704
16705 need_lib_prefix=unknown
16706 hardcode_into_libs=no
16707
16708 # when you set need_version to no, make sure it does not cause -set_version
16709 # flags to be left without arguments
16710 need_version=unknown
16711
16712 case $host_os in
16713 aix3*)
16714 version_type=linux
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16716 shlibpath_var=LIBPATH
16717
16718 # AIX 3 has no versioning support, so we append a major version to the name.
16719 soname_spec='${libname}${release}${shared_ext}$major'
16720 ;;
16721
16722 aix4* | aix5*)
16723 version_type=linux
16724 need_lib_prefix=no
16725 need_version=no
16726 hardcode_into_libs=yes
16727 if test "$host_cpu" = ia64; then
16728 # AIX 5 supports IA64
16729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16730 shlibpath_var=LD_LIBRARY_PATH
16731 else
16732 # With GCC up to 2.95.x, collect2 would create an import file
16733 # for dependence libraries. The import file would start with
16734 # the line `#! .'. This would cause the generated library to
16735 # depend on `.', always an invalid library. This was fixed in
16736 # development snapshots of GCC prior to 3.0.
16737 case $host_os in
16738 aix4 | aix4.[01] | aix4.[01].*)
16739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16740 echo ' yes '
16741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16742 :
16743 else
16744 can_build_shared=no
16745 fi
16746 ;;
16747 esac
16748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16749 # soname into executable. Probably we can add versioning support to
16750 # collect2, so additional links can be useful in future.
16751 if test "$aix_use_runtimelinking" = yes; then
16752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16753 # instead of lib<name>.a to let people know that these are not
16754 # typical AIX shared libraries.
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 else
16757 # We preserve .a as extension for shared libraries through AIX4.2
16758 # and later when we are not doing run time linking.
16759 library_names_spec='${libname}${release}.a $libname.a'
16760 soname_spec='${libname}${release}${shared_ext}$major'
16761 fi
16762 shlibpath_var=LIBPATH
16763 fi
16764 ;;
16765
16766 amigaos*)
16767 library_names_spec='$libname.ixlibrary $libname.a'
16768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16769 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'
16770 ;;
16771
16772 beos*)
16773 library_names_spec='${libname}${shared_ext}'
16774 dynamic_linker="$host_os ld.so"
16775 shlibpath_var=LIBRARY_PATH
16776 ;;
16777
16778 bsdi[45]*)
16779 version_type=linux
16780 need_version=no
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16782 soname_spec='${libname}${release}${shared_ext}$major'
16783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16787 # the default ld.so.conf also contains /usr/contrib/lib and
16788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16789 # libtool to hard-code these into programs
16790 ;;
16791
16792 cygwin* | mingw* | pw32*)
16793 version_type=windows
16794 shrext_cmds=".dll"
16795 need_version=no
16796 need_lib_prefix=no
16797
16798 case $GCC,$host_os in
16799 yes,cygwin* | yes,mingw* | yes,pw32*)
16800 library_names_spec='$libname.dll.a'
16801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16802 postinstall_cmds='base_file=`basename \${file}`~
16803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16804 dldir=$destdir/`dirname \$dlpath`~
16805 test -d \$dldir || mkdir -p \$dldir~
16806 $install_prog $dir/$dlname \$dldir/$dlname~
16807 chmod a+x \$dldir/$dlname'
16808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16809 dlpath=$dir/\$dldll~
16810 $rm \$dlpath'
16811 shlibpath_overrides_runpath=yes
16812
16813 case $host_os in
16814 cygwin*)
16815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16818 ;;
16819 mingw*)
16820 # MinGW DLLs use traditional 'lib' prefix
16821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16824 # It is most probably a Windows format PATH printed by
16825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16826 # path with ; separators, and with drive letters. We can handle the
16827 # drive letters (cygwin fileutils understands them), so leave them,
16828 # especially as we might pass files found there to a mingw objdump,
16829 # which wouldn't understand a cygwinified path. Ahh.
16830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16831 else
16832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16833 fi
16834 ;;
16835 pw32*)
16836 # pw32 DLLs use 'pw' prefix rather than 'lib'
16837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16838 ;;
16839 esac
16840 ;;
16841
16842 *)
16843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16844 ;;
16845 esac
16846 dynamic_linker='Win32 ld.exe'
16847 # FIXME: first we should search . and the directory the executable is in
16848 shlibpath_var=PATH
16849 ;;
16850
16851 darwin* | rhapsody*)
16852 dynamic_linker="$host_os dyld"
16853 version_type=darwin
16854 need_lib_prefix=no
16855 need_version=no
16856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16857 soname_spec='${libname}${release}${major}$shared_ext'
16858 shlibpath_overrides_runpath=yes
16859 shlibpath_var=DYLD_LIBRARY_PATH
16860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16861
16862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16863 ;;
16864
16865 dgux*)
16866 version_type=linux
16867 need_lib_prefix=no
16868 need_version=no
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16870 soname_spec='${libname}${release}${shared_ext}$major'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 ;;
16873
16874 freebsd1*)
16875 dynamic_linker=no
16876 ;;
16877
16878 freebsd* | dragonfly*)
16879 # DragonFly does not have aout. When/if they implement a new
16880 # versioning mechanism, adjust this.
16881 if test -x /usr/bin/objformat; then
16882 objformat=`/usr/bin/objformat`
16883 else
16884 case $host_os in
16885 freebsd[123]*) objformat=aout ;;
16886 *) objformat=elf ;;
16887 esac
16888 fi
16889 version_type=freebsd-$objformat
16890 case $version_type in
16891 freebsd-elf*)
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16893 need_version=no
16894 need_lib_prefix=no
16895 ;;
16896 freebsd-*)
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16898 need_version=yes
16899 ;;
16900 esac
16901 shlibpath_var=LD_LIBRARY_PATH
16902 case $host_os in
16903 freebsd2*)
16904 shlibpath_overrides_runpath=yes
16905 ;;
16906 freebsd3.[01]* | freebsdelf3.[01]*)
16907 shlibpath_overrides_runpath=yes
16908 hardcode_into_libs=yes
16909 ;;
16910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16912 shlibpath_overrides_runpath=no
16913 hardcode_into_libs=yes
16914 ;;
16915 *) # from 4.6 on, and DragonFly
16916 shlibpath_overrides_runpath=yes
16917 hardcode_into_libs=yes
16918 ;;
16919 esac
16920 ;;
16921
16922 gnu*)
16923 version_type=linux
16924 need_lib_prefix=no
16925 need_version=no
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 shlibpath_var=LD_LIBRARY_PATH
16929 hardcode_into_libs=yes
16930 ;;
16931
16932 hpux9* | hpux10* | hpux11*)
16933 # Give a soname corresponding to the major version so that dld.sl refuses to
16934 # link against other versions.
16935 version_type=sunos
16936 need_lib_prefix=no
16937 need_version=no
16938 case $host_cpu in
16939 ia64*)
16940 shrext_cmds='.so'
16941 hardcode_into_libs=yes
16942 dynamic_linker="$host_os dld.so"
16943 shlibpath_var=LD_LIBRARY_PATH
16944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16946 soname_spec='${libname}${release}${shared_ext}$major'
16947 if test "X$HPUX_IA64_MODE" = X32; then
16948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16949 else
16950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16951 fi
16952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16953 ;;
16954 hppa*64*)
16955 shrext_cmds='.sl'
16956 hardcode_into_libs=yes
16957 dynamic_linker="$host_os dld.sl"
16958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16964 ;;
16965 *)
16966 shrext_cmds='.sl'
16967 dynamic_linker="$host_os dld.sl"
16968 shlibpath_var=SHLIB_PATH
16969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971 soname_spec='${libname}${release}${shared_ext}$major'
16972 ;;
16973 esac
16974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16975 postinstall_cmds='chmod 555 $lib'
16976 ;;
16977
16978 interix[3-9]*)
16979 version_type=linux
16980 need_lib_prefix=no
16981 need_version=no
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16985 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=no
16987 hardcode_into_libs=yes
16988 ;;
16989
16990 irix5* | irix6* | nonstopux*)
16991 case $host_os in
16992 nonstopux*) version_type=nonstopux ;;
16993 *)
16994 if test "$lt_cv_prog_gnu_ld" = yes; then
16995 version_type=linux
16996 else
16997 version_type=irix
16998 fi ;;
16999 esac
17000 need_lib_prefix=no
17001 need_version=no
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17004 case $host_os in
17005 irix5* | nonstopux*)
17006 libsuff= shlibsuff=
17007 ;;
17008 *)
17009 case $LD in # libtool.m4 will add one of these switches to LD
17010 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17011 libsuff= shlibsuff= libmagic=32-bit;;
17012 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17013 libsuff=32 shlibsuff=N32 libmagic=N32;;
17014 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17015 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17016 *) libsuff= shlibsuff= libmagic=never-match;;
17017 esac
17018 ;;
17019 esac
17020 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17021 shlibpath_overrides_runpath=no
17022 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17023 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17024 hardcode_into_libs=yes
17025 ;;
17026
17027 # No shared lib support for Linux oldld, aout, or coff.
17028 linux*oldld* | linux*aout* | linux*coff*)
17029 dynamic_linker=no
17030 ;;
17031
17032 # This must be Linux ELF.
17033 linux* | k*bsd*-gnu)
17034 version_type=linux
17035 need_lib_prefix=no
17036 need_version=no
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=no
17042 # This implies no fast_install, which is unacceptable.
17043 # Some rework will be needed to allow for fast_install
17044 # before this can be enabled.
17045 hardcode_into_libs=yes
17046
17047 # Append ld.so.conf contents to the search path
17048 if test -f /etc/ld.so.conf; then
17049 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17050 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17051 fi
17052
17053 # We used to test for /lib/ld.so.1 and disable shared libraries on
17054 # powerpc, because MkLinux only supported shared libraries with the
17055 # GNU dynamic linker. Since this was broken with cross compilers,
17056 # most powerpc-linux boxes support dynamic linking these days and
17057 # people can always --disable-shared, the test was removed, and we
17058 # assume the GNU/Linux dynamic linker is in use.
17059 dynamic_linker='GNU/Linux ld.so'
17060 ;;
17061
17062 netbsdelf*-gnu)
17063 version_type=linux
17064 need_lib_prefix=no
17065 need_version=no
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 shlibpath_var=LD_LIBRARY_PATH
17069 shlibpath_overrides_runpath=no
17070 hardcode_into_libs=yes
17071 dynamic_linker='NetBSD ld.elf_so'
17072 ;;
17073
17074 netbsd*)
17075 version_type=sunos
17076 need_lib_prefix=no
17077 need_version=no
17078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17081 dynamic_linker='NetBSD (a.out) ld.so'
17082 else
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 dynamic_linker='NetBSD ld.elf_so'
17086 fi
17087 shlibpath_var=LD_LIBRARY_PATH
17088 shlibpath_overrides_runpath=yes
17089 hardcode_into_libs=yes
17090 ;;
17091
17092 newsos6)
17093 version_type=linux
17094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17095 shlibpath_var=LD_LIBRARY_PATH
17096 shlibpath_overrides_runpath=yes
17097 ;;
17098
17099 nto-qnx*)
17100 version_type=linux
17101 need_lib_prefix=no
17102 need_version=no
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17104 soname_spec='${libname}${release}${shared_ext}$major'
17105 shlibpath_var=LD_LIBRARY_PATH
17106 shlibpath_overrides_runpath=yes
17107 ;;
17108
17109 openbsd*)
17110 version_type=sunos
17111 sys_lib_dlsearch_path_spec="/usr/lib"
17112 need_lib_prefix=no
17113 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17114 case $host_os in
17115 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17116 *) need_version=no ;;
17117 esac
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17122 case $host_os in
17123 openbsd2.[89] | openbsd2.[89].*)
17124 shlibpath_overrides_runpath=no
17125 ;;
17126 *)
17127 shlibpath_overrides_runpath=yes
17128 ;;
17129 esac
17130 else
17131 shlibpath_overrides_runpath=yes
17132 fi
17133 ;;
17134
17135 os2*)
17136 libname_spec='$name'
17137 shrext_cmds=".dll"
17138 need_lib_prefix=no
17139 library_names_spec='$libname${shared_ext} $libname.a'
17140 dynamic_linker='OS/2 ld.exe'
17141 shlibpath_var=LIBPATH
17142 ;;
17143
17144 osf3* | osf4* | osf5*)
17145 version_type=osf
17146 need_lib_prefix=no
17147 need_version=no
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17153 ;;
17154
17155 rdos*)
17156 dynamic_linker=no
17157 ;;
17158
17159 solaris*)
17160 version_type=linux
17161 need_lib_prefix=no
17162 need_version=no
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17167 hardcode_into_libs=yes
17168 # ldd complains unless libraries are executable
17169 postinstall_cmds='chmod +x $lib'
17170 ;;
17171
17172 sunos4*)
17173 version_type=sunos
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17176 shlibpath_var=LD_LIBRARY_PATH
17177 shlibpath_overrides_runpath=yes
17178 if test "$with_gnu_ld" = yes; then
17179 need_lib_prefix=no
17180 fi
17181 need_version=yes
17182 ;;
17183
17184 sysv4 | sysv4.3*)
17185 version_type=linux
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 soname_spec='${libname}${release}${shared_ext}$major'
17188 shlibpath_var=LD_LIBRARY_PATH
17189 case $host_vendor in
17190 sni)
17191 shlibpath_overrides_runpath=no
17192 need_lib_prefix=no
17193 export_dynamic_flag_spec='${wl}-Blargedynsym'
17194 runpath_var=LD_RUN_PATH
17195 ;;
17196 siemens)
17197 need_lib_prefix=no
17198 ;;
17199 motorola)
17200 need_lib_prefix=no
17201 need_version=no
17202 shlibpath_overrides_runpath=no
17203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17204 ;;
17205 esac
17206 ;;
17207
17208 sysv4*MP*)
17209 if test -d /usr/nec ;then
17210 version_type=linux
17211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17212 soname_spec='$libname${shared_ext}.$major'
17213 shlibpath_var=LD_LIBRARY_PATH
17214 fi
17215 ;;
17216
17217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17218 version_type=freebsd-elf
17219 need_lib_prefix=no
17220 need_version=no
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 hardcode_into_libs=yes
17225 if test "$with_gnu_ld" = yes; then
17226 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17227 shlibpath_overrides_runpath=no
17228 else
17229 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17230 shlibpath_overrides_runpath=yes
17231 case $host_os in
17232 sco3.2v5*)
17233 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17234 ;;
17235 esac
17236 fi
17237 sys_lib_dlsearch_path_spec='/usr/lib'
17238 ;;
17239
17240 uts4*)
17241 version_type=linux
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17243 soname_spec='${libname}${release}${shared_ext}$major'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 ;;
17246
17247 *)
17248 dynamic_linker=no
17249 ;;
17250 esac
17251 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17252 echo "${ECHO_T}$dynamic_linker" >&6; }
17253 test "$dynamic_linker" = no && can_build_shared=no
17254
17255 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17256 if test "$GCC" = yes; then
17257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17258 fi
17259
17260 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17261 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17262 hardcode_action_F77=
17263 if test -n "$hardcode_libdir_flag_spec_F77" || \
17264 test -n "$runpath_var_F77" || \
17265 test "X$hardcode_automatic_F77" = "Xyes" ; then
17266
17267 # We can hardcode non-existant directories.
17268 if test "$hardcode_direct_F77" != no &&
17269 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17270 # have to relink, otherwise we might link with an installed library
17271 # when we should be linking with a yet-to-be-installed one
17272 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17273 test "$hardcode_minus_L_F77" != no; then
17274 # Linking always hardcodes the temporary library directory.
17275 hardcode_action_F77=relink
17276 else
17277 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17278 hardcode_action_F77=immediate
17279 fi
17280 else
17281 # We cannot hardcode anything, or else we can only hardcode existing
17282 # directories.
17283 hardcode_action_F77=unsupported
17284 fi
17285 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17286 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17287
17288 if test "$hardcode_action_F77" = relink; then
17289 # Fast installation is not supported
17290 enable_fast_install=no
17291 elif test "$shlibpath_overrides_runpath" = yes ||
17292 test "$enable_shared" = no; then
17293 # Fast installation is not necessary
17294 enable_fast_install=needless
17295 fi
17296
17297
17298 # The else clause should only fire when bootstrapping the
17299 # libtool distribution, otherwise you forgot to ship ltmain.sh
17300 # with your package, and you will get complaints that there are
17301 # no rules to generate ltmain.sh.
17302 if test -f "$ltmain"; then
17303 # See if we are running on zsh, and set the options which allow our commands through
17304 # without removal of \ escapes.
17305 if test -n "${ZSH_VERSION+set}" ; then
17306 setopt NO_GLOB_SUBST
17307 fi
17308 # Now quote all the things that may contain metacharacters while being
17309 # careful not to overquote the AC_SUBSTed values. We take copies of the
17310 # variables and quote the copies for generation of the libtool script.
17311 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17312 SED SHELL STRIP \
17313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17315 deplibs_check_method reload_flag reload_cmds need_locks \
17316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17317 lt_cv_sys_global_symbol_to_c_name_address \
17318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17319 old_postinstall_cmds old_postuninstall_cmds \
17320 compiler_F77 \
17321 CC_F77 \
17322 LD_F77 \
17323 lt_prog_compiler_wl_F77 \
17324 lt_prog_compiler_pic_F77 \
17325 lt_prog_compiler_static_F77 \
17326 lt_prog_compiler_no_builtin_flag_F77 \
17327 export_dynamic_flag_spec_F77 \
17328 thread_safe_flag_spec_F77 \
17329 whole_archive_flag_spec_F77 \
17330 enable_shared_with_static_runtimes_F77 \
17331 old_archive_cmds_F77 \
17332 old_archive_from_new_cmds_F77 \
17333 predep_objects_F77 \
17334 postdep_objects_F77 \
17335 predeps_F77 \
17336 postdeps_F77 \
17337 compiler_lib_search_path_F77 \
17338 archive_cmds_F77 \
17339 archive_expsym_cmds_F77 \
17340 postinstall_cmds_F77 \
17341 postuninstall_cmds_F77 \
17342 old_archive_from_expsyms_cmds_F77 \
17343 allow_undefined_flag_F77 \
17344 no_undefined_flag_F77 \
17345 export_symbols_cmds_F77 \
17346 hardcode_libdir_flag_spec_F77 \
17347 hardcode_libdir_flag_spec_ld_F77 \
17348 hardcode_libdir_separator_F77 \
17349 hardcode_automatic_F77 \
17350 module_cmds_F77 \
17351 module_expsym_cmds_F77 \
17352 lt_cv_prog_compiler_c_o_F77 \
17353 fix_srcfile_path_F77 \
17354 exclude_expsyms_F77 \
17355 include_expsyms_F77; do
17356
17357 case $var in
17358 old_archive_cmds_F77 | \
17359 old_archive_from_new_cmds_F77 | \
17360 archive_cmds_F77 | \
17361 archive_expsym_cmds_F77 | \
17362 module_cmds_F77 | \
17363 module_expsym_cmds_F77 | \
17364 old_archive_from_expsyms_cmds_F77 | \
17365 export_symbols_cmds_F77 | \
17366 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17367 postinstall_cmds | postuninstall_cmds | \
17368 old_postinstall_cmds | old_postuninstall_cmds | \
17369 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17370 # Double-quote double-evaled strings.
17371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17372 ;;
17373 *)
17374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17375 ;;
17376 esac
17377 done
17378
17379 case $lt_echo in
17380 *'\$0 --fallback-echo"')
17381 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17382 ;;
17383 esac
17384
17385 cfgfile="$ofile"
17386
17387 cat <<__EOF__ >> "$cfgfile"
17388 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17389
17390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17391
17392 # Shell to use when invoking shell scripts.
17393 SHELL=$lt_SHELL
17394
17395 # Whether or not to build shared libraries.
17396 build_libtool_libs=$enable_shared
17397
17398 # Whether or not to build static libraries.
17399 build_old_libs=$enable_static
17400
17401 # Whether or not to add -lc for building shared libraries.
17402 build_libtool_need_lc=$archive_cmds_need_lc_F77
17403
17404 # Whether or not to disallow shared libs when runtime libs are static
17405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17406
17407 # Whether or not to optimize for fast installation.
17408 fast_install=$enable_fast_install
17409
17410 # The host system.
17411 host_alias=$host_alias
17412 host=$host
17413 host_os=$host_os
17414
17415 # The build system.
17416 build_alias=$build_alias
17417 build=$build
17418 build_os=$build_os
17419
17420 # An echo program that does not interpret backslashes.
17421 echo=$lt_echo
17422
17423 # The archiver.
17424 AR=$lt_AR
17425 AR_FLAGS=$lt_AR_FLAGS
17426
17427 # A C compiler.
17428 LTCC=$lt_LTCC
17429
17430 # LTCC compiler flags.
17431 LTCFLAGS=$lt_LTCFLAGS
17432
17433 # A language-specific compiler.
17434 CC=$lt_compiler_F77
17435
17436 # Is the compiler the GNU C compiler?
17437 with_gcc=$GCC_F77
17438
17439 # An ERE matcher.
17440 EGREP=$lt_EGREP
17441
17442 # The linker used to build libraries.
17443 LD=$lt_LD_F77
17444
17445 # Whether we need hard or soft links.
17446 LN_S=$lt_LN_S
17447
17448 # A BSD-compatible nm program.
17449 NM=$lt_NM
17450
17451 # A symbol stripping program
17452 STRIP=$lt_STRIP
17453
17454 # Used to examine libraries when file_magic_cmd begins "file"
17455 MAGIC_CMD=$MAGIC_CMD
17456
17457 # Used on cygwin: DLL creation program.
17458 DLLTOOL="$DLLTOOL"
17459
17460 # Used on cygwin: object dumper.
17461 OBJDUMP="$OBJDUMP"
17462
17463 # Used on cygwin: assembler.
17464 AS="$AS"
17465
17466 # The name of the directory that contains temporary libtool files.
17467 objdir=$objdir
17468
17469 # How to create reloadable object files.
17470 reload_flag=$lt_reload_flag
17471 reload_cmds=$lt_reload_cmds
17472
17473 # How to pass a linker flag through the compiler.
17474 wl=$lt_lt_prog_compiler_wl_F77
17475
17476 # Object file suffix (normally "o").
17477 objext="$ac_objext"
17478
17479 # Old archive suffix (normally "a").
17480 libext="$libext"
17481
17482 # Shared library suffix (normally ".so").
17483 shrext_cmds='$shrext_cmds'
17484
17485 # Executable file suffix (normally "").
17486 exeext="$exeext"
17487
17488 # Additional compiler flags for building library objects.
17489 pic_flag=$lt_lt_prog_compiler_pic_F77
17490 pic_mode=$pic_mode
17491
17492 # What is the maximum length of a command?
17493 max_cmd_len=$lt_cv_sys_max_cmd_len
17494
17495 # Does compiler simultaneously support -c and -o options?
17496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17497
17498 # Must we lock files when doing compilation?
17499 need_locks=$lt_need_locks
17500
17501 # Do we need the lib prefix for modules?
17502 need_lib_prefix=$need_lib_prefix
17503
17504 # Do we need a version for libraries?
17505 need_version=$need_version
17506
17507 # Whether dlopen is supported.
17508 dlopen_support=$enable_dlopen
17509
17510 # Whether dlopen of programs is supported.
17511 dlopen_self=$enable_dlopen_self
17512
17513 # Whether dlopen of statically linked programs is supported.
17514 dlopen_self_static=$enable_dlopen_self_static
17515
17516 # Compiler flag to prevent dynamic linking.
17517 link_static_flag=$lt_lt_prog_compiler_static_F77
17518
17519 # Compiler flag to turn off builtin functions.
17520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17521
17522 # Compiler flag to allow reflexive dlopens.
17523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17524
17525 # Compiler flag to generate shared objects directly from archives.
17526 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17527
17528 # Compiler flag to generate thread-safe objects.
17529 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17530
17531 # Library versioning type.
17532 version_type=$version_type
17533
17534 # Format of library name prefix.
17535 libname_spec=$lt_libname_spec
17536
17537 # List of archive names. First name is the real one, the rest are links.
17538 # The last name is the one that the linker finds with -lNAME.
17539 library_names_spec=$lt_library_names_spec
17540
17541 # The coded name of the library, if different from the real name.
17542 soname_spec=$lt_soname_spec
17543
17544 # Commands used to build and install an old-style archive.
17545 RANLIB=$lt_RANLIB
17546 old_archive_cmds=$lt_old_archive_cmds_F77
17547 old_postinstall_cmds=$lt_old_postinstall_cmds
17548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17549
17550 # Create an old-style archive from a shared archive.
17551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17552
17553 # Create a temporary old-style archive to link instead of a shared archive.
17554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17555
17556 # Commands used to build and install a shared archive.
17557 archive_cmds=$lt_archive_cmds_F77
17558 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17559 postinstall_cmds=$lt_postinstall_cmds
17560 postuninstall_cmds=$lt_postuninstall_cmds
17561
17562 # Commands used to build a loadable module (assumed same as above if empty)
17563 module_cmds=$lt_module_cmds_F77
17564 module_expsym_cmds=$lt_module_expsym_cmds_F77
17565
17566 # Commands to strip libraries.
17567 old_striplib=$lt_old_striplib
17568 striplib=$lt_striplib
17569
17570 # Dependencies to place before the objects being linked to create a
17571 # shared library.
17572 predep_objects=$lt_predep_objects_F77
17573
17574 # Dependencies to place after the objects being linked to create a
17575 # shared library.
17576 postdep_objects=$lt_postdep_objects_F77
17577
17578 # Dependencies to place before the objects being linked to create a
17579 # shared library.
17580 predeps=$lt_predeps_F77
17581
17582 # Dependencies to place after the objects being linked to create a
17583 # shared library.
17584 postdeps=$lt_postdeps_F77
17585
17586 # The library search path used internally by the compiler when linking
17587 # a shared library.
17588 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17589
17590 # Method to check whether dependent libraries are shared objects.
17591 deplibs_check_method=$lt_deplibs_check_method
17592
17593 # Command to use when deplibs_check_method == file_magic.
17594 file_magic_cmd=$lt_file_magic_cmd
17595
17596 # Flag that allows shared libraries with undefined symbols to be built.
17597 allow_undefined_flag=$lt_allow_undefined_flag_F77
17598
17599 # Flag that forces no undefined symbols.
17600 no_undefined_flag=$lt_no_undefined_flag_F77
17601
17602 # Commands used to finish a libtool library installation in a directory.
17603 finish_cmds=$lt_finish_cmds
17604
17605 # Same as above, but a single script fragment to be evaled but not shown.
17606 finish_eval=$lt_finish_eval
17607
17608 # Take the output of nm and produce a listing of raw symbols and C names.
17609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17610
17611 # Transform the output of nm in a proper C declaration
17612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17613
17614 # Transform the output of nm in a C name address pair
17615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17616
17617 # This is the shared library runtime path variable.
17618 runpath_var=$runpath_var
17619
17620 # This is the shared library path variable.
17621 shlibpath_var=$shlibpath_var
17622
17623 # Is shlibpath searched before the hard-coded library search path?
17624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17625
17626 # How to hardcode a shared library path into an executable.
17627 hardcode_action=$hardcode_action_F77
17628
17629 # Whether we should hardcode library paths into libraries.
17630 hardcode_into_libs=$hardcode_into_libs
17631
17632 # Flag to hardcode \$libdir into a binary during linking.
17633 # This must work even if \$libdir does not exist.
17634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17635
17636 # If ld is used when linking, flag to hardcode \$libdir into
17637 # a binary during linking. This must work even if \$libdir does
17638 # not exist.
17639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17640
17641 # Whether we need a single -rpath flag with a separated argument.
17642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17643
17644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17645 # resulting binary.
17646 hardcode_direct=$hardcode_direct_F77
17647
17648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17649 # resulting binary.
17650 hardcode_minus_L=$hardcode_minus_L_F77
17651
17652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17653 # the resulting binary.
17654 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17655
17656 # Set to yes if building a shared library automatically hardcodes DIR into the library
17657 # and all subsequent libraries and executables linked against it.
17658 hardcode_automatic=$hardcode_automatic_F77
17659
17660 # Variables whose values should be saved in libtool wrapper scripts and
17661 # restored at relink time.
17662 variables_saved_for_relink="$variables_saved_for_relink"
17663
17664 # Whether libtool must link a program against all its dependency libraries.
17665 link_all_deplibs=$link_all_deplibs_F77
17666
17667 # Compile-time system search path for libraries
17668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17669
17670 # Run-time system search path for libraries
17671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17672
17673 # Fix the shell variable \$srcfile for the compiler.
17674 fix_srcfile_path=$lt_fix_srcfile_path
17675
17676 # Set to yes if exported symbols are required.
17677 always_export_symbols=$always_export_symbols_F77
17678
17679 # The commands to list exported symbols.
17680 export_symbols_cmds=$lt_export_symbols_cmds_F77
17681
17682 # The commands to extract the exported symbol list from a shared archive.
17683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17684
17685 # Symbols that should not be listed in the preloaded symbols.
17686 exclude_expsyms=$lt_exclude_expsyms_F77
17687
17688 # Symbols that must always be exported.
17689 include_expsyms=$lt_include_expsyms_F77
17690
17691 # ### END LIBTOOL TAG CONFIG: $tagname
17692
17693 __EOF__
17694
17695
17696 else
17697 # If there is no Makefile yet, we rely on a make rule to execute
17698 # `config.status --recheck' to rerun these tests and create the
17699 # libtool script then.
17700 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17701 if test -f "$ltmain_in"; then
17702 test -f Makefile && make "$ltmain"
17703 fi
17704 fi
17705
17706
17707 ac_ext=c
17708 ac_cpp='$CPP $CPPFLAGS'
17709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17712
17713 CC="$lt_save_CC"
17714
17715 else
17716 tagname=""
17717 fi
17718 ;;
17719
17720 GCJ)
17721 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17722
17723
17724 # Source file extension for Java test sources.
17725 ac_ext=java
17726
17727 # Object file extension for compiled Java test sources.
17728 objext=o
17729 objext_GCJ=$objext
17730
17731 # Code to be used in simple compile tests
17732 lt_simple_compile_test_code="class foo {}"
17733
17734 # Code to be used in simple link tests
17735 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17736
17737 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17738
17739 # If no C compiler was specified, use CC.
17740 LTCC=${LTCC-"$CC"}
17741
17742 # If no C compiler flags were specified, use CFLAGS.
17743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17744
17745 # Allow CC to be a program name with arguments.
17746 compiler=$CC
17747
17748
17749 # save warnings/boilerplate of simple test code
17750 ac_outfile=conftest.$ac_objext
17751 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17752 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17753 _lt_compiler_boilerplate=`cat conftest.err`
17754 $rm conftest*
17755
17756 ac_outfile=conftest.$ac_objext
17757 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17758 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17759 _lt_linker_boilerplate=`cat conftest.err`
17760 $rm conftest*
17761
17762
17763 # Allow CC to be a program name with arguments.
17764 lt_save_CC="$CC"
17765 CC=${GCJ-"gcj"}
17766 compiler=$CC
17767 compiler_GCJ=$CC
17768 for cc_temp in $compiler""; do
17769 case $cc_temp in
17770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17772 \-*) ;;
17773 *) break;;
17774 esac
17775 done
17776 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17777
17778
17779 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17780 archive_cmds_need_lc_GCJ=no
17781
17782 old_archive_cmds_GCJ=$old_archive_cmds
17783
17784
17785 lt_prog_compiler_no_builtin_flag_GCJ=
17786
17787 if test "$GCC" = yes; then
17788 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17789
17790
17791 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17792 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17793 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 else
17796 lt_cv_prog_compiler_rtti_exceptions=no
17797 ac_outfile=conftest.$ac_objext
17798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17799 lt_compiler_flag="-fno-rtti -fno-exceptions"
17800 # Insert the option either (1) after the last *FLAGS variable, or
17801 # (2) before a word containing "conftest.", or (3) at the end.
17802 # Note that $ac_compile itself does not contain backslashes and begins
17803 # with a dollar sign (not a hyphen), so the echo should work correctly.
17804 # The option is referenced via a variable to avoid confusing sed.
17805 lt_compile=`echo "$ac_compile" | $SED \
17806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17808 -e 's:$: $lt_compiler_flag:'`
17809 (eval echo "\"\$as_me:17810: $lt_compile\"" >&5)
17810 (eval "$lt_compile" 2>conftest.err)
17811 ac_status=$?
17812 cat conftest.err >&5
17813 echo "$as_me:17814: \$? = $ac_status" >&5
17814 if (exit $ac_status) && test -s "$ac_outfile"; then
17815 # The compiler can only warn and ignore the option if not recognized
17816 # So say no if there are warnings other than the usual output.
17817 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17819 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17820 lt_cv_prog_compiler_rtti_exceptions=yes
17821 fi
17822 fi
17823 $rm conftest*
17824
17825 fi
17826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17827 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17828
17829 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17830 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17831 else
17832 :
17833 fi
17834
17835 fi
17836
17837 lt_prog_compiler_wl_GCJ=
17838 lt_prog_compiler_pic_GCJ=
17839 lt_prog_compiler_static_GCJ=
17840
17841 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17842 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17843
17844 if test "$GCC" = yes; then
17845 lt_prog_compiler_wl_GCJ='-Wl,'
17846 lt_prog_compiler_static_GCJ='-static'
17847
17848 case $host_os in
17849 aix*)
17850 # All AIX code is PIC.
17851 if test "$host_cpu" = ia64; then
17852 # AIX 5 now supports IA64 processor
17853 lt_prog_compiler_static_GCJ='-Bstatic'
17854 fi
17855 ;;
17856
17857 amigaos*)
17858 # FIXME: we need at least 68020 code to build shared libraries, but
17859 # adding the `-m68020' flag to GCC prevents building anything better,
17860 # like `-m68040'.
17861 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17862 ;;
17863
17864 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17865 # PIC is the default for these OSes.
17866 ;;
17867
17868 mingw* | cygwin* | pw32* | os2*)
17869 # This hack is so that the source file can tell whether it is being
17870 # built for inclusion in a dll (and should export symbols for example).
17871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17872 # (--disable-auto-import) libraries
17873 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17874 ;;
17875
17876 darwin* | rhapsody*)
17877 # PIC is the default on this platform
17878 # Common symbols not allowed in MH_DYLIB files
17879 lt_prog_compiler_pic_GCJ='-fno-common'
17880 ;;
17881
17882 interix[3-9]*)
17883 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17884 # Instead, we relocate shared libraries at runtime.
17885 ;;
17886
17887 msdosdjgpp*)
17888 # Just because we use GCC doesn't mean we suddenly get shared libraries
17889 # on systems that don't support them.
17890 lt_prog_compiler_can_build_shared_GCJ=no
17891 enable_shared=no
17892 ;;
17893
17894 sysv4*MP*)
17895 if test -d /usr/nec; then
17896 lt_prog_compiler_pic_GCJ=-Kconform_pic
17897 fi
17898 ;;
17899
17900 hpux*)
17901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17902 # not for PA HP-UX.
17903 case $host_cpu in
17904 hppa*64*|ia64*)
17905 # +Z the default
17906 ;;
17907 *)
17908 lt_prog_compiler_pic_GCJ='-fPIC'
17909 ;;
17910 esac
17911 ;;
17912
17913 *)
17914 lt_prog_compiler_pic_GCJ='-fPIC'
17915 ;;
17916 esac
17917 else
17918 # PORTME Check for flag to pass linker flags through the system compiler.
17919 case $host_os in
17920 aix*)
17921 lt_prog_compiler_wl_GCJ='-Wl,'
17922 if test "$host_cpu" = ia64; then
17923 # AIX 5 now supports IA64 processor
17924 lt_prog_compiler_static_GCJ='-Bstatic'
17925 else
17926 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17927 fi
17928 ;;
17929 darwin*)
17930 # PIC is the default on this platform
17931 # Common symbols not allowed in MH_DYLIB files
17932 case $cc_basename in
17933 xlc*)
17934 lt_prog_compiler_pic_GCJ='-qnocommon'
17935 lt_prog_compiler_wl_GCJ='-Wl,'
17936 ;;
17937 esac
17938 ;;
17939
17940 mingw* | cygwin* | pw32* | os2*)
17941 # This hack is so that the source file can tell whether it is being
17942 # built for inclusion in a dll (and should export symbols for example).
17943 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17944 ;;
17945
17946 hpux9* | hpux10* | hpux11*)
17947 lt_prog_compiler_wl_GCJ='-Wl,'
17948 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17949 # not for PA HP-UX.
17950 case $host_cpu in
17951 hppa*64*|ia64*)
17952 # +Z the default
17953 ;;
17954 *)
17955 lt_prog_compiler_pic_GCJ='+Z'
17956 ;;
17957 esac
17958 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17959 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17960 ;;
17961
17962 irix5* | irix6* | nonstopux*)
17963 lt_prog_compiler_wl_GCJ='-Wl,'
17964 # PIC (with -KPIC) is the default.
17965 lt_prog_compiler_static_GCJ='-non_shared'
17966 ;;
17967
17968 newsos6)
17969 lt_prog_compiler_pic_GCJ='-KPIC'
17970 lt_prog_compiler_static_GCJ='-Bstatic'
17971 ;;
17972
17973 linux* | k*bsd*-gnu)
17974 case $cc_basename in
17975 icc* | ecc*)
17976 lt_prog_compiler_wl_GCJ='-Wl,'
17977 lt_prog_compiler_pic_GCJ='-KPIC'
17978 lt_prog_compiler_static_GCJ='-static'
17979 ;;
17980 pgcc* | pgf77* | pgf90* | pgf95*)
17981 # Portland Group compilers (*not* the Pentium gcc compiler,
17982 # which looks to be a dead project)
17983 lt_prog_compiler_wl_GCJ='-Wl,'
17984 lt_prog_compiler_pic_GCJ='-fpic'
17985 lt_prog_compiler_static_GCJ='-Bstatic'
17986 ;;
17987 ccc*)
17988 lt_prog_compiler_wl_GCJ='-Wl,'
17989 # All Alpha code is PIC.
17990 lt_prog_compiler_static_GCJ='-non_shared'
17991 ;;
17992 *)
17993 case `$CC -V 2>&1 | sed 5q` in
17994 *Sun\ C*)
17995 # Sun C 5.9
17996 lt_prog_compiler_pic_GCJ='-KPIC'
17997 lt_prog_compiler_static_GCJ='-Bstatic'
17998 lt_prog_compiler_wl_GCJ='-Wl,'
17999 ;;
18000 *Sun\ F*)
18001 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18002 lt_prog_compiler_pic_GCJ='-KPIC'
18003 lt_prog_compiler_static_GCJ='-Bstatic'
18004 lt_prog_compiler_wl_GCJ=''
18005 ;;
18006 esac
18007 ;;
18008 esac
18009 ;;
18010
18011 osf3* | osf4* | osf5*)
18012 lt_prog_compiler_wl_GCJ='-Wl,'
18013 # All OSF/1 code is PIC.
18014 lt_prog_compiler_static_GCJ='-non_shared'
18015 ;;
18016
18017 rdos*)
18018 lt_prog_compiler_static_GCJ='-non_shared'
18019 ;;
18020
18021 solaris*)
18022 lt_prog_compiler_pic_GCJ='-KPIC'
18023 lt_prog_compiler_static_GCJ='-Bstatic'
18024 case $cc_basename in
18025 f77* | f90* | f95*)
18026 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18027 *)
18028 lt_prog_compiler_wl_GCJ='-Wl,';;
18029 esac
18030 ;;
18031
18032 sunos4*)
18033 lt_prog_compiler_wl_GCJ='-Qoption ld '
18034 lt_prog_compiler_pic_GCJ='-PIC'
18035 lt_prog_compiler_static_GCJ='-Bstatic'
18036 ;;
18037
18038 sysv4 | sysv4.2uw2* | sysv4.3*)
18039 lt_prog_compiler_wl_GCJ='-Wl,'
18040 lt_prog_compiler_pic_GCJ='-KPIC'
18041 lt_prog_compiler_static_GCJ='-Bstatic'
18042 ;;
18043
18044 sysv4*MP*)
18045 if test -d /usr/nec ;then
18046 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18047 lt_prog_compiler_static_GCJ='-Bstatic'
18048 fi
18049 ;;
18050
18051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18052 lt_prog_compiler_wl_GCJ='-Wl,'
18053 lt_prog_compiler_pic_GCJ='-KPIC'
18054 lt_prog_compiler_static_GCJ='-Bstatic'
18055 ;;
18056
18057 unicos*)
18058 lt_prog_compiler_wl_GCJ='-Wl,'
18059 lt_prog_compiler_can_build_shared_GCJ=no
18060 ;;
18061
18062 uts4*)
18063 lt_prog_compiler_pic_GCJ='-pic'
18064 lt_prog_compiler_static_GCJ='-Bstatic'
18065 ;;
18066
18067 *)
18068 lt_prog_compiler_can_build_shared_GCJ=no
18069 ;;
18070 esac
18071 fi
18072
18073 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18074 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18075
18076 #
18077 # Check to make sure the PIC flag actually works.
18078 #
18079 if test -n "$lt_prog_compiler_pic_GCJ"; then
18080
18081 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18082 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18083 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 else
18086 lt_prog_compiler_pic_works_GCJ=no
18087 ac_outfile=conftest.$ac_objext
18088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18089 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18090 # Insert the option either (1) after the last *FLAGS variable, or
18091 # (2) before a word containing "conftest.", or (3) at the end.
18092 # Note that $ac_compile itself does not contain backslashes and begins
18093 # with a dollar sign (not a hyphen), so the echo should work correctly.
18094 # The option is referenced via a variable to avoid confusing sed.
18095 lt_compile=`echo "$ac_compile" | $SED \
18096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18098 -e 's:$: $lt_compiler_flag:'`
18099 (eval echo "\"\$as_me:18100: $lt_compile\"" >&5)
18100 (eval "$lt_compile" 2>conftest.err)
18101 ac_status=$?
18102 cat conftest.err >&5
18103 echo "$as_me:18104: \$? = $ac_status" >&5
18104 if (exit $ac_status) && test -s "$ac_outfile"; then
18105 # The compiler can only warn and ignore the option if not recognized
18106 # So say no if there are warnings other than the usual output.
18107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18110 lt_prog_compiler_pic_works_GCJ=yes
18111 fi
18112 fi
18113 $rm conftest*
18114
18115 fi
18116 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18117 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18118
18119 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18120 case $lt_prog_compiler_pic_GCJ in
18121 "" | " "*) ;;
18122 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18123 esac
18124 else
18125 lt_prog_compiler_pic_GCJ=
18126 lt_prog_compiler_can_build_shared_GCJ=no
18127 fi
18128
18129 fi
18130 case $host_os in
18131 # For platforms which do not support PIC, -DPIC is meaningless:
18132 *djgpp*)
18133 lt_prog_compiler_pic_GCJ=
18134 ;;
18135 *)
18136 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18137 ;;
18138 esac
18139
18140 #
18141 # Check to make sure the static flag actually works.
18142 #
18143 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18144 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18145 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18146 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149 lt_prog_compiler_static_works_GCJ=no
18150 save_LDFLAGS="$LDFLAGS"
18151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18152 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18154 # The linker can only warn and ignore the option if not recognized
18155 # So say no if there are warnings
18156 if test -s conftest.err; then
18157 # Append any errors to the config.log.
18158 cat conftest.err 1>&5
18159 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18161 if diff conftest.exp conftest.er2 >/dev/null; then
18162 lt_prog_compiler_static_works_GCJ=yes
18163 fi
18164 else
18165 lt_prog_compiler_static_works_GCJ=yes
18166 fi
18167 fi
18168 $rm conftest*
18169 LDFLAGS="$save_LDFLAGS"
18170
18171 fi
18172 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18173 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18174
18175 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18176 :
18177 else
18178 lt_prog_compiler_static_GCJ=
18179 fi
18180
18181
18182 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18183 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18184 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187 lt_cv_prog_compiler_c_o_GCJ=no
18188 $rm -r conftest 2>/dev/null
18189 mkdir conftest
18190 cd conftest
18191 mkdir out
18192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18193
18194 lt_compiler_flag="-o out/conftest2.$ac_objext"
18195 # Insert the option either (1) after the last *FLAGS variable, or
18196 # (2) before a word containing "conftest.", or (3) at the end.
18197 # Note that $ac_compile itself does not contain backslashes and begins
18198 # with a dollar sign (not a hyphen), so the echo should work correctly.
18199 lt_compile=`echo "$ac_compile" | $SED \
18200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18202 -e 's:$: $lt_compiler_flag:'`
18203 (eval echo "\"\$as_me:18204: $lt_compile\"" >&5)
18204 (eval "$lt_compile" 2>out/conftest.err)
18205 ac_status=$?
18206 cat out/conftest.err >&5
18207 echo "$as_me:18208: \$? = $ac_status" >&5
18208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18209 then
18210 # The compiler can only warn and ignore the option if not recognized
18211 # So say no if there are warnings
18212 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18215 lt_cv_prog_compiler_c_o_GCJ=yes
18216 fi
18217 fi
18218 chmod u+w . 2>&5
18219 $rm conftest*
18220 # SGI C++ compiler will create directory out/ii_files/ for
18221 # template instantiation
18222 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18223 $rm out/* && rmdir out
18224 cd ..
18225 rmdir conftest
18226 $rm conftest*
18227
18228 fi
18229 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18230 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18231
18232
18233 hard_links="nottested"
18234 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18235 # do not overwrite the value of need_locks provided by the user
18236 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18237 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18238 hard_links=yes
18239 $rm conftest*
18240 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18241 touch conftest.a
18242 ln conftest.a conftest.b 2>&5 || hard_links=no
18243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18244 { echo "$as_me:$LINENO: result: $hard_links" >&5
18245 echo "${ECHO_T}$hard_links" >&6; }
18246 if test "$hard_links" = no; then
18247 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18248 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18249 need_locks=warn
18250 fi
18251 else
18252 need_locks=no
18253 fi
18254
18255 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18256 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18257
18258 runpath_var=
18259 allow_undefined_flag_GCJ=
18260 enable_shared_with_static_runtimes_GCJ=no
18261 archive_cmds_GCJ=
18262 archive_expsym_cmds_GCJ=
18263 old_archive_From_new_cmds_GCJ=
18264 old_archive_from_expsyms_cmds_GCJ=
18265 export_dynamic_flag_spec_GCJ=
18266 whole_archive_flag_spec_GCJ=
18267 thread_safe_flag_spec_GCJ=
18268 hardcode_libdir_flag_spec_GCJ=
18269 hardcode_libdir_flag_spec_ld_GCJ=
18270 hardcode_libdir_separator_GCJ=
18271 hardcode_direct_GCJ=no
18272 hardcode_minus_L_GCJ=no
18273 hardcode_shlibpath_var_GCJ=unsupported
18274 link_all_deplibs_GCJ=unknown
18275 hardcode_automatic_GCJ=no
18276 module_cmds_GCJ=
18277 module_expsym_cmds_GCJ=
18278 always_export_symbols_GCJ=no
18279 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18280 # include_expsyms should be a list of space-separated symbols to be *always*
18281 # included in the symbol list
18282 include_expsyms_GCJ=
18283 # exclude_expsyms can be an extended regexp of symbols to exclude
18284 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18285 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18286 # as well as any symbol that contains `d'.
18287 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18288 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18289 # platforms (ab)use it in PIC code, but their linkers get confused if
18290 # the symbol is explicitly referenced. Since portable code cannot
18291 # rely on this symbol name, it's probably fine to never include it in
18292 # preloaded symbol tables.
18293 extract_expsyms_cmds=
18294 # Just being paranoid about ensuring that cc_basename is set.
18295 for cc_temp in $compiler""; do
18296 case $cc_temp in
18297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18299 \-*) ;;
18300 *) break;;
18301 esac
18302 done
18303 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18304
18305 case $host_os in
18306 cygwin* | mingw* | pw32*)
18307 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18308 # When not using gcc, we currently assume that we are using
18309 # Microsoft Visual C++.
18310 if test "$GCC" != yes; then
18311 with_gnu_ld=no
18312 fi
18313 ;;
18314 interix*)
18315 # we just hope/assume this is gcc and not c89 (= MSVC++)
18316 with_gnu_ld=yes
18317 ;;
18318 openbsd*)
18319 with_gnu_ld=no
18320 ;;
18321 esac
18322
18323 ld_shlibs_GCJ=yes
18324 if test "$with_gnu_ld" = yes; then
18325 # If archive_cmds runs LD, not CC, wlarc should be empty
18326 wlarc='${wl}'
18327
18328 # Set some defaults for GNU ld with shared library support. These
18329 # are reset later if shared libraries are not supported. Putting them
18330 # here allows them to be overridden if necessary.
18331 runpath_var=LD_RUN_PATH
18332 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18333 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18334 # ancient GNU ld didn't support --whole-archive et. al.
18335 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18336 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18337 else
18338 whole_archive_flag_spec_GCJ=
18339 fi
18340 supports_anon_versioning=no
18341 case `$LD -v 2>/dev/null` in
18342 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18345 *\ 2.11.*) ;; # other 2.11 versions
18346 *) supports_anon_versioning=yes ;;
18347 esac
18348
18349 # See if GNU ld supports shared libraries.
18350 case $host_os in
18351 aix3* | aix4* | aix5*)
18352 # On AIX/PPC, the GNU linker is very broken
18353 if test "$host_cpu" != ia64; then
18354 ld_shlibs_GCJ=no
18355 cat <<EOF 1>&2
18356
18357 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18358 *** to be unable to reliably create shared libraries on AIX.
18359 *** Therefore, libtool is disabling shared libraries support. If you
18360 *** really care for shared libraries, you may want to modify your PATH
18361 *** so that a non-GNU linker is found, and then restart.
18362
18363 EOF
18364 fi
18365 ;;
18366
18367 amigaos*)
18368 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)'
18369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18370 hardcode_minus_L_GCJ=yes
18371
18372 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18373 # that the semantics of dynamic libraries on AmigaOS, at least up
18374 # to version 4, is to share data among multiple programs linked
18375 # with the same dynamic library. Since this doesn't match the
18376 # behavior of shared libraries on other platforms, we can't use
18377 # them.
18378 ld_shlibs_GCJ=no
18379 ;;
18380
18381 beos*)
18382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18383 allow_undefined_flag_GCJ=unsupported
18384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18385 # support --undefined. This deserves some investigation. FIXME
18386 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18387 else
18388 ld_shlibs_GCJ=no
18389 fi
18390 ;;
18391
18392 cygwin* | mingw* | pw32*)
18393 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18394 # as there is no search path for DLLs.
18395 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18396 allow_undefined_flag_GCJ=unsupported
18397 always_export_symbols_GCJ=no
18398 enable_shared_with_static_runtimes_GCJ=yes
18399 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18400
18401 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18402 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18403 # If the export-symbols file already is a .def file (1st line
18404 # is EXPORTS), use it as is; otherwise, prepend...
18405 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18406 cp $export_symbols $output_objdir/$soname.def;
18407 else
18408 echo EXPORTS > $output_objdir/$soname.def;
18409 cat $export_symbols >> $output_objdir/$soname.def;
18410 fi~
18411 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18412 else
18413 ld_shlibs_GCJ=no
18414 fi
18415 ;;
18416
18417 interix[3-9]*)
18418 hardcode_direct_GCJ=no
18419 hardcode_shlibpath_var_GCJ=no
18420 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18421 export_dynamic_flag_spec_GCJ='${wl}-E'
18422 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18423 # Instead, shared libraries are loaded at an image base (0x10000000 by
18424 # default) and relocated if they conflict, which is a slow very memory
18425 # consuming and fragmenting process. To avoid this, we pick a random,
18426 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18427 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18428 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18429 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18430 ;;
18431
18432 gnu* | linux* | k*bsd*-gnu)
18433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18434 tmp_addflag=
18435 case $cc_basename,$host_cpu in
18436 pgcc*) # Portland Group C compiler
18437 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18438 tmp_addflag=' $pic_flag'
18439 ;;
18440 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18441 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18442 tmp_addflag=' $pic_flag -Mnomain' ;;
18443 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18444 tmp_addflag=' -i_dynamic' ;;
18445 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18446 tmp_addflag=' -i_dynamic -nofor_main' ;;
18447 ifc* | ifort*) # Intel Fortran compiler
18448 tmp_addflag=' -nofor_main' ;;
18449 esac
18450 case `$CC -V 2>&1 | sed 5q` in
18451 *Sun\ C*) # Sun C 5.9
18452 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18453 tmp_sharedflag='-G' ;;
18454 *Sun\ F*) # Sun Fortran 8.3
18455 tmp_sharedflag='-G' ;;
18456 *)
18457 tmp_sharedflag='-shared' ;;
18458 esac
18459 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18460
18461 if test $supports_anon_versioning = yes; then
18462 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18464 $echo "local: *; };" >> $output_objdir/$libname.ver~
18465 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18466 fi
18467 link_all_deplibs_GCJ=no
18468 else
18469 ld_shlibs_GCJ=no
18470 fi
18471 ;;
18472
18473 netbsd* | netbsdelf*-gnu)
18474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18475 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18476 wlarc=
18477 else
18478 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18479 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18480 fi
18481 ;;
18482
18483 solaris*)
18484 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18485 ld_shlibs_GCJ=no
18486 cat <<EOF 1>&2
18487
18488 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18489 *** create shared libraries on Solaris systems. Therefore, libtool
18490 *** is disabling shared libraries support. We urge you to upgrade GNU
18491 *** binutils to release 2.9.1 or newer. Another option is to modify
18492 *** your PATH or compiler configuration so that the native linker is
18493 *** used, and then restart.
18494
18495 EOF
18496 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18499 else
18500 ld_shlibs_GCJ=no
18501 fi
18502 ;;
18503
18504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18505 case `$LD -v 2>&1` in
18506 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18507 ld_shlibs_GCJ=no
18508 cat <<_LT_EOF 1>&2
18509
18510 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18511 *** reliably create shared libraries on SCO systems. Therefore, libtool
18512 *** is disabling shared libraries support. We urge you to upgrade GNU
18513 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18514 *** your PATH or compiler configuration so that the native linker is
18515 *** used, and then restart.
18516
18517 _LT_EOF
18518 ;;
18519 *)
18520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18521 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18523 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18524 else
18525 ld_shlibs_GCJ=no
18526 fi
18527 ;;
18528 esac
18529 ;;
18530
18531 sunos4*)
18532 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18533 wlarc=
18534 hardcode_direct_GCJ=yes
18535 hardcode_shlibpath_var_GCJ=no
18536 ;;
18537
18538 *)
18539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18541 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18542 else
18543 ld_shlibs_GCJ=no
18544 fi
18545 ;;
18546 esac
18547
18548 if test "$ld_shlibs_GCJ" = no; then
18549 runpath_var=
18550 hardcode_libdir_flag_spec_GCJ=
18551 export_dynamic_flag_spec_GCJ=
18552 whole_archive_flag_spec_GCJ=
18553 fi
18554 else
18555 # PORTME fill in a description of your system's linker (not GNU ld)
18556 case $host_os in
18557 aix3*)
18558 allow_undefined_flag_GCJ=unsupported
18559 always_export_symbols_GCJ=yes
18560 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'
18561 # Note: this linker hardcodes the directories in LIBPATH if there
18562 # are no directories specified by -L.
18563 hardcode_minus_L_GCJ=yes
18564 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18565 # Neither direct hardcoding nor static linking is supported with a
18566 # broken collect2.
18567 hardcode_direct_GCJ=unsupported
18568 fi
18569 ;;
18570
18571 aix4* | aix5*)
18572 if test "$host_cpu" = ia64; then
18573 # On IA64, the linker does run time linking by default, so we don't
18574 # have to do anything special.
18575 aix_use_runtimelinking=no
18576 exp_sym_flag='-Bexport'
18577 no_entry_flag=""
18578 else
18579 # If we're using GNU nm, then we don't want the "-C" option.
18580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18582 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'
18583 else
18584 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'
18585 fi
18586 aix_use_runtimelinking=no
18587
18588 # Test if we are trying to use run time linking or normal
18589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18590 # need to do runtime linking.
18591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18592 for ld_flag in $LDFLAGS; do
18593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18594 aix_use_runtimelinking=yes
18595 break
18596 fi
18597 done
18598 ;;
18599 esac
18600
18601 exp_sym_flag='-bexport'
18602 no_entry_flag='-bnoentry'
18603 fi
18604
18605 # When large executables or shared objects are built, AIX ld can
18606 # have problems creating the table of contents. If linking a library
18607 # or program results in "error TOC overflow" add -mminimal-toc to
18608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18610
18611 archive_cmds_GCJ=''
18612 hardcode_direct_GCJ=yes
18613 hardcode_libdir_separator_GCJ=':'
18614 link_all_deplibs_GCJ=yes
18615
18616 if test "$GCC" = yes; then
18617 case $host_os in aix4.[012]|aix4.[012].*)
18618 # We only want to do this on AIX 4.2 and lower, the check
18619 # below for broken collect2 doesn't work under 4.3+
18620 collect2name=`${CC} -print-prog-name=collect2`
18621 if test -f "$collect2name" && \
18622 strings "$collect2name" | grep resolve_lib_name >/dev/null
18623 then
18624 # We have reworked collect2
18625 :
18626 else
18627 # We have old collect2
18628 hardcode_direct_GCJ=unsupported
18629 # It fails to find uninstalled libraries when the uninstalled
18630 # path is not listed in the libpath. Setting hardcode_minus_L
18631 # to unsupported forces relinking
18632 hardcode_minus_L_GCJ=yes
18633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18634 hardcode_libdir_separator_GCJ=
18635 fi
18636 ;;
18637 esac
18638 shared_flag='-shared'
18639 if test "$aix_use_runtimelinking" = yes; then
18640 shared_flag="$shared_flag "'${wl}-G'
18641 fi
18642 else
18643 # not using gcc
18644 if test "$host_cpu" = ia64; then
18645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18646 # chokes on -Wl,-G. The following line is correct:
18647 shared_flag='-G'
18648 else
18649 if test "$aix_use_runtimelinking" = yes; then
18650 shared_flag='${wl}-G'
18651 else
18652 shared_flag='${wl}-bM:SRE'
18653 fi
18654 fi
18655 fi
18656
18657 # It seems that -bexpall does not export symbols beginning with
18658 # underscore (_), so it is better to generate a list of symbols to export.
18659 always_export_symbols_GCJ=yes
18660 if test "$aix_use_runtimelinking" = yes; then
18661 # Warning - without using the other runtime loading flags (-brtl),
18662 # -berok will link without error, but may produce a broken library.
18663 allow_undefined_flag_GCJ='-berok'
18664 # Determine the default libpath from the value encoded in an empty executable.
18665 cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h. */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18671
18672 int
18673 main ()
18674 {
18675
18676 ;
18677 return 0;
18678 }
18679 _ACEOF
18680 rm -f conftest.$ac_objext conftest$ac_exeext
18681 if { (ac_try="$ac_link"
18682 case "(($ac_try" in
18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684 *) ac_try_echo=$ac_try;;
18685 esac
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687 (eval "$ac_link") 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } && {
18694 test -z "$ac_c_werror_flag" ||
18695 test ! -s conftest.err
18696 } && test -s conftest$ac_exeext &&
18697 $as_test_x conftest$ac_exeext; then
18698
18699 lt_aix_libpath_sed='
18700 /Import File Strings/,/^$/ {
18701 /^0/ {
18702 s/^0 *\(.*\)$/\1/
18703 p
18704 }
18705 }'
18706 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18707 # Check for a 64-bit object if we didn't find anything.
18708 if test -z "$aix_libpath"; then
18709 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18710 fi
18711 else
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715
18716 fi
18717
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719 conftest$ac_exeext conftest.$ac_ext
18720 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18721
18722 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18723 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18724 else
18725 if test "$host_cpu" = ia64; then
18726 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18727 allow_undefined_flag_GCJ="-z nodefs"
18728 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18729 else
18730 # Determine the default libpath from the value encoded in an empty executable.
18731 cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h. */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18737
18738 int
18739 main ()
18740 {
18741
18742 ;
18743 return 0;
18744 }
18745 _ACEOF
18746 rm -f conftest.$ac_objext conftest$ac_exeext
18747 if { (ac_try="$ac_link"
18748 case "(($ac_try" in
18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750 *) ac_try_echo=$ac_try;;
18751 esac
18752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753 (eval "$ac_link") 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } && {
18760 test -z "$ac_c_werror_flag" ||
18761 test ! -s conftest.err
18762 } && test -s conftest$ac_exeext &&
18763 $as_test_x conftest$ac_exeext; then
18764
18765 lt_aix_libpath_sed='
18766 /Import File Strings/,/^$/ {
18767 /^0/ {
18768 s/^0 *\(.*\)$/\1/
18769 p
18770 }
18771 }'
18772 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18773 # Check for a 64-bit object if we didn't find anything.
18774 if test -z "$aix_libpath"; then
18775 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18776 fi
18777 else
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18780
18781
18782 fi
18783
18784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18785 conftest$ac_exeext conftest.$ac_ext
18786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18787
18788 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18789 # Warning - without using the other run time loading flags,
18790 # -berok will link without error, but may produce a broken library.
18791 no_undefined_flag_GCJ=' ${wl}-bernotok'
18792 allow_undefined_flag_GCJ=' ${wl}-berok'
18793 # Exported symbols can be pulled into shared objects from archives
18794 whole_archive_flag_spec_GCJ='$convenience'
18795 archive_cmds_need_lc_GCJ=yes
18796 # This is similar to how AIX traditionally builds its shared libraries.
18797 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18798 fi
18799 fi
18800 ;;
18801
18802 amigaos*)
18803 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)'
18804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18805 hardcode_minus_L_GCJ=yes
18806 # see comment about different semantics on the GNU ld section
18807 ld_shlibs_GCJ=no
18808 ;;
18809
18810 bsdi[45]*)
18811 export_dynamic_flag_spec_GCJ=-rdynamic
18812 ;;
18813
18814 cygwin* | mingw* | pw32*)
18815 # When not using gcc, we currently assume that we are using
18816 # Microsoft Visual C++.
18817 # hardcode_libdir_flag_spec is actually meaningless, as there is
18818 # no search path for DLLs.
18819 hardcode_libdir_flag_spec_GCJ=' '
18820 allow_undefined_flag_GCJ=unsupported
18821 # Tell ltmain to make .lib files, not .a files.
18822 libext=lib
18823 # Tell ltmain to make .dll files, not .so files.
18824 shrext_cmds=".dll"
18825 # FIXME: Setting linknames here is a bad hack.
18826 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18827 # The linker will automatically build a .lib file if we build a DLL.
18828 old_archive_From_new_cmds_GCJ='true'
18829 # FIXME: Should let the user specify the lib program.
18830 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18831 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18832 enable_shared_with_static_runtimes_GCJ=yes
18833 ;;
18834
18835 darwin* | rhapsody*)
18836 case $host_os in
18837 rhapsody* | darwin1.[012])
18838 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18839 ;;
18840 *) # Darwin 1.3 on
18841 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18842 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18843 else
18844 case ${MACOSX_DEPLOYMENT_TARGET} in
18845 10.[012])
18846 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18847 ;;
18848 10.*)
18849 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18850 ;;
18851 esac
18852 fi
18853 ;;
18854 esac
18855 archive_cmds_need_lc_GCJ=no
18856 hardcode_direct_GCJ=no
18857 hardcode_automatic_GCJ=yes
18858 hardcode_shlibpath_var_GCJ=unsupported
18859 whole_archive_flag_spec_GCJ=''
18860 link_all_deplibs_GCJ=yes
18861 if test "$GCC" = yes ; then
18862 output_verbose_link_cmd='echo'
18863 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18864 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18866 archive_expsym_cmds_GCJ='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}'
18867 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}'
18868 else
18869 case $cc_basename in
18870 xlc*)
18871 output_verbose_link_cmd='echo'
18872 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18873 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18874 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18875 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18876 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}'
18877 ;;
18878 *)
18879 ld_shlibs_GCJ=no
18880 ;;
18881 esac
18882 fi
18883 ;;
18884
18885 dgux*)
18886 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18887 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18888 hardcode_shlibpath_var_GCJ=no
18889 ;;
18890
18891 freebsd1*)
18892 ld_shlibs_GCJ=no
18893 ;;
18894
18895 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18896 # support. Future versions do this automatically, but an explicit c++rt0.o
18897 # does not break anything, and helps significantly (at the cost of a little
18898 # extra space).
18899 freebsd2.2*)
18900 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18901 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18902 hardcode_direct_GCJ=yes
18903 hardcode_shlibpath_var_GCJ=no
18904 ;;
18905
18906 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18907 freebsd2*)
18908 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18909 hardcode_direct_GCJ=yes
18910 hardcode_minus_L_GCJ=yes
18911 hardcode_shlibpath_var_GCJ=no
18912 ;;
18913
18914 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18915 freebsd* | dragonfly*)
18916 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18917 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18918 hardcode_direct_GCJ=yes
18919 hardcode_shlibpath_var_GCJ=no
18920 ;;
18921
18922 hpux9*)
18923 if test "$GCC" = yes; then
18924 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'
18925 else
18926 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'
18927 fi
18928 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18929 hardcode_libdir_separator_GCJ=:
18930 hardcode_direct_GCJ=yes
18931
18932 # hardcode_minus_L: Not really in the search PATH,
18933 # but as the default location of the library.
18934 hardcode_minus_L_GCJ=yes
18935 export_dynamic_flag_spec_GCJ='${wl}-E'
18936 ;;
18937
18938 hpux10*)
18939 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18940 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18941 else
18942 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18943 fi
18944 if test "$with_gnu_ld" = no; then
18945 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18946 hardcode_libdir_separator_GCJ=:
18947
18948 hardcode_direct_GCJ=yes
18949 export_dynamic_flag_spec_GCJ='${wl}-E'
18950
18951 # hardcode_minus_L: Not really in the search PATH,
18952 # but as the default location of the library.
18953 hardcode_minus_L_GCJ=yes
18954 fi
18955 ;;
18956
18957 hpux11*)
18958 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18959 case $host_cpu in
18960 hppa*64*)
18961 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18962 ;;
18963 ia64*)
18964 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18965 ;;
18966 *)
18967 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18968 ;;
18969 esac
18970 else
18971 case $host_cpu in
18972 hppa*64*)
18973 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18974 ;;
18975 ia64*)
18976 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18977 ;;
18978 *)
18979 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18980 ;;
18981 esac
18982 fi
18983 if test "$with_gnu_ld" = no; then
18984 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18985 hardcode_libdir_separator_GCJ=:
18986
18987 case $host_cpu in
18988 hppa*64*|ia64*)
18989 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18990 hardcode_direct_GCJ=no
18991 hardcode_shlibpath_var_GCJ=no
18992 ;;
18993 *)
18994 hardcode_direct_GCJ=yes
18995 export_dynamic_flag_spec_GCJ='${wl}-E'
18996
18997 # hardcode_minus_L: Not really in the search PATH,
18998 # but as the default location of the library.
18999 hardcode_minus_L_GCJ=yes
19000 ;;
19001 esac
19002 fi
19003 ;;
19004
19005 irix5* | irix6* | nonstopux*)
19006 if test "$GCC" = yes; then
19007 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'
19008 else
19009 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'
19010 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19011 fi
19012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19013 hardcode_libdir_separator_GCJ=:
19014 link_all_deplibs_GCJ=yes
19015 ;;
19016
19017 netbsd* | netbsdelf*-gnu)
19018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19019 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19020 else
19021 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19022 fi
19023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19024 hardcode_direct_GCJ=yes
19025 hardcode_shlibpath_var_GCJ=no
19026 ;;
19027
19028 newsos6)
19029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19030 hardcode_direct_GCJ=yes
19031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19032 hardcode_libdir_separator_GCJ=:
19033 hardcode_shlibpath_var_GCJ=no
19034 ;;
19035
19036 openbsd*)
19037 if test -f /usr/libexec/ld.so; then
19038 hardcode_direct_GCJ=yes
19039 hardcode_shlibpath_var_GCJ=no
19040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19041 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19042 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19044 export_dynamic_flag_spec_GCJ='${wl}-E'
19045 else
19046 case $host_os in
19047 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19048 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19049 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19050 ;;
19051 *)
19052 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19054 ;;
19055 esac
19056 fi
19057 else
19058 ld_shlibs_GCJ=no
19059 fi
19060 ;;
19061
19062 os2*)
19063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19064 hardcode_minus_L_GCJ=yes
19065 allow_undefined_flag_GCJ=unsupported
19066 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'
19067 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19068 ;;
19069
19070 osf3*)
19071 if test "$GCC" = yes; then
19072 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19073 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'
19074 else
19075 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19076 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'
19077 fi
19078 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19079 hardcode_libdir_separator_GCJ=:
19080 ;;
19081
19082 osf4* | osf5*) # as osf3* with the addition of -msym flag
19083 if test "$GCC" = yes; then
19084 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19085 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'
19086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19087 else
19088 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19089 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'
19090 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~
19091 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19092
19093 # Both c and cxx compiler support -rpath directly
19094 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19095 fi
19096 hardcode_libdir_separator_GCJ=:
19097 ;;
19098
19099 solaris*)
19100 no_undefined_flag_GCJ=' -z text'
19101 if test "$GCC" = yes; then
19102 wlarc='${wl}'
19103 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19104 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19105 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19106 else
19107 wlarc=''
19108 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19109 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19110 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19111 fi
19112 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19113 hardcode_shlibpath_var_GCJ=no
19114 case $host_os in
19115 solaris2.[0-5] | solaris2.[0-5].*) ;;
19116 *)
19117 # The compiler driver will combine and reorder linker options,
19118 # but understands `-z linker_flag'. GCC discards it without `$wl',
19119 # but is careful enough not to reorder.
19120 # Supported since Solaris 2.6 (maybe 2.5.1?)
19121 if test "$GCC" = yes; then
19122 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19123 else
19124 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19125 fi
19126 ;;
19127 esac
19128 link_all_deplibs_GCJ=yes
19129 ;;
19130
19131 sunos4*)
19132 if test "x$host_vendor" = xsequent; then
19133 # Use $CC to link under sequent, because it throws in some extra .o
19134 # files that make .init and .fini sections work.
19135 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19136 else
19137 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19138 fi
19139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19140 hardcode_direct_GCJ=yes
19141 hardcode_minus_L_GCJ=yes
19142 hardcode_shlibpath_var_GCJ=no
19143 ;;
19144
19145 sysv4)
19146 case $host_vendor in
19147 sni)
19148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19149 hardcode_direct_GCJ=yes # is this really true???
19150 ;;
19151 siemens)
19152 ## LD is ld it makes a PLAMLIB
19153 ## CC just makes a GrossModule.
19154 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19155 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19156 hardcode_direct_GCJ=no
19157 ;;
19158 motorola)
19159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19160 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19161 ;;
19162 esac
19163 runpath_var='LD_RUN_PATH'
19164 hardcode_shlibpath_var_GCJ=no
19165 ;;
19166
19167 sysv4.3*)
19168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19169 hardcode_shlibpath_var_GCJ=no
19170 export_dynamic_flag_spec_GCJ='-Bexport'
19171 ;;
19172
19173 sysv4*MP*)
19174 if test -d /usr/nec; then
19175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19176 hardcode_shlibpath_var_GCJ=no
19177 runpath_var=LD_RUN_PATH
19178 hardcode_runpath_var=yes
19179 ld_shlibs_GCJ=yes
19180 fi
19181 ;;
19182
19183 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19184 no_undefined_flag_GCJ='${wl}-z,text'
19185 archive_cmds_need_lc_GCJ=no
19186 hardcode_shlibpath_var_GCJ=no
19187 runpath_var='LD_RUN_PATH'
19188
19189 if test "$GCC" = yes; then
19190 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19191 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19192 else
19193 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19194 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19195 fi
19196 ;;
19197
19198 sysv5* | sco3.2v5* | sco5v6*)
19199 # Note: We can NOT use -z defs as we might desire, because we do not
19200 # link with -lc, and that would cause any symbols used from libc to
19201 # always be unresolved, which means just about no library would
19202 # ever link correctly. If we're not using GNU ld we use -z text
19203 # though, which does catch some bad symbols but isn't as heavy-handed
19204 # as -z defs.
19205 no_undefined_flag_GCJ='${wl}-z,text'
19206 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19207 archive_cmds_need_lc_GCJ=no
19208 hardcode_shlibpath_var_GCJ=no
19209 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19210 hardcode_libdir_separator_GCJ=':'
19211 link_all_deplibs_GCJ=yes
19212 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19213 runpath_var='LD_RUN_PATH'
19214
19215 if test "$GCC" = yes; then
19216 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19217 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19218 else
19219 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19220 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19221 fi
19222 ;;
19223
19224 uts4*)
19225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19226 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19227 hardcode_shlibpath_var_GCJ=no
19228 ;;
19229
19230 *)
19231 ld_shlibs_GCJ=no
19232 ;;
19233 esac
19234 fi
19235
19236 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19237 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19238 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19239
19240 #
19241 # Do we need to explicitly link libc?
19242 #
19243 case "x$archive_cmds_need_lc_GCJ" in
19244 x|xyes)
19245 # Assume -lc should be added
19246 archive_cmds_need_lc_GCJ=yes
19247
19248 if test "$enable_shared" = yes && test "$GCC" = yes; then
19249 case $archive_cmds_GCJ in
19250 *'~'*)
19251 # FIXME: we may have to deal with multi-command sequences.
19252 ;;
19253 '$CC '*)
19254 # Test whether the compiler implicitly links with -lc since on some
19255 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19256 # to ld, don't add -lc before -lgcc.
19257 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19258 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19259 $rm conftest*
19260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19261
19262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19263 (eval $ac_compile) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } 2>conftest.err; then
19267 soname=conftest
19268 lib=conftest
19269 libobjs=conftest.$ac_objext
19270 deplibs=
19271 wl=$lt_prog_compiler_wl_GCJ
19272 pic_flag=$lt_prog_compiler_pic_GCJ
19273 compiler_flags=-v
19274 linker_flags=-v
19275 verstring=
19276 output_objdir=.
19277 libname=conftest
19278 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19279 allow_undefined_flag_GCJ=
19280 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19281 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }
19285 then
19286 archive_cmds_need_lc_GCJ=no
19287 else
19288 archive_cmds_need_lc_GCJ=yes
19289 fi
19290 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19291 else
19292 cat conftest.err 1>&5
19293 fi
19294 $rm conftest*
19295 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19296 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19297 ;;
19298 esac
19299 fi
19300 ;;
19301 esac
19302
19303 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19304 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19305 library_names_spec=
19306 libname_spec='lib$name'
19307 soname_spec=
19308 shrext_cmds=".so"
19309 postinstall_cmds=
19310 postuninstall_cmds=
19311 finish_cmds=
19312 finish_eval=
19313 shlibpath_var=
19314 shlibpath_overrides_runpath=unknown
19315 version_type=none
19316 dynamic_linker="$host_os ld.so"
19317 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19318
19319 need_lib_prefix=unknown
19320 hardcode_into_libs=no
19321
19322 # when you set need_version to no, make sure it does not cause -set_version
19323 # flags to be left without arguments
19324 need_version=unknown
19325
19326 case $host_os in
19327 aix3*)
19328 version_type=linux
19329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19330 shlibpath_var=LIBPATH
19331
19332 # AIX 3 has no versioning support, so we append a major version to the name.
19333 soname_spec='${libname}${release}${shared_ext}$major'
19334 ;;
19335
19336 aix4* | aix5*)
19337 version_type=linux
19338 need_lib_prefix=no
19339 need_version=no
19340 hardcode_into_libs=yes
19341 if test "$host_cpu" = ia64; then
19342 # AIX 5 supports IA64
19343 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19344 shlibpath_var=LD_LIBRARY_PATH
19345 else
19346 # With GCC up to 2.95.x, collect2 would create an import file
19347 # for dependence libraries. The import file would start with
19348 # the line `#! .'. This would cause the generated library to
19349 # depend on `.', always an invalid library. This was fixed in
19350 # development snapshots of GCC prior to 3.0.
19351 case $host_os in
19352 aix4 | aix4.[01] | aix4.[01].*)
19353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19354 echo ' yes '
19355 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19356 :
19357 else
19358 can_build_shared=no
19359 fi
19360 ;;
19361 esac
19362 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19363 # soname into executable. Probably we can add versioning support to
19364 # collect2, so additional links can be useful in future.
19365 if test "$aix_use_runtimelinking" = yes; then
19366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19367 # instead of lib<name>.a to let people know that these are not
19368 # typical AIX shared libraries.
19369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19370 else
19371 # We preserve .a as extension for shared libraries through AIX4.2
19372 # and later when we are not doing run time linking.
19373 library_names_spec='${libname}${release}.a $libname.a'
19374 soname_spec='${libname}${release}${shared_ext}$major'
19375 fi
19376 shlibpath_var=LIBPATH
19377 fi
19378 ;;
19379
19380 amigaos*)
19381 library_names_spec='$libname.ixlibrary $libname.a'
19382 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19383 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'
19384 ;;
19385
19386 beos*)
19387 library_names_spec='${libname}${shared_ext}'
19388 dynamic_linker="$host_os ld.so"
19389 shlibpath_var=LIBRARY_PATH
19390 ;;
19391
19392 bsdi[45]*)
19393 version_type=linux
19394 need_version=no
19395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19396 soname_spec='${libname}${release}${shared_ext}$major'
19397 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19398 shlibpath_var=LD_LIBRARY_PATH
19399 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19400 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19401 # the default ld.so.conf also contains /usr/contrib/lib and
19402 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19403 # libtool to hard-code these into programs
19404 ;;
19405
19406 cygwin* | mingw* | pw32*)
19407 version_type=windows
19408 shrext_cmds=".dll"
19409 need_version=no
19410 need_lib_prefix=no
19411
19412 case $GCC,$host_os in
19413 yes,cygwin* | yes,mingw* | yes,pw32*)
19414 library_names_spec='$libname.dll.a'
19415 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19416 postinstall_cmds='base_file=`basename \${file}`~
19417 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19418 dldir=$destdir/`dirname \$dlpath`~
19419 test -d \$dldir || mkdir -p \$dldir~
19420 $install_prog $dir/$dlname \$dldir/$dlname~
19421 chmod a+x \$dldir/$dlname'
19422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19423 dlpath=$dir/\$dldll~
19424 $rm \$dlpath'
19425 shlibpath_overrides_runpath=yes
19426
19427 case $host_os in
19428 cygwin*)
19429 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19430 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19431 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19432 ;;
19433 mingw*)
19434 # MinGW DLLs use traditional 'lib' prefix
19435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19436 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19437 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19438 # It is most probably a Windows format PATH printed by
19439 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19440 # path with ; separators, and with drive letters. We can handle the
19441 # drive letters (cygwin fileutils understands them), so leave them,
19442 # especially as we might pass files found there to a mingw objdump,
19443 # which wouldn't understand a cygwinified path. Ahh.
19444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19445 else
19446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19447 fi
19448 ;;
19449 pw32*)
19450 # pw32 DLLs use 'pw' prefix rather than 'lib'
19451 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19452 ;;
19453 esac
19454 ;;
19455
19456 *)
19457 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19458 ;;
19459 esac
19460 dynamic_linker='Win32 ld.exe'
19461 # FIXME: first we should search . and the directory the executable is in
19462 shlibpath_var=PATH
19463 ;;
19464
19465 darwin* | rhapsody*)
19466 dynamic_linker="$host_os dyld"
19467 version_type=darwin
19468 need_lib_prefix=no
19469 need_version=no
19470 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19471 soname_spec='${libname}${release}${major}$shared_ext'
19472 shlibpath_overrides_runpath=yes
19473 shlibpath_var=DYLD_LIBRARY_PATH
19474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19475
19476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19477 ;;
19478
19479 dgux*)
19480 version_type=linux
19481 need_lib_prefix=no
19482 need_version=no
19483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19484 soname_spec='${libname}${release}${shared_ext}$major'
19485 shlibpath_var=LD_LIBRARY_PATH
19486 ;;
19487
19488 freebsd1*)
19489 dynamic_linker=no
19490 ;;
19491
19492 freebsd* | dragonfly*)
19493 # DragonFly does not have aout. When/if they implement a new
19494 # versioning mechanism, adjust this.
19495 if test -x /usr/bin/objformat; then
19496 objformat=`/usr/bin/objformat`
19497 else
19498 case $host_os in
19499 freebsd[123]*) objformat=aout ;;
19500 *) objformat=elf ;;
19501 esac
19502 fi
19503 version_type=freebsd-$objformat
19504 case $version_type in
19505 freebsd-elf*)
19506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19507 need_version=no
19508 need_lib_prefix=no
19509 ;;
19510 freebsd-*)
19511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19512 need_version=yes
19513 ;;
19514 esac
19515 shlibpath_var=LD_LIBRARY_PATH
19516 case $host_os in
19517 freebsd2*)
19518 shlibpath_overrides_runpath=yes
19519 ;;
19520 freebsd3.[01]* | freebsdelf3.[01]*)
19521 shlibpath_overrides_runpath=yes
19522 hardcode_into_libs=yes
19523 ;;
19524 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19525 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19526 shlibpath_overrides_runpath=no
19527 hardcode_into_libs=yes
19528 ;;
19529 *) # from 4.6 on, and DragonFly
19530 shlibpath_overrides_runpath=yes
19531 hardcode_into_libs=yes
19532 ;;
19533 esac
19534 ;;
19535
19536 gnu*)
19537 version_type=linux
19538 need_lib_prefix=no
19539 need_version=no
19540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19541 soname_spec='${libname}${release}${shared_ext}$major'
19542 shlibpath_var=LD_LIBRARY_PATH
19543 hardcode_into_libs=yes
19544 ;;
19545
19546 hpux9* | hpux10* | hpux11*)
19547 # Give a soname corresponding to the major version so that dld.sl refuses to
19548 # link against other versions.
19549 version_type=sunos
19550 need_lib_prefix=no
19551 need_version=no
19552 case $host_cpu in
19553 ia64*)
19554 shrext_cmds='.so'
19555 hardcode_into_libs=yes
19556 dynamic_linker="$host_os dld.so"
19557 shlibpath_var=LD_LIBRARY_PATH
19558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19560 soname_spec='${libname}${release}${shared_ext}$major'
19561 if test "X$HPUX_IA64_MODE" = X32; then
19562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19563 else
19564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19565 fi
19566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19567 ;;
19568 hppa*64*)
19569 shrext_cmds='.sl'
19570 hardcode_into_libs=yes
19571 dynamic_linker="$host_os dld.sl"
19572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19575 soname_spec='${libname}${release}${shared_ext}$major'
19576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19578 ;;
19579 *)
19580 shrext_cmds='.sl'
19581 dynamic_linker="$host_os dld.sl"
19582 shlibpath_var=SHLIB_PATH
19583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19585 soname_spec='${libname}${release}${shared_ext}$major'
19586 ;;
19587 esac
19588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19589 postinstall_cmds='chmod 555 $lib'
19590 ;;
19591
19592 interix[3-9]*)
19593 version_type=linux
19594 need_lib_prefix=no
19595 need_version=no
19596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19597 soname_spec='${libname}${release}${shared_ext}$major'
19598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19599 shlibpath_var=LD_LIBRARY_PATH
19600 shlibpath_overrides_runpath=no
19601 hardcode_into_libs=yes
19602 ;;
19603
19604 irix5* | irix6* | nonstopux*)
19605 case $host_os in
19606 nonstopux*) version_type=nonstopux ;;
19607 *)
19608 if test "$lt_cv_prog_gnu_ld" = yes; then
19609 version_type=linux
19610 else
19611 version_type=irix
19612 fi ;;
19613 esac
19614 need_lib_prefix=no
19615 need_version=no
19616 soname_spec='${libname}${release}${shared_ext}$major'
19617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19618 case $host_os in
19619 irix5* | nonstopux*)
19620 libsuff= shlibsuff=
19621 ;;
19622 *)
19623 case $LD in # libtool.m4 will add one of these switches to LD
19624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19625 libsuff= shlibsuff= libmagic=32-bit;;
19626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19627 libsuff=32 shlibsuff=N32 libmagic=N32;;
19628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19630 *) libsuff= shlibsuff= libmagic=never-match;;
19631 esac
19632 ;;
19633 esac
19634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19635 shlibpath_overrides_runpath=no
19636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19638 hardcode_into_libs=yes
19639 ;;
19640
19641 # No shared lib support for Linux oldld, aout, or coff.
19642 linux*oldld* | linux*aout* | linux*coff*)
19643 dynamic_linker=no
19644 ;;
19645
19646 # This must be Linux ELF.
19647 linux* | k*bsd*-gnu)
19648 version_type=linux
19649 need_lib_prefix=no
19650 need_version=no
19651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19652 soname_spec='${libname}${release}${shared_ext}$major'
19653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19654 shlibpath_var=LD_LIBRARY_PATH
19655 shlibpath_overrides_runpath=no
19656 # This implies no fast_install, which is unacceptable.
19657 # Some rework will be needed to allow for fast_install
19658 # before this can be enabled.
19659 hardcode_into_libs=yes
19660
19661 # Append ld.so.conf contents to the search path
19662 if test -f /etc/ld.so.conf; then
19663 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19665 fi
19666
19667 # We used to test for /lib/ld.so.1 and disable shared libraries on
19668 # powerpc, because MkLinux only supported shared libraries with the
19669 # GNU dynamic linker. Since this was broken with cross compilers,
19670 # most powerpc-linux boxes support dynamic linking these days and
19671 # people can always --disable-shared, the test was removed, and we
19672 # assume the GNU/Linux dynamic linker is in use.
19673 dynamic_linker='GNU/Linux ld.so'
19674 ;;
19675
19676 netbsdelf*-gnu)
19677 version_type=linux
19678 need_lib_prefix=no
19679 need_version=no
19680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19681 soname_spec='${libname}${release}${shared_ext}$major'
19682 shlibpath_var=LD_LIBRARY_PATH
19683 shlibpath_overrides_runpath=no
19684 hardcode_into_libs=yes
19685 dynamic_linker='NetBSD ld.elf_so'
19686 ;;
19687
19688 netbsd*)
19689 version_type=sunos
19690 need_lib_prefix=no
19691 need_version=no
19692 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19695 dynamic_linker='NetBSD (a.out) ld.so'
19696 else
19697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19698 soname_spec='${libname}${release}${shared_ext}$major'
19699 dynamic_linker='NetBSD ld.elf_so'
19700 fi
19701 shlibpath_var=LD_LIBRARY_PATH
19702 shlibpath_overrides_runpath=yes
19703 hardcode_into_libs=yes
19704 ;;
19705
19706 newsos6)
19707 version_type=linux
19708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709 shlibpath_var=LD_LIBRARY_PATH
19710 shlibpath_overrides_runpath=yes
19711 ;;
19712
19713 nto-qnx*)
19714 version_type=linux
19715 need_lib_prefix=no
19716 need_version=no
19717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19718 soname_spec='${libname}${release}${shared_ext}$major'
19719 shlibpath_var=LD_LIBRARY_PATH
19720 shlibpath_overrides_runpath=yes
19721 ;;
19722
19723 openbsd*)
19724 version_type=sunos
19725 sys_lib_dlsearch_path_spec="/usr/lib"
19726 need_lib_prefix=no
19727 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19728 case $host_os in
19729 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19730 *) need_version=no ;;
19731 esac
19732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19734 shlibpath_var=LD_LIBRARY_PATH
19735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19736 case $host_os in
19737 openbsd2.[89] | openbsd2.[89].*)
19738 shlibpath_overrides_runpath=no
19739 ;;
19740 *)
19741 shlibpath_overrides_runpath=yes
19742 ;;
19743 esac
19744 else
19745 shlibpath_overrides_runpath=yes
19746 fi
19747 ;;
19748
19749 os2*)
19750 libname_spec='$name'
19751 shrext_cmds=".dll"
19752 need_lib_prefix=no
19753 library_names_spec='$libname${shared_ext} $libname.a'
19754 dynamic_linker='OS/2 ld.exe'
19755 shlibpath_var=LIBPATH
19756 ;;
19757
19758 osf3* | osf4* | osf5*)
19759 version_type=osf
19760 need_lib_prefix=no
19761 need_version=no
19762 soname_spec='${libname}${release}${shared_ext}$major'
19763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19764 shlibpath_var=LD_LIBRARY_PATH
19765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19766 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19767 ;;
19768
19769 rdos*)
19770 dynamic_linker=no
19771 ;;
19772
19773 solaris*)
19774 version_type=linux
19775 need_lib_prefix=no
19776 need_version=no
19777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19778 soname_spec='${libname}${release}${shared_ext}$major'
19779 shlibpath_var=LD_LIBRARY_PATH
19780 shlibpath_overrides_runpath=yes
19781 hardcode_into_libs=yes
19782 # ldd complains unless libraries are executable
19783 postinstall_cmds='chmod +x $lib'
19784 ;;
19785
19786 sunos4*)
19787 version_type=sunos
19788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19790 shlibpath_var=LD_LIBRARY_PATH
19791 shlibpath_overrides_runpath=yes
19792 if test "$with_gnu_ld" = yes; then
19793 need_lib_prefix=no
19794 fi
19795 need_version=yes
19796 ;;
19797
19798 sysv4 | sysv4.3*)
19799 version_type=linux
19800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801 soname_spec='${libname}${release}${shared_ext}$major'
19802 shlibpath_var=LD_LIBRARY_PATH
19803 case $host_vendor in
19804 sni)
19805 shlibpath_overrides_runpath=no
19806 need_lib_prefix=no
19807 export_dynamic_flag_spec='${wl}-Blargedynsym'
19808 runpath_var=LD_RUN_PATH
19809 ;;
19810 siemens)
19811 need_lib_prefix=no
19812 ;;
19813 motorola)
19814 need_lib_prefix=no
19815 need_version=no
19816 shlibpath_overrides_runpath=no
19817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19818 ;;
19819 esac
19820 ;;
19821
19822 sysv4*MP*)
19823 if test -d /usr/nec ;then
19824 version_type=linux
19825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19826 soname_spec='$libname${shared_ext}.$major'
19827 shlibpath_var=LD_LIBRARY_PATH
19828 fi
19829 ;;
19830
19831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19832 version_type=freebsd-elf
19833 need_lib_prefix=no
19834 need_version=no
19835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19836 soname_spec='${libname}${release}${shared_ext}$major'
19837 shlibpath_var=LD_LIBRARY_PATH
19838 hardcode_into_libs=yes
19839 if test "$with_gnu_ld" = yes; then
19840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19841 shlibpath_overrides_runpath=no
19842 else
19843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19844 shlibpath_overrides_runpath=yes
19845 case $host_os in
19846 sco3.2v5*)
19847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19848 ;;
19849 esac
19850 fi
19851 sys_lib_dlsearch_path_spec='/usr/lib'
19852 ;;
19853
19854 uts4*)
19855 version_type=linux
19856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19857 soname_spec='${libname}${release}${shared_ext}$major'
19858 shlibpath_var=LD_LIBRARY_PATH
19859 ;;
19860
19861 *)
19862 dynamic_linker=no
19863 ;;
19864 esac
19865 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19866 echo "${ECHO_T}$dynamic_linker" >&6; }
19867 test "$dynamic_linker" = no && can_build_shared=no
19868
19869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19870 if test "$GCC" = yes; then
19871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19872 fi
19873
19874 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19876 hardcode_action_GCJ=
19877 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19878 test -n "$runpath_var_GCJ" || \
19879 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19880
19881 # We can hardcode non-existant directories.
19882 if test "$hardcode_direct_GCJ" != no &&
19883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19884 # have to relink, otherwise we might link with an installed library
19885 # when we should be linking with a yet-to-be-installed one
19886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19887 test "$hardcode_minus_L_GCJ" != no; then
19888 # Linking always hardcodes the temporary library directory.
19889 hardcode_action_GCJ=relink
19890 else
19891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19892 hardcode_action_GCJ=immediate
19893 fi
19894 else
19895 # We cannot hardcode anything, or else we can only hardcode existing
19896 # directories.
19897 hardcode_action_GCJ=unsupported
19898 fi
19899 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19900 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19901
19902 if test "$hardcode_action_GCJ" = relink; then
19903 # Fast installation is not supported
19904 enable_fast_install=no
19905 elif test "$shlibpath_overrides_runpath" = yes ||
19906 test "$enable_shared" = no; then
19907 # Fast installation is not necessary
19908 enable_fast_install=needless
19909 fi
19910
19911
19912 # The else clause should only fire when bootstrapping the
19913 # libtool distribution, otherwise you forgot to ship ltmain.sh
19914 # with your package, and you will get complaints that there are
19915 # no rules to generate ltmain.sh.
19916 if test -f "$ltmain"; then
19917 # See if we are running on zsh, and set the options which allow our commands through
19918 # without removal of \ escapes.
19919 if test -n "${ZSH_VERSION+set}" ; then
19920 setopt NO_GLOB_SUBST
19921 fi
19922 # Now quote all the things that may contain metacharacters while being
19923 # careful not to overquote the AC_SUBSTed values. We take copies of the
19924 # variables and quote the copies for generation of the libtool script.
19925 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19926 SED SHELL STRIP \
19927 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19928 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19929 deplibs_check_method reload_flag reload_cmds need_locks \
19930 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19931 lt_cv_sys_global_symbol_to_c_name_address \
19932 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19933 old_postinstall_cmds old_postuninstall_cmds \
19934 compiler_GCJ \
19935 CC_GCJ \
19936 LD_GCJ \
19937 lt_prog_compiler_wl_GCJ \
19938 lt_prog_compiler_pic_GCJ \
19939 lt_prog_compiler_static_GCJ \
19940 lt_prog_compiler_no_builtin_flag_GCJ \
19941 export_dynamic_flag_spec_GCJ \
19942 thread_safe_flag_spec_GCJ \
19943 whole_archive_flag_spec_GCJ \
19944 enable_shared_with_static_runtimes_GCJ \
19945 old_archive_cmds_GCJ \
19946 old_archive_from_new_cmds_GCJ \
19947 predep_objects_GCJ \
19948 postdep_objects_GCJ \
19949 predeps_GCJ \
19950 postdeps_GCJ \
19951 compiler_lib_search_path_GCJ \
19952 archive_cmds_GCJ \
19953 archive_expsym_cmds_GCJ \
19954 postinstall_cmds_GCJ \
19955 postuninstall_cmds_GCJ \
19956 old_archive_from_expsyms_cmds_GCJ \
19957 allow_undefined_flag_GCJ \
19958 no_undefined_flag_GCJ \
19959 export_symbols_cmds_GCJ \
19960 hardcode_libdir_flag_spec_GCJ \
19961 hardcode_libdir_flag_spec_ld_GCJ \
19962 hardcode_libdir_separator_GCJ \
19963 hardcode_automatic_GCJ \
19964 module_cmds_GCJ \
19965 module_expsym_cmds_GCJ \
19966 lt_cv_prog_compiler_c_o_GCJ \
19967 fix_srcfile_path_GCJ \
19968 exclude_expsyms_GCJ \
19969 include_expsyms_GCJ; do
19970
19971 case $var in
19972 old_archive_cmds_GCJ | \
19973 old_archive_from_new_cmds_GCJ | \
19974 archive_cmds_GCJ | \
19975 archive_expsym_cmds_GCJ | \
19976 module_cmds_GCJ | \
19977 module_expsym_cmds_GCJ | \
19978 old_archive_from_expsyms_cmds_GCJ | \
19979 export_symbols_cmds_GCJ | \
19980 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19981 postinstall_cmds | postuninstall_cmds | \
19982 old_postinstall_cmds | old_postuninstall_cmds | \
19983 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19984 # Double-quote double-evaled strings.
19985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19986 ;;
19987 *)
19988 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19989 ;;
19990 esac
19991 done
19992
19993 case $lt_echo in
19994 *'\$0 --fallback-echo"')
19995 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19996 ;;
19997 esac
19998
19999 cfgfile="$ofile"
20000
20001 cat <<__EOF__ >> "$cfgfile"
20002 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20003
20004 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20005
20006 # Shell to use when invoking shell scripts.
20007 SHELL=$lt_SHELL
20008
20009 # Whether or not to build shared libraries.
20010 build_libtool_libs=$enable_shared
20011
20012 # Whether or not to build static libraries.
20013 build_old_libs=$enable_static
20014
20015 # Whether or not to add -lc for building shared libraries.
20016 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20017
20018 # Whether or not to disallow shared libs when runtime libs are static
20019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20020
20021 # Whether or not to optimize for fast installation.
20022 fast_install=$enable_fast_install
20023
20024 # The host system.
20025 host_alias=$host_alias
20026 host=$host
20027 host_os=$host_os
20028
20029 # The build system.
20030 build_alias=$build_alias
20031 build=$build
20032 build_os=$build_os
20033
20034 # An echo program that does not interpret backslashes.
20035 echo=$lt_echo
20036
20037 # The archiver.
20038 AR=$lt_AR
20039 AR_FLAGS=$lt_AR_FLAGS
20040
20041 # A C compiler.
20042 LTCC=$lt_LTCC
20043
20044 # LTCC compiler flags.
20045 LTCFLAGS=$lt_LTCFLAGS
20046
20047 # A language-specific compiler.
20048 CC=$lt_compiler_GCJ
20049
20050 # Is the compiler the GNU C compiler?
20051 with_gcc=$GCC_GCJ
20052
20053 # An ERE matcher.
20054 EGREP=$lt_EGREP
20055
20056 # The linker used to build libraries.
20057 LD=$lt_LD_GCJ
20058
20059 # Whether we need hard or soft links.
20060 LN_S=$lt_LN_S
20061
20062 # A BSD-compatible nm program.
20063 NM=$lt_NM
20064
20065 # A symbol stripping program
20066 STRIP=$lt_STRIP
20067
20068 # Used to examine libraries when file_magic_cmd begins "file"
20069 MAGIC_CMD=$MAGIC_CMD
20070
20071 # Used on cygwin: DLL creation program.
20072 DLLTOOL="$DLLTOOL"
20073
20074 # Used on cygwin: object dumper.
20075 OBJDUMP="$OBJDUMP"
20076
20077 # Used on cygwin: assembler.
20078 AS="$AS"
20079
20080 # The name of the directory that contains temporary libtool files.
20081 objdir=$objdir
20082
20083 # How to create reloadable object files.
20084 reload_flag=$lt_reload_flag
20085 reload_cmds=$lt_reload_cmds
20086
20087 # How to pass a linker flag through the compiler.
20088 wl=$lt_lt_prog_compiler_wl_GCJ
20089
20090 # Object file suffix (normally "o").
20091 objext="$ac_objext"
20092
20093 # Old archive suffix (normally "a").
20094 libext="$libext"
20095
20096 # Shared library suffix (normally ".so").
20097 shrext_cmds='$shrext_cmds'
20098
20099 # Executable file suffix (normally "").
20100 exeext="$exeext"
20101
20102 # Additional compiler flags for building library objects.
20103 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20104 pic_mode=$pic_mode
20105
20106 # What is the maximum length of a command?
20107 max_cmd_len=$lt_cv_sys_max_cmd_len
20108
20109 # Does compiler simultaneously support -c and -o options?
20110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20111
20112 # Must we lock files when doing compilation?
20113 need_locks=$lt_need_locks
20114
20115 # Do we need the lib prefix for modules?
20116 need_lib_prefix=$need_lib_prefix
20117
20118 # Do we need a version for libraries?
20119 need_version=$need_version
20120
20121 # Whether dlopen is supported.
20122 dlopen_support=$enable_dlopen
20123
20124 # Whether dlopen of programs is supported.
20125 dlopen_self=$enable_dlopen_self
20126
20127 # Whether dlopen of statically linked programs is supported.
20128 dlopen_self_static=$enable_dlopen_self_static
20129
20130 # Compiler flag to prevent dynamic linking.
20131 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20132
20133 # Compiler flag to turn off builtin functions.
20134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20135
20136 # Compiler flag to allow reflexive dlopens.
20137 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20138
20139 # Compiler flag to generate shared objects directly from archives.
20140 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20141
20142 # Compiler flag to generate thread-safe objects.
20143 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20144
20145 # Library versioning type.
20146 version_type=$version_type
20147
20148 # Format of library name prefix.
20149 libname_spec=$lt_libname_spec
20150
20151 # List of archive names. First name is the real one, the rest are links.
20152 # The last name is the one that the linker finds with -lNAME.
20153 library_names_spec=$lt_library_names_spec
20154
20155 # The coded name of the library, if different from the real name.
20156 soname_spec=$lt_soname_spec
20157
20158 # Commands used to build and install an old-style archive.
20159 RANLIB=$lt_RANLIB
20160 old_archive_cmds=$lt_old_archive_cmds_GCJ
20161 old_postinstall_cmds=$lt_old_postinstall_cmds
20162 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20163
20164 # Create an old-style archive from a shared archive.
20165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20166
20167 # Create a temporary old-style archive to link instead of a shared archive.
20168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20169
20170 # Commands used to build and install a shared archive.
20171 archive_cmds=$lt_archive_cmds_GCJ
20172 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20173 postinstall_cmds=$lt_postinstall_cmds
20174 postuninstall_cmds=$lt_postuninstall_cmds
20175
20176 # Commands used to build a loadable module (assumed same as above if empty)
20177 module_cmds=$lt_module_cmds_GCJ
20178 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20179
20180 # Commands to strip libraries.
20181 old_striplib=$lt_old_striplib
20182 striplib=$lt_striplib
20183
20184 # Dependencies to place before the objects being linked to create a
20185 # shared library.
20186 predep_objects=$lt_predep_objects_GCJ
20187
20188 # Dependencies to place after the objects being linked to create a
20189 # shared library.
20190 postdep_objects=$lt_postdep_objects_GCJ
20191
20192 # Dependencies to place before the objects being linked to create a
20193 # shared library.
20194 predeps=$lt_predeps_GCJ
20195
20196 # Dependencies to place after the objects being linked to create a
20197 # shared library.
20198 postdeps=$lt_postdeps_GCJ
20199
20200 # The library search path used internally by the compiler when linking
20201 # a shared library.
20202 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20203
20204 # Method to check whether dependent libraries are shared objects.
20205 deplibs_check_method=$lt_deplibs_check_method
20206
20207 # Command to use when deplibs_check_method == file_magic.
20208 file_magic_cmd=$lt_file_magic_cmd
20209
20210 # Flag that allows shared libraries with undefined symbols to be built.
20211 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20212
20213 # Flag that forces no undefined symbols.
20214 no_undefined_flag=$lt_no_undefined_flag_GCJ
20215
20216 # Commands used to finish a libtool library installation in a directory.
20217 finish_cmds=$lt_finish_cmds
20218
20219 # Same as above, but a single script fragment to be evaled but not shown.
20220 finish_eval=$lt_finish_eval
20221
20222 # Take the output of nm and produce a listing of raw symbols and C names.
20223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20224
20225 # Transform the output of nm in a proper C declaration
20226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20227
20228 # Transform the output of nm in a C name address pair
20229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20230
20231 # This is the shared library runtime path variable.
20232 runpath_var=$runpath_var
20233
20234 # This is the shared library path variable.
20235 shlibpath_var=$shlibpath_var
20236
20237 # Is shlibpath searched before the hard-coded library search path?
20238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20239
20240 # How to hardcode a shared library path into an executable.
20241 hardcode_action=$hardcode_action_GCJ
20242
20243 # Whether we should hardcode library paths into libraries.
20244 hardcode_into_libs=$hardcode_into_libs
20245
20246 # Flag to hardcode \$libdir into a binary during linking.
20247 # This must work even if \$libdir does not exist.
20248 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20249
20250 # If ld is used when linking, flag to hardcode \$libdir into
20251 # a binary during linking. This must work even if \$libdir does
20252 # not exist.
20253 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20254
20255 # Whether we need a single -rpath flag with a separated argument.
20256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20257
20258 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20259 # resulting binary.
20260 hardcode_direct=$hardcode_direct_GCJ
20261
20262 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20263 # resulting binary.
20264 hardcode_minus_L=$hardcode_minus_L_GCJ
20265
20266 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20267 # the resulting binary.
20268 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20269
20270 # Set to yes if building a shared library automatically hardcodes DIR into the library
20271 # and all subsequent libraries and executables linked against it.
20272 hardcode_automatic=$hardcode_automatic_GCJ
20273
20274 # Variables whose values should be saved in libtool wrapper scripts and
20275 # restored at relink time.
20276 variables_saved_for_relink="$variables_saved_for_relink"
20277
20278 # Whether libtool must link a program against all its dependency libraries.
20279 link_all_deplibs=$link_all_deplibs_GCJ
20280
20281 # Compile-time system search path for libraries
20282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20283
20284 # Run-time system search path for libraries
20285 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20286
20287 # Fix the shell variable \$srcfile for the compiler.
20288 fix_srcfile_path=$lt_fix_srcfile_path
20289
20290 # Set to yes if exported symbols are required.
20291 always_export_symbols=$always_export_symbols_GCJ
20292
20293 # The commands to list exported symbols.
20294 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20295
20296 # The commands to extract the exported symbol list from a shared archive.
20297 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20298
20299 # Symbols that should not be listed in the preloaded symbols.
20300 exclude_expsyms=$lt_exclude_expsyms_GCJ
20301
20302 # Symbols that must always be exported.
20303 include_expsyms=$lt_include_expsyms_GCJ
20304
20305 # ### END LIBTOOL TAG CONFIG: $tagname
20306
20307 __EOF__
20308
20309
20310 else
20311 # If there is no Makefile yet, we rely on a make rule to execute
20312 # `config.status --recheck' to rerun these tests and create the
20313 # libtool script then.
20314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20315 if test -f "$ltmain_in"; then
20316 test -f Makefile && make "$ltmain"
20317 fi
20318 fi
20319
20320
20321 ac_ext=c
20322 ac_cpp='$CPP $CPPFLAGS'
20323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20326
20327 CC="$lt_save_CC"
20328
20329 else
20330 tagname=""
20331 fi
20332 ;;
20333
20334 RC)
20335
20336
20337 # Source file extension for RC test sources.
20338 ac_ext=rc
20339
20340 # Object file extension for compiled RC test sources.
20341 objext=o
20342 objext_RC=$objext
20343
20344 # Code to be used in simple compile tests
20345 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20346
20347 # Code to be used in simple link tests
20348 lt_simple_link_test_code="$lt_simple_compile_test_code"
20349
20350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20351
20352 # If no C compiler was specified, use CC.
20353 LTCC=${LTCC-"$CC"}
20354
20355 # If no C compiler flags were specified, use CFLAGS.
20356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20357
20358 # Allow CC to be a program name with arguments.
20359 compiler=$CC
20360
20361
20362 # save warnings/boilerplate of simple test code
20363 ac_outfile=conftest.$ac_objext
20364 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20366 _lt_compiler_boilerplate=`cat conftest.err`
20367 $rm conftest*
20368
20369 ac_outfile=conftest.$ac_objext
20370 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20372 _lt_linker_boilerplate=`cat conftest.err`
20373 $rm conftest*
20374
20375
20376 # Allow CC to be a program name with arguments.
20377 lt_save_CC="$CC"
20378 CC=${RC-"windres"}
20379 compiler=$CC
20380 compiler_RC=$CC
20381 for cc_temp in $compiler""; do
20382 case $cc_temp in
20383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20385 \-*) ;;
20386 *) break;;
20387 esac
20388 done
20389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20390
20391 lt_cv_prog_compiler_c_o_RC=yes
20392
20393 # The else clause should only fire when bootstrapping the
20394 # libtool distribution, otherwise you forgot to ship ltmain.sh
20395 # with your package, and you will get complaints that there are
20396 # no rules to generate ltmain.sh.
20397 if test -f "$ltmain"; then
20398 # See if we are running on zsh, and set the options which allow our commands through
20399 # without removal of \ escapes.
20400 if test -n "${ZSH_VERSION+set}" ; then
20401 setopt NO_GLOB_SUBST
20402 fi
20403 # Now quote all the things that may contain metacharacters while being
20404 # careful not to overquote the AC_SUBSTed values. We take copies of the
20405 # variables and quote the copies for generation of the libtool script.
20406 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20407 SED SHELL STRIP \
20408 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20409 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20410 deplibs_check_method reload_flag reload_cmds need_locks \
20411 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20412 lt_cv_sys_global_symbol_to_c_name_address \
20413 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20414 old_postinstall_cmds old_postuninstall_cmds \
20415 compiler_RC \
20416 CC_RC \
20417 LD_RC \
20418 lt_prog_compiler_wl_RC \
20419 lt_prog_compiler_pic_RC \
20420 lt_prog_compiler_static_RC \
20421 lt_prog_compiler_no_builtin_flag_RC \
20422 export_dynamic_flag_spec_RC \
20423 thread_safe_flag_spec_RC \
20424 whole_archive_flag_spec_RC \
20425 enable_shared_with_static_runtimes_RC \
20426 old_archive_cmds_RC \
20427 old_archive_from_new_cmds_RC \
20428 predep_objects_RC \
20429 postdep_objects_RC \
20430 predeps_RC \
20431 postdeps_RC \
20432 compiler_lib_search_path_RC \
20433 archive_cmds_RC \
20434 archive_expsym_cmds_RC \
20435 postinstall_cmds_RC \
20436 postuninstall_cmds_RC \
20437 old_archive_from_expsyms_cmds_RC \
20438 allow_undefined_flag_RC \
20439 no_undefined_flag_RC \
20440 export_symbols_cmds_RC \
20441 hardcode_libdir_flag_spec_RC \
20442 hardcode_libdir_flag_spec_ld_RC \
20443 hardcode_libdir_separator_RC \
20444 hardcode_automatic_RC \
20445 module_cmds_RC \
20446 module_expsym_cmds_RC \
20447 lt_cv_prog_compiler_c_o_RC \
20448 fix_srcfile_path_RC \
20449 exclude_expsyms_RC \
20450 include_expsyms_RC; do
20451
20452 case $var in
20453 old_archive_cmds_RC | \
20454 old_archive_from_new_cmds_RC | \
20455 archive_cmds_RC | \
20456 archive_expsym_cmds_RC | \
20457 module_cmds_RC | \
20458 module_expsym_cmds_RC | \
20459 old_archive_from_expsyms_cmds_RC | \
20460 export_symbols_cmds_RC | \
20461 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20462 postinstall_cmds | postuninstall_cmds | \
20463 old_postinstall_cmds | old_postuninstall_cmds | \
20464 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20465 # Double-quote double-evaled strings.
20466 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20467 ;;
20468 *)
20469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20470 ;;
20471 esac
20472 done
20473
20474 case $lt_echo in
20475 *'\$0 --fallback-echo"')
20476 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20477 ;;
20478 esac
20479
20480 cfgfile="$ofile"
20481
20482 cat <<__EOF__ >> "$cfgfile"
20483 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20484
20485 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20486
20487 # Shell to use when invoking shell scripts.
20488 SHELL=$lt_SHELL
20489
20490 # Whether or not to build shared libraries.
20491 build_libtool_libs=$enable_shared
20492
20493 # Whether or not to build static libraries.
20494 build_old_libs=$enable_static
20495
20496 # Whether or not to add -lc for building shared libraries.
20497 build_libtool_need_lc=$archive_cmds_need_lc_RC
20498
20499 # Whether or not to disallow shared libs when runtime libs are static
20500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20501
20502 # Whether or not to optimize for fast installation.
20503 fast_install=$enable_fast_install
20504
20505 # The host system.
20506 host_alias=$host_alias
20507 host=$host
20508 host_os=$host_os
20509
20510 # The build system.
20511 build_alias=$build_alias
20512 build=$build
20513 build_os=$build_os
20514
20515 # An echo program that does not interpret backslashes.
20516 echo=$lt_echo
20517
20518 # The archiver.
20519 AR=$lt_AR
20520 AR_FLAGS=$lt_AR_FLAGS
20521
20522 # A C compiler.
20523 LTCC=$lt_LTCC
20524
20525 # LTCC compiler flags.
20526 LTCFLAGS=$lt_LTCFLAGS
20527
20528 # A language-specific compiler.
20529 CC=$lt_compiler_RC
20530
20531 # Is the compiler the GNU C compiler?
20532 with_gcc=$GCC_RC
20533
20534 # An ERE matcher.
20535 EGREP=$lt_EGREP
20536
20537 # The linker used to build libraries.
20538 LD=$lt_LD_RC
20539
20540 # Whether we need hard or soft links.
20541 LN_S=$lt_LN_S
20542
20543 # A BSD-compatible nm program.
20544 NM=$lt_NM
20545
20546 # A symbol stripping program
20547 STRIP=$lt_STRIP
20548
20549 # Used to examine libraries when file_magic_cmd begins "file"
20550 MAGIC_CMD=$MAGIC_CMD
20551
20552 # Used on cygwin: DLL creation program.
20553 DLLTOOL="$DLLTOOL"
20554
20555 # Used on cygwin: object dumper.
20556 OBJDUMP="$OBJDUMP"
20557
20558 # Used on cygwin: assembler.
20559 AS="$AS"
20560
20561 # The name of the directory that contains temporary libtool files.
20562 objdir=$objdir
20563
20564 # How to create reloadable object files.
20565 reload_flag=$lt_reload_flag
20566 reload_cmds=$lt_reload_cmds
20567
20568 # How to pass a linker flag through the compiler.
20569 wl=$lt_lt_prog_compiler_wl_RC
20570
20571 # Object file suffix (normally "o").
20572 objext="$ac_objext"
20573
20574 # Old archive suffix (normally "a").
20575 libext="$libext"
20576
20577 # Shared library suffix (normally ".so").
20578 shrext_cmds='$shrext_cmds'
20579
20580 # Executable file suffix (normally "").
20581 exeext="$exeext"
20582
20583 # Additional compiler flags for building library objects.
20584 pic_flag=$lt_lt_prog_compiler_pic_RC
20585 pic_mode=$pic_mode
20586
20587 # What is the maximum length of a command?
20588 max_cmd_len=$lt_cv_sys_max_cmd_len
20589
20590 # Does compiler simultaneously support -c and -o options?
20591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20592
20593 # Must we lock files when doing compilation?
20594 need_locks=$lt_need_locks
20595
20596 # Do we need the lib prefix for modules?
20597 need_lib_prefix=$need_lib_prefix
20598
20599 # Do we need a version for libraries?
20600 need_version=$need_version
20601
20602 # Whether dlopen is supported.
20603 dlopen_support=$enable_dlopen
20604
20605 # Whether dlopen of programs is supported.
20606 dlopen_self=$enable_dlopen_self
20607
20608 # Whether dlopen of statically linked programs is supported.
20609 dlopen_self_static=$enable_dlopen_self_static
20610
20611 # Compiler flag to prevent dynamic linking.
20612 link_static_flag=$lt_lt_prog_compiler_static_RC
20613
20614 # Compiler flag to turn off builtin functions.
20615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20616
20617 # Compiler flag to allow reflexive dlopens.
20618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20619
20620 # Compiler flag to generate shared objects directly from archives.
20621 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20622
20623 # Compiler flag to generate thread-safe objects.
20624 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20625
20626 # Library versioning type.
20627 version_type=$version_type
20628
20629 # Format of library name prefix.
20630 libname_spec=$lt_libname_spec
20631
20632 # List of archive names. First name is the real one, the rest are links.
20633 # The last name is the one that the linker finds with -lNAME.
20634 library_names_spec=$lt_library_names_spec
20635
20636 # The coded name of the library, if different from the real name.
20637 soname_spec=$lt_soname_spec
20638
20639 # Commands used to build and install an old-style archive.
20640 RANLIB=$lt_RANLIB
20641 old_archive_cmds=$lt_old_archive_cmds_RC
20642 old_postinstall_cmds=$lt_old_postinstall_cmds
20643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20644
20645 # Create an old-style archive from a shared archive.
20646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20647
20648 # Create a temporary old-style archive to link instead of a shared archive.
20649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20650
20651 # Commands used to build and install a shared archive.
20652 archive_cmds=$lt_archive_cmds_RC
20653 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20654 postinstall_cmds=$lt_postinstall_cmds
20655 postuninstall_cmds=$lt_postuninstall_cmds
20656
20657 # Commands used to build a loadable module (assumed same as above if empty)
20658 module_cmds=$lt_module_cmds_RC
20659 module_expsym_cmds=$lt_module_expsym_cmds_RC
20660
20661 # Commands to strip libraries.
20662 old_striplib=$lt_old_striplib
20663 striplib=$lt_striplib
20664
20665 # Dependencies to place before the objects being linked to create a
20666 # shared library.
20667 predep_objects=$lt_predep_objects_RC
20668
20669 # Dependencies to place after the objects being linked to create a
20670 # shared library.
20671 postdep_objects=$lt_postdep_objects_RC
20672
20673 # Dependencies to place before the objects being linked to create a
20674 # shared library.
20675 predeps=$lt_predeps_RC
20676
20677 # Dependencies to place after the objects being linked to create a
20678 # shared library.
20679 postdeps=$lt_postdeps_RC
20680
20681 # The library search path used internally by the compiler when linking
20682 # a shared library.
20683 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20684
20685 # Method to check whether dependent libraries are shared objects.
20686 deplibs_check_method=$lt_deplibs_check_method
20687
20688 # Command to use when deplibs_check_method == file_magic.
20689 file_magic_cmd=$lt_file_magic_cmd
20690
20691 # Flag that allows shared libraries with undefined symbols to be built.
20692 allow_undefined_flag=$lt_allow_undefined_flag_RC
20693
20694 # Flag that forces no undefined symbols.
20695 no_undefined_flag=$lt_no_undefined_flag_RC
20696
20697 # Commands used to finish a libtool library installation in a directory.
20698 finish_cmds=$lt_finish_cmds
20699
20700 # Same as above, but a single script fragment to be evaled but not shown.
20701 finish_eval=$lt_finish_eval
20702
20703 # Take the output of nm and produce a listing of raw symbols and C names.
20704 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20705
20706 # Transform the output of nm in a proper C declaration
20707 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20708
20709 # Transform the output of nm in a C name address pair
20710 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20711
20712 # This is the shared library runtime path variable.
20713 runpath_var=$runpath_var
20714
20715 # This is the shared library path variable.
20716 shlibpath_var=$shlibpath_var
20717
20718 # Is shlibpath searched before the hard-coded library search path?
20719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20720
20721 # How to hardcode a shared library path into an executable.
20722 hardcode_action=$hardcode_action_RC
20723
20724 # Whether we should hardcode library paths into libraries.
20725 hardcode_into_libs=$hardcode_into_libs
20726
20727 # Flag to hardcode \$libdir into a binary during linking.
20728 # This must work even if \$libdir does not exist.
20729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20730
20731 # If ld is used when linking, flag to hardcode \$libdir into
20732 # a binary during linking. This must work even if \$libdir does
20733 # not exist.
20734 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20735
20736 # Whether we need a single -rpath flag with a separated argument.
20737 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20738
20739 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20740 # resulting binary.
20741 hardcode_direct=$hardcode_direct_RC
20742
20743 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20744 # resulting binary.
20745 hardcode_minus_L=$hardcode_minus_L_RC
20746
20747 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20748 # the resulting binary.
20749 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20750
20751 # Set to yes if building a shared library automatically hardcodes DIR into the library
20752 # and all subsequent libraries and executables linked against it.
20753 hardcode_automatic=$hardcode_automatic_RC
20754
20755 # Variables whose values should be saved in libtool wrapper scripts and
20756 # restored at relink time.
20757 variables_saved_for_relink="$variables_saved_for_relink"
20758
20759 # Whether libtool must link a program against all its dependency libraries.
20760 link_all_deplibs=$link_all_deplibs_RC
20761
20762 # Compile-time system search path for libraries
20763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20764
20765 # Run-time system search path for libraries
20766 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20767
20768 # Fix the shell variable \$srcfile for the compiler.
20769 fix_srcfile_path=$lt_fix_srcfile_path
20770
20771 # Set to yes if exported symbols are required.
20772 always_export_symbols=$always_export_symbols_RC
20773
20774 # The commands to list exported symbols.
20775 export_symbols_cmds=$lt_export_symbols_cmds_RC
20776
20777 # The commands to extract the exported symbol list from a shared archive.
20778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20779
20780 # Symbols that should not be listed in the preloaded symbols.
20781 exclude_expsyms=$lt_exclude_expsyms_RC
20782
20783 # Symbols that must always be exported.
20784 include_expsyms=$lt_include_expsyms_RC
20785
20786 # ### END LIBTOOL TAG CONFIG: $tagname
20787
20788 __EOF__
20789
20790
20791 else
20792 # If there is no Makefile yet, we rely on a make rule to execute
20793 # `config.status --recheck' to rerun these tests and create the
20794 # libtool script then.
20795 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20796 if test -f "$ltmain_in"; then
20797 test -f Makefile && make "$ltmain"
20798 fi
20799 fi
20800
20801
20802 ac_ext=c
20803 ac_cpp='$CPP $CPPFLAGS'
20804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20807
20808 CC="$lt_save_CC"
20809
20810 ;;
20811
20812 *)
20813 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20814 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20815 { (exit 1); exit 1; }; }
20816 ;;
20817 esac
20818
20819 # Append the new tag name to the list of available tags.
20820 if test -n "$tagname" ; then
20821 available_tags="$available_tags $tagname"
20822 fi
20823 fi
20824 done
20825 IFS="$lt_save_ifs"
20826
20827 # Now substitute the updated list of available tags.
20828 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20829 mv "${ofile}T" "$ofile"
20830 chmod +x "$ofile"
20831 else
20832 rm -f "${ofile}T"
20833 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20834 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20835 { (exit 1); exit 1; }; }
20836 fi
20837 fi
20838
20839
20840
20841 # This can be used to rebuild libtool when needed
20842 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20843
20844 # Always use our own libtool.
20845 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20846
20847 # Prevent multiple expansion
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
20870 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
20871 # Check whether --enable-maintainer-mode was given.
20872 if test "${enable_maintainer_mode+set}" = set; then
20873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20874 else
20875 USE_MAINTAINER_MODE=no
20876 fi
20877
20878 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
20879 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
20880
20881
20882 if test $USE_MAINTAINER_MODE = yes; then
20883 MAINTAINER_MODE_TRUE=
20884 MAINTAINER_MODE_FALSE='#'
20885 else
20886 MAINTAINER_MODE_TRUE='#'
20887 MAINTAINER_MODE_FALSE=
20888 fi
20889
20890 MAINT=$MAINTAINER_MODE_TRUE
20891
20892
20893
20894 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20895 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20896 if test "${ac_cv_c_const+set}" = set; then
20897 echo $ECHO_N "(cached) $ECHO_C" >&6
20898 else
20899 cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h. */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905
20906 int
20907 main ()
20908 {
20909 /* FIXME: Include the comments suggested by Paul. */
20910 #ifndef __cplusplus
20911 /* Ultrix mips cc rejects this. */
20912 typedef int charset[2];
20913 const charset cs;
20914 /* SunOS 4.1.1 cc rejects this. */
20915 char const *const *pcpcc;
20916 char **ppc;
20917 /* NEC SVR4.0.2 mips cc rejects this. */
20918 struct point {int x, y;};
20919 static struct point const zero = {0,0};
20920 /* AIX XL C 1.02.0.0 rejects this.
20921 It does not let you subtract one const X* pointer from another in
20922 an arm of an if-expression whose if-part is not a constant
20923 expression */
20924 const char *g = "string";
20925 pcpcc = &g + (g ? g-g : 0);
20926 /* HPUX 7.0 cc rejects these. */
20927 ++pcpcc;
20928 ppc = (char**) pcpcc;
20929 pcpcc = (char const *const *) ppc;
20930 { /* SCO 3.2v4 cc rejects this. */
20931 char *t;
20932 char const *s = 0 ? (char *) 0 : (char const *) 0;
20933
20934 *t++ = 0;
20935 if (s) return 0;
20936 }
20937 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20938 int x[] = {25, 17};
20939 const int *foo = &x[0];
20940 ++foo;
20941 }
20942 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20943 typedef const int *iptr;
20944 iptr p = 0;
20945 ++p;
20946 }
20947 { /* AIX XL C 1.02.0.0 rejects this saying
20948 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20949 struct s { int j; const int *ap[3]; };
20950 struct s *b; b->j = 5;
20951 }
20952 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20953 const int foo = 10;
20954 if (!foo) return 0;
20955 }
20956 return !cs[0] && !zero.x;
20957 #endif
20958
20959 ;
20960 return 0;
20961 }
20962 _ACEOF
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_compile") 2>conftest.er1
20971 ac_status=$?
20972 grep -v '^ *+' conftest.er1 >conftest.err
20973 rm -f conftest.er1
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } && {
20977 test -z "$ac_c_werror_flag" ||
20978 test ! -s conftest.err
20979 } && test -s conftest.$ac_objext; then
20980 ac_cv_c_const=yes
20981 else
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985 ac_cv_c_const=no
20986 fi
20987
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 fi
20990 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20991 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20992 if test $ac_cv_c_const = no; then
20993
20994 cat >>confdefs.h <<\_ACEOF
20995 #define const
20996 _ACEOF
20997
20998 fi
20999
21000
21001 # Extract the first word of "pkg-config", so it can be a program name with args.
21002 set dummy pkg-config; ac_word=$2
21003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21005 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 else
21008 case $PKG_CONFIG in
21009 [\\/]* | ?:[\\/]*)
21010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21011 ;;
21012 *)
21013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21014 for as_dir in $PATH
21015 do
21016 IFS=$as_save_IFS
21017 test -z "$as_dir" && as_dir=.
21018 for ac_exec_ext in '' $ac_executable_extensions; do
21019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21022 break 2
21023 fi
21024 done
21025 done
21026 IFS=$as_save_IFS
21027
21028 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21029 ;;
21030 esac
21031 fi
21032 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21033 if test -n "$PKG_CONFIG"; then
21034 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21035 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21036 else
21037 { echo "$as_me:$LINENO: result: no" >&5
21038 echo "${ECHO_T}no" >&6; }
21039 fi
21040
21041
21042
21043 CFLAGS=
21044 LIBS=-lm
21045
21046
21047 # Extract the first word of ""swig"", so it can be a program name with args.
21048 set dummy "swig"; ac_word=$2
21049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21051 if test "${ac_cv_prog_have_swig+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054 if test -n "$have_swig"; then
21055 ac_cv_prog_have_swig="$have_swig" # Let the user override the test.
21056 else
21057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21058 for as_dir in $PATH
21059 do
21060 IFS=$as_save_IFS
21061 test -z "$as_dir" && as_dir=.
21062 for ac_exec_ext in '' $ac_executable_extensions; do
21063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21064 ac_cv_prog_have_swig="yes"
21065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21066 break 2
21067 fi
21068 done
21069 done
21070 IFS=$as_save_IFS
21071
21072 test -z "$ac_cv_prog_have_swig" && ac_cv_prog_have_swig="no"
21073 fi
21074 fi
21075 have_swig=$ac_cv_prog_have_swig
21076 if test -n "$have_swig"; then
21077 { echo "$as_me:$LINENO: result: $have_swig" >&5
21078 echo "${ECHO_T}$have_swig" >&6; }
21079 else
21080 { echo "$as_me:$LINENO: result: no" >&5
21081 echo "${ECHO_T}no" >&6; }
21082 fi
21083
21084
21085
21086
21087 # Extract the first word of ""fpc"", so it can be a program name with args.
21088 set dummy "fpc"; ac_word=$2
21089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21091 if test "${ac_cv_prog_have_pascal+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094 if test -n "$have_pascal"; then
21095 ac_cv_prog_have_pascal="$have_pascal" # Let the user override the test.
21096 else
21097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21098 for as_dir in $PATH
21099 do
21100 IFS=$as_save_IFS
21101 test -z "$as_dir" && as_dir=.
21102 for ac_exec_ext in '' $ac_executable_extensions; do
21103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21104 ac_cv_prog_have_pascal="yes"
21105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21106 break 2
21107 fi
21108 done
21109 done
21110 IFS=$as_save_IFS
21111
21112 test -z "$ac_cv_prog_have_pascal" && ac_cv_prog_have_pascal="no"
21113 fi
21114 fi
21115 have_pascal=$ac_cv_prog_have_pascal
21116 if test -n "$have_pascal"; then
21117 { echo "$as_me:$LINENO: result: $have_pascal" >&5
21118 echo "${ECHO_T}$have_pascal" >&6; }
21119 else
21120 { echo "$as_me:$LINENO: result: no" >&5
21121 echo "${ECHO_T}no" >&6; }
21122 fi
21123
21124
21125
21126 build_pascal=$have_pascal
21127
21128 # Check whether --enable-pascal was given.
21129 if test "${enable_pascal+set}" = set; then
21130 enableval=$enable_pascal; build_pascal=no
21131 else
21132 build_pascal=$have_pascal
21133 fi
21134
21135
21136 if test "$have_pascal" = "yes"; then
21137 PA_VERSION=`fpc -iV`
21138 PA_TPR=`fpc -iTP`
21139 PA_TOS=`fpc -iTO`
21140 PA_MODULES_PATH="/usr/lib/fpc/$PA_VERSION/units/$PA_TPR-$PA_TOS"
21141
21142
21143 fi
21144
21145
21146
21147 if test "$build_pascal" = "yes"; then
21148 WITH_PASCAL_TRUE=
21149 WITH_PASCAL_FALSE='#'
21150 else
21151 WITH_PASCAL_TRUE='#'
21152 WITH_PASCAL_FALSE=
21153 fi
21154
21155
21156
21157 # Extract the first word of ""python"", so it can be a program name with args.
21158 set dummy "python"; ac_word=$2
21159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21161 if test "${ac_cv_prog_have_python+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164 if test -n "$have_python"; then
21165 ac_cv_prog_have_python="$have_python" # Let the user override the test.
21166 else
21167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21168 for as_dir in $PATH
21169 do
21170 IFS=$as_save_IFS
21171 test -z "$as_dir" && as_dir=.
21172 for ac_exec_ext in '' $ac_executable_extensions; do
21173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21174 ac_cv_prog_have_python="yes"
21175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21176 break 2
21177 fi
21178 done
21179 done
21180 IFS=$as_save_IFS
21181
21182 test -z "$ac_cv_prog_have_python" && ac_cv_prog_have_python="no"
21183 fi
21184 fi
21185 have_python=$ac_cv_prog_have_python
21186 if test -n "$have_python"; then
21187 { echo "$as_me:$LINENO: result: $have_python" >&5
21188 echo "${ECHO_T}$have_python" >&6; }
21189 else
21190 { echo "$as_me:$LINENO: result: no" >&5
21191 echo "${ECHO_T}no" >&6; }
21192 fi
21193
21194
21195
21196 build_python=$have_python
21197
21198 # Check whether --enable-python was given.
21199 if test "${enable_python+set}" = set; then
21200 enableval=$enable_python; build_python=no
21201 else
21202 build_python=$have_python
21203 fi
21204
21205
21206
21207 # Check whether --with-python-sitelib-dir was given.
21208 if test "${with_python_sitelib_dir+set}" = set; then
21209 withval=$with_python_sitelib_dir;
21210 fi
21211
21212
21213 if test "$have_python" = "yes"; then
21214 PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
21215 PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
21216 { echo "$as_me:$LINENO: checking for $PY_PREFIX/include/python$PY_VERSION/Python.h" >&5
21217 echo $ECHO_N "checking for $PY_PREFIX/include/python$PY_VERSION/Python.h... $ECHO_C" >&6; }
21218 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
21219 { echo "$as_me:$LINENO: result: yes" >&5
21220 echo "${ECHO_T}yes" >&6; }
21221 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
21222
21223 if test "$with_python_sitelib_dir" = "" ; then
21224 PY_MODULES_PATH="$PY_PREFIX/lib/python$PY_VERSION/site-packages"
21225 else
21226 PY_MODULES_PATH=$with_python_sitelib_dir
21227 fi
21228
21229
21230
21231
21232 if test "$have_swig" = "no"; then
21233 build_python=no
21234 fi
21235 else
21236 { echo "$as_me:$LINENO: result: no" >&5
21237 echo "${ECHO_T}no" >&6; }
21238 build_python=no
21239 fi
21240 fi
21241
21242
21243
21244 if test "$build_python" = "yes"; then
21245 WITH_PYTHON_TRUE=
21246 WITH_PYTHON_FALSE='#'
21247 else
21248 WITH_PYTHON_TRUE='#'
21249 WITH_PYTHON_FALSE=
21250 fi
21251
21252
21253
21254 # Extract the first word of ""ruby"", so it can be a program name with args.
21255 set dummy "ruby"; ac_word=$2
21256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21258 if test "${ac_cv_prog_have_ruby+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261 if test -n "$have_ruby"; then
21262 ac_cv_prog_have_ruby="$have_ruby" # Let the user override the test.
21263 else
21264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21265 for as_dir in $PATH
21266 do
21267 IFS=$as_save_IFS
21268 test -z "$as_dir" && as_dir=.
21269 for ac_exec_ext in '' $ac_executable_extensions; do
21270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21271 ac_cv_prog_have_ruby="yes"
21272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21273 break 2
21274 fi
21275 done
21276 done
21277 IFS=$as_save_IFS
21278
21279 test -z "$ac_cv_prog_have_ruby" && ac_cv_prog_have_ruby="no"
21280 fi
21281 fi
21282 have_ruby=$ac_cv_prog_have_ruby
21283 if test -n "$have_ruby"; then
21284 { echo "$as_me:$LINENO: result: $have_ruby" >&5
21285 echo "${ECHO_T}$have_ruby" >&6; }
21286 else
21287 { echo "$as_me:$LINENO: result: no" >&5
21288 echo "${ECHO_T}no" >&6; }
21289 fi
21290
21291
21292
21293 build_ruby=$have_ruby
21294
21295 # Check whether --enable-ruby was given.
21296 if test "${enable_ruby+set}" = set; then
21297 enableval=$enable_ruby; build_ruby=no
21298 else
21299 build_ruby=$have_ruby
21300 fi
21301
21302
21303
21304 # Check whether --with-ruby-sitelib-dir was given.
21305 if test "${with_ruby_sitelib_dir+set}" = set; then
21306 withval=$with_ruby_sitelib_dir;
21307 fi
21308
21309
21310 if test "$have_ruby" = "yes"; then
21311 RU_PREFIX=`ruby -e 'require "mkmf"; puts $topdir'`
21312 RU_VERSION=`ruby -e "require 'mkmf'; puts config_string('MAJOR')"`
21313 RU_VERSION+=.`ruby -e "require 'mkmf'; puts config_string('MINOR')"`
21314 { echo "$as_me:$LINENO: checking for $RU_PREFIX/ruby.h" >&5
21315 echo $ECHO_N "checking for $RU_PREFIX/ruby.h... $ECHO_C" >&6; }
21316 if test -f $RU_PREFIX/ruby.h; then
21317 { echo "$as_me:$LINENO: result: yes" >&5
21318 echo "${ECHO_T}yes" >&6; }
21319 RU_CFLAGS="-I$RU_PREFIX"
21320
21321 if test "$with_ruby_sitelib_dir" = "" ; then
21322 RU_MODULES_PATH="$RU_PREFIX"
21323 else
21324 RU_MODULES_PATH=$with_ruby_sitelib_dir
21325 fi
21326
21327
21328
21329
21330 if test "$have_swig" = "no"; then
21331 build_ruby=no
21332 fi
21333 else
21334 { echo "$as_me:$LINENO: result: no" >&5
21335 echo "${ECHO_T}no" >&6; }
21336 build_ruby=no
21337 fi
21338 fi
21339
21340
21341
21342 if test "$build_ruby" = "yes"; then
21343 WITH_RUBY_TRUE=
21344 WITH_RUBY_FALSE='#'
21345 else
21346 WITH_RUBY_TRUE='#'
21347 WITH_RUBY_FALSE=
21348 fi
21349
21350
21351
21352 # Extract the first word of ""php"", so it can be a program name with args.
21353 set dummy "php"; ac_word=$2
21354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21356 if test "${ac_cv_prog_have_php+set}" = set; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21358 else
21359 if test -n "$have_php"; then
21360 ac_cv_prog_have_php="$have_php" # Let the user override the test.
21361 else
21362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21363 for as_dir in $PATH
21364 do
21365 IFS=$as_save_IFS
21366 test -z "$as_dir" && as_dir=.
21367 for ac_exec_ext in '' $ac_executable_extensions; do
21368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21369 ac_cv_prog_have_php="yes"
21370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21371 break 2
21372 fi
21373 done
21374 done
21375 IFS=$as_save_IFS
21376
21377 test -z "$ac_cv_prog_have_php" && ac_cv_prog_have_php="no"
21378 fi
21379 fi
21380 have_php=$ac_cv_prog_have_php
21381 if test -n "$have_php"; then
21382 { echo "$as_me:$LINENO: result: $have_php" >&5
21383 echo "${ECHO_T}$have_php" >&6; }
21384 else
21385 { echo "$as_me:$LINENO: result: no" >&5
21386 echo "${ECHO_T}no" >&6; }
21387 fi
21388
21389
21390
21391 build_php=$have_php
21392
21393 # Check whether --enable-php was given.
21394 if test "${enable_php+set}" = set; then
21395 enableval=$enable_php; build_php=no
21396 else
21397 build_php=$have_php
21398 fi
21399
21400
21401
21402 # Check whether --with-php-sitelib-dir was given.
21403 if test "${with_php_sitelib_dir+set}" = set; then
21404 withval=$with_php_sitelib_dir;
21405 fi
21406
21407
21408 if test "$have_php" = "yes"; then
21409 # Extract the first word of ""php-config5"", so it can be a program name with args.
21410 set dummy "php-config5"; ac_word=$2
21411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21413 if test "${ac_cv_prog_have_php_config+set}" = set; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 else
21416 if test -n "$have_php_config"; then
21417 ac_cv_prog_have_php_config="$have_php_config" # Let the user override the test.
21418 else
21419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21420 for as_dir in $PATH
21421 do
21422 IFS=$as_save_IFS
21423 test -z "$as_dir" && as_dir=.
21424 for ac_exec_ext in '' $ac_executable_extensions; do
21425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21426 ac_cv_prog_have_php_config="yes"
21427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21428 break 2
21429 fi
21430 done
21431 done
21432 IFS=$as_save_IFS
21433
21434 test -z "$ac_cv_prog_have_php_config" && ac_cv_prog_have_php_config="no"
21435 fi
21436 fi
21437 have_php_config=$ac_cv_prog_have_php_config
21438 if test -n "$have_php_config"; then
21439 { echo "$as_me:$LINENO: result: $have_php_config" >&5
21440 echo "${ECHO_T}$have_php_config" >&6; }
21441 else
21442 { echo "$as_me:$LINENO: result: no" >&5
21443 echo "${ECHO_T}no" >&6; }
21444 fi
21445
21446
21447 if test "$have_php_config" = "yes"; then
21448
21449 PH_CONFIG_PATH=`php --ini | head -n1 | cut -d: -f2 | sed 's/\s//g'`
21450 if test "$with_php_sitelib_dir" = "" ; then
21451 PH_MODULES_PATH=`php-config5 --extension-dir`
21452 else
21453 PH_MODULES_PATH=$with_php_sitelib_dir
21454 fi
21455
21456
21457
21458 if test "$have_swig" = "no"; then
21459 build_php=no
21460 fi
21461 else
21462 { echo "$as_me:$LINENO: result: no" >&5
21463 echo "${ECHO_T}no" >&6; }
21464 build_php=no
21465 fi
21466 fi
21467
21468
21469
21470 if test "$build_php" = "yes"; then
21471 WITH_PHP_TRUE=
21472 WITH_PHP_FALSE='#'
21473 else
21474 WITH_PHP_TRUE='#'
21475 WITH_PHP_FALSE=
21476 fi
21477
21478
21479
21480 # Extract the first word of ""perl"", so it can be a program name with args.
21481 set dummy "perl"; ac_word=$2
21482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21484 if test "${ac_cv_prog_have_perl+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 else
21487 if test -n "$have_perl"; then
21488 ac_cv_prog_have_perl="$have_perl" # Let the user override the test.
21489 else
21490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21491 for as_dir in $PATH
21492 do
21493 IFS=$as_save_IFS
21494 test -z "$as_dir" && as_dir=.
21495 for ac_exec_ext in '' $ac_executable_extensions; do
21496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21497 ac_cv_prog_have_perl="yes"
21498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21499 break 2
21500 fi
21501 done
21502 done
21503 IFS=$as_save_IFS
21504
21505 test -z "$ac_cv_prog_have_perl" && ac_cv_prog_have_perl="no"
21506 fi
21507 fi
21508 have_perl=$ac_cv_prog_have_perl
21509 if test -n "$have_perl"; then
21510 { echo "$as_me:$LINENO: result: $have_perl" >&5
21511 echo "${ECHO_T}$have_perl" >&6; }
21512 else
21513 { echo "$as_me:$LINENO: result: no" >&5
21514 echo "${ECHO_T}no" >&6; }
21515 fi
21516
21517
21518
21519 build_perl=$have_perl
21520
21521 # Check whether --enable-perl was given.
21522 if test "${enable_perl+set}" = set; then
21523 enableval=$enable_perl; build_perl=no
21524 else
21525 build_perl=$have_perl
21526 fi
21527
21528
21529
21530 # Check whether --with-perl-sitelib-dir was given.
21531 if test "${with_perl_sitelib_dir+set}" = set; then
21532 withval=$with_perl_sitelib_dir;
21533 fi
21534
21535
21536 if test "$have_perl" = "yes"; then
21537 PE_PREFIX=`(perl -e 'use Config; print $Config{archlib};')`
21538 { echo "$as_me:$LINENO: checking for $PE_PREFIX/CORE/perl.h" >&5
21539 echo $ECHO_N "checking for $PE_PREFIX/CORE/perl.h... $ECHO_C" >&6; }
21540 if test -f $PE_PREFIX/CORE/perl.h; then
21541 { echo "$as_me:$LINENO: result: yes" >&5
21542 echo "${ECHO_T}yes" >&6; }
21543 PE_CFLAGS="-I$PE_PREFIX/CORE "
21544 PE_CFLAGS=$PE_CFLAGS`(perl -e 'use Config; print $Config{cppflags};')`
21545
21546 if test "$with_perl_sitelib_dir" = "" ; then
21547 PE_MODULES_PATH=`(perl -e 'use Config; print $Config{sitelib};')`
21548 else
21549 PE_MODULES_PATH=$with_perl_sitelib_dir
21550 fi
21551
21552
21553
21554 if test "x$have_swig" = "xno"; then
21555 build_perl=no
21556 fi
21557 else
21558 { echo "$as_me:$LINENO: result: no" >&5
21559 echo "${ECHO_T}no" >&6; }
21560 build_perl=no
21561 fi
21562 fi
21563
21564
21565
21566 if test "$build_perl" = "yes"; then
21567 WITH_PERL_TRUE=
21568 WITH_PERL_FALSE='#'
21569 else
21570 WITH_PERL_TRUE='#'
21571 WITH_PERL_FALSE=
21572 fi
21573
21574
21575
21576
21577 ALL_LINGUAS="he es_MX ru fr sv"
21578
21579 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21580 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
21581 # Check whether --enable-nls was given.
21582 if test "${enable_nls+set}" = set; then
21583 enableval=$enable_nls; USE_NLS=$enableval
21584 else
21585 USE_NLS=yes
21586 fi
21587
21588 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
21589 echo "${ECHO_T}$USE_NLS" >&6; }
21590
21591
21592
21593
21594 GETTEXT_MACRO_VERSION=0.17
21595
21596
21597
21598
21599 # Prepare PATH_SEPARATOR.
21600 # The user is always right.
21601 if test "${PATH_SEPARATOR+set}" != set; then
21602 echo "#! /bin/sh" >conf$$.sh
21603 echo "exit 0" >>conf$$.sh
21604 chmod +x conf$$.sh
21605 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21606 PATH_SEPARATOR=';'
21607 else
21608 PATH_SEPARATOR=:
21609 fi
21610 rm -f conf$$.sh
21611 fi
21612
21613 # Find out how to test for executable files. Don't use a zero-byte file,
21614 # as systems may use methods other than mode bits to determine executability.
21615 cat >conf$$.file <<_ASEOF
21616 #! /bin/sh
21617 exit 0
21618 _ASEOF
21619 chmod +x conf$$.file
21620 if test -x conf$$.file >/dev/null 2>&1; then
21621 ac_executable_p="test -x"
21622 else
21623 ac_executable_p="test -f"
21624 fi
21625 rm -f conf$$.file
21626
21627 # Extract the first word of "msgfmt", so it can be a program name with args.
21628 set dummy msgfmt; ac_word=$2
21629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21631 if test "${ac_cv_path_MSGFMT+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634 case "$MSGFMT" in
21635 [\\/]* | ?:[\\/]*)
21636 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21637 ;;
21638 *)
21639 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21640 for ac_dir in $PATH; do
21641 IFS="$ac_save_IFS"
21642 test -z "$ac_dir" && ac_dir=.
21643 for ac_exec_ext in '' $ac_executable_extensions; do
21644 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21645 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21646 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
21647 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21648 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21649 break 2
21650 fi
21651 fi
21652 done
21653 done
21654 IFS="$ac_save_IFS"
21655 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21656 ;;
21657 esac
21658 fi
21659 MSGFMT="$ac_cv_path_MSGFMT"
21660 if test "$MSGFMT" != ":"; then
21661 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
21662 echo "${ECHO_T}$MSGFMT" >&6; }
21663 else
21664 { echo "$as_me:$LINENO: result: no" >&5
21665 echo "${ECHO_T}no" >&6; }
21666 fi
21667
21668 # Extract the first word of "gmsgfmt", so it can be a program name with args.
21669 set dummy gmsgfmt; ac_word=$2
21670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21672 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21674 else
21675 case $GMSGFMT in
21676 [\\/]* | ?:[\\/]*)
21677 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21678 ;;
21679 *)
21680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21681 for as_dir in $PATH
21682 do
21683 IFS=$as_save_IFS
21684 test -z "$as_dir" && as_dir=.
21685 for ac_exec_ext in '' $ac_executable_extensions; do
21686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21687 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21689 break 2
21690 fi
21691 done
21692 done
21693 IFS=$as_save_IFS
21694
21695 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21696 ;;
21697 esac
21698 fi
21699 GMSGFMT=$ac_cv_path_GMSGFMT
21700 if test -n "$GMSGFMT"; then
21701 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21702 echo "${ECHO_T}$GMSGFMT" >&6; }
21703 else
21704 { echo "$as_me:$LINENO: result: no" >&5
21705 echo "${ECHO_T}no" >&6; }
21706 fi
21707
21708
21709
21710 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21711 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
21712 *) MSGFMT_015=$MSGFMT ;;
21713 esac
21714
21715 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21716 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
21717 *) GMSGFMT_015=$GMSGFMT ;;
21718 esac
21719
21720
21721
21722 # Prepare PATH_SEPARATOR.
21723 # The user is always right.
21724 if test "${PATH_SEPARATOR+set}" != set; then
21725 echo "#! /bin/sh" >conf$$.sh
21726 echo "exit 0" >>conf$$.sh
21727 chmod +x conf$$.sh
21728 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21729 PATH_SEPARATOR=';'
21730 else
21731 PATH_SEPARATOR=:
21732 fi
21733 rm -f conf$$.sh
21734 fi
21735
21736 # Find out how to test for executable files. Don't use a zero-byte file,
21737 # as systems may use methods other than mode bits to determine executability.
21738 cat >conf$$.file <<_ASEOF
21739 #! /bin/sh
21740 exit 0
21741 _ASEOF
21742 chmod +x conf$$.file
21743 if test -x conf$$.file >/dev/null 2>&1; then
21744 ac_executable_p="test -x"
21745 else
21746 ac_executable_p="test -f"
21747 fi
21748 rm -f conf$$.file
21749
21750 # Extract the first word of "xgettext", so it can be a program name with args.
21751 set dummy xgettext; ac_word=$2
21752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21754 if test "${ac_cv_path_XGETTEXT+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21756 else
21757 case "$XGETTEXT" in
21758 [\\/]* | ?:[\\/]*)
21759 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21760 ;;
21761 *)
21762 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21763 for ac_dir in $PATH; do
21764 IFS="$ac_save_IFS"
21765 test -z "$ac_dir" && ac_dir=.
21766 for ac_exec_ext in '' $ac_executable_extensions; do
21767 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21768 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21769 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
21770 (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
21771 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21772 break 2
21773 fi
21774 fi
21775 done
21776 done
21777 IFS="$ac_save_IFS"
21778 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21779 ;;
21780 esac
21781 fi
21782 XGETTEXT="$ac_cv_path_XGETTEXT"
21783 if test "$XGETTEXT" != ":"; then
21784 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21785 echo "${ECHO_T}$XGETTEXT" >&6; }
21786 else
21787 { echo "$as_me:$LINENO: result: no" >&5
21788 echo "${ECHO_T}no" >&6; }
21789 fi
21790
21791 rm -f messages.po
21792
21793 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21794 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
21795 *) XGETTEXT_015=$XGETTEXT ;;
21796 esac
21797
21798
21799
21800 # Prepare PATH_SEPARATOR.
21801 # The user is always right.
21802 if test "${PATH_SEPARATOR+set}" != set; then
21803 echo "#! /bin/sh" >conf$$.sh
21804 echo "exit 0" >>conf$$.sh
21805 chmod +x conf$$.sh
21806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21807 PATH_SEPARATOR=';'
21808 else
21809 PATH_SEPARATOR=:
21810 fi
21811 rm -f conf$$.sh
21812 fi
21813
21814 # Find out how to test for executable files. Don't use a zero-byte file,
21815 # as systems may use methods other than mode bits to determine executability.
21816 cat >conf$$.file <<_ASEOF
21817 #! /bin/sh
21818 exit 0
21819 _ASEOF
21820 chmod +x conf$$.file
21821 if test -x conf$$.file >/dev/null 2>&1; then
21822 ac_executable_p="test -x"
21823 else
21824 ac_executable_p="test -f"
21825 fi
21826 rm -f conf$$.file
21827
21828 # Extract the first word of "msgmerge", so it can be a program name with args.
21829 set dummy msgmerge; ac_word=$2
21830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21832 if test "${ac_cv_path_MSGMERGE+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835 case "$MSGMERGE" in
21836 [\\/]* | ?:[\\/]*)
21837 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21838 ;;
21839 *)
21840 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21841 for ac_dir in $PATH; do
21842 IFS="$ac_save_IFS"
21843 test -z "$ac_dir" && ac_dir=.
21844 for ac_exec_ext in '' $ac_executable_extensions; do
21845 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21846 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21847 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
21848 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21849 break 2
21850 fi
21851 fi
21852 done
21853 done
21854 IFS="$ac_save_IFS"
21855 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21856 ;;
21857 esac
21858 fi
21859 MSGMERGE="$ac_cv_path_MSGMERGE"
21860 if test "$MSGMERGE" != ":"; then
21861 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21862 echo "${ECHO_T}$MSGMERGE" >&6; }
21863 else
21864 { echo "$as_me:$LINENO: result: no" >&5
21865 echo "${ECHO_T}no" >&6; }
21866 fi
21867
21868
21869 test -n "$localedir" || localedir='${datadir}/locale'
21870
21871
21872 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
21873
21874
21875 ac_config_commands="$ac_config_commands po-directories"
21876
21877
21878
21879 if test "X$prefix" = "XNONE"; then
21880 acl_final_prefix="$ac_default_prefix"
21881 else
21882 acl_final_prefix="$prefix"
21883 fi
21884 if test "X$exec_prefix" = "XNONE"; then
21885 acl_final_exec_prefix='${prefix}'
21886 else
21887 acl_final_exec_prefix="$exec_prefix"
21888 fi
21889 acl_save_prefix="$prefix"
21890 prefix="$acl_final_prefix"
21891 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21892 prefix="$acl_save_prefix"
21893
21894
21895 # Check whether --with-gnu-ld was given.
21896 if test "${with_gnu_ld+set}" = set; then
21897 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21898 else
21899 with_gnu_ld=no
21900 fi
21901
21902 # Prepare PATH_SEPARATOR.
21903 # The user is always right.
21904 if test "${PATH_SEPARATOR+set}" != set; then
21905 echo "#! /bin/sh" >conf$$.sh
21906 echo "exit 0" >>conf$$.sh
21907 chmod +x conf$$.sh
21908 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21909 PATH_SEPARATOR=';'
21910 else
21911 PATH_SEPARATOR=:
21912 fi
21913 rm -f conf$$.sh
21914 fi
21915 ac_prog=ld
21916 if test "$GCC" = yes; then
21917 # Check if gcc -print-prog-name=ld gives a path.
21918 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21919 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
21920 case $host in
21921 *-*-mingw*)
21922 # gcc leaves a trailing carriage return which upsets mingw
21923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21924 *)
21925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21926 esac
21927 case $ac_prog in
21928 # Accept absolute paths.
21929 [\\/]* | [A-Za-z]:[\\/]*)
21930 re_direlt='/[^/][^/]*/\.\./'
21931 # Canonicalize the path of ld
21932 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21933 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21934 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21935 done
21936 test -z "$LD" && LD="$ac_prog"
21937 ;;
21938 "")
21939 # If it fails, then pretend we aren't using GCC.
21940 ac_prog=ld
21941 ;;
21942 *)
21943 # If it is relative, then search for the first ld in PATH.
21944 with_gnu_ld=unknown
21945 ;;
21946 esac
21947 elif test "$with_gnu_ld" = yes; then
21948 { echo "$as_me:$LINENO: checking for GNU ld" >&5
21949 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
21950 else
21951 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21952 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
21953 fi
21954 if test "${acl_cv_path_LD+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21957 if test -z "$LD"; then
21958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21959 for ac_dir in $PATH; do
21960 test -z "$ac_dir" && ac_dir=.
21961 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21962 acl_cv_path_LD="$ac_dir/$ac_prog"
21963 # Check to see if the program is GNU ld. I'd rather use --version,
21964 # but apparently some GNU ld's only accept -v.
21965 # Break only if it was the GNU/non-GNU ld that we prefer.
21966 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
21967 *GNU* | *'with BFD'*)
21968 test "$with_gnu_ld" != no && break ;;
21969 *)
21970 test "$with_gnu_ld" != yes && break ;;
21971 esac
21972 fi
21973 done
21974 IFS="$ac_save_ifs"
21975 else
21976 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21977 fi
21978 fi
21979
21980 LD="$acl_cv_path_LD"
21981 if test -n "$LD"; then
21982 { echo "$as_me:$LINENO: result: $LD" >&5
21983 echo "${ECHO_T}$LD" >&6; }
21984 else
21985 { echo "$as_me:$LINENO: result: no" >&5
21986 echo "${ECHO_T}no" >&6; }
21987 fi
21988 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21989 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21990 { (exit 1); exit 1; }; }
21991 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21992 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
21993 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 else
21996 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21997 case `$LD -v 2>&1 </dev/null` in
21998 *GNU* | *'with BFD'*)
21999 acl_cv_prog_gnu_ld=yes ;;
22000 *)
22001 acl_cv_prog_gnu_ld=no ;;
22002 esac
22003 fi
22004 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22005 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
22006 with_gnu_ld=$acl_cv_prog_gnu_ld
22007
22008
22009
22010
22011 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22012 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
22013 if test "${acl_cv_rpath+set}" = set; then
22014 echo $ECHO_N "(cached) $ECHO_C" >&6
22015 else
22016
22017 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22018 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22019 . ./conftest.sh
22020 rm -f ./conftest.sh
22021 acl_cv_rpath=done
22022
22023 fi
22024 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22025 echo "${ECHO_T}$acl_cv_rpath" >&6; }
22026 wl="$acl_cv_wl"
22027 acl_libext="$acl_cv_libext"
22028 acl_shlibext="$acl_cv_shlibext"
22029 acl_libname_spec="$acl_cv_libname_spec"
22030 acl_library_names_spec="$acl_cv_library_names_spec"
22031 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22032 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22033 acl_hardcode_direct="$acl_cv_hardcode_direct"
22034 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
22035 # Check whether --enable-rpath was given.
22036 if test "${enable_rpath+set}" = set; then
22037 enableval=$enable_rpath; :
22038 else
22039 enable_rpath=yes
22040 fi
22041
22042
22043
22044 acl_libdirstem=lib
22045 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
22046 if test -n "$searchpath"; then
22047 acl_save_IFS="${IFS= }"; IFS=":"
22048 for searchdir in $searchpath; do
22049 if test -d "$searchdir"; then
22050 case "$searchdir" in
22051 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
22052 *) searchdir=`cd "$searchdir" && pwd`
22053 case "$searchdir" in
22054 */lib64 ) acl_libdirstem=lib64 ;;
22055 esac ;;
22056 esac
22057 fi
22058 done
22059 IFS="$acl_save_IFS"
22060 fi
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070 use_additional=yes
22071
22072 acl_save_prefix="$prefix"
22073 prefix="$acl_final_prefix"
22074 acl_save_exec_prefix="$exec_prefix"
22075 exec_prefix="$acl_final_exec_prefix"
22076
22077 eval additional_includedir=\"$includedir\"
22078 eval additional_libdir=\"$libdir\"
22079
22080 exec_prefix="$acl_save_exec_prefix"
22081 prefix="$acl_save_prefix"
22082
22083
22084 # Check whether --with-libiconv-prefix was given.
22085 if test "${with_libiconv_prefix+set}" = set; then
22086 withval=$with_libiconv_prefix;
22087 if test "X$withval" = "Xno"; then
22088 use_additional=no
22089 else
22090 if test "X$withval" = "X"; then
22091
22092 acl_save_prefix="$prefix"
22093 prefix="$acl_final_prefix"
22094 acl_save_exec_prefix="$exec_prefix"
22095 exec_prefix="$acl_final_exec_prefix"
22096
22097 eval additional_includedir=\"$includedir\"
22098 eval additional_libdir=\"$libdir\"
22099
22100 exec_prefix="$acl_save_exec_prefix"
22101 prefix="$acl_save_prefix"
22102
22103 else
22104 additional_includedir="$withval/include"
22105 additional_libdir="$withval/$acl_libdirstem"
22106 fi
22107 fi
22108
22109 fi
22110
22111 LIBICONV=
22112 LTLIBICONV=
22113 INCICONV=
22114 LIBICONV_PREFIX=
22115 rpathdirs=
22116 ltrpathdirs=
22117 names_already_handled=
22118 names_next_round='iconv '
22119 while test -n "$names_next_round"; do
22120 names_this_round="$names_next_round"
22121 names_next_round=
22122 for name in $names_this_round; do
22123 already_handled=
22124 for n in $names_already_handled; do
22125 if test "$n" = "$name"; then
22126 already_handled=yes
22127 break
22128 fi
22129 done
22130 if test -z "$already_handled"; then
22131 names_already_handled="$names_already_handled $name"
22132 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22133 eval value=\"\$HAVE_LIB$uppername\"
22134 if test -n "$value"; then
22135 if test "$value" = yes; then
22136 eval value=\"\$LIB$uppername\"
22137 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22138 eval value=\"\$LTLIB$uppername\"
22139 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22140 else
22141 :
22142 fi
22143 else
22144 found_dir=
22145 found_la=
22146 found_so=
22147 found_a=
22148 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22149 if test -n "$acl_shlibext"; then
22150 shrext=".$acl_shlibext" # typically: shrext=.so
22151 else
22152 shrext=
22153 fi
22154 if test $use_additional = yes; then
22155 dir="$additional_libdir"
22156 if test -n "$acl_shlibext"; then
22157 if test -f "$dir/$libname$shrext"; then
22158 found_dir="$dir"
22159 found_so="$dir/$libname$shrext"
22160 else
22161 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22162 ver=`(cd "$dir" && \
22163 for f in "$libname$shrext".*; do echo "$f"; done \
22164 | sed -e "s,^$libname$shrext\\\\.,," \
22165 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22166 | sed 1q ) 2>/dev/null`
22167 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22168 found_dir="$dir"
22169 found_so="$dir/$libname$shrext.$ver"
22170 fi
22171 else
22172 eval library_names=\"$acl_library_names_spec\"
22173 for f in $library_names; do
22174 if test -f "$dir/$f"; then
22175 found_dir="$dir"
22176 found_so="$dir/$f"
22177 break
22178 fi
22179 done
22180 fi
22181 fi
22182 fi
22183 if test "X$found_dir" = "X"; then
22184 if test -f "$dir/$libname.$acl_libext"; then
22185 found_dir="$dir"
22186 found_a="$dir/$libname.$acl_libext"
22187 fi
22188 fi
22189 if test "X$found_dir" != "X"; then
22190 if test -f "$dir/$libname.la"; then
22191 found_la="$dir/$libname.la"
22192 fi
22193 fi
22194 fi
22195 if test "X$found_dir" = "X"; then
22196 for x in $LDFLAGS $LTLIBICONV; do
22197
22198 acl_save_prefix="$prefix"
22199 prefix="$acl_final_prefix"
22200 acl_save_exec_prefix="$exec_prefix"
22201 exec_prefix="$acl_final_exec_prefix"
22202 eval x=\"$x\"
22203 exec_prefix="$acl_save_exec_prefix"
22204 prefix="$acl_save_prefix"
22205
22206 case "$x" in
22207 -L*)
22208 dir=`echo "X$x" | sed -e 's/^X-L//'`
22209 if test -n "$acl_shlibext"; then
22210 if test -f "$dir/$libname$shrext"; then
22211 found_dir="$dir"
22212 found_so="$dir/$libname$shrext"
22213 else
22214 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22215 ver=`(cd "$dir" && \
22216 for f in "$libname$shrext".*; do echo "$f"; done \
22217 | sed -e "s,^$libname$shrext\\\\.,," \
22218 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22219 | sed 1q ) 2>/dev/null`
22220 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22221 found_dir="$dir"
22222 found_so="$dir/$libname$shrext.$ver"
22223 fi
22224 else
22225 eval library_names=\"$acl_library_names_spec\"
22226 for f in $library_names; do
22227 if test -f "$dir/$f"; then
22228 found_dir="$dir"
22229 found_so="$dir/$f"
22230 break
22231 fi
22232 done
22233 fi
22234 fi
22235 fi
22236 if test "X$found_dir" = "X"; then
22237 if test -f "$dir/$libname.$acl_libext"; then
22238 found_dir="$dir"
22239 found_a="$dir/$libname.$acl_libext"
22240 fi
22241 fi
22242 if test "X$found_dir" != "X"; then
22243 if test -f "$dir/$libname.la"; then
22244 found_la="$dir/$libname.la"
22245 fi
22246 fi
22247 ;;
22248 esac
22249 if test "X$found_dir" != "X"; then
22250 break
22251 fi
22252 done
22253 fi
22254 if test "X$found_dir" != "X"; then
22255 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22256 if test "X$found_so" != "X"; then
22257 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22258 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22259 else
22260 haveit=
22261 for x in $ltrpathdirs; do
22262 if test "X$x" = "X$found_dir"; then
22263 haveit=yes
22264 break
22265 fi
22266 done
22267 if test -z "$haveit"; then
22268 ltrpathdirs="$ltrpathdirs $found_dir"
22269 fi
22270 if test "$acl_hardcode_direct" = yes; then
22271 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22272 else
22273 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22274 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22275 haveit=
22276 for x in $rpathdirs; do
22277 if test "X$x" = "X$found_dir"; then
22278 haveit=yes
22279 break
22280 fi
22281 done
22282 if test -z "$haveit"; then
22283 rpathdirs="$rpathdirs $found_dir"
22284 fi
22285 else
22286 haveit=
22287 for x in $LDFLAGS $LIBICONV; do
22288
22289 acl_save_prefix="$prefix"
22290 prefix="$acl_final_prefix"
22291 acl_save_exec_prefix="$exec_prefix"
22292 exec_prefix="$acl_final_exec_prefix"
22293 eval x=\"$x\"
22294 exec_prefix="$acl_save_exec_prefix"
22295 prefix="$acl_save_prefix"
22296
22297 if test "X$x" = "X-L$found_dir"; then
22298 haveit=yes
22299 break
22300 fi
22301 done
22302 if test -z "$haveit"; then
22303 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22304 fi
22305 if test "$acl_hardcode_minus_L" != no; then
22306 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22307 else
22308 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22309 fi
22310 fi
22311 fi
22312 fi
22313 else
22314 if test "X$found_a" != "X"; then
22315 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22316 else
22317 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22318 fi
22319 fi
22320 additional_includedir=
22321 case "$found_dir" in
22322 */$acl_libdirstem | */$acl_libdirstem/)
22323 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22324 LIBICONV_PREFIX="$basedir"
22325 additional_includedir="$basedir/include"
22326 ;;
22327 esac
22328 if test "X$additional_includedir" != "X"; then
22329 if test "X$additional_includedir" != "X/usr/include"; then
22330 haveit=
22331 if test "X$additional_includedir" = "X/usr/local/include"; then
22332 if test -n "$GCC"; then
22333 case $host_os in
22334 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22335 esac
22336 fi
22337 fi
22338 if test -z "$haveit"; then
22339 for x in $CPPFLAGS $INCICONV; do
22340
22341 acl_save_prefix="$prefix"
22342 prefix="$acl_final_prefix"
22343 acl_save_exec_prefix="$exec_prefix"
22344 exec_prefix="$acl_final_exec_prefix"
22345 eval x=\"$x\"
22346 exec_prefix="$acl_save_exec_prefix"
22347 prefix="$acl_save_prefix"
22348
22349 if test "X$x" = "X-I$additional_includedir"; then
22350 haveit=yes
22351 break
22352 fi
22353 done
22354 if test -z "$haveit"; then
22355 if test -d "$additional_includedir"; then
22356 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22357 fi
22358 fi
22359 fi
22360 fi
22361 fi
22362 if test -n "$found_la"; then
22363 save_libdir="$libdir"
22364 case "$found_la" in
22365 */* | *\\*) . "$found_la" ;;
22366 *) . "./$found_la" ;;
22367 esac
22368 libdir="$save_libdir"
22369 for dep in $dependency_libs; do
22370 case "$dep" in
22371 -L*)
22372 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22373 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
22374 haveit=
22375 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
22376 if test -n "$GCC"; then
22377 case $host_os in
22378 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22379 esac
22380 fi
22381 fi
22382 if test -z "$haveit"; then
22383 haveit=
22384 for x in $LDFLAGS $LIBICONV; do
22385
22386 acl_save_prefix="$prefix"
22387 prefix="$acl_final_prefix"
22388 acl_save_exec_prefix="$exec_prefix"
22389 exec_prefix="$acl_final_exec_prefix"
22390 eval x=\"$x\"
22391 exec_prefix="$acl_save_exec_prefix"
22392 prefix="$acl_save_prefix"
22393
22394 if test "X$x" = "X-L$additional_libdir"; then
22395 haveit=yes
22396 break
22397 fi
22398 done
22399 if test -z "$haveit"; then
22400 if test -d "$additional_libdir"; then
22401 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22402 fi
22403 fi
22404 haveit=
22405 for x in $LDFLAGS $LTLIBICONV; do
22406
22407 acl_save_prefix="$prefix"
22408 prefix="$acl_final_prefix"
22409 acl_save_exec_prefix="$exec_prefix"
22410 exec_prefix="$acl_final_exec_prefix"
22411 eval x=\"$x\"
22412 exec_prefix="$acl_save_exec_prefix"
22413 prefix="$acl_save_prefix"
22414
22415 if test "X$x" = "X-L$additional_libdir"; then
22416 haveit=yes
22417 break
22418 fi
22419 done
22420 if test -z "$haveit"; then
22421 if test -d "$additional_libdir"; then
22422 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22423 fi
22424 fi
22425 fi
22426 fi
22427 ;;
22428 -R*)
22429 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22430 if test "$enable_rpath" != no; then
22431 haveit=
22432 for x in $rpathdirs; do
22433 if test "X$x" = "X$dir"; then
22434 haveit=yes
22435 break
22436 fi
22437 done
22438 if test -z "$haveit"; then
22439 rpathdirs="$rpathdirs $dir"
22440 fi
22441 haveit=
22442 for x in $ltrpathdirs; do
22443 if test "X$x" = "X$dir"; then
22444 haveit=yes
22445 break
22446 fi
22447 done
22448 if test -z "$haveit"; then
22449 ltrpathdirs="$ltrpathdirs $dir"
22450 fi
22451 fi
22452 ;;
22453 -l*)
22454 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22455 ;;
22456 *.la)
22457 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22458 ;;
22459 *)
22460 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22461 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22462 ;;
22463 esac
22464 done
22465 fi
22466 else
22467 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22468 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22469 fi
22470 fi
22471 fi
22472 done
22473 done
22474 if test "X$rpathdirs" != "X"; then
22475 if test -n "$acl_hardcode_libdir_separator"; then
22476 alldirs=
22477 for found_dir in $rpathdirs; do
22478 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22479 done
22480 acl_save_libdir="$libdir"
22481 libdir="$alldirs"
22482 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22483 libdir="$acl_save_libdir"
22484 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22485 else
22486 for found_dir in $rpathdirs; do
22487 acl_save_libdir="$libdir"
22488 libdir="$found_dir"
22489 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22490 libdir="$acl_save_libdir"
22491 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22492 done
22493 fi
22494 fi
22495 if test "X$ltrpathdirs" != "X"; then
22496 for found_dir in $ltrpathdirs; do
22497 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22498 done
22499 fi
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
22526 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
22527 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
22528 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 else
22530 gt_save_LIBS="$LIBS"
22531 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22532 cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h. */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22538 #include <CoreFoundation/CFPreferences.h>
22539 int
22540 main ()
22541 {
22542 CFPreferencesCopyAppValue(NULL, NULL)
22543 ;
22544 return 0;
22545 }
22546 _ACEOF
22547 rm -f conftest.$ac_objext conftest$ac_exeext
22548 if { (ac_try="$ac_link"
22549 case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22552 esac
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554 (eval "$ac_link") 2>conftest.er1
22555 ac_status=$?
22556 grep -v '^ *+' conftest.er1 >conftest.err
22557 rm -f conftest.er1
22558 cat conftest.err >&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } && {
22561 test -z "$ac_c_werror_flag" ||
22562 test ! -s conftest.err
22563 } && test -s conftest$ac_exeext &&
22564 $as_test_x conftest$ac_exeext; then
22565 gt_cv_func_CFPreferencesCopyAppValue=yes
22566 else
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 gt_cv_func_CFPreferencesCopyAppValue=no
22571 fi
22572
22573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22574 conftest$ac_exeext conftest.$ac_ext
22575 LIBS="$gt_save_LIBS"
22576 fi
22577 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22578 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22579 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22580
22581 cat >>confdefs.h <<\_ACEOF
22582 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
22583 _ACEOF
22584
22585 fi
22586 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
22587 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
22588 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591 gt_save_LIBS="$LIBS"
22592 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22593 cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h. */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22599 #include <CoreFoundation/CFLocale.h>
22600 int
22601 main ()
22602 {
22603 CFLocaleCopyCurrent();
22604 ;
22605 return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext conftest$ac_exeext
22609 if { (ac_try="$ac_link"
22610 case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_link") 2>conftest.er1
22616 ac_status=$?
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest$ac_exeext &&
22625 $as_test_x conftest$ac_exeext; then
22626 gt_cv_func_CFLocaleCopyCurrent=yes
22627 else
22628 echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22630
22631 gt_cv_func_CFLocaleCopyCurrent=no
22632 fi
22633
22634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22635 conftest$ac_exeext conftest.$ac_ext
22636 LIBS="$gt_save_LIBS"
22637 fi
22638 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
22639 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
22640 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22641
22642 cat >>confdefs.h <<\_ACEOF
22643 #define HAVE_CFLOCALECOPYCURRENT 1
22644 _ACEOF
22645
22646 fi
22647 INTL_MACOSX_LIBS=
22648 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22649 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
22650 fi
22651
22652
22653
22654
22655
22656
22657 LIBINTL=
22658 LTLIBINTL=
22659 POSUB=
22660
22661 case " $gt_needs " in
22662 *" need-formatstring-macros "*) gt_api_version=3 ;;
22663 *" need-ngettext "*) gt_api_version=2 ;;
22664 *) gt_api_version=1 ;;
22665 esac
22666 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
22667 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
22668
22669 if test "$USE_NLS" = "yes"; then
22670 gt_use_preinstalled_gnugettext=no
22671
22672
22673 if test $gt_api_version -ge 3; then
22674 gt_revision_test_code='
22675 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
22676 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
22677 #endif
22678 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
22679 '
22680 else
22681 gt_revision_test_code=
22682 fi
22683 if test $gt_api_version -ge 2; then
22684 gt_expression_test_code=' + * ngettext ("", "", 0)'
22685 else
22686 gt_expression_test_code=
22687 fi
22688
22689 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22690 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
22691 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
22692 echo $ECHO_N "(cached) $ECHO_C" >&6
22693 else
22694 cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h. */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22700 #include <libintl.h>
22701 $gt_revision_test_code
22702 extern int _nl_msg_cat_cntr;
22703 extern int *_nl_domain_bindings;
22704 int
22705 main ()
22706 {
22707 bindtextdomain ("", "");
22708 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
22709 ;
22710 return 0;
22711 }
22712 _ACEOF
22713 rm -f conftest.$ac_objext conftest$ac_exeext
22714 if { (ac_try="$ac_link"
22715 case "(($ac_try" in
22716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717 *) ac_try_echo=$ac_try;;
22718 esac
22719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22720 (eval "$ac_link") 2>conftest.er1
22721 ac_status=$?
22722 grep -v '^ *+' conftest.er1 >conftest.err
22723 rm -f conftest.er1
22724 cat conftest.err >&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } && {
22727 test -z "$ac_c_werror_flag" ||
22728 test ! -s conftest.err
22729 } && test -s conftest$ac_exeext &&
22730 $as_test_x conftest$ac_exeext; then
22731 eval "$gt_func_gnugettext_libc=yes"
22732 else
22733 echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736 eval "$gt_func_gnugettext_libc=no"
22737 fi
22738
22739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22740 conftest$ac_exeext conftest.$ac_ext
22741 fi
22742 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
22743 { echo "$as_me:$LINENO: result: $ac_res" >&5
22744 echo "${ECHO_T}$ac_res" >&6; }
22745
22746 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
22747
22748
22749
22750
22751
22752 am_save_CPPFLAGS="$CPPFLAGS"
22753
22754 for element in $INCICONV; do
22755 haveit=
22756 for x in $CPPFLAGS; do
22757
22758 acl_save_prefix="$prefix"
22759 prefix="$acl_final_prefix"
22760 acl_save_exec_prefix="$exec_prefix"
22761 exec_prefix="$acl_final_exec_prefix"
22762 eval x=\"$x\"
22763 exec_prefix="$acl_save_exec_prefix"
22764 prefix="$acl_save_prefix"
22765
22766 if test "X$x" = "X$element"; then
22767 haveit=yes
22768 break
22769 fi
22770 done
22771 if test -z "$haveit"; then
22772 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22773 fi
22774 done
22775
22776
22777 { echo "$as_me:$LINENO: checking for iconv" >&5
22778 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22779 if test "${am_cv_func_iconv+set}" = set; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
22781 else
22782
22783 am_cv_func_iconv="no, consider installing GNU libiconv"
22784 am_cv_lib_iconv=no
22785 cat >conftest.$ac_ext <<_ACEOF
22786 /* confdefs.h. */
22787 _ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h. */
22791 #include <stdlib.h>
22792 #include <iconv.h>
22793 int
22794 main ()
22795 {
22796 iconv_t cd = iconv_open("","");
22797 iconv(cd,NULL,NULL,NULL,NULL);
22798 iconv_close(cd);
22799 ;
22800 return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext conftest$ac_exeext
22804 if { (ac_try="$ac_link"
22805 case "(($ac_try" in
22806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807 *) ac_try_echo=$ac_try;;
22808 esac
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810 (eval "$ac_link") 2>conftest.er1
22811 ac_status=$?
22812 grep -v '^ *+' conftest.er1 >conftest.err
22813 rm -f conftest.er1
22814 cat conftest.err >&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } && {
22817 test -z "$ac_c_werror_flag" ||
22818 test ! -s conftest.err
22819 } && test -s conftest$ac_exeext &&
22820 $as_test_x conftest$ac_exeext; then
22821 am_cv_func_iconv=yes
22822 else
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22825
22826
22827 fi
22828
22829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22830 conftest$ac_exeext conftest.$ac_ext
22831 if test "$am_cv_func_iconv" != yes; then
22832 am_save_LIBS="$LIBS"
22833 LIBS="$LIBS $LIBICONV"
22834 cat >conftest.$ac_ext <<_ACEOF
22835 /* confdefs.h. */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h. */
22840 #include <stdlib.h>
22841 #include <iconv.h>
22842 int
22843 main ()
22844 {
22845 iconv_t cd = iconv_open("","");
22846 iconv(cd,NULL,NULL,NULL,NULL);
22847 iconv_close(cd);
22848 ;
22849 return 0;
22850 }
22851 _ACEOF
22852 rm -f conftest.$ac_objext conftest$ac_exeext
22853 if { (ac_try="$ac_link"
22854 case "(($ac_try" in
22855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22857 esac
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859 (eval "$ac_link") 2>conftest.er1
22860 ac_status=$?
22861 grep -v '^ *+' conftest.er1 >conftest.err
22862 rm -f conftest.er1
22863 cat conftest.err >&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } && {
22866 test -z "$ac_c_werror_flag" ||
22867 test ! -s conftest.err
22868 } && test -s conftest$ac_exeext &&
22869 $as_test_x conftest$ac_exeext; then
22870 am_cv_lib_iconv=yes
22871 am_cv_func_iconv=yes
22872 else
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876
22877 fi
22878
22879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22880 conftest$ac_exeext conftest.$ac_ext
22881 LIBS="$am_save_LIBS"
22882 fi
22883
22884 fi
22885 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22886 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22887 if test "$am_cv_func_iconv" = yes; then
22888 { echo "$as_me:$LINENO: checking for working iconv" >&5
22889 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
22890 if test "${am_cv_func_iconv_works+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 else
22893
22894 am_save_LIBS="$LIBS"
22895 if test $am_cv_lib_iconv = yes; then
22896 LIBS="$LIBS $LIBICONV"
22897 fi
22898 if test "$cross_compiling" = yes; then
22899 case "$host_os" in
22900 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
22901 *) am_cv_func_iconv_works="guessing yes" ;;
22902 esac
22903 else
22904 cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h. */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910
22911 #include <iconv.h>
22912 #include <string.h>
22913 int main ()
22914 {
22915 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
22916 returns. */
22917 {
22918 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
22919 if (cd_utf8_to_88591 != (iconv_t)(-1))
22920 {
22921 static const char input[] = "\342\202\254"; /* EURO SIGN */
22922 char buf[10];
22923 const char *inptr = input;
22924 size_t inbytesleft = strlen (input);
22925 char *outptr = buf;
22926 size_t outbytesleft = sizeof (buf);
22927 size_t res = iconv (cd_utf8_to_88591,
22928 (char **) &inptr, &inbytesleft,
22929 &outptr, &outbytesleft);
22930 if (res == 0)
22931 return 1;
22932 }
22933 }
22934 #if 0 /* This bug could be worked around by the caller. */
22935 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
22936 {
22937 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
22938 if (cd_88591_to_utf8 != (iconv_t)(-1))
22939 {
22940 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
22941 char buf[50];
22942 const char *inptr = input;
22943 size_t inbytesleft = strlen (input);
22944 char *outptr = buf;
22945 size_t outbytesleft = sizeof (buf);
22946 size_t res = iconv (cd_88591_to_utf8,
22947 (char **) &inptr, &inbytesleft,
22948 &outptr, &outbytesleft);
22949 if ((int)res > 0)
22950 return 1;
22951 }
22952 }
22953 #endif
22954 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
22955 provided. */
22956 if (/* Try standardized names. */
22957 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
22958 /* Try IRIX, OSF/1 names. */
22959 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
22960 /* Try AIX names. */
22961 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
22962 /* Try HP-UX names. */
22963 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
22964 return 1;
22965 return 0;
22966 }
22967 _ACEOF
22968 rm -f conftest$ac_exeext
22969 if { (ac_try="$ac_link"
22970 case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22973 esac
22974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975 (eval "$ac_link") 2>&5
22976 ac_status=$?
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22979 { (case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22982 esac
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_try") 2>&5
22985 ac_status=$?
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); }; }; then
22988 am_cv_func_iconv_works=yes
22989 else
22990 echo "$as_me: program exited with status $ac_status" >&5
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22993
22994 ( exit $ac_status )
22995 am_cv_func_iconv_works=no
22996 fi
22997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22998 fi
22999
23000
23001 LIBS="$am_save_LIBS"
23002
23003 fi
23004 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
23005 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
23006 case "$am_cv_func_iconv_works" in
23007 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
23008 *) am_func_iconv=yes ;;
23009 esac
23010 else
23011 am_func_iconv=no am_cv_lib_iconv=no
23012 fi
23013 if test "$am_func_iconv" = yes; then
23014
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_ICONV 1
23017 _ACEOF
23018
23019 fi
23020 if test "$am_cv_lib_iconv" = yes; then
23021 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23022 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
23023 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
23024 echo "${ECHO_T}$LIBICONV" >&6; }
23025 else
23026 CPPFLAGS="$am_save_CPPFLAGS"
23027 LIBICONV=
23028 LTLIBICONV=
23029 fi
23030
23031
23032
23033
23034
23035
23036
23037
23038 use_additional=yes
23039
23040 acl_save_prefix="$prefix"
23041 prefix="$acl_final_prefix"
23042 acl_save_exec_prefix="$exec_prefix"
23043 exec_prefix="$acl_final_exec_prefix"
23044
23045 eval additional_includedir=\"$includedir\"
23046 eval additional_libdir=\"$libdir\"
23047
23048 exec_prefix="$acl_save_exec_prefix"
23049 prefix="$acl_save_prefix"
23050
23051
23052 # Check whether --with-libintl-prefix was given.
23053 if test "${with_libintl_prefix+set}" = set; then
23054 withval=$with_libintl_prefix;
23055 if test "X$withval" = "Xno"; then
23056 use_additional=no
23057 else
23058 if test "X$withval" = "X"; then
23059
23060 acl_save_prefix="$prefix"
23061 prefix="$acl_final_prefix"
23062 acl_save_exec_prefix="$exec_prefix"
23063 exec_prefix="$acl_final_exec_prefix"
23064
23065 eval additional_includedir=\"$includedir\"
23066 eval additional_libdir=\"$libdir\"
23067
23068 exec_prefix="$acl_save_exec_prefix"
23069 prefix="$acl_save_prefix"
23070
23071 else
23072 additional_includedir="$withval/include"
23073 additional_libdir="$withval/$acl_libdirstem"
23074 fi
23075 fi
23076
23077 fi
23078
23079 LIBINTL=
23080 LTLIBINTL=
23081 INCINTL=
23082 LIBINTL_PREFIX=
23083 rpathdirs=
23084 ltrpathdirs=
23085 names_already_handled=
23086 names_next_round='intl '
23087 while test -n "$names_next_round"; do
23088 names_this_round="$names_next_round"
23089 names_next_round=
23090 for name in $names_this_round; do
23091 already_handled=
23092 for n in $names_already_handled; do
23093 if test "$n" = "$name"; then
23094 already_handled=yes
23095 break
23096 fi
23097 done
23098 if test -z "$already_handled"; then
23099 names_already_handled="$names_already_handled $name"
23100 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23101 eval value=\"\$HAVE_LIB$uppername\"
23102 if test -n "$value"; then
23103 if test "$value" = yes; then
23104 eval value=\"\$LIB$uppername\"
23105 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23106 eval value=\"\$LTLIB$uppername\"
23107 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23108 else
23109 :
23110 fi
23111 else
23112 found_dir=
23113 found_la=
23114 found_so=
23115 found_a=
23116 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
23117 if test -n "$acl_shlibext"; then
23118 shrext=".$acl_shlibext" # typically: shrext=.so
23119 else
23120 shrext=
23121 fi
23122 if test $use_additional = yes; then
23123 dir="$additional_libdir"
23124 if test -n "$acl_shlibext"; then
23125 if test -f "$dir/$libname$shrext"; then
23126 found_dir="$dir"
23127 found_so="$dir/$libname$shrext"
23128 else
23129 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23130 ver=`(cd "$dir" && \
23131 for f in "$libname$shrext".*; do echo "$f"; done \
23132 | sed -e "s,^$libname$shrext\\\\.,," \
23133 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23134 | sed 1q ) 2>/dev/null`
23135 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23136 found_dir="$dir"
23137 found_so="$dir/$libname$shrext.$ver"
23138 fi
23139 else
23140 eval library_names=\"$acl_library_names_spec\"
23141 for f in $library_names; do
23142 if test -f "$dir/$f"; then
23143 found_dir="$dir"
23144 found_so="$dir/$f"
23145 break
23146 fi
23147 done
23148 fi
23149 fi
23150 fi
23151 if test "X$found_dir" = "X"; then
23152 if test -f "$dir/$libname.$acl_libext"; then
23153 found_dir="$dir"
23154 found_a="$dir/$libname.$acl_libext"
23155 fi
23156 fi
23157 if test "X$found_dir" != "X"; then
23158 if test -f "$dir/$libname.la"; then
23159 found_la="$dir/$libname.la"
23160 fi
23161 fi
23162 fi
23163 if test "X$found_dir" = "X"; then
23164 for x in $LDFLAGS $LTLIBINTL; do
23165
23166 acl_save_prefix="$prefix"
23167 prefix="$acl_final_prefix"
23168 acl_save_exec_prefix="$exec_prefix"
23169 exec_prefix="$acl_final_exec_prefix"
23170 eval x=\"$x\"
23171 exec_prefix="$acl_save_exec_prefix"
23172 prefix="$acl_save_prefix"
23173
23174 case "$x" in
23175 -L*)
23176 dir=`echo "X$x" | sed -e 's/^X-L//'`
23177 if test -n "$acl_shlibext"; then
23178 if test -f "$dir/$libname$shrext"; then
23179 found_dir="$dir"
23180 found_so="$dir/$libname$shrext"
23181 else
23182 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23183 ver=`(cd "$dir" && \
23184 for f in "$libname$shrext".*; do echo "$f"; done \
23185 | sed -e "s,^$libname$shrext\\\\.,," \
23186 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23187 | sed 1q ) 2>/dev/null`
23188 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23189 found_dir="$dir"
23190 found_so="$dir/$libname$shrext.$ver"
23191 fi
23192 else
23193 eval library_names=\"$acl_library_names_spec\"
23194 for f in $library_names; do
23195 if test -f "$dir/$f"; then
23196 found_dir="$dir"
23197 found_so="$dir/$f"
23198 break
23199 fi
23200 done
23201 fi
23202 fi
23203 fi
23204 if test "X$found_dir" = "X"; then
23205 if test -f "$dir/$libname.$acl_libext"; then
23206 found_dir="$dir"
23207 found_a="$dir/$libname.$acl_libext"
23208 fi
23209 fi
23210 if test "X$found_dir" != "X"; then
23211 if test -f "$dir/$libname.la"; then
23212 found_la="$dir/$libname.la"
23213 fi
23214 fi
23215 ;;
23216 esac
23217 if test "X$found_dir" != "X"; then
23218 break
23219 fi
23220 done
23221 fi
23222 if test "X$found_dir" != "X"; then
23223 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23224 if test "X$found_so" != "X"; then
23225 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
23226 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23227 else
23228 haveit=
23229 for x in $ltrpathdirs; do
23230 if test "X$x" = "X$found_dir"; then
23231 haveit=yes
23232 break
23233 fi
23234 done
23235 if test -z "$haveit"; then
23236 ltrpathdirs="$ltrpathdirs $found_dir"
23237 fi
23238 if test "$acl_hardcode_direct" = yes; then
23239 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23240 else
23241 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23242 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23243 haveit=
23244 for x in $rpathdirs; do
23245 if test "X$x" = "X$found_dir"; then
23246 haveit=yes
23247 break
23248 fi
23249 done
23250 if test -z "$haveit"; then
23251 rpathdirs="$rpathdirs $found_dir"
23252 fi
23253 else
23254 haveit=
23255 for x in $LDFLAGS $LIBINTL; do
23256
23257 acl_save_prefix="$prefix"
23258 prefix="$acl_final_prefix"
23259 acl_save_exec_prefix="$exec_prefix"
23260 exec_prefix="$acl_final_exec_prefix"
23261 eval x=\"$x\"
23262 exec_prefix="$acl_save_exec_prefix"
23263 prefix="$acl_save_prefix"
23264
23265 if test "X$x" = "X-L$found_dir"; then
23266 haveit=yes
23267 break
23268 fi
23269 done
23270 if test -z "$haveit"; then
23271 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23272 fi
23273 if test "$acl_hardcode_minus_L" != no; then
23274 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23275 else
23276 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23277 fi
23278 fi
23279 fi
23280 fi
23281 else
23282 if test "X$found_a" != "X"; then
23283 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23284 else
23285 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23286 fi
23287 fi
23288 additional_includedir=
23289 case "$found_dir" in
23290 */$acl_libdirstem | */$acl_libdirstem/)
23291 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23292 LIBINTL_PREFIX="$basedir"
23293 additional_includedir="$basedir/include"
23294 ;;
23295 esac
23296 if test "X$additional_includedir" != "X"; then
23297 if test "X$additional_includedir" != "X/usr/include"; then
23298 haveit=
23299 if test "X$additional_includedir" = "X/usr/local/include"; then
23300 if test -n "$GCC"; then
23301 case $host_os in
23302 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23303 esac
23304 fi
23305 fi
23306 if test -z "$haveit"; then
23307 for x in $CPPFLAGS $INCINTL; do
23308
23309 acl_save_prefix="$prefix"
23310 prefix="$acl_final_prefix"
23311 acl_save_exec_prefix="$exec_prefix"
23312 exec_prefix="$acl_final_exec_prefix"
23313 eval x=\"$x\"
23314 exec_prefix="$acl_save_exec_prefix"
23315 prefix="$acl_save_prefix"
23316
23317 if test "X$x" = "X-I$additional_includedir"; then
23318 haveit=yes
23319 break
23320 fi
23321 done
23322 if test -z "$haveit"; then
23323 if test -d "$additional_includedir"; then
23324 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23325 fi
23326 fi
23327 fi
23328 fi
23329 fi
23330 if test -n "$found_la"; then
23331 save_libdir="$libdir"
23332 case "$found_la" in
23333 */* | *\\*) . "$found_la" ;;
23334 *) . "./$found_la" ;;
23335 esac
23336 libdir="$save_libdir"
23337 for dep in $dependency_libs; do
23338 case "$dep" in
23339 -L*)
23340 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23341 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
23342 haveit=
23343 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
23344 if test -n "$GCC"; then
23345 case $host_os in
23346 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23347 esac
23348 fi
23349 fi
23350 if test -z "$haveit"; then
23351 haveit=
23352 for x in $LDFLAGS $LIBINTL; do
23353
23354 acl_save_prefix="$prefix"
23355 prefix="$acl_final_prefix"
23356 acl_save_exec_prefix="$exec_prefix"
23357 exec_prefix="$acl_final_exec_prefix"
23358 eval x=\"$x\"
23359 exec_prefix="$acl_save_exec_prefix"
23360 prefix="$acl_save_prefix"
23361
23362 if test "X$x" = "X-L$additional_libdir"; then
23363 haveit=yes
23364 break
23365 fi
23366 done
23367 if test -z "$haveit"; then
23368 if test -d "$additional_libdir"; then
23369 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23370 fi
23371 fi
23372 haveit=
23373 for x in $LDFLAGS $LTLIBINTL; do
23374
23375 acl_save_prefix="$prefix"
23376 prefix="$acl_final_prefix"
23377 acl_save_exec_prefix="$exec_prefix"
23378 exec_prefix="$acl_final_exec_prefix"
23379 eval x=\"$x\"
23380 exec_prefix="$acl_save_exec_prefix"
23381 prefix="$acl_save_prefix"
23382
23383 if test "X$x" = "X-L$additional_libdir"; then
23384 haveit=yes
23385 break
23386 fi
23387 done
23388 if test -z "$haveit"; then
23389 if test -d "$additional_libdir"; then
23390 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23391 fi
23392 fi
23393 fi
23394 fi
23395 ;;
23396 -R*)
23397 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23398 if test "$enable_rpath" != no; then
23399 haveit=
23400 for x in $rpathdirs; do
23401 if test "X$x" = "X$dir"; then
23402 haveit=yes
23403 break
23404 fi
23405 done
23406 if test -z "$haveit"; then
23407 rpathdirs="$rpathdirs $dir"
23408 fi
23409 haveit=
23410 for x in $ltrpathdirs; do
23411 if test "X$x" = "X$dir"; then
23412 haveit=yes
23413 break
23414 fi
23415 done
23416 if test -z "$haveit"; then
23417 ltrpathdirs="$ltrpathdirs $dir"
23418 fi
23419 fi
23420 ;;
23421 -l*)
23422 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23423 ;;
23424 *.la)
23425 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23426 ;;
23427 *)
23428 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23429 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23430 ;;
23431 esac
23432 done
23433 fi
23434 else
23435 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23436 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23437 fi
23438 fi
23439 fi
23440 done
23441 done
23442 if test "X$rpathdirs" != "X"; then
23443 if test -n "$acl_hardcode_libdir_separator"; then
23444 alldirs=
23445 for found_dir in $rpathdirs; do
23446 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23447 done
23448 acl_save_libdir="$libdir"
23449 libdir="$alldirs"
23450 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23451 libdir="$acl_save_libdir"
23452 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23453 else
23454 for found_dir in $rpathdirs; do
23455 acl_save_libdir="$libdir"
23456 libdir="$found_dir"
23457 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23458 libdir="$acl_save_libdir"
23459 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23460 done
23461 fi
23462 fi
23463 if test "X$ltrpathdirs" != "X"; then
23464 for found_dir in $ltrpathdirs; do
23465 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23466 done
23467 fi
23468
23469 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23470 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23471 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474 gt_save_CPPFLAGS="$CPPFLAGS"
23475 CPPFLAGS="$CPPFLAGS $INCINTL"
23476 gt_save_LIBS="$LIBS"
23477 LIBS="$LIBS $LIBINTL"
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 <libintl.h>
23485 $gt_revision_test_code
23486 extern int _nl_msg_cat_cntr;
23487 extern
23488 #ifdef __cplusplus
23489 "C"
23490 #endif
23491 const char *_nl_expand_alias (const char *);
23492 int
23493 main ()
23494 {
23495 bindtextdomain ("", "");
23496 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23497 ;
23498 return 0;
23499 }
23500 _ACEOF
23501 rm -f conftest.$ac_objext conftest$ac_exeext
23502 if { (ac_try="$ac_link"
23503 case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23506 esac
23507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_link") 2>conftest.er1
23509 ac_status=$?
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } && {
23515 test -z "$ac_c_werror_flag" ||
23516 test ! -s conftest.err
23517 } && test -s conftest$ac_exeext &&
23518 $as_test_x conftest$ac_exeext; then
23519 eval "$gt_func_gnugettext_libintl=yes"
23520 else
23521 echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23523
23524 eval "$gt_func_gnugettext_libintl=no"
23525 fi
23526
23527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23528 conftest$ac_exeext conftest.$ac_ext
23529 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
23530 LIBS="$LIBS $LIBICONV"
23531 cat >conftest.$ac_ext <<_ACEOF
23532 /* confdefs.h. */
23533 _ACEOF
23534 cat confdefs.h >>conftest.$ac_ext
23535 cat >>conftest.$ac_ext <<_ACEOF
23536 /* end confdefs.h. */
23537 #include <libintl.h>
23538 $gt_revision_test_code
23539 extern int _nl_msg_cat_cntr;
23540 extern
23541 #ifdef __cplusplus
23542 "C"
23543 #endif
23544 const char *_nl_expand_alias (const char *);
23545 int
23546 main ()
23547 {
23548 bindtextdomain ("", "");
23549 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23550 ;
23551 return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (ac_try="$ac_link"
23556 case "(($ac_try" in
23557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558 *) ac_try_echo=$ac_try;;
23559 esac
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561 (eval "$ac_link") 2>conftest.er1
23562 ac_status=$?
23563 grep -v '^ *+' conftest.er1 >conftest.err
23564 rm -f conftest.er1
23565 cat conftest.err >&5
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } && {
23568 test -z "$ac_c_werror_flag" ||
23569 test ! -s conftest.err
23570 } && test -s conftest$ac_exeext &&
23571 $as_test_x conftest$ac_exeext; then
23572 LIBINTL="$LIBINTL $LIBICONV"
23573 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23574 eval "$gt_func_gnugettext_libintl=yes"
23575
23576 else
23577 echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23579
23580
23581 fi
23582
23583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23584 conftest$ac_exeext conftest.$ac_ext
23585 fi
23586 CPPFLAGS="$gt_save_CPPFLAGS"
23587 LIBS="$gt_save_LIBS"
23588 fi
23589 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
23590 { echo "$as_me:$LINENO: result: $ac_res" >&5
23591 echo "${ECHO_T}$ac_res" >&6; }
23592 fi
23593
23594 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
23595 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
23596 && test "$PACKAGE" != gettext-runtime \
23597 && test "$PACKAGE" != gettext-tools; }; then
23598 gt_use_preinstalled_gnugettext=yes
23599 else
23600 LIBINTL=
23601 LTLIBINTL=
23602 INCINTL=
23603 fi
23604
23605
23606
23607 if test -n "$INTL_MACOSX_LIBS"; then
23608 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23609 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23610 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23611 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23612 fi
23613 fi
23614
23615 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23616 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23617
23618 cat >>confdefs.h <<\_ACEOF
23619 #define ENABLE_NLS 1
23620 _ACEOF
23621
23622 else
23623 USE_NLS=no
23624 fi
23625 fi
23626
23627 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23628 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23629 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23630 echo "${ECHO_T}$USE_NLS" >&6; }
23631 if test "$USE_NLS" = "yes"; then
23632 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23633 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23634 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23635 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
23636 gt_source="external libintl"
23637 else
23638 gt_source="libc"
23639 fi
23640 else
23641 gt_source="included intl directory"
23642 fi
23643 { echo "$as_me:$LINENO: result: $gt_source" >&5
23644 echo "${ECHO_T}$gt_source" >&6; }
23645 fi
23646
23647 if test "$USE_NLS" = "yes"; then
23648
23649 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23650 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
23651 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23652 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23653 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23654 echo "${ECHO_T}$LIBINTL" >&6; }
23655
23656 for element in $INCINTL; do
23657 haveit=
23658 for x in $CPPFLAGS; do
23659
23660 acl_save_prefix="$prefix"
23661 prefix="$acl_final_prefix"
23662 acl_save_exec_prefix="$exec_prefix"
23663 exec_prefix="$acl_final_exec_prefix"
23664 eval x=\"$x\"
23665 exec_prefix="$acl_save_exec_prefix"
23666 prefix="$acl_save_prefix"
23667
23668 if test "X$x" = "X$element"; then
23669 haveit=yes
23670 break
23671 fi
23672 done
23673 if test -z "$haveit"; then
23674 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23675 fi
23676 done
23677
23678 fi
23679
23680
23681 cat >>confdefs.h <<\_ACEOF
23682 #define HAVE_GETTEXT 1
23683 _ACEOF
23684
23685
23686 cat >>confdefs.h <<\_ACEOF
23687 #define HAVE_DCGETTEXT 1
23688 _ACEOF
23689
23690 fi
23691
23692 POSUB=po
23693 fi
23694
23695
23696
23697 INTLLIBS="$LIBINTL"
23698
23699
23700
23701
23702
23703
23704
23705
23706 if test "$DATADIRNAME" = ""; then
23707 DATADIRNAME="share"
23708
23709 fi
23710
23711 if test "${prefix}" = "NONE"; then
23712 cat >>confdefs.h <<_ACEOF
23713 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
23714 _ACEOF
23715
23716 else
23717 cat >>confdefs.h <<_ACEOF
23718 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
23719 _ACEOF
23720
23721 fi
23722
23723
23724 build_hcal=yes
23725
23726 # Check whether --enable-hcal was given.
23727 if test "${enable_hcal+set}" = set; then
23728 enableval=$enable_hcal; build_hcal=no
23729 else
23730 build_hcal=yes
23731 fi
23732
23733
23734
23735
23736 if test "$build_hcal" = "yes"; then
23737 WITH_HCAL_TRUE=
23738 WITH_HCAL_FALSE='#'
23739 else
23740 WITH_HCAL_TRUE='#'
23741 WITH_HCAL_FALSE=
23742 fi
23743
23744
23745
23746
23747
23748
23749
23750 ac_config_files="$ac_config_files Makefile libhdate.pc po/Makefile.in docs/Makefile docs/man/Makefile docs/man/man1/Makefile docs/man/man3/Makefile src/Makefile examples/Makefile examples/hcal/Makefile examples/bindings/Makefile examples/bindings/pascal/Makefile bindings/Makefile bindings/python/Makefile bindings/perl/Makefile bindings/pascal/Makefile bindings/ruby/Makefile bindings/php/Makefile"
23751
23752 cat >confcache <<\_ACEOF
23753 # This file is a shell script that caches the results of configure
23754 # tests run on this system so they can be shared between configure
23755 # scripts and configure runs, see configure's option --config-cache.
23756 # It is not useful on other systems. If it contains results you don't
23757 # want to keep, you may remove or edit it.
23758 #
23759 # config.status only pays attention to the cache file if you give it
23760 # the --recheck option to rerun configure.
23761 #
23762 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23763 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23764 # following values.
23765
23766 _ACEOF
23767
23768 # The following way of writing the cache mishandles newlines in values,
23769 # but we know of no workaround that is simple, portable, and efficient.
23770 # So, we kill variables containing newlines.
23771 # Ultrix sh set writes to stderr and can't be redirected directly,
23772 # and sets the high bit in the cache file unless we assign to the vars.
23773 (
23774 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23775 eval ac_val=\$$ac_var
23776 case $ac_val in #(
23777 *${as_nl}*)
23778 case $ac_var in #(
23779 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23780 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23781 esac
23782 case $ac_var in #(
23783 _ | IFS | as_nl) ;; #(
23784 *) $as_unset $ac_var ;;
23785 esac ;;
23786 esac
23787 done
23788
23789 (set) 2>&1 |
23790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23791 *${as_nl}ac_space=\ *)
23792 # `set' does not quote correctly, so add quotes (double-quote
23793 # substitution turns \\\\ into \\, and sed turns \\ into \).
23794 sed -n \
23795 "s/'/'\\\\''/g;
23796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23797 ;; #(
23798 *)
23799 # `set' quotes correctly as required by POSIX, so do not add quotes.
23800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23801 ;;
23802 esac |
23803 sort
23804 ) |
23805 sed '
23806 /^ac_cv_env_/b end
23807 t clear
23808 :clear
23809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23810 t end
23811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23812 :end' >>confcache
23813 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23814 if test -w "$cache_file"; then
23815 test "x$cache_file" != "x/dev/null" &&
23816 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23817 echo "$as_me: updating cache $cache_file" >&6;}
23818 cat confcache >$cache_file
23819 else
23820 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23821 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23822 fi
23823 fi
23824 rm -f confcache
23825
23826 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23827 # Let make expand exec_prefix.
23828 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23829
23830 # Transform confdefs.h into DEFS.
23831 # Protect against shell expansion while executing Makefile rules.
23832 # Protect against Makefile macro expansion.
23833 #
23834 # If the first sed substitution is executed (which looks for macros that
23835 # take arguments), then branch to the quote section. Otherwise,
23836 # look for a macro that doesn't take arguments.
23837 ac_script='
23838 t clear
23839 :clear
23840 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
23841 t quote
23842 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
23843 t quote
23844 b any
23845 :quote
23846 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
23847 s/\[/\\&/g
23848 s/\]/\\&/g
23849 s/\$/$$/g
23850 H
23851 :any
23852 ${
23853 g
23854 s/^\n//
23855 s/\n/ /g
23856 p
23857 }
23858 '
23859 DEFS=`sed -n "$ac_script" confdefs.h`
23860
23861
23862 ac_libobjs=
23863 ac_ltlibobjs=
23864 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23865 # 1. Remove the extension, and $U if already installed.
23866 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23867 ac_i=`echo "$ac_i" | sed "$ac_script"`
23868 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23869 # will be set to the directory where LIBOBJS objects are built.
23870 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23871 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23872 done
23873 LIBOBJS=$ac_libobjs
23874
23875 LTLIBOBJS=$ac_ltlibobjs
23876
23877
23878 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23879 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23880 Usually this means the macro was only invoked conditionally." >&5
23881 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23882 Usually this means the macro was only invoked conditionally." >&2;}
23883 { (exit 1); exit 1; }; }
23884 fi
23885 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23886 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23887 Usually this means the macro was only invoked conditionally." >&5
23888 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23889 Usually this means the macro was only invoked conditionally." >&2;}
23890 { (exit 1); exit 1; }; }
23891 fi
23892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23893 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23894 Usually this means the macro was only invoked conditionally." >&5
23895 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23896 Usually this means the macro was only invoked conditionally." >&2;}
23897 { (exit 1); exit 1; }; }
23898 fi
23899 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23900 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23901 Usually this means the macro was only invoked conditionally." >&5
23902 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23903 Usually this means the macro was only invoked conditionally." >&2;}
23904 { (exit 1); exit 1; }; }
23905 fi
23906 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23907 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23908 Usually this means the macro was only invoked conditionally." >&5
23909 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23910 Usually this means the macro was only invoked conditionally." >&2;}
23911 { (exit 1); exit 1; }; }
23912 fi
23913 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23914 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23915 Usually this means the macro was only invoked conditionally." >&5
23916 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23917 Usually this means the macro was only invoked conditionally." >&2;}
23918 { (exit 1); exit 1; }; }
23919 fi
23920 if test -z "${WITH_PASCAL_TRUE}" && test -z "${WITH_PASCAL_FALSE}"; then
23921 { { echo "$as_me:$LINENO: error: conditional \"WITH_PASCAL\" was never defined.
23922 Usually this means the macro was only invoked conditionally." >&5
23923 echo "$as_me: error: conditional \"WITH_PASCAL\" was never defined.
23924 Usually this means the macro was only invoked conditionally." >&2;}
23925 { (exit 1); exit 1; }; }
23926 fi
23927 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
23928 { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
23929 Usually this means the macro was only invoked conditionally." >&5
23930 echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
23931 Usually this means the macro was only invoked conditionally." >&2;}
23932 { (exit 1); exit 1; }; }
23933 fi
23934 if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
23935 { { echo "$as_me:$LINENO: error: conditional \"WITH_RUBY\" was never defined.
23936 Usually this means the macro was only invoked conditionally." >&5
23937 echo "$as_me: error: conditional \"WITH_RUBY\" was never defined.
23938 Usually this means the macro was only invoked conditionally." >&2;}
23939 { (exit 1); exit 1; }; }
23940 fi
23941 if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
23942 { { echo "$as_me:$LINENO: error: conditional \"WITH_PHP\" was never defined.
23943 Usually this means the macro was only invoked conditionally." >&5
23944 echo "$as_me: error: conditional \"WITH_PHP\" was never defined.
23945 Usually this means the macro was only invoked conditionally." >&2;}
23946 { (exit 1); exit 1; }; }
23947 fi
23948 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
23949 { { echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
23950 Usually this means the macro was only invoked conditionally." >&5
23951 echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
23952 Usually this means the macro was only invoked conditionally." >&2;}
23953 { (exit 1); exit 1; }; }
23954 fi
23955 if test -z "${WITH_HCAL_TRUE}" && test -z "${WITH_HCAL_FALSE}"; then
23956 { { echo "$as_me:$LINENO: error: conditional \"WITH_HCAL\" was never defined.
23957 Usually this means the macro was only invoked conditionally." >&5
23958 echo "$as_me: error: conditional \"WITH_HCAL\" was never defined.
23959 Usually this means the macro was only invoked conditionally." >&2;}
23960 { (exit 1); exit 1; }; }
23961 fi
23962
23963 : ${CONFIG_STATUS=./config.status}
23964 ac_clean_files_save=$ac_clean_files
23965 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23966 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23967 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23968 cat >$CONFIG_STATUS <<_ACEOF
23969 #! $SHELL
23970 # Generated by $as_me.
23971 # Run this file to recreate the current configuration.
23972 # Compiler output produced by configure, useful for debugging
23973 # configure, is in config.log if it exists.
23974
23975 debug=false
23976 ac_cs_recheck=false
23977 ac_cs_silent=false
23978 SHELL=\${CONFIG_SHELL-$SHELL}
23979 _ACEOF
23980
23981 cat >>$CONFIG_STATUS <<\_ACEOF
23982 ## --------------------- ##
23983 ## M4sh Initialization. ##
23984 ## --------------------- ##
23985
23986 # Be more Bourne compatible
23987 DUALCASE=1; export DUALCASE # for MKS sh
23988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23989 emulate sh
23990 NULLCMD=:
23991 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23992 # is contrary to our usage. Disable this feature.
23993 alias -g '${1+"$@"}'='"$@"'
23994 setopt NO_GLOB_SUBST
23995 else
23996 case `(set -o) 2>/dev/null` in
23997 *posix*) set -o posix ;;
23998 esac
23999
24000 fi
24001
24002
24003
24004
24005 # PATH needs CR
24006 # Avoid depending upon Character Ranges.
24007 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24008 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24009 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24010 as_cr_digits='0123456789'
24011 as_cr_alnum=$as_cr_Letters$as_cr_digits
24012
24013 # The user is always right.
24014 if test "${PATH_SEPARATOR+set}" != set; then
24015 echo "#! /bin/sh" >conf$$.sh
24016 echo "exit 0" >>conf$$.sh
24017 chmod +x conf$$.sh
24018 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24019 PATH_SEPARATOR=';'
24020 else
24021 PATH_SEPARATOR=:
24022 fi
24023 rm -f conf$$.sh
24024 fi
24025
24026 # Support unset when possible.
24027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24028 as_unset=unset
24029 else
24030 as_unset=false
24031 fi
24032
24033
24034 # IFS
24035 # We need space, tab and new line, in precisely that order. Quoting is
24036 # there to prevent editors from complaining about space-tab.
24037 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24038 # splitting by setting IFS to empty value.)
24039 as_nl='
24040 '
24041 IFS=" "" $as_nl"
24042
24043 # Find who we are. Look in the path if we contain no directory separator.
24044 case $0 in
24045 *[\\/]* ) as_myself=$0 ;;
24046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24047 for as_dir in $PATH
24048 do
24049 IFS=$as_save_IFS
24050 test -z "$as_dir" && as_dir=.
24051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24052 done
24053 IFS=$as_save_IFS
24054
24055 ;;
24056 esac
24057 # We did not find ourselves, most probably we were run as `sh COMMAND'
24058 # in which case we are not to be found in the path.
24059 if test "x$as_myself" = x; then
24060 as_myself=$0
24061 fi
24062 if test ! -f "$as_myself"; then
24063 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24064 { (exit 1); exit 1; }
24065 fi
24066
24067 # Work around bugs in pre-3.0 UWIN ksh.
24068 for as_var in ENV MAIL MAILPATH
24069 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24070 done
24071 PS1='$ '
24072 PS2='> '
24073 PS4='+ '
24074
24075 # NLS nuisances.
24076 for as_var in \
24077 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24078 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24079 LC_TELEPHONE LC_TIME
24080 do
24081 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24082 eval $as_var=C; export $as_var
24083 else
24084 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24085 fi
24086 done
24087
24088 # Required to use basename.
24089 if expr a : '\(a\)' >/dev/null 2>&1 &&
24090 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24091 as_expr=expr
24092 else
24093 as_expr=false
24094 fi
24095
24096 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24097 as_basename=basename
24098 else
24099 as_basename=false
24100 fi
24101
24102
24103 # Name of the executable.
24104 as_me=`$as_basename -- "$0" ||
24105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24106 X"$0" : 'X\(//\)$' \| \
24107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24108 echo X/"$0" |
24109 sed '/^.*\/\([^/][^/]*\)\/*$/{
24110 s//\1/
24111 q
24112 }
24113 /^X\/\(\/\/\)$/{
24114 s//\1/
24115 q
24116 }
24117 /^X\/\(\/\).*/{
24118 s//\1/
24119 q
24120 }
24121 s/.*/./; q'`
24122
24123 # CDPATH.
24124 $as_unset CDPATH
24125
24126
24127
24128 as_lineno_1=$LINENO
24129 as_lineno_2=$LINENO
24130 test "x$as_lineno_1" != "x$as_lineno_2" &&
24131 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24132
24133 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24134 # uniformly replaced by the line number. The first 'sed' inserts a
24135 # line-number line after each line using $LINENO; the second 'sed'
24136 # does the real work. The second script uses 'N' to pair each
24137 # line-number line with the line containing $LINENO, and appends
24138 # trailing '-' during substitution so that $LINENO is not a special
24139 # case at line end.
24140 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24141 # scripts with optimization help from Paolo Bonzini. Blame Lee
24142 # E. McMahon (1931-1989) for sed's syntax. :-)
24143 sed -n '
24144 p
24145 /[$]LINENO/=
24146 ' <$as_myself |
24147 sed '
24148 s/[$]LINENO.*/&-/
24149 t lineno
24150 b
24151 :lineno
24152 N
24153 :loop
24154 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24155 t loop
24156 s/-\n.*//
24157 ' >$as_me.lineno &&
24158 chmod +x "$as_me.lineno" ||
24159 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24160 { (exit 1); exit 1; }; }
24161
24162 # Don't try to exec as it changes $[0], causing all sort of problems
24163 # (the dirname of $[0] is not the place where we might find the
24164 # original and so on. Autoconf is especially sensitive to this).
24165 . "./$as_me.lineno"
24166 # Exit status is that of the last command.
24167 exit
24168 }
24169
24170
24171 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24172 as_dirname=dirname
24173 else
24174 as_dirname=false
24175 fi
24176
24177 ECHO_C= ECHO_N= ECHO_T=
24178 case `echo -n x` in
24179 -n*)
24180 case `echo 'x\c'` in
24181 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24182 *) ECHO_C='\c';;
24183 esac;;
24184 *)
24185 ECHO_N='-n';;
24186 esac
24187
24188 if expr a : '\(a\)' >/dev/null 2>&1 &&
24189 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24190 as_expr=expr
24191 else
24192 as_expr=false
24193 fi
24194
24195 rm -f conf$$ conf$$.exe conf$$.file
24196 if test -d conf$$.dir; then
24197 rm -f conf$$.dir/conf$$.file
24198 else
24199 rm -f conf$$.dir
24200 mkdir conf$$.dir
24201 fi
24202 echo >conf$$.file
24203 if ln -s conf$$.file conf$$ 2>/dev/null; then
24204 as_ln_s='ln -s'
24205 # ... but there are two gotchas:
24206 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24207 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24208 # In both cases, we have to default to `cp -p'.
24209 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24210 as_ln_s='cp -p'
24211 elif ln conf$$.file conf$$ 2>/dev/null; then
24212 as_ln_s=ln
24213 else
24214 as_ln_s='cp -p'
24215 fi
24216 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24217 rmdir conf$$.dir 2>/dev/null
24218
24219 if mkdir -p . 2>/dev/null; then
24220 as_mkdir_p=:
24221 else
24222 test -d ./-p && rmdir ./-p
24223 as_mkdir_p=false
24224 fi
24225
24226 if test -x / >/dev/null 2>&1; then
24227 as_test_x='test -x'
24228 else
24229 if ls -dL / >/dev/null 2>&1; then
24230 as_ls_L_option=L
24231 else
24232 as_ls_L_option=
24233 fi
24234 as_test_x='
24235 eval sh -c '\''
24236 if test -d "$1"; then
24237 test -d "$1/.";
24238 else
24239 case $1 in
24240 -*)set "./$1";;
24241 esac;
24242 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24243 ???[sx]*):;;*)false;;esac;fi
24244 '\'' sh
24245 '
24246 fi
24247 as_executable_p=$as_test_x
24248
24249 # Sed expression to map a string onto a valid CPP name.
24250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24251
24252 # Sed expression to map a string onto a valid variable name.
24253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24254
24255
24256 exec 6>&1
24257
24258 # Save the log message, to keep $[0] and so on meaningful, and to
24259 # report actual input values of CONFIG_FILES etc. instead of their
24260 # values after options handling.
24261 ac_log="
24262 This file was extended by $as_me, which was
24263 generated by GNU Autoconf 2.61. Invocation command line was
24264
24265 CONFIG_FILES = $CONFIG_FILES
24266 CONFIG_HEADERS = $CONFIG_HEADERS
24267 CONFIG_LINKS = $CONFIG_LINKS
24268 CONFIG_COMMANDS = $CONFIG_COMMANDS
24269 $ $0 $@
24270
24271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24272 "
24273
24274 _ACEOF
24275
24276 cat >>$CONFIG_STATUS <<_ACEOF
24277 # Files that config.status was made for.
24278 config_files="$ac_config_files"
24279 config_commands="$ac_config_commands"
24280
24281 _ACEOF
24282
24283 cat >>$CONFIG_STATUS <<\_ACEOF
24284 ac_cs_usage="\
24285 \`$as_me' instantiates files from templates according to the
24286 current configuration.
24287
24288 Usage: $0 [OPTIONS] [FILE]...
24289
24290 -h, --help print this help, then exit
24291 -V, --version print version number and configuration settings, then exit
24292 -q, --quiet do not print progress messages
24293 -d, --debug don't remove temporary files
24294 --recheck update $as_me by reconfiguring in the same conditions
24295 --file=FILE[:TEMPLATE]
24296 instantiate the configuration file FILE
24297
24298 Configuration files:
24299 $config_files
24300
24301 Configuration commands:
24302 $config_commands
24303
24304 Report bugs to <bug-autoconf@gnu.org>."
24305
24306 _ACEOF
24307 cat >>$CONFIG_STATUS <<_ACEOF
24308 ac_cs_version="\\
24309 config.status
24310 configured by $0, generated by GNU Autoconf 2.61,
24311 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24312
24313 Copyright (C) 2006 Free Software Foundation, Inc.
24314 This config.status script is free software; the Free Software Foundation
24315 gives unlimited permission to copy, distribute and modify it."
24316
24317 ac_pwd='$ac_pwd'
24318 srcdir='$srcdir'
24319 INSTALL='$INSTALL'
24320 _ACEOF
24321
24322 cat >>$CONFIG_STATUS <<\_ACEOF
24323 # If no file are specified by the user, then we need to provide default
24324 # value. By we need to know if files were specified by the user.
24325 ac_need_defaults=:
24326 while test $# != 0
24327 do
24328 case $1 in
24329 --*=*)
24330 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24331 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24332 ac_shift=:
24333 ;;
24334 *)
24335 ac_option=$1
24336 ac_optarg=$2
24337 ac_shift=shift
24338 ;;
24339 esac
24340
24341 case $ac_option in
24342 # Handling of the options.
24343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24344 ac_cs_recheck=: ;;
24345 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24346 echo "$ac_cs_version"; exit ;;
24347 --debug | --debu | --deb | --de | --d | -d )
24348 debug=: ;;
24349 --file | --fil | --fi | --f )
24350 $ac_shift
24351 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24352 ac_need_defaults=false;;
24353 --he | --h | --help | --hel | -h )
24354 echo "$ac_cs_usage"; exit ;;
24355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24357 ac_cs_silent=: ;;
24358
24359 # This is an error.
24360 -*) { echo "$as_me: error: unrecognized option: $1
24361 Try \`$0 --help' for more information." >&2
24362 { (exit 1); exit 1; }; } ;;
24363
24364 *) ac_config_targets="$ac_config_targets $1"
24365 ac_need_defaults=false ;;
24366
24367 esac
24368 shift
24369 done
24370
24371 ac_configure_extra_args=
24372
24373 if $ac_cs_silent; then
24374 exec 6>/dev/null
24375 ac_configure_extra_args="$ac_configure_extra_args --silent"
24376 fi
24377
24378 _ACEOF
24379 cat >>$CONFIG_STATUS <<_ACEOF
24380 if \$ac_cs_recheck; then
24381 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24382 CONFIG_SHELL=$SHELL
24383 export CONFIG_SHELL
24384 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24385 fi
24386
24387 _ACEOF
24388 cat >>$CONFIG_STATUS <<\_ACEOF
24389 exec 5>>config.log
24390 {
24391 echo
24392 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24393 ## Running $as_me. ##
24394 _ASBOX
24395 echo "$ac_log"
24396 } >&5
24397
24398 _ACEOF
24399 cat >>$CONFIG_STATUS <<_ACEOF
24400 #
24401 # INIT-COMMANDS
24402 #
24403 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24404 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24405 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24406 # from automake < 1.5.
24407 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24408 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24409 LINGUAS="${LINGUAS-%UNSET%}"
24410
24411
24412 _ACEOF
24413
24414 cat >>$CONFIG_STATUS <<\_ACEOF
24415
24416 # Handling of arguments.
24417 for ac_config_target in $ac_config_targets
24418 do
24419 case $ac_config_target in
24420 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24421 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
24422 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24423 "libhdate.pc") CONFIG_FILES="$CONFIG_FILES libhdate.pc" ;;
24424 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24425 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
24426 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
24427 "docs/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/man1/Makefile" ;;
24428 "docs/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/man3/Makefile" ;;
24429 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24430 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24431 "examples/hcal/Makefile") CONFIG_FILES="$CONFIG_FILES examples/hcal/Makefile" ;;
24432 "examples/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES examples/bindings/Makefile" ;;
24433 "examples/bindings/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES examples/bindings/pascal/Makefile" ;;
24434 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
24435 "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
24436 "bindings/perl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/perl/Makefile" ;;
24437 "bindings/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/pascal/Makefile" ;;
24438 "bindings/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/ruby/Makefile" ;;
24439 "bindings/php/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/php/Makefile" ;;
24440
24441 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24442 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24443 { (exit 1); exit 1; }; };;
24444 esac
24445 done
24446
24447
24448 # If the user did not use the arguments to specify the items to instantiate,
24449 # then the envvar interface is used. Set only those that are not.
24450 # We use the long form for the default assignment because of an extremely
24451 # bizarre bug on SunOS 4.1.3.
24452 if $ac_need_defaults; then
24453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24455 fi
24456
24457 # Have a temporary directory for convenience. Make it in the build tree
24458 # simply because there is no reason against having it here, and in addition,
24459 # creating and moving files from /tmp can sometimes cause problems.
24460 # Hook for its removal unless debugging.
24461 # Note that there is a small window in which the directory will not be cleaned:
24462 # after its creation but before its name has been assigned to `$tmp'.
24463 $debug ||
24464 {
24465 tmp=
24466 trap 'exit_status=$?
24467 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24468 ' 0
24469 trap '{ (exit 1); exit 1; }' 1 2 13 15
24470 }
24471 # Create a (secure) tmp directory for tmp files.
24472
24473 {
24474 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24475 test -n "$tmp" && test -d "$tmp"
24476 } ||
24477 {
24478 tmp=./conf$$-$RANDOM
24479 (umask 077 && mkdir "$tmp")
24480 } ||
24481 {
24482 echo "$me: cannot create a temporary directory in ." >&2
24483 { (exit 1); exit 1; }
24484 }
24485
24486 #
24487 # Set up the sed scripts for CONFIG_FILES section.
24488 #
24489
24490 # No need to generate the scripts if there are no CONFIG_FILES.
24491 # This happens for instance when ./config.status config.h
24492 if test -n "$CONFIG_FILES"; then
24493
24494 _ACEOF
24495
24496
24497
24498 ac_delim='%!_!# '
24499 for ac_last_try in false false false false false :; do
24500 cat >conf$$subs.sed <<_ACEOF
24501 SHELL!$SHELL$ac_delim
24502 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24503 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24504 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24505 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24506 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24507 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24508 exec_prefix!$exec_prefix$ac_delim
24509 prefix!$prefix$ac_delim
24510 program_transform_name!$program_transform_name$ac_delim
24511 bindir!$bindir$ac_delim
24512 sbindir!$sbindir$ac_delim
24513 libexecdir!$libexecdir$ac_delim
24514 datarootdir!$datarootdir$ac_delim
24515 datadir!$datadir$ac_delim
24516 sysconfdir!$sysconfdir$ac_delim
24517 sharedstatedir!$sharedstatedir$ac_delim
24518 localstatedir!$localstatedir$ac_delim
24519 includedir!$includedir$ac_delim
24520 oldincludedir!$oldincludedir$ac_delim
24521 docdir!$docdir$ac_delim
24522 infodir!$infodir$ac_delim
24523 htmldir!$htmldir$ac_delim
24524 dvidir!$dvidir$ac_delim
24525 pdfdir!$pdfdir$ac_delim
24526 psdir!$psdir$ac_delim
24527 libdir!$libdir$ac_delim
24528 localedir!$localedir$ac_delim
24529 mandir!$mandir$ac_delim
24530 DEFS!$DEFS$ac_delim
24531 ECHO_C!$ECHO_C$ac_delim
24532 ECHO_N!$ECHO_N$ac_delim
24533 ECHO_T!$ECHO_T$ac_delim
24534 LIBS!$LIBS$ac_delim
24535 build_alias!$build_alias$ac_delim
24536 host_alias!$host_alias$ac_delim
24537 target_alias!$target_alias$ac_delim
24538 VERSION_INFO!$VERSION_INFO$ac_delim
24539 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24540 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24541 INSTALL_DATA!$INSTALL_DATA$ac_delim
24542 CYGPATH_W!$CYGPATH_W$ac_delim
24543 PACKAGE!$PACKAGE$ac_delim
24544 VERSION!$VERSION$ac_delim
24545 ACLOCAL!$ACLOCAL$ac_delim
24546 AUTOCONF!$AUTOCONF$ac_delim
24547 AUTOMAKE!$AUTOMAKE$ac_delim
24548 AUTOHEADER!$AUTOHEADER$ac_delim
24549 MAKEINFO!$MAKEINFO$ac_delim
24550 install_sh!$install_sh$ac_delim
24551 STRIP!$STRIP$ac_delim
24552 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24553 mkdir_p!$mkdir_p$ac_delim
24554 AWK!$AWK$ac_delim
24555 SET_MAKE!$SET_MAKE$ac_delim
24556 am__leading_dot!$am__leading_dot$ac_delim
24557 AMTAR!$AMTAR$ac_delim
24558 am__tar!$am__tar$ac_delim
24559 am__untar!$am__untar$ac_delim
24560 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24561 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24562 MAINT!$MAINT$ac_delim
24563 CC!$CC$ac_delim
24564 CFLAGS!$CFLAGS$ac_delim
24565 LDFLAGS!$LDFLAGS$ac_delim
24566 CPPFLAGS!$CPPFLAGS$ac_delim
24567 ac_ct_CC!$ac_ct_CC$ac_delim
24568 EXEEXT!$EXEEXT$ac_delim
24569 OBJEXT!$OBJEXT$ac_delim
24570 DEPDIR!$DEPDIR$ac_delim
24571 am__include!$am__include$ac_delim
24572 am__quote!$am__quote$ac_delim
24573 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24574 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24575 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24576 CCDEPMODE!$CCDEPMODE$ac_delim
24577 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24578 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24579 CPP!$CPP$ac_delim
24580 GREP!$GREP$ac_delim
24581 EGREP!$EGREP$ac_delim
24582 LN_S!$LN_S$ac_delim
24583 build!$build$ac_delim
24584 build_cpu!$build_cpu$ac_delim
24585 build_vendor!$build_vendor$ac_delim
24586 build_os!$build_os$ac_delim
24587 host!$host$ac_delim
24588 host_cpu!$host_cpu$ac_delim
24589 host_vendor!$host_vendor$ac_delim
24590 host_os!$host_os$ac_delim
24591 SED!$SED$ac_delim
24592 ECHO!$ECHO$ac_delim
24593 AR!$AR$ac_delim
24594 RANLIB!$RANLIB$ac_delim
24595 CXX!$CXX$ac_delim
24596 CXXFLAGS!$CXXFLAGS$ac_delim
24597 ac_ct_CXX!$ac_ct_CXX$ac_delim
24598 _ACEOF
24599
24600 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24601 break
24602 elif $ac_last_try; then
24603 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24604 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24605 { (exit 1); exit 1; }; }
24606 else
24607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24608 fi
24609 done
24610
24611 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24612 if test -n "$ac_eof"; then
24613 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24614 ac_eof=`expr $ac_eof + 1`
24615 fi
24616
24617 cat >>$CONFIG_STATUS <<_ACEOF
24618 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24620 _ACEOF
24621 sed '
24622 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24623 s/^/s,@/; s/!/@,|#_!!_#|/
24624 :n
24625 t n
24626 s/'"$ac_delim"'$/,g/; t
24627 s/$/\\/; p
24628 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24629 ' >>$CONFIG_STATUS <conf$$subs.sed
24630 rm -f conf$$subs.sed
24631 cat >>$CONFIG_STATUS <<_ACEOF
24632 CEOF$ac_eof
24633 _ACEOF
24634
24635
24636 ac_delim='%!_!# '
24637 for ac_last_try in false false false false false :; do
24638 cat >conf$$subs.sed <<_ACEOF
24639 CXXDEPMODE!$CXXDEPMODE$ac_delim
24640 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24641 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24642 CXXCPP!$CXXCPP$ac_delim
24643 F77!$F77$ac_delim
24644 FFLAGS!$FFLAGS$ac_delim
24645 ac_ct_F77!$ac_ct_F77$ac_delim
24646 LIBTOOL!$LIBTOOL$ac_delim
24647 PKG_CONFIG!$PKG_CONFIG$ac_delim
24648 have_swig!$have_swig$ac_delim
24649 have_pascal!$have_pascal$ac_delim
24650 PA_VERSION!$PA_VERSION$ac_delim
24651 PA_MODULES_PATH!$PA_MODULES_PATH$ac_delim
24652 WITH_PASCAL_TRUE!$WITH_PASCAL_TRUE$ac_delim
24653 WITH_PASCAL_FALSE!$WITH_PASCAL_FALSE$ac_delim
24654 have_python!$have_python$ac_delim
24655 PY_VERSION!$PY_VERSION$ac_delim
24656 PY_CFLAGS!$PY_CFLAGS$ac_delim
24657 PY_MODULES_PATH!$PY_MODULES_PATH$ac_delim
24658 WITH_PYTHON_TRUE!$WITH_PYTHON_TRUE$ac_delim
24659 WITH_PYTHON_FALSE!$WITH_PYTHON_FALSE$ac_delim
24660 have_ruby!$have_ruby$ac_delim
24661 RU_VERSION!$RU_VERSION$ac_delim
24662 RU_CFLAGS!$RU_CFLAGS$ac_delim
24663 RU_MODULES_PATH!$RU_MODULES_PATH$ac_delim
24664 WITH_RUBY_TRUE!$WITH_RUBY_TRUE$ac_delim
24665 WITH_RUBY_FALSE!$WITH_RUBY_FALSE$ac_delim
24666 have_php!$have_php$ac_delim
24667 have_php_config!$have_php_config$ac_delim
24668 PH_CONFIG_PATH!$PH_CONFIG_PATH$ac_delim
24669 PH_MODULES_PATH!$PH_MODULES_PATH$ac_delim
24670 WITH_PHP_TRUE!$WITH_PHP_TRUE$ac_delim
24671 WITH_PHP_FALSE!$WITH_PHP_FALSE$ac_delim
24672 have_perl!$have_perl$ac_delim
24673 PE_CFLAGS!$PE_CFLAGS$ac_delim
24674 PE_MODULES_PATH!$PE_MODULES_PATH$ac_delim
24675 WITH_PERL_TRUE!$WITH_PERL_TRUE$ac_delim
24676 WITH_PERL_FALSE!$WITH_PERL_FALSE$ac_delim
24677 USE_NLS!$USE_NLS$ac_delim
24678 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
24679 MSGFMT!$MSGFMT$ac_delim
24680 GMSGFMT!$GMSGFMT$ac_delim
24681 MSGFMT_015!$MSGFMT_015$ac_delim
24682 GMSGFMT_015!$GMSGFMT_015$ac_delim
24683 XGETTEXT!$XGETTEXT$ac_delim
24684 XGETTEXT_015!$XGETTEXT_015$ac_delim
24685 MSGMERGE!$MSGMERGE$ac_delim
24686 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
24687 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
24688 LIBICONV!$LIBICONV$ac_delim
24689 LTLIBICONV!$LTLIBICONV$ac_delim
24690 INTLLIBS!$INTLLIBS$ac_delim
24691 LIBINTL!$LIBINTL$ac_delim
24692 LTLIBINTL!$LTLIBINTL$ac_delim
24693 POSUB!$POSUB$ac_delim
24694 DATADIRNAME!$DATADIRNAME$ac_delim
24695 WITH_HCAL_TRUE!$WITH_HCAL_TRUE$ac_delim
24696 WITH_HCAL_FALSE!$WITH_HCAL_FALSE$ac_delim
24697 LIBOBJS!$LIBOBJS$ac_delim
24698 LTLIBOBJS!$LTLIBOBJS$ac_delim
24699 _ACEOF
24700
24701 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
24702 break
24703 elif $ac_last_try; then
24704 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24705 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24706 { (exit 1); exit 1; }; }
24707 else
24708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24709 fi
24710 done
24711
24712 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24713 if test -n "$ac_eof"; then
24714 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24715 ac_eof=`expr $ac_eof + 1`
24716 fi
24717
24718 cat >>$CONFIG_STATUS <<_ACEOF
24719 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24721 _ACEOF
24722 sed '
24723 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24724 s/^/s,@/; s/!/@,|#_!!_#|/
24725 :n
24726 t n
24727 s/'"$ac_delim"'$/,g/; t
24728 s/$/\\/; p
24729 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24730 ' >>$CONFIG_STATUS <conf$$subs.sed
24731 rm -f conf$$subs.sed
24732 cat >>$CONFIG_STATUS <<_ACEOF
24733 :end
24734 s/|#_!!_#|//g
24735 CEOF$ac_eof
24736 _ACEOF
24737
24738
24739 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24740 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24741 # trailing colons and then remove the whole line if VPATH becomes empty
24742 # (actually we leave an empty line to preserve line numbers).
24743 if test "x$srcdir" = x.; then
24744 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24745 s/:*\$(srcdir):*/:/
24746 s/:*\${srcdir}:*/:/
24747 s/:*@srcdir@:*/:/
24748 s/^\([^=]*=[ ]*\):*/\1/
24749 s/:*$//
24750 s/^[^=]*=[ ]*$//
24751 }'
24752 fi
24753
24754 cat >>$CONFIG_STATUS <<\_ACEOF
24755 fi # test -n "$CONFIG_FILES"
24756
24757
24758 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
24759 do
24760 case $ac_tag in
24761 :[FHLC]) ac_mode=$ac_tag; continue;;
24762 esac
24763 case $ac_mode$ac_tag in
24764 :[FHL]*:*);;
24765 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24766 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24767 { (exit 1); exit 1; }; };;
24768 :[FH]-) ac_tag=-:-;;
24769 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24770 esac
24771 ac_save_IFS=$IFS
24772 IFS=:
24773 set x $ac_tag
24774 IFS=$ac_save_IFS
24775 shift
24776 ac_file=$1
24777 shift
24778
24779 case $ac_mode in
24780 :L) ac_source=$1;;
24781 :[FH])
24782 ac_file_inputs=
24783 for ac_f
24784 do
24785 case $ac_f in
24786 -) ac_f="$tmp/stdin";;
24787 *) # Look for the file first in the build tree, then in the source tree
24788 # (if the path is not absolute). The absolute path cannot be DOS-style,
24789 # because $ac_f cannot contain `:'.
24790 test -f "$ac_f" ||
24791 case $ac_f in
24792 [\\/$]*) false;;
24793 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24794 esac ||
24795 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24796 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24797 { (exit 1); exit 1; }; };;
24798 esac
24799 ac_file_inputs="$ac_file_inputs $ac_f"
24800 done
24801
24802 # Let's still pretend it is `configure' which instantiates (i.e., don't
24803 # use $as_me), people would be surprised to read:
24804 # /* config.h. Generated by config.status. */
24805 configure_input="Generated from "`IFS=:
24806 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24807 if test x"$ac_file" != x-; then
24808 configure_input="$ac_file. $configure_input"
24809 { echo "$as_me:$LINENO: creating $ac_file" >&5
24810 echo "$as_me: creating $ac_file" >&6;}
24811 fi
24812
24813 case $ac_tag in
24814 *:-:* | *:-) cat >"$tmp/stdin";;
24815 esac
24816 ;;
24817 esac
24818
24819 ac_dir=`$as_dirname -- "$ac_file" ||
24820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24821 X"$ac_file" : 'X\(//\)[^/]' \| \
24822 X"$ac_file" : 'X\(//\)$' \| \
24823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24824 echo X"$ac_file" |
24825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24826 s//\1/
24827 q
24828 }
24829 /^X\(\/\/\)[^/].*/{
24830 s//\1/
24831 q
24832 }
24833 /^X\(\/\/\)$/{
24834 s//\1/
24835 q
24836 }
24837 /^X\(\/\).*/{
24838 s//\1/
24839 q
24840 }
24841 s/.*/./; q'`
24842 { as_dir="$ac_dir"
24843 case $as_dir in #(
24844 -*) as_dir=./$as_dir;;
24845 esac
24846 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24847 as_dirs=
24848 while :; do
24849 case $as_dir in #(
24850 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24851 *) as_qdir=$as_dir;;
24852 esac
24853 as_dirs="'$as_qdir' $as_dirs"
24854 as_dir=`$as_dirname -- "$as_dir" ||
24855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24856 X"$as_dir" : 'X\(//\)[^/]' \| \
24857 X"$as_dir" : 'X\(//\)$' \| \
24858 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24859 echo X"$as_dir" |
24860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24861 s//\1/
24862 q
24863 }
24864 /^X\(\/\/\)[^/].*/{
24865 s//\1/
24866 q
24867 }
24868 /^X\(\/\/\)$/{
24869 s//\1/
24870 q
24871 }
24872 /^X\(\/\).*/{
24873 s//\1/
24874 q
24875 }
24876 s/.*/./; q'`
24877 test -d "$as_dir" && break
24878 done
24879 test -z "$as_dirs" || eval "mkdir $as_dirs"
24880 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24881 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24882 { (exit 1); exit 1; }; }; }
24883 ac_builddir=.
24884
24885 case "$ac_dir" in
24886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24887 *)
24888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24889 # A ".." for each directory in $ac_dir_suffix.
24890 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24891 case $ac_top_builddir_sub in
24892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24894 esac ;;
24895 esac
24896 ac_abs_top_builddir=$ac_pwd
24897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24898 # for backward compatibility:
24899 ac_top_builddir=$ac_top_build_prefix
24900
24901 case $srcdir in
24902 .) # We are building in place.
24903 ac_srcdir=.
24904 ac_top_srcdir=$ac_top_builddir_sub
24905 ac_abs_top_srcdir=$ac_pwd ;;
24906 [\\/]* | ?:[\\/]* ) # Absolute name.
24907 ac_srcdir=$srcdir$ac_dir_suffix;
24908 ac_top_srcdir=$srcdir
24909 ac_abs_top_srcdir=$srcdir ;;
24910 *) # Relative name.
24911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24912 ac_top_srcdir=$ac_top_build_prefix$srcdir
24913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24914 esac
24915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24916
24917
24918 case $ac_mode in
24919 :F)
24920 #
24921 # CONFIG_FILE
24922 #
24923
24924 case $INSTALL in
24925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24926 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24927 esac
24928 _ACEOF
24929
24930 cat >>$CONFIG_STATUS <<\_ACEOF
24931 # If the template does not know about datarootdir, expand it.
24932 # FIXME: This hack should be removed a few years after 2.60.
24933 ac_datarootdir_hack=; ac_datarootdir_seen=
24934
24935 case `sed -n '/datarootdir/ {
24936 p
24937 q
24938 }
24939 /@datadir@/p
24940 /@docdir@/p
24941 /@infodir@/p
24942 /@localedir@/p
24943 /@mandir@/p
24944 ' $ac_file_inputs` in
24945 *datarootdir*) ac_datarootdir_seen=yes;;
24946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24947 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24948 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24949 _ACEOF
24950 cat >>$CONFIG_STATUS <<_ACEOF
24951 ac_datarootdir_hack='
24952 s&@datadir@&$datadir&g
24953 s&@docdir@&$docdir&g
24954 s&@infodir@&$infodir&g
24955 s&@localedir@&$localedir&g
24956 s&@mandir@&$mandir&g
24957 s&\\\${datarootdir}&$datarootdir&g' ;;
24958 esac
24959 _ACEOF
24960
24961 # Neutralize VPATH when `$srcdir' = `.'.
24962 # Shell code in configure.ac might set extrasub.
24963 # FIXME: do we really want to maintain this feature?
24964 cat >>$CONFIG_STATUS <<_ACEOF
24965 sed "$ac_vpsub
24966 $extrasub
24967 _ACEOF
24968 cat >>$CONFIG_STATUS <<\_ACEOF
24969 :t
24970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24971 s&@configure_input@&$configure_input&;t t
24972 s&@top_builddir@&$ac_top_builddir_sub&;t t
24973 s&@srcdir@&$ac_srcdir&;t t
24974 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24975 s&@top_srcdir@&$ac_top_srcdir&;t t
24976 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24977 s&@builddir@&$ac_builddir&;t t
24978 s&@abs_builddir@&$ac_abs_builddir&;t t
24979 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24980 s&@INSTALL@&$ac_INSTALL&;t t
24981 $ac_datarootdir_hack
24982 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24983
24984 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24985 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24987 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24988 which seems to be undefined. Please make sure it is defined." >&5
24989 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24990 which seems to be undefined. Please make sure it is defined." >&2;}
24991
24992 rm -f "$tmp/stdin"
24993 case $ac_file in
24994 -) cat "$tmp/out"; rm -f "$tmp/out";;
24995 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24996 esac
24997 ;;
24998
24999
25000 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25001 echo "$as_me: executing $ac_file commands" >&6;}
25002 ;;
25003 esac
25004
25005
25006 case $ac_file$ac_mode in
25007 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25008 # Strip MF so we end up with the name of the file.
25009 mf=`echo "$mf" | sed -e 's/:.*$//'`
25010 # Check whether this is an Automake generated Makefile or not.
25011 # We used to match only the files named `Makefile.in', but
25012 # some people rename them; so instead we look at the file content.
25013 # Grep'ing the first line is not enough: some people post-process
25014 # each Makefile.in and add a new line on top of each file to say so.
25015 # So let's grep whole file.
25016 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25017 dirpart=`$as_dirname -- "$mf" ||
25018 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25019 X"$mf" : 'X\(//\)[^/]' \| \
25020 X"$mf" : 'X\(//\)$' \| \
25021 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25022 echo X"$mf" |
25023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25024 s//\1/
25025 q
25026 }
25027 /^X\(\/\/\)[^/].*/{
25028 s//\1/
25029 q
25030 }
25031 /^X\(\/\/\)$/{
25032 s//\1/
25033 q
25034 }
25035 /^X\(\/\).*/{
25036 s//\1/
25037 q
25038 }
25039 s/.*/./; q'`
25040 else
25041 continue
25042 fi
25043 # Extract the definition of DEPDIR, am__include, and am__quote
25044 # from the Makefile without running `make'.
25045 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25046 test -z "$DEPDIR" && continue
25047 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25048 test -z "am__include" && continue
25049 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25050 # When using ansi2knr, U may be empty or an underscore; expand it
25051 U=`sed -n 's/^U = //p' < "$mf"`
25052 # Find all dependency output files, they are included files with
25053 # $(DEPDIR) in their names. We invoke sed twice because it is the
25054 # simplest approach to changing $(DEPDIR) to its actual value in the
25055 # expansion.
25056 for file in `sed -n "
25057 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25058 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25059 # Make sure the directory exists.
25060 test -f "$dirpart/$file" && continue
25061 fdir=`$as_dirname -- "$file" ||
25062 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25063 X"$file" : 'X\(//\)[^/]' \| \
25064 X"$file" : 'X\(//\)$' \| \
25065 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25066 echo X"$file" |
25067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25068 s//\1/
25069 q
25070 }
25071 /^X\(\/\/\)[^/].*/{
25072 s//\1/
25073 q
25074 }
25075 /^X\(\/\/\)$/{
25076 s//\1/
25077 q
25078 }
25079 /^X\(\/\).*/{
25080 s//\1/
25081 q
25082 }
25083 s/.*/./; q'`
25084 { as_dir=$dirpart/$fdir
25085 case $as_dir in #(
25086 -*) as_dir=./$as_dir;;
25087 esac
25088 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25089 as_dirs=
25090 while :; do
25091 case $as_dir in #(
25092 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25093 *) as_qdir=$as_dir;;
25094 esac
25095 as_dirs="'$as_qdir' $as_dirs"
25096 as_dir=`$as_dirname -- "$as_dir" ||
25097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25098 X"$as_dir" : 'X\(//\)[^/]' \| \
25099 X"$as_dir" : 'X\(//\)$' \| \
25100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25101 echo X"$as_dir" |
25102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25103 s//\1/
25104 q
25105 }
25106 /^X\(\/\/\)[^/].*/{
25107 s//\1/
25108 q
25109 }
25110 /^X\(\/\/\)$/{
25111 s//\1/
25112 q
25113 }
25114 /^X\(\/\).*/{
25115 s//\1/
25116 q
25117 }
25118 s/.*/./; q'`
25119 test -d "$as_dir" && break
25120 done
25121 test -z "$as_dirs" || eval "mkdir $as_dirs"
25122 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25123 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25124 { (exit 1); exit 1; }; }; }
25125 # echo "creating $dirpart/$file"
25126 echo '# dummy' > "$dirpart/$file"
25127 done
25128 done
25129 ;;
25130 "po-directories":C)
25131 for ac_file in $CONFIG_FILES; do
25132 # Support "outfile[:infile[:infile...]]"
25133 case "$ac_file" in
25134 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25135 esac
25136 # PO directories have a Makefile.in generated from Makefile.in.in.
25137 case "$ac_file" in */Makefile.in)
25138 # Adjust a relative srcdir.
25139 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25140 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25141 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25142 # In autoconf-2.13 it is called $ac_given_srcdir.
25143 # In autoconf-2.50 it is called $srcdir.
25144 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25145 case "$ac_given_srcdir" in
25146 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25147 /*) top_srcdir="$ac_given_srcdir" ;;
25148 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25149 esac
25150 # Treat a directory as a PO directory if and only if it has a
25151 # POTFILES.in file. This allows packages to have multiple PO
25152 # directories under different names or in different locations.
25153 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25154 rm -f "$ac_dir/POTFILES"
25155 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25156 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25157 POMAKEFILEDEPS="POTFILES.in"
25158 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25159 # on $ac_dir but don't depend on user-specified configuration
25160 # parameters.
25161 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25162 # The LINGUAS file contains the set of available languages.
25163 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25164 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25165 fi
25166 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25167 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25168 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25169 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25170 else
25171 # The set of available languages was given in configure.in.
25172 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25173 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25174 fi
25175 # Compute POFILES
25176 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25177 # Compute UPDATEPOFILES
25178 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25179 # Compute DUMMYPOFILES
25180 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25181 # Compute GMOFILES
25182 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25183 case "$ac_given_srcdir" in
25184 .) srcdirpre= ;;
25185 *) srcdirpre='$(srcdir)/' ;;
25186 esac
25187 POFILES=
25188 UPDATEPOFILES=
25189 DUMMYPOFILES=
25190 GMOFILES=
25191 for lang in $ALL_LINGUAS; do
25192 POFILES="$POFILES $srcdirpre$lang.po"
25193 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25194 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25195 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25196 done
25197 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25198 # environment variable.
25199 INST_LINGUAS=
25200 if test -n "$ALL_LINGUAS"; then
25201 for presentlang in $ALL_LINGUAS; do
25202 useit=no
25203 if test "%UNSET%" != "$LINGUAS"; then
25204 desiredlanguages="$LINGUAS"
25205 else
25206 desiredlanguages="$ALL_LINGUAS"
25207 fi
25208 for desiredlang in $desiredlanguages; do
25209 # Use the presentlang catalog if desiredlang is
25210 # a. equal to presentlang, or
25211 # b. a variant of presentlang (because in this case,
25212 # presentlang can be used as a fallback for messages
25213 # which are not translated in the desiredlang catalog).
25214 case "$desiredlang" in
25215 "$presentlang"*) useit=yes;;
25216 esac
25217 done
25218 if test $useit = yes; then
25219 INST_LINGUAS="$INST_LINGUAS $presentlang"
25220 fi
25221 done
25222 fi
25223 CATALOGS=
25224 if test -n "$INST_LINGUAS"; then
25225 for lang in $INST_LINGUAS; do
25226 CATALOGS="$CATALOGS $lang.gmo"
25227 done
25228 fi
25229 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25230 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"
25231 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25232 if test -f "$f"; then
25233 case "$f" in
25234 *.orig | *.bak | *~) ;;
25235 *) cat "$f" >> "$ac_dir/Makefile" ;;
25236 esac
25237 fi
25238 done
25239 fi
25240 ;;
25241 esac
25242 done ;;
25243
25244 esac
25245 done # for ac_tag
25246
25247
25248 { (exit 0); exit 0; }
25249 _ACEOF
25250 chmod +x $CONFIG_STATUS
25251 ac_clean_files=$ac_clean_files_save
25252
25253
25254 # configure is writing to config.log, and then calls config.status.
25255 # config.status does its own redirection, appending to config.log.
25256 # Unfortunately, on DOS this fails, as config.log is still kept open
25257 # by configure, so config.status won't be able to write to it; its
25258 # output is simply discarded. So we exec the FD to /dev/null,
25259 # effectively closing config.log, so it can be properly (re)opened and
25260 # appended to by config.status. When coming back to configure, we
25261 # need to make the FD available again.
25262 if test "$no_create" != yes; then
25263 ac_cs_success=:
25264 ac_config_status_args=
25265 test "$silent" = yes &&
25266 ac_config_status_args="$ac_config_status_args --quiet"
25267 exec 5>/dev/null
25268 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25269 exec 5>>config.log
25270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25271 # would make configure fail if this is the last instruction.
25272 $ac_cs_success || { (exit 1); exit 1; }
25273 fi
25274
25275
25276
25277 echo $sysconfdir
25278
25279 echo "
25280 $PACKAGE-$VERSION
25281
25282 prefix: ${prefix}
25283 compiler: ${CC}
25284
25285 have swig ${have_swig}
25286 have free pascal ${have_pascal}
25287 have python ${have_python}
25288 have perl ${have_perl}
25289 have ruby ${have_ruby}
25290 have php ${have_php} php-dev ${have_php_config}
25291
25292 build hcal ${build_hcal}
25293
25294 build python binding ${build_python}
25295 build perl binding ${build_perl}
25296 puild pascal binding ${build_pascal}
25297 puild ruby binding ${build_ruby}
25298 puild php binding ${build_php}
25299
25300 perl site lib path: $PE_MODULES_PATH
25301 python site lib path: $PY_MODULES_PATH
25302 pascal site lib path: $PA_MODULES_PATH
25303 ruby site lib path: $RU_MODULES_PATH
25304 php site lib path: $PH_MODULES_PATH
25305 php config path: $PH_CONFIG_PATH
25306 "
+0
-323
current/configure.in less more
0 AC_INIT(src/hdate.h)
1
2 dnl Set release number
3 PACKAGE=libhdate
4 LIBHDATE_MAJOR_VERSION=1
5 LIBHDATE_MINOR_VERSION=4
6 LIBHDATE_MICRO_VERSION=11
7
8 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
9
10 dnl libtool library numbering
11 VERSION_INFO=$LIBHDATE_MAJOR_VERSION:$LIBHDATE_MINOR_VERSION:0
12
13 AC_SUBST(VERSION_INFO)
14
15 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
16 AM_MAINTAINER_MODE
17
18 dnl Checks for programs.
19 AC_ISC_POSIX
20 AC_GNU_SOURCE
21 AC_USE_SYSTEM_EXTENSIONS
22 AC_PROG_CC
23 AC_PROG_INSTALL
24 AC_PROG_LN_S
25 AC_PROG_MAKE_SET
26 AC_STDC_HEADERS
27 AM_PROG_LIBTOOL
28
29 AM_MAINTAINER_MODE
30
31 AC_C_CONST
32
33 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
34
35 CFLAGS=
36 LIBS=-lm
37
38 dnl =======================================================================================
39
40 AC_CHECK_PROG(have_swig, "swig", yes, no)
41
42 dnl =======================================================================================
43
44 AC_CHECK_PROG(have_pascal, "fpc", yes, no)
45
46 build_pascal=$have_pascal
47
48 AC_ARG_ENABLE([pascal],
49 [AS_HELP_STRING([--disable-pascal],
50 [do not build pascal binding])],
51 [build_pascal=no], [build_pascal=$have_pascal])
52
53 if test "$have_pascal" = "yes"; then
54 PA_VERSION=`fpc -iV`
55 PA_TPR=`fpc -iTP`
56 PA_TOS=`fpc -iTO`
57 PA_MODULES_PATH="/usr/lib/fpc/$PA_VERSION/units/$PA_TPR-$PA_TOS"
58 AC_SUBST([PA_VERSION])
59 AC_SUBST([PA_MODULES_PATH])
60 fi
61
62 AM_CONDITIONAL(WITH_PASCAL, test "$build_pascal" = "yes")
63
64 dnl =======================================================================================
65
66 AC_CHECK_PROG(have_python, "python", yes, no)
67
68 build_python=$have_python
69
70 AC_ARG_ENABLE([python],
71 [AS_HELP_STRING([--disable-python],
72 [do not build python binding])],
73 [build_python=no], [build_python=$have_python])
74
75 AC_ARG_WITH(python-sitelib-dir,
76 [AS_HELP_STRING([--with-python-sitelib-dir=PATH],
77 [path to python site lib])])
78
79 if test "$have_python" = "yes"; then
80 PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
81 PY_VERSION=`python -c 'import sys ; print sys.version[[0:3]]'`
82 AC_MSG_CHECKING(for $PY_PREFIX/include/python$PY_VERSION/Python.h)
83 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
84 AC_MSG_RESULT(yes)
85 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
86
87 if test "$with_python_sitelib_dir" = "" ; then
88 PY_MODULES_PATH="$PY_PREFIX/lib/python$PY_VERSION/site-packages"
89 else
90 PY_MODULES_PATH=$with_python_sitelib_dir
91 fi
92
93 AC_SUBST([PY_VERSION])
94 AC_SUBST([PY_CFLAGS])
95 AC_SUBST([PY_MODULES_PATH])
96 if test "$have_swig" = "no"; then
97 build_python=no
98 fi
99 else
100 AC_MSG_RESULT(no)
101 build_python=no
102 fi
103 fi
104
105 AM_CONDITIONAL(WITH_PYTHON, test "$build_python" = "yes")
106
107 dnl =======================================================================================
108
109 AC_CHECK_PROG(have_ruby, "ruby", yes, no)
110
111 build_ruby=$have_ruby
112
113 AC_ARG_ENABLE([ruby],
114 [AS_HELP_STRING([--disable-ruby],
115 [do not build ruby binding])],
116 [build_ruby=no], [build_ruby=$have_ruby])
117
118 AC_ARG_WITH(ruby-sitelib-dir,
119 [AS_HELP_STRING([--with-ruby-sitelib-dir=PATH],
120 [path to ruby site lib])])
121
122 if test "$have_ruby" = "yes"; then
123 RU_PREFIX=`ruby -e 'require "mkmf"; puts $topdir'`
124 RU_VERSION=`ruby -e "require 'mkmf'; puts config_string('MAJOR')"`
125 RU_VERSION+=.`ruby -e "require 'mkmf'; puts config_string('MINOR')"`
126 AC_MSG_CHECKING(for $RU_PREFIX/ruby.h)
127 if test -f $RU_PREFIX/ruby.h; then
128 AC_MSG_RESULT(yes)
129 RU_CFLAGS="-I$RU_PREFIX"
130
131 if test "$with_ruby_sitelib_dir" = "" ; then
132 RU_MODULES_PATH="$RU_PREFIX"
133 else
134 RU_MODULES_PATH=$with_ruby_sitelib_dir
135 fi
136
137 AC_SUBST([RU_VERSION])
138 AC_SUBST([RU_CFLAGS])
139 AC_SUBST([RU_MODULES_PATH])
140 if test "$have_swig" = "no"; then
141 build_ruby=no
142 fi
143 else
144 AC_MSG_RESULT(no)
145 build_ruby=no
146 fi
147 fi
148
149 AM_CONDITIONAL(WITH_RUBY, test "$build_ruby" = "yes")
150
151 dnl =======================================================================================
152
153 AC_CHECK_PROG(have_php, "php", yes, no)
154
155 build_php=$have_php
156
157 AC_ARG_ENABLE([php],
158 [AS_HELP_STRING([--disable-php],
159 [do not build php binding])],
160 [build_php=no], [build_php=$have_php])
161
162 AC_ARG_WITH(php-sitelib-dir,
163 [AS_HELP_STRING([--with-php-sitelib-dir=PATH],
164 [path to php site lib])])
165
166 if test "$have_php" = "yes"; then
167 AC_CHECK_PROG(have_php_config, "php-config5", yes, no)
168 if test "$have_php_config" = "yes"; then
169
170 PH_CONFIG_PATH=`php --ini | head -n1 | cut -d: -f2 | sed 's/\s//g'`
171 if test "$with_php_sitelib_dir" = "" ; then
172 PH_MODULES_PATH=`php-config5 --extension-dir`
173 else
174 PH_MODULES_PATH=$with_php_sitelib_dir
175 fi
176
177 AC_SUBST([PH_CONFIG_PATH])
178 AC_SUBST([PH_MODULES_PATH])
179 if test "$have_swig" = "no"; then
180 build_php=no
181 fi
182 else
183 AC_MSG_RESULT(no)
184 build_php=no
185 fi
186 fi
187
188 AM_CONDITIONAL(WITH_PHP, test "$build_php" = "yes")
189
190 dnl =======================================================================================
191
192 AC_CHECK_PROG(have_perl, "perl", yes, no)
193
194 build_perl=$have_perl
195
196 AC_ARG_ENABLE([perl],
197 [AS_HELP_STRING([--disable-perl],
198 [do not build perl binding])],
199 [build_perl=no], [build_perl=$have_perl])
200
201 AC_ARG_WITH(perl-sitelib-dir,
202 [AS_HELP_STRING([--with-perl-sitelib-dir=PATH],
203 [path to perl site lib])])
204
205 if test "$have_perl" = "yes"; then
206 PE_PREFIX=`(perl -e 'use Config; print $Config{archlib};')`
207 AC_MSG_CHECKING(for $PE_PREFIX/CORE/perl.h)
208 if test -f $PE_PREFIX/CORE/perl.h; then
209 AC_MSG_RESULT(yes)
210 PE_CFLAGS="-I$PE_PREFIX/CORE "
211 PE_CFLAGS=$PE_CFLAGS`(perl -e 'use Config; print $Config{cppflags};')`
212
213 if test "$with_perl_sitelib_dir" = "" ; then
214 PE_MODULES_PATH=`(perl -e 'use Config; print $Config{sitelib};')`
215 else
216 PE_MODULES_PATH=$with_perl_sitelib_dir
217 fi
218
219 AC_SUBST([PE_CFLAGS])
220 AC_SUBST([PE_MODULES_PATH])
221 if test "x$have_swig" = "xno"; then
222 build_perl=no
223 fi
224 else
225 AC_MSG_RESULT(no)
226 build_perl=no
227 fi
228 fi
229
230 AM_CONDITIONAL(WITH_PERL, test "$build_perl" = "yes")
231
232 dnl =======================================================================================
233
234 dnl gettext
235
236 dnl Languages which your application supports
237 ALL_LINGUAS="he es_MX ru fr sv"
238 AM_GNU_GETTEXT([external])
239 AM_GNU_GETTEXT_VERSION([0.17])
240
241 if test "$DATADIRNAME" = ""; then
242 DATADIRNAME="share"
243 AC_SUBST(DATADIRNAME)
244 fi
245
246 if test "${prefix}" = "NONE"; then
247 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
248 else
249 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
250 fi
251
252 dnl =======================================================================================
253
254 build_hcal=yes
255
256 AC_ARG_ENABLE([hcal],
257 [AS_HELP_STRING([--disable-hcal],
258 [do not build hcal/hdate utility programs])],
259 [build_hcal=no], [build_hcal=yes])
260
261 AM_CONDITIONAL(WITH_HCAL, test "$build_hcal" = "yes")
262
263 dnl =======================================================================================
264
265 AC_SUBST(CFLAGS)
266 AC_SUBST(LIBS)
267
268 dnl =======================================================================================
269
270 AC_OUTPUT([
271 Makefile
272 libhdate.pc
273 po/Makefile.in
274 docs/Makefile
275 docs/man/Makefile
276 docs/man/man1/Makefile
277 docs/man/man3/Makefile
278 src/Makefile
279 examples/Makefile
280 examples/hcal/Makefile
281 examples/bindings/Makefile
282 examples/bindings/pascal/Makefile
283 bindings/Makefile
284 bindings/python/Makefile
285 bindings/perl/Makefile
286 bindings/pascal/Makefile
287 bindings/ruby/Makefile
288 bindings/php/Makefile
289 ])
290
291 dnl ===========================================================================================
292
293 echo $sysconfdir
294
295 echo "
296 $PACKAGE-$VERSION
297
298 prefix: ${prefix}
299 compiler: ${CC}
300
301 have swig ${have_swig}
302 have free pascal ${have_pascal}
303 have python ${have_python}
304 have perl ${have_perl}
305 have ruby ${have_ruby}
306 have php ${have_php} php-dev ${have_php_config}
307
308 build hcal ${build_hcal}
309
310 build python binding ${build_python}
311 build perl binding ${build_perl}
312 puild pascal binding ${build_pascal}
313 puild ruby binding ${build_ruby}
314 puild php binding ${build_php}
315
316 perl site lib path: $PE_MODULES_PATH
317 python site lib path: $PY_MODULES_PATH
318 pascal site lib path: $PA_MODULES_PATH
319 ruby site lib path: $RU_MODULES_PATH
320 php site lib path: $PH_MODULES_PATH
321 php config path: $PH_CONFIG_PATH
322 "
+0
-530
current/depcomp less more
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2005-07-09.11
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
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, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU 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., 51 Franklin Street, Fifth Floor, Boston, MA
20 # 02110-1301, USA.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
28
29 case $1 in
30 '')
31 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
32 exit 1;
33 ;;
34 -h | --h*)
35 cat <<\EOF
36 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
37
38 Run PROGRAMS ARGS to compile a file, generating dependencies
39 as side-effects.
40
41 Environment variables:
42 depmode Dependency tracking mode.
43 source Source file read by `PROGRAMS ARGS'.
44 object Object file output by `PROGRAMS ARGS'.
45 DEPDIR directory where to store dependencies.
46 depfile Dependency file to output.
47 tmpdepfile Temporary file to use when outputing dependencies.
48 libtool Whether libtool is used (yes/no).
49
50 Report bugs to <bug-automake@gnu.org>.
51 EOF
52 exit $?
53 ;;
54 -v | --v*)
55 echo "depcomp $scriptversion"
56 exit $?
57 ;;
58 esac
59
60 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
61 echo "depcomp: Variables source, object and depmode must be set" 1>&2
62 exit 1
63 fi
64
65 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
66 depfile=${depfile-`echo "$object" |
67 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
68 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
69
70 rm -f "$tmpdepfile"
71
72 # Some modes work just like other modes, but use different flags. We
73 # parameterize here, but still list the modes in the big case below,
74 # to make depend.m4 easier to write. Note that we *cannot* use a case
75 # here, because this file can only contain one case statement.
76 if test "$depmode" = hp; then
77 # HP compiler uses -M and no extra arg.
78 gccflag=-M
79 depmode=gcc
80 fi
81
82 if test "$depmode" = dashXmstdout; then
83 # This is just like dashmstdout with a different argument.
84 dashmflag=-xM
85 depmode=dashmstdout
86 fi
87
88 case "$depmode" in
89 gcc3)
90 ## gcc 3 implements dependency tracking that does exactly what
91 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
92 ## it if -MD -MP comes after the -MF stuff. Hmm.
93 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
94 stat=$?
95 if test $stat -eq 0; then :
96 else
97 rm -f "$tmpdepfile"
98 exit $stat
99 fi
100 mv "$tmpdepfile" "$depfile"
101 ;;
102
103 gcc)
104 ## There are various ways to get dependency output from gcc. Here's
105 ## why we pick this rather obscure method:
106 ## - Don't want to use -MD because we'd like the dependencies to end
107 ## up in a subdir. Having to rename by hand is ugly.
108 ## (We might end up doing this anyway to support other compilers.)
109 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
110 ## -MM, not -M (despite what the docs say).
111 ## - Using -M directly means running the compiler twice (even worse
112 ## than renaming).
113 if test -z "$gccflag"; then
114 gccflag=-MD,
115 fi
116 "$@" -Wp,"$gccflag$tmpdepfile"
117 stat=$?
118 if test $stat -eq 0; then :
119 else
120 rm -f "$tmpdepfile"
121 exit $stat
122 fi
123 rm -f "$depfile"
124 echo "$object : \\" > "$depfile"
125 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
126 ## The second -e expression handles DOS-style file names with drive letters.
127 sed -e 's/^[^:]*: / /' \
128 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
129 ## This next piece of magic avoids the `deleted header file' problem.
130 ## The problem is that when a header file which appears in a .P file
131 ## is deleted, the dependency causes make to die (because there is
132 ## typically no way to rebuild the header). We avoid this by adding
133 ## dummy dependencies for each header file. Too bad gcc doesn't do
134 ## this for us directly.
135 tr ' ' '
136 ' < "$tmpdepfile" |
137 ## Some versions of gcc put a space before the `:'. On the theory
138 ## that the space means something, we add a space to the output as
139 ## well.
140 ## Some versions of the HPUX 10.20 sed can't process this invocation
141 ## correctly. Breaking it into two sed invocations is a workaround.
142 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
143 rm -f "$tmpdepfile"
144 ;;
145
146 hp)
147 # This case exists only to let depend.m4 do its work. It works by
148 # looking at the text of this script. This case will never be run,
149 # since it is checked for above.
150 exit 1
151 ;;
152
153 sgi)
154 if test "$libtool" = yes; then
155 "$@" "-Wp,-MDupdate,$tmpdepfile"
156 else
157 "$@" -MDupdate "$tmpdepfile"
158 fi
159 stat=$?
160 if test $stat -eq 0; then :
161 else
162 rm -f "$tmpdepfile"
163 exit $stat
164 fi
165 rm -f "$depfile"
166
167 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
168 echo "$object : \\" > "$depfile"
169
170 # Clip off the initial element (the dependent). Don't try to be
171 # clever and replace this with sed code, as IRIX sed won't handle
172 # lines with more than a fixed number of characters (4096 in
173 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
174 # the IRIX cc adds comments like `#:fec' to the end of the
175 # dependency line.
176 tr ' ' '
177 ' < "$tmpdepfile" \
178 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
179 tr '
180 ' ' ' >> $depfile
181 echo >> $depfile
182
183 # The second pass generates a dummy entry for each header file.
184 tr ' ' '
185 ' < "$tmpdepfile" \
186 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
187 >> $depfile
188 else
189 # The sourcefile does not contain any dependencies, so just
190 # store a dummy comment line, to avoid errors with the Makefile
191 # "include basename.Plo" scheme.
192 echo "#dummy" > "$depfile"
193 fi
194 rm -f "$tmpdepfile"
195 ;;
196
197 aix)
198 # The C for AIX Compiler uses -M and outputs the dependencies
199 # in a .u file. In older versions, this file always lives in the
200 # current directory. Also, the AIX compiler puts `$object:' at the
201 # start of each line; $object doesn't have directory information.
202 # Version 6 uses the directory in both cases.
203 stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
204 tmpdepfile="$stripped.u"
205 if test "$libtool" = yes; then
206 "$@" -Wc,-M
207 else
208 "$@" -M
209 fi
210 stat=$?
211
212 if test -f "$tmpdepfile"; then :
213 else
214 stripped=`echo "$stripped" | sed 's,^.*/,,'`
215 tmpdepfile="$stripped.u"
216 fi
217
218 if test $stat -eq 0; then :
219 else
220 rm -f "$tmpdepfile"
221 exit $stat
222 fi
223
224 if test -f "$tmpdepfile"; then
225 outname="$stripped.o"
226 # Each line is of the form `foo.o: dependent.h'.
227 # Do two passes, one to just change these to
228 # `$object: dependent.h' and one to simply `dependent.h:'.
229 sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
230 sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
231 else
232 # The sourcefile does not contain any dependencies, so just
233 # store a dummy comment line, to avoid errors with the Makefile
234 # "include basename.Plo" scheme.
235 echo "#dummy" > "$depfile"
236 fi
237 rm -f "$tmpdepfile"
238 ;;
239
240 icc)
241 # Intel's C compiler understands `-MD -MF file'. However on
242 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
243 # ICC 7.0 will fill foo.d with something like
244 # foo.o: sub/foo.c
245 # foo.o: sub/foo.h
246 # which is wrong. We want:
247 # sub/foo.o: sub/foo.c
248 # sub/foo.o: sub/foo.h
249 # sub/foo.c:
250 # sub/foo.h:
251 # ICC 7.1 will output
252 # foo.o: sub/foo.c sub/foo.h
253 # and will wrap long lines using \ :
254 # foo.o: sub/foo.c ... \
255 # sub/foo.h ... \
256 # ...
257
258 "$@" -MD -MF "$tmpdepfile"
259 stat=$?
260 if test $stat -eq 0; then :
261 else
262 rm -f "$tmpdepfile"
263 exit $stat
264 fi
265 rm -f "$depfile"
266 # Each line is of the form `foo.o: dependent.h',
267 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
268 # Do two passes, one to just change these to
269 # `$object: dependent.h' and one to simply `dependent.h:'.
270 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
271 # Some versions of the HPUX 10.20 sed can't process this invocation
272 # correctly. Breaking it into two sed invocations is a workaround.
273 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
274 sed -e 's/$/ :/' >> "$depfile"
275 rm -f "$tmpdepfile"
276 ;;
277
278 tru64)
279 # The Tru64 compiler uses -MD to generate dependencies as a side
280 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
281 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
282 # dependencies in `foo.d' instead, so we check for that too.
283 # Subdirectories are respected.
284 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
285 test "x$dir" = "x$object" && dir=
286 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
287
288 if test "$libtool" = yes; then
289 # With Tru64 cc, shared objects can also be used to make a
290 # static library. This mecanism is used in libtool 1.4 series to
291 # handle both shared and static libraries in a single compilation.
292 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
293 #
294 # With libtool 1.5 this exception was removed, and libtool now
295 # generates 2 separate objects for the 2 libraries. These two
296 # compilations output dependencies in in $dir.libs/$base.o.d and
297 # in $dir$base.o.d. We have to check for both files, because
298 # one of the two compilations can be disabled. We should prefer
299 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
300 # automatically cleaned when .libs/ is deleted, while ignoring
301 # the former would cause a distcleancheck panic.
302 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
303 tmpdepfile2=$dir$base.o.d # libtool 1.5
304 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
305 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
306 "$@" -Wc,-MD
307 else
308 tmpdepfile1=$dir$base.o.d
309 tmpdepfile2=$dir$base.d
310 tmpdepfile3=$dir$base.d
311 tmpdepfile4=$dir$base.d
312 "$@" -MD
313 fi
314
315 stat=$?
316 if test $stat -eq 0; then :
317 else
318 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
319 exit $stat
320 fi
321
322 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
323 do
324 test -f "$tmpdepfile" && break
325 done
326 if test -f "$tmpdepfile"; then
327 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
328 # That's a tab and a space in the [].
329 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
330 else
331 echo "#dummy" > "$depfile"
332 fi
333 rm -f "$tmpdepfile"
334 ;;
335
336 #nosideeffect)
337 # This comment above is used by automake to tell side-effect
338 # dependency tracking mechanisms from slower ones.
339
340 dashmstdout)
341 # Important note: in order to support this mode, a compiler *must*
342 # always write the preprocessed file to stdout, regardless of -o.
343 "$@" || exit $?
344
345 # Remove the call to Libtool.
346 if test "$libtool" = yes; then
347 while test $1 != '--mode=compile'; do
348 shift
349 done
350 shift
351 fi
352
353 # Remove `-o $object'.
354 IFS=" "
355 for arg
356 do
357 case $arg in
358 -o)
359 shift
360 ;;
361 $object)
362 shift
363 ;;
364 *)
365 set fnord "$@" "$arg"
366 shift # fnord
367 shift # $arg
368 ;;
369 esac
370 done
371
372 test -z "$dashmflag" && dashmflag=-M
373 # Require at least two characters before searching for `:'
374 # in the target name. This is to cope with DOS-style filenames:
375 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
376 "$@" $dashmflag |
377 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
378 rm -f "$depfile"
379 cat < "$tmpdepfile" > "$depfile"
380 tr ' ' '
381 ' < "$tmpdepfile" | \
382 ## Some versions of the HPUX 10.20 sed can't process this invocation
383 ## correctly. Breaking it into two sed invocations is a workaround.
384 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
385 rm -f "$tmpdepfile"
386 ;;
387
388 dashXmstdout)
389 # This case only exists to satisfy depend.m4. It is never actually
390 # run, as this mode is specially recognized in the preamble.
391 exit 1
392 ;;
393
394 makedepend)
395 "$@" || exit $?
396 # Remove any Libtool call
397 if test "$libtool" = yes; then
398 while test $1 != '--mode=compile'; do
399 shift
400 done
401 shift
402 fi
403 # X makedepend
404 shift
405 cleared=no
406 for arg in "$@"; do
407 case $cleared in
408 no)
409 set ""; shift
410 cleared=yes ;;
411 esac
412 case "$arg" in
413 -D*|-I*)
414 set fnord "$@" "$arg"; shift ;;
415 # Strip any option that makedepend may not understand. Remove
416 # the object too, otherwise makedepend will parse it as a source file.
417 -*|$object)
418 ;;
419 *)
420 set fnord "$@" "$arg"; shift ;;
421 esac
422 done
423 obj_suffix="`echo $object | sed 's/^.*\././'`"
424 touch "$tmpdepfile"
425 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
426 rm -f "$depfile"
427 cat < "$tmpdepfile" > "$depfile"
428 sed '1,2d' "$tmpdepfile" | tr ' ' '
429 ' | \
430 ## Some versions of the HPUX 10.20 sed can't process this invocation
431 ## correctly. Breaking it into two sed invocations is a workaround.
432 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
433 rm -f "$tmpdepfile" "$tmpdepfile".bak
434 ;;
435
436 cpp)
437 # Important note: in order to support this mode, a compiler *must*
438 # always write the preprocessed file to stdout.
439 "$@" || exit $?
440
441 # Remove the call to Libtool.
442 if test "$libtool" = yes; then
443 while test $1 != '--mode=compile'; do
444 shift
445 done
446 shift
447 fi
448
449 # Remove `-o $object'.
450 IFS=" "
451 for arg
452 do
453 case $arg in
454 -o)
455 shift
456 ;;
457 $object)
458 shift
459 ;;
460 *)
461 set fnord "$@" "$arg"
462 shift # fnord
463 shift # $arg
464 ;;
465 esac
466 done
467
468 "$@" -E |
469 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
470 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
471 sed '$ s: \\$::' > "$tmpdepfile"
472 rm -f "$depfile"
473 echo "$object : \\" > "$depfile"
474 cat < "$tmpdepfile" >> "$depfile"
475 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
476 rm -f "$tmpdepfile"
477 ;;
478
479 msvisualcpp)
480 # Important note: in order to support this mode, a compiler *must*
481 # always write the preprocessed file to stdout, regardless of -o,
482 # because we must use -o when running libtool.
483 "$@" || exit $?
484 IFS=" "
485 for arg
486 do
487 case "$arg" in
488 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
489 set fnord "$@"
490 shift
491 shift
492 ;;
493 *)
494 set fnord "$@" "$arg"
495 shift
496 shift
497 ;;
498 esac
499 done
500 "$@" -E |
501 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
502 rm -f "$depfile"
503 echo "$object : \\" > "$depfile"
504 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
505 echo " " >> "$depfile"
506 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
507 rm -f "$tmpdepfile"
508 ;;
509
510 none)
511 exec "$@"
512 ;;
513
514 *)
515 echo "Unknown depmode $depmode" 1>&2
516 exit 1
517 ;;
518 esac
519
520 exit 0
521
522 # Local Variables:
523 # mode: shell-script
524 # sh-indentation: 2
525 # eval: (add-hook 'write-file-hooks 'time-stamp)
526 # time-stamp-start: "scriptversion="
527 # time-stamp-format: "%:y-%02m-%02d.%02H"
528 # time-stamp-end: "$"
529 # End:
+0
-2
current/docs/Makefile.am less more
0 SUBDIRS = man
1
+0
-530
current/docs/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = docs
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
53 html-recursive info-recursive install-data-recursive \
54 install-exec-recursive install-info-recursive \
55 install-recursive installcheck-recursive installdirs-recursive \
56 pdf-recursive ps-recursive uninstall-info-recursive \
57 uninstall-recursive
58 ETAGS = etags
59 CTAGS = ctags
60 DIST_SUBDIRS = $(SUBDIRS)
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMDEP_FALSE = @AMDEP_FALSE@
64 AMDEP_TRUE = @AMDEP_TRUE@
65 AMTAR = @AMTAR@
66 AR = @AR@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 CPP = @CPP@
75 CPPFLAGS = @CPPFLAGS@
76 CXX = @CXX@
77 CXXCPP = @CXXCPP@
78 CXXDEPMODE = @CXXDEPMODE@
79 CXXFLAGS = @CXXFLAGS@
80 CYGPATH_W = @CYGPATH_W@
81 DATADIRNAME = @DATADIRNAME@
82 DEFS = @DEFS@
83 DEPDIR = @DEPDIR@
84 ECHO = @ECHO@
85 ECHO_C = @ECHO_C@
86 ECHO_N = @ECHO_N@
87 ECHO_T = @ECHO_T@
88 EGREP = @EGREP@
89 EXEEXT = @EXEEXT@
90 F77 = @F77@
91 FFLAGS = @FFLAGS@
92 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
93 GMSGFMT = @GMSGFMT@
94 GMSGFMT_015 = @GMSGFMT_015@
95 GREP = @GREP@
96 INSTALL_DATA = @INSTALL_DATA@
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
98 INSTALL_SCRIPT = @INSTALL_SCRIPT@
99 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
100 INTLLIBS = @INTLLIBS@
101 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
102 LDFLAGS = @LDFLAGS@
103 LIBICONV = @LIBICONV@
104 LIBINTL = @LIBINTL@
105 LIBOBJS = @LIBOBJS@
106 LIBS = @LIBS@
107 LIBTOOL = @LIBTOOL@
108 LN_S = @LN_S@
109 LTLIBICONV = @LTLIBICONV@
110 LTLIBINTL = @LTLIBINTL@
111 LTLIBOBJS = @LTLIBOBJS@
112 MAINT = @MAINT@
113 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
114 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
115 MAKEINFO = @MAKEINFO@
116 MSGFMT = @MSGFMT@
117 MSGFMT_015 = @MSGFMT_015@
118 MSGMERGE = @MSGMERGE@
119 OBJEXT = @OBJEXT@
120 PACKAGE = @PACKAGE@
121 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
122 PACKAGE_NAME = @PACKAGE_NAME@
123 PACKAGE_STRING = @PACKAGE_STRING@
124 PACKAGE_TARNAME = @PACKAGE_TARNAME@
125 PACKAGE_VERSION = @PACKAGE_VERSION@
126 PATH_SEPARATOR = @PATH_SEPARATOR@
127 PA_MODULES_PATH = @PA_MODULES_PATH@
128 PA_VERSION = @PA_VERSION@
129 PE_CFLAGS = @PE_CFLAGS@
130 PE_MODULES_PATH = @PE_MODULES_PATH@
131 PH_CONFIG_PATH = @PH_CONFIG_PATH@
132 PH_MODULES_PATH = @PH_MODULES_PATH@
133 PKG_CONFIG = @PKG_CONFIG@
134 POSUB = @POSUB@
135 PY_CFLAGS = @PY_CFLAGS@
136 PY_MODULES_PATH = @PY_MODULES_PATH@
137 PY_VERSION = @PY_VERSION@
138 RANLIB = @RANLIB@
139 RU_CFLAGS = @RU_CFLAGS@
140 RU_MODULES_PATH = @RU_MODULES_PATH@
141 RU_VERSION = @RU_VERSION@
142 SED = @SED@
143 SET_MAKE = @SET_MAKE@
144 SHELL = @SHELL@
145 STRIP = @STRIP@
146 USE_NLS = @USE_NLS@
147 VERSION = @VERSION@
148 VERSION_INFO = @VERSION_INFO@
149 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
150 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
151 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
152 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
153 WITH_PERL_FALSE = @WITH_PERL_FALSE@
154 WITH_PERL_TRUE = @WITH_PERL_TRUE@
155 WITH_PHP_FALSE = @WITH_PHP_FALSE@
156 WITH_PHP_TRUE = @WITH_PHP_TRUE@
157 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
158 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
159 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
160 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
161 XGETTEXT = @XGETTEXT@
162 XGETTEXT_015 = @XGETTEXT_015@
163 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
164 ac_ct_CC = @ac_ct_CC@
165 ac_ct_CXX = @ac_ct_CXX@
166 ac_ct_F77 = @ac_ct_F77@
167 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
168 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
169 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
170 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
171 am__include = @am__include@
172 am__leading_dot = @am__leading_dot@
173 am__quote = @am__quote@
174 am__tar = @am__tar@
175 am__untar = @am__untar@
176 bindir = @bindir@
177 build = @build@
178 build_alias = @build_alias@
179 build_cpu = @build_cpu@
180 build_os = @build_os@
181 build_vendor = @build_vendor@
182 datadir = @datadir@
183 datarootdir = @datarootdir@
184 docdir = @docdir@
185 dvidir = @dvidir@
186 exec_prefix = @exec_prefix@
187 have_pascal = @have_pascal@
188 have_perl = @have_perl@
189 have_php = @have_php@
190 have_php_config = @have_php_config@
191 have_python = @have_python@
192 have_ruby = @have_ruby@
193 have_swig = @have_swig@
194 host = @host@
195 host_alias = @host_alias@
196 host_cpu = @host_cpu@
197 host_os = @host_os@
198 host_vendor = @host_vendor@
199 htmldir = @htmldir@
200 includedir = @includedir@
201 infodir = @infodir@
202 install_sh = @install_sh@
203 libdir = @libdir@
204 libexecdir = @libexecdir@
205 localedir = @localedir@
206 localstatedir = @localstatedir@
207 mandir = @mandir@
208 mkdir_p = @mkdir_p@
209 oldincludedir = @oldincludedir@
210 pdfdir = @pdfdir@
211 prefix = @prefix@
212 program_transform_name = @program_transform_name@
213 psdir = @psdir@
214 sbindir = @sbindir@
215 sharedstatedir = @sharedstatedir@
216 sysconfdir = @sysconfdir@
217 target_alias = @target_alias@
218 SUBDIRS = man
219 all: all-recursive
220
221 .SUFFIXES:
222 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
223 @for dep in $?; do \
224 case '$(am__configure_deps)' in \
225 *$$dep*) \
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
227 && exit 0; \
228 exit 1;; \
229 esac; \
230 done; \
231 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
232 cd $(top_srcdir) && \
233 $(AUTOMAKE) --gnu docs/Makefile
234 .PRECIOUS: Makefile
235 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
236 @case '$?' in \
237 *config.status*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
239 *) \
240 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
241 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
242 esac;
243
244 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
246
247 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
251
252 mostlyclean-libtool:
253 -rm -f *.lo
254
255 clean-libtool:
256 -rm -rf .libs _libs
257
258 distclean-libtool:
259 -rm -f libtool
260 uninstall-info-am:
261
262 # This directory's subdirectories are mostly independent; you can cd
263 # into them and run `make' without going through this Makefile.
264 # To change the values of `make' variables: instead of editing Makefiles,
265 # (1) if the variable is set in `config.status', edit `config.status'
266 # (which will cause the Makefiles to be regenerated when you run `make');
267 # (2) otherwise, pass the desired values on the `make' command line.
268 $(RECURSIVE_TARGETS):
269 @failcom='exit 1'; \
270 for f in x $$MAKEFLAGS; do \
271 case $$f in \
272 *=* | --[!k]*);; \
273 *k*) failcom='fail=yes';; \
274 esac; \
275 done; \
276 dot_seen=no; \
277 target=`echo $@ | sed s/-recursive//`; \
278 list='$(SUBDIRS)'; for subdir in $$list; do \
279 echo "Making $$target in $$subdir"; \
280 if test "$$subdir" = "."; then \
281 dot_seen=yes; \
282 local_target="$$target-am"; \
283 else \
284 local_target="$$target"; \
285 fi; \
286 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
287 || eval $$failcom; \
288 done; \
289 if test "$$dot_seen" = "no"; then \
290 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
291 fi; test -z "$$fail"
292
293 mostlyclean-recursive clean-recursive distclean-recursive \
294 maintainer-clean-recursive:
295 @failcom='exit 1'; \
296 for f in x $$MAKEFLAGS; do \
297 case $$f in \
298 *=* | --[!k]*);; \
299 *k*) failcom='fail=yes';; \
300 esac; \
301 done; \
302 dot_seen=no; \
303 case "$@" in \
304 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
305 *) list='$(SUBDIRS)' ;; \
306 esac; \
307 rev=''; for subdir in $$list; do \
308 if test "$$subdir" = "."; then :; else \
309 rev="$$subdir $$rev"; \
310 fi; \
311 done; \
312 rev="$$rev ."; \
313 target=`echo $@ | sed s/-recursive//`; \
314 for subdir in $$rev; do \
315 echo "Making $$target in $$subdir"; \
316 if test "$$subdir" = "."; then \
317 local_target="$$target-am"; \
318 else \
319 local_target="$$target"; \
320 fi; \
321 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
322 || eval $$failcom; \
323 done && test -z "$$fail"
324 tags-recursive:
325 list='$(SUBDIRS)'; for subdir in $$list; do \
326 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
327 done
328 ctags-recursive:
329 list='$(SUBDIRS)'; for subdir in $$list; do \
330 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
331 done
332
333 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) ' { files[$$0] = 1; } \
339 END { for (i in files) print i; }'`; \
340 mkid -fID $$unique
341 tags: TAGS
342
343 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
348 include_option=--etags-include; \
349 empty_fix=.; \
350 else \
351 include_option=--include; \
352 empty_fix=; \
353 fi; \
354 list='$(SUBDIRS)'; for subdir in $$list; do \
355 if test "$$subdir" = .; then :; else \
356 test ! -f $$subdir/TAGS || \
357 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
358 fi; \
359 done; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) ' { files[$$0] = 1; } \
365 END { for (i in files) print i; }'`; \
366 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
367 test -n "$$unique" || unique=$$empty_fix; \
368 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
369 $$tags $$unique; \
370 fi
371 ctags: CTAGS
372 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
373 $(TAGS_FILES) $(LISP)
374 tags=; \
375 here=`pwd`; \
376 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
377 unique=`for i in $$list; do \
378 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379 done | \
380 $(AWK) ' { files[$$0] = 1; } \
381 END { for (i in files) print i; }'`; \
382 test -z "$(CTAGS_ARGS)$$tags$$unique" \
383 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
384 $$tags $$unique
385
386 GTAGS:
387 here=`$(am__cd) $(top_builddir) && pwd` \
388 && cd $(top_srcdir) \
389 && gtags -i $(GTAGS_ARGS) $$here
390
391 distclean-tags:
392 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
393
394 distdir: $(DISTFILES)
395 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
396 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
397 list='$(DISTFILES)'; for file in $$list; do \
398 case $$file in \
399 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
400 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
401 esac; \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
404 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
405 dir="/$$dir"; \
406 $(mkdir_p) "$(distdir)$$dir"; \
407 else \
408 dir=''; \
409 fi; \
410 if test -d $$d/$$file; then \
411 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
412 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
413 fi; \
414 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
415 else \
416 test -f $(distdir)/$$file \
417 || cp -p $$d/$$file $(distdir)/$$file \
418 || exit 1; \
419 fi; \
420 done
421 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
422 if test "$$subdir" = .; then :; else \
423 test -d "$(distdir)/$$subdir" \
424 || $(mkdir_p) "$(distdir)/$$subdir" \
425 || exit 1; \
426 distdir=`$(am__cd) $(distdir) && pwd`; \
427 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
428 (cd $$subdir && \
429 $(MAKE) $(AM_MAKEFLAGS) \
430 top_distdir="$$top_distdir" \
431 distdir="$$distdir/$$subdir" \
432 distdir) \
433 || exit 1; \
434 fi; \
435 done
436 check-am: all-am
437 check: check-recursive
438 all-am: Makefile
439 installdirs: installdirs-recursive
440 installdirs-am:
441 install: install-recursive
442 install-exec: install-exec-recursive
443 install-data: install-data-recursive
444 uninstall: uninstall-recursive
445
446 install-am: all-am
447 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
448
449 installcheck: installcheck-recursive
450 install-strip:
451 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
452 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
453 `test -z '$(STRIP)' || \
454 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
455 mostlyclean-generic:
456
457 clean-generic:
458
459 distclean-generic:
460 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
461
462 maintainer-clean-generic:
463 @echo "This command is intended for maintainers to use"
464 @echo "it deletes files that may require special tools to rebuild."
465 clean: clean-recursive
466
467 clean-am: clean-generic clean-libtool mostlyclean-am
468
469 distclean: distclean-recursive
470 -rm -f Makefile
471 distclean-am: clean-am distclean-generic distclean-libtool \
472 distclean-tags
473
474 dvi: dvi-recursive
475
476 dvi-am:
477
478 html: html-recursive
479
480 info: info-recursive
481
482 info-am:
483
484 install-data-am:
485
486 install-exec-am:
487
488 install-info: install-info-recursive
489
490 install-man:
491
492 installcheck-am:
493
494 maintainer-clean: maintainer-clean-recursive
495 -rm -f Makefile
496 maintainer-clean-am: distclean-am maintainer-clean-generic
497
498 mostlyclean: mostlyclean-recursive
499
500 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
501
502 pdf: pdf-recursive
503
504 pdf-am:
505
506 ps: ps-recursive
507
508 ps-am:
509
510 uninstall-am: uninstall-info-am
511
512 uninstall-info: uninstall-info-recursive
513
514 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
515 clean clean-generic clean-libtool clean-recursive ctags \
516 ctags-recursive distclean distclean-generic distclean-libtool \
517 distclean-recursive distclean-tags distdir dvi dvi-am html \
518 html-am info info-am install install-am install-data \
519 install-data-am install-exec install-exec-am install-info \
520 install-info-am install-man install-strip installcheck \
521 installcheck-am installdirs installdirs-am maintainer-clean \
522 maintainer-clean-generic maintainer-clean-recursive \
523 mostlyclean mostlyclean-generic mostlyclean-libtool \
524 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
525 uninstall uninstall-am uninstall-info-am
526
527 # Tell versions [3.59,3.63) of GNU make to not export all variables.
528 # Otherwise a system limit (for SysV at least) may be exceeded.
529 .NOEXPORT:
+0
-2
current/docs/man/Makefile.am less more
0 SUBDIRS = man1 man3
1
+0
-530
current/docs/man/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = docs/man
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
53 html-recursive info-recursive install-data-recursive \
54 install-exec-recursive install-info-recursive \
55 install-recursive installcheck-recursive installdirs-recursive \
56 pdf-recursive ps-recursive uninstall-info-recursive \
57 uninstall-recursive
58 ETAGS = etags
59 CTAGS = ctags
60 DIST_SUBDIRS = $(SUBDIRS)
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMDEP_FALSE = @AMDEP_FALSE@
64 AMDEP_TRUE = @AMDEP_TRUE@
65 AMTAR = @AMTAR@
66 AR = @AR@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 CPP = @CPP@
75 CPPFLAGS = @CPPFLAGS@
76 CXX = @CXX@
77 CXXCPP = @CXXCPP@
78 CXXDEPMODE = @CXXDEPMODE@
79 CXXFLAGS = @CXXFLAGS@
80 CYGPATH_W = @CYGPATH_W@
81 DATADIRNAME = @DATADIRNAME@
82 DEFS = @DEFS@
83 DEPDIR = @DEPDIR@
84 ECHO = @ECHO@
85 ECHO_C = @ECHO_C@
86 ECHO_N = @ECHO_N@
87 ECHO_T = @ECHO_T@
88 EGREP = @EGREP@
89 EXEEXT = @EXEEXT@
90 F77 = @F77@
91 FFLAGS = @FFLAGS@
92 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
93 GMSGFMT = @GMSGFMT@
94 GMSGFMT_015 = @GMSGFMT_015@
95 GREP = @GREP@
96 INSTALL_DATA = @INSTALL_DATA@
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
98 INSTALL_SCRIPT = @INSTALL_SCRIPT@
99 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
100 INTLLIBS = @INTLLIBS@
101 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
102 LDFLAGS = @LDFLAGS@
103 LIBICONV = @LIBICONV@
104 LIBINTL = @LIBINTL@
105 LIBOBJS = @LIBOBJS@
106 LIBS = @LIBS@
107 LIBTOOL = @LIBTOOL@
108 LN_S = @LN_S@
109 LTLIBICONV = @LTLIBICONV@
110 LTLIBINTL = @LTLIBINTL@
111 LTLIBOBJS = @LTLIBOBJS@
112 MAINT = @MAINT@
113 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
114 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
115 MAKEINFO = @MAKEINFO@
116 MSGFMT = @MSGFMT@
117 MSGFMT_015 = @MSGFMT_015@
118 MSGMERGE = @MSGMERGE@
119 OBJEXT = @OBJEXT@
120 PACKAGE = @PACKAGE@
121 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
122 PACKAGE_NAME = @PACKAGE_NAME@
123 PACKAGE_STRING = @PACKAGE_STRING@
124 PACKAGE_TARNAME = @PACKAGE_TARNAME@
125 PACKAGE_VERSION = @PACKAGE_VERSION@
126 PATH_SEPARATOR = @PATH_SEPARATOR@
127 PA_MODULES_PATH = @PA_MODULES_PATH@
128 PA_VERSION = @PA_VERSION@
129 PE_CFLAGS = @PE_CFLAGS@
130 PE_MODULES_PATH = @PE_MODULES_PATH@
131 PH_CONFIG_PATH = @PH_CONFIG_PATH@
132 PH_MODULES_PATH = @PH_MODULES_PATH@
133 PKG_CONFIG = @PKG_CONFIG@
134 POSUB = @POSUB@
135 PY_CFLAGS = @PY_CFLAGS@
136 PY_MODULES_PATH = @PY_MODULES_PATH@
137 PY_VERSION = @PY_VERSION@
138 RANLIB = @RANLIB@
139 RU_CFLAGS = @RU_CFLAGS@
140 RU_MODULES_PATH = @RU_MODULES_PATH@
141 RU_VERSION = @RU_VERSION@
142 SED = @SED@
143 SET_MAKE = @SET_MAKE@
144 SHELL = @SHELL@
145 STRIP = @STRIP@
146 USE_NLS = @USE_NLS@
147 VERSION = @VERSION@
148 VERSION_INFO = @VERSION_INFO@
149 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
150 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
151 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
152 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
153 WITH_PERL_FALSE = @WITH_PERL_FALSE@
154 WITH_PERL_TRUE = @WITH_PERL_TRUE@
155 WITH_PHP_FALSE = @WITH_PHP_FALSE@
156 WITH_PHP_TRUE = @WITH_PHP_TRUE@
157 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
158 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
159 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
160 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
161 XGETTEXT = @XGETTEXT@
162 XGETTEXT_015 = @XGETTEXT_015@
163 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
164 ac_ct_CC = @ac_ct_CC@
165 ac_ct_CXX = @ac_ct_CXX@
166 ac_ct_F77 = @ac_ct_F77@
167 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
168 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
169 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
170 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
171 am__include = @am__include@
172 am__leading_dot = @am__leading_dot@
173 am__quote = @am__quote@
174 am__tar = @am__tar@
175 am__untar = @am__untar@
176 bindir = @bindir@
177 build = @build@
178 build_alias = @build_alias@
179 build_cpu = @build_cpu@
180 build_os = @build_os@
181 build_vendor = @build_vendor@
182 datadir = @datadir@
183 datarootdir = @datarootdir@
184 docdir = @docdir@
185 dvidir = @dvidir@
186 exec_prefix = @exec_prefix@
187 have_pascal = @have_pascal@
188 have_perl = @have_perl@
189 have_php = @have_php@
190 have_php_config = @have_php_config@
191 have_python = @have_python@
192 have_ruby = @have_ruby@
193 have_swig = @have_swig@
194 host = @host@
195 host_alias = @host_alias@
196 host_cpu = @host_cpu@
197 host_os = @host_os@
198 host_vendor = @host_vendor@
199 htmldir = @htmldir@
200 includedir = @includedir@
201 infodir = @infodir@
202 install_sh = @install_sh@
203 libdir = @libdir@
204 libexecdir = @libexecdir@
205 localedir = @localedir@
206 localstatedir = @localstatedir@
207 mandir = @mandir@
208 mkdir_p = @mkdir_p@
209 oldincludedir = @oldincludedir@
210 pdfdir = @pdfdir@
211 prefix = @prefix@
212 program_transform_name = @program_transform_name@
213 psdir = @psdir@
214 sbindir = @sbindir@
215 sharedstatedir = @sharedstatedir@
216 sysconfdir = @sysconfdir@
217 target_alias = @target_alias@
218 SUBDIRS = man1 man3
219 all: all-recursive
220
221 .SUFFIXES:
222 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
223 @for dep in $?; do \
224 case '$(am__configure_deps)' in \
225 *$$dep*) \
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
227 && exit 0; \
228 exit 1;; \
229 esac; \
230 done; \
231 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/man/Makefile'; \
232 cd $(top_srcdir) && \
233 $(AUTOMAKE) --gnu docs/man/Makefile
234 .PRECIOUS: Makefile
235 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
236 @case '$?' in \
237 *config.status*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
239 *) \
240 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
241 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
242 esac;
243
244 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
246
247 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
251
252 mostlyclean-libtool:
253 -rm -f *.lo
254
255 clean-libtool:
256 -rm -rf .libs _libs
257
258 distclean-libtool:
259 -rm -f libtool
260 uninstall-info-am:
261
262 # This directory's subdirectories are mostly independent; you can cd
263 # into them and run `make' without going through this Makefile.
264 # To change the values of `make' variables: instead of editing Makefiles,
265 # (1) if the variable is set in `config.status', edit `config.status'
266 # (which will cause the Makefiles to be regenerated when you run `make');
267 # (2) otherwise, pass the desired values on the `make' command line.
268 $(RECURSIVE_TARGETS):
269 @failcom='exit 1'; \
270 for f in x $$MAKEFLAGS; do \
271 case $$f in \
272 *=* | --[!k]*);; \
273 *k*) failcom='fail=yes';; \
274 esac; \
275 done; \
276 dot_seen=no; \
277 target=`echo $@ | sed s/-recursive//`; \
278 list='$(SUBDIRS)'; for subdir in $$list; do \
279 echo "Making $$target in $$subdir"; \
280 if test "$$subdir" = "."; then \
281 dot_seen=yes; \
282 local_target="$$target-am"; \
283 else \
284 local_target="$$target"; \
285 fi; \
286 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
287 || eval $$failcom; \
288 done; \
289 if test "$$dot_seen" = "no"; then \
290 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
291 fi; test -z "$$fail"
292
293 mostlyclean-recursive clean-recursive distclean-recursive \
294 maintainer-clean-recursive:
295 @failcom='exit 1'; \
296 for f in x $$MAKEFLAGS; do \
297 case $$f in \
298 *=* | --[!k]*);; \
299 *k*) failcom='fail=yes';; \
300 esac; \
301 done; \
302 dot_seen=no; \
303 case "$@" in \
304 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
305 *) list='$(SUBDIRS)' ;; \
306 esac; \
307 rev=''; for subdir in $$list; do \
308 if test "$$subdir" = "."; then :; else \
309 rev="$$subdir $$rev"; \
310 fi; \
311 done; \
312 rev="$$rev ."; \
313 target=`echo $@ | sed s/-recursive//`; \
314 for subdir in $$rev; do \
315 echo "Making $$target in $$subdir"; \
316 if test "$$subdir" = "."; then \
317 local_target="$$target-am"; \
318 else \
319 local_target="$$target"; \
320 fi; \
321 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
322 || eval $$failcom; \
323 done && test -z "$$fail"
324 tags-recursive:
325 list='$(SUBDIRS)'; for subdir in $$list; do \
326 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
327 done
328 ctags-recursive:
329 list='$(SUBDIRS)'; for subdir in $$list; do \
330 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
331 done
332
333 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) ' { files[$$0] = 1; } \
339 END { for (i in files) print i; }'`; \
340 mkid -fID $$unique
341 tags: TAGS
342
343 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
348 include_option=--etags-include; \
349 empty_fix=.; \
350 else \
351 include_option=--include; \
352 empty_fix=; \
353 fi; \
354 list='$(SUBDIRS)'; for subdir in $$list; do \
355 if test "$$subdir" = .; then :; else \
356 test ! -f $$subdir/TAGS || \
357 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
358 fi; \
359 done; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) ' { files[$$0] = 1; } \
365 END { for (i in files) print i; }'`; \
366 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
367 test -n "$$unique" || unique=$$empty_fix; \
368 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
369 $$tags $$unique; \
370 fi
371 ctags: CTAGS
372 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
373 $(TAGS_FILES) $(LISP)
374 tags=; \
375 here=`pwd`; \
376 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
377 unique=`for i in $$list; do \
378 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379 done | \
380 $(AWK) ' { files[$$0] = 1; } \
381 END { for (i in files) print i; }'`; \
382 test -z "$(CTAGS_ARGS)$$tags$$unique" \
383 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
384 $$tags $$unique
385
386 GTAGS:
387 here=`$(am__cd) $(top_builddir) && pwd` \
388 && cd $(top_srcdir) \
389 && gtags -i $(GTAGS_ARGS) $$here
390
391 distclean-tags:
392 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
393
394 distdir: $(DISTFILES)
395 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
396 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
397 list='$(DISTFILES)'; for file in $$list; do \
398 case $$file in \
399 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
400 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
401 esac; \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
404 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
405 dir="/$$dir"; \
406 $(mkdir_p) "$(distdir)$$dir"; \
407 else \
408 dir=''; \
409 fi; \
410 if test -d $$d/$$file; then \
411 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
412 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
413 fi; \
414 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
415 else \
416 test -f $(distdir)/$$file \
417 || cp -p $$d/$$file $(distdir)/$$file \
418 || exit 1; \
419 fi; \
420 done
421 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
422 if test "$$subdir" = .; then :; else \
423 test -d "$(distdir)/$$subdir" \
424 || $(mkdir_p) "$(distdir)/$$subdir" \
425 || exit 1; \
426 distdir=`$(am__cd) $(distdir) && pwd`; \
427 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
428 (cd $$subdir && \
429 $(MAKE) $(AM_MAKEFLAGS) \
430 top_distdir="$$top_distdir" \
431 distdir="$$distdir/$$subdir" \
432 distdir) \
433 || exit 1; \
434 fi; \
435 done
436 check-am: all-am
437 check: check-recursive
438 all-am: Makefile
439 installdirs: installdirs-recursive
440 installdirs-am:
441 install: install-recursive
442 install-exec: install-exec-recursive
443 install-data: install-data-recursive
444 uninstall: uninstall-recursive
445
446 install-am: all-am
447 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
448
449 installcheck: installcheck-recursive
450 install-strip:
451 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
452 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
453 `test -z '$(STRIP)' || \
454 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
455 mostlyclean-generic:
456
457 clean-generic:
458
459 distclean-generic:
460 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
461
462 maintainer-clean-generic:
463 @echo "This command is intended for maintainers to use"
464 @echo "it deletes files that may require special tools to rebuild."
465 clean: clean-recursive
466
467 clean-am: clean-generic clean-libtool mostlyclean-am
468
469 distclean: distclean-recursive
470 -rm -f Makefile
471 distclean-am: clean-am distclean-generic distclean-libtool \
472 distclean-tags
473
474 dvi: dvi-recursive
475
476 dvi-am:
477
478 html: html-recursive
479
480 info: info-recursive
481
482 info-am:
483
484 install-data-am:
485
486 install-exec-am:
487
488 install-info: install-info-recursive
489
490 install-man:
491
492 installcheck-am:
493
494 maintainer-clean: maintainer-clean-recursive
495 -rm -f Makefile
496 maintainer-clean-am: distclean-am maintainer-clean-generic
497
498 mostlyclean: mostlyclean-recursive
499
500 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
501
502 pdf: pdf-recursive
503
504 pdf-am:
505
506 ps: ps-recursive
507
508 ps-am:
509
510 uninstall-am: uninstall-info-am
511
512 uninstall-info: uninstall-info-recursive
513
514 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
515 clean clean-generic clean-libtool clean-recursive ctags \
516 ctags-recursive distclean distclean-generic distclean-libtool \
517 distclean-recursive distclean-tags distdir dvi dvi-am html \
518 html-am info info-am install install-am install-data \
519 install-data-am install-exec install-exec-am install-info \
520 install-info-am install-man install-strip installcheck \
521 installcheck-am installdirs installdirs-am maintainer-clean \
522 maintainer-clean-generic maintainer-clean-recursive \
523 mostlyclean mostlyclean-generic mostlyclean-libtool \
524 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
525 uninstall uninstall-am uninstall-info-am
526
527 # Tell versions [3.59,3.63) of GNU make to not export all variables.
528 # Otherwise a system limit (for SysV at least) may be exceeded.
529 .NOEXPORT:
+0
-7
current/docs/man/man1/Makefile.am less more
0 EXTRA_DIST = hdate.1 hcal.1
1
2 if WITH_HCAL
3
4 man_MANS = hdate.1 hcal.1
5
6 endif
+0
-429
current/docs/man/man1/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = docs/man/man1
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 man1dir = $(mandir)/man1
53 am__installdirs = "$(DESTDIR)$(man1dir)"
54 NROFF = nroff
55 MANS = $(man_MANS)
56 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
57 ACLOCAL = @ACLOCAL@
58 AMDEP_FALSE = @AMDEP_FALSE@
59 AMDEP_TRUE = @AMDEP_TRUE@
60 AMTAR = @AMTAR@
61 AR = @AR@
62 AUTOCONF = @AUTOCONF@
63 AUTOHEADER = @AUTOHEADER@
64 AUTOMAKE = @AUTOMAKE@
65 AWK = @AWK@
66 CC = @CC@
67 CCDEPMODE = @CCDEPMODE@
68 CFLAGS = @CFLAGS@
69 CPP = @CPP@
70 CPPFLAGS = @CPPFLAGS@
71 CXX = @CXX@
72 CXXCPP = @CXXCPP@
73 CXXDEPMODE = @CXXDEPMODE@
74 CXXFLAGS = @CXXFLAGS@
75 CYGPATH_W = @CYGPATH_W@
76 DATADIRNAME = @DATADIRNAME@
77 DEFS = @DEFS@
78 DEPDIR = @DEPDIR@
79 ECHO = @ECHO@
80 ECHO_C = @ECHO_C@
81 ECHO_N = @ECHO_N@
82 ECHO_T = @ECHO_T@
83 EGREP = @EGREP@
84 EXEEXT = @EXEEXT@
85 F77 = @F77@
86 FFLAGS = @FFLAGS@
87 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
88 GMSGFMT = @GMSGFMT@
89 GMSGFMT_015 = @GMSGFMT_015@
90 GREP = @GREP@
91 INSTALL_DATA = @INSTALL_DATA@
92 INSTALL_PROGRAM = @INSTALL_PROGRAM@
93 INSTALL_SCRIPT = @INSTALL_SCRIPT@
94 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
95 INTLLIBS = @INTLLIBS@
96 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
97 LDFLAGS = @LDFLAGS@
98 LIBICONV = @LIBICONV@
99 LIBINTL = @LIBINTL@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LN_S = @LN_S@
104 LTLIBICONV = @LTLIBICONV@
105 LTLIBINTL = @LTLIBINTL@
106 LTLIBOBJS = @LTLIBOBJS@
107 MAINT = @MAINT@
108 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
109 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
110 MAKEINFO = @MAKEINFO@
111 MSGFMT = @MSGFMT@
112 MSGFMT_015 = @MSGFMT_015@
113 MSGMERGE = @MSGMERGE@
114 OBJEXT = @OBJEXT@
115 PACKAGE = @PACKAGE@
116 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
117 PACKAGE_NAME = @PACKAGE_NAME@
118 PACKAGE_STRING = @PACKAGE_STRING@
119 PACKAGE_TARNAME = @PACKAGE_TARNAME@
120 PACKAGE_VERSION = @PACKAGE_VERSION@
121 PATH_SEPARATOR = @PATH_SEPARATOR@
122 PA_MODULES_PATH = @PA_MODULES_PATH@
123 PA_VERSION = @PA_VERSION@
124 PE_CFLAGS = @PE_CFLAGS@
125 PE_MODULES_PATH = @PE_MODULES_PATH@
126 PH_CONFIG_PATH = @PH_CONFIG_PATH@
127 PH_MODULES_PATH = @PH_MODULES_PATH@
128 PKG_CONFIG = @PKG_CONFIG@
129 POSUB = @POSUB@
130 PY_CFLAGS = @PY_CFLAGS@
131 PY_MODULES_PATH = @PY_MODULES_PATH@
132 PY_VERSION = @PY_VERSION@
133 RANLIB = @RANLIB@
134 RU_CFLAGS = @RU_CFLAGS@
135 RU_MODULES_PATH = @RU_MODULES_PATH@
136 RU_VERSION = @RU_VERSION@
137 SED = @SED@
138 SET_MAKE = @SET_MAKE@
139 SHELL = @SHELL@
140 STRIP = @STRIP@
141 USE_NLS = @USE_NLS@
142 VERSION = @VERSION@
143 VERSION_INFO = @VERSION_INFO@
144 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
145 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
146 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
147 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
148 WITH_PERL_FALSE = @WITH_PERL_FALSE@
149 WITH_PERL_TRUE = @WITH_PERL_TRUE@
150 WITH_PHP_FALSE = @WITH_PHP_FALSE@
151 WITH_PHP_TRUE = @WITH_PHP_TRUE@
152 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
153 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
154 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
155 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
156 XGETTEXT = @XGETTEXT@
157 XGETTEXT_015 = @XGETTEXT_015@
158 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
159 ac_ct_CC = @ac_ct_CC@
160 ac_ct_CXX = @ac_ct_CXX@
161 ac_ct_F77 = @ac_ct_F77@
162 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
163 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
164 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
165 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
166 am__include = @am__include@
167 am__leading_dot = @am__leading_dot@
168 am__quote = @am__quote@
169 am__tar = @am__tar@
170 am__untar = @am__untar@
171 bindir = @bindir@
172 build = @build@
173 build_alias = @build_alias@
174 build_cpu = @build_cpu@
175 build_os = @build_os@
176 build_vendor = @build_vendor@
177 datadir = @datadir@
178 datarootdir = @datarootdir@
179 docdir = @docdir@
180 dvidir = @dvidir@
181 exec_prefix = @exec_prefix@
182 have_pascal = @have_pascal@
183 have_perl = @have_perl@
184 have_php = @have_php@
185 have_php_config = @have_php_config@
186 have_python = @have_python@
187 have_ruby = @have_ruby@
188 have_swig = @have_swig@
189 host = @host@
190 host_alias = @host_alias@
191 host_cpu = @host_cpu@
192 host_os = @host_os@
193 host_vendor = @host_vendor@
194 htmldir = @htmldir@
195 includedir = @includedir@
196 infodir = @infodir@
197 install_sh = @install_sh@
198 libdir = @libdir@
199 libexecdir = @libexecdir@
200 localedir = @localedir@
201 localstatedir = @localstatedir@
202 mandir = @mandir@
203 mkdir_p = @mkdir_p@
204 oldincludedir = @oldincludedir@
205 pdfdir = @pdfdir@
206 prefix = @prefix@
207 program_transform_name = @program_transform_name@
208 psdir = @psdir@
209 sbindir = @sbindir@
210 sharedstatedir = @sharedstatedir@
211 sysconfdir = @sysconfdir@
212 target_alias = @target_alias@
213 EXTRA_DIST = hdate.1 hcal.1
214 @WITH_HCAL_TRUE@man_MANS = hdate.1 hcal.1
215 all: all-am
216
217 .SUFFIXES:
218 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
219 @for dep in $?; do \
220 case '$(am__configure_deps)' in \
221 *$$dep*) \
222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
223 && exit 0; \
224 exit 1;; \
225 esac; \
226 done; \
227 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/man/man1/Makefile'; \
228 cd $(top_srcdir) && \
229 $(AUTOMAKE) --gnu docs/man/man1/Makefile
230 .PRECIOUS: Makefile
231 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
232 @case '$?' in \
233 *config.status*) \
234 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
235 *) \
236 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
237 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
238 esac;
239
240 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
242
243 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
246 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
247
248 mostlyclean-libtool:
249 -rm -f *.lo
250
251 clean-libtool:
252 -rm -rf .libs _libs
253
254 distclean-libtool:
255 -rm -f libtool
256 uninstall-info-am:
257 install-man1: $(man1_MANS) $(man_MANS)
258 @$(NORMAL_INSTALL)
259 test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
260 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
261 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
262 for i in $$l2; do \
263 case "$$i" in \
264 *.1*) list="$$list $$i" ;; \
265 esac; \
266 done; \
267 for i in $$list; do \
268 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
269 else file=$$i; fi; \
270 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
271 case "$$ext" in \
272 1*) ;; \
273 *) ext='1' ;; \
274 esac; \
275 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
276 inst=`echo $$inst | sed -e 's/^.*\///'`; \
277 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
278 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
279 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
280 done
281 uninstall-man1:
282 @$(NORMAL_UNINSTALL)
283 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
284 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
285 for i in $$l2; do \
286 case "$$i" in \
287 *.1*) list="$$list $$i" ;; \
288 esac; \
289 done; \
290 for i in $$list; do \
291 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
292 case "$$ext" in \
293 1*) ;; \
294 *) ext='1' ;; \
295 esac; \
296 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
297 inst=`echo $$inst | sed -e 's/^.*\///'`; \
298 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
299 echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
300 rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
301 done
302 tags: TAGS
303 TAGS:
304
305 ctags: CTAGS
306 CTAGS:
307
308
309 distdir: $(DISTFILES)
310 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
311 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
312 list='$(DISTFILES)'; for file in $$list; do \
313 case $$file in \
314 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
315 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
316 esac; \
317 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
318 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
319 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
320 dir="/$$dir"; \
321 $(mkdir_p) "$(distdir)$$dir"; \
322 else \
323 dir=''; \
324 fi; \
325 if test -d $$d/$$file; then \
326 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
327 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
328 fi; \
329 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
330 else \
331 test -f $(distdir)/$$file \
332 || cp -p $$d/$$file $(distdir)/$$file \
333 || exit 1; \
334 fi; \
335 done
336 check-am: all-am
337 check: check-am
338 all-am: Makefile $(MANS)
339 installdirs:
340 for dir in "$(DESTDIR)$(man1dir)"; do \
341 test -z "$$dir" || $(mkdir_p) "$$dir"; \
342 done
343 install: install-am
344 install-exec: install-exec-am
345 install-data: install-data-am
346 uninstall: uninstall-am
347
348 install-am: all-am
349 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
350
351 installcheck: installcheck-am
352 install-strip:
353 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
354 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
355 `test -z '$(STRIP)' || \
356 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
357 mostlyclean-generic:
358
359 clean-generic:
360
361 distclean-generic:
362 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
363
364 maintainer-clean-generic:
365 @echo "This command is intended for maintainers to use"
366 @echo "it deletes files that may require special tools to rebuild."
367 clean: clean-am
368
369 clean-am: clean-generic clean-libtool mostlyclean-am
370
371 distclean: distclean-am
372 -rm -f Makefile
373 distclean-am: clean-am distclean-generic distclean-libtool
374
375 dvi: dvi-am
376
377 dvi-am:
378
379 html: html-am
380
381 info: info-am
382
383 info-am:
384
385 install-data-am: install-man
386
387 install-exec-am:
388
389 install-info: install-info-am
390
391 install-man: install-man1
392
393 installcheck-am:
394
395 maintainer-clean: maintainer-clean-am
396 -rm -f Makefile
397 maintainer-clean-am: distclean-am maintainer-clean-generic
398
399 mostlyclean: mostlyclean-am
400
401 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
402
403 pdf: pdf-am
404
405 pdf-am:
406
407 ps: ps-am
408
409 ps-am:
410
411 uninstall-am: uninstall-info-am uninstall-man
412
413 uninstall-man: uninstall-man1
414
415 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
416 distclean distclean-generic distclean-libtool distdir dvi \
417 dvi-am html html-am info info-am install install-am \
418 install-data install-data-am install-exec install-exec-am \
419 install-info install-info-am install-man install-man1 \
420 install-strip installcheck installcheck-am installdirs \
421 maintainer-clean maintainer-clean-generic mostlyclean \
422 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
423 uninstall uninstall-am uninstall-info-am uninstall-man \
424 uninstall-man1
425
426 # Tell versions [3.59,3.63) of GNU make to not export all variables.
427 # Otherwise a system limit (for SysV at least) may be exceeded.
428 .NOEXPORT:
+0
-44
current/docs/man/man1/hcal.1 less more
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 [\-hdi]
15 .PP
16 [ [ month ] year ]
17 .SH "DESCRIPTION"
18 .I Hcal
19 prints a calendar with both common and Hebrew dates for the
20 specified month, or the whole year if no month is specified.
21 If no arguments are given, it prints the current month.
22 Major holidays are marked by a `*', other holidays by a `+',
23 fast days by a `\-'.
24 .PP
25 If the year is greater than 3000,
26 .I hcal
27 takes the given date as a Hebrew date, and translates it
28 back to the common calendar.
29 Months are numbered with Tishrey being 1 and Elul 12; Adar I and Adar II are months 13 and 14.
30 .PP
31 .I \-h
32 : Print output in html format.
33 .PP
34 .I \-d
35 : Use diaspora reading and holidays.
36 .PP
37 .I \-i
38 : Use external css file "./hcal.css".
39 .PP
40 .SH "SEE ALSO"
41 date(1), cal(1), hdate(1), hebcal(1), remind(1), hdate.h(3), hdate_struct(3)
42 .SH "AUTHOR"
43 Yaacov Zamir 2005, text copied from Amos Shapir's hdate man file.
+0
-4
current/docs/man/man3/Makefile.am less more
0 EXTRA_DIST = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
1
2 man_MANS = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
3
+0
-429
current/docs/man/man3/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = docs/man/man3
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 man3dir = $(mandir)/man3
53 am__installdirs = "$(DESTDIR)$(man3dir)"
54 NROFF = nroff
55 MANS = $(man_MANS)
56 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
57 ACLOCAL = @ACLOCAL@
58 AMDEP_FALSE = @AMDEP_FALSE@
59 AMDEP_TRUE = @AMDEP_TRUE@
60 AMTAR = @AMTAR@
61 AR = @AR@
62 AUTOCONF = @AUTOCONF@
63 AUTOHEADER = @AUTOHEADER@
64 AUTOMAKE = @AUTOMAKE@
65 AWK = @AWK@
66 CC = @CC@
67 CCDEPMODE = @CCDEPMODE@
68 CFLAGS = @CFLAGS@
69 CPP = @CPP@
70 CPPFLAGS = @CPPFLAGS@
71 CXX = @CXX@
72 CXXCPP = @CXXCPP@
73 CXXDEPMODE = @CXXDEPMODE@
74 CXXFLAGS = @CXXFLAGS@
75 CYGPATH_W = @CYGPATH_W@
76 DATADIRNAME = @DATADIRNAME@
77 DEFS = @DEFS@
78 DEPDIR = @DEPDIR@
79 ECHO = @ECHO@
80 ECHO_C = @ECHO_C@
81 ECHO_N = @ECHO_N@
82 ECHO_T = @ECHO_T@
83 EGREP = @EGREP@
84 EXEEXT = @EXEEXT@
85 F77 = @F77@
86 FFLAGS = @FFLAGS@
87 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
88 GMSGFMT = @GMSGFMT@
89 GMSGFMT_015 = @GMSGFMT_015@
90 GREP = @GREP@
91 INSTALL_DATA = @INSTALL_DATA@
92 INSTALL_PROGRAM = @INSTALL_PROGRAM@
93 INSTALL_SCRIPT = @INSTALL_SCRIPT@
94 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
95 INTLLIBS = @INTLLIBS@
96 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
97 LDFLAGS = @LDFLAGS@
98 LIBICONV = @LIBICONV@
99 LIBINTL = @LIBINTL@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LN_S = @LN_S@
104 LTLIBICONV = @LTLIBICONV@
105 LTLIBINTL = @LTLIBINTL@
106 LTLIBOBJS = @LTLIBOBJS@
107 MAINT = @MAINT@
108 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
109 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
110 MAKEINFO = @MAKEINFO@
111 MSGFMT = @MSGFMT@
112 MSGFMT_015 = @MSGFMT_015@
113 MSGMERGE = @MSGMERGE@
114 OBJEXT = @OBJEXT@
115 PACKAGE = @PACKAGE@
116 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
117 PACKAGE_NAME = @PACKAGE_NAME@
118 PACKAGE_STRING = @PACKAGE_STRING@
119 PACKAGE_TARNAME = @PACKAGE_TARNAME@
120 PACKAGE_VERSION = @PACKAGE_VERSION@
121 PATH_SEPARATOR = @PATH_SEPARATOR@
122 PA_MODULES_PATH = @PA_MODULES_PATH@
123 PA_VERSION = @PA_VERSION@
124 PE_CFLAGS = @PE_CFLAGS@
125 PE_MODULES_PATH = @PE_MODULES_PATH@
126 PH_CONFIG_PATH = @PH_CONFIG_PATH@
127 PH_MODULES_PATH = @PH_MODULES_PATH@
128 PKG_CONFIG = @PKG_CONFIG@
129 POSUB = @POSUB@
130 PY_CFLAGS = @PY_CFLAGS@
131 PY_MODULES_PATH = @PY_MODULES_PATH@
132 PY_VERSION = @PY_VERSION@
133 RANLIB = @RANLIB@
134 RU_CFLAGS = @RU_CFLAGS@
135 RU_MODULES_PATH = @RU_MODULES_PATH@
136 RU_VERSION = @RU_VERSION@
137 SED = @SED@
138 SET_MAKE = @SET_MAKE@
139 SHELL = @SHELL@
140 STRIP = @STRIP@
141 USE_NLS = @USE_NLS@
142 VERSION = @VERSION@
143 VERSION_INFO = @VERSION_INFO@
144 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
145 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
146 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
147 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
148 WITH_PERL_FALSE = @WITH_PERL_FALSE@
149 WITH_PERL_TRUE = @WITH_PERL_TRUE@
150 WITH_PHP_FALSE = @WITH_PHP_FALSE@
151 WITH_PHP_TRUE = @WITH_PHP_TRUE@
152 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
153 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
154 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
155 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
156 XGETTEXT = @XGETTEXT@
157 XGETTEXT_015 = @XGETTEXT_015@
158 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
159 ac_ct_CC = @ac_ct_CC@
160 ac_ct_CXX = @ac_ct_CXX@
161 ac_ct_F77 = @ac_ct_F77@
162 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
163 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
164 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
165 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
166 am__include = @am__include@
167 am__leading_dot = @am__leading_dot@
168 am__quote = @am__quote@
169 am__tar = @am__tar@
170 am__untar = @am__untar@
171 bindir = @bindir@
172 build = @build@
173 build_alias = @build_alias@
174 build_cpu = @build_cpu@
175 build_os = @build_os@
176 build_vendor = @build_vendor@
177 datadir = @datadir@
178 datarootdir = @datarootdir@
179 docdir = @docdir@
180 dvidir = @dvidir@
181 exec_prefix = @exec_prefix@
182 have_pascal = @have_pascal@
183 have_perl = @have_perl@
184 have_php = @have_php@
185 have_php_config = @have_php_config@
186 have_python = @have_python@
187 have_ruby = @have_ruby@
188 have_swig = @have_swig@
189 host = @host@
190 host_alias = @host_alias@
191 host_cpu = @host_cpu@
192 host_os = @host_os@
193 host_vendor = @host_vendor@
194 htmldir = @htmldir@
195 includedir = @includedir@
196 infodir = @infodir@
197 install_sh = @install_sh@
198 libdir = @libdir@
199 libexecdir = @libexecdir@
200 localedir = @localedir@
201 localstatedir = @localstatedir@
202 mandir = @mandir@
203 mkdir_p = @mkdir_p@
204 oldincludedir = @oldincludedir@
205 pdfdir = @pdfdir@
206 prefix = @prefix@
207 program_transform_name = @program_transform_name@
208 psdir = @psdir@
209 sbindir = @sbindir@
210 sharedstatedir = @sharedstatedir@
211 sysconfdir = @sysconfdir@
212 target_alias = @target_alias@
213 EXTRA_DIST = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
214 man_MANS = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
215 all: all-am
216
217 .SUFFIXES:
218 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
219 @for dep in $?; do \
220 case '$(am__configure_deps)' in \
221 *$$dep*) \
222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
223 && exit 0; \
224 exit 1;; \
225 esac; \
226 done; \
227 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/man/man3/Makefile'; \
228 cd $(top_srcdir) && \
229 $(AUTOMAKE) --gnu docs/man/man3/Makefile
230 .PRECIOUS: Makefile
231 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
232 @case '$?' in \
233 *config.status*) \
234 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
235 *) \
236 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
237 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
238 esac;
239
240 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
242
243 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
246 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
247
248 mostlyclean-libtool:
249 -rm -f *.lo
250
251 clean-libtool:
252 -rm -rf .libs _libs
253
254 distclean-libtool:
255 -rm -f libtool
256 uninstall-info-am:
257 install-man3: $(man3_MANS) $(man_MANS)
258 @$(NORMAL_INSTALL)
259 test -z "$(man3dir)" || $(mkdir_p) "$(DESTDIR)$(man3dir)"
260 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
261 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
262 for i in $$l2; do \
263 case "$$i" in \
264 *.3*) list="$$list $$i" ;; \
265 esac; \
266 done; \
267 for i in $$list; do \
268 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
269 else file=$$i; fi; \
270 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
271 case "$$ext" in \
272 3*) ;; \
273 *) ext='3' ;; \
274 esac; \
275 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
276 inst=`echo $$inst | sed -e 's/^.*\///'`; \
277 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
278 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
279 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
280 done
281 uninstall-man3:
282 @$(NORMAL_UNINSTALL)
283 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
284 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
285 for i in $$l2; do \
286 case "$$i" in \
287 *.3*) list="$$list $$i" ;; \
288 esac; \
289 done; \
290 for i in $$list; do \
291 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
292 case "$$ext" in \
293 3*) ;; \
294 *) ext='3' ;; \
295 esac; \
296 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
297 inst=`echo $$inst | sed -e 's/^.*\///'`; \
298 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
299 echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
300 rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
301 done
302 tags: TAGS
303 TAGS:
304
305 ctags: CTAGS
306 CTAGS:
307
308
309 distdir: $(DISTFILES)
310 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
311 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
312 list='$(DISTFILES)'; for file in $$list; do \
313 case $$file in \
314 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
315 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
316 esac; \
317 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
318 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
319 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
320 dir="/$$dir"; \
321 $(mkdir_p) "$(distdir)$$dir"; \
322 else \
323 dir=''; \
324 fi; \
325 if test -d $$d/$$file; then \
326 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
327 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
328 fi; \
329 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
330 else \
331 test -f $(distdir)/$$file \
332 || cp -p $$d/$$file $(distdir)/$$file \
333 || exit 1; \
334 fi; \
335 done
336 check-am: all-am
337 check: check-am
338 all-am: Makefile $(MANS)
339 installdirs:
340 for dir in "$(DESTDIR)$(man3dir)"; do \
341 test -z "$$dir" || $(mkdir_p) "$$dir"; \
342 done
343 install: install-am
344 install-exec: install-exec-am
345 install-data: install-data-am
346 uninstall: uninstall-am
347
348 install-am: all-am
349 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
350
351 installcheck: installcheck-am
352 install-strip:
353 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
354 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
355 `test -z '$(STRIP)' || \
356 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
357 mostlyclean-generic:
358
359 clean-generic:
360
361 distclean-generic:
362 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
363
364 maintainer-clean-generic:
365 @echo "This command is intended for maintainers to use"
366 @echo "it deletes files that may require special tools to rebuild."
367 clean: clean-am
368
369 clean-am: clean-generic clean-libtool mostlyclean-am
370
371 distclean: distclean-am
372 -rm -f Makefile
373 distclean-am: clean-am distclean-generic distclean-libtool
374
375 dvi: dvi-am
376
377 dvi-am:
378
379 html: html-am
380
381 info: info-am
382
383 info-am:
384
385 install-data-am: install-man
386
387 install-exec-am:
388
389 install-info: install-info-am
390
391 install-man: install-man3
392
393 installcheck-am:
394
395 maintainer-clean: maintainer-clean-am
396 -rm -f Makefile
397 maintainer-clean-am: distclean-am maintainer-clean-generic
398
399 mostlyclean: mostlyclean-am
400
401 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
402
403 pdf: pdf-am
404
405 pdf-am:
406
407 ps: ps-am
408
409 ps-am:
410
411 uninstall-am: uninstall-info-am uninstall-man
412
413 uninstall-man: uninstall-man3
414
415 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
416 distclean distclean-generic distclean-libtool distdir dvi \
417 dvi-am html html-am info info-am install install-am \
418 install-data install-data-am install-exec install-exec-am \
419 install-info install-info-am install-man install-man3 \
420 install-strip installcheck installcheck-am installdirs \
421 maintainer-clean maintainer-clean-generic mostlyclean \
422 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
423 uninstall uninstall-am uninstall-info-am uninstall-man \
424 uninstall-man3
425
426 # Tell versions [3.59,3.63) of GNU make to not export all variables.
427 # Otherwise a system limit (for SysV at least) may be exceeded.
428 .NOEXPORT:
+0
-24
current/docs/man/man3/hdate.3 less more
0 .TH "hdate" 3 "6 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 hdate \- the libhdate namespace.
5
6 .PP
7 .SH SYNOPSIS
8 .br
9 .PP
10 .SS "Classes"
11
12 .in +1c
13 .ti -1c
14 .RI "class \fBHdate\fP"
15 .br
16 .RI "\fI\fBHdate\fP class. \fP"
17 .in -1c
18 .SH "Detailed Description"
19 .PP
20 the libhdate namespace.
21 .SH "Author"
22 .PP
23 Generated automatically by Doxygen for libhdate C++ language from the source code.
+0
-933
current/docs/man/man3/hdate.h.3 less more
0 .TH "src/hdate.h" 3 "26 Jan 2008" "Version 1.4" "libhdate C language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 src/hdate.h \- libhdate C language header.
5 .SH SYNOPSIS
6 .br
7 .PP
8 .SS "Data Structures"
9
10 .in +1c
11 .ti -1c
12 .RI "struct \fBhdate_struct\fP"
13 .br
14 .RI "\fIlibhdate Hebrew date struct \fP"
15 .in -1c
16 .SS "Defines"
17
18 .in +1c
19 .ti -1c
20 .RI "#define \fBHDATE_DIASPORA_FLAG\fP -1"
21 .br
22 .RI "\fIuse diaspora dates and holydays flag \fP"
23 .ti -1c
24 .RI "#define \fBHDATE_ISRAEL_FLAG\fP 0"
25 .br
26 .RI "\fIuse israel dates and holydays flag \fP"
27 .ti -1c
28 .RI "#define \fBHDATE_SHORT_FLAG\fP -1"
29 .br
30 .RI "\fIuse short strings flag \fP"
31 .ti -1c
32 .RI "#define \fBHDATE_LONG_FLAG\fP 0"
33 .br
34 .RI "\fIuse long strings flag \fP"
35 .in -1c
36 .SS "Functions"
37
38 .in +1c
39 .ti -1c
40 .RI "\fBhdate_struct\fP * \fBhdate_set_gdate\fP (\fBhdate_struct\fP *h, int d, int m, int y)"
41 .br
42 .RI "\fIcompute date structure from the Gregorian date \fP"
43 .ti -1c
44 .RI "\fBhdate_struct\fP * \fBhdate_set_hdate\fP (\fBhdate_struct\fP *h, int d, int m, int y)"
45 .br
46 .RI "\fIcompute date structure from the Hebrew date \fP"
47 .ti -1c
48 .RI "\fBhdate_struct\fP * \fBhdate_set_jd\fP (\fBhdate_struct\fP *h, int jd)"
49 .br
50 .RI "\fIcompute date structure from the Julian day \fP"
51 .ti -1c
52 .RI "char * \fBhdate_get_format_date\fP (\fBhdate_struct\fP const *h, int diaspora, int s)"
53 .br
54 .RI "\fIget formated hebrew date. \fP"
55 .ti -1c
56 .RI "int \fBhdate_get_parasha\fP (\fBhdate_struct\fP const *h, int diaspora)"
57 .br
58 .RI "\fIget the number of hebrew parasha. \fP"
59 .ti -1c
60 .RI "int \fBhdate_get_holyday\fP (\fBhdate_struct\fP const *h, int diaspora)"
61 .br
62 .RI "\fIget the number of hebrew holyday. \fP"
63 .ti -1c
64 .RI "char * \fBhdate_get_int_string\fP (int n)"
65 .br
66 .RI "\fIconvert an integer to hebrew string. \fP"
67 .ti -1c
68 .RI "char * \fBhdate_get_day_string\fP (int day, int s)"
69 .br
70 .RI "\fIget name of week day. \fP"
71 .ti -1c
72 .RI "char * \fBhdate_get_month_string\fP (int month, int s)"
73 .br
74 .RI "\fIname of month. \fP"
75 .ti -1c
76 .RI "char * \fBhdate_get_hebrew_month_string\fP (int month, int s)"
77 .br
78 .RI "\fIname of hebrew month. \fP"
79 .ti -1c
80 .RI "char * \fBhdate_get_holyday_string\fP (int holyday, int s)"
81 .br
82 .RI "\fIname of hebrew holyday. \fP"
83 .ti -1c
84 .RI "char * \fBhdate_get_parasha_string\fP (int parasha, int s)"
85 .br
86 .RI "\fIname of parasha \fP"
87 .ti -1c
88 .RI "int \fBhdate_get_holyday_type\fP (int holyday)"
89 .br
90 .RI "\fIget the hebrew holyday type. \fP"
91 .ti -1c
92 .RI "int \fBhdate_get_size_of_hebrew_year\fP (int hebrew_year)"
93 .br
94 .RI "\fIsize of hebrew year in days. \fP"
95 .ti -1c
96 .RI "int \fBhdate_days_from_3744\fP (int hebrew_year)"
97 .br
98 .RI "\fIDays since Tishrey 3744. \fP"
99 .ti -1c
100 .RI "int \fBhdate_get_year_type\fP (int size_of_year, int new_year_dw)"
101 .br
102 .RI "\fIReturn Hebrew year type based on size and first week day of year. \fP"
103 .ti -1c
104 .RI "int \fBhdate_gdate_to_jd\fP (int day, int month, int year)"
105 .br
106 .RI "\fICompute Julian day from Gregorian date. \fP"
107 .ti -1c
108 .RI "int \fBhdate_hdate_to_jd\fP (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year)"
109 .br
110 .RI "\fICompute Julian day from Hebrew day, month and year. \fP"
111 .ti -1c
112 .RI "void \fBhdate_jd_to_gdate\fP (int jd, int *day, int *month, int *year)"
113 .br
114 .RI "\fIConverting from the Julian day to the Gregorian date. \fP"
115 .ti -1c
116 .RI "void \fBhdate_jd_to_hdate\fP (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year)"
117 .br
118 .RI "\fIConverting from the Julian day to the Hebrew day. \fP"
119 .ti -1c
120 .RI "int \fBhdate_get_day_of_year\fP (int day, int month, int year)"
121 .br
122 .RI "\fIdays from 1 january \fP"
123 .ti -1c
124 .RI "void \fBhdate_get_utc_sun_time_deg\fP (int day, int month, int year, double latitude, double longitude, double deg, int *sunrise, int *sunset)"
125 .br
126 .RI "\fIutc sun times for altitude at a gregorian date \fP"
127 .ti -1c
128 .RI "void \fBhdate_get_utc_sun_time\fP (int day, int month, int year, double latitude, double longitude, int *sunrise, int *sunset)"
129 .br
130 .RI "\fIutc sunrise/set time for a gregorian date \fP"
131 .ti -1c
132 .RI "void \fBhdate_get_utc_sun_time_full\fP (int day, int month, int year, double latitude, double longitude, int *sun_hour, int *first_light, int *talit, int *sunrise, int *midday, int *sunset, int *first_stars, int *three_stars)"
133 .br
134 .RI "\fIutc sunrise/set time for a gregorian date \fP"
135 .ti -1c
136 .RI "int \fBhdate_get_gday\fP (\fBhdate_struct\fP const *h)"
137 .br
138 .RI "\fIget the Gregorian day of the month \fP"
139 .ti -1c
140 .RI "int \fBhdate_get_gmonth\fP (\fBhdate_struct\fP const *h)"
141 .br
142 .RI "\fIget the Gregorian month \fP"
143 .ti -1c
144 .RI "int \fBhdate_get_gyear\fP (\fBhdate_struct\fP const *h)"
145 .br
146 .RI "\fIget the Gregorian year \fP"
147 .ti -1c
148 .RI "int \fBhdate_get_hday\fP (\fBhdate_struct\fP const *h)"
149 .br
150 .RI "\fIget the Hebrew day of the month \fP"
151 .ti -1c
152 .RI "int \fBhdate_get_hmonth\fP (\fBhdate_struct\fP const *h)"
153 .br
154 .RI "\fIget the Hebrew month \fP"
155 .ti -1c
156 .RI "int \fBhdate_get_hyear\fP (\fBhdate_struct\fP const *h)"
157 .br
158 .RI "\fIget the Hebrew year \fP"
159 .ti -1c
160 .RI "int \fBhdate_get_day_of_the_week\fP (\fBhdate_struct\fP const *h)"
161 .br
162 .RI "\fIget the day of the week \fP"
163 .ti -1c
164 .RI "int \fBhdate_get_size_of_year\fP (\fBhdate_struct\fP const *h)"
165 .br
166 .RI "\fIget the size of the hebrew year \fP"
167 .ti -1c
168 .RI "int \fBhdate_get_new_year_day_of_the_week\fP (\fBhdate_struct\fP const *h)"
169 .br
170 .RI "\fIget the new year day of the week \fP"
171 .ti -1c
172 .RI "int \fBhdate_get_julian\fP (\fBhdate_struct\fP const *h)"
173 .br
174 .RI "\fIget the Julian day number \fP"
175 .ti -1c
176 .RI "int \fBhdate_get_days\fP (\fBhdate_struct\fP const *h)"
177 .br
178 .RI "\fIget the number of days passed since 1 tishrey \fP"
179 .ti -1c
180 .RI "int \fBhdate_get_weeks\fP (\fBhdate_struct\fP const *h)"
181 .br
182 .RI "\fIget the number of weeks passed since 1 tishrey \fP"
183 .ti -1c
184 .RI "\fBhdate_struct\fP * \fBnew_hdate\fP ()"
185 .br
186 .RI "\fIcreat a new hdate struct object, must be deleted using delete_hdate. \fP"
187 .ti -1c
188 .RI "\fBhdate_struct\fP * \fBdelete_hdate\fP (\fBhdate_struct\fP *h)"
189 .br
190 .RI "\fIdelete an hdate struct object. \fP"
191 .ti -1c
192 .RI "char * \fBhdate_get_version_string\fP ()"
193 .br
194 .RI "\fIReturn a static string, with the package name and version. \fP"
195 .ti -1c
196 .RI "char * \fBhdate_get_translator_string\fP ()"
197 .br
198 .RI "\fIname of translator \fP"
199 .in -1c
200 .SH "Detailed Description"
201 .PP
202 libhdate C language header.
203
204 libhdate - Hebrew calendar library, the C language header file.
205 .SH "Define Documentation"
206 .PP
207 .SS "#define HDATE_DIASPORA_FLAG -1"
208 .PP
209 use diaspora dates and holydays flag
210 .PP
211 .SS "#define HDATE_ISRAEL_FLAG 0"
212 .PP
213 use israel dates and holydays flag
214 .PP
215 .SS "#define HDATE_SHORT_FLAG -1"
216 .PP
217 use short strings flag
218 .PP
219 .SS "#define HDATE_LONG_FLAG 0"
220 .PP
221 use long strings flag
222 .PP
223 .SH "Function Documentation"
224 .PP
225 .SS "\fBhdate_struct\fP* hdate_set_gdate (\fBhdate_struct\fP * h, int d, int m, int y)"
226 .PP
227 compute date structure from the Gregorian date
228 .PP
229 \fBParameters:\fP
230 .RS 4
231 \fIh\fP pointer this hdate struct.
232 .br
233 \fId\fP Day of month 1..31
234 .br
235 \fIm\fP Month 1..12 if m or d is 0 return current date.
236 .br
237 \fIy\fP Year in 4 digits e.g. 2001
238 .RE
239 .PP
240 \fBReturns:\fP
241 .RS 4
242 pointer to this hdate struct
243 .RE
244 .PP
245
246 .SS "\fBhdate_struct\fP* hdate_set_hdate (\fBhdate_struct\fP * h, int d, int m, int y)"
247 .PP
248 compute date structure from the Hebrew date
249 .PP
250 \fBParameters:\fP
251 .RS 4
252 \fIh\fP pointer this hdate struct.
253 .br
254 \fId\fP Day of month 1..31
255 .br
256 \fIm\fP Month 1..14 ,(13 - Adar 1, 14 - Adar 2) if m or d is 0 return current date.
257 .br
258 \fIy\fP Year in 4 digits e.g. 5731
259 .RE
260 .PP
261 \fBReturns:\fP
262 .RS 4
263 pointer to this hdate struct
264 .RE
265 .PP
266
267 .SS "\fBhdate_struct\fP* hdate_set_jd (\fBhdate_struct\fP * h, int jd)"
268 .PP
269 compute date structure from the Julian day
270 .PP
271 \fBParameters:\fP
272 .RS 4
273 \fIh\fP pointer this hdate struct.
274 .br
275 \fIjd\fP the julian day number.
276 .RE
277 .PP
278 \fBReturns:\fP
279 .RS 4
280 pointer to this hdate struct
281 .RE
282 .PP
283
284 .SS "char* hdate_get_format_date (\fBhdate_struct\fP const * h, int diaspora, int s)"
285 .PP
286 get formated hebrew date.
287 .PP
288 return the short ( e.g. '1 Tishrey' ) or long (e.g. 'Tuesday 18 Tishrey 5763 Hol hamoed Sukot' ) formated date.
289 .PP
290 \fBParameters:\fP
291 .RS 4
292 \fIh\fP pointer this hdate struct.
293 .br
294 \fIdiaspora\fP if true give diaspora holydays.
295 .br
296 \fIs\fP short flag.
297 .RE
298 .PP
299 \fBReturns:\fP
300 .RS 4
301 a static string of foramted date
302 .RE
303 .PP
304
305 .SS "int hdate_get_parasha (\fBhdate_struct\fP const * h, int diaspora)"
306 .PP
307 get the number of hebrew parasha.
308 .PP
309 \fBParameters:\fP
310 .RS 4
311 \fIh\fP pointer this hdate struct.
312 .br
313 \fIdiaspora\fP if true give diaspora readings
314 .RE
315 .PP
316 \fBReturns:\fP
317 .RS 4
318 the number of parasha 1. Bereshit etc.. (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
319 .RE
320 .PP
321
322 .SS "int hdate_get_holyday (\fBhdate_struct\fP const * h, int diaspora)"
323 .PP
324 get the number of hebrew holyday.
325 .PP
326 \fBParameters:\fP
327 .RS 4
328 \fIh\fP pointer this hdate struct.
329 .br
330 \fIdiaspora\fP if true give diaspora holydays
331 .RE
332 .PP
333 \fBReturns:\fP
334 .RS 4
335 the number of holyday.
336 .RE
337 .PP
338
339 .SS "char* hdate_get_int_string (int n)"
340 .PP
341 convert an integer to hebrew string.
342 .PP
343 \fBParameters:\fP
344 .RS 4
345 \fIn\fP The int to convert
346 .RE
347 .PP
348 \fBReturns:\fP
349 .RS 4
350 a static string of the hebrew number UTF-8 (logical)
351 .RE
352 .PP
353 \fBAttention:\fP
354 .RS 4
355 ( 0 < n < 10000)
356 .RE
357 .PP
358
359 .SS "char* hdate_get_day_string (int day, int s)"
360 .PP
361 get name of week day.
362 .PP
363 \fBParameters:\fP
364 .RS 4
365 \fIday\fP The number of the day 1..7 (1 - sun).
366 .br
367 \fIs\fP short flag true - returns a short string: sun, false returns: sunday.
368 .RE
369 .PP
370 \fBReturns:\fP
371 .RS 4
372 a static string of the day of the week
373 .RE
374 .PP
375
376 .SS "char* hdate_get_month_string (int month, int s)"
377 .PP
378 name of month.
379 .PP
380 \fBParameters:\fP
381 .RS 4
382 \fImonth\fP the number of the month 1..12 (1 - jan).
383 .br
384 \fIs\fP short flag.
385 .RE
386 .PP
387 \fBReturns:\fP
388 .RS 4
389 a static string of month name
390 .RE
391 .PP
392
393 .SS "char* hdate_get_hebrew_month_string (int month, int s)"
394 .PP
395 name of hebrew month.
396 .PP
397 \fBParameters:\fP
398 .RS 4
399 \fImonth\fP the number of the month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
400 .br
401 \fIs\fP short flag.
402 .RE
403 .PP
404 \fBReturns:\fP
405 .RS 4
406 a static string of month name
407 .RE
408 .PP
409
410 .SS "char* hdate_get_holyday_string (int holyday, int s)"
411 .PP
412 name of hebrew holyday.
413 .PP
414 \fBParameters:\fP
415 .RS 4
416 \fIholyday\fP the holyday number.
417 .br
418 \fIs\fP short flag.
419 .RE
420 .PP
421 \fBReturns:\fP
422 .RS 4
423 a static string of holyday name
424 .RE
425 .PP
426
427 .SS "char* hdate_get_parasha_string (int parasha, int s)"
428 .PP
429 name of parasha
430 .PP
431 \fBParameters:\fP
432 .RS 4
433 \fIparasha\fP the number of parasha 1-Bereshit (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
434 .br
435 \fIs\fP short flag.
436 .RE
437 .PP
438 \fBReturns:\fP
439 .RS 4
440 a static string of parasha name
441 .RE
442 .PP
443
444 .SS "int hdate_get_holyday_type (int holyday)"
445 .PP
446 get the hebrew holyday type.
447 .PP
448 \fBParameters:\fP
449 .RS 4
450 \fIholyday\fP the holyday number.
451 .RE
452 .PP
453 \fBReturns:\fP
454 .RS 4
455 the number of holyday type.
456 .RE
457 .PP
458
459 .SS "int hdate_get_size_of_hebrew_year (int hebrew_year)"
460 .PP
461 size of hebrew year in days.
462 .PP
463 \fBParameters:\fP
464 .RS 4
465 \fIhebrew_year\fP the hebrew year.
466 .RE
467 .PP
468 \fBReturns:\fP
469 .RS 4
470 size of Hebrew year
471 .RE
472 .PP
473
474 .SS "int hdate_days_from_3744 (int hebrew_year)"
475 .PP
476 Days since Tishrey 3744.
477 .PP
478 \fBAuthor:\fP
479 .RS 4
480 Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
481 .RE
482 .PP
483 \fBParameters:\fP
484 .RS 4
485 \fIhebrew_year\fP The Hebrew year
486 .RE
487 .PP
488 \fBReturns:\fP
489 .RS 4
490 Number of days since 3,1,3744
491 .RE
492 .PP
493
494 .SS "int hdate_get_year_type (int size_of_year, int new_year_dw)"
495 .PP
496 Return Hebrew year type based on size and first week day of year.
497 .PP
498 \fBParameters:\fP
499 .RS 4
500 \fIsize_of_year\fP Length of year in days
501 .br
502 \fInew_year_dw\fP First week day of year
503 .RE
504 .PP
505 \fBReturns:\fP
506 .RS 4
507 the number for year type (1..14)
508 .RE
509 .PP
510
511 .SS "int hdate_gdate_to_jd (int day, int month, int year)"
512 .PP
513 Compute Julian day from Gregorian date.
514 .PP
515 \fBAuthor:\fP
516 .RS 4
517 Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
518 .RE
519 .PP
520 \fBParameters:\fP
521 .RS 4
522 \fIday\fP Day of month 1..31
523 .br
524 \fImonth\fP Month 1..12
525 .br
526 \fIyear\fP Year in 4 digits e.g. 2001
527 .RE
528 .PP
529 \fBReturns:\fP
530 .RS 4
531 the julian day number
532 .RE
533 .PP
534
535 .SS "int hdate_hdate_to_jd (int day, int month, int year, int * jd_tishrey1, int * jd_tishrey1_next_year)"
536 .PP
537 Compute Julian day from Hebrew day, month and year.
538 .PP
539 \fBAuthor:\fP
540 .RS 4
541 Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
542 .RE
543 .PP
544 \fBParameters:\fP
545 .RS 4
546 \fIday\fP Day of month 1..31
547 .br
548 \fImonth\fP Month 1..14 (13 - Adar 1, 14 - Adar 2)
549 .br
550 \fIyear\fP Hebrew year in 4 digits e.g. 5753
551 .br
552 \fIjd_tishrey1\fP return the julian number of 1 Tishrey this year
553 .br
554 \fIjd_tishrey1_next_year\fP return the julian number of 1 Tishrey next year
555 .RE
556 .PP
557 \fBReturns:\fP
558 .RS 4
559 the julian day number
560 .RE
561 .PP
562
563 .SS "void hdate_jd_to_gdate (int jd, int * day, int * month, int * year)"
564 .PP
565 Converting from the Julian day to the Gregorian date.
566 .PP
567 \fBAuthor:\fP
568 .RS 4
569 Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
570 .RE
571 .PP
572 \fBParameters:\fP
573 .RS 4
574 \fIjd\fP Julian day
575 .br
576 \fIday\fP return Day of month 1..31
577 .br
578 \fImonth\fP return Month 1..12
579 .br
580 \fIyear\fP return Year in 4 digits e.g. 2001
581 .RE
582 .PP
583
584 .SS "void hdate_jd_to_hdate (int jd, int * day, int * month, int * year, int * jd_tishrey1, int * jd_tishrey1_next_year)"
585 .PP
586 Converting from the Julian day to the Hebrew day.
587 .PP
588 \fBAuthor:\fP
589 .RS 4
590 Yaacov Zamir 2005
591 .RE
592 .PP
593 \fBParameters:\fP
594 .RS 4
595 \fIjd\fP Julian day
596 .br
597 \fIday\fP return Day of month 1..31
598 .br
599 \fImonth\fP return Month 1..14 (13 - Adar 1, 14 - Adar 2)
600 .br
601 \fIyear\fP return Year in 4 digits e.g. 2001
602 .br
603 \fIjd_tishrey1\fP return the julian number of 1 Tishrey this year
604 .br
605 \fIjd_tishrey1_next_year\fP return the julian number of 1 Tishrey next year
606 .RE
607 .PP
608
609 .SS "int hdate_get_day_of_year (int day, int month, int year)"
610 .PP
611 days from 1 january
612 .PP
613 \fBParameters:\fP
614 .RS 4
615 \fIday\fP this day of month
616 .br
617 \fImonth\fP this month
618 .br
619 \fIyear\fP this year
620 .RE
621 .PP
622 \fBReturns:\fP
623 .RS 4
624 the days from 1 jan
625 .RE
626 .PP
627
628 .SS "void hdate_get_utc_sun_time_deg (int day, int month, int year, double latitude, double longitude, double deg, int * sunrise, int * sunset)"
629 .PP
630 utc sun times for altitude at a gregorian date
631 .PP
632 Returns the sunset and sunrise times in minutes from 00:00 (utc time) if sun altitude in sunrise is deg degries. This function only works for altitudes sun realy is. If the sun never get to this altitude, the returned sunset and sunrise values will be negative. This can happen in low altitude when latitude is nearing the pols in winter times, the sun never goes very high in the sky there.
633 .PP
634 \fBParameters:\fP
635 .RS 4
636 \fIday\fP this day of month
637 .br
638 \fImonth\fP this month
639 .br
640 \fIyear\fP this year
641 .br
642 \fIlongitude\fP longitude to use in calculations
643 .br
644 \fIlatitude\fP latitude to use in calculations
645 .br
646 \fIdeg\fP degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
647 .br
648 \fIsunrise\fP return the utc sunrise in minutes
649 .br
650 \fIsunset\fP return the utc sunset in minutes
651 .RE
652 .PP
653
654 .SS "void hdate_get_utc_sun_time (int day, int month, int year, double latitude, double longitude, int * sunrise, int * sunset)"
655 .PP
656 utc sunrise/set time for a gregorian date
657 .PP
658 \fBParameters:\fP
659 .RS 4
660 \fIday\fP this day of month
661 .br
662 \fImonth\fP this month
663 .br
664 \fIyear\fP this year
665 .br
666 \fIlongitude\fP longitude to use in calculations degrees, negative values are east
667 .br
668 \fIlatitude\fP latitude to use in calculations degrees, negative values are south
669 .br
670 \fIsunrise\fP return the utc sunrise in minutes after midnight (00:00)
671 .br
672 \fIsunset\fP return the utc sunset in minutes after midnight (00:00)
673 .RE
674 .PP
675
676 .SS "void hdate_get_utc_sun_time_full (int day, int month, int year, double latitude, double longitude, int * sun_hour, int * first_light, int * talit, int * sunrise, int * midday, int * sunset, int * first_stars, int * three_stars)"
677 .PP
678 utc sunrise/set time for a gregorian date
679 .PP
680 \fBParameters:\fP
681 .RS 4
682 \fIday\fP this day of month
683 .br
684 \fImonth\fP this month
685 .br
686 \fIyear\fP this year
687 .br
688 \fIlongitude\fP longitude to use in calculations
689 .br
690 \fIlatitude\fP latitude to use in calculations
691 .br
692 \fIsun_hour\fP return the length of shaa zaminit in minutes
693 .br
694 \fIfirst_light\fP return the utc alut ha-shachar in minutes
695 .br
696 \fItalit\fP return the utc tphilin and talit in minutes
697 .br
698 \fIsunrise\fP return the utc sunrise in minutes
699 .br
700 \fImidday\fP return the utc midday in minutes
701 .br
702 \fIsunset\fP return the utc sunset in minutes
703 .br
704 \fIfirst_stars\fP return the utc tzeit hacochavim in minutes
705 .br
706 \fIthree_stars\fP return the utc shlosha cochavim in minutes
707 .RE
708 .PP
709
710 .SS "int hdate_get_gday (\fBhdate_struct\fP const * h)"
711 .PP
712 get the Gregorian day of the month
713 .PP
714 \fBParameters:\fP
715 .RS 4
716 \fIh\fP pointer this hdate struct.
717 .RE
718 .PP
719 \fBReturns:\fP
720 .RS 4
721 the Gregorian day of the month, 1..31.
722 .RE
723 .PP
724
725 .SS "int hdate_get_gmonth (\fBhdate_struct\fP const * h)"
726 .PP
727 get the Gregorian month
728 .PP
729 \fBParameters:\fP
730 .RS 4
731 \fIh\fP pointer this hdate struct.
732 .RE
733 .PP
734 \fBReturns:\fP
735 .RS 4
736 the Gregorian month, jan = 1.
737 .RE
738 .PP
739
740 .SS "int hdate_get_gyear (\fBhdate_struct\fP const * h)"
741 .PP
742 get the Gregorian year
743 .PP
744 \fBParameters:\fP
745 .RS 4
746 \fIh\fP pointer this hdate struct.
747 .RE
748 .PP
749 \fBReturns:\fP
750 .RS 4
751 the Gregorian year.
752 .RE
753 .PP
754
755 .SS "int hdate_get_hday (\fBhdate_struct\fP const * h)"
756 .PP
757 get the Hebrew day of the month
758 .PP
759 \fBParameters:\fP
760 .RS 4
761 \fIh\fP pointer this hdate struct.
762 .RE
763 .PP
764 \fBReturns:\fP
765 .RS 4
766 the Hebrew day of the month, 1..30.
767 .RE
768 .PP
769
770 .SS "int hdate_get_hmonth (\fBhdate_struct\fP const * h)"
771 .PP
772 get the Hebrew month
773 .PP
774 \fBParameters:\fP
775 .RS 4
776 \fIh\fP pointer this hdate struct.
777 .RE
778 .PP
779 \fBReturns:\fP
780 .RS 4
781 the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
782 .RE
783 .PP
784
785 .SS "int hdate_get_hyear (\fBhdate_struct\fP const * h)"
786 .PP
787 get the Hebrew year
788 .PP
789 \fBParameters:\fP
790 .RS 4
791 \fIh\fP pointer this hdate struct.
792 .RE
793 .PP
794 \fBReturns:\fP
795 .RS 4
796 the Hebrew year.
797 .RE
798 .PP
799
800 .SS "int hdate_get_day_of_the_week (\fBhdate_struct\fP const * h)"
801 .PP
802 get the day of the week
803 .PP
804 \fBParameters:\fP
805 .RS 4
806 \fIh\fP pointer this hdate struct.
807 .RE
808 .PP
809 \fBReturns:\fP
810 .RS 4
811 the the day of the week.
812 .RE
813 .PP
814
815 .SS "int hdate_get_size_of_year (\fBhdate_struct\fP const * h)"
816 .PP
817 get the size of the hebrew year
818 .PP
819 \fBParameters:\fP
820 .RS 4
821 \fIh\fP pointer this hdate struct.
822 .RE
823 .PP
824 \fBReturns:\fP
825 .RS 4
826 the the size of the hebrew year.
827 .RE
828 .PP
829
830 .SS "int hdate_get_new_year_day_of_the_week (\fBhdate_struct\fP const * h)"
831 .PP
832 get the new year day of the week
833 .PP
834 \fBParameters:\fP
835 .RS 4
836 \fIh\fP pointer this hdate struct.
837 .RE
838 .PP
839 \fBReturns:\fP
840 .RS 4
841 the the new year day of the week.
842 .RE
843 .PP
844
845 .SS "int hdate_get_julian (\fBhdate_struct\fP const * h)"
846 .PP
847 get the Julian day number
848 .PP
849 \fBParameters:\fP
850 .RS 4
851 \fIh\fP pointer this hdate struct.
852 .RE
853 .PP
854 \fBReturns:\fP
855 .RS 4
856 the Julian day number.
857 .RE
858 .PP
859
860 .SS "int hdate_get_days (\fBhdate_struct\fP const * h)"
861 .PP
862 get the number of days passed since 1 tishrey
863 .PP
864 \fBParameters:\fP
865 .RS 4
866 \fIh\fP pointer this hdate struct.
867 .RE
868 .PP
869 \fBReturns:\fP
870 .RS 4
871 the number of days passed since 1 tishrey.
872 .RE
873 .PP
874
875 .SS "int hdate_get_weeks (\fBhdate_struct\fP const * h)"
876 .PP
877 get the number of weeks passed since 1 tishrey
878 .PP
879 \fBParameters:\fP
880 .RS 4
881 \fIh\fP pointer this hdate struct.
882 .RE
883 .PP
884 \fBReturns:\fP
885 .RS 4
886 the number of weeks passed since 1 tishrey.
887 .RE
888 .PP
889
890 .SS "\fBhdate_struct\fP* new_hdate ()"
891 .PP
892 creat a new hdate struct object, must be deleted using delete_hdate.
893 .PP
894 \fBReturns:\fP
895 .RS 4
896 a new hdate object
897 .RE
898 .PP
899
900 .SS "\fBhdate_struct\fP* delete_hdate (\fBhdate_struct\fP * h)"
901 .PP
902 delete an hdate struct object.
903 .PP
904 \fBParameters:\fP
905 .RS 4
906 \fIh\fP pointer this hdate struct.
907 .RE
908 .PP
909
910 .SS "char* hdate_get_version_string ()"
911 .PP
912 Return a static string, with the package name and version.
913 .PP
914 \fBReturns:\fP
915 .RS 4
916 a static string, with the package name and version
917 .RE
918 .PP
919
920 .SS "char* hdate_get_translator_string ()"
921 .PP
922 name of translator
923 .PP
924 \fBReturns:\fP
925 .RS 4
926 a static string with name of translator, or NULL if none.
927 .RE
928 .PP
929
930 .SH "Author"
931 .PP
932 Generated automatically by Doxygen for libhdate C language from the source code.
+0
-610
current/docs/man/man3/hdate_Hdate.3 less more
0 .TH "hdate::Hdate" 3 "6 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 hdate::Hdate \- \fBHdate\fP class.
5
6 .PP
7 .SH SYNOPSIS
8 .br
9 .PP
10 \fC#include <hdatepp.h>\fP
11 .PP
12 .SS "Public Member Functions"
13
14 .in +1c
15 .ti -1c
16 .RI "\fBHdate\fP ()"
17 .br
18 .RI "\fI\fBHdate\fP constructor. \fP"
19 .ti -1c
20 .RI "\fB~Hdate\fP ()"
21 .br
22 .RI "\fI\fBHdate\fP destructor. \fP"
23 .ti -1c
24 .RI "void \fBset_gdate\fP (int d, int m, int y)"
25 .br
26 .RI "\fIcompute date structure from the Gregorian date \fP"
27 .ti -1c
28 .RI "void \fBset_hdate\fP (int d, int m, int y)"
29 .br
30 .RI "\fIcompute date structure from the Hebrew date \fP"
31 .ti -1c
32 .RI "void \fBset_jd\fP (int jd)"
33 .br
34 .RI "\fIcompute date structure from the Julian day \fP"
35 .ti -1c
36 .RI "char * \fBget_format_date\fP (int s)"
37 .br
38 .RI "\fIget formated hebrew date. \fP"
39 .ti -1c
40 .RI "char * \fBget_day_of_week_string\fP (int s)"
41 .br
42 .RI "\fIget name of week day. \fP"
43 .ti -1c
44 .RI "char * \fBget_month_string\fP (int s)"
45 .br
46 .RI "\fIget name month. \fP"
47 .ti -1c
48 .RI "char * \fBget_hebrew_month_string\fP (int s)"
49 .br
50 .RI "\fIget name hebrew month. \fP"
51 .ti -1c
52 .RI "char * \fBget_holyday_string\fP (int s)"
53 .br
54 .RI "\fIget name hebrew holiday. \fP"
55 .ti -1c
56 .RI "int \fBget_holyday_type\fP ()"
57 .br
58 .RI "\fIget the hebrew holiday type. \fP"
59 .ti -1c
60 .RI "char * \fBget_parasha_string\fP (int s)"
61 .br
62 .RI "\fIget name hebrew parasha. \fP"
63 .ti -1c
64 .RI "char * \fBget_hebrew_year_string\fP ()"
65 .br
66 .RI "\fIget name hebrew year. \fP"
67 .ti -1c
68 .RI "char * \fBget_hebrew_day_string\fP ()"
69 .br
70 .RI "\fIget name hebrew hebrew day of the month \fP"
71 .ti -1c
72 .RI "int \fBget_parasha\fP ()"
73 .br
74 .RI "\fIget parash number \fP"
75 .ti -1c
76 .RI "int \fBget_holyday\fP ()"
77 .br
78 .RI "\fIget holiday number \fP"
79 .ti -1c
80 .RI "int \fBget_gday\fP ()"
81 .br
82 .RI "\fIget Gregorian day of the month \fP"
83 .ti -1c
84 .RI "int \fBget_gmonth\fP ()"
85 .br
86 .RI "\fIget Gregorian month \fP"
87 .ti -1c
88 .RI "int \fBget_gyear\fP ()"
89 .br
90 .RI "\fIget Gregorian year \fP"
91 .ti -1c
92 .RI "int \fBget_hday\fP ()"
93 .br
94 .RI "\fIget Hebrew day of the month \fP"
95 .ti -1c
96 .RI "int \fBget_hmonth\fP ()"
97 .br
98 .RI "\fIget Hebrew month \fP"
99 .ti -1c
100 .RI "int \fBget_hyear\fP ()"
101 .br
102 .RI "\fIget Hebrew year \fP"
103 .ti -1c
104 .RI "int \fBget_day_of_the_week\fP ()"
105 .br
106 .RI "\fIget the day of the week \fP"
107 .ti -1c
108 .RI "int \fBget_size_of_year\fP ()"
109 .br
110 .RI "\fIget the size of the Hebrew year in days \fP"
111 .ti -1c
112 .RI "int \fBget_new_year_day_of_the_week\fP ()"
113 .br
114 .RI "\fIget the day of the week of hebrew new years \fP"
115 .ti -1c
116 .RI "int \fBget_julian\fP ()"
117 .br
118 .RI "\fIget the Julian day number \fP"
119 .ti -1c
120 .RI "int \fBget_days\fP ()"
121 .br
122 .RI "\fIget the number of days sice Tishrey I \fP"
123 .ti -1c
124 .RI "int \fBget_weeks\fP ()"
125 .br
126 .RI "\fIget the number of weeks sice Tishrey I \fP"
127 .ti -1c
128 .RI "void \fBset_location\fP (double in_latitude, double in_longitude, int in_tz)"
129 .br
130 .RI "\fIset location \fP"
131 .ti -1c
132 .RI "int \fBget_sunrise\fP ()"
133 .br
134 .RI "\fIsunrise time \fP"
135 .ti -1c
136 .RI "int \fBget_sunset\fP ()"
137 .br
138 .RI "\fIsunset time \fP"
139 .ti -1c
140 .RI "int \fBget_first_light\fP ()"
141 .br
142 .RI "\fIfirst light time \fP"
143 .ti -1c
144 .RI "int \fBget_talit\fP ()"
145 .br
146 .RI "\fItalit time \fP"
147 .ti -1c
148 .RI "int \fBget_first_stars\fP ()"
149 .br
150 .RI "\fIfirst stars time \fP"
151 .ti -1c
152 .RI "int \fBget_three_stars\fP ()"
153 .br
154 .RI "\fIthree stars time \fP"
155 .ti -1c
156 .RI "int \fBget_sun_hour\fP ()"
157 .br
158 .RI "\fIsun light hour time \fP"
159 .ti -1c
160 .RI "int \fBget_midday\fP ()"
161 .br
162 .RI "\fImidday hour time \fP"
163 .ti -1c
164 .RI "char * \fBget_translator_string\fP ()"
165 .br
166 .RI "\fIname of translator \fP"
167 .ti -1c
168 .RI "void \fBset_diaspora\fP ()"
169 .br
170 .RI "\fIset this \fBhdate\fP object to use diaspora holidays and dates \fP"
171 .ti -1c
172 .RI "void \fBset_israel\fP ()"
173 .br
174 .RI "\fIset this \fBhdate\fP object to use israel holidays and dates \fP"
175 .in -1c
176 .SH "Detailed Description"
177 .PP
178 \fBHdate\fP class.
179
180 class for Hebrew/Gregorian date conversions
181 .SH "Constructor & Destructor Documentation"
182 .PP
183 .SS "hdate::Hdate::Hdate ()\fC [inline]\fP"
184 .PP
185 \fBHdate\fP constructor.
186 .PP
187 .SS "hdate::Hdate::~Hdate ()\fC [inline]\fP"
188 .PP
189 \fBHdate\fP destructor.
190 .PP
191 .SH "Member Function Documentation"
192 .PP
193 .SS "void hdate::Hdate::set_gdate (int d, int m, int y)\fC [inline]\fP"
194 .PP
195 compute date structure from the Gregorian date
196 .PP
197 \fBParameters:\fP
198 .RS 4
199 \fId\fP Day of month 1..31
200 .br
201 \fIm\fP Month 1..12 , if m or d is 0 return current date.
202 .br
203 \fIy\fP Year in 4 digits e.g. 2001
204 .RE
205 .PP
206
207 .SS "void hdate::Hdate::set_hdate (int d, int m, int y)\fC [inline]\fP"
208 .PP
209 compute date structure from the Hebrew date
210 .PP
211 \fBParameters:\fP
212 .RS 4
213 \fId\fP Day of month 1..31
214 .br
215 \fIm\fP Month 1..14 , if m or d is 0 return current date.
216 .br
217 \fIy\fP Year in 4 digits e.g. 5731
218 .RE
219 .PP
220
221 .SS "void hdate::Hdate::set_jd (int jd)\fC [inline]\fP"
222 .PP
223 compute date structure from the Julian day
224 .PP
225 \fBParameters:\fP
226 .RS 4
227 \fIjd\fP the julian day number.
228 .RE
229 .PP
230
231 .SS "char* hdate::Hdate::get_format_date (int s)\fC [inline]\fP"
232 .PP
233 get formated hebrew date.
234 .PP
235 return the short ( e.g. '1 Tishrey' ) or long (e.g. 'Tuesday 18 Tishrey 5763 Hol hamoed Sukot' ) formated date.
236 .PP
237 \fBParameters:\fP
238 .RS 4
239 \fIs\fP short flag.
240 .RE
241 .PP
242 \fBReturns:\fP
243 .RS 4
244 a static string of foramted date
245 .RE
246 .PP
247
248 .SS "char* hdate::Hdate::get_day_of_week_string (int s)\fC [inline]\fP"
249 .PP
250 get name of week day.
251 .PP
252 \fBParameters:\fP
253 .RS 4
254 \fIs\fP short flag true - returns a short string: sun, false returns: sunday.
255 .RE
256 .PP
257 \fBReturns:\fP
258 .RS 4
259 a static string of the day of the week
260 .RE
261 .PP
262
263 .SS "char* hdate::Hdate::get_month_string (int s)\fC [inline]\fP"
264 .PP
265 get name month.
266 .PP
267 \fBParameters:\fP
268 .RS 4
269 \fIs\fP short flag true - returns a short string: Mar, false returns: March.
270 .RE
271 .PP
272 \fBReturns:\fP
273 .RS 4
274 a static string of month name
275 .RE
276 .PP
277
278 .SS "char* hdate::Hdate::get_hebrew_month_string (int s)\fC [inline]\fP"
279 .PP
280 get name hebrew month.
281 .PP
282 \fBParameters:\fP
283 .RS 4
284 \fIs\fP short flag true - returns a short string.
285 .RE
286 .PP
287 \fBReturns:\fP
288 .RS 4
289 a static string of hebrew month name
290 .RE
291 .PP
292
293 .SS "char* hdate::Hdate::get_holyday_string (int s)\fC [inline]\fP"
294 .PP
295 get name hebrew holiday.
296 .PP
297 \fBParameters:\fP
298 .RS 4
299 \fIs\fP short flag true - returns a short string.
300 .RE
301 .PP
302 \fBReturns:\fP
303 .RS 4
304 a static string of hebrew holiday name
305 .RE
306 .PP
307
308 .SS "int hdate::Hdate::get_holyday_type ()\fC [inline]\fP"
309 .PP
310 get the hebrew holiday type.
311 .PP
312 \fBReturns:\fP
313 .RS 4
314 the holiday type (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday)
315 .RE
316 .PP
317
318 .SS "char* hdate::Hdate::get_parasha_string (int s)\fC [inline]\fP"
319 .PP
320 get name hebrew parasha.
321 .PP
322 \fBParameters:\fP
323 .RS 4
324 \fIs\fP short flag true - returns a short string.
325 .RE
326 .PP
327 \fBReturns:\fP
328 .RS 4
329 a static string of hebrew parash name
330 .RE
331 .PP
332
333 .SS "char* hdate::Hdate::get_hebrew_year_string ()\fC [inline]\fP"
334 .PP
335 get name hebrew year.
336 .PP
337 \fBReturns:\fP
338 .RS 4
339 a static string of hebrew year
340 .RE
341 .PP
342
343 .SS "char* hdate::Hdate::get_hebrew_day_string ()\fC [inline]\fP"
344 .PP
345 get name hebrew hebrew day of the month
346 .PP
347 \fBReturns:\fP
348 .RS 4
349 a static string of hebrew day of the month
350 .RE
351 .PP
352
353 .SS "int hdate::Hdate::get_parasha ()\fC [inline]\fP"
354 .PP
355 get parash number
356 .PP
357 \fBReturns:\fP
358 .RS 4
359 the hebrew parasha number
360 .RE
361 .PP
362
363 .SS "int hdate::Hdate::get_holyday ()\fC [inline]\fP"
364 .PP
365 get holiday number
366 .PP
367 \fBReturns:\fP
368 .RS 4
369 the hebrew holiday number
370 .RE
371 .PP
372
373 .SS "int hdate::Hdate::get_gday ()\fC [inline]\fP"
374 .PP
375 get Gregorian day of the month
376 .PP
377 \fBReturns:\fP
378 .RS 4
379 the Gregorian day of the month
380 .RE
381 .PP
382
383 .SS "int hdate::Hdate::get_gmonth ()\fC [inline]\fP"
384 .PP
385 get Gregorian month
386 .PP
387 \fBReturns:\fP
388 .RS 4
389 the Gregorian month
390 .RE
391 .PP
392
393 .SS "int hdate::Hdate::get_gyear ()\fC [inline]\fP"
394 .PP
395 get Gregorian year
396 .PP
397 \fBReturns:\fP
398 .RS 4
399 the Gregorian year
400 .RE
401 .PP
402
403 .SS "int hdate::Hdate::get_hday ()\fC [inline]\fP"
404 .PP
405 get Hebrew day of the month
406 .PP
407 \fBReturns:\fP
408 .RS 4
409 the Hebrew day of the month
410 .RE
411 .PP
412
413 .SS "int hdate::Hdate::get_hmonth ()\fC [inline]\fP"
414 .PP
415 get Hebrew month
416 .PP
417 \fBReturns:\fP
418 .RS 4
419 the Hebrew month
420 .RE
421 .PP
422
423 .SS "int hdate::Hdate::get_hyear ()\fC [inline]\fP"
424 .PP
425 get Hebrew year
426 .PP
427 \fBReturns:\fP
428 .RS 4
429 the Hebrew year
430 .RE
431 .PP
432
433 .SS "int hdate::Hdate::get_day_of_the_week ()\fC [inline]\fP"
434 .PP
435 get the day of the week
436 .PP
437 \fBReturns:\fP
438 .RS 4
439 the day of the week
440 .RE
441 .PP
442
443 .SS "int hdate::Hdate::get_size_of_year ()\fC [inline]\fP"
444 .PP
445 get the size of the Hebrew year in days
446 .PP
447 \fBReturns:\fP
448 .RS 4
449 the size of the Hebrew year in days
450 .RE
451 .PP
452
453 .SS "int hdate::Hdate::get_new_year_day_of_the_week ()\fC [inline]\fP"
454 .PP
455 get the day of the week of hebrew new years
456 .PP
457 \fBReturns:\fP
458 .RS 4
459 the day of the week of hebrew new years
460 .RE
461 .PP
462
463 .SS "int hdate::Hdate::get_julian ()\fC [inline]\fP"
464 .PP
465 get the Julian day number
466 .PP
467 \fBReturns:\fP
468 .RS 4
469 the Julian day number
470 .RE
471 .PP
472
473 .SS "int hdate::Hdate::get_days ()\fC [inline]\fP"
474 .PP
475 get the number of days sice Tishrey I
476 .PP
477 \fBReturns:\fP
478 .RS 4
479 the the number of days sice Tishrey I
480 .RE
481 .PP
482
483 .SS "int hdate::Hdate::get_weeks ()\fC [inline]\fP"
484 .PP
485 get the number of weeks sice Tishrey I
486 .PP
487 \fBReturns:\fP
488 .RS 4
489 the the number of weeks sice Tishrey I
490 .RE
491 .PP
492
493 .SS "void hdate::Hdate::set_location (double in_latitude, double in_longitude, int in_tz)\fC [inline]\fP"
494 .PP
495 set location
496 .PP
497 \fBParameters:\fP
498 .RS 4
499 \fIin_longitude\fP longitude to use in calculations degrees, negative values are east
500 .br
501 \fIin_latitude\fP latitude to use in calculations degrees, negative values are south
502 .br
503 \fIin_tz\fP time zone
504 .RE
505 .PP
506
507 .SS "int hdate::Hdate::get_sunrise ()\fC [inline]\fP"
508 .PP
509 sunrise time
510 .PP
511 \fBReturns:\fP
512 .RS 4
513 sunrise in minutes after midnight (00:00)
514 .RE
515 .PP
516
517 .SS "int hdate::Hdate::get_sunset ()\fC [inline]\fP"
518 .PP
519 sunset time
520 .PP
521 \fBReturns:\fP
522 .RS 4
523 sunset in minutes after midnight (00:00)
524 .RE
525 .PP
526
527 .SS "int hdate::Hdate::get_first_light ()\fC [inline]\fP"
528 .PP
529 first light time
530 .PP
531 \fBReturns:\fP
532 .RS 4
533 first light in minutes after midnight (00:00)
534 .RE
535 .PP
536
537 .SS "int hdate::Hdate::get_talit ()\fC [inline]\fP"
538 .PP
539 talit time
540 .PP
541 \fBReturns:\fP
542 .RS 4
543 talit time in minutes after midnight (00:00)
544 .RE
545 .PP
546
547 .SS "int hdate::Hdate::get_first_stars ()\fC [inline]\fP"
548 .PP
549 first stars time
550 .PP
551 \fBReturns:\fP
552 .RS 4
553 first stars in minutes after midnight (00:00)
554 .RE
555 .PP
556
557 .SS "int hdate::Hdate::get_three_stars ()\fC [inline]\fP"
558 .PP
559 three stars time
560 .PP
561 \fBReturns:\fP
562 .RS 4
563 three stars in minutes after midnight (00:00)
564 .RE
565 .PP
566
567 .SS "int hdate::Hdate::get_sun_hour ()\fC [inline]\fP"
568 .PP
569 sun light hour time
570 .PP
571 \fBReturns:\fP
572 .RS 4
573 sun light hour in minutes
574 .RE
575 .PP
576
577 .SS "int hdate::Hdate::get_midday ()\fC [inline]\fP"
578 .PP
579 midday hour time
580 .PP
581 \fBReturns:\fP
582 .RS 4
583 midday hour in minutes
584 .RE
585 .PP
586
587 .SS "char* hdate::Hdate::get_translator_string ()\fC [inline]\fP"
588 .PP
589 name of translator
590 .PP
591 \fBReturns:\fP
592 .RS 4
593 a static string with name of translator, or NULL if none
594 .RE
595 .PP
596
597 .SS "void hdate::Hdate::set_diaspora ()\fC [inline]\fP"
598 .PP
599 set this \fBhdate\fP object to use diaspora holidays and dates
600 .PP
601 .SS "void hdate::Hdate::set_israel ()\fC [inline]\fP"
602 .PP
603 set this \fBhdate\fP object to use israel holidays and dates
604 .PP
605
606
607 .SH "Author"
608 .PP
609 Generated automatically by Doxygen for libhdate C++ language from the source code.
+0
-103
current/docs/man/man3/hdate_struct.3 less more
0 .TH "hdate_struct" 3 "26 Jan 2008" "Version 1.4" "libhdate C language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 hdate_struct \- libhdate Hebrew date struct
5
6 .PP
7 .SH SYNOPSIS
8 .br
9 .PP
10 \fC#include <hdate.h>\fP
11 .PP
12 .SS "Data Fields"
13
14 .in +1c
15 .ti -1c
16 .RI "int \fBhd_day\fP"
17 .br
18 .ti -1c
19 .RI "int \fBhd_mon\fP"
20 .br
21 .ti -1c
22 .RI "int \fBhd_year\fP"
23 .br
24 .ti -1c
25 .RI "int \fBgd_day\fP"
26 .br
27 .ti -1c
28 .RI "int \fBgd_mon\fP"
29 .br
30 .ti -1c
31 .RI "int \fBgd_year\fP"
32 .br
33 .ti -1c
34 .RI "int \fBhd_dw\fP"
35 .br
36 .ti -1c
37 .RI "int \fBhd_size_of_year\fP"
38 .br
39 .ti -1c
40 .RI "int \fBhd_new_year_dw\fP"
41 .br
42 .ti -1c
43 .RI "int \fBhd_year_type\fP"
44 .br
45 .ti -1c
46 .RI "int \fBhd_jd\fP"
47 .br
48 .ti -1c
49 .RI "int \fBhd_days\fP"
50 .br
51 .ti -1c
52 .RI "int \fBhd_weeks\fP"
53 .br
54 .in -1c
55 .SH "Detailed Description"
56 .PP
57 libhdate Hebrew date struct
58 .SH "Field Documentation"
59 .PP
60 .SS "int \fBhdate_struct::hd_day\fP"
61 .PP
62 The number of day in the hebrew month (1..31).
63 .SS "int \fBhdate_struct::hd_mon\fP"
64 .PP
65 The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
66 .SS "int \fBhdate_struct::hd_year\fP"
67 .PP
68 The number of the hebrew year.
69 .SS "int \fBhdate_struct::gd_day\fP"
70 .PP
71 The number of the day in the month. (1..31)
72 .SS "int \fBhdate_struct::gd_mon\fP"
73 .PP
74 The number of the month 1..12 (1 - jan).
75 .SS "int \fBhdate_struct::gd_year\fP"
76 .PP
77 The number of the year.
78 .SS "int \fBhdate_struct::hd_dw\fP"
79 .PP
80 The day of the week 1..7 (1 - sunday).
81 .SS "int \fBhdate_struct::hd_size_of_year\fP"
82 .PP
83 The length of the year in days.
84 .SS "int \fBhdate_struct::hd_new_year_dw\fP"
85 .PP
86 The week day of Hebrew new year.
87 .SS "int \fBhdate_struct::hd_year_type\fP"
88 .PP
89 The number type of year.
90 .SS "int \fBhdate_struct::hd_jd\fP"
91 .PP
92 The Julian day number
93 .SS "int \fBhdate_struct::hd_days\fP"
94 .PP
95 The number of days passed since 1 tishrey
96 .SS "int \fBhdate_struct::hd_weeks\fP"
97 .PP
98 The number of weeks passed since 1 tishrey
99
100 .SH "Author"
101 .PP
102 Generated automatically by Doxygen for libhdate C language from the source code.
+0
-34
current/docs/man/man3/hdatepp.h.3 less more
0 .TH "src/hdatepp.h" 3 "6 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 src/hdatepp.h \- libhdate C++ language header.
5 .SH SYNOPSIS
6 .br
7 .PP
8 \fC#include <hdate.h>\fP
9 .br
10
11 .SS "Namespaces"
12
13 .in +1c
14 .ti -1c
15 .RI "namespace \fBhdate\fP"
16 .br
17 .in -1c
18 .SS "Classes"
19
20 .in +1c
21 .ti -1c
22 .RI "class \fBhdate::Hdate\fP"
23 .br
24 .RI "\fI\fBHdate\fP class. \fP"
25 .in -1c
26 .SH "Detailed Description"
27 .PP
28 libhdate C++ language header.
29
30 libhdate - Hebrew calendar library, the C++ language header file.
31 .SH "Author"
32 .PP
33 Generated automatically by Doxygen for libhdate C++ language from the source code.
+0
-1
current/examples/Makefile.am less more
0 SUBDIRS = hcal bindings
+0
-530
current/examples/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = examples
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
53 html-recursive info-recursive install-data-recursive \
54 install-exec-recursive install-info-recursive \
55 install-recursive installcheck-recursive installdirs-recursive \
56 pdf-recursive ps-recursive uninstall-info-recursive \
57 uninstall-recursive
58 ETAGS = etags
59 CTAGS = ctags
60 DIST_SUBDIRS = $(SUBDIRS)
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMDEP_FALSE = @AMDEP_FALSE@
64 AMDEP_TRUE = @AMDEP_TRUE@
65 AMTAR = @AMTAR@
66 AR = @AR@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 CPP = @CPP@
75 CPPFLAGS = @CPPFLAGS@
76 CXX = @CXX@
77 CXXCPP = @CXXCPP@
78 CXXDEPMODE = @CXXDEPMODE@
79 CXXFLAGS = @CXXFLAGS@
80 CYGPATH_W = @CYGPATH_W@
81 DATADIRNAME = @DATADIRNAME@
82 DEFS = @DEFS@
83 DEPDIR = @DEPDIR@
84 ECHO = @ECHO@
85 ECHO_C = @ECHO_C@
86 ECHO_N = @ECHO_N@
87 ECHO_T = @ECHO_T@
88 EGREP = @EGREP@
89 EXEEXT = @EXEEXT@
90 F77 = @F77@
91 FFLAGS = @FFLAGS@
92 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
93 GMSGFMT = @GMSGFMT@
94 GMSGFMT_015 = @GMSGFMT_015@
95 GREP = @GREP@
96 INSTALL_DATA = @INSTALL_DATA@
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
98 INSTALL_SCRIPT = @INSTALL_SCRIPT@
99 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
100 INTLLIBS = @INTLLIBS@
101 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
102 LDFLAGS = @LDFLAGS@
103 LIBICONV = @LIBICONV@
104 LIBINTL = @LIBINTL@
105 LIBOBJS = @LIBOBJS@
106 LIBS = @LIBS@
107 LIBTOOL = @LIBTOOL@
108 LN_S = @LN_S@
109 LTLIBICONV = @LTLIBICONV@
110 LTLIBINTL = @LTLIBINTL@
111 LTLIBOBJS = @LTLIBOBJS@
112 MAINT = @MAINT@
113 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
114 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
115 MAKEINFO = @MAKEINFO@
116 MSGFMT = @MSGFMT@
117 MSGFMT_015 = @MSGFMT_015@
118 MSGMERGE = @MSGMERGE@
119 OBJEXT = @OBJEXT@
120 PACKAGE = @PACKAGE@
121 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
122 PACKAGE_NAME = @PACKAGE_NAME@
123 PACKAGE_STRING = @PACKAGE_STRING@
124 PACKAGE_TARNAME = @PACKAGE_TARNAME@
125 PACKAGE_VERSION = @PACKAGE_VERSION@
126 PATH_SEPARATOR = @PATH_SEPARATOR@
127 PA_MODULES_PATH = @PA_MODULES_PATH@
128 PA_VERSION = @PA_VERSION@
129 PE_CFLAGS = @PE_CFLAGS@
130 PE_MODULES_PATH = @PE_MODULES_PATH@
131 PH_CONFIG_PATH = @PH_CONFIG_PATH@
132 PH_MODULES_PATH = @PH_MODULES_PATH@
133 PKG_CONFIG = @PKG_CONFIG@
134 POSUB = @POSUB@
135 PY_CFLAGS = @PY_CFLAGS@
136 PY_MODULES_PATH = @PY_MODULES_PATH@
137 PY_VERSION = @PY_VERSION@
138 RANLIB = @RANLIB@
139 RU_CFLAGS = @RU_CFLAGS@
140 RU_MODULES_PATH = @RU_MODULES_PATH@
141 RU_VERSION = @RU_VERSION@
142 SED = @SED@
143 SET_MAKE = @SET_MAKE@
144 SHELL = @SHELL@
145 STRIP = @STRIP@
146 USE_NLS = @USE_NLS@
147 VERSION = @VERSION@
148 VERSION_INFO = @VERSION_INFO@
149 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
150 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
151 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
152 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
153 WITH_PERL_FALSE = @WITH_PERL_FALSE@
154 WITH_PERL_TRUE = @WITH_PERL_TRUE@
155 WITH_PHP_FALSE = @WITH_PHP_FALSE@
156 WITH_PHP_TRUE = @WITH_PHP_TRUE@
157 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
158 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
159 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
160 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
161 XGETTEXT = @XGETTEXT@
162 XGETTEXT_015 = @XGETTEXT_015@
163 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
164 ac_ct_CC = @ac_ct_CC@
165 ac_ct_CXX = @ac_ct_CXX@
166 ac_ct_F77 = @ac_ct_F77@
167 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
168 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
169 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
170 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
171 am__include = @am__include@
172 am__leading_dot = @am__leading_dot@
173 am__quote = @am__quote@
174 am__tar = @am__tar@
175 am__untar = @am__untar@
176 bindir = @bindir@
177 build = @build@
178 build_alias = @build_alias@
179 build_cpu = @build_cpu@
180 build_os = @build_os@
181 build_vendor = @build_vendor@
182 datadir = @datadir@
183 datarootdir = @datarootdir@
184 docdir = @docdir@
185 dvidir = @dvidir@
186 exec_prefix = @exec_prefix@
187 have_pascal = @have_pascal@
188 have_perl = @have_perl@
189 have_php = @have_php@
190 have_php_config = @have_php_config@
191 have_python = @have_python@
192 have_ruby = @have_ruby@
193 have_swig = @have_swig@
194 host = @host@
195 host_alias = @host_alias@
196 host_cpu = @host_cpu@
197 host_os = @host_os@
198 host_vendor = @host_vendor@
199 htmldir = @htmldir@
200 includedir = @includedir@
201 infodir = @infodir@
202 install_sh = @install_sh@
203 libdir = @libdir@
204 libexecdir = @libexecdir@
205 localedir = @localedir@
206 localstatedir = @localstatedir@
207 mandir = @mandir@
208 mkdir_p = @mkdir_p@
209 oldincludedir = @oldincludedir@
210 pdfdir = @pdfdir@
211 prefix = @prefix@
212 program_transform_name = @program_transform_name@
213 psdir = @psdir@
214 sbindir = @sbindir@
215 sharedstatedir = @sharedstatedir@
216 sysconfdir = @sysconfdir@
217 target_alias = @target_alias@
218 SUBDIRS = hcal bindings
219 all: all-recursive
220
221 .SUFFIXES:
222 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
223 @for dep in $?; do \
224 case '$(am__configure_deps)' in \
225 *$$dep*) \
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
227 && exit 0; \
228 exit 1;; \
229 esac; \
230 done; \
231 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
232 cd $(top_srcdir) && \
233 $(AUTOMAKE) --gnu examples/Makefile
234 .PRECIOUS: Makefile
235 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
236 @case '$?' in \
237 *config.status*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
239 *) \
240 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
241 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
242 esac;
243
244 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
246
247 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
251
252 mostlyclean-libtool:
253 -rm -f *.lo
254
255 clean-libtool:
256 -rm -rf .libs _libs
257
258 distclean-libtool:
259 -rm -f libtool
260 uninstall-info-am:
261
262 # This directory's subdirectories are mostly independent; you can cd
263 # into them and run `make' without going through this Makefile.
264 # To change the values of `make' variables: instead of editing Makefiles,
265 # (1) if the variable is set in `config.status', edit `config.status'
266 # (which will cause the Makefiles to be regenerated when you run `make');
267 # (2) otherwise, pass the desired values on the `make' command line.
268 $(RECURSIVE_TARGETS):
269 @failcom='exit 1'; \
270 for f in x $$MAKEFLAGS; do \
271 case $$f in \
272 *=* | --[!k]*);; \
273 *k*) failcom='fail=yes';; \
274 esac; \
275 done; \
276 dot_seen=no; \
277 target=`echo $@ | sed s/-recursive//`; \
278 list='$(SUBDIRS)'; for subdir in $$list; do \
279 echo "Making $$target in $$subdir"; \
280 if test "$$subdir" = "."; then \
281 dot_seen=yes; \
282 local_target="$$target-am"; \
283 else \
284 local_target="$$target"; \
285 fi; \
286 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
287 || eval $$failcom; \
288 done; \
289 if test "$$dot_seen" = "no"; then \
290 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
291 fi; test -z "$$fail"
292
293 mostlyclean-recursive clean-recursive distclean-recursive \
294 maintainer-clean-recursive:
295 @failcom='exit 1'; \
296 for f in x $$MAKEFLAGS; do \
297 case $$f in \
298 *=* | --[!k]*);; \
299 *k*) failcom='fail=yes';; \
300 esac; \
301 done; \
302 dot_seen=no; \
303 case "$@" in \
304 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
305 *) list='$(SUBDIRS)' ;; \
306 esac; \
307 rev=''; for subdir in $$list; do \
308 if test "$$subdir" = "."; then :; else \
309 rev="$$subdir $$rev"; \
310 fi; \
311 done; \
312 rev="$$rev ."; \
313 target=`echo $@ | sed s/-recursive//`; \
314 for subdir in $$rev; do \
315 echo "Making $$target in $$subdir"; \
316 if test "$$subdir" = "."; then \
317 local_target="$$target-am"; \
318 else \
319 local_target="$$target"; \
320 fi; \
321 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
322 || eval $$failcom; \
323 done && test -z "$$fail"
324 tags-recursive:
325 list='$(SUBDIRS)'; for subdir in $$list; do \
326 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
327 done
328 ctags-recursive:
329 list='$(SUBDIRS)'; for subdir in $$list; do \
330 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
331 done
332
333 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) ' { files[$$0] = 1; } \
339 END { for (i in files) print i; }'`; \
340 mkid -fID $$unique
341 tags: TAGS
342
343 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
348 include_option=--etags-include; \
349 empty_fix=.; \
350 else \
351 include_option=--include; \
352 empty_fix=; \
353 fi; \
354 list='$(SUBDIRS)'; for subdir in $$list; do \
355 if test "$$subdir" = .; then :; else \
356 test ! -f $$subdir/TAGS || \
357 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
358 fi; \
359 done; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) ' { files[$$0] = 1; } \
365 END { for (i in files) print i; }'`; \
366 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
367 test -n "$$unique" || unique=$$empty_fix; \
368 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
369 $$tags $$unique; \
370 fi
371 ctags: CTAGS
372 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
373 $(TAGS_FILES) $(LISP)
374 tags=; \
375 here=`pwd`; \
376 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
377 unique=`for i in $$list; do \
378 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379 done | \
380 $(AWK) ' { files[$$0] = 1; } \
381 END { for (i in files) print i; }'`; \
382 test -z "$(CTAGS_ARGS)$$tags$$unique" \
383 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
384 $$tags $$unique
385
386 GTAGS:
387 here=`$(am__cd) $(top_builddir) && pwd` \
388 && cd $(top_srcdir) \
389 && gtags -i $(GTAGS_ARGS) $$here
390
391 distclean-tags:
392 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
393
394 distdir: $(DISTFILES)
395 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
396 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
397 list='$(DISTFILES)'; for file in $$list; do \
398 case $$file in \
399 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
400 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
401 esac; \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
404 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
405 dir="/$$dir"; \
406 $(mkdir_p) "$(distdir)$$dir"; \
407 else \
408 dir=''; \
409 fi; \
410 if test -d $$d/$$file; then \
411 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
412 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
413 fi; \
414 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
415 else \
416 test -f $(distdir)/$$file \
417 || cp -p $$d/$$file $(distdir)/$$file \
418 || exit 1; \
419 fi; \
420 done
421 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
422 if test "$$subdir" = .; then :; else \
423 test -d "$(distdir)/$$subdir" \
424 || $(mkdir_p) "$(distdir)/$$subdir" \
425 || exit 1; \
426 distdir=`$(am__cd) $(distdir) && pwd`; \
427 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
428 (cd $$subdir && \
429 $(MAKE) $(AM_MAKEFLAGS) \
430 top_distdir="$$top_distdir" \
431 distdir="$$distdir/$$subdir" \
432 distdir) \
433 || exit 1; \
434 fi; \
435 done
436 check-am: all-am
437 check: check-recursive
438 all-am: Makefile
439 installdirs: installdirs-recursive
440 installdirs-am:
441 install: install-recursive
442 install-exec: install-exec-recursive
443 install-data: install-data-recursive
444 uninstall: uninstall-recursive
445
446 install-am: all-am
447 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
448
449 installcheck: installcheck-recursive
450 install-strip:
451 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
452 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
453 `test -z '$(STRIP)' || \
454 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
455 mostlyclean-generic:
456
457 clean-generic:
458
459 distclean-generic:
460 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
461
462 maintainer-clean-generic:
463 @echo "This command is intended for maintainers to use"
464 @echo "it deletes files that may require special tools to rebuild."
465 clean: clean-recursive
466
467 clean-am: clean-generic clean-libtool mostlyclean-am
468
469 distclean: distclean-recursive
470 -rm -f Makefile
471 distclean-am: clean-am distclean-generic distclean-libtool \
472 distclean-tags
473
474 dvi: dvi-recursive
475
476 dvi-am:
477
478 html: html-recursive
479
480 info: info-recursive
481
482 info-am:
483
484 install-data-am:
485
486 install-exec-am:
487
488 install-info: install-info-recursive
489
490 install-man:
491
492 installcheck-am:
493
494 maintainer-clean: maintainer-clean-recursive
495 -rm -f Makefile
496 maintainer-clean-am: distclean-am maintainer-clean-generic
497
498 mostlyclean: mostlyclean-recursive
499
500 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
501
502 pdf: pdf-recursive
503
504 pdf-am:
505
506 ps: ps-recursive
507
508 ps-am:
509
510 uninstall-am: uninstall-info-am
511
512 uninstall-info: uninstall-info-recursive
513
514 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
515 clean clean-generic clean-libtool clean-recursive ctags \
516 ctags-recursive distclean distclean-generic distclean-libtool \
517 distclean-recursive distclean-tags distdir dvi dvi-am html \
518 html-am info info-am install install-am install-data \
519 install-data-am install-exec install-exec-am install-info \
520 install-info-am install-man install-strip installcheck \
521 installcheck-am installdirs installdirs-am maintainer-clean \
522 maintainer-clean-generic maintainer-clean-recursive \
523 mostlyclean mostlyclean-generic mostlyclean-libtool \
524 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
525 uninstall uninstall-am uninstall-info-am
526
527 # Tell versions [3.59,3.63) of GNU make to not export all variables.
528 # Otherwise a system limit (for SysV at least) may be exceeded.
529 .NOEXPORT:
+0
-6
current/examples/bindings/Makefile.am less more
0 SUBDIRS = pascal
1
2 EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_ruby.rb hdate_php.php
3
4 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings
5 libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_ruby.rb hdate_php.php
+0
-564
current/examples/bindings/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = examples/bindings
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
42 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
43 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
44 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
45 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
46 $(top_srcdir)/configure.in
47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
48 $(ACLOCAL_M4)
49 mkinstalldirs = $(install_sh) -d
50 CONFIG_CLEAN_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54 html-recursive info-recursive install-data-recursive \
55 install-exec-recursive install-info-recursive \
56 install-recursive installcheck-recursive installdirs-recursive \
57 pdf-recursive ps-recursive uninstall-info-recursive \
58 uninstall-recursive
59 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60 am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
65 am__installdirs = "$(DESTDIR)$(libhdatedocdir)"
66 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
67 DATA = $(libhdatedoc_DATA)
68 ETAGS = etags
69 CTAGS = ctags
70 DIST_SUBDIRS = $(SUBDIRS)
71 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
72 ACLOCAL = @ACLOCAL@
73 AMDEP_FALSE = @AMDEP_FALSE@
74 AMDEP_TRUE = @AMDEP_TRUE@
75 AMTAR = @AMTAR@
76 AR = @AR@
77 AUTOCONF = @AUTOCONF@
78 AUTOHEADER = @AUTOHEADER@
79 AUTOMAKE = @AUTOMAKE@
80 AWK = @AWK@
81 CC = @CC@
82 CCDEPMODE = @CCDEPMODE@
83 CFLAGS = @CFLAGS@
84 CPP = @CPP@
85 CPPFLAGS = @CPPFLAGS@
86 CXX = @CXX@
87 CXXCPP = @CXXCPP@
88 CXXDEPMODE = @CXXDEPMODE@
89 CXXFLAGS = @CXXFLAGS@
90 CYGPATH_W = @CYGPATH_W@
91 DATADIRNAME = @DATADIRNAME@
92 DEFS = @DEFS@
93 DEPDIR = @DEPDIR@
94 ECHO = @ECHO@
95 ECHO_C = @ECHO_C@
96 ECHO_N = @ECHO_N@
97 ECHO_T = @ECHO_T@
98 EGREP = @EGREP@
99 EXEEXT = @EXEEXT@
100 F77 = @F77@
101 FFLAGS = @FFLAGS@
102 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
103 GMSGFMT = @GMSGFMT@
104 GMSGFMT_015 = @GMSGFMT_015@
105 GREP = @GREP@
106 INSTALL_DATA = @INSTALL_DATA@
107 INSTALL_PROGRAM = @INSTALL_PROGRAM@
108 INSTALL_SCRIPT = @INSTALL_SCRIPT@
109 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
110 INTLLIBS = @INTLLIBS@
111 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
112 LDFLAGS = @LDFLAGS@
113 LIBICONV = @LIBICONV@
114 LIBINTL = @LIBINTL@
115 LIBOBJS = @LIBOBJS@
116 LIBS = @LIBS@
117 LIBTOOL = @LIBTOOL@
118 LN_S = @LN_S@
119 LTLIBICONV = @LTLIBICONV@
120 LTLIBINTL = @LTLIBINTL@
121 LTLIBOBJS = @LTLIBOBJS@
122 MAINT = @MAINT@
123 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
124 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
125 MAKEINFO = @MAKEINFO@
126 MSGFMT = @MSGFMT@
127 MSGFMT_015 = @MSGFMT_015@
128 MSGMERGE = @MSGMERGE@
129 OBJEXT = @OBJEXT@
130 PACKAGE = @PACKAGE@
131 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
132 PACKAGE_NAME = @PACKAGE_NAME@
133 PACKAGE_STRING = @PACKAGE_STRING@
134 PACKAGE_TARNAME = @PACKAGE_TARNAME@
135 PACKAGE_VERSION = @PACKAGE_VERSION@
136 PATH_SEPARATOR = @PATH_SEPARATOR@
137 PA_MODULES_PATH = @PA_MODULES_PATH@
138 PA_VERSION = @PA_VERSION@
139 PE_CFLAGS = @PE_CFLAGS@
140 PE_MODULES_PATH = @PE_MODULES_PATH@
141 PH_CONFIG_PATH = @PH_CONFIG_PATH@
142 PH_MODULES_PATH = @PH_MODULES_PATH@
143 PKG_CONFIG = @PKG_CONFIG@
144 POSUB = @POSUB@
145 PY_CFLAGS = @PY_CFLAGS@
146 PY_MODULES_PATH = @PY_MODULES_PATH@
147 PY_VERSION = @PY_VERSION@
148 RANLIB = @RANLIB@
149 RU_CFLAGS = @RU_CFLAGS@
150 RU_MODULES_PATH = @RU_MODULES_PATH@
151 RU_VERSION = @RU_VERSION@
152 SED = @SED@
153 SET_MAKE = @SET_MAKE@
154 SHELL = @SHELL@
155 STRIP = @STRIP@
156 USE_NLS = @USE_NLS@
157 VERSION = @VERSION@
158 VERSION_INFO = @VERSION_INFO@
159 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
160 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
161 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
162 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
163 WITH_PERL_FALSE = @WITH_PERL_FALSE@
164 WITH_PERL_TRUE = @WITH_PERL_TRUE@
165 WITH_PHP_FALSE = @WITH_PHP_FALSE@
166 WITH_PHP_TRUE = @WITH_PHP_TRUE@
167 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
168 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
169 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
170 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
171 XGETTEXT = @XGETTEXT@
172 XGETTEXT_015 = @XGETTEXT_015@
173 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
174 ac_ct_CC = @ac_ct_CC@
175 ac_ct_CXX = @ac_ct_CXX@
176 ac_ct_F77 = @ac_ct_F77@
177 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
178 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
179 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
180 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
181 am__include = @am__include@
182 am__leading_dot = @am__leading_dot@
183 am__quote = @am__quote@
184 am__tar = @am__tar@
185 am__untar = @am__untar@
186 bindir = @bindir@
187 build = @build@
188 build_alias = @build_alias@
189 build_cpu = @build_cpu@
190 build_os = @build_os@
191 build_vendor = @build_vendor@
192 datadir = @datadir@
193 datarootdir = @datarootdir@
194 docdir = @docdir@
195 dvidir = @dvidir@
196 exec_prefix = @exec_prefix@
197 have_pascal = @have_pascal@
198 have_perl = @have_perl@
199 have_php = @have_php@
200 have_php_config = @have_php_config@
201 have_python = @have_python@
202 have_ruby = @have_ruby@
203 have_swig = @have_swig@
204 host = @host@
205 host_alias = @host_alias@
206 host_cpu = @host_cpu@
207 host_os = @host_os@
208 host_vendor = @host_vendor@
209 htmldir = @htmldir@
210 includedir = @includedir@
211 infodir = @infodir@
212 install_sh = @install_sh@
213 libdir = @libdir@
214 libexecdir = @libexecdir@
215 localedir = @localedir@
216 localstatedir = @localstatedir@
217 mandir = @mandir@
218 mkdir_p = @mkdir_p@
219 oldincludedir = @oldincludedir@
220 pdfdir = @pdfdir@
221 prefix = @prefix@
222 program_transform_name = @program_transform_name@
223 psdir = @psdir@
224 sbindir = @sbindir@
225 sharedstatedir = @sharedstatedir@
226 sysconfdir = @sysconfdir@
227 target_alias = @target_alias@
228 SUBDIRS = pascal
229 EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_ruby.rb hdate_php.php
230 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings
231 libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_ruby.rb hdate_php.php
232 all: all-recursive
233
234 .SUFFIXES:
235 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/bindings/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu examples/bindings/Makefile
247 .PRECIOUS: Makefile
248 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265 mostlyclean-libtool:
266 -rm -f *.lo
267
268 clean-libtool:
269 -rm -rf .libs _libs
270
271 distclean-libtool:
272 -rm -f libtool
273 uninstall-info-am:
274 install-libhdatedocDATA: $(libhdatedoc_DATA)
275 @$(NORMAL_INSTALL)
276 test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)"
277 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
278 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
279 f=$(am__strip_dir) \
280 echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
281 $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \
282 done
283
284 uninstall-libhdatedocDATA:
285 @$(NORMAL_UNINSTALL)
286 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
287 f=$(am__strip_dir) \
288 echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
289 rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
290 done
291
292 # This directory's subdirectories are mostly independent; you can cd
293 # into them and run `make' without going through this Makefile.
294 # To change the values of `make' variables: instead of editing Makefiles,
295 # (1) if the variable is set in `config.status', edit `config.status'
296 # (which will cause the Makefiles to be regenerated when you run `make');
297 # (2) otherwise, pass the desired values on the `make' command line.
298 $(RECURSIVE_TARGETS):
299 @failcom='exit 1'; \
300 for f in x $$MAKEFLAGS; do \
301 case $$f in \
302 *=* | --[!k]*);; \
303 *k*) failcom='fail=yes';; \
304 esac; \
305 done; \
306 dot_seen=no; \
307 target=`echo $@ | sed s/-recursive//`; \
308 list='$(SUBDIRS)'; for subdir in $$list; do \
309 echo "Making $$target in $$subdir"; \
310 if test "$$subdir" = "."; then \
311 dot_seen=yes; \
312 local_target="$$target-am"; \
313 else \
314 local_target="$$target"; \
315 fi; \
316 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
317 || eval $$failcom; \
318 done; \
319 if test "$$dot_seen" = "no"; then \
320 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
321 fi; test -z "$$fail"
322
323 mostlyclean-recursive clean-recursive distclean-recursive \
324 maintainer-clean-recursive:
325 @failcom='exit 1'; \
326 for f in x $$MAKEFLAGS; do \
327 case $$f in \
328 *=* | --[!k]*);; \
329 *k*) failcom='fail=yes';; \
330 esac; \
331 done; \
332 dot_seen=no; \
333 case "$@" in \
334 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
335 *) list='$(SUBDIRS)' ;; \
336 esac; \
337 rev=''; for subdir in $$list; do \
338 if test "$$subdir" = "."; then :; else \
339 rev="$$subdir $$rev"; \
340 fi; \
341 done; \
342 rev="$$rev ."; \
343 target=`echo $@ | sed s/-recursive//`; \
344 for subdir in $$rev; do \
345 echo "Making $$target in $$subdir"; \
346 if test "$$subdir" = "."; then \
347 local_target="$$target-am"; \
348 else \
349 local_target="$$target"; \
350 fi; \
351 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
352 || eval $$failcom; \
353 done && test -z "$$fail"
354 tags-recursive:
355 list='$(SUBDIRS)'; for subdir in $$list; do \
356 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
357 done
358 ctags-recursive:
359 list='$(SUBDIRS)'; for subdir in $$list; do \
360 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
361 done
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 tags: TAGS
372
373 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
374 $(TAGS_FILES) $(LISP)
375 tags=; \
376 here=`pwd`; \
377 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
378 include_option=--etags-include; \
379 empty_fix=.; \
380 else \
381 include_option=--include; \
382 empty_fix=; \
383 fi; \
384 list='$(SUBDIRS)'; for subdir in $$list; do \
385 if test "$$subdir" = .; then :; else \
386 test ! -f $$subdir/TAGS || \
387 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
388 fi; \
389 done; \
390 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
391 unique=`for i in $$list; do \
392 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
393 done | \
394 $(AWK) ' { files[$$0] = 1; } \
395 END { for (i in files) print i; }'`; \
396 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
397 test -n "$$unique" || unique=$$empty_fix; \
398 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
399 $$tags $$unique; \
400 fi
401 ctags: CTAGS
402 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
403 $(TAGS_FILES) $(LISP)
404 tags=; \
405 here=`pwd`; \
406 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
407 unique=`for i in $$list; do \
408 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
409 done | \
410 $(AWK) ' { files[$$0] = 1; } \
411 END { for (i in files) print i; }'`; \
412 test -z "$(CTAGS_ARGS)$$tags$$unique" \
413 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
414 $$tags $$unique
415
416 GTAGS:
417 here=`$(am__cd) $(top_builddir) && pwd` \
418 && cd $(top_srcdir) \
419 && gtags -i $(GTAGS_ARGS) $$here
420
421 distclean-tags:
422 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
423
424 distdir: $(DISTFILES)
425 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
426 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
427 list='$(DISTFILES)'; for file in $$list; do \
428 case $$file in \
429 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
430 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
431 esac; \
432 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
433 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
434 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
435 dir="/$$dir"; \
436 $(mkdir_p) "$(distdir)$$dir"; \
437 else \
438 dir=''; \
439 fi; \
440 if test -d $$d/$$file; then \
441 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
442 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
443 fi; \
444 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
445 else \
446 test -f $(distdir)/$$file \
447 || cp -p $$d/$$file $(distdir)/$$file \
448 || exit 1; \
449 fi; \
450 done
451 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
452 if test "$$subdir" = .; then :; else \
453 test -d "$(distdir)/$$subdir" \
454 || $(mkdir_p) "$(distdir)/$$subdir" \
455 || exit 1; \
456 distdir=`$(am__cd) $(distdir) && pwd`; \
457 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
458 (cd $$subdir && \
459 $(MAKE) $(AM_MAKEFLAGS) \
460 top_distdir="$$top_distdir" \
461 distdir="$$distdir/$$subdir" \
462 distdir) \
463 || exit 1; \
464 fi; \
465 done
466 check-am: all-am
467 check: check-recursive
468 all-am: Makefile $(DATA)
469 installdirs: installdirs-recursive
470 installdirs-am:
471 for dir in "$(DESTDIR)$(libhdatedocdir)"; do \
472 test -z "$$dir" || $(mkdir_p) "$$dir"; \
473 done
474 install: install-recursive
475 install-exec: install-exec-recursive
476 install-data: install-data-recursive
477 uninstall: uninstall-recursive
478
479 install-am: all-am
480 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
481
482 installcheck: installcheck-recursive
483 install-strip:
484 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
485 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
486 `test -z '$(STRIP)' || \
487 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
488 mostlyclean-generic:
489
490 clean-generic:
491
492 distclean-generic:
493 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
494
495 maintainer-clean-generic:
496 @echo "This command is intended for maintainers to use"
497 @echo "it deletes files that may require special tools to rebuild."
498 clean: clean-recursive
499
500 clean-am: clean-generic clean-libtool mostlyclean-am
501
502 distclean: distclean-recursive
503 -rm -f Makefile
504 distclean-am: clean-am distclean-generic distclean-libtool \
505 distclean-tags
506
507 dvi: dvi-recursive
508
509 dvi-am:
510
511 html: html-recursive
512
513 info: info-recursive
514
515 info-am:
516
517 install-data-am: install-libhdatedocDATA
518
519 install-exec-am:
520
521 install-info: install-info-recursive
522
523 install-man:
524
525 installcheck-am:
526
527 maintainer-clean: maintainer-clean-recursive
528 -rm -f Makefile
529 maintainer-clean-am: distclean-am maintainer-clean-generic
530
531 mostlyclean: mostlyclean-recursive
532
533 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
534
535 pdf: pdf-recursive
536
537 pdf-am:
538
539 ps: ps-recursive
540
541 ps-am:
542
543 uninstall-am: uninstall-info-am uninstall-libhdatedocDATA
544
545 uninstall-info: uninstall-info-recursive
546
547 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
548 clean clean-generic clean-libtool clean-recursive ctags \
549 ctags-recursive distclean distclean-generic distclean-libtool \
550 distclean-recursive distclean-tags distdir dvi dvi-am html \
551 html-am info info-am install install-am install-data \
552 install-data-am install-exec install-exec-am install-info \
553 install-info-am install-libhdatedocDATA install-man \
554 install-strip installcheck installcheck-am installdirs \
555 installdirs-am maintainer-clean maintainer-clean-generic \
556 maintainer-clean-recursive mostlyclean mostlyclean-generic \
557 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
558 tags tags-recursive uninstall uninstall-am uninstall-info-am \
559 uninstall-libhdatedocDATA
560
561 # Tell versions [3.59,3.63) of GNU make to not export all variables.
562 # Otherwise a system limit (for SysV at least) may be exceeded.
563 .NOEXPORT:
+0
-46
current/examples/bindings/hdate_cpp.cpp less more
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 //
9 // Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
10 //
11 // This program 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 3 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, see <http://www.gnu.org/licenses/>.
23 //
24
25 #include <iostream>
26 #include <hdatepp.h>
27
28 using namespace std;
29 using namespace hdate;
30
31 int
32 main (int argc, char* argv[])
33 {
34 // create a new Hdate object
35 Hdate h;
36
37 // print gregorian date
38 cout << "Today is :" << endl;
39 cout << h.get_gday () << "," << h.get_gmonth () << "," << h.get_gyear () << endl;
40
41 // print hebrew date: 0 - long format
42 cout << h.get_format_date (0) << endl;
43
44 return 0;
45 }
+0
-39
current/examples/bindings/hdate_perl.pl less more
0 #! /usr/bin/perl
1
2 # hdate_perl.pl
3 # example file for libhdate.
4 #
5
6 #
7 # run: perl hdate_perl.pl
8 #
9
10 #
11 # Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
12 #
13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #
26
27 # Use the hdate perl module
28 use hdate;
29
30 # Create a new Hdate object
31 $h = hdatec::new_Hdate();
32
33 # Print gregorian date
34 print "Today is:\n";
35 print hdatec::Hdate_get_gday($h) . "," . hdatec::Hdate_get_gmonth($h) . "," . hdatec::Hdate_get_gyear($h) . "\n";
36
37 # Print hebrew date: 0 - long format
38 print hdatec::Hdate_get_format_date ($h, 0) . "\n";
+0
-39
current/examples/bindings/hdate_php.php less more
0 #! /usr/bin/php
1 <?php
2
3 # hdate_php.php
4 # example file for libhdate.
5 #
6
7 #
8 # run: php hdate_php.php
9 #
10
11 #
12 # Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
13 #
14 # This program is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or
17 # (at your option) any later version.
18 #
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License
25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #
27
28 # Create a new Hdate object
29 $h = new_Hdate();
30
31 # Print gregorian date
32 echo "Today is:\n";
33 echo Hdate_get_gday($h).".".Hdate_get_gmonth($h).",".Hdate_get_gyear($h)."\n";
34
35 # Print hebrew date: 0 - long format
36 echo Hdate_get_format_date($h, 0)."\n";
37
38 ?>
+0
-43
current/examples/bindings/hdate_python.py less more
0 #! /usr/bin/python
1
2 # hdate_python.py
3 # example file for libhdate.
4 #
5
6 #
7 # run: python hdate_python.py
8 #
9
10 #
11 # Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
12 #
13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #
26
27 # Use locale to support hdate localization
28 import locale
29 locale.setlocale(locale.LC_ALL,'')
30
31 # Import the hdate library
32 from hdate import *;
33
34 # Create a new Hdate object
35 h = Hdate ();
36
37 # Print gregorian date
38 print "Today is:"
39 print str (h.get_gday ()) + "," + str (h.get_gmonth ()) + "," + str (h.get_gyear ())
40
41 # Print hebrew date: 0 - long format
42 print h.get_format_date (0);
+0
-39
current/examples/bindings/hdate_ruby.rb less more
0 #! /usr/bin/ruby
1
2 # hdate_ruby.rb
3 # example file for libhdate.
4 #
5
6 #
7 # run: ruby hdate_ruby.rb
8 #
9
10 #
11 # Copyright (C) 2008 Yaacov Zamir <kzamir@walla.co.il>
12 #
13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #
26
27 # Import the hdate library
28 require 'hdate'
29
30 # Create a new Hdate object
31 h = Hdate::Hdate.new
32
33 # Print gregorian date
34 puts "Today is:"
35 puts "#{h.get_gday()},#{h.get_gmonth()},#{h.get_gyear()}"
36
37 # Print hebrew date: 0 - long format
38 puts h.get_format_date(0);
+0
-4
current/examples/bindings/pascal/Makefile.am less more
0 EXTRA_DIST = hdate_class.pp hdate_obj.pp hdate_pascal.pp
1
2 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings/pascal
3 libhdatedoc_DATA = hdate_class.pp hdate_obj.pp hdate_pascal.pp
+0
-406
current/examples/bindings/pascal/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = examples/bindings/pascal
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
42 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
43 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
44 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
45 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
46 $(top_srcdir)/configure.in
47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
48 $(ACLOCAL_M4)
49 mkinstalldirs = $(install_sh) -d
50 CONFIG_CLEAN_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
54 am__vpath_adj = case $$p in \
55 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
56 *) f=$$p;; \
57 esac;
58 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
59 am__installdirs = "$(DESTDIR)$(libhdatedocdir)"
60 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
61 DATA = $(libhdatedoc_DATA)
62 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
63 ACLOCAL = @ACLOCAL@
64 AMDEP_FALSE = @AMDEP_FALSE@
65 AMDEP_TRUE = @AMDEP_TRUE@
66 AMTAR = @AMTAR@
67 AR = @AR@
68 AUTOCONF = @AUTOCONF@
69 AUTOHEADER = @AUTOHEADER@
70 AUTOMAKE = @AUTOMAKE@
71 AWK = @AWK@
72 CC = @CC@
73 CCDEPMODE = @CCDEPMODE@
74 CFLAGS = @CFLAGS@
75 CPP = @CPP@
76 CPPFLAGS = @CPPFLAGS@
77 CXX = @CXX@
78 CXXCPP = @CXXCPP@
79 CXXDEPMODE = @CXXDEPMODE@
80 CXXFLAGS = @CXXFLAGS@
81 CYGPATH_W = @CYGPATH_W@
82 DATADIRNAME = @DATADIRNAME@
83 DEFS = @DEFS@
84 DEPDIR = @DEPDIR@
85 ECHO = @ECHO@
86 ECHO_C = @ECHO_C@
87 ECHO_N = @ECHO_N@
88 ECHO_T = @ECHO_T@
89 EGREP = @EGREP@
90 EXEEXT = @EXEEXT@
91 F77 = @F77@
92 FFLAGS = @FFLAGS@
93 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
94 GMSGFMT = @GMSGFMT@
95 GMSGFMT_015 = @GMSGFMT_015@
96 GREP = @GREP@
97 INSTALL_DATA = @INSTALL_DATA@
98 INSTALL_PROGRAM = @INSTALL_PROGRAM@
99 INSTALL_SCRIPT = @INSTALL_SCRIPT@
100 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
101 INTLLIBS = @INTLLIBS@
102 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
103 LDFLAGS = @LDFLAGS@
104 LIBICONV = @LIBICONV@
105 LIBINTL = @LIBINTL@
106 LIBOBJS = @LIBOBJS@
107 LIBS = @LIBS@
108 LIBTOOL = @LIBTOOL@
109 LN_S = @LN_S@
110 LTLIBICONV = @LTLIBICONV@
111 LTLIBINTL = @LTLIBINTL@
112 LTLIBOBJS = @LTLIBOBJS@
113 MAINT = @MAINT@
114 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
115 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
116 MAKEINFO = @MAKEINFO@
117 MSGFMT = @MSGFMT@
118 MSGFMT_015 = @MSGFMT_015@
119 MSGMERGE = @MSGMERGE@
120 OBJEXT = @OBJEXT@
121 PACKAGE = @PACKAGE@
122 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
123 PACKAGE_NAME = @PACKAGE_NAME@
124 PACKAGE_STRING = @PACKAGE_STRING@
125 PACKAGE_TARNAME = @PACKAGE_TARNAME@
126 PACKAGE_VERSION = @PACKAGE_VERSION@
127 PATH_SEPARATOR = @PATH_SEPARATOR@
128 PA_MODULES_PATH = @PA_MODULES_PATH@
129 PA_VERSION = @PA_VERSION@
130 PE_CFLAGS = @PE_CFLAGS@
131 PE_MODULES_PATH = @PE_MODULES_PATH@
132 PH_CONFIG_PATH = @PH_CONFIG_PATH@
133 PH_MODULES_PATH = @PH_MODULES_PATH@
134 PKG_CONFIG = @PKG_CONFIG@
135 POSUB = @POSUB@
136 PY_CFLAGS = @PY_CFLAGS@
137 PY_MODULES_PATH = @PY_MODULES_PATH@
138 PY_VERSION = @PY_VERSION@
139 RANLIB = @RANLIB@
140 RU_CFLAGS = @RU_CFLAGS@
141 RU_MODULES_PATH = @RU_MODULES_PATH@
142 RU_VERSION = @RU_VERSION@
143 SED = @SED@
144 SET_MAKE = @SET_MAKE@
145 SHELL = @SHELL@
146 STRIP = @STRIP@
147 USE_NLS = @USE_NLS@
148 VERSION = @VERSION@
149 VERSION_INFO = @VERSION_INFO@
150 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
151 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
152 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
153 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
154 WITH_PERL_FALSE = @WITH_PERL_FALSE@
155 WITH_PERL_TRUE = @WITH_PERL_TRUE@
156 WITH_PHP_FALSE = @WITH_PHP_FALSE@
157 WITH_PHP_TRUE = @WITH_PHP_TRUE@
158 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
159 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
160 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
161 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
162 XGETTEXT = @XGETTEXT@
163 XGETTEXT_015 = @XGETTEXT_015@
164 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
165 ac_ct_CC = @ac_ct_CC@
166 ac_ct_CXX = @ac_ct_CXX@
167 ac_ct_F77 = @ac_ct_F77@
168 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
169 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
170 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
171 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
172 am__include = @am__include@
173 am__leading_dot = @am__leading_dot@
174 am__quote = @am__quote@
175 am__tar = @am__tar@
176 am__untar = @am__untar@
177 bindir = @bindir@
178 build = @build@
179 build_alias = @build_alias@
180 build_cpu = @build_cpu@
181 build_os = @build_os@
182 build_vendor = @build_vendor@
183 datadir = @datadir@
184 datarootdir = @datarootdir@
185 docdir = @docdir@
186 dvidir = @dvidir@
187 exec_prefix = @exec_prefix@
188 have_pascal = @have_pascal@
189 have_perl = @have_perl@
190 have_php = @have_php@
191 have_php_config = @have_php_config@
192 have_python = @have_python@
193 have_ruby = @have_ruby@
194 have_swig = @have_swig@
195 host = @host@
196 host_alias = @host_alias@
197 host_cpu = @host_cpu@
198 host_os = @host_os@
199 host_vendor = @host_vendor@
200 htmldir = @htmldir@
201 includedir = @includedir@
202 infodir = @infodir@
203 install_sh = @install_sh@
204 libdir = @libdir@
205 libexecdir = @libexecdir@
206 localedir = @localedir@
207 localstatedir = @localstatedir@
208 mandir = @mandir@
209 mkdir_p = @mkdir_p@
210 oldincludedir = @oldincludedir@
211 pdfdir = @pdfdir@
212 prefix = @prefix@
213 program_transform_name = @program_transform_name@
214 psdir = @psdir@
215 sbindir = @sbindir@
216 sharedstatedir = @sharedstatedir@
217 sysconfdir = @sysconfdir@
218 target_alias = @target_alias@
219 EXTRA_DIST = hdate_class.pp hdate_obj.pp hdate_pascal.pp
220 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings/pascal
221 libhdatedoc_DATA = hdate_class.pp hdate_obj.pp hdate_pascal.pp
222 all: all-am
223
224 .SUFFIXES:
225 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
226 @for dep in $?; do \
227 case '$(am__configure_deps)' in \
228 *$$dep*) \
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
230 && exit 0; \
231 exit 1;; \
232 esac; \
233 done; \
234 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/bindings/pascal/Makefile'; \
235 cd $(top_srcdir) && \
236 $(AUTOMAKE) --gnu examples/bindings/pascal/Makefile
237 .PRECIOUS: Makefile
238 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
239 @case '$?' in \
240 *config.status*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
242 *) \
243 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
244 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
245 esac;
246
247 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249
250 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
252 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
254
255 mostlyclean-libtool:
256 -rm -f *.lo
257
258 clean-libtool:
259 -rm -rf .libs _libs
260
261 distclean-libtool:
262 -rm -f libtool
263 uninstall-info-am:
264 install-libhdatedocDATA: $(libhdatedoc_DATA)
265 @$(NORMAL_INSTALL)
266 test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)"
267 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
268 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
269 f=$(am__strip_dir) \
270 echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
271 $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \
272 done
273
274 uninstall-libhdatedocDATA:
275 @$(NORMAL_UNINSTALL)
276 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
277 f=$(am__strip_dir) \
278 echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
279 rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
280 done
281 tags: TAGS
282 TAGS:
283
284 ctags: CTAGS
285 CTAGS:
286
287
288 distdir: $(DISTFILES)
289 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
290 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
291 list='$(DISTFILES)'; for file in $$list; do \
292 case $$file in \
293 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
294 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
295 esac; \
296 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
297 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
298 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
299 dir="/$$dir"; \
300 $(mkdir_p) "$(distdir)$$dir"; \
301 else \
302 dir=''; \
303 fi; \
304 if test -d $$d/$$file; then \
305 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
306 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
307 fi; \
308 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
309 else \
310 test -f $(distdir)/$$file \
311 || cp -p $$d/$$file $(distdir)/$$file \
312 || exit 1; \
313 fi; \
314 done
315 check-am: all-am
316 check: check-am
317 all-am: Makefile $(DATA)
318 installdirs:
319 for dir in "$(DESTDIR)$(libhdatedocdir)"; do \
320 test -z "$$dir" || $(mkdir_p) "$$dir"; \
321 done
322 install: install-am
323 install-exec: install-exec-am
324 install-data: install-data-am
325 uninstall: uninstall-am
326
327 install-am: all-am
328 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
329
330 installcheck: installcheck-am
331 install-strip:
332 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
333 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
334 `test -z '$(STRIP)' || \
335 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
336 mostlyclean-generic:
337
338 clean-generic:
339
340 distclean-generic:
341 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
342
343 maintainer-clean-generic:
344 @echo "This command is intended for maintainers to use"
345 @echo "it deletes files that may require special tools to rebuild."
346 clean: clean-am
347
348 clean-am: clean-generic clean-libtool mostlyclean-am
349
350 distclean: distclean-am
351 -rm -f Makefile
352 distclean-am: clean-am distclean-generic distclean-libtool
353
354 dvi: dvi-am
355
356 dvi-am:
357
358 html: html-am
359
360 info: info-am
361
362 info-am:
363
364 install-data-am: install-libhdatedocDATA
365
366 install-exec-am:
367
368 install-info: install-info-am
369
370 install-man:
371
372 installcheck-am:
373
374 maintainer-clean: maintainer-clean-am
375 -rm -f Makefile
376 maintainer-clean-am: distclean-am maintainer-clean-generic
377
378 mostlyclean: mostlyclean-am
379
380 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
381
382 pdf: pdf-am
383
384 pdf-am:
385
386 ps: ps-am
387
388 ps-am:
389
390 uninstall-am: uninstall-info-am uninstall-libhdatedocDATA
391
392 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
393 distclean distclean-generic distclean-libtool distdir dvi \
394 dvi-am html html-am info info-am install install-am \
395 install-data install-data-am install-exec install-exec-am \
396 install-info install-info-am install-libhdatedocDATA \
397 install-man install-strip installcheck installcheck-am \
398 installdirs maintainer-clean maintainer-clean-generic \
399 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
400 ps ps-am uninstall uninstall-am uninstall-info-am \
401 uninstall-libhdatedocDATA
402
403 # Tell versions [3.59,3.63) of GNU make to not export all variables.
404 # Otherwise a system limit (for SysV at least) may be exceeded.
405 .NOEXPORT:
+0
-497
current/examples/bindings/pascal/hdate_class.pp less more
0
1 {
2 This unit create a Pascal object oriented class for libhdate.
3 This unit is created as a true object oriented class.
4
5 Copyright 2005-2008 Ido Kanner <idokan@gmail.com>
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 3 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,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU 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, see <http://www.gnu.org/licenses/>.
19
20 History:
21 25/01/2008 - Added support for newer API of hdate
22 12/01/2008 - Added support for dynamic linking
23 19-21/05/2005 - Initial creation
24
25 }
26 {$IFDEF FPC}
27 {$MODE OBJFPC} {$H+}
28 {.$DEFINE STATIC_LINK}
29 {$ELSE}
30 {$Warning 'This code was tested with Free Pascal Only.'}
31 {$ENDIF}
32
33
34 Unit hdate_class;
35
36 Interface
37
38 Uses {$IFDEF STATIC_LINK} hdate {$ELSE} hdate_dyn_pascal {$ENDIF}, SysUtils;
39
40 Type
41
42 { THdateClass }
43 { A class that handle libhdate in the spirit of Object Pascal }
44 THdateClass = Class
45 Private
46 fh : Phdate_struct;
47 FToDestroy : Boolean;
48 fJulianDay : LongInt;
49 fDiaspora : Boolean;
50 fHolyday,
51 fHolydayType : LongInt;
52 fParasha : LongInt;
53 fHebrewDay,
54 fHebrewYear : String;
55
56 Procedure InitValue;
57
58 Procedure SetHebDay (Value : LongInt);
59 Procedure SetGregDay (Value : LongInt);
60 Procedure SetJulianDay (Value : LongInt);
61 Procedure SetHebMonth (Value : LongInt);
62 Procedure SetGregMonth (Value : LongInt);
63 Procedure SetGregYear (Value : LongInt);
64 Procedure SetHebYear (Value : LongInt);
65 Procedure SetDiaspora (Value : Boolean);
66
67 Function GetGregDay : LongInt;
68 Function GetGregMonth : LongInt;
69 Function GetGregYear : LongInt;
70 Function GetHebDay : LongInt;
71 Function GetHebMonth : LongInt;
72 Function GetHebYear : LongInt;
73 Public
74 constructor Create; virtual; overload;
75 constructor Create (hDateRec : Phdate_struct); virtual; overload;
76 destructor Destroy; override;
77
78 { Assign an existed class of THdateClass propetires into the corrent class }
79 Procedure Assign (Source : THdateClass); virtual;
80
81 { Returns a string with formated date according with readable date of s }
82 Function get_format_date (s : LongInt) : String;
83 { Returns the name of day in a week }
84 Function get_day_of_week_string (s : LongInt) : String;
85 { Returns the name of the month }
86 Function get_month_string (s : LongInt) : String;
87 { Returns a name of the Hebrew month }
88 Function get_hebrew_month_string (s : LongInt) : String;
89 { Returnss the name of a Hebrew holyday }
90 Function get_holyday_string (s : LongInt) : String;
91 { Returns the week of the Paragrph that needed to read "Parashat Hashavua" }
92 Function get_parasha_string (s : LongInt) : String;
93 { Returns the day of the week }
94 Function GetDayOfWeek : LongInt;
95 { Returns the size of the Hebrew year }
96 Function get_size_of_year : LongInt;
97 { Returns the day remains until a new Hebrew year starts }
98 Function get_new_year_day_of_the_week : LongInt;
99 { Returns the number of days passed since the begining of the Hebrew year }
100 Function get_days : LongInt;
101 { Returns the number of weeks passed since the begining of the Hebrew year }
102 Function get_weeks : LongInt;
103 { Returns the sunrise in a given Latitude, Longitude and a timezone }
104 Function get_sunrise (latitude, longitude : Double; tz : LongInt) : LongInt;
105 { Returns the sunet in a given Latitude, Longitude and a timezone }
106 Function get_sunset (latitude, longitude : Double; tz : LongInt) : LongInt;
107 { Returns the sunrise in a given day, Latitude, Longitude and a Degree }
108 function get_deg_sunrise (Date : TDateTime;
109 latitude, longitude, deg : Double) : Longint;
110 { Returns the sunet in a given day, Latitude, Longitude and a Degree }
111 function get_deg_sunset (Date : TDateTime;
112 latitude, longitude, deg : Double) : Longint;
113 { Returns the Sha'a zmanit (temporary time) at a given date, Latitude and Longitude }
114 function get_temporary_time (Date : TDateTime;
115 latitude, longitude : Double) : Longint;
116 { Returns the minutes of first light at a given date, Latitude and Longitude }
117 function get_first_light (Date : TDateTime;
118 latitude, longitude : Double) : Longint;
119 { Returns the minutes to give a prayer (placing Tfiling and Talit) at a given date, Latitude and Longitude }
120 function get_prayer_time (Date : TDateTime;
121 latitude, longitude : Double) : Longint;
122 { Returns the minutes of a sunrise at a given date, Latitude and Longitude }
123 function get_time_full_sunrise (Date : TDateTime;
124 latitude, longitude : Double) : Longint;
125 { Returns the minutes of the midday at a given date, Latitude and Longitude }
126 function get_time_full_midday (Date : TDateTime;
127 latitude, longitude : Double) : Longint;
128 { Returns the minutes of a sunet at a given date, Latitude and Longitude }
129 function get_time_full_sunset (Date : TDateTime;
130 latitude, longitude : Double) : Longint;
131 { Returns the minutes to when the first star is showen at a given date, Latitude and Longitude }
132 function get_time_full_first_stars (Date : TDateTime;
133 latitude, longitude : Double) : Longint;
134 { Returns the minutes to when three stars are showen at a given date, Latitude and Longitude }
135 function get_time_full_three_stars (Date : TDateTime;
136 latitude, longitude : Double) : Longint;
137
138 { Get The number of days passed since the beginig of the Hebrew year }
139 property Days : LongInt read get_days;
140 { Get The day of the week }
141 property DayOfWeek : LongInt read GetDayOfWeek;
142 { Get The Hebrew day }
143 property HebrewDay : String read fHebrewDay;
144 { Get The Hebrew year }
145 property HebrewYear : String read fHebrewYear;
146 { Get The Hebrew Holyday }
147 property Holyday : LongInt read fHolyday;
148 { Get The type of the Hebrew Holyday }
149 property HolydayType : LongInt read fHolydayType;
150 { Get The number of days to the next year }
151 property NewYearDayOfWeek : LongInt read get_new_year_day_of_the_week;
152 { Get The week parahraph that needed to be read (Parashat Ha'Shavua) }
153 property Parasha : LongInt read fParasha;
154 { Get The number of weeks that passed since the end of the year }
155 property Weeks : LongInt read get_weeks;
156 { Get The size of the the year }
157 property YearSize : Longint read get_size_of_year;
158 Published
159 { Get/Set The Hebrew day }
160 property HebDay : LongInt read GetHebDay write SetHebDay;
161 { Get/Set The Gregorian day }
162 property GregDay : LongInt read GetGregDay write SetGregDay;
163 { Get/Set Set wether we are in Israel or not }
164 property Diaspora : Boolean read fDiaspora write SetDiaspora default True;
165 { Get/Set The Julian day }
166 property JulianDay : LongInt read fJulianDay write SetJulianDay;
167 { Get/Set The Hebrew Month }
168 property HebMonth : LongInt read GetHebMonth write SetHebMonth;
169 { Get/Set The Gregorian month }
170 property GregMonth : LongInt read GetGregMonth write SetGregMonth;
171 { Get/Set To Destroy the hdate record pointer, or the destruction will be made outside the record }
172 property ToDestroy : Boolean read FToDestroy write fToDestroy default True;
173 { Get/Set The gregorian year }
174 property GregYear : LongInt read GetGregYear write SetGregYear;
175 { Get/Set The Hebrew year }
176 property HebYear : LongInt read GetHebYear write SetHebYear;
177 End;
178
179 Implementation
180
181 Procedure THdateClass.InitValue;
182 Var
183 ADay, AMonth, AYear : Word;
184 Begin
185 DecodeDate(SysUtils.Now, AYear, AMonth, ADay);
186 hdate_set_gdate (Fh, ADay, AMonth, AYear);
187 hdate_set_hdate (fh, hdate_get_hday (fh), hdate_get_hmonth (fh), hdate_get_hyear (fh));
188
189 fHebrewDay := StrPas (hdate_get_int_string (fh^.hd_day));
190 fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
191
192 SetJulianDay (hdate_gdate_to_jd (ADay, AMonth, AYear));
193 SetDiaspora (True);
194 End;
195
196 constructor THdateClass.Create;
197 Begin
198 fh := Nil;
199 fh := new_hdate();
200 fToDestroy := True;
201 InitValue;
202 End;
203
204 constructor THdateClass.Create (hDateRec : Phdate_struct);
205 Begin
206 fh := hDateRec;
207 fToDestroy := False;
208 InitValue;
209 End;
210
211 destructor THdateClass.Destroy;
212 Begin
213 If fToDestroy Then
214 delete_hdate (fh);
215
216 inherited;
217 End;
218
219 Procedure THdateClass.SetHebDay (Value : LongInt);
220 Begin
221 hdate_set_hdate (Fh, Value, GetHebMonth, GetHebYear);
222 fHebrewDay := StrPas (hdate_get_int_string (fh^.hd_day));
223 End;
224
225 Procedure THdateClass.SetGregDay (Value : LongInt);
226 Begin
227 hdate_set_gdate (fh, Value, GetGregMonth, GetGregYear);
228 End;
229
230 Procedure THdateClass.SetJulianDay (Value : LongInt);
231 Begin
232 fJulianDay := Value;
233 hdate_set_jd (fh, fJulianDay);
234 End;
235
236 Procedure THdateClass.SetHebMonth (Value : LongInt);
237 Begin
238 hdate_set_hdate (Fh, GetHebDay, Value, GetHebYear);
239 End;
240
241 Procedure THdateClass.SetGregMonth (Value : LongInt);
242 Begin
243 hdate_set_gdate (fh, GetGregDay, Value, GetGregYear);
244 End;
245
246 Procedure THdateClass.SetHebYear (Value : LongInt);
247 Begin
248 hdate_set_hdate (fh, GetHebDay, GetGregMonth, Value);
249 fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
250 End;
251
252 Procedure THdateClass.SetGregYear (Value : LongInt);
253 Begin
254 hdate_set_gdate (fh, GetGregDay, GetGregMonth, Value);
255 End;
256
257 Procedure THdateClass.SetDiaspora (Value : Boolean);
258 Begin
259 fDiaspora := Value;
260 fHolyday := hdate_get_holyday (fh, Longint(FDiaspora));
261 fHolydayType := hdate_get_holyday_type (fHolyday);
262 fParasha := hdate_get_parasha (fh, Longint(fDiaspora));
263 End;
264
265 Function THdateClass.GetGregDay : LongInt;
266 Begin
267 Result := hdate_get_gday (fh);
268 End;
269
270 Function THdateClass.GetGregMonth : LongInt;
271 Begin
272 Result := hdate_get_gmonth (fh);
273 End;
274
275 Function THdateClass.GetGregYear : LongInt;
276 Begin
277 Result := hdate_get_gyear (fh);
278 End;
279
280 Function THdateClass.GetHebDay : LongInt;
281 Begin
282 Result := hdate_get_hday (fh);
283 End;
284
285 Function THdateClass.GetHebMonth : LongInt;
286 Begin
287 Result := hdate_get_hmonth (fh);
288 End;
289
290 Function THdateClass.GetHebYear : LongInt;
291 Begin
292 Result := hdate_get_hyear (fh);
293 End;
294
295 Procedure THdateClass.Assign (Source : THdateClass);
296 Begin
297 If (Not Assigned(Source)) Then
298 Begin
299 raise Exception.Create ('Source is not allocated.');
300 End;
301
302 // Should never happned ... but just in case...
303 Assert (Assigned(Source), 'Source is not allocated.');
304
305 fToDestroy := Source.ToDestroy;
306 HebDay := Source.HebDay;
307 GregDay := Source.GregDay;
308 HebMonth := Source.HebMonth;
309 GregMonth := Source.GregMonth;
310 HebYear := Source.HebYear;
311 GregYear := Source.GregYear;
312
313 SetJulianDay (Source.JulianDay);
314 SetDiaspora (Source.Diaspora);
315 End;
316
317 Function THdateClass.get_format_date (s : LongInt) : String;
318 Begin
319 Result := StrPas (hdate_get_format_date (fh, Longint(fDiaspora), s));
320 End;
321
322 Function THdateClass.get_day_of_week_string (s : LongInt) : String;
323 Begin
324 Result := StrPas (hdate_get_day_string (fh^.hd_dw, s));
325 End;
326
327 Function THdateClass.get_month_string (s : LongInt) : String;
328 Begin
329 Result := StrPas (hdate_get_month_string (fh^.gd_mon, s));
330 End;
331
332 Function THdateClass.get_hebrew_month_string (s : LongInt) : String;
333 Begin
334 Result := StrPas (hdate_get_hebrew_month_string (fh^.hd_mon, s));
335 End;
336
337 Function THdateClass.get_holyday_string (s : LongInt) : String;
338 Begin
339 Result := StrPas (hdate_get_holyday_string (fHolyday, s));
340 End;
341
342 Function THdateClass.get_parasha_string (s : LongInt) : String;
343 Begin
344 Result := StrPas (hdate_get_parasha_string (fParasha, s));
345 End;
346
347 Function THdateClass.GetDayOfWeek : LongInt;
348 Begin
349 Result := hdate_get_day_of_the_week (fh);
350 End;
351
352 Function THdateClass.get_size_of_year : LongInt;
353 Begin
354 Result := hdate_get_size_of_year (fh);
355 End;
356
357 Function THdateClass.get_new_year_day_of_the_week : LongInt;
358 Begin
359 Result := hdate_get_new_year_day_of_the_week (fh);
360 End;
361
362 Function THdateClass.get_days : LongInt;
363 Begin
364 Result := hdate_get_days (fh);
365 End;
366
367 Function THdateClass.get_weeks : LongInt;
368 Begin
369 Result := hdate_get_weeks (fh);
370 End;
371
372 Function THdateClass.get_sunrise (latitude, longitude : Double; tz : LongInt) : LongInt;
373 Var
374 sunrise,
375 sunset : LongInt;
376 Begin
377 hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
378 Result := sunrise + tz * 60;
379 End;
380
381 Function THdateClass.get_sunset (latitude, longitude : Double; tz : LongInt) : LongInt;
382 Var
383 sunrise,
384 sunset : LongInt;
385 Begin
386 hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
387 Result := sunset + tz * 60;
388 End;
389
390 type
391 TSun_Time_Deg_Type = (stdtSunrise, stdtSunset);
392
393 Function get_sun_time_deg(Date : TDateTime; latitude,longitude,deg : Double; Return_Type :
394 TSun_Time_Deg_Type) : Longint;
395 var
396 Year,
397 Month,
398 Day : word;
399 sunrise,
400 sunset : Longint;
401 begin
402 DecodeDate (Date, Year, Month, Day);
403 hdate_get_utc_sun_time_deg(Day, Month, Year, latitude, longitude, deg, @sunrise, @sunset);
404 case Return_Type of
405 stdtSunrise : Result := sunrise;
406 stdtSunset : Result := sunset;
407 end;
408 end;
409
410 function THdateClass.get_deg_sunrise ( Date : TDateTime; latitude,longitude,deg : Double ) : Longint;
411 begin
412 Result := get_sun_time_deg(Date, latitude, longitude, deg, stdtSunrise);
413 end;
414
415 function THdateClass.get_deg_sunset ( Date : TDateTime; latitude,longitude,deg : Double ) : Longint;
416 begin
417 Result := get_sun_time_deg(Date, latitude, longitude, deg, stdtSunset);
418 end;
419
420 type
421 TSun_time_full_type = (stftTemporaryTime, stftFirstLight, stftPrayerTime,
422 stftSunrise, stftMidday, stftSunset, stftFirstStars,
423 stftThreeStars);
424
425 Function get_sun_time_full_type(Date : TDateTime; latitude,longitude : Double; Return_Type :
426 TSun_time_full_type) : Longint;
427 var
428 Year,
429 Month,
430 Day : word;
431 sun_hour,
432 first_light,
433 talit,
434 sunrise,
435 midday,
436 sunset,
437 first_stars,
438 three_stars : Longint;
439 begin
440 DecodeDate (Date, Year, Month, Day);
441 hdate_get_utc_sun_time_full(Day, Month, Year, latitude, longitude, @sun_hour, @first_light, @talit,
442 @sunrise, @midday, @sunset, @first_stars, @three_stars);
443 case Return_Type of
444 stftTemporaryTime : Result := sun_hour;
445 stftFirstLight : Result := first_light;
446 stftPrayerTime : Result := talit;
447 stftSunrise : Result := sunrise;
448 stftMidday : Result := midday;
449 stftSunset : Result := sunset;
450 stftFirstStars : Result := first_stars;
451 stftThreeStars : Result := three_stars;
452 end;
453 end;
454
455 function THdateClass.get_temporary_time ( Date : TDateTime; latitude,longitude : Double ) : Longint;
456 begin
457 Result := get_sun_time_full_type(Date, latitude,longitude, stftTemporaryTime);
458 end;
459
460 function THdateClass.get_first_light ( Date : TDateTime; latitude,longitude : Double ) : Longint;
461 begin
462 Result := get_sun_time_full_type(Date, latitude,longitude, stftFirstLight);
463 end;
464
465 function THdateClass.get_prayer_time ( Date : TDateTime; latitude,longitude : Double ) : Longint;
466 begin
467 Result := get_sun_time_full_type(Date, latitude,longitude, stftPrayerTime);
468 end;
469
470 function THdateClass.get_time_full_sunrise ( Date : TDateTime; latitude,longitude : Double ) : Longint;
471 begin
472 Result := get_sun_time_full_type(Date, latitude,longitude, stftSunrise);
473 end;
474
475 function THdateClass.get_time_full_midday ( Date : TDateTime; latitude,longitude : Double ) : Longint;
476 begin
477 Result := get_sun_time_full_type(Date, latitude,longitude, stftMidday);
478 end;
479
480 function THdateClass.get_time_full_sunset ( Date : TDateTime; latitude,longitude : Double ) : Longint;
481 begin
482 Result := get_sun_time_full_type(Date, latitude,longitude, stftSunset);
483 end;
484
485 function THdateClass.get_time_full_first_stars ( Date : TDateTime; latitude,longitude : Double ) : Longint;
486 begin
487 Result := get_sun_time_full_type(Date, latitude,longitude, stftFirstStars);
488 end;
489
490 function THdateClass.get_time_full_three_stars ( Date : TDateTime; latitude,longitude : Double ) : Longint;
491 begin
492 Result := get_sun_time_full_type(Date, latitude,longitude, stftThreeStars);
493 end;
494
495 End.
496
+0
-450
current/examples/bindings/pascal/hdate_obj.pp less more
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
-151
current/examples/bindings/pascal/hdate_pascal.pp less more
0 (* hdate_pascal.pp
1 example file for libhdate.
2
3 compile: fpc hdate_pascal.pp
4
5 Copyright (C) 2005-2008 Ido Kaner
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 3 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,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU 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, see <http://www.gnu.org/licenses/>.
19 *)
20
21 {$MODE OBJFPC} {$H+}
22 {$IFDEF MSWINDOWS}
23 {$APPTYPE CONSOLE} //Make sure that in Windows we will be in a console mode
24 {$ENDIF}
25 program hdate_demo;
26 uses hdate_class, SysUtils, DateUtils;
27
28 type
29 { A record to store city information regarding the Latitude, Longitude and it's name }
30 TCityDetauls = record
31 { The latitude of a given city}
32 Latitude : Double;
33 { The longitude of a given city}
34 Longitude : Double;
35 { The name of a city}
36 Name : ShortString;
37 end;
38
39 // Latitude and Longitude where Taken from from http://wwp.greenwichmeantime.com/time-zone/asia/israel/cities.htm
40 const
41 { The cities in Israel that we have information regarding the Latitude and Longitude }
42 Cities : array[0..19] of TCityDetauls =
43 (
44 { 00 } ( Latitude : 31.78; Longitude : -35.22; Name : 'Jerusalem' ),
45 { 01 } ( Latitude : 32.07; Longitude : -34.77; Name : 'Tel Aviv-Jafa' ),
46 { 02 } ( Latitude : 32.82; Longitude : -34.99; Name : 'Hifa' ),
47 { 03 } ( Latitude : 31.96; Longitude : -34.80; Name : 'Rishon Lezion' ),
48 { 04 } ( Latitude : 31.80; Longitude : -34.64; Name : 'Ashdod' ),
49 { 05 } ( Latitude : 31.25; Longitude : -34.80; Name : 'Be''er Sheva' ),
50 { 06 } ( Latitude : 32.09; Longitude : -34.88; Name : 'Petach Tiqva' ),
51 { 07 } ( Latitude : 32.33; Longitude : -34.86; Name : 'Netanya' ),
52 { 08 } ( Latitude : 32.02; Longitude : -34.76; Name : 'Holon' ),
53 { 09 } ( Latitude : 32.09; Longitude : -34.85; Name : 'B''ene Beraq' ),
54 { 10 } ( Latitude : 32.02; Longitude : -34.75; Name : 'Bat Yam' ),
55 { 11 } ( Latitude : 32.08; Longitude : -34.80; Name : 'Ramat Gan' ),
56 { 12 } ( Latitude : 31.67; Longitude : -34.56; Name : 'Ashqelon' ),
57 { 13 } ( Latitude : 31.89; Longitude : -34.80; Name : 'Rehovot' ),
58 { 14 } ( Latitude : 32.17; Longitude : -34.84; Name : 'Herzeliyya' ),
59 { 15 } ( Latitude : 32.19; Longitude : -34.91; Name : 'Kfar Saba' ),
60 { 16 } ( Latitude : 32.45; Longitude : -34.92; Name : 'Hadera' ),
61 { 17 } ( Latitude : 32.19; Longitude : -34.88; Name : 'Ra''anana' ),
62 { 18 } ( Latitude : 31.96; Longitude : -34.90; Name : 'Lod' ),
63 { 19 } ( Latitude : 31.93; Longitude : -34.86; Name : 'Ramla' )
64 );
65
66 { Convert the given minutes into full TTime and retrun it as a string
67 Params:
68 minute - The number of minutes since the start of the day}
69 function MinutesToHours(minute : Longint) : String;
70 begin
71 MinutesToHours := TimeToStr(OneMinute * minute);
72 end;
73
74 var
75 { Our hdate class }
76 h : THdateClass;
77 { A variable that saves the flag for Israel or the rest of the world }
78 diaspora : Integer;
79 { Israel's time zone in hours, used to adjust utc times (GMT) to locale time }
80 time_zone : Integer;
81 { Temporary Storing of the minutes for specific query }
82 tmp : Longint;
83 { The degree of the sunrise/sunset that we are looking at, default is 90 }
84 deg : Longint;
85 { The Longitude of a city }
86 Long : Double;
87 { The Latitude of a city }
88 Lat : Double;
89 { The name of a city }
90 LongLatName : String;
91 { The for loop counter }
92 i : integer;
93
94 begin
95 h := THdateClass.Create;
96 diaspora := 0;
97 time_zone := 2;
98
99 try
100 // print gregorian date
101 writeln (Format('Today: %0.2d/%0.2d/%4d',[h.GregDay,h.GregMonth,h.GregYear]));
102
103 // print hebrew date
104 writeln (h.get_format_date (diaspora));
105 writeln;
106
107 writeln('Corrent Time: ', TimeToStr(Now));
108 writeln;
109
110 for i := Low(Cities) to High(Cities) do
111 begin
112 Long := Cities[i].Longitude;
113 Lat := Cities[i].Latitude;
114 LongLatName := Cities[i].Name;
115
116 Writeln('City: ', LongLatName);
117 Writeln(#9'Latitude: ', FloatToStr(Lat));
118 Writeln(#9'Longitude: ', FloatToStr(Long));
119
120 // print Time using a degree of sunrise/sunset
121 deg := 90;
122 writeln(#9'Degree: ', deg);
123 tmp := h.get_deg_sunrise(Now, Lat, Long, deg);
124 writeln (#9'hour of sunrise: ', MinutesToHours(tmp + time_zone * 60));
125 tmp := h.get_deg_sunset(Now, Lat, Long, deg);
126 writeln(#9'hour of sunset: ', MinutesToHours(tmp + time_zone * 60));
127
128 //print information
129 tmp := h.get_temporary_time(Now, Lat, Long);
130 writeln(#9'Temporary hour length: ', MinutesToHours(tmp));
131 tmp := h.get_first_light(Now, Lat, Long);
132 writeln(#9'first light: ', MinutesToHours(tmp + time_zone * 60));
133 tmp := h.get_prayer_time(Now, Lat, Long);
134 writeln(#9'talit time: ', MinutesToHours(tmp + time_zone * 60));
135 tmp := h.get_time_full_sunrise(Now, Lat, Long);
136 writeln(#9'full sunrise: ', MinutesToHours(tmp + time_zone * 60));
137 tmp := h.get_time_full_midday(Now, Lat, Long);
138 writeln(#9'full midday: ', MinutesToHours(tmp + time_zone * 60));
139 tmp := h.get_time_full_sunset(Now, Lat, Long);
140 writeln(#9'full sunset: ', MinutesToHours(tmp + time_zone * 60));
141 tmp := h.get_time_full_first_stars(Now, Lat, Long);
142 writeln(#9'first stars: ', MinutesToHours(tmp + time_zone * 60));
143 tmp := h.get_time_full_three_stars(Now, Lat, Long);
144 writeln(#9'three stars: ', MinutesToHours(tmp + time_zone * 60));
145 writeln;
146 end;
147 finally
148 h.Free;
149 end;
150 end.
+0
-23
current/examples/hcal/Makefile.am less more
0 if WITH_HCAL
1
2 INCLUDES=-I$(top_srcdir)/src
3
4 DEPS= $(top_builddir)/src/libhdate.la
5 ldadd= $(top_builddir)/src/libhdate.la -lm
6
7 bin_PROGRAMS= hdate hcal
8
9 hdate_SOURCES = hdate.c
10 hdate_LDFLAGS =
11 hdate_DEPENDENCIES = $(DEPS)
12 hdate_LDADD = $(ldadd)
13
14 hcal_SOURCES = hcal.c
15 hcal_LDFLAGS =
16 hcal_DEPENDENCIES = $(DEPS)
17 hcal_LDADD = $(ldadd)
18
19 endif
20
21 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/hcal
22 libhdatedoc_DATA = hcal.c hdate.c
+0
-554
current/examples/hcal/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = ../..
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 build_triplet = @build@
38 host_triplet = @host@
39 @WITH_HCAL_TRUE@bin_PROGRAMS = hdate$(EXEEXT) hcal$(EXEEXT)
40 subdir = examples/hcal
41 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
44 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
45 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
46 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
47 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
48 $(top_srcdir)/configure.in
49 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50 $(ACLOCAL_M4)
51 mkinstalldirs = $(install_sh) -d
52 CONFIG_CLEAN_FILES =
53 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libhdatedocdir)"
54 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
55 PROGRAMS = $(bin_PROGRAMS)
56 am__hcal_SOURCES_DIST = hcal.c
57 @WITH_HCAL_TRUE@am_hcal_OBJECTS = hcal.$(OBJEXT)
58 hcal_OBJECTS = $(am_hcal_OBJECTS)
59 @WITH_HCAL_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/src/libhdate.la
60 am__hdate_SOURCES_DIST = hdate.c
61 @WITH_HCAL_TRUE@am_hdate_OBJECTS = hdate.$(OBJEXT)
62 hdate_OBJECTS = $(am_hdate_OBJECTS)
63 DEFAULT_INCLUDES = -I. -I$(srcdir)
64 depcomp = $(SHELL) $(top_srcdir)/depcomp
65 am__depfiles_maybe = depfiles
66 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
67 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
69 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
70 $(AM_CFLAGS) $(CFLAGS)
71 CCLD = $(CC)
72 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
73 $(AM_LDFLAGS) $(LDFLAGS) -o $@
74 SOURCES = $(hcal_SOURCES) $(hdate_SOURCES)
75 DIST_SOURCES = $(am__hcal_SOURCES_DIST) $(am__hdate_SOURCES_DIST)
76 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
77 am__vpath_adj = case $$p in \
78 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
79 *) f=$$p;; \
80 esac;
81 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
82 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
83 DATA = $(libhdatedoc_DATA)
84 ETAGS = etags
85 CTAGS = ctags
86 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
87 ACLOCAL = @ACLOCAL@
88 AMDEP_FALSE = @AMDEP_FALSE@
89 AMDEP_TRUE = @AMDEP_TRUE@
90 AMTAR = @AMTAR@
91 AR = @AR@
92 AUTOCONF = @AUTOCONF@
93 AUTOHEADER = @AUTOHEADER@
94 AUTOMAKE = @AUTOMAKE@
95 AWK = @AWK@
96 CC = @CC@
97 CCDEPMODE = @CCDEPMODE@
98 CFLAGS = @CFLAGS@
99 CPP = @CPP@
100 CPPFLAGS = @CPPFLAGS@
101 CXX = @CXX@
102 CXXCPP = @CXXCPP@
103 CXXDEPMODE = @CXXDEPMODE@
104 CXXFLAGS = @CXXFLAGS@
105 CYGPATH_W = @CYGPATH_W@
106 DATADIRNAME = @DATADIRNAME@
107 DEFS = @DEFS@
108 DEPDIR = @DEPDIR@
109 ECHO = @ECHO@
110 ECHO_C = @ECHO_C@
111 ECHO_N = @ECHO_N@
112 ECHO_T = @ECHO_T@
113 EGREP = @EGREP@
114 EXEEXT = @EXEEXT@
115 F77 = @F77@
116 FFLAGS = @FFLAGS@
117 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
118 GMSGFMT = @GMSGFMT@
119 GMSGFMT_015 = @GMSGFMT_015@
120 GREP = @GREP@
121 INSTALL_DATA = @INSTALL_DATA@
122 INSTALL_PROGRAM = @INSTALL_PROGRAM@
123 INSTALL_SCRIPT = @INSTALL_SCRIPT@
124 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125 INTLLIBS = @INTLLIBS@
126 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
127 LDFLAGS = @LDFLAGS@
128 LIBICONV = @LIBICONV@
129 LIBINTL = @LIBINTL@
130 LIBOBJS = @LIBOBJS@
131 LIBS = @LIBS@
132 LIBTOOL = @LIBTOOL@
133 LN_S = @LN_S@
134 LTLIBICONV = @LTLIBICONV@
135 LTLIBINTL = @LTLIBINTL@
136 LTLIBOBJS = @LTLIBOBJS@
137 MAINT = @MAINT@
138 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
139 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
140 MAKEINFO = @MAKEINFO@
141 MSGFMT = @MSGFMT@
142 MSGFMT_015 = @MSGFMT_015@
143 MSGMERGE = @MSGMERGE@
144 OBJEXT = @OBJEXT@
145 PACKAGE = @PACKAGE@
146 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147 PACKAGE_NAME = @PACKAGE_NAME@
148 PACKAGE_STRING = @PACKAGE_STRING@
149 PACKAGE_TARNAME = @PACKAGE_TARNAME@
150 PACKAGE_VERSION = @PACKAGE_VERSION@
151 PATH_SEPARATOR = @PATH_SEPARATOR@
152 PA_MODULES_PATH = @PA_MODULES_PATH@
153 PA_VERSION = @PA_VERSION@
154 PE_CFLAGS = @PE_CFLAGS@
155 PE_MODULES_PATH = @PE_MODULES_PATH@
156 PH_CONFIG_PATH = @PH_CONFIG_PATH@
157 PH_MODULES_PATH = @PH_MODULES_PATH@
158 PKG_CONFIG = @PKG_CONFIG@
159 POSUB = @POSUB@
160 PY_CFLAGS = @PY_CFLAGS@
161 PY_MODULES_PATH = @PY_MODULES_PATH@
162 PY_VERSION = @PY_VERSION@
163 RANLIB = @RANLIB@
164 RU_CFLAGS = @RU_CFLAGS@
165 RU_MODULES_PATH = @RU_MODULES_PATH@
166 RU_VERSION = @RU_VERSION@
167 SED = @SED@
168 SET_MAKE = @SET_MAKE@
169 SHELL = @SHELL@
170 STRIP = @STRIP@
171 USE_NLS = @USE_NLS@
172 VERSION = @VERSION@
173 VERSION_INFO = @VERSION_INFO@
174 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
175 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
176 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
177 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
178 WITH_PERL_FALSE = @WITH_PERL_FALSE@
179 WITH_PERL_TRUE = @WITH_PERL_TRUE@
180 WITH_PHP_FALSE = @WITH_PHP_FALSE@
181 WITH_PHP_TRUE = @WITH_PHP_TRUE@
182 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
183 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
184 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
185 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
186 XGETTEXT = @XGETTEXT@
187 XGETTEXT_015 = @XGETTEXT_015@
188 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
189 ac_ct_CC = @ac_ct_CC@
190 ac_ct_CXX = @ac_ct_CXX@
191 ac_ct_F77 = @ac_ct_F77@
192 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
193 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
194 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
195 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
196 am__include = @am__include@
197 am__leading_dot = @am__leading_dot@
198 am__quote = @am__quote@
199 am__tar = @am__tar@
200 am__untar = @am__untar@
201 bindir = @bindir@
202 build = @build@
203 build_alias = @build_alias@
204 build_cpu = @build_cpu@
205 build_os = @build_os@
206 build_vendor = @build_vendor@
207 datadir = @datadir@
208 datarootdir = @datarootdir@
209 docdir = @docdir@
210 dvidir = @dvidir@
211 exec_prefix = @exec_prefix@
212 have_pascal = @have_pascal@
213 have_perl = @have_perl@
214 have_php = @have_php@
215 have_php_config = @have_php_config@
216 have_python = @have_python@
217 have_ruby = @have_ruby@
218 have_swig = @have_swig@
219 host = @host@
220 host_alias = @host_alias@
221 host_cpu = @host_cpu@
222 host_os = @host_os@
223 host_vendor = @host_vendor@
224 htmldir = @htmldir@
225 includedir = @includedir@
226 infodir = @infodir@
227 install_sh = @install_sh@
228 libdir = @libdir@
229 libexecdir = @libexecdir@
230 localedir = @localedir@
231 localstatedir = @localstatedir@
232 mandir = @mandir@
233 mkdir_p = @mkdir_p@
234 oldincludedir = @oldincludedir@
235 pdfdir = @pdfdir@
236 prefix = @prefix@
237 program_transform_name = @program_transform_name@
238 psdir = @psdir@
239 sbindir = @sbindir@
240 sharedstatedir = @sharedstatedir@
241 sysconfdir = @sysconfdir@
242 target_alias = @target_alias@
243 @WITH_HCAL_TRUE@INCLUDES = -I$(top_srcdir)/src
244 @WITH_HCAL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
245 @WITH_HCAL_TRUE@ldadd = $(top_builddir)/src/libhdate.la -lm
246 @WITH_HCAL_TRUE@hdate_SOURCES = hdate.c
247 @WITH_HCAL_TRUE@hdate_LDFLAGS =
248 @WITH_HCAL_TRUE@hdate_DEPENDENCIES = $(DEPS)
249 @WITH_HCAL_TRUE@hdate_LDADD = $(ldadd)
250 @WITH_HCAL_TRUE@hcal_SOURCES = hcal.c
251 @WITH_HCAL_TRUE@hcal_LDFLAGS =
252 @WITH_HCAL_TRUE@hcal_DEPENDENCIES = $(DEPS)
253 @WITH_HCAL_TRUE@hcal_LDADD = $(ldadd)
254 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/hcal
255 libhdatedoc_DATA = hcal.c hdate.c
256 all: all-am
257
258 .SUFFIXES:
259 .SUFFIXES: .c .lo .o .obj
260 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
261 @for dep in $?; do \
262 case '$(am__configure_deps)' in \
263 *$$dep*) \
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
265 && exit 0; \
266 exit 1;; \
267 esac; \
268 done; \
269 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/hcal/Makefile'; \
270 cd $(top_srcdir) && \
271 $(AUTOMAKE) --gnu examples/hcal/Makefile
272 .PRECIOUS: Makefile
273 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
274 @case '$?' in \
275 *config.status*) \
276 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
277 *) \
278 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
279 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
280 esac;
281
282 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
283 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
284
285 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
286 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
287 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
288 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
289 install-binPROGRAMS: $(bin_PROGRAMS)
290 @$(NORMAL_INSTALL)
291 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
292 @list='$(bin_PROGRAMS)'; for p in $$list; do \
293 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
294 if test -f $$p \
295 || test -f $$p1 \
296 ; then \
297 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
298 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
299 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
300 else :; fi; \
301 done
302
303 uninstall-binPROGRAMS:
304 @$(NORMAL_UNINSTALL)
305 @list='$(bin_PROGRAMS)'; for p in $$list; do \
306 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
307 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
308 rm -f "$(DESTDIR)$(bindir)/$$f"; \
309 done
310
311 clean-binPROGRAMS:
312 @list='$(bin_PROGRAMS)'; for p in $$list; do \
313 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
314 echo " rm -f $$p $$f"; \
315 rm -f $$p $$f ; \
316 done
317 hcal$(EXEEXT): $(hcal_OBJECTS) $(hcal_DEPENDENCIES)
318 @rm -f hcal$(EXEEXT)
319 $(LINK) $(hcal_LDFLAGS) $(hcal_OBJECTS) $(hcal_LDADD) $(LIBS)
320 hdate$(EXEEXT): $(hdate_OBJECTS) $(hdate_DEPENDENCIES)
321 @rm -f hdate$(EXEEXT)
322 $(LINK) $(hdate_LDFLAGS) $(hdate_OBJECTS) $(hdate_LDADD) $(LIBS)
323
324 mostlyclean-compile:
325 -rm -f *.$(OBJEXT)
326
327 distclean-compile:
328 -rm -f *.tab.c
329
330 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hcal.Po@am__quote@
331 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdate.Po@am__quote@
332
333 .c.o:
334 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
335 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
336 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
337 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
338 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
339
340 .c.obj:
341 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
342 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
343 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
344 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
345 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
346
347 .c.lo:
348 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
349 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
350 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
351 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
352 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
353
354 mostlyclean-libtool:
355 -rm -f *.lo
356
357 clean-libtool:
358 -rm -rf .libs _libs
359
360 distclean-libtool:
361 -rm -f libtool
362 uninstall-info-am:
363 install-libhdatedocDATA: $(libhdatedoc_DATA)
364 @$(NORMAL_INSTALL)
365 test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)"
366 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
367 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
368 f=$(am__strip_dir) \
369 echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
370 $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \
371 done
372
373 uninstall-libhdatedocDATA:
374 @$(NORMAL_UNINSTALL)
375 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
376 f=$(am__strip_dir) \
377 echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
378 rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
379 done
380
381 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
382 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
383 unique=`for i in $$list; do \
384 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
385 done | \
386 $(AWK) ' { files[$$0] = 1; } \
387 END { for (i in files) print i; }'`; \
388 mkid -fID $$unique
389 tags: TAGS
390
391 TAGS: $(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 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
402 test -n "$$unique" || unique=$$empty_fix; \
403 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
404 $$tags $$unique; \
405 fi
406 ctags: CTAGS
407 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
408 $(TAGS_FILES) $(LISP)
409 tags=; \
410 here=`pwd`; \
411 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
412 unique=`for i in $$list; do \
413 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
414 done | \
415 $(AWK) ' { files[$$0] = 1; } \
416 END { for (i in files) print i; }'`; \
417 test -z "$(CTAGS_ARGS)$$tags$$unique" \
418 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
419 $$tags $$unique
420
421 GTAGS:
422 here=`$(am__cd) $(top_builddir) && pwd` \
423 && cd $(top_srcdir) \
424 && gtags -i $(GTAGS_ARGS) $$here
425
426 distclean-tags:
427 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
428
429 distdir: $(DISTFILES)
430 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
431 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
432 list='$(DISTFILES)'; for file in $$list; do \
433 case $$file in \
434 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
435 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
436 esac; \
437 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
438 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
439 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
440 dir="/$$dir"; \
441 $(mkdir_p) "$(distdir)$$dir"; \
442 else \
443 dir=''; \
444 fi; \
445 if test -d $$d/$$file; then \
446 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
447 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
448 fi; \
449 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
450 else \
451 test -f $(distdir)/$$file \
452 || cp -p $$d/$$file $(distdir)/$$file \
453 || exit 1; \
454 fi; \
455 done
456 check-am: all-am
457 check: check-am
458 all-am: Makefile $(PROGRAMS) $(DATA)
459 installdirs:
460 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libhdatedocdir)"; do \
461 test -z "$$dir" || $(mkdir_p) "$$dir"; \
462 done
463 install: install-am
464 install-exec: install-exec-am
465 install-data: install-data-am
466 uninstall: uninstall-am
467
468 install-am: all-am
469 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
470
471 installcheck: installcheck-am
472 install-strip:
473 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
474 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
475 `test -z '$(STRIP)' || \
476 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
477 mostlyclean-generic:
478
479 clean-generic:
480
481 distclean-generic:
482 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
483
484 maintainer-clean-generic:
485 @echo "This command is intended for maintainers to use"
486 @echo "it deletes files that may require special tools to rebuild."
487 clean: clean-am
488
489 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
490
491 distclean: distclean-am
492 -rm -rf ./$(DEPDIR)
493 -rm -f Makefile
494 distclean-am: clean-am distclean-compile distclean-generic \
495 distclean-libtool distclean-tags
496
497 dvi: dvi-am
498
499 dvi-am:
500
501 html: html-am
502
503 info: info-am
504
505 info-am:
506
507 install-data-am: install-libhdatedocDATA
508
509 install-exec-am: install-binPROGRAMS
510
511 install-info: install-info-am
512
513 install-man:
514
515 installcheck-am:
516
517 maintainer-clean: maintainer-clean-am
518 -rm -rf ./$(DEPDIR)
519 -rm -f Makefile
520 maintainer-clean-am: distclean-am maintainer-clean-generic
521
522 mostlyclean: mostlyclean-am
523
524 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
525 mostlyclean-libtool
526
527 pdf: pdf-am
528
529 pdf-am:
530
531 ps: ps-am
532
533 ps-am:
534
535 uninstall-am: uninstall-binPROGRAMS uninstall-info-am \
536 uninstall-libhdatedocDATA
537
538 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
539 clean-generic clean-libtool ctags distclean distclean-compile \
540 distclean-generic distclean-libtool distclean-tags distdir dvi \
541 dvi-am html html-am info info-am install install-am \
542 install-binPROGRAMS install-data install-data-am install-exec \
543 install-exec-am install-info install-info-am \
544 install-libhdatedocDATA install-man install-strip installcheck \
545 installcheck-am installdirs maintainer-clean \
546 maintainer-clean-generic mostlyclean mostlyclean-compile \
547 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
548 tags uninstall uninstall-am uninstall-binPROGRAMS \
549 uninstall-info-am uninstall-libhdatedocDATA
550
551 # Tell versions [3.59,3.63) of GNU make to not export all variables.
552 # Otherwise a system limit (for SysV at least) may be exceeded.
553 .NOEXPORT:
+0
-519
current/examples/hcal/hcal.c less more
0
1 /* hcal.c
2 * Example file for libhdate.
3 *
4 * compile:
5 * gcc `pkg-config --libs --cflags libhdate` hcal.c -o hcal
6 *
7 * Copyright: 2004 (c) Yaacov Zamir
8 *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 */
22
23 #include <stdio.h> /* For printf */
24 #include <hdate.h> /* For hebrew date */
25 #include <stdlib.h> /* For atoi */
26 #include <locale.h> /* For setlocale */
27 #include <unistd.h> /* For getopt */
28
29 #define FALSE 0
30 #define TRUE -1
31
32 /* print help */
33 int
34 print_help (char *program)
35 {
36 printf ("hcal - example program for libhdate\n\n");
37
38 printf ("USAGE: %s [-hid] ", program);
39 printf (" [[month] year]\n");
40
41 printf ("OPTIONS:\n");
42 printf (" -h : Print html format.\n");
43 printf (" -d : Use diaspora reading and holidays.\n");
44 printf (" -i : Use external css file \"./hcal.css\".\n");
45
46 return 0;
47 }
48
49 /* print html css part */
50 int
51 print_css (int opt_i)
52 {
53 if (opt_i)
54 {
55 printf ("\n\t@import \"hcal.css\";\n");
56
57 }
58 else
59 {
60 printf ("\n\
61 body {\n\
62 direction: rtl;\n\
63 }\n\
64 \n\
65 img { \n\
66 margin:0;\n\
67 padding: 0;\n\
68 vertical-align: middle;\n\
69 border: 0;\n\
70 }\n\
71 \n\
72 p {\n\
73 \n\
74 }\n\
75 \n\
76 table {\n\
77 width: 80%;\n\
78 table-layout: fixed;\n\
79 font-size: 14pt;\n\
80 border: solid #aaaaaa;\n\
81 }\n\
82 \n\
83 th {\n\
84 background-color: #aaaaaa;\n\
85 text-align: center;\n\
86 }\n\
87 \n\
88 td {\n\
89 text-align: center;\n\
90 }\n\
91 \n\
92 div.today {\n\
93 \n\
94 }\n\
95 \n\
96 div.gmonth {\n\
97 font-size: 16pt;\n\
98 }\n\
99 \n\
100 div.gyear {\n\
101 font-size: 24pt;\n\
102 font-weight: bold;\n\
103 }\n\
104 \n\
105 div.gday {\n\
106 \n\
107 }\n\
108 \n\
109 div.hmonth {\n\
110 font-size: 16pt;\n\
111 }\n\
112 \n\
113 div.hyear {\n\
114 font-size: 24pt;\n\
115 font-weight: bold;\n\
116 }\n\
117 \n\
118 div.hday {\n\
119 \n\
120 }\n\
121 \n\
122 div.holiday_name {\n\
123 \n\
124 }\n\
125 \n\
126 td.sat {\n\
127 border: solid #777777;\n\
128 }\n\
129 \n\
130 td.regular {\n\
131 border: solid #aaaaaa;\n\
132 }\n\
133 \n\
134 td.holiday {\n\
135 color: #990000;\n\
136 border: solid #888888;\n\
137 }\n\
138 \n\
139 td.out_of_month {\n\
140 color: #dddddd;\n\
141 border: solid #dddddd;\n\
142 }\n");
143 }
144
145 return 0;
146 }
147
148 /* print html header */
149 int
150 print_html_header (int opt_i)
151 {
152 printf ("\
153 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n\
154 \"http://www.w3.org/TR/html4/strict.dtd\">\n\
155 <html>\n\
156 <head>\n\
157 <meta name=\"generator\" content=\"hcal (libhdate)\">\n\
158 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\
159 <style title=\"Normal\" type=\"text/css\" media=\"all\">");
160
161 print_css (opt_i);
162
163 printf ("</style>\n");
164
165 /* some alternative css styles */
166 printf ("<link rel=\"alternate stylesheet\" title=\"High contrast\" \
167 type=\"text/css\" media=\"screen\" href=\"high_contrast.css\">");
168 printf ("</style>\n\
169 <link rel=\"alternate stylesheet\" title=\"Colorful\" \
170 type=\"text/css\" media=\"screen\" href=\"colorful.css\">");
171 printf ("</style>\n\
172 <link rel=\"alternate stylesheet\" title=\"Print\" \
173 type=\"text/css\" media=\"all\" href=\"print.css\">\n");
174
175 printf ("\
176 <title>Hebrew Calendar</title>\n\
177 </head>\n\
178 <body>\n");
179
180 return 0;
181 }
182
183 int
184 print_html_footer ()
185 {
186 printf ("<!-- <p>\n\
187 <a href=\"http://validator.w3.org/check/referer\">\n<img \
188 src=\"http://www.w3.org/Icons/valid-html401\"\n\
189 alt=\"Valid HTML 4.01!\" height=\"31\" width=\"88\" />\n</a>\n");
190 printf ("<a href=\"http://jigsaw.w3.org/css-validator\">\n\
191 <img src=\"http://www.w3.org/Icons/valid-css\" alt=\"Valid CSS!\">\n\
192 </a>\n</p> -->\n");
193
194 printf ("</body>\n</html>\n");
195
196 return 0;
197 }
198
199 /* print year and month part */
200 int
201 print_header (int month, int year, int opt_h, int opt_d)
202 {
203 hdate_struct h1, h2;
204 int j;
205
206 /* set dates for begining and end of calendar */
207 hdate_set_gdate (&h1, 1, month, year);
208 hdate_set_gdate (&h2, 1, month % 12 + 1, year);
209
210 /* Print Gregorian month and year */
211 if (opt_h)
212 {
213 printf ("<div class=\"gmonth\">\n");
214 printf ("%s\n", hdate_get_month_string (h1.gd_mon, FALSE));
215 printf ("</div>\n");
216
217 printf ("<div class=\"gyear\">\n");
218 printf ("%d\n", h1.gd_year);
219 printf ("</div>\n");
220 }
221 else
222 {
223 printf ("%s %d\n", hdate_get_month_string (h1.gd_mon, FALSE),
224 h1.gd_year);
225 }
226
227 /* Print Hebrew month and year */
228 if (opt_h)
229 {
230 printf ("<div class=\"hmonth\">\n");
231 }
232
233 if (h1.hd_mon != h2.hd_mon)
234 {
235 printf ("%s-",
236 hdate_get_hebrew_month_string (h1.hd_mon, FALSE));
237 }
238 printf ("%s ", hdate_get_hebrew_month_string (h2.hd_mon, FALSE));
239
240 if (opt_h)
241 {
242 printf ("\n</div>\n");
243
244 printf ("<div class=\"hyear\">\n");
245 }
246
247 printf ("%s\n", hdate_get_int_string (h1.hd_year));
248
249 if (opt_h)
250 {
251 printf ("</div>\n");
252
253 printf ("<div class=\"month_table\">\n");
254 printf ("<table>\n");
255 printf ("<tr>\n");
256 }
257
258 for (j = 1; j < 8; j++)
259 {
260 if (opt_h)
261 {
262 printf ("<th>");
263 printf ("%3s", hdate_get_day_string (j, FALSE));
264 printf ("</th>\n");
265 }
266 else
267 {
268 printf ("%3s", hdate_get_day_string (j, TRUE));
269
270 if (j != 7)
271 printf ("\t");
272 }
273 }
274
275 if (opt_h)
276 {
277 printf ("</tr>\n");
278 }
279 else
280 {
281 printf ("\n");
282 }
283
284 return 0;
285 }
286
287 /* print month table */
288 int
289 print_calendar (int month, int year, int opt_h, int opt_d)
290 {
291 hdate_struct h;
292 hdate_struct today;
293 int jd;
294 int jd_today;
295 int i, j;
296 char type_char[] = { '/', '+', '*', '-' };
297 int holyday_type;
298
299 /* Find day to start calendar with */
300 hdate_set_gdate (&h, 1, month, year);
301
302 /* Set today to today, so we know what day to highlight */
303 hdate_set_gdate (&today, 0, 0, 0);
304 jd_today = today.hd_jd;
305
306 /* Return print head to sunday */
307 jd = h.hd_jd - h.hd_dw + 1;
308
309 /* Loop over all days in this month */
310 for (i = 0; i < 6; i++)
311 {
312 if (opt_h)
313 {
314 printf ("<tr>\n");
315 }
316
317 for (j = 0; j < 7; j++)
318 {
319 /* Get this day hebrew date */
320 hdate_set_jd (&h, jd);
321
322 /* Get this day holyday type ba harez (diaspora flag =
323 * 0) */
324 holyday_type =
325 hdate_get_holyday_type (hdate_get_holyday
326 (&h, opt_d));
327
328 if (opt_h)
329 {
330 if (h.gd_mon != month)
331 {
332 printf ("<td class=\"out_of_month\">\n");
333 }
334 else if (j == 6)
335 {
336 printf ("<td class=\"sat\">\n");
337 }
338 else if (holyday_type)
339 {
340 printf ("<td class=\"holiday\">\n");
341 }
342 else
343 {
344 printf ("<td class=\"regular\">\n");
345 }
346
347 /* Print a day */
348 printf ("<div class=\"gday\">%2d</div>\n<div class=\"hday\">%3s</div>\n", h.gd_day, hdate_get_int_string (h.hd_day));
349
350 if (holyday_type)
351 {
352 printf ("<div class=\"holiday_name\">%s</div>\n", hdate_get_holyday_string (hdate_get_holyday (&h, opt_d), FALSE));
353 }
354
355 printf ("</td>\n");
356 }
357 else
358 {
359 if (h.gd_mon == month)
360 {
361 /* Print a day */
362 if (jd != jd_today)
363 {
364 printf ("%2d%c%3s", h.gd_day,
365 type_char[holyday_type],
366 hdate_get_int_string (h.
367 hd_day));
368 }
369 else /* It's today, lets print it in bold */
370 {
371 printf ("%c[1m", 27);
372 printf ("%2d%c%3s", h.gd_day,
373 type_char[holyday_type],
374 hdate_get_int_string (h.
375 hd_day));
376 printf ("%c[m", 27);
377 }
378 }
379 if (j != 6)
380 printf ("\t");
381 }
382 jd++;
383 }
384
385 if (opt_h)
386 {
387 printf ("</tr>\n");
388 }
389 else
390 {
391 printf ("\n");
392 }
393 }
394
395 if (opt_h)
396 {
397 printf ("</table>\n</div>");
398 }
399
400 return 0;
401 }
402
403 /* print month header and month table */
404 int
405 print_month (int month, int year, int opt_h, int opt_d)
406 {
407 hdate_struct h;
408
409 /* check if hebrew year (year > 3000) */
410 if (year > 3000)
411 hdate_set_hdate (&h, 1, month, year);
412 else
413 hdate_set_gdate (&h, 1, month, year);
414
415 /* Print calendar header */
416 print_header (h.gd_mon, h.gd_year, opt_h, opt_d);
417 print_calendar (h.gd_mon, h.gd_year, opt_h, opt_d);
418
419 printf ("\n");
420
421 return 0;
422 }
423
424 int
425 main (int argc, char *argv[])
426 {
427 /* date */
428 int month;
429 int year;
430
431 /* user opts */
432 int c;
433 int opt_h = 0; /* -h html format flag */
434 int opt_d = 0; /* -d Diaspora holidays */
435 int opt_i = 0; /* -i External css file */
436
437 /* hdate struct */
438 hdate_struct h;
439
440 /* init locale */
441 setlocale (LC_ALL, "");
442
443 /* command line parsing */
444 while ((c = getopt (argc, argv, "shdi")) != -1)
445 {
446 switch (c)
447 {
448 case 'h':
449 opt_h = 1;
450 break;
451 case 'd':
452 opt_d = 1;
453 break;
454 case 'i':
455 opt_i = 1;
456 break;
457 default:
458 print_help (argv[0]);
459 exit (0);
460 break;
461 }
462 }
463
464 /* Get date from user */
465 if (argc == (optind + 2))
466 {
467 month = atoi (argv[optind]);
468 year = atoi (argv[optind + 1]);
469 }
470 else if (argc == (optind + 1))
471 {
472 month = 0;
473 year = atoi (argv[optind]);
474
475 /* Check for valid years */
476 if (year < 1)
477 {
478 /* Print help for user and exit */
479 print_help (argv[0]);
480 exit (0);
481 }
482 }
483 else if (argc == (optind))
484 {
485 hdate_set_gdate (&h, 0, 0, 0); /* get today's year */
486 month = h.gd_mon;
487 year = h.gd_year;
488 }
489 else
490 {
491 /* Print help for user and exit */
492 print_help (argv[0]);
493 exit (0);
494 }
495
496 /* if html print html header */
497 if (opt_h)
498 print_html_header (opt_i);
499
500 /* print all year */
501 if (month == 0)
502 {
503 for (month = 1; month < 13; month++)
504 {
505 print_month (month, year, opt_h, opt_d);
506 }
507 }
508 else /* print only this month */
509 {
510 print_month (month, year, opt_h, opt_d);
511 }
512
513 /* if html print html header */
514 if (opt_h)
515 print_html_footer ();
516
517 return 0;
518 }
+0
-821
current/examples/hcal/hdate.c less more
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 modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
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, see <http://www.gnu.org/licenses/>.
20 */
21
22
23 #include <stdio.h> /* For printf */
24 #include <hdate.h> /* For hebrew date */
25 #include <stdlib.h> /* For atoi */
26 #include <locale.h> /* For setlocale */
27 #include <unistd.h> /* For getopt */
28
29 #define FALSE 0
30 #define TRUE -1
31
32 /* FIXME: global var - ugly ! */
33 int iCal_uid_counter = 0;
34
35 /* some useful time zones
36 * Eilat 29, -34, 2
37 * Haifa 32, -34, 2
38 * Jerusalem 31, -35, 2
39 * Tel Aviv 32, -34, 2
40 */
41
42 /* print help */
43 int
44 print_help (char *program)
45 {
46 printf ("hdate - example program for libhdate\n\n");
47
48 printf ("USAGE: %s [-sShdr]\n", program);
49 printf (" [-L longitude -l latitude]\n");
50 printf (" [-z timezone]\n");
51 printf (" [[[day] month] year]/[julian_day]\n");
52
53 printf ("OPTIONS:\n");
54 printf (" -s : Print sunrise/sunset times.\n");
55 printf (" -c : Print Shabat enter/leave times.\n");
56 printf (" Shabat starts 20 min before sunset,\n");
57 printf (" and exits when three stars are out.\n");
58 printf (" -t : Print day times -\n");
59 printf (" first light, talit, sunrise, midday, sunset,\n");
60 printf (" first stars, three stars.\n");
61 printf (" -S : Print using short format.\n");
62 printf (" -h : Print holidays.\n");
63 printf (" -H : Print just holidays.\n");
64 printf (" -r : Print weekly reading on saturday.\n");
65 printf (" -R : Print just weekly reading on saturday.\n");
66 printf (" -j : Print Julian day number.\n");
67
68 printf (" -d : Use diaspora reading and holidays.\n");
69 printf (" -i : Use iCal formated output.\n");
70 printf (" -l xx : Set the latitude for solar calculations to\n");
71 printf (" xx degrees. Negative values are south.\n");
72 printf (" -L xx : Set the longitude for solar calculations to\n");
73 printf (" xx degrees. *Negative values are EAST*.\n");
74 printf
75 (" The -l and -L switches must both be used, or not at all.\n");
76 printf (" -z : Use specified timezone,\n");
77
78 printf
79 (" ( default location for sunrise/set is Tel Aviv winter time ).\n");
80 printf (" some useful locations and time zones:\n");
81 printf (" Eilat : 29, -34, 2\n");
82 printf (" Haifa : 32, -34, 2\n");
83 printf (" Jerusalem : 31, -35, 2\n");
84 printf (" Tel Aviv : 32, -34, 2\n");
85 printf (" Ashdod : 31, -34, 2\n");
86 printf (" Beer Sheva : 31, -34, 2\n");
87 printf (" Tiberias : 32, -35, 2\n");
88 printf (" London : 51, 0, 0\n");
89 printf (" Paris : 48, -2, 1\n");
90 printf (" New York : 40, 74, -5\n");
91 printf (" Moscow : 55, -37, 3\n");
92
93 return 0;
94 }
95
96 /* print ical header */
97 int
98 print_ical_header ()
99 {
100 /* Print start of iCal format */
101 printf ("BEGIN:VCALENDAR\n");
102 printf ("VERSION:2.0\n");
103 printf ("CALSCALE:GREGORIAN\n");
104 printf ("METHOD:PUBLISH\n");
105
106 return 0;
107 }
108
109 /* print ical footer */
110 int
111 print_ical_footer ()
112 {
113 /* Print end of iCal format */
114 printf ("END:VCALENDAR\n");
115
116 return 0;
117 }
118
119 /* print one day - gregorian and hebrew date */
120 int
121 print_date (hdate_struct * h, int opt_S, int opt_i)
122 {
123 char *locale;
124 char *language;
125
126 /* Get the name of the current locale. */
127 #ifdef ENABLE_NLS
128 locale = setlocale (LC_MESSAGES, NULL);
129 language = getenv ("LANGUAGE");
130 #else
131 locale = NULL;
132 language = NULL;
133 #endif
134
135 if (opt_i)
136 {
137 printf ("%s %s ",
138 hdate_get_int_string (h->hd_day),
139 hdate_get_hebrew_month_string (h->hd_mon, opt_S));
140 printf ("%s", hdate_get_int_string (h->hd_year));
141 }
142 else if (opt_S)
143 {
144 printf ("%d.%d.%d ", h->gd_day, h->gd_mon, h->gd_year);
145
146 /* check for hebrew locale */
147 if (!((locale && (locale[0] == 'h') && (locale[1] == 'e')) ||
148 (language && (language[0] == 'h') && (language[1] == 'e'))))
149 { /* non hebrew numbers */
150
151 printf ("%d", h->hd_day);
152
153 /* FIXME: this only warks for english :-( */
154
155 /* check for english locale */
156 if ((!locale && !language) ||
157 (language && (language[0] == 'C')) ||
158 (!language && locale && (locale[0] == 'C')) ||
159 (language && (language[0] == 'e') && (language[1] == 'n'))
160 || (!language && locale && (locale[0] == 'e')
161 && (locale[1] == 'n')))
162 {
163 switch (h->hd_day)
164 {
165 case 1:
166 case 21:
167 case 31:
168 printf ("st of");
169 break;
170 case 2:
171 case 22:
172 printf ("nd of");
173 break;
174 case 3:
175 case 23:
176 printf ("rd of");
177 break;
178 default:
179 printf ("th of");
180 }
181 }
182
183 }
184 else
185 { /* hebrew numbers */
186 printf ("%s", hdate_get_int_string (h->hd_day));
187 }
188
189 printf (" %s, ", hdate_get_hebrew_month_string (h->hd_mon, opt_S));
190 printf ("%s\n", hdate_get_int_string (h->hd_year));
191 }
192 else
193 {
194 printf ("%s, %d %s %d, ",
195 hdate_get_day_string (h->hd_dw, opt_S),
196 h->gd_day,
197 hdate_get_month_string (h->gd_mon, opt_S), h->gd_year);
198 printf ("%s %s ",
199 hdate_get_int_string (h->hd_day),
200 hdate_get_hebrew_month_string (h->hd_mon, opt_S));
201 printf ("%s\n", hdate_get_int_string (h->hd_year));
202 }
203
204 return 0;
205 }
206
207 /* print one day - sunrise/set times */
208 int
209 print_sunrise (hdate_struct * h, double lat, double lon, int tz, int opt_i)
210 {
211 int sunrise, sunset;
212
213 /* get times */
214 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
215 &sunrise, &sunset);
216
217 sunset = sunset + tz * 60;
218 sunrise = sunrise + tz * 60;
219
220 /* print sunset/rise times */
221 printf ("%d:%d - %d:%d ",
222 sunrise / 60, sunrise % 60, sunset / 60, sunset % 60);
223
224 return 0;
225 }
226
227 /* print one day - day times */
228 int
229 print_times (hdate_struct * h, double lat, double lon, int tz, int opt_i)
230 {
231 int sun_hour, first_light, talit, sunrise;
232 int midday, sunset, first_stars, three_stars;
233
234 /* get times */
235 hdate_get_utc_sun_time_full (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
236 &sun_hour, &first_light, &talit, &sunrise,
237 &midday, &sunset, &first_stars, &three_stars);
238
239 first_light = first_light + tz * 60;
240 talit = talit + tz * 60;
241 sunrise = sunrise + tz * 60;
242 midday = midday + tz * 60;
243 sunset = sunset + tz * 60;
244 first_stars = first_stars + tz * 60;
245 three_stars = three_stars + tz * 60;
246
247 /* print sunset/rise times */
248 printf ("%d:%d - %d:%d - %d:%d - %d:%d - %d:%d - %d:%d - %d:%d ",
249 first_light / 60, first_light % 60, talit / 60, talit % 60,
250 sunrise / 60, sunrise % 60, midday / 60, midday % 60,
251 sunset / 60, sunset % 60, first_stars / 60, first_stars % 60,
252 three_stars / 60, three_stars % 60);
253
254 return 0;
255 }
256
257 /* print one day - holiday */
258 int
259 print_holiday (hdate_struct * h, int opt_d, int opt_S, int opt_i)
260 {
261 int holyday;
262
263 holyday = hdate_get_holyday (h, opt_d);
264
265 if (holyday)
266 {
267 /* print holyday */
268 printf ("%s ", hdate_get_holyday_string (holyday, opt_S));
269 }
270
271 return 0;
272 }
273
274 /* print one day - reading */
275 int
276 print_reading (hdate_struct * h, int opt_d, int opt_S, int opt_i)
277 {
278 int reading;
279
280 reading = hdate_get_parasha (h, opt_d);
281
282 if (reading)
283 {
284 /* print parash */
285 printf ("%s ", hdate_get_parasha_string (reading, opt_S));
286 }
287
288 return 0;
289 }
290
291 /* print one day - reading */
292 int
293 print_candales (hdate_struct * h, double lat, double lon, int tz, int opt_i)
294 {
295 int sun_hour, first_light, talit, sunrise;
296 int midday, sunset, first_stars, three_stars;
297
298 /* check for friday - print knisat shabat */
299 if (h->hd_dw == 6)
300 {
301 /* get times */
302 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
303 &sunrise, &sunset);
304
305 /* FIXME - knisar shabat 20 minutes before shkiaa ? */
306 sunset = sunset + tz * 60 - 20;
307
308 /* print sunset/rise times */
309 printf ("(%d:%d)", sunset / 60, sunset % 60);
310 }
311
312 /* check for saturday - print motzay shabat */
313 else if (h->hd_dw == 7)
314 {
315 /* get times */
316 hdate_get_utc_sun_time_full (h->gd_day, h->gd_mon, h->gd_year, lat,
317 lon, &sun_hour, &first_light, &talit,
318 &sunrise, &midday, &sunset,
319 &first_stars, &three_stars);
320
321 three_stars = three_stars + tz * 60;
322
323 /* print motzay shabat */
324 printf ("(%d:%d)", three_stars / 60, three_stars % 60);
325 }
326
327 return 0;
328 }
329
330 /* print one day - all */
331 int
332 print_day (hdate_struct * h,
333 int opt_d, int opt_S,
334 double lat, double lon, int tz, int opt_s, int opt_h, int opt_r,
335 int opt_R, int opt_j, int opt_H, int opt_i, int opt_c, int opt_t)
336 {
337 /* check for just parasha or holiday flag */
338 if (opt_R && opt_H &&
339 !hdate_get_parasha (h, opt_d) && !hdate_get_holyday (h, opt_d))
340 return 0;
341 if (opt_R && !opt_H && !hdate_get_parasha (h, opt_d))
342 return 0;
343 if (opt_H && !opt_R && !hdate_get_holyday (h, opt_d))
344 return 0;
345
346 /* check for iCal format */
347 if (opt_i)
348 {
349 /* FIXME: older versions of mozilla calendar and evulotion
350 * needed this hack */
351 /* print_ical_header (); */
352
353 printf ("BEGIN:VEVENT\n");
354 printf ("UID:%d\n", ++iCal_uid_counter);
355 printf ("DTSTART;VALUE=DATE:%04d%02d%02d\n", h->gd_year,
356 h->gd_mon, h->gd_day);
357 printf ("SUMMARY:");
358 }
359
360 /* print Julian day number */
361 if (opt_j)
362 {
363 printf ("JDN-%d ", h->hd_jd);
364 }
365
366 /* print the day */
367 print_date (h, opt_S, opt_i);
368
369 /* check for iCal format */
370 if (opt_i &&
371 (((opt_h && hdate_get_holyday (h, opt_d)) ||
372 ((opt_r && hdate_get_parasha (h, opt_d)) || opt_c)) || opt_s
373 || opt_t))
374 printf ("\\, ");
375
376 if (opt_s || opt_t)
377 {
378 if (opt_t)
379 print_times (h, lat, lon, tz, opt_i);
380 else if (opt_s)
381 print_sunrise (h, lat, lon, tz, opt_i);
382
383 if (!opt_i && ((opt_h && hdate_get_holyday (h, opt_d)) ||
384 ((opt_r && hdate_get_parasha (h, opt_d)) || opt_c)))
385 printf (", ");
386 if (opt_i && ((opt_h && hdate_get_holyday (h, opt_d)) ||
387 ((opt_r && hdate_get_parasha (h, opt_d)) || opt_c)))
388 printf ("\\, ");
389 }
390 if (opt_h)
391 {
392 print_holiday (h, opt_d, opt_S, opt_i);
393
394 if (!opt_i && ((opt_r && hdate_get_parasha (h, opt_d) || opt_c)
395 && hdate_get_holyday (h, opt_d)))
396 printf (", ");
397 if (opt_i && ((opt_r && hdate_get_parasha (h, opt_d) || opt_c)
398 && hdate_get_holyday (h, opt_d)))
399 printf ("\\, ");
400 }
401 if (opt_r)
402 {
403 print_reading (h, opt_d, opt_S, opt_i);
404 }
405 if (opt_c)
406 {
407 print_candales (h, lat, lon, tz, opt_i);
408 }
409
410 if (opt_r || opt_h || opt_s || opt_t || opt_i || opt_c)
411 {
412 printf ("\n");
413 }
414
415 /* check for iCal format */
416 if (opt_i)
417 {
418 printf ("CLASS:PUBLIC\n");
419 printf ("DTEND;VALUE=DATE:%04d%02d%02d\n", h->gd_year,
420 h->gd_mon, h->gd_day);
421 printf ("CATEGORIES:Holidays\n");
422 printf ("END:VEVENT\n");
423 /* FIXME: older versions of mozilla calendar and evulotion
424 * needed this hack */
425 /* print_ical_footer (); */
426 }
427
428 return 0;
429 }
430
431 /* print one month - all */
432 int
433 print_month (int opt_d, int opt_S,
434 double lat, double lon, int tz,
435 int opt_s, int opt_h, int opt_r, int opt_R, int opt_j,
436 int opt_H, int opt_i, int opt_c, int opt_t, int month, int year)
437 {
438 hdate_struct h;
439 int jd;
440
441 /* get date of month start */
442 hdate_set_gdate (&h, 1, month, year);
443 jd = h.hd_jd;
444
445 /* print month header */
446 if (!opt_i && !opt_S)
447 printf ("\n%s:\n", hdate_get_month_string (h.gd_mon, opt_S));
448
449 /* print month days */
450 while (h.gd_mon == month)
451 {
452 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
453 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
454
455 jd++;
456 hdate_set_jd (&h, jd);
457 }
458
459 return 0;
460 }
461
462 /* print one hebrew month - all */
463 int
464 print_hebrew_month (int opt_d, int opt_S,
465 double lat, double lon, int tz,
466 int opt_s, int opt_h, int opt_r, int opt_R, int opt_j,
467 int opt_H, int opt_i, int opt_c, int opt_t, int month,
468 int year)
469 {
470 hdate_struct h;
471 int jd;
472
473 /* get date of month start */
474 hdate_set_hdate (&h, 1, month, year);
475 jd = h.hd_jd;
476
477 if (h.hd_size_of_year > 365 && month == 6)
478 { /* adar of meoberet */
479 /* print Adar I and Adar II month days */
480 hdate_set_hdate (&h, 1, 13, year);
481 jd = h.hd_jd;
482
483 /* print month header */
484 if (!opt_i && !opt_S)
485 printf ("\n%s:\n", hdate_get_hebrew_month_string (h.hd_mon, opt_S));
486
487 /* print adar I days */
488 while (h.hd_mon == 13)
489 {
490 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s,
491 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
492
493 jd++;
494 hdate_set_jd (&h, jd);
495 }
496
497 hdate_set_hdate (&h, 1, 14, year);
498 jd = h.hd_jd;
499
500 /* print month header */
501 if (!opt_i && !opt_S)
502 printf ("\n%s:\n", hdate_get_hebrew_month_string (h.hd_mon, opt_S));
503
504 /* print adar II days */
505 while (h.hd_mon == 14)
506 {
507 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s,
508 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
509
510 jd++;
511 hdate_set_jd (&h, jd);
512 }
513 }
514 else
515 {
516 /* print month header */
517 if (!opt_i && !opt_S)
518 printf ("\n%s:\n", hdate_get_hebrew_month_string (h.hd_mon, opt_S));
519
520 /* print month days */
521 while (h.hd_mon == month)
522 {
523 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s,
524 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
525
526 jd++;
527 hdate_set_jd (&h, jd);
528 }
529 }
530
531 return 0;
532 }
533
534 /* print one gregorian year - all */
535 int
536 print_year (int opt_d, int opt_S,
537 double lat, double lon, int tz, int opt_s, int opt_h, int opt_r,
538 int opt_R, int opt_j, int opt_H, int opt_i, int opt_c,
539 int opt_t, int year)
540 {
541 int month = 1;
542
543 /* print year header */
544 if (!opt_i && !opt_S)
545 printf ("%d:\n", year);
546
547 /* print year months */
548 while (month < 13)
549 {
550 print_month (opt_d, opt_S, lat, lon, tz, opt_s, opt_h, opt_r,
551 opt_R, opt_j, opt_H, opt_i, opt_c, opt_t, month, year);
552 month++;
553 }
554
555 return 0;
556 }
557
558 /* print one hebrew year - all */
559 int
560 print_hebrew_year (int opt_d, int opt_S,
561 double lat, double lon, int tz,
562 int opt_s, int opt_h, int opt_r, int opt_R, int opt_j,
563 int opt_H, int opt_i, int opt_c, int opt_t, int year)
564 {
565 int month = 1;
566
567 /* print year header */
568 if (!opt_i && !opt_S)
569 printf ("%s:\n", hdate_get_int_string (year));
570
571 /* print year months */
572 while (month < 13)
573 {
574 print_hebrew_month (opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
575 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t,
576 month, year);
577 month++;
578 }
579
580 return 0;
581 }
582
583 int
584 main (int argc, char *argv[])
585 {
586 hdate_struct h; /* The Hebrew date */
587 int c;
588
589 int day; /* The Gregorian date */
590 int month;
591 int year;
592
593 /* hebcal style command line options */
594 char *progname = argv[0];
595 int opt_s = 0; /* -s option sunrise/set times */
596 int opt_c = 0; /* -c option shabat enter/leave times */
597 int opt_t = 0; /* -t option print times of day */
598 int opt_S = 0; /* -S Short format flag */
599 int opt_h = 0; /* -h option holidays */
600 int opt_H = 0; /* -H option just holidays */
601 int opt_r = 0; /* -r option reading */
602 int opt_R = 0; /* -R option just reading */
603 int opt_j = 0; /* -j option Julian day number */
604 int opt_d = 0; /* -d option diaspora */
605 int opt_i = 0; /* -i option iCal */
606
607 double lat = 32.0; /* -l option default to Tel aviv latitude */
608 double lon = -34.0; /* -L option default to Tel aviv longitude */
609 int tz = 2; /* -z option default to Tel aviv time zone */
610
611 /* init locale */
612 setlocale (LC_ALL, "");
613
614 /* command line parsing */
615 while ((c = getopt (argc, argv, "sctShHrRjdil:L:z:")) != -1)
616 {
617 switch (c)
618 {
619 case 's':
620 opt_s = 1;
621 break;
622 case 'c':
623 opt_c = 1;
624 break;
625 case 't':
626 opt_t = 1;
627 break;
628 case 'S':
629 opt_S = 1;
630 break;
631 case 'H':
632 opt_H = 1;
633 case 'h':
634 opt_h = 1;
635 break;
636 case 'R':
637 opt_R = 1;
638 case 'j':
639 opt_j = 1;
640 case 'r':
641 opt_r = 1;
642 break;
643 case 'd':
644 opt_d = 1;
645 break;
646 case 'i':
647 opt_i = 1;
648 break;
649 case 'l':
650 if (optarg)
651 lat = (double) atof (optarg);
652 break;
653 case 'L':
654 if (optarg)
655 lon = (double) atof (optarg);
656 break;
657 case 'z':
658 if (optarg)
659 tz = atoi (optarg);
660 break;
661 default:
662 print_help (argv[0]);
663 exit (0);
664 break;
665 }
666 }
667
668 /* Get calendar */
669 if (argc == optind)
670 { /* no date entered */
671 /* set date for today */
672 hdate_set_gdate (&h, 0, 0, 0);
673
674 if (opt_i)
675 print_ical_header ();
676
677 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
678 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
679
680 if (opt_i)
681 print_ical_footer ();
682
683 exit (0);
684 }
685 else if (argc == (optind + 1))
686 { /* only year or julian day number */
687 /* get year */
688 year = atoi (argv[optind]);
689
690 if (year <= 0)
691 { /* error */
692 print_help (argv[0]);
693 exit (0);
694 }
695 if (year > 100000)
696 { /* julian day number */
697 /* year is julian day number */
698 hdate_set_jd (&h, year);
699
700 if (opt_i)
701 print_ical_header ();
702
703 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
704 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
705
706 if (opt_i)
707 print_ical_footer ();
708
709 exit (0);
710 }
711 else if (year > 3000)
712 { /* hebrew year */
713 if (opt_i)
714 print_ical_header ();
715
716 print_hebrew_year (opt_d, opt_S, lat, lon, tz, opt_s,
717 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i,
718 opt_c, opt_t, year);
719
720 if (opt_i)
721 print_ical_footer ();
722
723 exit (0);
724 }
725 else
726 {
727 if (opt_i)
728 print_ical_header ();
729
730 print_year (opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
731 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t, year);
732
733 if (opt_i)
734 print_ical_footer ();
735
736 exit (0);
737 }
738 }
739 else if (argc == (optind + 2))
740 { /*only month and year */
741 /* get year */
742 year = atoi (argv[optind + 1]);
743 month = atoi (argv[optind]);
744
745 if (year <= 0)
746 { /* error */
747 print_help (argv[0]);
748 exit (0);
749 }
750 if (year > 3000)
751 { /* hebrew year */
752 if (opt_i)
753 print_ical_header ();
754
755 print_hebrew_month (opt_d, opt_S, lat, lon, tz, opt_s,
756 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i,
757 opt_c, opt_t, month, year);
758
759 if (opt_i)
760 print_ical_footer ();
761
762 exit (0);
763 }
764 else
765 {
766 if (opt_i)
767 print_ical_header ();
768
769 print_month (opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
770 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t,
771 month, year);
772
773 if (opt_i)
774 print_ical_footer ();
775
776 exit (0);
777 }
778 }
779 else if (argc == (optind + 3))
780 { /*day month and year */
781 /* get year */
782 year = atoi (argv[optind + 2]);
783 month = atoi (argv[optind + 1]);
784 day = atoi (argv[optind]);
785
786 if (year <= 0)
787 { /* error */
788 print_help (argv[0]);
789 exit (0);
790 }
791
792 /* set date */
793 if (year > 3000)
794 { /* hebrew year */
795 hdate_set_hdate (&h, day, month, year);
796 }
797 else
798 {
799 hdate_set_gdate (&h, day, month, year);
800 }
801
802 if (opt_i)
803 print_ical_header ();
804
805 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
806 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
807
808 if (opt_i)
809 print_ical_footer ();
810
811 exit (0);
812 }
813 else
814 {
815 print_help (argv[0]);
816 exit (0);
817 }
818
819 return 0;
820 }
+0
-323
current/install-sh less more
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2005-05-14.22
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch. It can only install one file at a time, a restriction
42 # shared with many OS's install programs.
43
44 # set DOITPROG to echo to test this script
45
46 # Don't use :- since 4.3BSD and earlier shells don't like it.
47 doit="${DOITPROG-}"
48
49 # put in absolute paths if you don't have them in your path; or use env. vars.
50
51 mvprog="${MVPROG-mv}"
52 cpprog="${CPPROG-cp}"
53 chmodprog="${CHMODPROG-chmod}"
54 chownprog="${CHOWNPROG-chown}"
55 chgrpprog="${CHGRPPROG-chgrp}"
56 stripprog="${STRIPPROG-strip}"
57 rmprog="${RMPROG-rm}"
58 mkdirprog="${MKDIRPROG-mkdir}"
59
60 chmodcmd="$chmodprog 0755"
61 chowncmd=
62 chgrpcmd=
63 stripcmd=
64 rmcmd="$rmprog -f"
65 mvcmd="$mvprog"
66 src=
67 dst=
68 dir_arg=
69 dstarg=
70 no_target_directory=
71
72 usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
73 or: $0 [OPTION]... SRCFILES... DIRECTORY
74 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
75 or: $0 [OPTION]... -d DIRECTORIES...
76
77 In the 1st form, copy SRCFILE to DSTFILE.
78 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
79 In the 4th, create DIRECTORIES.
80
81 Options:
82 -c (ignored)
83 -d create directories instead of installing files.
84 -g GROUP $chgrpprog installed files to GROUP.
85 -m MODE $chmodprog installed files to MODE.
86 -o USER $chownprog installed files to USER.
87 -s $stripprog installed files.
88 -t DIRECTORY install into DIRECTORY.
89 -T report an error if DSTFILE is a directory.
90 --help display this help and exit.
91 --version display version info and exit.
92
93 Environment variables override the default commands:
94 CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
95 "
96
97 while test -n "$1"; do
98 case $1 in
99 -c) shift
100 continue;;
101
102 -d) dir_arg=true
103 shift
104 continue;;
105
106 -g) chgrpcmd="$chgrpprog $2"
107 shift
108 shift
109 continue;;
110
111 --help) echo "$usage"; exit $?;;
112
113 -m) chmodcmd="$chmodprog $2"
114 shift
115 shift
116 continue;;
117
118 -o) chowncmd="$chownprog $2"
119 shift
120 shift
121 continue;;
122
123 -s) stripcmd=$stripprog
124 shift
125 continue;;
126
127 -t) dstarg=$2
128 shift
129 shift
130 continue;;
131
132 -T) no_target_directory=true
133 shift
134 continue;;
135
136 --version) echo "$0 $scriptversion"; exit $?;;
137
138 *) # When -d is used, all remaining arguments are directories to create.
139 # When -t is used, the destination is already specified.
140 test -n "$dir_arg$dstarg" && break
141 # Otherwise, the last argument is the destination. Remove it from $@.
142 for arg
143 do
144 if test -n "$dstarg"; then
145 # $@ is not empty: it contains at least $arg.
146 set fnord "$@" "$dstarg"
147 shift # fnord
148 fi
149 shift # arg
150 dstarg=$arg
151 done
152 break;;
153 esac
154 done
155
156 if test -z "$1"; then
157 if test -z "$dir_arg"; then
158 echo "$0: no input file specified." >&2
159 exit 1
160 fi
161 # It's OK to call `install-sh -d' without argument.
162 # This can happen when creating conditional directories.
163 exit 0
164 fi
165
166 for src
167 do
168 # Protect names starting with `-'.
169 case $src in
170 -*) src=./$src ;;
171 esac
172
173 if test -n "$dir_arg"; then
174 dst=$src
175 src=
176
177 if test -d "$dst"; then
178 mkdircmd=:
179 chmodcmd=
180 else
181 mkdircmd=$mkdirprog
182 fi
183 else
184 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
185 # might cause directories to be created, which would be especially bad
186 # if $src (and thus $dsttmp) contains '*'.
187 if test ! -f "$src" && test ! -d "$src"; then
188 echo "$0: $src does not exist." >&2
189 exit 1
190 fi
191
192 if test -z "$dstarg"; then
193 echo "$0: no destination specified." >&2
194 exit 1
195 fi
196
197 dst=$dstarg
198 # Protect names starting with `-'.
199 case $dst in
200 -*) dst=./$dst ;;
201 esac
202
203 # If destination is a directory, append the input filename; won't work
204 # if double slashes aren't ignored.
205 if test -d "$dst"; then
206 if test -n "$no_target_directory"; then
207 echo "$0: $dstarg: Is a directory" >&2
208 exit 1
209 fi
210 dst=$dst/`basename "$src"`
211 fi
212 fi
213
214 # This sed command emulates the dirname command.
215 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
216
217 # Make sure that the destination directory exists.
218
219 # Skip lots of stat calls in the usual case.
220 if test ! -d "$dstdir"; then
221 defaultIFS='
222 '
223 IFS="${IFS-$defaultIFS}"
224
225 oIFS=$IFS
226 # Some sh's can't handle IFS=/ for some reason.
227 IFS='%'
228 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
229 shift
230 IFS=$oIFS
231
232 pathcomp=
233
234 while test $# -ne 0 ; do
235 pathcomp=$pathcomp$1
236 shift
237 if test ! -d "$pathcomp"; then
238 $mkdirprog "$pathcomp"
239 # mkdir can fail with a `File exist' error in case several
240 # install-sh are creating the directory concurrently. This
241 # is OK.
242 test -d "$pathcomp" || exit
243 fi
244 pathcomp=$pathcomp/
245 done
246 fi
247
248 if test -n "$dir_arg"; then
249 $doit $mkdircmd "$dst" \
250 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
251 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
252 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
253 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
254
255 else
256 dstfile=`basename "$dst"`
257
258 # Make a couple of temp file names in the proper directory.
259 dsttmp=$dstdir/_inst.$$_
260 rmtmp=$dstdir/_rm.$$_
261
262 # Trap to clean up those temp files at exit.
263 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
264 trap '(exit $?); exit' 1 2 13 15
265
266 # Copy the file name to the temp name.
267 $doit $cpprog "$src" "$dsttmp" &&
268
269 # and set any options; do chmod last to preserve setuid bits.
270 #
271 # If any of these fail, we abort the whole thing. If we want to
272 # ignore errors from any of these, just make sure not to ignore
273 # errors from the above "$doit $cpprog $src $dsttmp" command.
274 #
275 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
276 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
277 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
278 && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
279
280 # Now rename the file to the real destination.
281 { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
282 || {
283 # The rename failed, perhaps because mv can't rename something else
284 # to itself, or perhaps because mv is so ancient that it does not
285 # support -f.
286
287 # Now remove or move aside any old file at destination location.
288 # We try this two ways since rm can't unlink itself on some
289 # systems and the destination file might be busy for other
290 # reasons. In this case, the final cleanup might fail but the new
291 # file should still install successfully.
292 {
293 if test -f "$dstdir/$dstfile"; then
294 $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
295 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
296 || {
297 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
298 (exit 1); exit 1
299 }
300 else
301 :
302 fi
303 } &&
304
305 # Now rename the file to the real destination.
306 $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
307 }
308 }
309 fi || { (exit 1); exit 1; }
310 done
311
312 # The final little trick to "correctly" pass the exit status to the exit trap.
313 {
314 (exit 0); exit 0
315 }
316
317 # Local variables:
318 # eval: (add-hook 'write-file-hooks 'time-stamp)
319 # time-stamp-start: "scriptversion="
320 # time-stamp-format: "%:y-%02m-%02d.%02H"
321 # time-stamp-end: "$"
322 # End:
+0
-10
current/libhdate.pc.in less more
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
-6938
current/ltmain.sh less more
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, 2005, 2006,
4 # 2007 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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.24 Debian 1.5.24-2"
46 TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
47
48 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
49 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50 emulate sh
51 NULLCMD=:
52 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53 # is contrary to our usage. Disable this feature.
54 alias -g '${1+"$@"}'='"$@"'
55 setopt NO_GLOB_SUBST
56 else
57 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
58 fi
59 BIN_SH=xpg4; export BIN_SH # for Tru64
60 DUALCASE=1; export DUALCASE # for MKS sh
61
62 # Check that we have a working $echo.
63 if test "X$1" = X--no-reexec; then
64 # Discard the --no-reexec flag, and continue.
65 shift
66 elif test "X$1" = X--fallback-echo; then
67 # Avoid inline document here, it may be left over
68 :
69 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
70 # Yippee, $echo works!
71 :
72 else
73 # Restart under the correct shell, and then maybe $echo will work.
74 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
75 fi
76
77 if test "X$1" = X--fallback-echo; then
78 # used as fallback echo
79 shift
80 cat <<EOF
81 $*
82 EOF
83 exit $EXIT_SUCCESS
84 fi
85
86 default_mode=
87 help="Try \`$progname --help' for more information."
88 magic="%%%MAGIC variable%%%"
89 mkdir="mkdir"
90 mv="mv -f"
91 rm="rm -f"
92
93 # Sed substitution that helps us do robust quoting. It backslashifies
94 # metacharacters that are still active within double-quoted strings.
95 Xsed="${SED}"' -e 1s/^X//'
96 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
97 # test EBCDIC or ASCII
98 case `echo X|tr X '\101'` in
99 A) # ASCII based system
100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
101 SP2NL='tr \040 \012'
102 NL2SP='tr \015\012 \040\040'
103 ;;
104 *) # EBCDIC based system
105 SP2NL='tr \100 \n'
106 NL2SP='tr \r\n \100\100'
107 ;;
108 esac
109
110 # NLS nuisances.
111 # Only set LANG and LC_ALL to C if already set.
112 # These must not be set unconditionally because not all systems understand
113 # e.g. LANG=C (notably SCO).
114 # We save the old values to restore during execute mode.
115 for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
116 do
117 eval "if test \"\${$lt_var+set}\" = set; then
118 save_$lt_var=\$$lt_var
119 $lt_var=C
120 export $lt_var
121 fi"
122 done
123
124 # Make sure IFS has a sensible default
125 lt_nl='
126 '
127 IFS=" $lt_nl"
128
129 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
130 $echo "$modename: not configured to build any kind of library" 1>&2
131 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
132 exit $EXIT_FAILURE
133 fi
134
135 # Global variables.
136 mode=$default_mode
137 nonopt=
138 prev=
139 prevopt=
140 run=
141 show="$echo"
142 show_help=
143 execute_dlfiles=
144 duplicate_deps=no
145 preserve_args=
146 lo2o="s/\\.lo\$/.${objext}/"
147 o2lo="s/\\.${objext}\$/.lo/"
148 extracted_archives=
149 extracted_serial=0
150
151 #####################################
152 # Shell function definitions:
153 # This seems to be the best place for them
154
155 # func_mktempdir [string]
156 # Make a temporary directory that won't clash with other running
157 # libtool processes, and avoids race conditions if possible. If
158 # given, STRING is the basename for that directory.
159 func_mktempdir ()
160 {
161 my_template="${TMPDIR-/tmp}/${1-$progname}"
162
163 if test "$run" = ":"; then
164 # Return a directory name, but don't create it in dry-run mode
165 my_tmpdir="${my_template}-$$"
166 else
167
168 # If mktemp works, use that first and foremost
169 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
170
171 if test ! -d "$my_tmpdir"; then
172 # Failing that, at least try and use $RANDOM to avoid a race
173 my_tmpdir="${my_template}-${RANDOM-0}$$"
174
175 save_mktempdir_umask=`umask`
176 umask 0077
177 $mkdir "$my_tmpdir"
178 umask $save_mktempdir_umask
179 fi
180
181 # If we're not in dry-run mode, bomb out on failure
182 test -d "$my_tmpdir" || {
183 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
184 exit $EXIT_FAILURE
185 }
186 fi
187
188 $echo "X$my_tmpdir" | $Xsed
189 }
190
191
192 # func_win32_libid arg
193 # return the library type of file 'arg'
194 #
195 # Need a lot of goo to handle *both* DLLs and import libs
196 # Has to be a shell function in order to 'eat' the argument
197 # that is supplied when $file_magic_command is called.
198 func_win32_libid ()
199 {
200 win32_libid_type="unknown"
201 win32_fileres=`file -L $1 2>/dev/null`
202 case $win32_fileres in
203 *ar\ archive\ import\ library*) # definitely import
204 win32_libid_type="x86 archive import"
205 ;;
206 *ar\ archive*) # could be an import, or static
207 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
208 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
209 win32_nmres=`eval $NM -f posix -A $1 | \
210 $SED -n -e '1,100{
211 / I /{
212 s,.*,import,
213 p
214 q
215 }
216 }'`
217 case $win32_nmres in
218 import*) win32_libid_type="x86 archive import";;
219 *) win32_libid_type="x86 archive static";;
220 esac
221 fi
222 ;;
223 *DLL*)
224 win32_libid_type="x86 DLL"
225 ;;
226 *executable*) # but shell scripts are "executable" too...
227 case $win32_fileres in
228 *MS\ Windows\ PE\ Intel*)
229 win32_libid_type="x86 DLL"
230 ;;
231 esac
232 ;;
233 esac
234 $echo $win32_libid_type
235 }
236
237
238 # func_infer_tag arg
239 # Infer tagged configuration to use if any are available and
240 # if one wasn't chosen via the "--tag" command line option.
241 # Only attempt this if the compiler in the base compile
242 # command doesn't match the default compiler.
243 # arg is usually of the form 'gcc ...'
244 func_infer_tag ()
245 {
246 if test -n "$available_tags" && test -z "$tagname"; then
247 CC_quoted=
248 for arg in $CC; do
249 case $arg in
250 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
251 arg="\"$arg\""
252 ;;
253 esac
254 CC_quoted="$CC_quoted $arg"
255 done
256 case $@ in
257 # Blanks in the command may have been stripped by the calling shell,
258 # but not from the CC environment variable when configure was run.
259 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
260 # Blanks at the start of $base_compile will cause this to fail
261 # if we don't check for them as well.
262 *)
263 for z in $available_tags; do
264 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
265 # Evaluate the configuration.
266 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
267 CC_quoted=
268 for arg in $CC; do
269 # Double-quote args containing other shell metacharacters.
270 case $arg in
271 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
272 arg="\"$arg\""
273 ;;
274 esac
275 CC_quoted="$CC_quoted $arg"
276 done
277 case "$@ " in
278 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
279 # The compiler in the base compile command matches
280 # the one in the tagged configuration.
281 # Assume this is the tagged configuration we want.
282 tagname=$z
283 break
284 ;;
285 esac
286 fi
287 done
288 # If $tagname still isn't set, then no tagged configuration
289 # was found and let the user know that the "--tag" command
290 # line option must be used.
291 if test -z "$tagname"; then
292 $echo "$modename: unable to infer tagged configuration"
293 $echo "$modename: specify a tag with \`--tag'" 1>&2
294 exit $EXIT_FAILURE
295 # else
296 # $echo "$modename: using $tagname tagged configuration"
297 fi
298 ;;
299 esac
300 fi
301 }
302
303
304 # func_extract_an_archive dir oldlib
305 func_extract_an_archive ()
306 {
307 f_ex_an_ar_dir="$1"; shift
308 f_ex_an_ar_oldlib="$1"
309
310 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
311 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
312 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
313 :
314 else
315 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
316 exit $EXIT_FAILURE
317 fi
318 }
319
320 # func_extract_archives gentop oldlib ...
321 func_extract_archives ()
322 {
323 my_gentop="$1"; shift
324 my_oldlibs=${1+"$@"}
325 my_oldobjs=""
326 my_xlib=""
327 my_xabs=""
328 my_xdir=""
329 my_status=""
330
331 $show "${rm}r $my_gentop"
332 $run ${rm}r "$my_gentop"
333 $show "$mkdir $my_gentop"
334 $run $mkdir "$my_gentop"
335 my_status=$?
336 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
337 exit $my_status
338 fi
339
340 for my_xlib in $my_oldlibs; do
341 # Extract the objects.
342 case $my_xlib in
343 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
344 *) my_xabs=`pwd`"/$my_xlib" ;;
345 esac
346 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
347 my_xlib_u=$my_xlib
348 while :; do
349 case " $extracted_archives " in
350 *" $my_xlib_u "*)
351 extracted_serial=`expr $extracted_serial + 1`
352 my_xlib_u=lt$extracted_serial-$my_xlib ;;
353 *) break ;;
354 esac
355 done
356 extracted_archives="$extracted_archives $my_xlib_u"
357 my_xdir="$my_gentop/$my_xlib_u"
358
359 $show "${rm}r $my_xdir"
360 $run ${rm}r "$my_xdir"
361 $show "$mkdir $my_xdir"
362 $run $mkdir "$my_xdir"
363 exit_status=$?
364 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
365 exit $exit_status
366 fi
367 case $host in
368 *-darwin*)
369 $show "Extracting $my_xabs"
370 # Do not bother doing anything if just a dry run
371 if test -z "$run"; then
372 darwin_orig_dir=`pwd`
373 cd $my_xdir || exit $?
374 darwin_archive=$my_xabs
375 darwin_curdir=`pwd`
376 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
377 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
378 if test -n "$darwin_arches"; then
379 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
380 darwin_arch=
381 $show "$darwin_base_archive has multiple architectures $darwin_arches"
382 for darwin_arch in $darwin_arches ; do
383 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
384 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
385 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
386 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
387 cd "$darwin_curdir"
388 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
389 done # $darwin_arches
390 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
391 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
392 darwin_file=
393 darwin_files=
394 for darwin_file in $darwin_filelist; do
395 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
396 lipo -create -output "$darwin_file" $darwin_files
397 done # $darwin_filelist
398 ${rm}r unfat-$$
399 cd "$darwin_orig_dir"
400 else
401 cd "$darwin_orig_dir"
402 func_extract_an_archive "$my_xdir" "$my_xabs"
403 fi # $darwin_arches
404 fi # $run
405 ;;
406 *)
407 func_extract_an_archive "$my_xdir" "$my_xabs"
408 ;;
409 esac
410 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
411 done
412 func_extract_archives_result="$my_oldobjs"
413 }
414 # End of Shell function definitions
415 #####################################
416
417 # Darwin sucks
418 eval std_shrext=\"$shrext_cmds\"
419
420 disable_libs=no
421
422 # Parse our command line options once, thoroughly.
423 while test "$#" -gt 0
424 do
425 arg="$1"
426 shift
427
428 case $arg in
429 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
430 *) optarg= ;;
431 esac
432
433 # If the previous option needs an argument, assign it.
434 if test -n "$prev"; then
435 case $prev in
436 execute_dlfiles)
437 execute_dlfiles="$execute_dlfiles $arg"
438 ;;
439 tag)
440 tagname="$arg"
441 preserve_args="${preserve_args}=$arg"
442
443 # Check whether tagname contains only valid characters
444 case $tagname in
445 *[!-_A-Za-z0-9,/]*)
446 $echo "$progname: invalid tag name: $tagname" 1>&2
447 exit $EXIT_FAILURE
448 ;;
449 esac
450
451 case $tagname in
452 CC)
453 # Don't test for the "default" C tag, as we know, it's there, but
454 # not specially marked.
455 ;;
456 *)
457 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
458 taglist="$taglist $tagname"
459 # Evaluate the configuration.
460 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
461 else
462 $echo "$progname: ignoring unknown tag $tagname" 1>&2
463 fi
464 ;;
465 esac
466 ;;
467 *)
468 eval "$prev=\$arg"
469 ;;
470 esac
471
472 prev=
473 prevopt=
474 continue
475 fi
476
477 # Have we seen a non-optional argument yet?
478 case $arg in
479 --help)
480 show_help=yes
481 ;;
482
483 --version)
484 echo "\
485 $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
486
487 Copyright (C) 2007 Free Software Foundation, Inc.
488 This is free software; see the source for copying conditions. There is NO
489 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
490 exit $?
491 ;;
492
493 --config)
494 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
495 # Now print the configurations for the tags.
496 for tagname in $taglist; do
497 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
498 done
499 exit $?
500 ;;
501
502 --debug)
503 $echo "$progname: enabling shell trace mode"
504 set -x
505 preserve_args="$preserve_args $arg"
506 ;;
507
508 --dry-run | -n)
509 run=:
510 ;;
511
512 --features)
513 $echo "host: $host"
514 if test "$build_libtool_libs" = yes; then
515 $echo "enable shared libraries"
516 else
517 $echo "disable shared libraries"
518 fi
519 if test "$build_old_libs" = yes; then
520 $echo "enable static libraries"
521 else
522 $echo "disable static libraries"
523 fi
524 exit $?
525 ;;
526
527 --finish) mode="finish" ;;
528
529 --mode) prevopt="--mode" prev=mode ;;
530 --mode=*) mode="$optarg" ;;
531
532 --preserve-dup-deps) duplicate_deps="yes" ;;
533
534 --quiet | --silent)
535 show=:
536 preserve_args="$preserve_args $arg"
537 ;;
538
539 --tag)
540 prevopt="--tag"
541 prev=tag
542 preserve_args="$preserve_args --tag"
543 ;;
544 --tag=*)
545 set tag "$optarg" ${1+"$@"}
546 shift
547 prev=tag
548 preserve_args="$preserve_args --tag"
549 ;;
550
551 -dlopen)
552 prevopt="-dlopen"
553 prev=execute_dlfiles
554 ;;
555
556 -*)
557 $echo "$modename: unrecognized option \`$arg'" 1>&2
558 $echo "$help" 1>&2
559 exit $EXIT_FAILURE
560 ;;
561
562 *)
563 nonopt="$arg"
564 break
565 ;;
566 esac
567 done
568
569 if test -n "$prevopt"; then
570 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
571 $echo "$help" 1>&2
572 exit $EXIT_FAILURE
573 fi
574
575 case $disable_libs in
576 no)
577 ;;
578 shared)
579 build_libtool_libs=no
580 build_old_libs=yes
581 ;;
582 static)
583 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
584 ;;
585 esac
586
587 # If this variable is set in any of the actions, the command in it
588 # will be execed at the end. This prevents here-documents from being
589 # left over by shells.
590 exec_cmd=
591
592 if test -z "$show_help"; then
593
594 # Infer the operation mode.
595 if test -z "$mode"; then
596 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
597 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
598 case $nonopt in
599 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
600 mode=link
601 for arg
602 do
603 case $arg in
604 -c)
605 mode=compile
606 break
607 ;;
608 esac
609 done
610 ;;
611 *db | *dbx | *strace | *truss)
612 mode=execute
613 ;;
614 *install*|cp|mv)
615 mode=install
616 ;;
617 *rm)
618 mode=uninstall
619 ;;
620 *)
621 # If we have no mode, but dlfiles were specified, then do execute mode.
622 test -n "$execute_dlfiles" && mode=execute
623
624 # Just use the default operation mode.
625 if test -z "$mode"; then
626 if test -n "$nonopt"; then
627 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
628 else
629 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
630 fi
631 fi
632 ;;
633 esac
634 fi
635
636 # Only execute mode is allowed to have -dlopen flags.
637 if test -n "$execute_dlfiles" && test "$mode" != execute; then
638 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
639 $echo "$help" 1>&2
640 exit $EXIT_FAILURE
641 fi
642
643 # Change the help message to a mode-specific one.
644 generic_help="$help"
645 help="Try \`$modename --help --mode=$mode' for more information."
646
647 # These modes are in order of execution frequency so that they run quickly.
648 case $mode in
649 # libtool compile mode
650 compile)
651 modename="$modename: compile"
652 # Get the compilation command and the source file.
653 base_compile=
654 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
655 suppress_opt=yes
656 suppress_output=
657 arg_mode=normal
658 libobj=
659 later=
660
661 for arg
662 do
663 case $arg_mode in
664 arg )
665 # do not "continue". Instead, add this to base_compile
666 lastarg="$arg"
667 arg_mode=normal
668 ;;
669
670 target )
671 libobj="$arg"
672 arg_mode=normal
673 continue
674 ;;
675
676 normal )
677 # Accept any command-line options.
678 case $arg in
679 -o)
680 if test -n "$libobj" ; then
681 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
682 exit $EXIT_FAILURE
683 fi
684 arg_mode=target
685 continue
686 ;;
687
688 -static | -prefer-pic | -prefer-non-pic)
689 later="$later $arg"
690 continue
691 ;;
692
693 -no-suppress)
694 suppress_opt=no
695 continue
696 ;;
697
698 -Xcompiler)
699 arg_mode=arg # the next one goes into the "base_compile" arg list
700 continue # The current "srcfile" will either be retained or
701 ;; # replaced later. I would guess that would be a bug.
702
703 -Wc,*)
704 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
705 lastarg=
706 save_ifs="$IFS"; IFS=','
707 for arg in $args; do
708 IFS="$save_ifs"
709
710 # Double-quote args containing other shell metacharacters.
711 # Many Bourne shells cannot handle close brackets correctly
712 # in scan sets, so we specify it separately.
713 case $arg in
714 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
715 arg="\"$arg\""
716 ;;
717 esac
718 lastarg="$lastarg $arg"
719 done
720 IFS="$save_ifs"
721 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
722
723 # Add the arguments to base_compile.
724 base_compile="$base_compile $lastarg"
725 continue
726 ;;
727
728 * )
729 # Accept the current argument as the source file.
730 # The previous "srcfile" becomes the current argument.
731 #
732 lastarg="$srcfile"
733 srcfile="$arg"
734 ;;
735 esac # case $arg
736 ;;
737 esac # case $arg_mode
738
739 # Aesthetically quote the previous argument.
740 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
741
742 case $lastarg in
743 # Double-quote args containing other shell metacharacters.
744 # Many Bourne shells cannot handle close brackets correctly
745 # in scan sets, and some SunOS ksh mistreat backslash-escaping
746 # in scan sets (worked around with variable expansion),
747 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
748 # at all, so we specify them separately.
749 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
750 lastarg="\"$lastarg\""
751 ;;
752 esac
753
754 base_compile="$base_compile $lastarg"
755 done # for arg
756
757 case $arg_mode in
758 arg)
759 $echo "$modename: you must specify an argument for -Xcompile"
760 exit $EXIT_FAILURE
761 ;;
762 target)
763 $echo "$modename: you must specify a target with \`-o'" 1>&2
764 exit $EXIT_FAILURE
765 ;;
766 *)
767 # Get the name of the library object.
768 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
769 ;;
770 esac
771
772 # Recognize several different file suffixes.
773 # If the user specifies -o file.o, it is replaced with file.lo
774 xform='[cCFSifmso]'
775 case $libobj in
776 *.ada) xform=ada ;;
777 *.adb) xform=adb ;;
778 *.ads) xform=ads ;;
779 *.asm) xform=asm ;;
780 *.c++) xform=c++ ;;
781 *.cc) xform=cc ;;
782 *.ii) xform=ii ;;
783 *.class) xform=class ;;
784 *.cpp) xform=cpp ;;
785 *.cxx) xform=cxx ;;
786 *.[fF][09]?) xform=[fF][09]. ;;
787 *.for) xform=for ;;
788 *.java) xform=java ;;
789 *.obj) xform=obj ;;
790 esac
791
792 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
793
794 case $libobj in
795 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
796 *)
797 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
798 exit $EXIT_FAILURE
799 ;;
800 esac
801
802 func_infer_tag $base_compile
803
804 for arg in $later; do
805 case $arg in
806 -static)
807 build_old_libs=yes
808 continue
809 ;;
810
811 -prefer-pic)
812 pic_mode=yes
813 continue
814 ;;
815
816 -prefer-non-pic)
817 pic_mode=no
818 continue
819 ;;
820 esac
821 done
822
823 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
824 case $qlibobj in
825 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
826 qlibobj="\"$qlibobj\"" ;;
827 esac
828 test "X$libobj" != "X$qlibobj" \
829 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
830 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
831 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
832 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
833 if test "X$xdir" = "X$obj"; then
834 xdir=
835 else
836 xdir=$xdir/
837 fi
838 lobj=${xdir}$objdir/$objname
839
840 if test -z "$base_compile"; then
841 $echo "$modename: you must specify a compilation command" 1>&2
842 $echo "$help" 1>&2
843 exit $EXIT_FAILURE
844 fi
845
846 # Delete any leftover library objects.
847 if test "$build_old_libs" = yes; then
848 removelist="$obj $lobj $libobj ${libobj}T"
849 else
850 removelist="$lobj $libobj ${libobj}T"
851 fi
852
853 $run $rm $removelist
854 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
855
856 # On Cygwin there's no "real" PIC flag so we must build both object types
857 case $host_os in
858 cygwin* | mingw* | pw32* | os2*)
859 pic_mode=default
860 ;;
861 esac
862 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
863 # non-PIC code in shared libraries is not supported
864 pic_mode=default
865 fi
866
867 # Calculate the filename of the output object if compiler does
868 # not support -o with -c
869 if test "$compiler_c_o" = no; then
870 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
871 lockfile="$output_obj.lock"
872 removelist="$removelist $output_obj $lockfile"
873 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
874 else
875 output_obj=
876 need_locks=no
877 lockfile=
878 fi
879
880 # Lock this critical section if it is needed
881 # We use this script file to make the link, it avoids creating a new file
882 if test "$need_locks" = yes; then
883 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
884 $show "Waiting for $lockfile to be removed"
885 sleep 2
886 done
887 elif test "$need_locks" = warn; then
888 if test -f "$lockfile"; then
889 $echo "\
890 *** ERROR, $lockfile exists and contains:
891 `cat $lockfile 2>/dev/null`
892
893 This indicates that another process is trying to use the same
894 temporary object file, and libtool could not work around it because
895 your compiler does not support \`-c' and \`-o' together. If you
896 repeat this compilation, it may succeed, by chance, but you had better
897 avoid parallel builds (make -j) in this platform, or get a better
898 compiler."
899
900 $run $rm $removelist
901 exit $EXIT_FAILURE
902 fi
903 $echo "$srcfile" > "$lockfile"
904 fi
905
906 if test -n "$fix_srcfile_path"; then
907 eval srcfile=\"$fix_srcfile_path\"
908 fi
909 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
910 case $qsrcfile in
911 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
912 qsrcfile="\"$qsrcfile\"" ;;
913 esac
914
915 $run $rm "$libobj" "${libobj}T"
916
917 # Create a libtool object file (analogous to a ".la" file),
918 # but don't create it if we're doing a dry run.
919 test -z "$run" && cat > ${libobj}T <<EOF
920 # $libobj - a libtool object file
921 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
922 #
923 # Please DO NOT delete this file!
924 # It is necessary for linking the library.
925
926 # Name of the PIC object.
927 EOF
928
929 # Only build a PIC object if we are building libtool libraries.
930 if test "$build_libtool_libs" = yes; then
931 # Without this assignment, base_compile gets emptied.
932 fbsd_hideous_sh_bug=$base_compile
933
934 if test "$pic_mode" != no; then
935 command="$base_compile $qsrcfile $pic_flag"
936 else
937 # Don't build PIC code
938 command="$base_compile $qsrcfile"
939 fi
940
941 if test ! -d "${xdir}$objdir"; then
942 $show "$mkdir ${xdir}$objdir"
943 $run $mkdir ${xdir}$objdir
944 exit_status=$?
945 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
946 exit $exit_status
947 fi
948 fi
949
950 if test -z "$output_obj"; then
951 # Place PIC objects in $objdir
952 command="$command -o $lobj"
953 fi
954
955 $run $rm "$lobj" "$output_obj"
956
957 $show "$command"
958 if $run eval "$command"; then :
959 else
960 test -n "$output_obj" && $run $rm $removelist
961 exit $EXIT_FAILURE
962 fi
963
964 if test "$need_locks" = warn &&
965 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
966 $echo "\
967 *** ERROR, $lockfile contains:
968 `cat $lockfile 2>/dev/null`
969
970 but it should contain:
971 $srcfile
972
973 This indicates that another process is trying to use the same
974 temporary object file, and libtool could not work around it because
975 your compiler does not support \`-c' and \`-o' together. If you
976 repeat this compilation, it may succeed, by chance, but you had better
977 avoid parallel builds (make -j) in this platform, or get a better
978 compiler."
979
980 $run $rm $removelist
981 exit $EXIT_FAILURE
982 fi
983
984 # Just move the object if needed, then go on to compile the next one
985 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
986 $show "$mv $output_obj $lobj"
987 if $run $mv $output_obj $lobj; then :
988 else
989 error=$?
990 $run $rm $removelist
991 exit $error
992 fi
993 fi
994
995 # Append the name of the PIC object to the libtool object file.
996 test -z "$run" && cat >> ${libobj}T <<EOF
997 pic_object='$objdir/$objname'
998
999 EOF
1000
1001 # Allow error messages only from the first compilation.
1002 if test "$suppress_opt" = yes; then
1003 suppress_output=' >/dev/null 2>&1'
1004 fi
1005 else
1006 # No PIC object so indicate it doesn't exist in the libtool
1007 # object file.
1008 test -z "$run" && cat >> ${libobj}T <<EOF
1009 pic_object=none
1010
1011 EOF
1012 fi
1013
1014 # Only build a position-dependent object if we build old libraries.
1015 if test "$build_old_libs" = yes; then
1016 if test "$pic_mode" != yes; then
1017 # Don't build PIC code
1018 command="$base_compile $qsrcfile"
1019 else
1020 command="$base_compile $qsrcfile $pic_flag"
1021 fi
1022 if test "$compiler_c_o" = yes; then
1023 command="$command -o $obj"
1024 fi
1025
1026 # Suppress compiler output if we already did a PIC compilation.
1027 command="$command$suppress_output"
1028 $run $rm "$obj" "$output_obj"
1029 $show "$command"
1030 if $run eval "$command"; then :
1031 else
1032 $run $rm $removelist
1033 exit $EXIT_FAILURE
1034 fi
1035
1036 if test "$need_locks" = warn &&
1037 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1038 $echo "\
1039 *** ERROR, $lockfile contains:
1040 `cat $lockfile 2>/dev/null`
1041
1042 but it should contain:
1043 $srcfile
1044
1045 This indicates that another process is trying to use the same
1046 temporary object file, and libtool could not work around it because
1047 your compiler does not support \`-c' and \`-o' together. If you
1048 repeat this compilation, it may succeed, by chance, but you had better
1049 avoid parallel builds (make -j) in this platform, or get a better
1050 compiler."
1051
1052 $run $rm $removelist
1053 exit $EXIT_FAILURE
1054 fi
1055
1056 # Just move the object if needed
1057 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1058 $show "$mv $output_obj $obj"
1059 if $run $mv $output_obj $obj; then :
1060 else
1061 error=$?
1062 $run $rm $removelist
1063 exit $error
1064 fi
1065 fi
1066
1067 # Append the name of the non-PIC object the libtool object file.
1068 # Only append if the libtool object file exists.
1069 test -z "$run" && cat >> ${libobj}T <<EOF
1070 # Name of the non-PIC object.
1071 non_pic_object='$objname'
1072
1073 EOF
1074 else
1075 # Append the name of the non-PIC object the libtool object file.
1076 # Only append if the libtool object file exists.
1077 test -z "$run" && cat >> ${libobj}T <<EOF
1078 # Name of the non-PIC object.
1079 non_pic_object=none
1080
1081 EOF
1082 fi
1083
1084 $run $mv "${libobj}T" "${libobj}"
1085
1086 # Unlock the critical section if it was locked
1087 if test "$need_locks" != no; then
1088 $run $rm "$lockfile"
1089 fi
1090
1091 exit $EXIT_SUCCESS
1092 ;;
1093
1094 # libtool link mode
1095 link | relink)
1096 modename="$modename: link"
1097 case $host in
1098 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1099 # It is impossible to link a dll without this setting, and
1100 # we shouldn't force the makefile maintainer to figure out
1101 # which system we are compiling for in order to pass an extra
1102 # flag for every libtool invocation.
1103 # allow_undefined=no
1104
1105 # FIXME: Unfortunately, there are problems with the above when trying
1106 # to make a dll which has undefined symbols, in which case not
1107 # even a static library is built. For now, we need to specify
1108 # -no-undefined on the libtool link line when we can be certain
1109 # that all symbols are satisfied, otherwise we get a static library.
1110 allow_undefined=yes
1111 ;;
1112 *)
1113 allow_undefined=yes
1114 ;;
1115 esac
1116 libtool_args="$nonopt"
1117 base_compile="$nonopt $@"
1118 compile_command="$nonopt"
1119 finalize_command="$nonopt"
1120
1121 compile_rpath=
1122 finalize_rpath=
1123 compile_shlibpath=
1124 finalize_shlibpath=
1125 convenience=
1126 old_convenience=
1127 deplibs=
1128 old_deplibs=
1129 compiler_flags=
1130 linker_flags=
1131 dllsearchpath=
1132 lib_search_path=`pwd`
1133 inst_prefix_dir=
1134
1135 avoid_version=no
1136 dlfiles=
1137 dlprefiles=
1138 dlself=no
1139 export_dynamic=no
1140 export_symbols=
1141 export_symbols_regex=
1142 generated=
1143 libobjs=
1144 ltlibs=
1145 module=no
1146 no_install=no
1147 objs=
1148 non_pic_objects=
1149 notinst_path= # paths that contain not-installed libtool libraries
1150 precious_files_regex=
1151 prefer_static_libs=no
1152 preload=no
1153 prev=
1154 prevarg=
1155 release=
1156 rpath=
1157 xrpath=
1158 perm_rpath=
1159 temp_rpath=
1160 thread_safe=no
1161 vinfo=
1162 vinfo_number=no
1163
1164 func_infer_tag $base_compile
1165
1166 # We need to know -static, to get the right output filenames.
1167 for arg
1168 do
1169 case $arg in
1170 -all-static | -static | -static-libtool-libs)
1171 case $arg in
1172 -all-static)
1173 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1174 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1175 fi
1176 if test -n "$link_static_flag"; then
1177 dlopen_self=$dlopen_self_static
1178 fi
1179 prefer_static_libs=yes
1180 ;;
1181 -static)
1182 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1183 dlopen_self=$dlopen_self_static
1184 fi
1185 prefer_static_libs=built
1186 ;;
1187 -static-libtool-libs)
1188 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1189 dlopen_self=$dlopen_self_static
1190 fi
1191 prefer_static_libs=yes
1192 ;;
1193 esac
1194 build_libtool_libs=no
1195 build_old_libs=yes
1196 break
1197 ;;
1198 esac
1199 done
1200
1201 # See if our shared archives depend on static archives.
1202 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
1203
1204 # Go through the arguments, transforming them on the way.
1205 while test "$#" -gt 0; do
1206 arg="$1"
1207 shift
1208 case $arg in
1209 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1210 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1211 ;;
1212 *) qarg=$arg ;;
1213 esac
1214 libtool_args="$libtool_args $qarg"
1215
1216 # If the previous option needs an argument, assign it.
1217 if test -n "$prev"; then
1218 case $prev in
1219 output)
1220 compile_command="$compile_command @OUTPUT@"
1221 finalize_command="$finalize_command @OUTPUT@"
1222 ;;
1223 esac
1224
1225 case $prev in
1226 dlfiles|dlprefiles)
1227 if test "$preload" = no; then
1228 # Add the symbol object into the linking commands.
1229 compile_command="$compile_command @SYMFILE@"
1230 finalize_command="$finalize_command @SYMFILE@"
1231 preload=yes
1232 fi
1233 case $arg in
1234 *.la | *.lo) ;; # We handle these cases below.
1235 force)
1236 if test "$dlself" = no; then
1237 dlself=needless
1238 export_dynamic=yes
1239 fi
1240 prev=
1241 continue
1242 ;;
1243 self)
1244 if test "$prev" = dlprefiles; then
1245 dlself=yes
1246 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
1247 dlself=yes
1248 else
1249 dlself=needless
1250 export_dynamic=yes
1251 fi
1252 prev=
1253 continue
1254 ;;
1255 *)
1256 if test "$prev" = dlfiles; then
1257 dlfiles="$dlfiles $arg"
1258 else
1259 dlprefiles="$dlprefiles $arg"
1260 fi
1261 prev=
1262 continue
1263 ;;
1264 esac
1265 ;;
1266 expsyms)
1267 export_symbols="$arg"
1268 if test ! -f "$arg"; then
1269 $echo "$modename: symbol file \`$arg' does not exist"
1270 exit $EXIT_FAILURE
1271 fi
1272 prev=
1273 continue
1274 ;;
1275 expsyms_regex)
1276 export_symbols_regex="$arg"
1277 prev=
1278 continue
1279 ;;
1280 inst_prefix)
1281 inst_prefix_dir="$arg"
1282 prev=
1283 continue
1284 ;;
1285 precious_regex)
1286 precious_files_regex="$arg"
1287 prev=
1288 continue
1289 ;;
1290 release)
1291 release="-$arg"
1292 prev=
1293 continue
1294 ;;
1295 objectlist)
1296 if test -f "$arg"; then
1297 save_arg=$arg
1298 moreargs=
1299 for fil in `cat $save_arg`
1300 do
1301 # moreargs="$moreargs $fil"
1302 arg=$fil
1303 # A libtool-controlled object.
1304
1305 # Check to see that this really is a libtool object.
1306 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1307 pic_object=
1308 non_pic_object=
1309
1310 # Read the .lo file
1311 # If there is no directory component, then add one.
1312 case $arg in
1313 */* | *\\*) . $arg ;;
1314 *) . ./$arg ;;
1315 esac
1316
1317 if test -z "$pic_object" || \
1318 test -z "$non_pic_object" ||
1319 test "$pic_object" = none && \
1320 test "$non_pic_object" = none; then
1321 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1322 exit $EXIT_FAILURE
1323 fi
1324
1325 # Extract subdirectory from the argument.
1326 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1327 if test "X$xdir" = "X$arg"; then
1328 xdir=
1329 else
1330 xdir="$xdir/"
1331 fi
1332
1333 if test "$pic_object" != none; then
1334 # Prepend the subdirectory the object is found in.
1335 pic_object="$xdir$pic_object"
1336
1337 if test "$prev" = dlfiles; then
1338 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1339 dlfiles="$dlfiles $pic_object"
1340 prev=
1341 continue
1342 else
1343 # If libtool objects are unsupported, then we need to preload.
1344 prev=dlprefiles
1345 fi
1346 fi
1347
1348 # CHECK ME: I think I busted this. -Ossama
1349 if test "$prev" = dlprefiles; then
1350 # Preload the old-style object.
1351 dlprefiles="$dlprefiles $pic_object"
1352 prev=
1353 fi
1354
1355 # A PIC object.
1356 libobjs="$libobjs $pic_object"
1357 arg="$pic_object"
1358 fi
1359
1360 # Non-PIC object.
1361 if test "$non_pic_object" != none; then
1362 # Prepend the subdirectory the object is found in.
1363 non_pic_object="$xdir$non_pic_object"
1364
1365 # A standard non-PIC object
1366 non_pic_objects="$non_pic_objects $non_pic_object"
1367 if test -z "$pic_object" || test "$pic_object" = none ; then
1368 arg="$non_pic_object"
1369 fi
1370 else
1371 # If the PIC object exists, use it instead.
1372 # $xdir was prepended to $pic_object above.
1373 non_pic_object="$pic_object"
1374 non_pic_objects="$non_pic_objects $non_pic_object"
1375 fi
1376 else
1377 # Only an error if not doing a dry-run.
1378 if test -z "$run"; then
1379 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1380 exit $EXIT_FAILURE
1381 else
1382 # Dry-run case.
1383
1384 # Extract subdirectory from the argument.
1385 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1386 if test "X$xdir" = "X$arg"; then
1387 xdir=
1388 else
1389 xdir="$xdir/"
1390 fi
1391
1392 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1393 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1394 libobjs="$libobjs $pic_object"
1395 non_pic_objects="$non_pic_objects $non_pic_object"
1396 fi
1397 fi
1398 done
1399 else
1400 $echo "$modename: link input file \`$save_arg' does not exist"
1401 exit $EXIT_FAILURE
1402 fi
1403 arg=$save_arg
1404 prev=
1405 continue
1406 ;;
1407 rpath | xrpath)
1408 # We need an absolute path.
1409 case $arg in
1410 [\\/]* | [A-Za-z]:[\\/]*) ;;
1411 *)
1412 $echo "$modename: only absolute run-paths are allowed" 1>&2
1413 exit $EXIT_FAILURE
1414 ;;
1415 esac
1416 if test "$prev" = rpath; then
1417 case "$rpath " in
1418 *" $arg "*) ;;
1419 *) rpath="$rpath $arg" ;;
1420 esac
1421 else
1422 case "$xrpath " in
1423 *" $arg "*) ;;
1424 *) xrpath="$xrpath $arg" ;;
1425 esac
1426 fi
1427 prev=
1428 continue
1429 ;;
1430 xcompiler)
1431 compiler_flags="$compiler_flags $qarg"
1432 prev=
1433 compile_command="$compile_command $qarg"
1434 finalize_command="$finalize_command $qarg"
1435 continue
1436 ;;
1437 xlinker)
1438 linker_flags="$linker_flags $qarg"
1439 compiler_flags="$compiler_flags $wl$qarg"
1440 prev=
1441 compile_command="$compile_command $wl$qarg"
1442 finalize_command="$finalize_command $wl$qarg"
1443 continue
1444 ;;
1445 xcclinker)
1446 linker_flags="$linker_flags $qarg"
1447 compiler_flags="$compiler_flags $qarg"
1448 prev=
1449 compile_command="$compile_command $qarg"
1450 finalize_command="$finalize_command $qarg"
1451 continue
1452 ;;
1453 shrext)
1454 shrext_cmds="$arg"
1455 prev=
1456 continue
1457 ;;
1458 darwin_framework|darwin_framework_skip)
1459 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1460 compile_command="$compile_command $arg"
1461 finalize_command="$finalize_command $arg"
1462 prev=
1463 continue
1464 ;;
1465 *)
1466 eval "$prev=\"\$arg\""
1467 prev=
1468 continue
1469 ;;
1470 esac
1471 fi # test -n "$prev"
1472
1473 prevarg="$arg"
1474
1475 case $arg in
1476 -all-static)
1477 if test -n "$link_static_flag"; then
1478 compile_command="$compile_command $link_static_flag"
1479 finalize_command="$finalize_command $link_static_flag"
1480 fi
1481 continue
1482 ;;
1483
1484 -allow-undefined)
1485 # FIXME: remove this flag sometime in the future.
1486 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1487 continue
1488 ;;
1489
1490 -avoid-version)
1491 avoid_version=yes
1492 continue
1493 ;;
1494
1495 -dlopen)
1496 prev=dlfiles
1497 continue
1498 ;;
1499
1500 -dlpreopen)
1501 prev=dlprefiles
1502 continue
1503 ;;
1504
1505 -export-dynamic)
1506 export_dynamic=yes
1507 continue
1508 ;;
1509
1510 -export-symbols | -export-symbols-regex)
1511 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1512 $echo "$modename: more than one -exported-symbols argument is not allowed"
1513 exit $EXIT_FAILURE
1514 fi
1515 if test "X$arg" = "X-export-symbols"; then
1516 prev=expsyms
1517 else
1518 prev=expsyms_regex
1519 fi
1520 continue
1521 ;;
1522
1523 -framework|-arch|-isysroot)
1524 case " $CC " in
1525 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1526 prev=darwin_framework_skip ;;
1527 *) compiler_flags="$compiler_flags $arg"
1528 prev=darwin_framework ;;
1529 esac
1530 compile_command="$compile_command $arg"
1531 finalize_command="$finalize_command $arg"
1532 continue
1533 ;;
1534
1535 -inst-prefix-dir)
1536 prev=inst_prefix
1537 continue
1538 ;;
1539
1540 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
1541 # so, if we see these flags be careful not to treat them like -L
1542 -L[A-Z][A-Z]*:*)
1543 case $with_gcc/$host in
1544 no/*-*-irix* | /*-*-irix*)
1545 compile_command="$compile_command $arg"
1546 finalize_command="$finalize_command $arg"
1547 ;;
1548 esac
1549 continue
1550 ;;
1551
1552 -L*)
1553 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1554 # We need an absolute path.
1555 case $dir in
1556 [\\/]* | [A-Za-z]:[\\/]*) ;;
1557 *)
1558 absdir=`cd "$dir" && pwd`
1559 if test -z "$absdir"; then
1560 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1561 absdir="$dir"
1562 notinst_path="$notinst_path $dir"
1563 fi
1564 dir="$absdir"
1565 ;;
1566 esac
1567 case "$deplibs " in
1568 *" -L$dir "*) ;;
1569 *)
1570 deplibs="$deplibs -L$dir"
1571 lib_search_path="$lib_search_path $dir"
1572 ;;
1573 esac
1574 case $host in
1575 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1576 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1577 case :$dllsearchpath: in
1578 *":$dir:"*) ;;
1579 *) dllsearchpath="$dllsearchpath:$dir";;
1580 esac
1581 case :$dllsearchpath: in
1582 *":$testbindir:"*) ;;
1583 *) dllsearchpath="$dllsearchpath:$testbindir";;
1584 esac
1585 ;;
1586 esac
1587 continue
1588 ;;
1589
1590 -l*)
1591 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1592 case $host in
1593 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1594 # These systems don't actually have a C or math library (as such)
1595 continue
1596 ;;
1597 *-*-os2*)
1598 # These systems don't actually have a C library (as such)
1599 test "X$arg" = "X-lc" && continue
1600 ;;
1601 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1602 # Do not include libc due to us having libc/libc_r.
1603 test "X$arg" = "X-lc" && continue
1604 ;;
1605 *-*-rhapsody* | *-*-darwin1.[012])
1606 # Rhapsody C and math libraries are in the System framework
1607 deplibs="$deplibs -framework System"
1608 continue
1609 ;;
1610 *-*-sco3.2v5* | *-*-sco5v6*)
1611 # Causes problems with __ctype
1612 test "X$arg" = "X-lc" && continue
1613 ;;
1614 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1615 # Compiler inserts libc in the correct place for threads to work
1616 test "X$arg" = "X-lc" && continue
1617 ;;
1618 esac
1619 elif test "X$arg" = "X-lc_r"; then
1620 case $host in
1621 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1622 # Do not include libc_r directly, use -pthread flag.
1623 continue
1624 ;;
1625 esac
1626 fi
1627 deplibs="$deplibs $arg"
1628 continue
1629 ;;
1630
1631 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1632 # classes, name mangling, and exception handling.
1633 -model)
1634 compile_command="$compile_command $arg"
1635 compiler_flags="$compiler_flags $arg"
1636 finalize_command="$finalize_command $arg"
1637 prev=xcompiler
1638 continue
1639 ;;
1640
1641 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1642 compiler_flags="$compiler_flags $arg"
1643 compile_command="$compile_command $arg"
1644 finalize_command="$finalize_command $arg"
1645 continue
1646 ;;
1647
1648 -module)
1649 module=yes
1650 continue
1651 ;;
1652
1653 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1654 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1655 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1656 # +DA*, +DD* enable 64-bit mode on the HP compiler
1657 # -q* pass through compiler args for the IBM compiler
1658 # -m* pass through architecture-specific compiler args for GCC
1659 # -m*, -t[45]*, -txscale* pass through architecture-specific
1660 # compiler args for GCC
1661 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1662 # -F/path gives path to uninstalled frameworks, gcc on darwin
1663 # @file GCC response files
1664 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1665 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1666
1667 # Unknown arguments in both finalize_command and compile_command need
1668 # to be aesthetically quoted because they are evaled later.
1669 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1670 case $arg in
1671 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1672 arg="\"$arg\""
1673 ;;
1674 esac
1675 compile_command="$compile_command $arg"
1676 finalize_command="$finalize_command $arg"
1677 compiler_flags="$compiler_flags $arg"
1678 continue
1679 ;;
1680
1681 -shrext)
1682 prev=shrext
1683 continue
1684 ;;
1685
1686 -no-fast-install)
1687 fast_install=no
1688 continue
1689 ;;
1690
1691 -no-install)
1692 case $host in
1693 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1694 # The PATH hackery in wrapper scripts is required on Windows
1695 # and Darwin in order for the loader to find any dlls it needs.
1696 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1697 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1698 fast_install=no
1699 ;;
1700 *) no_install=yes ;;
1701 esac
1702 continue
1703 ;;
1704
1705 -no-undefined)
1706 allow_undefined=no
1707 continue
1708 ;;
1709
1710 -objectlist)
1711 prev=objectlist
1712 continue
1713 ;;
1714
1715 -o) prev=output ;;
1716
1717 -precious-files-regex)
1718 prev=precious_regex
1719 continue
1720 ;;
1721
1722 -release)
1723 prev=release
1724 continue
1725 ;;
1726
1727 -rpath)
1728 prev=rpath
1729 continue
1730 ;;
1731
1732 -R)
1733 prev=xrpath
1734 continue
1735 ;;
1736
1737 -R*)
1738 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1739 # We need an absolute path.
1740 case $dir in
1741 [\\/]* | [A-Za-z]:[\\/]*) ;;
1742 *)
1743 $echo "$modename: only absolute run-paths are allowed" 1>&2
1744 exit $EXIT_FAILURE
1745 ;;
1746 esac
1747 case "$xrpath " in
1748 *" $dir "*) ;;
1749 *) xrpath="$xrpath $dir" ;;
1750 esac
1751 continue
1752 ;;
1753
1754 -static | -static-libtool-libs)
1755 # The effects of -static are defined in a previous loop.
1756 # We used to do the same as -all-static on platforms that
1757 # didn't have a PIC flag, but the assumption that the effects
1758 # would be equivalent was wrong. It would break on at least
1759 # Digital Unix and AIX.
1760 continue
1761 ;;
1762
1763 -thread-safe)
1764 thread_safe=yes
1765 continue
1766 ;;
1767
1768 -version-info)
1769 prev=vinfo
1770 continue
1771 ;;
1772 -version-number)
1773 prev=vinfo
1774 vinfo_number=yes
1775 continue
1776 ;;
1777
1778 -Wc,*)
1779 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
1780 arg=
1781 save_ifs="$IFS"; IFS=','
1782 for flag in $args; do
1783 IFS="$save_ifs"
1784 case $flag in
1785 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1786 flag="\"$flag\""
1787 ;;
1788 esac
1789 arg="$arg $wl$flag"
1790 compiler_flags="$compiler_flags $flag"
1791 done
1792 IFS="$save_ifs"
1793 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1794 ;;
1795
1796 -Wl,*)
1797 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
1798 arg=
1799 save_ifs="$IFS"; IFS=','
1800 for flag in $args; do
1801 IFS="$save_ifs"
1802 case $flag in
1803 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1804 flag="\"$flag\""
1805 ;;
1806 esac
1807 arg="$arg $wl$flag"
1808 compiler_flags="$compiler_flags $wl$flag"
1809 linker_flags="$linker_flags $flag"
1810 done
1811 IFS="$save_ifs"
1812 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1813 ;;
1814
1815 -Xcompiler)
1816 prev=xcompiler
1817 continue
1818 ;;
1819
1820 -Xlinker)
1821 prev=xlinker
1822 continue
1823 ;;
1824
1825 -XCClinker)
1826 prev=xcclinker
1827 continue
1828 ;;
1829
1830 # Some other compiler flag.
1831 -* | +*)
1832 # Unknown arguments in both finalize_command and compile_command need
1833 # to be aesthetically quoted because they are evaled later.
1834 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1835 case $arg in
1836 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1837 arg="\"$arg\""
1838 ;;
1839 esac
1840 ;;
1841
1842 *.$objext)
1843 # A standard object.
1844 objs="$objs $arg"
1845 ;;
1846
1847 *.lo)
1848 # A libtool-controlled object.
1849
1850 # Check to see that this really is a libtool object.
1851 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1852 pic_object=
1853 non_pic_object=
1854
1855 # Read the .lo file
1856 # If there is no directory component, then add one.
1857 case $arg in
1858 */* | *\\*) . $arg ;;
1859 *) . ./$arg ;;
1860 esac
1861
1862 if test -z "$pic_object" || \
1863 test -z "$non_pic_object" ||
1864 test "$pic_object" = none && \
1865 test "$non_pic_object" = none; then
1866 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1867 exit $EXIT_FAILURE
1868 fi
1869
1870 # Extract subdirectory from the argument.
1871 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1872 if test "X$xdir" = "X$arg"; then
1873 xdir=
1874 else
1875 xdir="$xdir/"
1876 fi
1877
1878 if test "$pic_object" != none; then
1879 # Prepend the subdirectory the object is found in.
1880 pic_object="$xdir$pic_object"
1881
1882 if test "$prev" = dlfiles; then
1883 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1884 dlfiles="$dlfiles $pic_object"
1885 prev=
1886 continue
1887 else
1888 # If libtool objects are unsupported, then we need to preload.
1889 prev=dlprefiles
1890 fi
1891 fi
1892
1893 # CHECK ME: I think I busted this. -Ossama
1894 if test "$prev" = dlprefiles; then
1895 # Preload the old-style object.
1896 dlprefiles="$dlprefiles $pic_object"
1897 prev=
1898 fi
1899
1900 # A PIC object.
1901 libobjs="$libobjs $pic_object"
1902 arg="$pic_object"
1903 fi
1904
1905 # Non-PIC object.
1906 if test "$non_pic_object" != none; then
1907 # Prepend the subdirectory the object is found in.
1908 non_pic_object="$xdir$non_pic_object"
1909
1910 # A standard non-PIC object
1911 non_pic_objects="$non_pic_objects $non_pic_object"
1912 if test -z "$pic_object" || test "$pic_object" = none ; then
1913 arg="$non_pic_object"
1914 fi
1915 else
1916 # If the PIC object exists, use it instead.
1917 # $xdir was prepended to $pic_object above.
1918 non_pic_object="$pic_object"
1919 non_pic_objects="$non_pic_objects $non_pic_object"
1920 fi
1921 else
1922 # Only an error if not doing a dry-run.
1923 if test -z "$run"; then
1924 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1925 exit $EXIT_FAILURE
1926 else
1927 # Dry-run case.
1928
1929 # Extract subdirectory from the argument.
1930 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1931 if test "X$xdir" = "X$arg"; then
1932 xdir=
1933 else
1934 xdir="$xdir/"
1935 fi
1936
1937 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1938 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1939 libobjs="$libobjs $pic_object"
1940 non_pic_objects="$non_pic_objects $non_pic_object"
1941 fi
1942 fi
1943 ;;
1944
1945 *.$libext)
1946 # An archive.
1947 deplibs="$deplibs $arg"
1948 old_deplibs="$old_deplibs $arg"
1949 continue
1950 ;;
1951
1952 *.la)
1953 # A libtool-controlled library.
1954
1955 if test "$prev" = dlfiles; then
1956 # This library was specified with -dlopen.
1957 dlfiles="$dlfiles $arg"
1958 prev=
1959 elif test "$prev" = dlprefiles; then
1960 # The library was specified with -dlpreopen.
1961 dlprefiles="$dlprefiles $arg"
1962 prev=
1963 else
1964 deplibs="$deplibs $arg"
1965 fi
1966 continue
1967 ;;
1968
1969 # Some other compiler argument.
1970 *)
1971 # Unknown arguments in both finalize_command and compile_command need
1972 # to be aesthetically quoted because they are evaled later.
1973 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1974 case $arg in
1975 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1976 arg="\"$arg\""
1977 ;;
1978 esac
1979 ;;
1980 esac # arg
1981
1982 # Now actually substitute the argument into the commands.
1983 if test -n "$arg"; then
1984 compile_command="$compile_command $arg"
1985 finalize_command="$finalize_command $arg"
1986 fi
1987 done # argument parsing loop
1988
1989 if test -n "$prev"; then
1990 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1991 $echo "$help" 1>&2
1992 exit $EXIT_FAILURE
1993 fi
1994
1995 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
1996 eval arg=\"$export_dynamic_flag_spec\"
1997 compile_command="$compile_command $arg"
1998 finalize_command="$finalize_command $arg"
1999 fi
2000
2001 oldlibs=
2002 # calculate the name of the file, without its directory
2003 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
2004 libobjs_save="$libobjs"
2005
2006 if test -n "$shlibpath_var"; then
2007 # get the directories listed in $shlibpath_var
2008 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
2009 else
2010 shlib_search_path=
2011 fi
2012 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
2013 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
2014
2015 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2016 if test "X$output_objdir" = "X$output"; then
2017 output_objdir="$objdir"
2018 else
2019 output_objdir="$output_objdir/$objdir"
2020 fi
2021 # Create the object directory.
2022 if test ! -d "$output_objdir"; then
2023 $show "$mkdir $output_objdir"
2024 $run $mkdir $output_objdir
2025 exit_status=$?
2026 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2027 exit $exit_status
2028 fi
2029 fi
2030
2031 # Determine the type of output
2032 case $output in
2033 "")
2034 $echo "$modename: you must specify an output file" 1>&2
2035 $echo "$help" 1>&2
2036 exit $EXIT_FAILURE
2037 ;;
2038 *.$libext) linkmode=oldlib ;;
2039 *.lo | *.$objext) linkmode=obj ;;
2040 *.la) linkmode=lib ;;
2041 *) linkmode=prog ;; # Anything else should be a program.
2042 esac
2043
2044 case $host in
2045 *cygwin* | *mingw* | *pw32*)
2046 # don't eliminate duplications in $postdeps and $predeps
2047 duplicate_compiler_generated_deps=yes
2048 ;;
2049 *)
2050 duplicate_compiler_generated_deps=$duplicate_deps
2051 ;;
2052 esac
2053 specialdeplibs=
2054
2055 libs=
2056 # Find all interdependent deplibs by searching for libraries
2057 # that are linked more than once (e.g. -la -lb -la)
2058 for deplib in $deplibs; do
2059 if test "X$duplicate_deps" = "Xyes" ; then
2060 case "$libs " in
2061 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2062 esac
2063 fi
2064 libs="$libs $deplib"
2065 done
2066
2067 if test "$linkmode" = lib; then
2068 libs="$predeps $libs $compiler_lib_search_path $postdeps"
2069
2070 # Compute libraries that are listed more than once in $predeps
2071 # $postdeps and mark them as special (i.e., whose duplicates are
2072 # not to be eliminated).
2073 pre_post_deps=
2074 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
2075 for pre_post_dep in $predeps $postdeps; do
2076 case "$pre_post_deps " in
2077 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
2078 esac
2079 pre_post_deps="$pre_post_deps $pre_post_dep"
2080 done
2081 fi
2082 pre_post_deps=
2083 fi
2084
2085 deplibs=
2086 newdependency_libs=
2087 newlib_search_path=
2088 need_relink=no # whether we're linking any uninstalled libtool libraries
2089 notinst_deplibs= # not-installed libtool libraries
2090 case $linkmode in
2091 lib)
2092 passes="conv link"
2093 for file in $dlfiles $dlprefiles; do
2094 case $file in
2095 *.la) ;;
2096 *)
2097 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2098 exit $EXIT_FAILURE
2099 ;;
2100 esac
2101 done
2102 ;;
2103 prog)
2104 compile_deplibs=
2105 finalize_deplibs=
2106 alldeplibs=no
2107 newdlfiles=
2108 newdlprefiles=
2109 passes="conv scan dlopen dlpreopen link"
2110 ;;
2111 *) passes="conv"
2112 ;;
2113 esac
2114 for pass in $passes; do
2115 if test "$linkmode,$pass" = "lib,link" ||
2116 test "$linkmode,$pass" = "prog,scan"; then
2117 libs="$deplibs"
2118 deplibs=
2119 fi
2120 if test "$linkmode" = prog; then
2121 case $pass in
2122 dlopen) libs="$dlfiles" ;;
2123 dlpreopen) libs="$dlprefiles" ;;
2124 link)
2125 libs="$deplibs %DEPLIBS%"
2126 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
2127 ;;
2128 esac
2129 fi
2130 if test "$pass" = dlopen; then
2131 # Collect dlpreopened libraries
2132 save_deplibs="$deplibs"
2133 deplibs=
2134 fi
2135 for deplib in $libs; do
2136 lib=
2137 found=no
2138 case $deplib in
2139 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2140 if test "$linkmode,$pass" = "prog,link"; then
2141 compile_deplibs="$deplib $compile_deplibs"
2142 finalize_deplibs="$deplib $finalize_deplibs"
2143 else
2144 compiler_flags="$compiler_flags $deplib"
2145 fi
2146 continue
2147 ;;
2148 -l*)
2149 if test "$linkmode" != lib && test "$linkmode" != prog; then
2150 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
2151 continue
2152 fi
2153 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2154 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
2155 for search_ext in .la $std_shrext .so .a; do
2156 # Search the libtool library
2157 lib="$searchdir/lib${name}${search_ext}"
2158 if test -f "$lib"; then
2159 if test "$search_ext" = ".la"; then
2160 found=yes
2161 else
2162 found=no
2163 fi
2164 break 2
2165 fi
2166 done
2167 done
2168 if test "$found" != yes; then
2169 # deplib doesn't seem to be a libtool library
2170 if test "$linkmode,$pass" = "prog,link"; then
2171 compile_deplibs="$deplib $compile_deplibs"
2172 finalize_deplibs="$deplib $finalize_deplibs"
2173 else
2174 deplibs="$deplib $deplibs"
2175 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2176 fi
2177 continue
2178 else # deplib is a libtool library
2179 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
2180 # We need to do some special things here, and not later.
2181 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
2182 case " $predeps $postdeps " in
2183 *" $deplib "*)
2184 if (${SED} -e '2q' $lib |
2185 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
2186 library_names=
2187 old_library=
2188 case $lib in
2189 */* | *\\*) . $lib ;;
2190 *) . ./$lib ;;
2191 esac
2192 for l in $old_library $library_names; do
2193 ll="$l"
2194 done
2195 if test "X$ll" = "X$old_library" ; then # only static version available
2196 found=no
2197 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2198 test "X$ladir" = "X$lib" && ladir="."
2199 lib=$ladir/$old_library
2200 if test "$linkmode,$pass" = "prog,link"; then
2201 compile_deplibs="$deplib $compile_deplibs"
2202 finalize_deplibs="$deplib $finalize_deplibs"
2203 else
2204 deplibs="$deplib $deplibs"
2205 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2206 fi
2207 continue
2208 fi
2209 fi
2210 ;;
2211 *) ;;
2212 esac
2213 fi
2214 fi
2215 ;; # -l
2216 -L*)
2217 case $linkmode in
2218 lib)
2219 deplibs="$deplib $deplibs"
2220 test "$pass" = conv && continue
2221 newdependency_libs="$deplib $newdependency_libs"
2222 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2223 ;;
2224 prog)
2225 if test "$pass" = conv; then
2226 deplibs="$deplib $deplibs"
2227 continue
2228 fi
2229 if test "$pass" = scan; then
2230 deplibs="$deplib $deplibs"
2231 else
2232 compile_deplibs="$deplib $compile_deplibs"
2233 finalize_deplibs="$deplib $finalize_deplibs"
2234 fi
2235 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2236 ;;
2237 *)
2238 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2239 ;;
2240 esac # linkmode
2241 continue
2242 ;; # -L
2243 -R*)
2244 if test "$pass" = link; then
2245 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
2246 # Make sure the xrpath contains only unique directories.
2247 case "$xrpath " in
2248 *" $dir "*) ;;
2249 *) xrpath="$xrpath $dir" ;;
2250 esac
2251 fi
2252 deplibs="$deplib $deplibs"
2253 continue
2254 ;;
2255 *.la) lib="$deplib" ;;
2256 *.$libext)
2257 if test "$pass" = conv; then
2258 deplibs="$deplib $deplibs"
2259 continue
2260 fi
2261 case $linkmode in
2262 lib)
2263 valid_a_lib=no
2264 case $deplibs_check_method in
2265 match_pattern*)
2266 set dummy $deplibs_check_method
2267 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2268 if eval $echo \"$deplib\" 2>/dev/null \
2269 | $SED 10q \
2270 | $EGREP "$match_pattern_regex" > /dev/null; then
2271 valid_a_lib=yes
2272 fi
2273 ;;
2274 pass_all)
2275 valid_a_lib=yes
2276 ;;
2277 esac
2278 if test "$valid_a_lib" != yes; then
2279 $echo
2280 $echo "*** Warning: Trying to link with static lib archive $deplib."
2281 $echo "*** I have the capability to make that library automatically link in when"
2282 $echo "*** you link to this library. But I can only do this if you have a"
2283 $echo "*** shared version of the library, which you do not appear to have"
2284 $echo "*** because the file extensions .$libext of this argument makes me believe"
2285 $echo "*** that it is just a static archive that I should not used here."
2286 else
2287 $echo
2288 $echo "*** Warning: Linking the shared library $output against the"
2289 $echo "*** static library $deplib is not portable!"
2290 deplibs="$deplib $deplibs"
2291 fi
2292 continue
2293 ;;
2294 prog)
2295 if test "$pass" != link; then
2296 deplibs="$deplib $deplibs"
2297 else
2298 compile_deplibs="$deplib $compile_deplibs"
2299 finalize_deplibs="$deplib $finalize_deplibs"
2300 fi
2301 continue
2302 ;;
2303 esac # linkmode
2304 ;; # *.$libext
2305 *.lo | *.$objext)
2306 if test "$pass" = conv; then
2307 deplibs="$deplib $deplibs"
2308 elif test "$linkmode" = prog; then
2309 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2310 # If there is no dlopen support or we're linking statically,
2311 # we need to preload.
2312 newdlprefiles="$newdlprefiles $deplib"
2313 compile_deplibs="$deplib $compile_deplibs"
2314 finalize_deplibs="$deplib $finalize_deplibs"
2315 else
2316 newdlfiles="$newdlfiles $deplib"
2317 fi
2318 fi
2319 continue
2320 ;;
2321 %DEPLIBS%)
2322 alldeplibs=yes
2323 continue
2324 ;;
2325 esac # case $deplib
2326 if test "$found" = yes || test -f "$lib"; then :
2327 else
2328 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2329 exit $EXIT_FAILURE
2330 fi
2331
2332 # Check to see that this really is a libtool archive.
2333 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2334 else
2335 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2336 exit $EXIT_FAILURE
2337 fi
2338
2339 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2340 test "X$ladir" = "X$lib" && ladir="."
2341
2342 dlname=
2343 dlopen=
2344 dlpreopen=
2345 libdir=
2346 library_names=
2347 old_library=
2348 # If the library was installed with an old release of libtool,
2349 # it will not redefine variables installed, or shouldnotlink
2350 installed=yes
2351 shouldnotlink=no
2352 avoidtemprpath=
2353
2354
2355 # Read the .la file
2356 case $lib in
2357 */* | *\\*) . $lib ;;
2358 *) . ./$lib ;;
2359 esac
2360
2361 if test "$linkmode,$pass" = "lib,link" ||
2362 test "$linkmode,$pass" = "prog,scan" ||
2363 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
2364 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
2365 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
2366 fi
2367
2368 if test "$pass" = conv; then
2369 # Only check for convenience libraries
2370 deplibs="$lib $deplibs"
2371 if test -z "$libdir"; then
2372 if test -z "$old_library"; then
2373 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2374 exit $EXIT_FAILURE
2375 fi
2376 # It is a libtool convenience library, so add in its objects.
2377 convenience="$convenience $ladir/$objdir/$old_library"
2378 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2379 tmp_libs=
2380 for deplib in $dependency_libs; do
2381 deplibs="$deplib $deplibs"
2382 if test "X$duplicate_deps" = "Xyes" ; then
2383 case "$tmp_libs " in
2384 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2385 esac
2386 fi
2387 tmp_libs="$tmp_libs $deplib"
2388 done
2389 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2390 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2391 exit $EXIT_FAILURE
2392 fi
2393 continue
2394 fi # $pass = conv
2395
2396
2397 # Get the name of the library we link against.
2398 linklib=
2399 for l in $old_library $library_names; do
2400 linklib="$l"
2401 done
2402 if test -z "$linklib"; then
2403 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2404 exit $EXIT_FAILURE
2405 fi
2406
2407 # This library was specified with -dlopen.
2408 if test "$pass" = dlopen; then
2409 if test -z "$libdir"; then
2410 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2411 exit $EXIT_FAILURE
2412 fi
2413 if test -z "$dlname" ||
2414 test "$dlopen_support" != yes ||
2415 test "$build_libtool_libs" = no; then
2416 # If there is no dlname, no dlopen support or we're linking
2417 # statically, we need to preload. We also need to preload any
2418 # dependent libraries so libltdl's deplib preloader doesn't
2419 # bomb out in the load deplibs phase.
2420 dlprefiles="$dlprefiles $lib $dependency_libs"
2421 else
2422 newdlfiles="$newdlfiles $lib"
2423 fi
2424 continue
2425 fi # $pass = dlopen
2426
2427 # We need an absolute path.
2428 case $ladir in
2429 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
2430 *)
2431 abs_ladir=`cd "$ladir" && pwd`
2432 if test -z "$abs_ladir"; then
2433 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2434 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
2435 abs_ladir="$ladir"
2436 fi
2437 ;;
2438 esac
2439 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
2440
2441 # Find the relevant object directory and library name.
2442 if test "X$installed" = Xyes; then
2443 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2444 $echo "$modename: warning: library \`$lib' was moved." 1>&2
2445 dir="$ladir"
2446 absdir="$abs_ladir"
2447 libdir="$abs_ladir"
2448 else
2449 dir="$libdir"
2450 absdir="$libdir"
2451 fi
2452 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2453 else
2454 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2455 dir="$ladir"
2456 absdir="$abs_ladir"
2457 # Remove this search path later
2458 notinst_path="$notinst_path $abs_ladir"
2459 else
2460 dir="$ladir/$objdir"
2461 absdir="$abs_ladir/$objdir"
2462 # Remove this search path later
2463 notinst_path="$notinst_path $abs_ladir"
2464 fi
2465 fi # $installed = yes
2466 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2467
2468 # This library was specified with -dlpreopen.
2469 if test "$pass" = dlpreopen; then
2470 if test -z "$libdir"; then
2471 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2472 exit $EXIT_FAILURE
2473 fi
2474 # Prefer using a static library (so that no silly _DYNAMIC symbols
2475 # are required to link).
2476 if test -n "$old_library"; then
2477 newdlprefiles="$newdlprefiles $dir/$old_library"
2478 # Otherwise, use the dlname, so that lt_dlopen finds it.
2479 elif test -n "$dlname"; then
2480 newdlprefiles="$newdlprefiles $dir/$dlname"
2481 else
2482 newdlprefiles="$newdlprefiles $dir/$linklib"
2483 fi
2484 fi # $pass = dlpreopen
2485
2486 if test -z "$libdir"; then
2487 # Link the convenience library
2488 if test "$linkmode" = lib; then
2489 deplibs="$dir/$old_library $deplibs"
2490 elif test "$linkmode,$pass" = "prog,link"; then
2491 compile_deplibs="$dir/$old_library $compile_deplibs"
2492 finalize_deplibs="$dir/$old_library $finalize_deplibs"
2493 else
2494 deplibs="$lib $deplibs" # used for prog,scan pass
2495 fi
2496 continue
2497 fi
2498
2499
2500 if test "$linkmode" = prog && test "$pass" != link; then
2501 newlib_search_path="$newlib_search_path $ladir"
2502 deplibs="$lib $deplibs"
2503
2504 linkalldeplibs=no
2505 if test "$link_all_deplibs" != no || test -z "$library_names" ||
2506 test "$build_libtool_libs" = no; then
2507 linkalldeplibs=yes
2508 fi
2509
2510 tmp_libs=
2511 for deplib in $dependency_libs; do
2512 case $deplib in
2513 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
2514 esac
2515 # Need to link against all dependency_libs?
2516 if test "$linkalldeplibs" = yes; then
2517 deplibs="$deplib $deplibs"
2518 else
2519 # Need to hardcode shared library paths
2520 # or/and link against static libraries
2521 newdependency_libs="$deplib $newdependency_libs"
2522 fi
2523 if test "X$duplicate_deps" = "Xyes" ; then
2524 case "$tmp_libs " in
2525 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2526 esac
2527 fi
2528 tmp_libs="$tmp_libs $deplib"
2529 done # for deplib
2530 continue
2531 fi # $linkmode = prog...
2532
2533 if test "$linkmode,$pass" = "prog,link"; then
2534 if test -n "$library_names" &&
2535 { { test "$prefer_static_libs" = no ||
2536 test "$prefer_static_libs,$installed" = "built,yes"; } ||
2537 test -z "$old_library"; }; then
2538 # We need to hardcode the library path
2539 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2540 # Make sure the rpath contains only unique directories.
2541 case "$temp_rpath " in
2542 *" $dir "*) ;;
2543 *" $absdir "*) ;;
2544 *) temp_rpath="$temp_rpath $absdir" ;;
2545 esac
2546 fi
2547
2548 # Hardcode the library path.
2549 # Skip directories that are in the system default run-time
2550 # search path.
2551 case " $sys_lib_dlsearch_path " in
2552 *" $absdir "*) ;;
2553 *)
2554 case "$compile_rpath " in
2555 *" $absdir "*) ;;
2556 *) compile_rpath="$compile_rpath $absdir"
2557 esac
2558 ;;
2559 esac
2560 case " $sys_lib_dlsearch_path " in
2561 *" $libdir "*) ;;
2562 *)
2563 case "$finalize_rpath " in
2564 *" $libdir "*) ;;
2565 *) finalize_rpath="$finalize_rpath $libdir"
2566 esac
2567 ;;
2568 esac
2569 fi # $linkmode,$pass = prog,link...
2570
2571 if test "$alldeplibs" = yes &&
2572 { test "$deplibs_check_method" = pass_all ||
2573 { test "$build_libtool_libs" = yes &&
2574 test -n "$library_names"; }; }; then
2575 # We only need to search for static libraries
2576 continue
2577 fi
2578 fi
2579
2580 link_static=no # Whether the deplib will be linked statically
2581 use_static_libs=$prefer_static_libs
2582 if test "$use_static_libs" = built && test "$installed" = yes ; then
2583 use_static_libs=no
2584 fi
2585 if test -n "$library_names" &&
2586 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2587 if test "$installed" = no; then
2588 notinst_deplibs="$notinst_deplibs $lib"
2589 need_relink=yes
2590 fi
2591 # This is a shared library
2592
2593 # Warn about portability, can't link against -module's on
2594 # some systems (darwin)
2595 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2596 $echo
2597 if test "$linkmode" = prog; then
2598 $echo "*** Warning: Linking the executable $output against the loadable module"
2599 else
2600 $echo "*** Warning: Linking the shared library $output against the loadable module"
2601 fi
2602 $echo "*** $linklib is not portable!"
2603 fi
2604 if test "$linkmode" = lib &&
2605 test "$hardcode_into_libs" = yes; then
2606 # Hardcode the library path.
2607 # Skip directories that are in the system default run-time
2608 # search path.
2609 case " $sys_lib_dlsearch_path " in
2610 *" $absdir "*) ;;
2611 *)
2612 case "$compile_rpath " in
2613 *" $absdir "*) ;;
2614 *) compile_rpath="$compile_rpath $absdir"
2615 esac
2616 ;;
2617 esac
2618 case " $sys_lib_dlsearch_path " in
2619 *" $libdir "*) ;;
2620 *)
2621 case "$finalize_rpath " in
2622 *" $libdir "*) ;;
2623 *) finalize_rpath="$finalize_rpath $libdir"
2624 esac
2625 ;;
2626 esac
2627 fi
2628
2629 if test -n "$old_archive_from_expsyms_cmds"; then
2630 # figure out the soname
2631 set dummy $library_names
2632 realname="$2"
2633 shift; shift
2634 libname=`eval \\$echo \"$libname_spec\"`
2635 # use dlname if we got it. it's perfectly good, no?
2636 if test -n "$dlname"; then
2637 soname="$dlname"
2638 elif test -n "$soname_spec"; then
2639 # bleh windows
2640 case $host in
2641 *cygwin* | mingw*)
2642 major=`expr $current - $age`
2643 versuffix="-$major"
2644 ;;
2645 esac
2646 eval soname=\"$soname_spec\"
2647 else
2648 soname="$realname"
2649 fi
2650
2651 # Make a new name for the extract_expsyms_cmds to use
2652 soroot="$soname"
2653 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2654 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
2655
2656 # If the library has no export list, then create one now
2657 if test -f "$output_objdir/$soname-def"; then :
2658 else
2659 $show "extracting exported symbol list from \`$soname'"
2660 save_ifs="$IFS"; IFS='~'
2661 cmds=$extract_expsyms_cmds
2662 for cmd in $cmds; do
2663 IFS="$save_ifs"
2664 eval cmd=\"$cmd\"
2665 $show "$cmd"
2666 $run eval "$cmd" || exit $?
2667 done
2668 IFS="$save_ifs"
2669 fi
2670
2671 # Create $newlib
2672 if test -f "$output_objdir/$newlib"; then :; else
2673 $show "generating import library for \`$soname'"
2674 save_ifs="$IFS"; IFS='~'
2675 cmds=$old_archive_from_expsyms_cmds
2676 for cmd in $cmds; do
2677 IFS="$save_ifs"
2678 eval cmd=\"$cmd\"
2679 $show "$cmd"
2680 $run eval "$cmd" || exit $?
2681 done
2682 IFS="$save_ifs"
2683 fi
2684 # make sure the library variables are pointing to the new library
2685 dir=$output_objdir
2686 linklib=$newlib
2687 fi # test -n "$old_archive_from_expsyms_cmds"
2688
2689 if test "$linkmode" = prog || test "$mode" != relink; then
2690 add_shlibpath=
2691 add_dir=
2692 add=
2693 lib_linked=yes
2694 case $hardcode_action in
2695 immediate | unsupported)
2696 if test "$hardcode_direct" = no; then
2697 add="$dir/$linklib"
2698 case $host in
2699 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2700 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2701 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2702 *-*-unixware7*) add_dir="-L$dir" ;;
2703 *-*-darwin* )
2704 # if the lib is a module then we can not link against
2705 # it, someone is ignoring the new warnings I added
2706 if /usr/bin/file -L $add 2> /dev/null |
2707 $EGREP ": [^:]* bundle" >/dev/null ; then
2708 $echo "** Warning, lib $linklib is a module, not a shared library"
2709 if test -z "$old_library" ; then
2710 $echo
2711 $echo "** And there doesn't seem to be a static archive available"
2712 $echo "** The link will probably fail, sorry"
2713 else
2714 add="$dir/$old_library"
2715 fi
2716 fi
2717 esac
2718 elif test "$hardcode_minus_L" = no; then
2719 case $host in
2720 *-*-sunos*) add_shlibpath="$dir" ;;
2721 esac
2722 add_dir="-L$dir"
2723 add="-l$name"
2724 elif test "$hardcode_shlibpath_var" = no; then
2725 add_shlibpath="$dir"
2726 add="-l$name"
2727 else
2728 lib_linked=no
2729 fi
2730 ;;
2731 relink)
2732 if test "$hardcode_direct" = yes; then
2733 add="$dir/$linklib"
2734 elif test "$hardcode_minus_L" = yes; then
2735 add_dir="-L$dir"
2736 # Try looking first in the location we're being installed to.
2737 if test -n "$inst_prefix_dir"; then
2738 case $libdir in
2739 [\\/]*)
2740 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2741 ;;
2742 esac
2743 fi
2744 add="-l$name"
2745 elif test "$hardcode_shlibpath_var" = yes; then
2746 add_shlibpath="$dir"
2747 add="-l$name"
2748 else
2749 lib_linked=no
2750 fi
2751 ;;
2752 *) lib_linked=no ;;
2753 esac
2754
2755 if test "$lib_linked" != yes; then
2756 $echo "$modename: configuration error: unsupported hardcode properties"
2757 exit $EXIT_FAILURE
2758 fi
2759
2760 if test -n "$add_shlibpath"; then
2761 case :$compile_shlibpath: in
2762 *":$add_shlibpath:"*) ;;
2763 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
2764 esac
2765 fi
2766 if test "$linkmode" = prog; then
2767 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
2768 test -n "$add" && compile_deplibs="$add $compile_deplibs"
2769 else
2770 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2771 test -n "$add" && deplibs="$add $deplibs"
2772 if test "$hardcode_direct" != yes && \
2773 test "$hardcode_minus_L" != yes && \
2774 test "$hardcode_shlibpath_var" = yes; then
2775 case :$finalize_shlibpath: in
2776 *":$libdir:"*) ;;
2777 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2778 esac
2779 fi
2780 fi
2781 fi
2782
2783 if test "$linkmode" = prog || test "$mode" = relink; then
2784 add_shlibpath=
2785 add_dir=
2786 add=
2787 # Finalize command for both is simple: just hardcode it.
2788 if test "$hardcode_direct" = yes; then
2789 add="$libdir/$linklib"
2790 elif test "$hardcode_minus_L" = yes; then
2791 add_dir="-L$libdir"
2792 add="-l$name"
2793 elif test "$hardcode_shlibpath_var" = yes; then
2794 case :$finalize_shlibpath: in
2795 *":$libdir:"*) ;;
2796 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2797 esac
2798 add="-l$name"
2799 elif test "$hardcode_automatic" = yes; then
2800 if test -n "$inst_prefix_dir" &&
2801 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2802 add="$inst_prefix_dir$libdir/$linklib"
2803 else
2804 add="$libdir/$linklib"
2805 fi
2806 else
2807 # We cannot seem to hardcode it, guess we'll fake it.
2808 add_dir="-L$libdir"
2809 # Try looking first in the location we're being installed to.
2810 if test -n "$inst_prefix_dir"; then
2811 case $libdir in
2812 [\\/]*)
2813 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2814 ;;
2815 esac
2816 fi
2817 add="-l$name"
2818 fi
2819
2820 if test "$linkmode" = prog; then
2821 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
2822 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
2823 else
2824 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2825 test -n "$add" && deplibs="$add $deplibs"
2826 fi
2827 fi
2828 elif test "$linkmode" = prog; then
2829 # Here we assume that one of hardcode_direct or hardcode_minus_L
2830 # is not unsupported. This is valid on all known static and
2831 # shared platforms.
2832 if test "$hardcode_direct" != unsupported; then
2833 test -n "$old_library" && linklib="$old_library"
2834 compile_deplibs="$dir/$linklib $compile_deplibs"
2835 finalize_deplibs="$dir/$linklib $finalize_deplibs"
2836 else
2837 compile_deplibs="-l$name -L$dir $compile_deplibs"
2838 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
2839 fi
2840 elif test "$build_libtool_libs" = yes; then
2841 # Not a shared library
2842 if test "$deplibs_check_method" != pass_all; then
2843 # We're trying link a shared library against a static one
2844 # but the system doesn't support it.
2845
2846 # Just print a warning and add the library to dependency_libs so
2847 # that the program can be linked against the static library.
2848 $echo
2849 $echo "*** Warning: This system can not link to static lib archive $lib."
2850 $echo "*** I have the capability to make that library automatically link in when"
2851 $echo "*** you link to this library. But I can only do this if you have a"
2852 $echo "*** shared version of the library, which you do not appear to have."
2853 if test "$module" = yes; then
2854 $echo "*** But as you try to build a module library, libtool will still create "
2855 $echo "*** a static module, that should work as long as the dlopening application"
2856 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
2857 if test -z "$global_symbol_pipe"; then
2858 $echo
2859 $echo "*** However, this would only work if libtool was able to extract symbol"
2860 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2861 $echo "*** not find such a program. So, this module is probably useless."
2862 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
2863 fi
2864 if test "$build_old_libs" = no; then
2865 build_libtool_libs=module
2866 build_old_libs=yes
2867 else
2868 build_libtool_libs=no
2869 fi
2870 fi
2871 else
2872 deplibs="$dir/$old_library $deplibs"
2873 link_static=yes
2874 fi
2875 fi # link shared/static library?
2876
2877 if test "$linkmode" = lib; then
2878 if test -n "$dependency_libs" &&
2879 { test "$hardcode_into_libs" != yes ||
2880 test "$build_old_libs" = yes ||
2881 test "$link_static" = yes; }; then
2882 # Extract -R from dependency_libs
2883 temp_deplibs=
2884 for libdir in $dependency_libs; do
2885 case $libdir in
2886 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
2887 case " $xrpath " in
2888 *" $temp_xrpath "*) ;;
2889 *) xrpath="$xrpath $temp_xrpath";;
2890 esac;;
2891 *) temp_deplibs="$temp_deplibs $libdir";;
2892 esac
2893 done
2894 dependency_libs="$temp_deplibs"
2895 fi
2896
2897 newlib_search_path="$newlib_search_path $absdir"
2898 # Link against this library
2899 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
2900 # ... and its dependency_libs
2901 tmp_libs=
2902 for deplib in $dependency_libs; do
2903 newdependency_libs="$deplib $newdependency_libs"
2904 if test "X$duplicate_deps" = "Xyes" ; then
2905 case "$tmp_libs " in
2906 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2907 esac
2908 fi
2909 tmp_libs="$tmp_libs $deplib"
2910 done
2911
2912 if test "$link_all_deplibs" != no; then
2913 # Add the search paths of all dependency libraries
2914 for deplib in $dependency_libs; do
2915 case $deplib in
2916 -L*) path="$deplib" ;;
2917 *.la)
2918 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2919 test "X$dir" = "X$deplib" && dir="."
2920 # We need an absolute path.
2921 case $dir in
2922 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
2923 *)
2924 absdir=`cd "$dir" && pwd`
2925 if test -z "$absdir"; then
2926 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
2927 absdir="$dir"
2928 fi
2929 ;;
2930 esac
2931 if grep "^installed=no" $deplib > /dev/null; then
2932 path="$absdir/$objdir"
2933 else
2934 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2935 if test -z "$libdir"; then
2936 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2937 exit $EXIT_FAILURE
2938 fi
2939 if test "$absdir" != "$libdir"; then
2940 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2941 fi
2942 path="$absdir"
2943 fi
2944 depdepl=
2945 case $host in
2946 *-*-darwin*)
2947 # we do not want to link against static libs,
2948 # but need to link against shared
2949 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2950 if test -n "$deplibrary_names" ; then
2951 for tmp in $deplibrary_names ; do
2952 depdepl=$tmp
2953 done
2954 if test -f "$path/$depdepl" ; then
2955 depdepl="$path/$depdepl"
2956 fi
2957 # do not add paths which are already there
2958 case " $newlib_search_path " in
2959 *" $path "*) ;;
2960 *) newlib_search_path="$newlib_search_path $path";;
2961 esac
2962 fi
2963 path=""
2964 ;;
2965 *)
2966 path="-L$path"
2967 ;;
2968 esac
2969 ;;
2970 -l*)
2971 case $host in
2972 *-*-darwin*)
2973 # Again, we only want to link against shared libraries
2974 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2975 for tmp in $newlib_search_path ; do
2976 if test -f "$tmp/lib$tmp_libs.dylib" ; then
2977 eval depdepl="$tmp/lib$tmp_libs.dylib"
2978 break
2979 fi
2980 done
2981 path=""
2982 ;;
2983 *) continue ;;
2984 esac
2985 ;;
2986 *) continue ;;
2987 esac
2988 case " $deplibs " in
2989 *" $path "*) ;;
2990 *) deplibs="$path $deplibs" ;;
2991 esac
2992 case " $deplibs " in
2993 *" $depdepl "*) ;;
2994 *) deplibs="$depdepl $deplibs" ;;
2995 esac
2996 done
2997 fi # link_all_deplibs != no
2998 fi # linkmode = lib
2999 done # for deplib in $libs
3000 dependency_libs="$newdependency_libs"
3001 if test "$pass" = dlpreopen; then
3002 # Link the dlpreopened libraries before other libraries
3003 for deplib in $save_deplibs; do
3004 deplibs="$deplib $deplibs"
3005 done
3006 fi
3007 if test "$pass" != dlopen; then
3008 if test "$pass" != conv; then
3009 # Make sure lib_search_path contains only unique directories.
3010 lib_search_path=
3011 for dir in $newlib_search_path; do
3012 case "$lib_search_path " in
3013 *" $dir "*) ;;
3014 *) lib_search_path="$lib_search_path $dir" ;;
3015 esac
3016 done
3017 newlib_search_path=
3018 fi
3019
3020 if test "$linkmode,$pass" != "prog,link"; then
3021 vars="deplibs"
3022 else
3023 vars="compile_deplibs finalize_deplibs"
3024 fi
3025 for var in $vars dependency_libs; do
3026 # Add libraries to $var in reverse order
3027 eval tmp_libs=\"\$$var\"
3028 new_libs=
3029 for deplib in $tmp_libs; do
3030 # FIXME: Pedantically, this is the right thing to do, so
3031 # that some nasty dependency loop isn't accidentally
3032 # broken:
3033 #new_libs="$deplib $new_libs"
3034 # Pragmatically, this seems to cause very few problems in
3035 # practice:
3036 case $deplib in
3037 -L*) new_libs="$deplib $new_libs" ;;
3038 -R*) ;;
3039 *)
3040 # And here is the reason: when a library appears more
3041 # than once as an explicit dependence of a library, or
3042 # is implicitly linked in more than once by the
3043 # compiler, it is considered special, and multiple
3044 # occurrences thereof are not removed. Compare this
3045 # with having the same library being listed as a
3046 # dependency of multiple other libraries: in this case,
3047 # we know (pedantically, we assume) the library does not
3048 # need to be listed more than once, so we keep only the
3049 # last copy. This is not always right, but it is rare
3050 # enough that we require users that really mean to play
3051 # such unportable linking tricks to link the library
3052 # using -Wl,-lname, so that libtool does not consider it
3053 # for duplicate removal.
3054 case " $specialdeplibs " in
3055 *" $deplib "*) new_libs="$deplib $new_libs" ;;
3056 *)
3057 case " $new_libs " in
3058 *" $deplib "*) ;;
3059 *) new_libs="$deplib $new_libs" ;;
3060 esac
3061 ;;
3062 esac
3063 ;;
3064 esac
3065 done
3066 tmp_libs=
3067 for deplib in $new_libs; do
3068 case $deplib in
3069 -L*)
3070 case " $tmp_libs " in
3071 *" $deplib "*) ;;
3072 *) tmp_libs="$tmp_libs $deplib" ;;
3073 esac
3074 ;;
3075 *) tmp_libs="$tmp_libs $deplib" ;;
3076 esac
3077 done
3078 eval $var=\"$tmp_libs\"
3079 done # for var
3080 fi
3081 # Last step: remove runtime libs from dependency_libs
3082 # (they stay in deplibs)
3083 tmp_libs=
3084 for i in $dependency_libs ; do
3085 case " $predeps $postdeps $compiler_lib_search_path " in
3086 *" $i "*)
3087 i=""
3088 ;;
3089 esac
3090 if test -n "$i" ; then
3091 tmp_libs="$tmp_libs $i"
3092 fi
3093 done
3094 dependency_libs=$tmp_libs
3095 done # for pass
3096 if test "$linkmode" = prog; then
3097 dlfiles="$newdlfiles"
3098 dlprefiles="$newdlprefiles"
3099 fi
3100
3101 case $linkmode in
3102 oldlib)
3103 if test -n "$deplibs"; then
3104 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
3105 fi
3106
3107 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3108 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3109 fi
3110
3111 if test -n "$rpath"; then
3112 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3113 fi
3114
3115 if test -n "$xrpath"; then
3116 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3117 fi
3118
3119 if test -n "$vinfo"; then
3120 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3121 fi
3122
3123 if test -n "$release"; then
3124 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3125 fi
3126
3127 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3128 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3129 fi
3130
3131 # Now set the variables for building old libraries.
3132 build_libtool_libs=no
3133 oldlibs="$output"
3134 objs="$objs$old_deplibs"
3135 ;;
3136
3137 lib)
3138 # Make sure we only generate libraries of the form `libNAME.la'.
3139 case $outputname in
3140 lib*)
3141 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
3142 eval shared_ext=\"$shrext_cmds\"
3143 eval libname=\"$libname_spec\"
3144 ;;
3145 *)
3146 if test "$module" = no; then
3147 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3148 $echo "$help" 1>&2
3149 exit $EXIT_FAILURE
3150 fi
3151 if test "$need_lib_prefix" != no; then
3152 # Add the "lib" prefix for modules if required
3153 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3154 eval shared_ext=\"$shrext_cmds\"
3155 eval libname=\"$libname_spec\"
3156 else
3157 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3158 fi
3159 ;;
3160 esac
3161
3162 if test -n "$objs"; then
3163 if test "$deplibs_check_method" != pass_all; then
3164 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3165 exit $EXIT_FAILURE
3166 else
3167 $echo
3168 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3169 $echo "*** objects $objs is not portable!"
3170 libobjs="$libobjs $objs"
3171 fi
3172 fi
3173
3174 if test "$dlself" != no; then
3175 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3176 fi
3177
3178 set dummy $rpath
3179 if test "$#" -gt 2; then
3180 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3181 fi
3182 install_libdir="$2"
3183
3184 oldlibs=
3185 if test -z "$rpath"; then
3186 if test "$build_libtool_libs" = yes; then
3187 # Building a libtool convenience library.
3188 # Some compilers have problems with a `.al' extension so
3189 # convenience libraries should have the same extension an
3190 # archive normally would.
3191 oldlibs="$output_objdir/$libname.$libext $oldlibs"
3192 build_libtool_libs=convenience
3193 build_old_libs=yes
3194 fi
3195
3196 if test -n "$vinfo"; then
3197 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3198 fi
3199
3200 if test -n "$release"; then
3201 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3202 fi
3203 else
3204
3205 # Parse the version information argument.
3206 save_ifs="$IFS"; IFS=':'
3207 set dummy $vinfo 0 0 0
3208 IFS="$save_ifs"
3209
3210 if test -n "$8"; then
3211 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3212 $echo "$help" 1>&2
3213 exit $EXIT_FAILURE
3214 fi
3215
3216 # convert absolute version numbers to libtool ages
3217 # this retains compatibility with .la files and attempts
3218 # to make the code below a bit more comprehensible
3219
3220 case $vinfo_number in
3221 yes)
3222 number_major="$2"
3223 number_minor="$3"
3224 number_revision="$4"
3225 #
3226 # There are really only two kinds -- those that
3227 # use the current revision as the major version
3228 # and those that subtract age and use age as
3229 # a minor version. But, then there is irix
3230 # which has an extra 1 added just for fun
3231 #
3232 case $version_type in
3233 darwin|linux|osf|windows|none)
3234 current=`expr $number_major + $number_minor`
3235 age="$number_minor"
3236 revision="$number_revision"
3237 ;;
3238 freebsd-aout|freebsd-elf|sunos)
3239 current="$number_major"
3240 revision="$number_minor"
3241 age="0"
3242 ;;
3243 irix|nonstopux)
3244 current=`expr $number_major + $number_minor`
3245 age="$number_minor"
3246 revision="$number_minor"
3247 lt_irix_increment=no
3248 ;;
3249 *)
3250 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3251 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3252 exit $EXIT_FAILURE
3253 ;;
3254 esac
3255 ;;
3256 no)
3257 current="$2"
3258 revision="$3"
3259 age="$4"
3260 ;;
3261 esac
3262
3263 # Check that each of the things are valid numbers.
3264 case $current in
3265 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]) ;;
3266 *)
3267 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3268 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3269 exit $EXIT_FAILURE
3270 ;;
3271 esac
3272
3273 case $revision in
3274 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]) ;;
3275 *)
3276 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3277 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3278 exit $EXIT_FAILURE
3279 ;;
3280 esac
3281
3282 case $age in
3283 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]) ;;
3284 *)
3285 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3286 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3287 exit $EXIT_FAILURE
3288 ;;
3289 esac
3290
3291 if test "$age" -gt "$current"; then
3292 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3293 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3294 exit $EXIT_FAILURE
3295 fi
3296
3297 # Calculate the version variables.
3298 major=
3299 versuffix=
3300 verstring=
3301 case $version_type in
3302 none) ;;
3303
3304 darwin)
3305 # Like Linux, but with the current version available in
3306 # verstring for coding it into the library header
3307 major=.`expr $current - $age`
3308 versuffix="$major.$age.$revision"
3309 # Darwin ld doesn't like 0 for these options...
3310 minor_current=`expr $current + 1`
3311 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3312 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3313 ;;
3314
3315 freebsd-aout)
3316 major=".$current"
3317 versuffix=".$current.$revision";
3318 ;;
3319
3320 freebsd-elf)
3321 major=".$current"
3322 versuffix=".$current";
3323 ;;
3324
3325 irix | nonstopux)
3326 if test "X$lt_irix_increment" = "Xno"; then
3327 major=`expr $current - $age`
3328 else
3329 major=`expr $current - $age + 1`
3330 fi
3331 case $version_type in
3332 nonstopux) verstring_prefix=nonstopux ;;
3333 *) verstring_prefix=sgi ;;
3334 esac
3335 verstring="$verstring_prefix$major.$revision"
3336
3337 # Add in all the interfaces that we are compatible with.
3338 loop=$revision
3339 while test "$loop" -ne 0; do
3340 iface=`expr $revision - $loop`
3341 loop=`expr $loop - 1`
3342 verstring="$verstring_prefix$major.$iface:$verstring"
3343 done
3344
3345 # Before this point, $major must not contain `.'.
3346 major=.$major
3347 versuffix="$major.$revision"
3348 ;;
3349
3350 linux)
3351 major=.`expr $current - $age`
3352 versuffix="$major.$age.$revision"
3353 ;;
3354
3355 osf)
3356 major=.`expr $current - $age`
3357 versuffix=".$current.$age.$revision"
3358 verstring="$current.$age.$revision"
3359
3360 # Add in all the interfaces that we are compatible with.
3361 loop=$age
3362 while test "$loop" -ne 0; do
3363 iface=`expr $current - $loop`
3364 loop=`expr $loop - 1`
3365 verstring="$verstring:${iface}.0"
3366 done
3367
3368 # Make executables depend on our current version.
3369 verstring="$verstring:${current}.0"
3370 ;;
3371
3372 sunos)
3373 major=".$current"
3374 versuffix=".$current.$revision"
3375 ;;
3376
3377 windows)
3378 # Use '-' rather than '.', since we only want one
3379 # extension on DOS 8.3 filesystems.
3380 major=`expr $current - $age`
3381 versuffix="-$major"
3382 ;;
3383
3384 *)
3385 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3386 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3387 exit $EXIT_FAILURE
3388 ;;
3389 esac
3390
3391 # Clear the version info if we defaulted, and they specified a release.
3392 if test -z "$vinfo" && test -n "$release"; then
3393 major=
3394 case $version_type in
3395 darwin)
3396 # we can't check for "0.0" in archive_cmds due to quoting
3397 # problems, so we reset it completely
3398 verstring=
3399 ;;
3400 *)
3401 verstring="0.0"
3402 ;;
3403 esac
3404 if test "$need_version" = no; then
3405 versuffix=
3406 else
3407 versuffix=".0.0"
3408 fi
3409 fi
3410
3411 # Remove version info from name if versioning should be avoided
3412 if test "$avoid_version" = yes && test "$need_version" = no; then
3413 major=
3414 versuffix=
3415 verstring=""
3416 fi
3417
3418 # Check to see if the archive will have undefined symbols.
3419 if test "$allow_undefined" = yes; then
3420 if test "$allow_undefined_flag" = unsupported; then
3421 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
3422 build_libtool_libs=no
3423 build_old_libs=yes
3424 fi
3425 else
3426 # Don't allow undefined symbols.
3427 allow_undefined_flag="$no_undefined_flag"
3428 fi
3429 fi
3430
3431 if test "$mode" != relink; then
3432 # Remove our outputs, but don't remove object files since they
3433 # may have been created when compiling PIC objects.
3434 removelist=
3435 tempremovelist=`$echo "$output_objdir/*"`
3436 for p in $tempremovelist; do
3437 case $p in
3438 *.$objext)
3439 ;;
3440 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3441 if test "X$precious_files_regex" != "X"; then
3442 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3443 then
3444 continue
3445 fi
3446 fi
3447 removelist="$removelist $p"
3448 ;;
3449 *) ;;
3450 esac
3451 done
3452 if test -n "$removelist"; then
3453 $show "${rm}r $removelist"
3454 $run ${rm}r $removelist
3455 fi
3456 fi
3457
3458 # Now set the variables for building old libraries.
3459 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
3460 oldlibs="$oldlibs $output_objdir/$libname.$libext"
3461
3462 # Transform .lo files to .o files.
3463 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
3464 fi
3465
3466 # Eliminate all temporary directories.
3467 #for path in $notinst_path; do
3468 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3469 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3470 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3471 #done
3472
3473 if test -n "$xrpath"; then
3474 # If the user specified any rpath flags, then add them.
3475 temp_xrpath=
3476 for libdir in $xrpath; do
3477 temp_xrpath="$temp_xrpath -R$libdir"
3478 case "$finalize_rpath " in
3479 *" $libdir "*) ;;
3480 *) finalize_rpath="$finalize_rpath $libdir" ;;
3481 esac
3482 done
3483 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
3484 dependency_libs="$temp_xrpath $dependency_libs"
3485 fi
3486 fi
3487
3488 # Make sure dlfiles contains only unique files that won't be dlpreopened
3489 old_dlfiles="$dlfiles"
3490 dlfiles=
3491 for lib in $old_dlfiles; do
3492 case " $dlprefiles $dlfiles " in
3493 *" $lib "*) ;;
3494 *) dlfiles="$dlfiles $lib" ;;
3495 esac
3496 done
3497
3498 # Make sure dlprefiles contains only unique files
3499 old_dlprefiles="$dlprefiles"
3500 dlprefiles=
3501 for lib in $old_dlprefiles; do
3502 case "$dlprefiles " in
3503 *" $lib "*) ;;
3504 *) dlprefiles="$dlprefiles $lib" ;;
3505 esac
3506 done
3507
3508 if test "$build_libtool_libs" = yes; then
3509 if test -n "$rpath"; then
3510 case $host in
3511 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
3512 # these systems don't actually have a c library (as such)!
3513 ;;
3514 *-*-rhapsody* | *-*-darwin1.[012])
3515 # Rhapsody C library is in the System framework
3516 deplibs="$deplibs -framework System"
3517 ;;
3518 *-*-netbsd*)
3519 # Don't link with libc until the a.out ld.so is fixed.
3520 ;;
3521 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3522 # Do not include libc due to us having libc/libc_r.
3523 ;;
3524 *-*-sco3.2v5* | *-*-sco5v6*)
3525 # Causes problems with __ctype
3526 ;;
3527 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3528 # Compiler inserts libc in the correct place for threads to work
3529 ;;
3530 *)
3531 # Add libc to deplibs on all other systems if necessary.
3532 if test "$build_libtool_need_lc" = "yes"; then
3533 deplibs="$deplibs -lc"
3534 fi
3535 ;;
3536 esac
3537 fi
3538
3539 # Transform deplibs into only deplibs that can be linked in shared.
3540 name_save=$name
3541 libname_save=$libname
3542 release_save=$release
3543 versuffix_save=$versuffix
3544 major_save=$major
3545 # I'm not sure if I'm treating the release correctly. I think
3546 # release should show up in the -l (ie -lgmp5) so we don't want to
3547 # add it in twice. Is that correct?
3548 release=""
3549 versuffix=""
3550 major=""
3551 newdeplibs=
3552 droppeddeps=no
3553 case $deplibs_check_method in
3554 pass_all)
3555 # Don't check for shared/static. Everything works.
3556 # This might be a little naive. We might want to check
3557 # whether the library exists or not. But this is on
3558 # osf3 & osf4 and I'm not really sure... Just
3559 # implementing what was already the behavior.
3560 newdeplibs=$deplibs
3561 ;;
3562 test_compile)
3563 # This code stresses the "libraries are programs" paradigm to its
3564 # limits. Maybe even breaks it. We compile a program, linking it
3565 # against the deplibs as a proxy for the library. Then we can check
3566 # whether they linked in statically or dynamically with ldd.
3567 $rm conftest.c
3568 cat > conftest.c <<EOF
3569 int main() { return 0; }
3570 EOF
3571 $rm conftest
3572 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3573 ldd_output=`ldd conftest`
3574 for i in $deplibs; do
3575 name=`expr $i : '-l\(.*\)'`
3576 # If $name is empty we are operating on a -L argument.
3577 if test "$name" != "" && test "$name" != "0"; then
3578 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3579 case " $predeps $postdeps " in
3580 *" $i "*)
3581 newdeplibs="$newdeplibs $i"
3582 i=""
3583 ;;
3584 esac
3585 fi
3586 if test -n "$i" ; then
3587 libname=`eval \\$echo \"$libname_spec\"`
3588 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3589 set dummy $deplib_matches
3590 deplib_match=$2
3591 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3592 newdeplibs="$newdeplibs $i"
3593 else
3594 droppeddeps=yes
3595 $echo
3596 $echo "*** Warning: dynamic linker does not accept needed library $i."
3597 $echo "*** I have the capability to make that library automatically link in when"
3598 $echo "*** you link to this library. But I can only do this if you have a"
3599 $echo "*** shared version of the library, which I believe you do not have"
3600 $echo "*** because a test_compile did reveal that the linker did not use it for"
3601 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
3602 fi
3603 fi
3604 else
3605 newdeplibs="$newdeplibs $i"
3606 fi
3607 done
3608 else
3609 # Error occurred in the first compile. Let's try to salvage
3610 # the situation: Compile a separate program for each library.
3611 for i in $deplibs; do
3612 name=`expr $i : '-l\(.*\)'`
3613 # If $name is empty we are operating on a -L argument.
3614 if test "$name" != "" && test "$name" != "0"; then
3615 $rm conftest
3616 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3617 ldd_output=`ldd conftest`
3618 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3619 case " $predeps $postdeps " in
3620 *" $i "*)
3621 newdeplibs="$newdeplibs $i"
3622 i=""
3623 ;;
3624 esac
3625 fi
3626 if test -n "$i" ; then
3627 libname=`eval \\$echo \"$libname_spec\"`
3628 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3629 set dummy $deplib_matches
3630 deplib_match=$2
3631 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3632 newdeplibs="$newdeplibs $i"
3633 else
3634 droppeddeps=yes
3635 $echo
3636 $echo "*** Warning: dynamic linker does not accept needed library $i."
3637 $echo "*** I have the capability to make that library automatically link in when"
3638 $echo "*** you link to this library. But I can only do this if you have a"
3639 $echo "*** shared version of the library, which you do not appear to have"
3640 $echo "*** because a test_compile did reveal that the linker did not use this one"
3641 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
3642 fi
3643 fi
3644 else
3645 droppeddeps=yes
3646 $echo
3647 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3648 $echo "*** make it link in! You will probably need to install it or some"
3649 $echo "*** library that it depends on before this library will be fully"
3650 $echo "*** functional. Installing it before continuing would be even better."
3651 fi
3652 else
3653 newdeplibs="$newdeplibs $i"
3654 fi
3655 done
3656 fi
3657 ;;
3658 file_magic*)
3659 set dummy $deplibs_check_method
3660 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3661 for a_deplib in $deplibs; do
3662 name=`expr $a_deplib : '-l\(.*\)'`
3663 # If $name is empty we are operating on a -L argument.
3664 if test "$name" != "" && test "$name" != "0"; then
3665 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3666 case " $predeps $postdeps " in
3667 *" $a_deplib "*)
3668 newdeplibs="$newdeplibs $a_deplib"
3669 a_deplib=""
3670 ;;
3671 esac
3672 fi
3673 if test -n "$a_deplib" ; then
3674 libname=`eval \\$echo \"$libname_spec\"`
3675 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3676 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3677 for potent_lib in $potential_libs; do
3678 # Follow soft links.
3679 if ls -lLd "$potent_lib" 2>/dev/null \
3680 | grep " -> " >/dev/null; then
3681 continue
3682 fi
3683 # The statement above tries to avoid entering an
3684 # endless loop below, in case of cyclic links.
3685 # We might still enter an endless loop, since a link
3686 # loop can be closed while we follow links,
3687 # but so what?
3688 potlib="$potent_lib"
3689 while test -h "$potlib" 2>/dev/null; do
3690 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
3691 case $potliblink in
3692 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3693 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3694 esac
3695 done
3696 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3697 | ${SED} 10q \
3698 | $EGREP "$file_magic_regex" > /dev/null; then
3699 newdeplibs="$newdeplibs $a_deplib"
3700 a_deplib=""
3701 break 2
3702 fi
3703 done
3704 done
3705 fi
3706 if test -n "$a_deplib" ; then
3707 droppeddeps=yes
3708 $echo
3709 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3710 $echo "*** I have the capability to make that library automatically link in when"
3711 $echo "*** you link to this library. But I can only do this if you have a"
3712 $echo "*** shared version of the library, which you do not appear to have"
3713 $echo "*** because I did check the linker path looking for a file starting"
3714 if test -z "$potlib" ; then
3715 $echo "*** with $libname but no candidates were found. (...for file magic test)"
3716 else
3717 $echo "*** with $libname and none of the candidates passed a file format test"
3718 $echo "*** using a file magic. Last file checked: $potlib"
3719 fi
3720 fi
3721 else
3722 # Add a -L argument.
3723 newdeplibs="$newdeplibs $a_deplib"
3724 fi
3725 done # Gone through all deplibs.
3726 ;;
3727 match_pattern*)
3728 set dummy $deplibs_check_method
3729 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3730 for a_deplib in $deplibs; do
3731 name=`expr $a_deplib : '-l\(.*\)'`
3732 # If $name is empty we are operating on a -L argument.
3733 if test -n "$name" && test "$name" != "0"; then
3734 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3735 case " $predeps $postdeps " in
3736 *" $a_deplib "*)
3737 newdeplibs="$newdeplibs $a_deplib"
3738 a_deplib=""
3739 ;;
3740 esac
3741 fi
3742 if test -n "$a_deplib" ; then
3743 libname=`eval \\$echo \"$libname_spec\"`
3744 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3745 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3746 for potent_lib in $potential_libs; do
3747 potlib="$potent_lib" # see symlink-check above in file_magic test
3748 if eval $echo \"$potent_lib\" 2>/dev/null \
3749 | ${SED} 10q \
3750 | $EGREP "$match_pattern_regex" > /dev/null; then
3751 newdeplibs="$newdeplibs $a_deplib"
3752 a_deplib=""
3753 break 2
3754 fi
3755 done
3756 done
3757 fi
3758 if test -n "$a_deplib" ; then
3759 droppeddeps=yes
3760 $echo
3761 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3762 $echo "*** I have the capability to make that library automatically link in when"
3763 $echo "*** you link to this library. But I can only do this if you have a"
3764 $echo "*** shared version of the library, which you do not appear to have"
3765 $echo "*** because I did check the linker path looking for a file starting"
3766 if test -z "$potlib" ; then
3767 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3768 else
3769 $echo "*** with $libname and none of the candidates passed a file format test"
3770 $echo "*** using a regex pattern. Last file checked: $potlib"
3771 fi
3772 fi
3773 else
3774 # Add a -L argument.
3775 newdeplibs="$newdeplibs $a_deplib"
3776 fi
3777 done # Gone through all deplibs.
3778 ;;
3779 none | unknown | *)
3780 newdeplibs=""
3781 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3782 -e 's/ -[LR][^ ]*//g'`
3783 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3784 for i in $predeps $postdeps ; do
3785 # can't use Xsed below, because $i might contain '/'
3786 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
3787 done
3788 fi
3789 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3790 | grep . >/dev/null; then
3791 $echo
3792 if test "X$deplibs_check_method" = "Xnone"; then
3793 $echo "*** Warning: inter-library dependencies are not supported in this platform."
3794 else
3795 $echo "*** Warning: inter-library dependencies are not known to be supported."
3796 fi
3797 $echo "*** All declared inter-library dependencies are being dropped."
3798 droppeddeps=yes
3799 fi
3800 ;;
3801 esac
3802 versuffix=$versuffix_save
3803 major=$major_save
3804 release=$release_save
3805 libname=$libname_save
3806 name=$name_save
3807
3808 case $host in
3809 *-*-rhapsody* | *-*-darwin1.[012])
3810 # On Rhapsody replace the C library is the System framework
3811 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
3812 ;;
3813 esac
3814
3815 if test "$droppeddeps" = yes; then
3816 if test "$module" = yes; then
3817 $echo
3818 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3819 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3820 $echo "*** a static module, that should work as long as the dlopening"
3821 $echo "*** application is linked with the -dlopen flag."
3822 if test -z "$global_symbol_pipe"; then
3823 $echo
3824 $echo "*** However, this would only work if libtool was able to extract symbol"
3825 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3826 $echo "*** not find such a program. So, this module is probably useless."
3827 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
3828 fi
3829 if test "$build_old_libs" = no; then
3830 oldlibs="$output_objdir/$libname.$libext"
3831 build_libtool_libs=module
3832 build_old_libs=yes
3833 else
3834 build_libtool_libs=no
3835 fi
3836 else
3837 $echo "*** The inter-library dependencies that have been dropped here will be"
3838 $echo "*** automatically added whenever a program is linked with this library"
3839 $echo "*** or is declared to -dlopen it."
3840
3841 if test "$allow_undefined" = no; then
3842 $echo
3843 $echo "*** Since this library must not contain undefined symbols,"
3844 $echo "*** because either the platform does not support them or"
3845 $echo "*** it was explicitly requested with -no-undefined,"
3846 $echo "*** libtool will only create a static version of it."
3847 if test "$build_old_libs" = no; then
3848 oldlibs="$output_objdir/$libname.$libext"
3849 build_libtool_libs=module
3850 build_old_libs=yes
3851 else
3852 build_libtool_libs=no
3853 fi
3854 fi
3855 fi
3856 fi
3857 # Done checking deplibs!
3858 deplibs=$newdeplibs
3859 fi
3860
3861
3862 # move library search paths that coincide with paths to not yet
3863 # installed libraries to the beginning of the library search list
3864 new_libs=
3865 for path in $notinst_path; do
3866 case " $new_libs " in
3867 *" -L$path/$objdir "*) ;;
3868 *)
3869 case " $deplibs " in
3870 *" -L$path/$objdir "*)
3871 new_libs="$new_libs -L$path/$objdir" ;;
3872 esac
3873 ;;
3874 esac
3875 done
3876 for deplib in $deplibs; do
3877 case $deplib in
3878 -L*)
3879 case " $new_libs " in
3880 *" $deplib "*) ;;
3881 *) new_libs="$new_libs $deplib" ;;
3882 esac
3883 ;;
3884 *) new_libs="$new_libs $deplib" ;;
3885 esac
3886 done
3887 deplibs="$new_libs"
3888
3889
3890 # All the library-specific variables (install_libdir is set above).
3891 library_names=
3892 old_library=
3893 dlname=
3894
3895 # Test again, we may have decided not to build it any more
3896 if test "$build_libtool_libs" = yes; then
3897 if test "$hardcode_into_libs" = yes; then
3898 # Hardcode the library paths
3899 hardcode_libdirs=
3900 dep_rpath=
3901 rpath="$finalize_rpath"
3902 test "$mode" != relink && rpath="$compile_rpath$rpath"
3903 for libdir in $rpath; do
3904 if test -n "$hardcode_libdir_flag_spec"; then
3905 if test -n "$hardcode_libdir_separator"; then
3906 if test -z "$hardcode_libdirs"; then
3907 hardcode_libdirs="$libdir"
3908 else
3909 # Just accumulate the unique libdirs.
3910 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
3911 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
3912 ;;
3913 *)
3914 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
3915 ;;
3916 esac
3917 fi
3918 else
3919 eval flag=\"$hardcode_libdir_flag_spec\"
3920 dep_rpath="$dep_rpath $flag"
3921 fi
3922 elif test -n "$runpath_var"; then
3923 case "$perm_rpath " in
3924 *" $libdir "*) ;;
3925 *) perm_rpath="$perm_rpath $libdir" ;;
3926 esac
3927 fi
3928 done
3929 # Substitute the hardcoded libdirs into the rpath.
3930 if test -n "$hardcode_libdir_separator" &&
3931 test -n "$hardcode_libdirs"; then
3932 libdir="$hardcode_libdirs"
3933 if test -n "$hardcode_libdir_flag_spec_ld"; then
3934 case $archive_cmds in
3935 *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3936 *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3937 esac
3938 else
3939 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3940 fi
3941 fi
3942 if test -n "$runpath_var" && test -n "$perm_rpath"; then
3943 # We should set the runpath_var.
3944 rpath=
3945 for dir in $perm_rpath; do
3946 rpath="$rpath$dir:"
3947 done
3948 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
3949 fi
3950 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
3951 fi
3952
3953 shlibpath="$finalize_shlibpath"
3954 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
3955 if test -n "$shlibpath"; then
3956 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
3957 fi
3958
3959 # Get the real and link names of the library.
3960 eval shared_ext=\"$shrext_cmds\"
3961 eval library_names=\"$library_names_spec\"
3962 set dummy $library_names
3963 realname="$2"
3964 shift; shift
3965
3966 if test -n "$soname_spec"; then
3967 eval soname=\"$soname_spec\"
3968 else
3969 soname="$realname"
3970 fi
3971 if test -z "$dlname"; then
3972 dlname=$soname
3973 fi
3974
3975 lib="$output_objdir/$realname"
3976 linknames=
3977 for link
3978 do
3979 linknames="$linknames $link"
3980 done
3981
3982 # Use standard objects if they are pic
3983 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
3984
3985 # Prepare the list of exported symbols
3986 if test -z "$export_symbols"; then
3987 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
3988 $show "generating symbol list for \`$libname.la'"
3989 export_symbols="$output_objdir/$libname.exp"
3990 $run $rm $export_symbols
3991 cmds=$export_symbols_cmds
3992 save_ifs="$IFS"; IFS='~'
3993 for cmd in $cmds; do
3994 IFS="$save_ifs"
3995 eval cmd=\"$cmd\"
3996 if len=`expr "X$cmd" : ".*"` &&
3997 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3998 $show "$cmd"
3999 $run eval "$cmd" || exit $?
4000 skipped_export=false
4001 else
4002 # The command line is too long to execute in one step.
4003 $show "using reloadable object file for export list..."
4004 skipped_export=:
4005 # Break out early, otherwise skipped_export may be
4006 # set to false by a later but shorter cmd.
4007 break
4008 fi
4009 done
4010 IFS="$save_ifs"
4011 if test -n "$export_symbols_regex"; then
4012 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4013 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4014 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4015 $run eval '$mv "${export_symbols}T" "$export_symbols"'
4016 fi
4017 fi
4018 fi
4019
4020 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4021 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
4022 fi
4023
4024 tmp_deplibs=
4025 for test_deplib in $deplibs; do
4026 case " $convenience " in
4027 *" $test_deplib "*) ;;
4028 *)
4029 tmp_deplibs="$tmp_deplibs $test_deplib"
4030 ;;
4031 esac
4032 done
4033 deplibs="$tmp_deplibs"
4034
4035 if test -n "$convenience"; then
4036 if test -n "$whole_archive_flag_spec"; then
4037 save_libobjs=$libobjs
4038 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4039 else
4040 gentop="$output_objdir/${outputname}x"
4041 generated="$generated $gentop"
4042
4043 func_extract_archives $gentop $convenience
4044 libobjs="$libobjs $func_extract_archives_result"
4045 fi
4046 fi
4047
4048 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
4049 eval flag=\"$thread_safe_flag_spec\"
4050 linker_flags="$linker_flags $flag"
4051 fi
4052
4053 # Make a backup of the uninstalled library when relinking
4054 if test "$mode" = relink; then
4055 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
4056 fi
4057
4058 # Do each of the archive commands.
4059 if test "$module" = yes && test -n "$module_cmds" ; then
4060 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4061 eval test_cmds=\"$module_expsym_cmds\"
4062 cmds=$module_expsym_cmds
4063 else
4064 eval test_cmds=\"$module_cmds\"
4065 cmds=$module_cmds
4066 fi
4067 else
4068 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4069 eval test_cmds=\"$archive_expsym_cmds\"
4070 cmds=$archive_expsym_cmds
4071 else
4072 eval test_cmds=\"$archive_cmds\"
4073 cmds=$archive_cmds
4074 fi
4075 fi
4076
4077 if test "X$skipped_export" != "X:" &&
4078 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4079 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4080 :
4081 else
4082 # The command line is too long to link in one step, link piecewise.
4083 $echo "creating reloadable object files..."
4084
4085 # Save the value of $output and $libobjs because we want to
4086 # use them later. If we have whole_archive_flag_spec, we
4087 # want to use save_libobjs as it was before
4088 # whole_archive_flag_spec was expanded, because we can't
4089 # assume the linker understands whole_archive_flag_spec.
4090 # This may have to be revisited, in case too many
4091 # convenience libraries get linked in and end up exceeding
4092 # the spec.
4093 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
4094 save_libobjs=$libobjs
4095 fi
4096 save_output=$output
4097 output_la=`$echo "X$output" | $Xsed -e "$basename"`
4098
4099 # Clear the reloadable object creation command queue and
4100 # initialize k to one.
4101 test_cmds=
4102 concat_cmds=
4103 objlist=
4104 delfiles=
4105 last_robj=
4106 k=1
4107 output=$output_objdir/$output_la-${k}.$objext
4108 # Loop over the list of objects to be linked.
4109 for obj in $save_libobjs
4110 do
4111 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4112 if test "X$objlist" = X ||
4113 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4114 test "$len" -le "$max_cmd_len"; }; then
4115 objlist="$objlist $obj"
4116 else
4117 # The command $test_cmds is almost too long, add a
4118 # command to the queue.
4119 if test "$k" -eq 1 ; then
4120 # The first file doesn't have a previous command to add.
4121 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4122 else
4123 # All subsequent reloadable object files will link in
4124 # the last one created.
4125 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
4126 fi
4127 last_robj=$output_objdir/$output_la-${k}.$objext
4128 k=`expr $k + 1`
4129 output=$output_objdir/$output_la-${k}.$objext
4130 objlist=$obj
4131 len=1
4132 fi
4133 done
4134 # Handle the remaining objects by creating one last
4135 # reloadable object file. All subsequent reloadable object
4136 # files will link in the last one created.
4137 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4138 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4139
4140 if ${skipped_export-false}; then
4141 $show "generating symbol list for \`$libname.la'"
4142 export_symbols="$output_objdir/$libname.exp"
4143 $run $rm $export_symbols
4144 libobjs=$output
4145 # Append the command to create the export file.
4146 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4147 fi
4148
4149 # Set up a command to remove the reloadable object files
4150 # after they are used.
4151 i=0
4152 while test "$i" -lt "$k"
4153 do
4154 i=`expr $i + 1`
4155 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4156 done
4157
4158 $echo "creating a temporary reloadable object file: $output"
4159
4160 # Loop through the commands generated above and execute them.
4161 save_ifs="$IFS"; IFS='~'
4162 for cmd in $concat_cmds; do
4163 IFS="$save_ifs"
4164 $show "$cmd"
4165 $run eval "$cmd" || exit $?
4166 done
4167 IFS="$save_ifs"
4168
4169 libobjs=$output
4170 # Restore the value of output.
4171 output=$save_output
4172
4173 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
4174 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4175 fi
4176 # Expand the library linking commands again to reset the
4177 # value of $libobjs for piecewise linking.
4178
4179 # Do each of the archive commands.
4180 if test "$module" = yes && test -n "$module_cmds" ; then
4181 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4182 cmds=$module_expsym_cmds
4183 else
4184 cmds=$module_cmds
4185 fi
4186 else
4187 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4188 cmds=$archive_expsym_cmds
4189 else
4190 cmds=$archive_cmds
4191 fi
4192 fi
4193
4194 # Append the command to remove the reloadable object files
4195 # to the just-reset $cmds.
4196 eval cmds=\"\$cmds~\$rm $delfiles\"
4197 fi
4198 save_ifs="$IFS"; IFS='~'
4199 for cmd in $cmds; do
4200 IFS="$save_ifs"
4201 eval cmd=\"$cmd\"
4202 $show "$cmd"
4203 $run eval "$cmd" || {
4204 lt_exit=$?
4205
4206 # Restore the uninstalled library and exit
4207 if test "$mode" = relink; then
4208 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4209 fi
4210
4211 exit $lt_exit
4212 }
4213 done
4214 IFS="$save_ifs"
4215
4216 # Restore the uninstalled library and exit
4217 if test "$mode" = relink; then
4218 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4219
4220 if test -n "$convenience"; then
4221 if test -z "$whole_archive_flag_spec"; then
4222 $show "${rm}r $gentop"
4223 $run ${rm}r "$gentop"
4224 fi
4225 fi
4226
4227 exit $EXIT_SUCCESS
4228 fi
4229
4230 # Create links to the real library.
4231 for linkname in $linknames; do
4232 if test "$realname" != "$linkname"; then
4233 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4234 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
4235 fi
4236 done
4237
4238 # If -module or -export-dynamic was specified, set the dlname.
4239 if test "$module" = yes || test "$export_dynamic" = yes; then
4240 # On all known operating systems, these are identical.
4241 dlname="$soname"
4242 fi
4243 fi
4244 ;;
4245
4246 obj)
4247 if test -n "$deplibs"; then
4248 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
4249 fi
4250
4251 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4252 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4253 fi
4254
4255 if test -n "$rpath"; then
4256 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4257 fi
4258
4259 if test -n "$xrpath"; then
4260 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4261 fi
4262
4263 if test -n "$vinfo"; then
4264 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4265 fi
4266
4267 if test -n "$release"; then
4268 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4269 fi
4270
4271 case $output in
4272 *.lo)
4273 if test -n "$objs$old_deplibs"; then
4274 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4275 exit $EXIT_FAILURE
4276 fi
4277 libobj="$output"
4278 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
4279 ;;
4280 *)
4281 libobj=
4282 obj="$output"
4283 ;;
4284 esac
4285
4286 # Delete the old objects.
4287 $run $rm $obj $libobj
4288
4289 # Objects from convenience libraries. This assumes
4290 # single-version convenience libraries. Whenever we create
4291 # different ones for PIC/non-PIC, this we'll have to duplicate
4292 # the extraction.
4293 reload_conv_objs=
4294 gentop=
4295 # reload_cmds runs $LD directly, so let us get rid of
4296 # -Wl from whole_archive_flag_spec and hope we can get by with
4297 # turning comma into space..
4298 wl=
4299
4300 if test -n "$convenience"; then
4301 if test -n "$whole_archive_flag_spec"; then
4302 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4303 reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4304 else
4305 gentop="$output_objdir/${obj}x"
4306 generated="$generated $gentop"
4307
4308 func_extract_archives $gentop $convenience
4309 reload_conv_objs="$reload_objs $func_extract_archives_result"
4310 fi
4311 fi
4312
4313 # Create the old-style object.
4314 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
4315
4316 output="$obj"
4317 cmds=$reload_cmds
4318 save_ifs="$IFS"; IFS='~'
4319 for cmd in $cmds; do
4320 IFS="$save_ifs"
4321 eval cmd=\"$cmd\"
4322 $show "$cmd"
4323 $run eval "$cmd" || exit $?
4324 done
4325 IFS="$save_ifs"
4326
4327 # Exit if we aren't doing a library object file.
4328 if test -z "$libobj"; then
4329 if test -n "$gentop"; then
4330 $show "${rm}r $gentop"
4331 $run ${rm}r $gentop
4332 fi
4333
4334 exit $EXIT_SUCCESS
4335 fi
4336
4337 if test "$build_libtool_libs" != yes; then
4338 if test -n "$gentop"; then
4339 $show "${rm}r $gentop"
4340 $run ${rm}r $gentop
4341 fi
4342
4343 # Create an invalid libtool object if no PIC, so that we don't
4344 # accidentally link it into a program.
4345 # $show "echo timestamp > $libobj"
4346 # $run eval "echo timestamp > $libobj" || exit $?
4347 exit $EXIT_SUCCESS
4348 fi
4349
4350 if test -n "$pic_flag" || test "$pic_mode" != default; then
4351 # Only do commands if we really have different PIC objects.
4352 reload_objs="$libobjs $reload_conv_objs"
4353 output="$libobj"
4354 cmds=$reload_cmds
4355 save_ifs="$IFS"; IFS='~'
4356 for cmd in $cmds; do
4357 IFS="$save_ifs"
4358 eval cmd=\"$cmd\"
4359 $show "$cmd"
4360 $run eval "$cmd" || exit $?
4361 done
4362 IFS="$save_ifs"
4363 fi
4364
4365 if test -n "$gentop"; then
4366 $show "${rm}r $gentop"
4367 $run ${rm}r $gentop
4368 fi
4369
4370 exit $EXIT_SUCCESS
4371 ;;
4372
4373 prog)
4374 case $host in
4375 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
4376 esac
4377 if test -n "$vinfo"; then
4378 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4379 fi
4380
4381 if test -n "$release"; then
4382 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4383 fi
4384
4385 if test "$preload" = yes; then
4386 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4387 test "$dlopen_self_static" = unknown; then
4388 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4389 fi
4390 fi
4391
4392 case $host in
4393 *-*-rhapsody* | *-*-darwin1.[012])
4394 # On Rhapsody replace the C library is the System framework
4395 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4396 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4397 ;;
4398 esac
4399
4400 case $host in
4401 *darwin*)
4402 # Don't allow lazy linking, it breaks C++ global constructors
4403 if test "$tagname" = CXX ; then
4404 compile_command="$compile_command ${wl}-bind_at_load"
4405 finalize_command="$finalize_command ${wl}-bind_at_load"
4406 fi
4407 ;;
4408 esac
4409
4410
4411 # move library search paths that coincide with paths to not yet
4412 # installed libraries to the beginning of the library search list
4413 new_libs=
4414 for path in $notinst_path; do
4415 case " $new_libs " in
4416 *" -L$path/$objdir "*) ;;
4417 *)
4418 case " $compile_deplibs " in
4419 *" -L$path/$objdir "*)
4420 new_libs="$new_libs -L$path/$objdir" ;;
4421 esac
4422 ;;
4423 esac
4424 done
4425 for deplib in $compile_deplibs; do
4426 case $deplib in
4427 -L*)
4428 case " $new_libs " in
4429 *" $deplib "*) ;;
4430 *) new_libs="$new_libs $deplib" ;;
4431 esac
4432 ;;
4433 *) new_libs="$new_libs $deplib" ;;
4434 esac
4435 done
4436 compile_deplibs="$new_libs"
4437
4438
4439 compile_command="$compile_command $compile_deplibs"
4440 finalize_command="$finalize_command $finalize_deplibs"
4441
4442 if test -n "$rpath$xrpath"; then
4443 # If the user specified any rpath flags, then add them.
4444 for libdir in $rpath $xrpath; do
4445 # This is the magic to use -rpath.
4446 case "$finalize_rpath " in
4447 *" $libdir "*) ;;
4448 *) finalize_rpath="$finalize_rpath $libdir" ;;
4449 esac
4450 done
4451 fi
4452
4453 # Now hardcode the library paths
4454 rpath=
4455 hardcode_libdirs=
4456 for libdir in $compile_rpath $finalize_rpath; do
4457 if test -n "$hardcode_libdir_flag_spec"; then
4458 if test -n "$hardcode_libdir_separator"; then
4459 if test -z "$hardcode_libdirs"; then
4460 hardcode_libdirs="$libdir"
4461 else
4462 # Just accumulate the unique libdirs.
4463 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4464 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4465 ;;
4466 *)
4467 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4468 ;;
4469 esac
4470 fi
4471 else
4472 eval flag=\"$hardcode_libdir_flag_spec\"
4473 rpath="$rpath $flag"
4474 fi
4475 elif test -n "$runpath_var"; then
4476 case "$perm_rpath " in
4477 *" $libdir "*) ;;
4478 *) perm_rpath="$perm_rpath $libdir" ;;
4479 esac
4480 fi
4481 case $host in
4482 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4483 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4484 case :$dllsearchpath: in
4485 *":$libdir:"*) ;;
4486 *) dllsearchpath="$dllsearchpath:$libdir";;
4487 esac
4488 case :$dllsearchpath: in
4489 *":$testbindir:"*) ;;
4490 *) dllsearchpath="$dllsearchpath:$testbindir";;
4491 esac
4492 ;;
4493 esac
4494 done
4495 # Substitute the hardcoded libdirs into the rpath.
4496 if test -n "$hardcode_libdir_separator" &&
4497 test -n "$hardcode_libdirs"; then
4498 libdir="$hardcode_libdirs"
4499 eval rpath=\" $hardcode_libdir_flag_spec\"
4500 fi
4501 compile_rpath="$rpath"
4502
4503 rpath=
4504 hardcode_libdirs=
4505 for libdir in $finalize_rpath; do
4506 if test -n "$hardcode_libdir_flag_spec"; then
4507 if test -n "$hardcode_libdir_separator"; then
4508 if test -z "$hardcode_libdirs"; then
4509 hardcode_libdirs="$libdir"
4510 else
4511 # Just accumulate the unique libdirs.
4512 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4513 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4514 ;;
4515 *)
4516 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4517 ;;
4518 esac
4519 fi
4520 else
4521 eval flag=\"$hardcode_libdir_flag_spec\"
4522 rpath="$rpath $flag"
4523 fi
4524 elif test -n "$runpath_var"; then
4525 case "$finalize_perm_rpath " in
4526 *" $libdir "*) ;;
4527 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
4528 esac
4529 fi
4530 done
4531 # Substitute the hardcoded libdirs into the rpath.
4532 if test -n "$hardcode_libdir_separator" &&
4533 test -n "$hardcode_libdirs"; then
4534 libdir="$hardcode_libdirs"
4535 eval rpath=\" $hardcode_libdir_flag_spec\"
4536 fi
4537 finalize_rpath="$rpath"
4538
4539 if test -n "$libobjs" && test "$build_old_libs" = yes; then
4540 # Transform all the library objects into standard objects.
4541 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4542 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4543 fi
4544
4545 dlsyms=
4546 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4547 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4548 dlsyms="${outputname}S.c"
4549 else
4550 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4551 fi
4552 fi
4553
4554 if test -n "$dlsyms"; then
4555 case $dlsyms in
4556 "") ;;
4557 *.c)
4558 # Discover the nlist of each of the dlfiles.
4559 nlist="$output_objdir/${outputname}.nm"
4560
4561 $show "$rm $nlist ${nlist}S ${nlist}T"
4562 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4563
4564 # Parse the name list into a source file.
4565 $show "creating $output_objdir/$dlsyms"
4566
4567 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4568 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4569 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4570
4571 #ifdef __cplusplus
4572 extern \"C\" {
4573 #endif
4574
4575 /* Prevent the only kind of declaration conflicts we can make. */
4576 #define lt_preloaded_symbols some_other_symbol
4577
4578 /* External symbol declarations for the compiler. */\
4579 "
4580
4581 if test "$dlself" = yes; then
4582 $show "generating symbol list for \`$output'"
4583
4584 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4585
4586 # Add our own program objects to the symbol list.
4587 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4588 for arg in $progfiles; do
4589 $show "extracting global C symbols from \`$arg'"
4590 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4591 done
4592
4593 if test -n "$exclude_expsyms"; then
4594 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4595 $run eval '$mv "$nlist"T "$nlist"'
4596 fi
4597
4598 if test -n "$export_symbols_regex"; then
4599 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4600 $run eval '$mv "$nlist"T "$nlist"'
4601 fi
4602
4603 # Prepare the list of exported symbols
4604 if test -z "$export_symbols"; then
4605 export_symbols="$output_objdir/$outputname.exp"
4606 $run $rm $export_symbols
4607 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4608 case $host in
4609 *cygwin* | *mingw* )
4610 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4611 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4612 ;;
4613 esac
4614 else
4615 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4616 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4617 $run eval 'mv "$nlist"T "$nlist"'
4618 case $host in
4619 *cygwin* | *mingw* )
4620 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4621 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4622 ;;
4623 esac
4624 fi
4625 fi
4626
4627 for arg in $dlprefiles; do
4628 $show "extracting global C symbols from \`$arg'"
4629 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4630 $run eval '$echo ": $name " >> "$nlist"'
4631 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4632 done
4633
4634 if test -z "$run"; then
4635 # Make sure we have at least an empty file.
4636 test -f "$nlist" || : > "$nlist"
4637
4638 if test -n "$exclude_expsyms"; then
4639 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4640 $mv "$nlist"T "$nlist"
4641 fi
4642
4643 # Try sorting and uniquifying the output.
4644 if grep -v "^: " < "$nlist" |
4645 if sort -k 3 </dev/null >/dev/null 2>&1; then
4646 sort -k 3
4647 else
4648 sort +2
4649 fi |
4650 uniq > "$nlist"S; then
4651 :
4652 else
4653 grep -v "^: " < "$nlist" > "$nlist"S
4654 fi
4655
4656 if test -f "$nlist"S; then
4657 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4658 else
4659 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4660 fi
4661
4662 $echo >> "$output_objdir/$dlsyms" "\
4663
4664 #undef lt_preloaded_symbols
4665
4666 #if defined (__STDC__) && __STDC__
4667 # define lt_ptr void *
4668 #else
4669 # define lt_ptr char *
4670 # define const
4671 #endif
4672
4673 /* The mapping between symbol names and symbols. */
4674 "
4675
4676 case $host in
4677 *cygwin* | *mingw* )
4678 $echo >> "$output_objdir/$dlsyms" "\
4679 /* DATA imports from DLLs on WIN32 can't be const, because
4680 runtime relocations are performed -- see ld's documentation
4681 on pseudo-relocs */
4682 struct {
4683 "
4684 ;;
4685 * )
4686 $echo >> "$output_objdir/$dlsyms" "\
4687 const struct {
4688 "
4689 ;;
4690 esac
4691
4692
4693 $echo >> "$output_objdir/$dlsyms" "\
4694 const char *name;
4695 lt_ptr address;
4696 }
4697 lt_preloaded_symbols[] =
4698 {\
4699 "
4700
4701 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4702
4703 $echo >> "$output_objdir/$dlsyms" "\
4704 {0, (lt_ptr) 0}
4705 };
4706
4707 /* This works around a problem in FreeBSD linker */
4708 #ifdef FREEBSD_WORKAROUND
4709 static const void *lt_preloaded_setup() {
4710 return lt_preloaded_symbols;
4711 }
4712 #endif
4713
4714 #ifdef __cplusplus
4715 }
4716 #endif\
4717 "
4718 fi
4719
4720 pic_flag_for_symtable=
4721 case $host in
4722 # compiling the symbol table file with pic_flag works around
4723 # a FreeBSD bug that causes programs to crash when -lm is
4724 # linked before any other PIC object. But we must not use
4725 # pic_flag when linking with -static. The problem exists in
4726 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4727 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4728 case "$compile_command " in
4729 *" -static "*) ;;
4730 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4731 esac;;
4732 *-*-hpux*)
4733 case "$compile_command " in
4734 *" -static "*) ;;
4735 *) pic_flag_for_symtable=" $pic_flag";;
4736 esac
4737 esac
4738
4739 # Now compile the dynamic symbol file.
4740 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4741 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4742
4743 # Clean up the generated files.
4744 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4745 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4746
4747 # Transform the symbol file into the correct name.
4748 case $host in
4749 *cygwin* | *mingw* )
4750 if test -f "$output_objdir/${outputname}.def" ; then
4751 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4752 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4753 else
4754 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4755 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4756 fi
4757 ;;
4758 * )
4759 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4760 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4761 ;;
4762 esac
4763 ;;
4764 *)
4765 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4766 exit $EXIT_FAILURE
4767 ;;
4768 esac
4769 else
4770 # We keep going just in case the user didn't refer to
4771 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4772 # really was required.
4773
4774 # Nullify the symbol file.
4775 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4776 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4777 fi
4778
4779 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4780 # Replace the output file specification.
4781 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4782 link_command="$compile_command$compile_rpath"
4783
4784 # We have no uninstalled library dependencies, so finalize right now.
4785 $show "$link_command"
4786 $run eval "$link_command"
4787 exit_status=$?
4788
4789 # Delete the generated files.
4790 if test -n "$dlsyms"; then
4791 $show "$rm $output_objdir/${outputname}S.${objext}"
4792 $run $rm "$output_objdir/${outputname}S.${objext}"
4793 fi
4794
4795 exit $exit_status
4796 fi
4797
4798 if test -n "$shlibpath_var"; then
4799 # We should set the shlibpath_var
4800 rpath=
4801 for dir in $temp_rpath; do
4802 case $dir in
4803 [\\/]* | [A-Za-z]:[\\/]*)
4804 # Absolute path.
4805 rpath="$rpath$dir:"
4806 ;;
4807 *)
4808 # Relative path: add a thisdir entry.
4809 rpath="$rpath\$thisdir/$dir:"
4810 ;;
4811 esac
4812 done
4813 temp_rpath="$rpath"
4814 fi
4815
4816 if test -n "$compile_shlibpath$finalize_shlibpath"; then
4817 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
4818 fi
4819 if test -n "$finalize_shlibpath"; then
4820 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
4821 fi
4822
4823 compile_var=
4824 finalize_var=
4825 if test -n "$runpath_var"; then
4826 if test -n "$perm_rpath"; then
4827 # We should set the runpath_var.
4828 rpath=
4829 for dir in $perm_rpath; do
4830 rpath="$rpath$dir:"
4831 done
4832 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
4833 fi
4834 if test -n "$finalize_perm_rpath"; then
4835 # We should set the runpath_var.
4836 rpath=
4837 for dir in $finalize_perm_rpath; do
4838 rpath="$rpath$dir:"
4839 done
4840 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
4841 fi
4842 fi
4843
4844 if test "$no_install" = yes; then
4845 # We don't need to create a wrapper script.
4846 link_command="$compile_var$compile_command$compile_rpath"
4847 # Replace the output file specification.
4848 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4849 # Delete the old output file.
4850 $run $rm $output
4851 # Link the executable and exit
4852 $show "$link_command"
4853 $run eval "$link_command" || exit $?
4854 exit $EXIT_SUCCESS
4855 fi
4856
4857 if test "$hardcode_action" = relink; then
4858 # Fast installation is not supported
4859 link_command="$compile_var$compile_command$compile_rpath"
4860 relink_command="$finalize_var$finalize_command$finalize_rpath"
4861
4862 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4863 $echo "$modename: \`$output' will be relinked during installation" 1>&2
4864 else
4865 if test "$fast_install" != no; then
4866 link_command="$finalize_var$compile_command$finalize_rpath"
4867 if test "$fast_install" = yes; then
4868 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4869 else
4870 # fast_install is set to needless
4871 relink_command=
4872 fi
4873 else
4874 link_command="$compile_var$compile_command$compile_rpath"
4875 relink_command="$finalize_var$finalize_command$finalize_rpath"
4876 fi
4877 fi
4878
4879 # Replace the output file specification.
4880 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
4881
4882 # Delete the old output files.
4883 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4884
4885 $show "$link_command"
4886 $run eval "$link_command" || exit $?
4887
4888 # Now create the wrapper script.
4889 $show "creating $output"
4890
4891 # Quote the relink command for shipping.
4892 if test -n "$relink_command"; then
4893 # Preserve any variables that may affect compiler behavior
4894 for var in $variables_saved_for_relink; do
4895 if eval test -z \"\${$var+set}\"; then
4896 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
4897 elif eval var_value=\$$var; test -z "$var_value"; then
4898 relink_command="$var=; export $var; $relink_command"
4899 else
4900 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4901 relink_command="$var=\"$var_value\"; export $var; $relink_command"
4902 fi
4903 done
4904 relink_command="(cd `pwd`; $relink_command)"
4905 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4906 fi
4907
4908 # Quote $echo for shipping.
4909 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4910 case $progpath in
4911 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4912 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4913 esac
4914 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4915 else
4916 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
4917 fi
4918
4919 # Only actually do things if our run command is non-null.
4920 if test -z "$run"; then
4921 # win32 will think the script is a binary if it has
4922 # a .exe suffix, so we strip it off here.
4923 case $output in
4924 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
4925 esac
4926 # test for cygwin because mv fails w/o .exe extensions
4927 case $host in
4928 *cygwin*)
4929 exeext=.exe
4930 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
4931 *) exeext= ;;
4932 esac
4933 case $host in
4934 *cygwin* | *mingw* )
4935 output_name=`basename $output`
4936 output_path=`dirname $output`
4937 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4938 cwrapper="$output_path/$output_name.exe"
4939 $rm $cwrappersource $cwrapper
4940 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4941
4942 cat > $cwrappersource <<EOF
4943
4944 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4945 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4946
4947 The $output program cannot be directly executed until all the libtool
4948 libraries that it depends on are installed.
4949
4950 This wrapper executable should never be moved out of the build directory.
4951 If it is, it will not operate correctly.
4952
4953 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4954 but could eventually absorb all of the scripts functionality and
4955 exec $objdir/$outputname directly.
4956 */
4957 EOF
4958 cat >> $cwrappersource<<"EOF"
4959 #include <stdio.h>
4960 #include <stdlib.h>
4961 #include <unistd.h>
4962 #include <malloc.h>
4963 #include <stdarg.h>
4964 #include <assert.h>
4965 #include <string.h>
4966 #include <ctype.h>
4967 #include <sys/stat.h>
4968
4969 #if defined(PATH_MAX)
4970 # define LT_PATHMAX PATH_MAX
4971 #elif defined(MAXPATHLEN)
4972 # define LT_PATHMAX MAXPATHLEN
4973 #else
4974 # define LT_PATHMAX 1024
4975 #endif
4976
4977 #ifndef DIR_SEPARATOR
4978 # define DIR_SEPARATOR '/'
4979 # define PATH_SEPARATOR ':'
4980 #endif
4981
4982 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4983 defined (__OS2__)
4984 # define HAVE_DOS_BASED_FILE_SYSTEM
4985 # ifndef DIR_SEPARATOR_2
4986 # define DIR_SEPARATOR_2 '\\'
4987 # endif
4988 # ifndef PATH_SEPARATOR_2
4989 # define PATH_SEPARATOR_2 ';'
4990 # endif
4991 #endif
4992
4993 #ifndef DIR_SEPARATOR_2
4994 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4995 #else /* DIR_SEPARATOR_2 */
4996 # define IS_DIR_SEPARATOR(ch) \
4997 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4998 #endif /* DIR_SEPARATOR_2 */
4999
5000 #ifndef PATH_SEPARATOR_2
5001 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5002 #else /* PATH_SEPARATOR_2 */
5003 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5004 #endif /* PATH_SEPARATOR_2 */
5005
5006 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5007 #define XFREE(stale) do { \
5008 if (stale) { free ((void *) stale); stale = 0; } \
5009 } while (0)
5010
5011 /* -DDEBUG is fairly common in CFLAGS. */
5012 #undef DEBUG
5013 #if defined DEBUGWRAPPER
5014 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5015 #else
5016 # define DEBUG(format, ...)
5017 #endif
5018
5019 const char *program_name = NULL;
5020
5021 void * xmalloc (size_t num);
5022 char * xstrdup (const char *string);
5023 const char * base_name (const char *name);
5024 char * find_executable(const char *wrapper);
5025 int check_executable(const char *path);
5026 char * strendzap(char *str, const char *pat);
5027 void lt_fatal (const char *message, ...);
5028
5029 int
5030 main (int argc, char *argv[])
5031 {
5032 char **newargz;
5033 int i;
5034
5035 program_name = (char *) xstrdup (base_name (argv[0]));
5036 DEBUG("(main) argv[0] : %s\n",argv[0]);
5037 DEBUG("(main) program_name : %s\n",program_name);
5038 newargz = XMALLOC(char *, argc+2);
5039 EOF
5040
5041 cat >> $cwrappersource <<EOF
5042 newargz[0] = (char *) xstrdup("$SHELL");
5043 EOF
5044
5045 cat >> $cwrappersource <<"EOF"
5046 newargz[1] = find_executable(argv[0]);
5047 if (newargz[1] == NULL)
5048 lt_fatal("Couldn't find %s", argv[0]);
5049 DEBUG("(main) found exe at : %s\n",newargz[1]);
5050 /* we know the script has the same name, without the .exe */
5051 /* so make sure newargz[1] doesn't end in .exe */
5052 strendzap(newargz[1],".exe");
5053 for (i = 1; i < argc; i++)
5054 newargz[i+1] = xstrdup(argv[i]);
5055 newargz[argc+1] = NULL;
5056
5057 for (i=0; i<argc+1; i++)
5058 {
5059 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5060 ;
5061 }
5062
5063 EOF
5064
5065 case $host_os in
5066 mingw*)
5067 cat >> $cwrappersource <<EOF
5068 execv("$SHELL",(char const **)newargz);
5069 EOF
5070 ;;
5071 *)
5072 cat >> $cwrappersource <<EOF
5073 execv("$SHELL",newargz);
5074 EOF
5075 ;;
5076 esac
5077
5078 cat >> $cwrappersource <<"EOF"
5079 return 127;
5080 }
5081
5082 void *
5083 xmalloc (size_t num)
5084 {
5085 void * p = (void *) malloc (num);
5086 if (!p)
5087 lt_fatal ("Memory exhausted");
5088
5089 return p;
5090 }
5091
5092 char *
5093 xstrdup (const char *string)
5094 {
5095 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5096 ;
5097 }
5098
5099 const char *
5100 base_name (const char *name)
5101 {
5102 const char *base;
5103
5104 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5105 /* Skip over the disk name in MSDOS pathnames. */
5106 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5107 name += 2;
5108 #endif
5109
5110 for (base = name; *name; name++)
5111 if (IS_DIR_SEPARATOR (*name))
5112 base = name + 1;
5113 return base;
5114 }
5115
5116 int
5117 check_executable(const char * path)
5118 {
5119 struct stat st;
5120
5121 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5122 if ((!path) || (!*path))
5123 return 0;
5124
5125 if ((stat (path, &st) >= 0) &&
5126 (
5127 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5128 #if defined (S_IXOTH)
5129 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5130 #endif
5131 #if defined (S_IXGRP)
5132 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5133 #endif
5134 ((st.st_mode & S_IXUSR) == S_IXUSR))
5135 )
5136 return 1;
5137 else
5138 return 0;
5139 }
5140
5141 /* Searches for the full path of the wrapper. Returns
5142 newly allocated full path name if found, NULL otherwise */
5143 char *
5144 find_executable (const char* wrapper)
5145 {
5146 int has_slash = 0;
5147 const char* p;
5148 const char* p_next;
5149 /* static buffer for getcwd */
5150 char tmp[LT_PATHMAX + 1];
5151 int tmp_len;
5152 char* concat_name;
5153
5154 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5155
5156 if ((wrapper == NULL) || (*wrapper == '\0'))
5157 return NULL;
5158
5159 /* Absolute path? */
5160 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5161 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5162 {
5163 concat_name = xstrdup (wrapper);
5164 if (check_executable(concat_name))
5165 return concat_name;
5166 XFREE(concat_name);
5167 }
5168 else
5169 {
5170 #endif
5171 if (IS_DIR_SEPARATOR (wrapper[0]))
5172 {
5173 concat_name = xstrdup (wrapper);
5174 if (check_executable(concat_name))
5175 return concat_name;
5176 XFREE(concat_name);
5177 }
5178 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5179 }
5180 #endif
5181
5182 for (p = wrapper; *p; p++)
5183 if (*p == '/')
5184 {
5185 has_slash = 1;
5186 break;
5187 }
5188 if (!has_slash)
5189 {
5190 /* no slashes; search PATH */
5191 const char* path = getenv ("PATH");
5192 if (path != NULL)
5193 {
5194 for (p = path; *p; p = p_next)
5195 {
5196 const char* q;
5197 size_t p_len;
5198 for (q = p; *q; q++)
5199 if (IS_PATH_SEPARATOR(*q))
5200 break;
5201 p_len = q - p;
5202 p_next = (*q == '\0' ? q : q + 1);
5203 if (p_len == 0)
5204 {
5205 /* empty path: current directory */
5206 if (getcwd (tmp, LT_PATHMAX) == NULL)
5207 lt_fatal ("getcwd failed");
5208 tmp_len = strlen(tmp);
5209 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5210 memcpy (concat_name, tmp, tmp_len);
5211 concat_name[tmp_len] = '/';
5212 strcpy (concat_name + tmp_len + 1, wrapper);
5213 }
5214 else
5215 {
5216 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5217 memcpy (concat_name, p, p_len);
5218 concat_name[p_len] = '/';
5219 strcpy (concat_name + p_len + 1, wrapper);
5220 }
5221 if (check_executable(concat_name))
5222 return concat_name;
5223 XFREE(concat_name);
5224 }
5225 }
5226 /* not found in PATH; assume curdir */
5227 }
5228 /* Relative path | not found in path: prepend cwd */
5229 if (getcwd (tmp, LT_PATHMAX) == NULL)
5230 lt_fatal ("getcwd failed");
5231 tmp_len = strlen(tmp);
5232 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5233 memcpy (concat_name, tmp, tmp_len);
5234 concat_name[tmp_len] = '/';
5235 strcpy (concat_name + tmp_len + 1, wrapper);
5236
5237 if (check_executable(concat_name))
5238 return concat_name;
5239 XFREE(concat_name);
5240 return NULL;
5241 }
5242
5243 char *
5244 strendzap(char *str, const char *pat)
5245 {
5246 size_t len, patlen;
5247
5248 assert(str != NULL);
5249 assert(pat != NULL);
5250
5251 len = strlen(str);
5252 patlen = strlen(pat);
5253
5254 if (patlen <= len)
5255 {
5256 str += len - patlen;
5257 if (strcmp(str, pat) == 0)
5258 *str = '\0';
5259 }
5260 return str;
5261 }
5262
5263 static void
5264 lt_error_core (int exit_status, const char * mode,
5265 const char * message, va_list ap)
5266 {
5267 fprintf (stderr, "%s: %s: ", program_name, mode);
5268 vfprintf (stderr, message, ap);
5269 fprintf (stderr, ".\n");
5270
5271 if (exit_status >= 0)
5272 exit (exit_status);
5273 }
5274
5275 void
5276 lt_fatal (const char *message, ...)
5277 {
5278 va_list ap;
5279 va_start (ap, message);
5280 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5281 va_end (ap);
5282 }
5283 EOF
5284 # we should really use a build-platform specific compiler
5285 # here, but OTOH, the wrappers (shell script and this C one)
5286 # are only useful if you want to execute the "real" binary.
5287 # Since the "real" binary is built for $host, then this
5288 # wrapper might as well be built for $host, too.
5289 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5290 ;;
5291 esac
5292 $rm $output
5293 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5294
5295 $echo > $output "\
5296 #! $SHELL
5297
5298 # $output - temporary wrapper script for $objdir/$outputname
5299 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5300 #
5301 # The $output program cannot be directly executed until all the libtool
5302 # libraries that it depends on are installed.
5303 #
5304 # This wrapper script should never be moved out of the build directory.
5305 # If it is, it will not operate correctly.
5306
5307 # Sed substitution that helps us do robust quoting. It backslashifies
5308 # metacharacters that are still active within double-quoted strings.
5309 Xsed='${SED} -e 1s/^X//'
5310 sed_quote_subst='$sed_quote_subst'
5311
5312 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5313 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5314 emulate sh
5315 NULLCMD=:
5316 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5317 # is contrary to our usage. Disable this feature.
5318 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5319 setopt NO_GLOB_SUBST
5320 else
5321 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5322 fi
5323 BIN_SH=xpg4; export BIN_SH # for Tru64
5324 DUALCASE=1; export DUALCASE # for MKS sh
5325
5326 # The HP-UX ksh and POSIX shell print the target directory to stdout
5327 # if CDPATH is set.
5328 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5329
5330 relink_command=\"$relink_command\"
5331
5332 # This environment variable determines our operation mode.
5333 if test \"\$libtool_install_magic\" = \"$magic\"; then
5334 # install mode needs the following variable:
5335 notinst_deplibs='$notinst_deplibs'
5336 else
5337 # When we are sourced in execute mode, \$file and \$echo are already set.
5338 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5339 echo=\"$qecho\"
5340 file=\"\$0\"
5341 # Make sure echo works.
5342 if test \"X\$1\" = X--no-reexec; then
5343 # Discard the --no-reexec flag, and continue.
5344 shift
5345 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5346 # Yippee, \$echo works!
5347 :
5348 else
5349 # Restart under the correct shell, and then maybe \$echo will work.
5350 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5351 fi
5352 fi\
5353 "
5354 $echo >> $output "\
5355
5356 # Find the directory that this script lives in.
5357 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5358 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5359
5360 # Follow symbolic links until we get to the real thisdir.
5361 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5362 while test -n \"\$file\"; do
5363 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5364
5365 # If there was a directory component, then change thisdir.
5366 if test \"x\$destdir\" != \"x\$file\"; then
5367 case \"\$destdir\" in
5368 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5369 *) thisdir=\"\$thisdir/\$destdir\" ;;
5370 esac
5371 fi
5372
5373 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5374 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5375 done
5376
5377 # Try to get the absolute directory name.
5378 absdir=\`cd \"\$thisdir\" && pwd\`
5379 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5380 "
5381
5382 if test "$fast_install" = yes; then
5383 $echo >> $output "\
5384 program=lt-'$outputname'$exeext
5385 progdir=\"\$thisdir/$objdir\"
5386
5387 if test ! -f \"\$progdir/\$program\" || \\
5388 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5389 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5390
5391 file=\"\$\$-\$program\"
5392
5393 if test ! -d \"\$progdir\"; then
5394 $mkdir \"\$progdir\"
5395 else
5396 $rm \"\$progdir/\$file\"
5397 fi"
5398
5399 $echo >> $output "\
5400
5401 # relink executable if necessary
5402 if test -n \"\$relink_command\"; then
5403 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5404 else
5405 $echo \"\$relink_command_output\" >&2
5406 $rm \"\$progdir/\$file\"
5407 exit $EXIT_FAILURE
5408 fi
5409 fi
5410
5411 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5412 { $rm \"\$progdir/\$program\";
5413 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5414 $rm \"\$progdir/\$file\"
5415 fi"
5416 else
5417 $echo >> $output "\
5418 program='$outputname'
5419 progdir=\"\$thisdir/$objdir\"
5420 "
5421 fi
5422
5423 $echo >> $output "\
5424
5425 if test -f \"\$progdir/\$program\"; then"
5426
5427 # Export our shlibpath_var if we have one.
5428 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5429 $echo >> $output "\
5430 # Add our own library path to $shlibpath_var
5431 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5432
5433 # Some systems cannot cope with colon-terminated $shlibpath_var
5434 # The second colon is a workaround for a bug in BeOS R4 sed
5435 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5436
5437 export $shlibpath_var
5438 "
5439 fi
5440
5441 # fixup the dll searchpath if we need to.
5442 if test -n "$dllsearchpath"; then
5443 $echo >> $output "\
5444 # Add the dll search path components to the executable PATH
5445 PATH=$dllsearchpath:\$PATH
5446 "
5447 fi
5448
5449 $echo >> $output "\
5450 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5451 # Run the actual program with our arguments.
5452 "
5453 case $host in
5454 # Backslashes separate directories on plain windows
5455 *-*-mingw | *-*-os2*)
5456 $echo >> $output "\
5457 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5458 "
5459 ;;
5460
5461 *)
5462 $echo >> $output "\
5463 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5464 "
5465 ;;
5466 esac
5467 $echo >> $output "\
5468 \$echo \"\$0: cannot exec \$program \$*\"
5469 exit $EXIT_FAILURE
5470 fi
5471 else
5472 # The program doesn't exist.
5473 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5474 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5475 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5476 exit $EXIT_FAILURE
5477 fi
5478 fi\
5479 "
5480 chmod +x $output
5481 fi
5482 exit $EXIT_SUCCESS
5483 ;;
5484 esac
5485
5486 # See if we need to build an old-fashioned archive.
5487 for oldlib in $oldlibs; do
5488
5489 if test "$build_libtool_libs" = convenience; then
5490 oldobjs="$libobjs_save"
5491 addlibs="$convenience"
5492 build_libtool_libs=no
5493 else
5494 if test "$build_libtool_libs" = module; then
5495 oldobjs="$libobjs_save"
5496 build_libtool_libs=no
5497 else
5498 oldobjs="$old_deplibs $non_pic_objects"
5499 fi
5500 addlibs="$old_convenience"
5501 fi
5502
5503 if test -n "$addlibs"; then
5504 gentop="$output_objdir/${outputname}x"
5505 generated="$generated $gentop"
5506
5507 func_extract_archives $gentop $addlibs
5508 oldobjs="$oldobjs $func_extract_archives_result"
5509 fi
5510
5511 # Do each command in the archive commands.
5512 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5513 cmds=$old_archive_from_new_cmds
5514 else
5515 # POSIX demands no paths to be encoded in archives. We have
5516 # to avoid creating archives with duplicate basenames if we
5517 # might have to extract them afterwards, e.g., when creating a
5518 # static archive out of a convenience library, or when linking
5519 # the entirety of a libtool archive into another (currently
5520 # not supported by libtool).
5521 if (for obj in $oldobjs
5522 do
5523 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5524 done | sort | sort -uc >/dev/null 2>&1); then
5525 :
5526 else
5527 $echo "copying selected object files to avoid basename conflicts..."
5528
5529 if test -z "$gentop"; then
5530 gentop="$output_objdir/${outputname}x"
5531 generated="$generated $gentop"
5532
5533 $show "${rm}r $gentop"
5534 $run ${rm}r "$gentop"
5535 $show "$mkdir $gentop"
5536 $run $mkdir "$gentop"
5537 exit_status=$?
5538 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5539 exit $exit_status
5540 fi
5541 fi
5542
5543 save_oldobjs=$oldobjs
5544 oldobjs=
5545 counter=1
5546 for obj in $save_oldobjs
5547 do
5548 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5549 case " $oldobjs " in
5550 " ") oldobjs=$obj ;;
5551 *[\ /]"$objbase "*)
5552 while :; do
5553 # Make sure we don't pick an alternate name that also
5554 # overlaps.
5555 newobj=lt$counter-$objbase
5556 counter=`expr $counter + 1`
5557 case " $oldobjs " in
5558 *[\ /]"$newobj "*) ;;
5559 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5560 esac
5561 done
5562 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5563 $run ln "$obj" "$gentop/$newobj" ||
5564 $run cp "$obj" "$gentop/$newobj"
5565 oldobjs="$oldobjs $gentop/$newobj"
5566 ;;
5567 *) oldobjs="$oldobjs $obj" ;;
5568 esac
5569 done
5570 fi
5571
5572 eval cmds=\"$old_archive_cmds\"
5573
5574 if len=`expr "X$cmds" : ".*"` &&
5575 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5576 cmds=$old_archive_cmds
5577 else
5578 # the command line is too long to link in one step, link in parts
5579 $echo "using piecewise archive linking..."
5580 save_RANLIB=$RANLIB
5581 RANLIB=:
5582 objlist=
5583 concat_cmds=
5584 save_oldobjs=$oldobjs
5585
5586 # Is there a better way of finding the last object in the list?
5587 for obj in $save_oldobjs
5588 do
5589 last_oldobj=$obj
5590 done
5591 for obj in $save_oldobjs
5592 do
5593 oldobjs="$objlist $obj"
5594 objlist="$objlist $obj"
5595 eval test_cmds=\"$old_archive_cmds\"
5596 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5597 test "$len" -le "$max_cmd_len"; then
5598 :
5599 else
5600 # the above command should be used before it gets too long
5601 oldobjs=$objlist
5602 if test "$obj" = "$last_oldobj" ; then
5603 RANLIB=$save_RANLIB
5604 fi
5605 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5606 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5607 objlist=
5608 fi
5609 done
5610 RANLIB=$save_RANLIB
5611 oldobjs=$objlist
5612 if test "X$oldobjs" = "X" ; then
5613 eval cmds=\"\$concat_cmds\"
5614 else
5615 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5616 fi
5617 fi
5618 fi
5619 save_ifs="$IFS"; IFS='~'
5620 for cmd in $cmds; do
5621 eval cmd=\"$cmd\"
5622 IFS="$save_ifs"
5623 $show "$cmd"
5624 $run eval "$cmd" || exit $?
5625 done
5626 IFS="$save_ifs"
5627 done
5628
5629 if test -n "$generated"; then
5630 $show "${rm}r$generated"
5631 $run ${rm}r$generated
5632 fi
5633
5634 # Now create the libtool archive.
5635 case $output in
5636 *.la)
5637 old_library=
5638 test "$build_old_libs" = yes && old_library="$libname.$libext"
5639 $show "creating $output"
5640
5641 # Preserve any variables that may affect compiler behavior
5642 for var in $variables_saved_for_relink; do
5643 if eval test -z \"\${$var+set}\"; then
5644 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5645 elif eval var_value=\$$var; test -z "$var_value"; then
5646 relink_command="$var=; export $var; $relink_command"
5647 else
5648 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5649 relink_command="$var=\"$var_value\"; export $var; $relink_command"
5650 fi
5651 done
5652 # Quote the link command for shipping.
5653 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5654 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5655 if test "$hardcode_automatic" = yes ; then
5656 relink_command=
5657 fi
5658
5659
5660 # Only create the output if not a dry run.
5661 if test -z "$run"; then
5662 for installed in no yes; do
5663 if test "$installed" = yes; then
5664 if test -z "$install_libdir"; then
5665 break
5666 fi
5667 output="$output_objdir/$outputname"i
5668 # Replace all uninstalled libtool libraries with the installed ones
5669 newdependency_libs=
5670 for deplib in $dependency_libs; do
5671 case $deplib in
5672 *.la)
5673 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
5674 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5675 if test -z "$libdir"; then
5676 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5677 exit $EXIT_FAILURE
5678 fi
5679 newdependency_libs="$newdependency_libs $libdir/$name"
5680 ;;
5681 *) newdependency_libs="$newdependency_libs $deplib" ;;
5682 esac
5683 done
5684 dependency_libs="$newdependency_libs"
5685 newdlfiles=
5686 for lib in $dlfiles; do
5687 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5688 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5689 if test -z "$libdir"; then
5690 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5691 exit $EXIT_FAILURE
5692 fi
5693 newdlfiles="$newdlfiles $libdir/$name"
5694 done
5695 dlfiles="$newdlfiles"
5696 newdlprefiles=
5697 for lib in $dlprefiles; do
5698 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5699 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5700 if test -z "$libdir"; then
5701 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5702 exit $EXIT_FAILURE
5703 fi
5704 newdlprefiles="$newdlprefiles $libdir/$name"
5705 done
5706 dlprefiles="$newdlprefiles"
5707 else
5708 newdlfiles=
5709 for lib in $dlfiles; do
5710 case $lib in
5711 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5712 *) abs=`pwd`"/$lib" ;;
5713 esac
5714 newdlfiles="$newdlfiles $abs"
5715 done
5716 dlfiles="$newdlfiles"
5717 newdlprefiles=
5718 for lib in $dlprefiles; do
5719 case $lib in
5720 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5721 *) abs=`pwd`"/$lib" ;;
5722 esac
5723 newdlprefiles="$newdlprefiles $abs"
5724 done
5725 dlprefiles="$newdlprefiles"
5726 fi
5727 $rm $output
5728 # place dlname in correct position for cygwin
5729 tdlname=$dlname
5730 case $host,$output,$installed,$module,$dlname in
5731 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5732 esac
5733 $echo > $output "\
5734 # $outputname - a libtool library file
5735 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5736 #
5737 # Please DO NOT delete this file!
5738 # It is necessary for linking the library.
5739
5740 # The name that we can dlopen(3).
5741 dlname='$tdlname'
5742
5743 # Names of this library.
5744 library_names='$library_names'
5745
5746 # The name of the static archive.
5747 old_library='$old_library'
5748
5749 # Libraries that this one depends upon.
5750 dependency_libs='$dependency_libs'
5751
5752 # Version information for $libname.
5753 current=$current
5754 age=$age
5755 revision=$revision
5756
5757 # Is this an already installed library?
5758 installed=$installed
5759
5760 # Should we warn about portability when linking against -modules?
5761 shouldnotlink=$module
5762
5763 # Files to dlopen/dlpreopen
5764 dlopen='$dlfiles'
5765 dlpreopen='$dlprefiles'
5766
5767 # Directory that this library needs to be installed in:
5768 libdir='$install_libdir'"
5769 if test "$installed" = no && test "$need_relink" = yes; then
5770 $echo >> $output "\
5771 relink_command=\"$relink_command\""
5772 fi
5773 done
5774 fi
5775
5776 # Do a symbolic link so that the libtool archive can be found in
5777 # LD_LIBRARY_PATH before the program is installed.
5778 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5779 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5780 ;;
5781 esac
5782 exit $EXIT_SUCCESS
5783 ;;
5784
5785 # libtool install mode
5786 install)
5787 modename="$modename: install"
5788
5789 # There may be an optional sh(1) argument at the beginning of
5790 # install_prog (especially on Windows NT).
5791 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5792 # Allow the use of GNU shtool's install command.
5793 $echo "X$nonopt" | grep shtool > /dev/null; then
5794 # Aesthetically quote it.
5795 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5796 case $arg in
5797 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5798 arg="\"$arg\""
5799 ;;
5800 esac
5801 install_prog="$arg "
5802 arg="$1"
5803 shift
5804 else
5805 install_prog=
5806 arg=$nonopt
5807 fi
5808
5809 # The real first argument should be the name of the installation program.
5810 # Aesthetically quote it.
5811 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5812 case $arg in
5813 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5814 arg="\"$arg\""
5815 ;;
5816 esac
5817 install_prog="$install_prog$arg"
5818
5819 # We need to accept at least all the BSD install flags.
5820 dest=
5821 files=
5822 opts=
5823 prev=
5824 install_type=
5825 isdir=no
5826 stripme=
5827 for arg
5828 do
5829 if test -n "$dest"; then
5830 files="$files $dest"
5831 dest=$arg
5832 continue
5833 fi
5834
5835 case $arg in
5836 -d) isdir=yes ;;
5837 -f)
5838 case " $install_prog " in
5839 *[\\\ /]cp\ *) ;;
5840 *) prev=$arg ;;
5841 esac
5842 ;;
5843 -g | -m | -o) prev=$arg ;;
5844 -s)
5845 stripme=" -s"
5846 continue
5847 ;;
5848 -*)
5849 ;;
5850 *)
5851 # If the previous option needed an argument, then skip it.
5852 if test -n "$prev"; then
5853 prev=
5854 else
5855 dest=$arg
5856 continue
5857 fi
5858 ;;
5859 esac
5860
5861 # Aesthetically quote the argument.
5862 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5863 case $arg in
5864 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5865 arg="\"$arg\""
5866 ;;
5867 esac
5868 install_prog="$install_prog $arg"
5869 done
5870
5871 if test -z "$install_prog"; then
5872 $echo "$modename: you must specify an install program" 1>&2
5873 $echo "$help" 1>&2
5874 exit $EXIT_FAILURE
5875 fi
5876
5877 if test -n "$prev"; then
5878 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5879 $echo "$help" 1>&2
5880 exit $EXIT_FAILURE
5881 fi
5882
5883 if test -z "$files"; then
5884 if test -z "$dest"; then
5885 $echo "$modename: no file or destination specified" 1>&2
5886 else
5887 $echo "$modename: you must specify a destination" 1>&2
5888 fi
5889 $echo "$help" 1>&2
5890 exit $EXIT_FAILURE
5891 fi
5892
5893 # Strip any trailing slash from the destination.
5894 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5895
5896 # Check to see that the destination is a directory.
5897 test -d "$dest" && isdir=yes
5898 if test "$isdir" = yes; then
5899 destdir="$dest"
5900 destname=
5901 else
5902 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5903 test "X$destdir" = "X$dest" && destdir=.
5904 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5905
5906 # Not a directory, so check to see that there is only one file specified.
5907 set dummy $files
5908 if test "$#" -gt 2; then
5909 $echo "$modename: \`$dest' is not a directory" 1>&2
5910 $echo "$help" 1>&2
5911 exit $EXIT_FAILURE
5912 fi
5913 fi
5914 case $destdir in
5915 [\\/]* | [A-Za-z]:[\\/]*) ;;
5916 *)
5917 for file in $files; do
5918 case $file in
5919 *.lo) ;;
5920 *)
5921 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5922 $echo "$help" 1>&2
5923 exit $EXIT_FAILURE
5924 ;;
5925 esac
5926 done
5927 ;;
5928 esac
5929
5930 # This variable tells wrapper scripts just to set variables rather
5931 # than running their programs.
5932 libtool_install_magic="$magic"
5933
5934 staticlibs=
5935 future_libdirs=
5936 current_libdirs=
5937 for file in $files; do
5938
5939 # Do each installation.
5940 case $file in
5941 *.$libext)
5942 # Do the static libraries later.
5943 staticlibs="$staticlibs $file"
5944 ;;
5945
5946 *.la)
5947 # Check to see that this really is a libtool archive.
5948 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5949 else
5950 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5951 $echo "$help" 1>&2
5952 exit $EXIT_FAILURE
5953 fi
5954
5955 library_names=
5956 old_library=
5957 relink_command=
5958 # If there is no directory component, then add one.
5959 case $file in
5960 */* | *\\*) . $file ;;
5961 *) . ./$file ;;
5962 esac
5963
5964 # Add the libdir to current_libdirs if it is the destination.
5965 if test "X$destdir" = "X$libdir"; then
5966 case "$current_libdirs " in
5967 *" $libdir "*) ;;
5968 *) current_libdirs="$current_libdirs $libdir" ;;
5969 esac
5970 else
5971 # Note the libdir as a future libdir.
5972 case "$future_libdirs " in
5973 *" $libdir "*) ;;
5974 *) future_libdirs="$future_libdirs $libdir" ;;
5975 esac
5976 fi
5977
5978 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
5979 test "X$dir" = "X$file/" && dir=
5980 dir="$dir$objdir"
5981
5982 if test -n "$relink_command"; then
5983 # Determine the prefix the user has applied to our future dir.
5984 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
5985
5986 # Don't allow the user to place us outside of our expected
5987 # location b/c this prevents finding dependent libraries that
5988 # are installed to the same prefix.
5989 # At present, this check doesn't affect windows .dll's that
5990 # are installed into $libdir/../bin (currently, that works fine)
5991 # but it's something to keep an eye on.
5992 if test "$inst_prefix_dir" = "$destdir"; then
5993 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5994 exit $EXIT_FAILURE
5995 fi
5996
5997 if test -n "$inst_prefix_dir"; then
5998 # Stick the inst_prefix_dir data into the link command.
5999 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6000 else
6001 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6002 fi
6003
6004 $echo "$modename: warning: relinking \`$file'" 1>&2
6005 $show "$relink_command"
6006 if $run eval "$relink_command"; then :
6007 else
6008 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6009 exit $EXIT_FAILURE
6010 fi
6011 fi
6012
6013 # See the names of the shared library.
6014 set dummy $library_names
6015 if test -n "$2"; then
6016 realname="$2"
6017 shift
6018 shift
6019
6020 srcname="$realname"
6021 test -n "$relink_command" && srcname="$realname"T
6022
6023 # Install the shared library and build the symlinks.
6024 $show "$install_prog $dir/$srcname $destdir/$realname"
6025 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
6026 if test -n "$stripme" && test -n "$striplib"; then
6027 $show "$striplib $destdir/$realname"
6028 $run eval "$striplib $destdir/$realname" || exit $?
6029 fi
6030
6031 if test "$#" -gt 0; then
6032 # Delete the old symlinks, and create new ones.
6033 # Try `ln -sf' first, because the `ln' binary might depend on
6034 # the symlink we replace! Solaris /bin/ln does not understand -f,
6035 # so we also need to try rm && ln -s.
6036 for linkname
6037 do
6038 if test "$linkname" != "$realname"; then
6039 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6040 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6041 fi
6042 done
6043 fi
6044
6045 # Do each command in the postinstall commands.
6046 lib="$destdir/$realname"
6047 cmds=$postinstall_cmds
6048 save_ifs="$IFS"; IFS='~'
6049 for cmd in $cmds; do
6050 IFS="$save_ifs"
6051 eval cmd=\"$cmd\"
6052 $show "$cmd"
6053 $run eval "$cmd" || {
6054 lt_exit=$?
6055
6056 # Restore the uninstalled library and exit
6057 if test "$mode" = relink; then
6058 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6059 fi
6060
6061 exit $lt_exit
6062 }
6063 done
6064 IFS="$save_ifs"
6065 fi
6066
6067 # Install the pseudo-library for information purposes.
6068 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6069 instname="$dir/$name"i
6070 $show "$install_prog $instname $destdir/$name"
6071 $run eval "$install_prog $instname $destdir/$name" || exit $?
6072
6073 # Maybe install the static library, too.
6074 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6075 ;;
6076
6077 *.lo)
6078 # Install (i.e. copy) a libtool object.
6079
6080 # Figure out destination file name, if it wasn't already specified.
6081 if test -n "$destname"; then
6082 destfile="$destdir/$destname"
6083 else
6084 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6085 destfile="$destdir/$destfile"
6086 fi
6087
6088 # Deduce the name of the destination old-style object file.
6089 case $destfile in
6090 *.lo)
6091 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6092 ;;
6093 *.$objext)
6094 staticdest="$destfile"
6095 destfile=
6096 ;;
6097 *)
6098 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6099 $echo "$help" 1>&2
6100 exit $EXIT_FAILURE
6101 ;;
6102 esac
6103
6104 # Install the libtool object if requested.
6105 if test -n "$destfile"; then
6106 $show "$install_prog $file $destfile"
6107 $run eval "$install_prog $file $destfile" || exit $?
6108 fi
6109
6110 # Install the old object if enabled.
6111 if test "$build_old_libs" = yes; then
6112 # Deduce the name of the old-style object file.
6113 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6114
6115 $show "$install_prog $staticobj $staticdest"
6116 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6117 fi
6118 exit $EXIT_SUCCESS
6119 ;;
6120
6121 *)
6122 # Figure out destination file name, if it wasn't already specified.
6123 if test -n "$destname"; then
6124 destfile="$destdir/$destname"
6125 else
6126 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6127 destfile="$destdir/$destfile"
6128 fi
6129
6130 # If the file is missing, and there is a .exe on the end, strip it
6131 # because it is most likely a libtool script we actually want to
6132 # install
6133 stripped_ext=""
6134 case $file in
6135 *.exe)
6136 if test ! -f "$file"; then
6137 file=`$echo $file|${SED} 's,.exe$,,'`
6138 stripped_ext=".exe"
6139 fi
6140 ;;
6141 esac
6142
6143 # Do a test to see if this is really a libtool program.
6144 case $host in
6145 *cygwin*|*mingw*)
6146 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6147 ;;
6148 *)
6149 wrapper=$file
6150 ;;
6151 esac
6152 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6153 notinst_deplibs=
6154 relink_command=
6155
6156 # Note that it is not necessary on cygwin/mingw to append a dot to
6157 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6158 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6159 # `FILE.' does not work on cygwin managed mounts.
6160 #
6161 # If there is no directory component, then add one.
6162 case $wrapper in
6163 */* | *\\*) . ${wrapper} ;;
6164 *) . ./${wrapper} ;;
6165 esac
6166
6167 # Check the variables that should have been set.
6168 if test -z "$notinst_deplibs"; then
6169 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6170 exit $EXIT_FAILURE
6171 fi
6172
6173 finalize=yes
6174 for lib in $notinst_deplibs; do
6175 # Check to see that each library is installed.
6176 libdir=
6177 if test -f "$lib"; then
6178 # If there is no directory component, then add one.
6179 case $lib in
6180 */* | *\\*) . $lib ;;
6181 *) . ./$lib ;;
6182 esac
6183 fi
6184 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6185 if test -n "$libdir" && test ! -f "$libfile"; then
6186 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6187 finalize=no
6188 fi
6189 done
6190
6191 relink_command=
6192 # Note that it is not necessary on cygwin/mingw to append a dot to
6193 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6194 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6195 # `FILE.' does not work on cygwin managed mounts.
6196 #
6197 # If there is no directory component, then add one.
6198 case $wrapper in
6199 */* | *\\*) . ${wrapper} ;;
6200 *) . ./${wrapper} ;;
6201 esac
6202
6203 outputname=
6204 if test "$fast_install" = no && test -n "$relink_command"; then
6205 if test "$finalize" = yes && test -z "$run"; then
6206 tmpdir=`func_mktempdir`
6207 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6208 outputname="$tmpdir/$file"
6209 # Replace the output file specification.
6210 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6211
6212 $show "$relink_command"
6213 if $run eval "$relink_command"; then :
6214 else
6215 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6216 ${rm}r "$tmpdir"
6217 continue
6218 fi
6219 file="$outputname"
6220 else
6221 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6222 fi
6223 else
6224 # Install the binary that we compiled earlier.
6225 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6226 fi
6227 fi
6228
6229 # remove .exe since cygwin /usr/bin/install will append another
6230 # one anyway
6231 case $install_prog,$host in
6232 */usr/bin/install*,*cygwin*)
6233 case $file:$destfile in
6234 *.exe:*.exe)
6235 # this is ok
6236 ;;
6237 *.exe:*)
6238 destfile=$destfile.exe
6239 ;;
6240 *:*.exe)
6241 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6242 ;;
6243 esac
6244 ;;
6245 esac
6246 $show "$install_prog$stripme $file $destfile"
6247 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6248 test -n "$outputname" && ${rm}r "$tmpdir"
6249 ;;
6250 esac
6251 done
6252
6253 for file in $staticlibs; do
6254 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6255
6256 # Set up the ranlib parameters.
6257 oldlib="$destdir/$name"
6258
6259 $show "$install_prog $file $oldlib"
6260 $run eval "$install_prog \$file \$oldlib" || exit $?
6261
6262 if test -n "$stripme" && test -n "$old_striplib"; then
6263 $show "$old_striplib $oldlib"
6264 $run eval "$old_striplib $oldlib" || exit $?
6265 fi
6266
6267 # Do each command in the postinstall commands.
6268 cmds=$old_postinstall_cmds
6269 save_ifs="$IFS"; IFS='~'
6270 for cmd in $cmds; do
6271 IFS="$save_ifs"
6272 eval cmd=\"$cmd\"
6273 $show "$cmd"
6274 $run eval "$cmd" || exit $?
6275 done
6276 IFS="$save_ifs"
6277 done
6278
6279 if test -n "$future_libdirs"; then
6280 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6281 fi
6282
6283 if test -n "$current_libdirs"; then
6284 # Maybe just do a dry run.
6285 test -n "$run" && current_libdirs=" -n$current_libdirs"
6286 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6287 else
6288 exit $EXIT_SUCCESS
6289 fi
6290 ;;
6291
6292 # libtool finish mode
6293 finish)
6294 modename="$modename: finish"
6295 libdirs="$nonopt"
6296 admincmds=
6297
6298 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6299 for dir
6300 do
6301 libdirs="$libdirs $dir"
6302 done
6303
6304 for libdir in $libdirs; do
6305 if test -n "$finish_cmds"; then
6306 # Do each command in the finish commands.
6307 cmds=$finish_cmds
6308 save_ifs="$IFS"; IFS='~'
6309 for cmd in $cmds; do
6310 IFS="$save_ifs"
6311 eval cmd=\"$cmd\"
6312 $show "$cmd"
6313 $run eval "$cmd" || admincmds="$admincmds
6314 $cmd"
6315 done
6316 IFS="$save_ifs"
6317 fi
6318 if test -n "$finish_eval"; then
6319 # Do the single finish_eval.
6320 eval cmds=\"$finish_eval\"
6321 $run eval "$cmds" || admincmds="$admincmds
6322 $cmds"
6323 fi
6324 done
6325 fi
6326
6327 # Exit here if they wanted silent mode.
6328 test "$show" = : && exit $EXIT_SUCCESS
6329
6330 $echo "X----------------------------------------------------------------------" | $Xsed
6331 $echo "Libraries have been installed in:"
6332 for libdir in $libdirs; do
6333 $echo " $libdir"
6334 done
6335 $echo
6336 $echo "If you ever happen to want to link against installed libraries"
6337 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6338 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6339 $echo "flag during linking and do at least one of the following:"
6340 if test -n "$shlibpath_var"; then
6341 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6342 $echo " during execution"
6343 fi
6344 if test -n "$runpath_var"; then
6345 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6346 $echo " during linking"
6347 fi
6348 if test -n "$hardcode_libdir_flag_spec"; then
6349 libdir=LIBDIR
6350 eval flag=\"$hardcode_libdir_flag_spec\"
6351
6352 $echo " - use the \`$flag' linker flag"
6353 fi
6354 if test -n "$admincmds"; then
6355 $echo " - have your system administrator run these commands:$admincmds"
6356 fi
6357 if test -f /etc/ld.so.conf; then
6358 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6359 fi
6360 $echo
6361 $echo "See any operating system documentation about shared libraries for"
6362 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6363 $echo "X----------------------------------------------------------------------" | $Xsed
6364 exit $EXIT_SUCCESS
6365 ;;
6366
6367 # libtool execute mode
6368 execute)
6369 modename="$modename: execute"
6370
6371 # The first argument is the command name.
6372 cmd="$nonopt"
6373 if test -z "$cmd"; then
6374 $echo "$modename: you must specify a COMMAND" 1>&2
6375 $echo "$help"
6376 exit $EXIT_FAILURE
6377 fi
6378
6379 # Handle -dlopen flags immediately.
6380 for file in $execute_dlfiles; do
6381 if test ! -f "$file"; then
6382 $echo "$modename: \`$file' is not a file" 1>&2
6383 $echo "$help" 1>&2
6384 exit $EXIT_FAILURE
6385 fi
6386
6387 dir=
6388 case $file in
6389 *.la)
6390 # Check to see that this really is a libtool archive.
6391 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6392 else
6393 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6394 $echo "$help" 1>&2
6395 exit $EXIT_FAILURE
6396 fi
6397
6398 # Read the libtool library.
6399 dlname=
6400 library_names=
6401
6402 # If there is no directory component, then add one.
6403 case $file in
6404 */* | *\\*) . $file ;;
6405 *) . ./$file ;;
6406 esac
6407
6408 # Skip this library if it cannot be dlopened.
6409 if test -z "$dlname"; then
6410 # Warn if it was a shared library.
6411 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6412 continue
6413 fi
6414
6415 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6416 test "X$dir" = "X$file" && dir=.
6417
6418 if test -f "$dir/$objdir/$dlname"; then
6419 dir="$dir/$objdir"
6420 else
6421 if test ! -f "$dir/$dlname"; then
6422 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6423 exit $EXIT_FAILURE
6424 fi
6425 fi
6426 ;;
6427
6428 *.lo)
6429 # Just add the directory containing the .lo file.
6430 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6431 test "X$dir" = "X$file" && dir=.
6432 ;;
6433
6434 *)
6435 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6436 continue
6437 ;;
6438 esac
6439
6440 # Get the absolute pathname.
6441 absdir=`cd "$dir" && pwd`
6442 test -n "$absdir" && dir="$absdir"
6443
6444 # Now add the directory to shlibpath_var.
6445 if eval "test -z \"\$$shlibpath_var\""; then
6446 eval "$shlibpath_var=\"\$dir\""
6447 else
6448 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6449 fi
6450 done
6451
6452 # This variable tells wrapper scripts just to set shlibpath_var
6453 # rather than running their programs.
6454 libtool_execute_magic="$magic"
6455
6456 # Check if any of the arguments is a wrapper script.
6457 args=
6458 for file
6459 do
6460 case $file in
6461 -*) ;;
6462 *)
6463 # Do a test to see if this is really a libtool program.
6464 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6465 # If there is no directory component, then add one.
6466 case $file in
6467 */* | *\\*) . $file ;;
6468 *) . ./$file ;;
6469 esac
6470
6471 # Transform arg to wrapped name.
6472 file="$progdir/$program"
6473 fi
6474 ;;
6475 esac
6476 # Quote arguments (to preserve shell metacharacters).
6477 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6478 args="$args \"$file\""
6479 done
6480
6481 if test -z "$run"; then
6482 if test -n "$shlibpath_var"; then
6483 # Export the shlibpath_var.
6484 eval "export $shlibpath_var"
6485 fi
6486
6487 # Restore saved environment variables
6488 for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6489 do
6490 eval "if test \"\${save_$lt_var+set}\" = set; then
6491 $lt_var=\$save_$lt_var; export $lt_var
6492 fi"
6493 done
6494
6495 # Now prepare to actually exec the command.
6496 exec_cmd="\$cmd$args"
6497 else
6498 # Display what would be done.
6499 if test -n "$shlibpath_var"; then
6500 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6501 $echo "export $shlibpath_var"
6502 fi
6503 $echo "$cmd$args"
6504 exit $EXIT_SUCCESS
6505 fi
6506 ;;
6507
6508 # libtool clean and uninstall mode
6509 clean | uninstall)
6510 modename="$modename: $mode"
6511 rm="$nonopt"
6512 files=
6513 rmforce=
6514 exit_status=0
6515
6516 # This variable tells wrapper scripts just to set variables rather
6517 # than running their programs.
6518 libtool_install_magic="$magic"
6519
6520 for arg
6521 do
6522 case $arg in
6523 -f) rm="$rm $arg"; rmforce=yes ;;
6524 -*) rm="$rm $arg" ;;
6525 *) files="$files $arg" ;;
6526 esac
6527 done
6528
6529 if test -z "$rm"; then
6530 $echo "$modename: you must specify an RM program" 1>&2
6531 $echo "$help" 1>&2
6532 exit $EXIT_FAILURE
6533 fi
6534
6535 rmdirs=
6536
6537 origobjdir="$objdir"
6538 for file in $files; do
6539 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6540 if test "X$dir" = "X$file"; then
6541 dir=.
6542 objdir="$origobjdir"
6543 else
6544 objdir="$dir/$origobjdir"
6545 fi
6546 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6547 test "$mode" = uninstall && objdir="$dir"
6548
6549 # Remember objdir for removal later, being careful to avoid duplicates
6550 if test "$mode" = clean; then
6551 case " $rmdirs " in
6552 *" $objdir "*) ;;
6553 *) rmdirs="$rmdirs $objdir" ;;
6554 esac
6555 fi
6556
6557 # Don't error if the file doesn't exist and rm -f was used.
6558 if (test -L "$file") >/dev/null 2>&1 \
6559 || (test -h "$file") >/dev/null 2>&1 \
6560 || test -f "$file"; then
6561 :
6562 elif test -d "$file"; then
6563 exit_status=1
6564 continue
6565 elif test "$rmforce" = yes; then
6566 continue
6567 fi
6568
6569 rmfiles="$file"
6570
6571 case $name in
6572 *.la)
6573 # Possibly a libtool archive, so verify it.
6574 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6575 . $dir/$name
6576
6577 # Delete the libtool libraries and symlinks.
6578 for n in $library_names; do
6579 rmfiles="$rmfiles $objdir/$n"
6580 done
6581 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6582
6583 case "$mode" in
6584 clean)
6585 case " $library_names " in
6586 # " " in the beginning catches empty $dlname
6587 *" $dlname "*) ;;
6588 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6589 esac
6590 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6591 ;;
6592 uninstall)
6593 if test -n "$library_names"; then
6594 # Do each command in the postuninstall commands.
6595 cmds=$postuninstall_cmds
6596 save_ifs="$IFS"; IFS='~'
6597 for cmd in $cmds; do
6598 IFS="$save_ifs"
6599 eval cmd=\"$cmd\"
6600 $show "$cmd"
6601 $run eval "$cmd"
6602 if test "$?" -ne 0 && test "$rmforce" != yes; then
6603 exit_status=1
6604 fi
6605 done
6606 IFS="$save_ifs"
6607 fi
6608
6609 if test -n "$old_library"; then
6610 # Do each command in the old_postuninstall commands.
6611 cmds=$old_postuninstall_cmds
6612 save_ifs="$IFS"; IFS='~'
6613 for cmd in $cmds; do
6614 IFS="$save_ifs"
6615 eval cmd=\"$cmd\"
6616 $show "$cmd"
6617 $run eval "$cmd"
6618 if test "$?" -ne 0 && test "$rmforce" != yes; then
6619 exit_status=1
6620 fi
6621 done
6622 IFS="$save_ifs"
6623 fi
6624 # FIXME: should reinstall the best remaining shared library.
6625 ;;
6626 esac
6627 fi
6628 ;;
6629
6630 *.lo)
6631 # Possibly a libtool object, so verify it.
6632 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6633
6634 # Read the .lo file
6635 . $dir/$name
6636
6637 # Add PIC object to the list of files to remove.
6638 if test -n "$pic_object" \
6639 && test "$pic_object" != none; then
6640 rmfiles="$rmfiles $dir/$pic_object"
6641 fi
6642
6643 # Add non-PIC object to the list of files to remove.
6644 if test -n "$non_pic_object" \
6645 && test "$non_pic_object" != none; then
6646 rmfiles="$rmfiles $dir/$non_pic_object"
6647 fi
6648 fi
6649 ;;
6650
6651 *)
6652 if test "$mode" = clean ; then
6653 noexename=$name
6654 case $file in
6655 *.exe)
6656 file=`$echo $file|${SED} 's,.exe$,,'`
6657 noexename=`$echo $name|${SED} 's,.exe$,,'`
6658 # $file with .exe has already been added to rmfiles,
6659 # add $file without .exe
6660 rmfiles="$rmfiles $file"
6661 ;;
6662 esac
6663 # Do a test to see if this is a libtool program.
6664 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6665 relink_command=
6666 . $dir/$noexename
6667
6668 # note $name still contains .exe if it was in $file originally
6669 # as does the version of $file that was added into $rmfiles
6670 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
6671 if test "$fast_install" = yes && test -n "$relink_command"; then
6672 rmfiles="$rmfiles $objdir/lt-$name"
6673 fi
6674 if test "X$noexename" != "X$name" ; then
6675 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
6676 fi
6677 fi
6678 fi
6679 ;;
6680 esac
6681 $show "$rm $rmfiles"
6682 $run $rm $rmfiles || exit_status=1
6683 done
6684 objdir="$origobjdir"
6685
6686 # Try to remove the ${objdir}s in the directories where we deleted files
6687 for dir in $rmdirs; do
6688 if test -d "$dir"; then
6689 $show "rmdir $dir"
6690 $run rmdir $dir >/dev/null 2>&1
6691 fi
6692 done
6693
6694 exit $exit_status
6695 ;;
6696
6697 "")
6698 $echo "$modename: you must specify a MODE" 1>&2
6699 $echo "$generic_help" 1>&2
6700 exit $EXIT_FAILURE
6701 ;;
6702 esac
6703
6704 if test -z "$exec_cmd"; then
6705 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6706 $echo "$generic_help" 1>&2
6707 exit $EXIT_FAILURE
6708 fi
6709 fi # test -z "$show_help"
6710
6711 if test -n "$exec_cmd"; then
6712 eval exec $exec_cmd
6713 exit $EXIT_FAILURE
6714 fi
6715
6716 # We need to display help for each of the modes.
6717 case $mode in
6718 "") $echo \
6719 "Usage: $modename [OPTION]... [MODE-ARG]...
6720
6721 Provide generalized library-building support services.
6722
6723 --config show all configuration variables
6724 --debug enable verbose shell tracing
6725 -n, --dry-run display commands without modifying any files
6726 --features display basic configuration information and exit
6727 --finish same as \`--mode=finish'
6728 --help display this help message and exit
6729 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6730 --quiet same as \`--silent'
6731 --silent don't print informational messages
6732 --tag=TAG use configuration variables from tag TAG
6733 --version print version information
6734
6735 MODE must be one of the following:
6736
6737 clean remove files from the build directory
6738 compile compile a source file into a libtool object
6739 execute automatically set library path, then run a program
6740 finish complete the installation of libtool libraries
6741 install install libraries or executables
6742 link create a library or an executable
6743 uninstall remove libraries from an installed directory
6744
6745 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6746 a more detailed description of MODE.
6747
6748 Report bugs to <bug-libtool@gnu.org>."
6749 exit $EXIT_SUCCESS
6750 ;;
6751
6752 clean)
6753 $echo \
6754 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6755
6756 Remove files from the build directory.
6757
6758 RM is the name of the program to use to delete files associated with each FILE
6759 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6760 to RM.
6761
6762 If FILE is a libtool library, object or program, all the files associated
6763 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6764 ;;
6765
6766 compile)
6767 $echo \
6768 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6769
6770 Compile a source file into a libtool library object.
6771
6772 This mode accepts the following additional options:
6773
6774 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6775 -prefer-pic try to building PIC objects only
6776 -prefer-non-pic try to building non-PIC objects only
6777 -static always build a \`.o' file suitable for static linking
6778
6779 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6780 from the given SOURCEFILE.
6781
6782 The output file name is determined by removing the directory component from
6783 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6784 library object suffix, \`.lo'."
6785 ;;
6786
6787 execute)
6788 $echo \
6789 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6790
6791 Automatically set library path, then run a program.
6792
6793 This mode accepts the following additional options:
6794
6795 -dlopen FILE add the directory containing FILE to the library path
6796
6797 This mode sets the library path environment variable according to \`-dlopen'
6798 flags.
6799
6800 If any of the ARGS are libtool executable wrappers, then they are translated
6801 into their corresponding uninstalled binary, and any of their required library
6802 directories are added to the library path.
6803
6804 Then, COMMAND is executed, with ARGS as arguments."
6805 ;;
6806
6807 finish)
6808 $echo \
6809 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6810
6811 Complete the installation of libtool libraries.
6812
6813 Each LIBDIR is a directory that contains libtool libraries.
6814
6815 The commands that this mode executes may require superuser privileges. Use
6816 the \`--dry-run' option if you just want to see what would be executed."
6817 ;;
6818
6819 install)
6820 $echo \
6821 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6822
6823 Install executables or libraries.
6824
6825 INSTALL-COMMAND is the installation command. The first component should be
6826 either the \`install' or \`cp' program.
6827
6828 The rest of the components are interpreted as arguments to that command (only
6829 BSD-compatible install options are recognized)."
6830 ;;
6831
6832 link)
6833 $echo \
6834 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6835
6836 Link object files or libraries together to form another library, or to
6837 create an executable program.
6838
6839 LINK-COMMAND is a command using the C compiler that you would use to create
6840 a program from several object files.
6841
6842 The following components of LINK-COMMAND are treated specially:
6843
6844 -all-static do not do any dynamic linking at all
6845 -avoid-version do not add a version suffix if possible
6846 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6847 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6848 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6849 -export-symbols SYMFILE
6850 try to export only the symbols listed in SYMFILE
6851 -export-symbols-regex REGEX
6852 try to export only the symbols matching REGEX
6853 -LLIBDIR search LIBDIR for required installed libraries
6854 -lNAME OUTPUT-FILE requires the installed library libNAME
6855 -module build a library that can dlopened
6856 -no-fast-install disable the fast-install mode
6857 -no-install link a not-installable executable
6858 -no-undefined declare that a library does not refer to external symbols
6859 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6860 -objectlist FILE Use a list of object files found in FILE to specify objects
6861 -precious-files-regex REGEX
6862 don't remove output files matching REGEX
6863 -release RELEASE specify package release information
6864 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6865 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6866 -static do not do any dynamic linking of uninstalled libtool libraries
6867 -static-libtool-libs
6868 do not do any dynamic linking of libtool libraries
6869 -version-info CURRENT[:REVISION[:AGE]]
6870 specify library version info [each variable defaults to 0]
6871
6872 All other options (arguments beginning with \`-') are ignored.
6873
6874 Every other argument is treated as a filename. Files ending in \`.la' are
6875 treated as uninstalled libtool libraries, other files are standard or library
6876 object files.
6877
6878 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6879 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6880 required, except when creating a convenience library.
6881
6882 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6883 using \`ar' and \`ranlib', or on Windows using \`lib'.
6884
6885 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6886 is created, otherwise an executable program is created."
6887 ;;
6888
6889 uninstall)
6890 $echo \
6891 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6892
6893 Remove libraries from an installation directory.
6894
6895 RM is the name of the program to use to delete files associated with each FILE
6896 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6897 to RM.
6898
6899 If FILE is a libtool library, all the files associated with it are deleted.
6900 Otherwise, only FILE itself is deleted using RM."
6901 ;;
6902
6903 *)
6904 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6905 $echo "$help" 1>&2
6906 exit $EXIT_FAILURE
6907 ;;
6908 esac
6909
6910 $echo
6911 $echo "Try \`$modename --help' for more information about other modes."
6912
6913 exit $?
6914
6915 # The TAGs below are defined such that we never get into a situation
6916 # in which we disable both kinds of libraries. Given conflicting
6917 # choices, we go for a static library, that is the most portable,
6918 # since we can't tell whether shared libraries were disabled because
6919 # the user asked for that or because the platform doesn't support
6920 # them. This is particularly important on AIX, because we don't
6921 # support having both static and shared libraries enabled at the same
6922 # time on that platform, so we default to a shared-only configuration.
6923 # If a disable-shared tag is given, we'll fallback to a static-only
6924 # configuration. But we'll never go from static-only to shared-only.
6925
6926 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6927 disable_libs=shared
6928 # ### END LIBTOOL TAG CONFIG: disable-shared
6929
6930 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6931 disable_libs=static
6932 # ### END LIBTOOL TAG CONFIG: disable-static
6933
6934 # Local Variables:
6935 # mode:shell-script
6936 # sh-indentation:2
6937 # End:
+0
-381
current/m4/gettext.m4 less more
0 # gettext.m4 serial 60 (gettext-0.17)
1 dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Authors:
16 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
17 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
18
19 dnl Macro to add for using GNU gettext.
20
21 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
22 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
23 dnl default (if it is not specified or empty) is 'no-libtool'.
24 dnl INTLSYMBOL should be 'external' for packages with no intl directory,
25 dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
26 dnl If INTLSYMBOL is 'use-libtool', then a libtool library
27 dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
28 dnl depending on --{enable,disable}-{shared,static} and on the presence of
29 dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
30 dnl $(top_builddir)/intl/libintl.a will be created.
31 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
32 dnl implementations (in libc or libintl) without the ngettext() function
33 dnl will be ignored. If NEEDSYMBOL is specified and is
34 dnl 'need-formatstring-macros', then GNU gettext implementations that don't
35 dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
36 dnl INTLDIR is used to find the intl libraries. If empty,
37 dnl the value `$(top_builddir)/intl/' is used.
38 dnl
39 dnl The result of the configuration is one of three cases:
40 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
41 dnl and used.
42 dnl Catalog format: GNU --> install in $(datadir)
43 dnl Catalog extension: .mo after installation, .gmo in source tree
44 dnl 2) GNU gettext has been found in the system's C library.
45 dnl Catalog format: GNU --> install in $(datadir)
46 dnl Catalog extension: .mo after installation, .gmo in source tree
47 dnl 3) No internationalization, always use English msgid.
48 dnl Catalog format: none
49 dnl Catalog extension: none
50 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
51 dnl The use of .gmo is historical (it was needed to avoid overwriting the
52 dnl GNU format catalogs when building on a platform with an X/Open gettext),
53 dnl but we keep it in order not to force irrelevant filename changes on the
54 dnl maintainers.
55 dnl
56 AC_DEFUN([AM_GNU_GETTEXT],
57 [
58 dnl Argument checking.
59 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
60 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
61 ])])])])])
62 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
63 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
64 ])])])])
65 define([gt_included_intl],
66 ifelse([$1], [external],
67 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
68 [yes]))
69 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
70 gt_NEEDS_INIT
71 AM_GNU_GETTEXT_NEED([$2])
72
73 AC_REQUIRE([AM_PO_SUBDIRS])dnl
74 ifelse(gt_included_intl, yes, [
75 AC_REQUIRE([AM_INTL_SUBDIR])dnl
76 ])
77
78 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
79 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
80 AC_REQUIRE([AC_LIB_RPATH])
81
82 dnl Sometimes libintl requires libiconv, so first search for libiconv.
83 dnl Ideally we would do this search only after the
84 dnl if test "$USE_NLS" = "yes"; then
85 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
86 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
87 dnl the configure script would need to contain the same shell code
88 dnl again, outside any 'if'. There are two solutions:
89 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
90 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
91 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
92 dnl documented, we avoid it.
93 ifelse(gt_included_intl, yes, , [
94 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
95 ])
96
97 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
98 gt_INTL_MACOSX
99
100 dnl Set USE_NLS.
101 AC_REQUIRE([AM_NLS])
102
103 ifelse(gt_included_intl, yes, [
104 BUILD_INCLUDED_LIBINTL=no
105 USE_INCLUDED_LIBINTL=no
106 ])
107 LIBINTL=
108 LTLIBINTL=
109 POSUB=
110
111 dnl Add a version number to the cache macros.
112 case " $gt_needs " in
113 *" need-formatstring-macros "*) gt_api_version=3 ;;
114 *" need-ngettext "*) gt_api_version=2 ;;
115 *) gt_api_version=1 ;;
116 esac
117 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
118 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
119
120 dnl If we use NLS figure out what method
121 if test "$USE_NLS" = "yes"; then
122 gt_use_preinstalled_gnugettext=no
123 ifelse(gt_included_intl, yes, [
124 AC_MSG_CHECKING([whether included gettext is requested])
125 AC_ARG_WITH(included-gettext,
126 [ --with-included-gettext use the GNU gettext library included here],
127 nls_cv_force_use_gnu_gettext=$withval,
128 nls_cv_force_use_gnu_gettext=no)
129 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
130
131 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
133 ])
134 dnl User does not insist on using GNU NLS library. Figure out what
135 dnl to use. If GNU gettext is available we use this. Else we have
136 dnl to fall back to GNU NLS library.
137
138 if test $gt_api_version -ge 3; then
139 gt_revision_test_code='
140 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
141 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
142 #endif
143 changequote(,)dnl
144 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
145 changequote([,])dnl
146 '
147 else
148 gt_revision_test_code=
149 fi
150 if test $gt_api_version -ge 2; then
151 gt_expression_test_code=' + * ngettext ("", "", 0)'
152 else
153 gt_expression_test_code=
154 fi
155
156 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
157 [AC_TRY_LINK([#include <libintl.h>
158 $gt_revision_test_code
159 extern int _nl_msg_cat_cntr;
160 extern int *_nl_domain_bindings;],
161 [bindtextdomain ("", "");
162 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
163 [eval "$gt_func_gnugettext_libc=yes"],
164 [eval "$gt_func_gnugettext_libc=no"])])
165
166 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
167 dnl Sometimes libintl requires libiconv, so first search for libiconv.
168 ifelse(gt_included_intl, yes, , [
169 AM_ICONV_LINK
170 ])
171 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
172 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
173 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
174 dnl even if libiconv doesn't exist.
175 AC_LIB_LINKFLAGS_BODY([intl])
176 AC_CACHE_CHECK([for GNU gettext in libintl],
177 [$gt_func_gnugettext_libintl],
178 [gt_save_CPPFLAGS="$CPPFLAGS"
179 CPPFLAGS="$CPPFLAGS $INCINTL"
180 gt_save_LIBS="$LIBS"
181 LIBS="$LIBS $LIBINTL"
182 dnl Now see whether libintl exists and does not depend on libiconv.
183 AC_TRY_LINK([#include <libintl.h>
184 $gt_revision_test_code
185 extern int _nl_msg_cat_cntr;
186 extern
187 #ifdef __cplusplus
188 "C"
189 #endif
190 const char *_nl_expand_alias (const char *);],
191 [bindtextdomain ("", "");
192 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
193 [eval "$gt_func_gnugettext_libintl=yes"],
194 [eval "$gt_func_gnugettext_libintl=no"])
195 dnl Now see whether libintl exists and depends on libiconv.
196 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
197 LIBS="$LIBS $LIBICONV"
198 AC_TRY_LINK([#include <libintl.h>
199 $gt_revision_test_code
200 extern int _nl_msg_cat_cntr;
201 extern
202 #ifdef __cplusplus
203 "C"
204 #endif
205 const char *_nl_expand_alias (const char *);],
206 [bindtextdomain ("", "");
207 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
208 [LIBINTL="$LIBINTL $LIBICONV"
209 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
210 eval "$gt_func_gnugettext_libintl=yes"
211 ])
212 fi
213 CPPFLAGS="$gt_save_CPPFLAGS"
214 LIBS="$gt_save_LIBS"])
215 fi
216
217 dnl If an already present or preinstalled GNU gettext() is found,
218 dnl use it. But if this macro is used in GNU gettext, and GNU
219 dnl gettext is already preinstalled in libintl, we update this
220 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
221 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
222 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
223 && test "$PACKAGE" != gettext-runtime \
224 && test "$PACKAGE" != gettext-tools; }; then
225 gt_use_preinstalled_gnugettext=yes
226 else
227 dnl Reset the values set by searching for libintl.
228 LIBINTL=
229 LTLIBINTL=
230 INCINTL=
231 fi
232
233 ifelse(gt_included_intl, yes, [
234 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
235 dnl GNU gettext is not found in the C library.
236 dnl Fall back on included GNU gettext library.
237 nls_cv_use_gnu_gettext=yes
238 fi
239 fi
240
241 if test "$nls_cv_use_gnu_gettext" = "yes"; then
242 dnl Mark actions used to generate GNU NLS library.
243 BUILD_INCLUDED_LIBINTL=yes
244 USE_INCLUDED_LIBINTL=yes
245 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
246 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
247 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
248 fi
249
250 CATOBJEXT=
251 if test "$gt_use_preinstalled_gnugettext" = "yes" \
252 || test "$nls_cv_use_gnu_gettext" = "yes"; then
253 dnl Mark actions to use GNU gettext tools.
254 CATOBJEXT=.gmo
255 fi
256 ])
257
258 if test -n "$INTL_MACOSX_LIBS"; then
259 if test "$gt_use_preinstalled_gnugettext" = "yes" \
260 || test "$nls_cv_use_gnu_gettext" = "yes"; then
261 dnl Some extra flags are needed during linking.
262 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
263 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
264 fi
265 fi
266
267 if test "$gt_use_preinstalled_gnugettext" = "yes" \
268 || test "$nls_cv_use_gnu_gettext" = "yes"; then
269 AC_DEFINE(ENABLE_NLS, 1,
270 [Define to 1 if translation of program messages to the user's native language
271 is requested.])
272 else
273 USE_NLS=no
274 fi
275 fi
276
277 AC_MSG_CHECKING([whether to use NLS])
278 AC_MSG_RESULT([$USE_NLS])
279 if test "$USE_NLS" = "yes"; then
280 AC_MSG_CHECKING([where the gettext function comes from])
281 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
282 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
283 gt_source="external libintl"
284 else
285 gt_source="libc"
286 fi
287 else
288 gt_source="included intl directory"
289 fi
290 AC_MSG_RESULT([$gt_source])
291 fi
292
293 if test "$USE_NLS" = "yes"; then
294
295 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
296 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
297 AC_MSG_CHECKING([how to link with libintl])
298 AC_MSG_RESULT([$LIBINTL])
299 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
300 fi
301
302 dnl For backward compatibility. Some packages may be using this.
303 AC_DEFINE(HAVE_GETTEXT, 1,
304 [Define if the GNU gettext() function is already present or preinstalled.])
305 AC_DEFINE(HAVE_DCGETTEXT, 1,
306 [Define if the GNU dcgettext() function is already present or preinstalled.])
307 fi
308
309 dnl We need to process the po/ directory.
310 POSUB=po
311 fi
312
313 ifelse(gt_included_intl, yes, [
314 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
315 dnl to 'yes' because some of the testsuite requires it.
316 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
317 BUILD_INCLUDED_LIBINTL=yes
318 fi
319
320 dnl Make all variables we use known to autoconf.
321 AC_SUBST(BUILD_INCLUDED_LIBINTL)
322 AC_SUBST(USE_INCLUDED_LIBINTL)
323 AC_SUBST(CATOBJEXT)
324
325 dnl For backward compatibility. Some configure.ins may be using this.
326 nls_cv_header_intl=
327 nls_cv_header_libgt=
328
329 dnl For backward compatibility. Some Makefiles may be using this.
330 DATADIRNAME=share
331 AC_SUBST(DATADIRNAME)
332
333 dnl For backward compatibility. Some Makefiles may be using this.
334 INSTOBJEXT=.mo
335 AC_SUBST(INSTOBJEXT)
336
337 dnl For backward compatibility. Some Makefiles may be using this.
338 GENCAT=gencat
339 AC_SUBST(GENCAT)
340
341 dnl For backward compatibility. Some Makefiles may be using this.
342 INTLOBJS=
343 if test "$USE_INCLUDED_LIBINTL" = yes; then
344 INTLOBJS="\$(GETTOBJS)"
345 fi
346 AC_SUBST(INTLOBJS)
347
348 dnl Enable libtool support if the surrounding package wishes it.
349 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
350 AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
351 ])
352
353 dnl For backward compatibility. Some Makefiles may be using this.
354 INTLLIBS="$LIBINTL"
355 AC_SUBST(INTLLIBS)
356
357 dnl Make all documented variables known to autoconf.
358 AC_SUBST(LIBINTL)
359 AC_SUBST(LTLIBINTL)
360 AC_SUBST(POSUB)
361 ])
362
363
364 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
365 m4_define([gt_NEEDS_INIT],
366 [
367 m4_divert_text([DEFAULTS], [gt_needs=])
368 m4_define([gt_NEEDS_INIT], [])
369 ])
370
371
372 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
373 AC_DEFUN([AM_GNU_GETTEXT_NEED],
374 [
375 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
376 ])
377
378
379 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
380 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
+0
-180
current/m4/iconv.m4 less more
0 # iconv.m4 serial AM6 (gettext-0.17)
1 dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl From Bruno Haible.
7
8 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
9 [
10 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
11 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
12 AC_REQUIRE([AC_LIB_RPATH])
13
14 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
15 dnl accordingly.
16 AC_LIB_LINKFLAGS_BODY([iconv])
17 ])
18
19 AC_DEFUN([AM_ICONV_LINK],
20 [
21 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
22 dnl those with the standalone portable GNU libiconv installed).
23 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
24
25 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
26 dnl accordingly.
27 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
28
29 dnl Add $INCICONV to CPPFLAGS before performing the following checks,
30 dnl because if the user has installed libiconv and not disabled its use
31 dnl via --without-libiconv-prefix, he wants to use it. The first
32 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
33 am_save_CPPFLAGS="$CPPFLAGS"
34 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
35
36 AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [
37 am_cv_func_iconv="no, consider installing GNU libiconv"
38 am_cv_lib_iconv=no
39 AC_TRY_LINK([#include <stdlib.h>
40 #include <iconv.h>],
41 [iconv_t cd = iconv_open("","");
42 iconv(cd,NULL,NULL,NULL,NULL);
43 iconv_close(cd);],
44 am_cv_func_iconv=yes)
45 if test "$am_cv_func_iconv" != yes; then
46 am_save_LIBS="$LIBS"
47 LIBS="$LIBS $LIBICONV"
48 AC_TRY_LINK([#include <stdlib.h>
49 #include <iconv.h>],
50 [iconv_t cd = iconv_open("","");
51 iconv(cd,NULL,NULL,NULL,NULL);
52 iconv_close(cd);],
53 am_cv_lib_iconv=yes
54 am_cv_func_iconv=yes)
55 LIBS="$am_save_LIBS"
56 fi
57 ])
58 if test "$am_cv_func_iconv" = yes; then
59 AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [
60 dnl This tests against bugs in AIX 5.1 and HP-UX 11.11.
61 am_save_LIBS="$LIBS"
62 if test $am_cv_lib_iconv = yes; then
63 LIBS="$LIBS $LIBICONV"
64 fi
65 AC_TRY_RUN([
66 #include <iconv.h>
67 #include <string.h>
68 int main ()
69 {
70 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
71 returns. */
72 {
73 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
74 if (cd_utf8_to_88591 != (iconv_t)(-1))
75 {
76 static const char input[] = "\342\202\254"; /* EURO SIGN */
77 char buf[10];
78 const char *inptr = input;
79 size_t inbytesleft = strlen (input);
80 char *outptr = buf;
81 size_t outbytesleft = sizeof (buf);
82 size_t res = iconv (cd_utf8_to_88591,
83 (char **) &inptr, &inbytesleft,
84 &outptr, &outbytesleft);
85 if (res == 0)
86 return 1;
87 }
88 }
89 #if 0 /* This bug could be worked around by the caller. */
90 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
91 {
92 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
93 if (cd_88591_to_utf8 != (iconv_t)(-1))
94 {
95 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
96 char buf[50];
97 const char *inptr = input;
98 size_t inbytesleft = strlen (input);
99 char *outptr = buf;
100 size_t outbytesleft = sizeof (buf);
101 size_t res = iconv (cd_88591_to_utf8,
102 (char **) &inptr, &inbytesleft,
103 &outptr, &outbytesleft);
104 if ((int)res > 0)
105 return 1;
106 }
107 }
108 #endif
109 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
110 provided. */
111 if (/* Try standardized names. */
112 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
113 /* Try IRIX, OSF/1 names. */
114 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
115 /* Try AIX names. */
116 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
117 /* Try HP-UX names. */
118 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
119 return 1;
120 return 0;
121 }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
122 [case "$host_os" in
123 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
124 *) am_cv_func_iconv_works="guessing yes" ;;
125 esac])
126 LIBS="$am_save_LIBS"
127 ])
128 case "$am_cv_func_iconv_works" in
129 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
130 *) am_func_iconv=yes ;;
131 esac
132 else
133 am_func_iconv=no am_cv_lib_iconv=no
134 fi
135 if test "$am_func_iconv" = yes; then
136 AC_DEFINE(HAVE_ICONV, 1,
137 [Define if you have the iconv() function and it works.])
138 fi
139 if test "$am_cv_lib_iconv" = yes; then
140 AC_MSG_CHECKING([how to link with libiconv])
141 AC_MSG_RESULT([$LIBICONV])
142 else
143 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
144 dnl either.
145 CPPFLAGS="$am_save_CPPFLAGS"
146 LIBICONV=
147 LTLIBICONV=
148 fi
149 AC_SUBST(LIBICONV)
150 AC_SUBST(LTLIBICONV)
151 ])
152
153 AC_DEFUN([AM_ICONV],
154 [
155 AM_ICONV_LINK
156 if test "$am_cv_func_iconv" = yes; then
157 AC_MSG_CHECKING([for iconv declaration])
158 AC_CACHE_VAL(am_cv_proto_iconv, [
159 AC_TRY_COMPILE([
160 #include <stdlib.h>
161 #include <iconv.h>
162 extern
163 #ifdef __cplusplus
164 "C"
165 #endif
166 #if defined(__STDC__) || defined(__cplusplus)
167 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
168 #else
169 size_t iconv();
170 #endif
171 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
172 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);"])
173 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
174 AC_MSG_RESULT([$]{ac_t:-
175 }[$]am_cv_proto_iconv)
176 AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
177 [Define as const if the declaration of iconv() needs const.])
178 fi
179 ])
+0
-51
current/m4/intlmacosx.m4 less more
0 # intlmacosx.m4 serial 1 (gettext-0.17)
1 dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Checks for special options needed on MacOS X.
16 dnl Defines INTL_MACOSX_LIBS.
17 AC_DEFUN([gt_INTL_MACOSX],
18 [
19 dnl Check for API introduced in MacOS X 10.2.
20 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
21 gt_cv_func_CFPreferencesCopyAppValue,
22 [gt_save_LIBS="$LIBS"
23 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24 AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
25 [CFPreferencesCopyAppValue(NULL, NULL)],
26 [gt_cv_func_CFPreferencesCopyAppValue=yes],
27 [gt_cv_func_CFPreferencesCopyAppValue=no])
28 LIBS="$gt_save_LIBS"])
29 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
30 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
31 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
32 fi
33 dnl Check for API introduced in MacOS X 10.3.
34 AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
35 [gt_save_LIBS="$LIBS"
36 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
37 AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
38 [gt_cv_func_CFLocaleCopyCurrent=yes],
39 [gt_cv_func_CFLocaleCopyCurrent=no])
40 LIBS="$gt_save_LIBS"])
41 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
42 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
43 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
44 fi
45 INTL_MACOSX_LIBS=
46 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
47 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
48 fi
49 AC_SUBST([INTL_MACOSX_LIBS])
50 ])
+0
-110
current/m4/lib-ld.m4 less more
0 # lib-ld.m4 serial 3 (gettext-0.13)
1 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl Subroutines of libtool.m4,
7 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
8 dnl with libtool.m4.
9
10 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
11 AC_DEFUN([AC_LIB_PROG_LD_GNU],
12 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
13 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
14 case `$LD -v 2>&1 </dev/null` in
15 *GNU* | *'with BFD'*)
16 acl_cv_prog_gnu_ld=yes ;;
17 *)
18 acl_cv_prog_gnu_ld=no ;;
19 esac])
20 with_gnu_ld=$acl_cv_prog_gnu_ld
21 ])
22
23 dnl From libtool-1.4. Sets the variable LD.
24 AC_DEFUN([AC_LIB_PROG_LD],
25 [AC_ARG_WITH(gnu-ld,
26 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
27 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
28 AC_REQUIRE([AC_PROG_CC])dnl
29 AC_REQUIRE([AC_CANONICAL_HOST])dnl
30 # Prepare PATH_SEPARATOR.
31 # The user is always right.
32 if test "${PATH_SEPARATOR+set}" != set; then
33 echo "#! /bin/sh" >conf$$.sh
34 echo "exit 0" >>conf$$.sh
35 chmod +x conf$$.sh
36 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37 PATH_SEPARATOR=';'
38 else
39 PATH_SEPARATOR=:
40 fi
41 rm -f conf$$.sh
42 fi
43 ac_prog=ld
44 if test "$GCC" = yes; then
45 # Check if gcc -print-prog-name=ld gives a path.
46 AC_MSG_CHECKING([for ld used by GCC])
47 case $host in
48 *-*-mingw*)
49 # gcc leaves a trailing carriage return which upsets mingw
50 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
51 *)
52 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
53 esac
54 case $ac_prog in
55 # Accept absolute paths.
56 [[\\/]* | [A-Za-z]:[\\/]*)]
57 [re_direlt='/[^/][^/]*/\.\./']
58 # Canonicalize the path of ld
59 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
60 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
61 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
62 done
63 test -z "$LD" && LD="$ac_prog"
64 ;;
65 "")
66 # If it fails, then pretend we aren't using GCC.
67 ac_prog=ld
68 ;;
69 *)
70 # If it is relative, then search for the first ld in PATH.
71 with_gnu_ld=unknown
72 ;;
73 esac
74 elif test "$with_gnu_ld" = yes; then
75 AC_MSG_CHECKING([for GNU ld])
76 else
77 AC_MSG_CHECKING([for non-GNU ld])
78 fi
79 AC_CACHE_VAL(acl_cv_path_LD,
80 [if test -z "$LD"; then
81 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
82 for ac_dir in $PATH; do
83 test -z "$ac_dir" && ac_dir=.
84 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
85 acl_cv_path_LD="$ac_dir/$ac_prog"
86 # Check to see if the program is GNU ld. I'd rather use --version,
87 # but apparently some GNU ld's only accept -v.
88 # Break only if it was the GNU/non-GNU ld that we prefer.
89 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
90 *GNU* | *'with BFD'*)
91 test "$with_gnu_ld" != no && break ;;
92 *)
93 test "$with_gnu_ld" != yes && break ;;
94 esac
95 fi
96 done
97 IFS="$ac_save_ifs"
98 else
99 acl_cv_path_LD="$LD" # Let the user override the test with a path.
100 fi])
101 LD="$acl_cv_path_LD"
102 if test -n "$LD"; then
103 AC_MSG_RESULT($LD)
104 else
105 AC_MSG_RESULT(no)
106 fi
107 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
108 AC_LIB_PROG_LD_GNU
109 ])
+0
-709
current/m4/lib-link.m4 less more
0 # lib-link.m4 serial 13 (gettext-0.17)
1 dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl From Bruno Haible.
7
8 AC_PREREQ(2.54)
9
10 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
11 dnl the libraries corresponding to explicit and implicit dependencies.
12 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
13 dnl augments the CPPFLAGS variable.
14 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
15 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
16 AC_DEFUN([AC_LIB_LINKFLAGS],
17 [
18 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
19 AC_REQUIRE([AC_LIB_RPATH])
20 define([Name],[translit([$1],[./-], [___])])
21 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
22 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
23 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
24 AC_LIB_LINKFLAGS_BODY([$1], [$2])
25 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
26 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
27 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
28 ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
29 ])
30 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
31 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
32 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
33 LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
34 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
35 AC_SUBST([LIB]NAME)
36 AC_SUBST([LTLIB]NAME)
37 AC_SUBST([LIB]NAME[_PREFIX])
38 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
39 dnl results of this search when this library appears as a dependency.
40 HAVE_LIB[]NAME=yes
41 undefine([Name])
42 undefine([NAME])
43 ])
44
45 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
46 dnl searches for libname and the libraries corresponding to explicit and
47 dnl implicit dependencies, together with the specified include files and
48 dnl the ability to compile and link the specified testcode. If found, it
49 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
50 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
51 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
52 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
53 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
54 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
55 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
56 [
57 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
58 AC_REQUIRE([AC_LIB_RPATH])
59 define([Name],[translit([$1],[./-], [___])])
60 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
61 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
62
63 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
64 dnl accordingly.
65 AC_LIB_LINKFLAGS_BODY([$1], [$2])
66
67 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
68 dnl because if the user has installed lib[]Name and not disabled its use
69 dnl via --without-lib[]Name-prefix, he wants to use it.
70 ac_save_CPPFLAGS="$CPPFLAGS"
71 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
72
73 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
74 ac_save_LIBS="$LIBS"
75 LIBS="$LIBS $LIB[]NAME"
76 AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
77 LIBS="$ac_save_LIBS"
78 ])
79 if test "$ac_cv_lib[]Name" = yes; then
80 HAVE_LIB[]NAME=yes
81 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
82 AC_MSG_CHECKING([how to link with lib[]$1])
83 AC_MSG_RESULT([$LIB[]NAME])
84 else
85 HAVE_LIB[]NAME=no
86 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
87 dnl $INC[]NAME either.
88 CPPFLAGS="$ac_save_CPPFLAGS"
89 LIB[]NAME=
90 LTLIB[]NAME=
91 LIB[]NAME[]_PREFIX=
92 fi
93 AC_SUBST([HAVE_LIB]NAME)
94 AC_SUBST([LIB]NAME)
95 AC_SUBST([LTLIB]NAME)
96 AC_SUBST([LIB]NAME[_PREFIX])
97 undefine([Name])
98 undefine([NAME])
99 ])
100
101 dnl Determine the platform dependent parameters needed to use rpath:
102 dnl acl_libext,
103 dnl acl_shlibext,
104 dnl acl_hardcode_libdir_flag_spec,
105 dnl acl_hardcode_libdir_separator,
106 dnl acl_hardcode_direct,
107 dnl acl_hardcode_minus_L.
108 AC_DEFUN([AC_LIB_RPATH],
109 [
110 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
111 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
112 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
113 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
114 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
115 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
116 AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
117 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
118 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
119 . ./conftest.sh
120 rm -f ./conftest.sh
121 acl_cv_rpath=done
122 ])
123 wl="$acl_cv_wl"
124 acl_libext="$acl_cv_libext"
125 acl_shlibext="$acl_cv_shlibext"
126 acl_libname_spec="$acl_cv_libname_spec"
127 acl_library_names_spec="$acl_cv_library_names_spec"
128 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
129 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
130 acl_hardcode_direct="$acl_cv_hardcode_direct"
131 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
132 dnl Determine whether the user wants rpath handling at all.
133 AC_ARG_ENABLE(rpath,
134 [ --disable-rpath do not hardcode runtime library paths],
135 :, enable_rpath=yes)
136 ])
137
138 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
139 dnl the libraries corresponding to explicit and implicit dependencies.
140 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
141 dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
142 dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
143 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
144 [
145 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
146 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
147 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
148 dnl Autoconf >= 2.61 supports dots in --with options.
149 define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
150 dnl By default, look in $includedir and $libdir.
151 use_additional=yes
152 AC_LIB_WITH_FINAL_PREFIX([
153 eval additional_includedir=\"$includedir\"
154 eval additional_libdir=\"$libdir\"
155 ])
156 AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
157 [ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
158 --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir],
159 [
160 if test "X$withval" = "Xno"; then
161 use_additional=no
162 else
163 if test "X$withval" = "X"; then
164 AC_LIB_WITH_FINAL_PREFIX([
165 eval additional_includedir=\"$includedir\"
166 eval additional_libdir=\"$libdir\"
167 ])
168 else
169 additional_includedir="$withval/include"
170 additional_libdir="$withval/$acl_libdirstem"
171 fi
172 fi
173 ])
174 dnl Search the library and its dependencies in $additional_libdir and
175 dnl $LDFLAGS. Using breadth-first-seach.
176 LIB[]NAME=
177 LTLIB[]NAME=
178 INC[]NAME=
179 LIB[]NAME[]_PREFIX=
180 rpathdirs=
181 ltrpathdirs=
182 names_already_handled=
183 names_next_round='$1 $2'
184 while test -n "$names_next_round"; do
185 names_this_round="$names_next_round"
186 names_next_round=
187 for name in $names_this_round; do
188 already_handled=
189 for n in $names_already_handled; do
190 if test "$n" = "$name"; then
191 already_handled=yes
192 break
193 fi
194 done
195 if test -z "$already_handled"; then
196 names_already_handled="$names_already_handled $name"
197 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
198 dnl or AC_LIB_HAVE_LINKFLAGS call.
199 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
200 eval value=\"\$HAVE_LIB$uppername\"
201 if test -n "$value"; then
202 if test "$value" = yes; then
203 eval value=\"\$LIB$uppername\"
204 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
205 eval value=\"\$LTLIB$uppername\"
206 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
207 else
208 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
209 dnl that this library doesn't exist. So just drop it.
210 :
211 fi
212 else
213 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
214 dnl and the already constructed $LIBNAME/$LTLIBNAME.
215 found_dir=
216 found_la=
217 found_so=
218 found_a=
219 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
220 if test -n "$acl_shlibext"; then
221 shrext=".$acl_shlibext" # typically: shrext=.so
222 else
223 shrext=
224 fi
225 if test $use_additional = yes; then
226 dir="$additional_libdir"
227 dnl The same code as in the loop below:
228 dnl First look for a shared library.
229 if test -n "$acl_shlibext"; then
230 if test -f "$dir/$libname$shrext"; then
231 found_dir="$dir"
232 found_so="$dir/$libname$shrext"
233 else
234 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
235 ver=`(cd "$dir" && \
236 for f in "$libname$shrext".*; do echo "$f"; done \
237 | sed -e "s,^$libname$shrext\\\\.,," \
238 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
239 | sed 1q ) 2>/dev/null`
240 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
241 found_dir="$dir"
242 found_so="$dir/$libname$shrext.$ver"
243 fi
244 else
245 eval library_names=\"$acl_library_names_spec\"
246 for f in $library_names; do
247 if test -f "$dir/$f"; then
248 found_dir="$dir"
249 found_so="$dir/$f"
250 break
251 fi
252 done
253 fi
254 fi
255 fi
256 dnl Then look for a static library.
257 if test "X$found_dir" = "X"; then
258 if test -f "$dir/$libname.$acl_libext"; then
259 found_dir="$dir"
260 found_a="$dir/$libname.$acl_libext"
261 fi
262 fi
263 if test "X$found_dir" != "X"; then
264 if test -f "$dir/$libname.la"; then
265 found_la="$dir/$libname.la"
266 fi
267 fi
268 fi
269 if test "X$found_dir" = "X"; then
270 for x in $LDFLAGS $LTLIB[]NAME; do
271 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
272 case "$x" in
273 -L*)
274 dir=`echo "X$x" | sed -e 's/^X-L//'`
275 dnl First look for a shared library.
276 if test -n "$acl_shlibext"; then
277 if test -f "$dir/$libname$shrext"; then
278 found_dir="$dir"
279 found_so="$dir/$libname$shrext"
280 else
281 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
282 ver=`(cd "$dir" && \
283 for f in "$libname$shrext".*; do echo "$f"; done \
284 | sed -e "s,^$libname$shrext\\\\.,," \
285 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
286 | sed 1q ) 2>/dev/null`
287 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
288 found_dir="$dir"
289 found_so="$dir/$libname$shrext.$ver"
290 fi
291 else
292 eval library_names=\"$acl_library_names_spec\"
293 for f in $library_names; do
294 if test -f "$dir/$f"; then
295 found_dir="$dir"
296 found_so="$dir/$f"
297 break
298 fi
299 done
300 fi
301 fi
302 fi
303 dnl Then look for a static library.
304 if test "X$found_dir" = "X"; then
305 if test -f "$dir/$libname.$acl_libext"; then
306 found_dir="$dir"
307 found_a="$dir/$libname.$acl_libext"
308 fi
309 fi
310 if test "X$found_dir" != "X"; then
311 if test -f "$dir/$libname.la"; then
312 found_la="$dir/$libname.la"
313 fi
314 fi
315 ;;
316 esac
317 if test "X$found_dir" != "X"; then
318 break
319 fi
320 done
321 fi
322 if test "X$found_dir" != "X"; then
323 dnl Found the library.
324 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
325 if test "X$found_so" != "X"; then
326 dnl Linking with a shared library. We attempt to hardcode its
327 dnl directory into the executable's runpath, unless it's the
328 dnl standard /usr/lib.
329 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
330 dnl No hardcoding is needed.
331 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
332 else
333 dnl Use an explicit option to hardcode DIR into the resulting
334 dnl binary.
335 dnl Potentially add DIR to ltrpathdirs.
336 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
337 haveit=
338 for x in $ltrpathdirs; do
339 if test "X$x" = "X$found_dir"; then
340 haveit=yes
341 break
342 fi
343 done
344 if test -z "$haveit"; then
345 ltrpathdirs="$ltrpathdirs $found_dir"
346 fi
347 dnl The hardcoding into $LIBNAME is system dependent.
348 if test "$acl_hardcode_direct" = yes; then
349 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
350 dnl resulting binary.
351 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
352 else
353 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
354 dnl Use an explicit option to hardcode DIR into the resulting
355 dnl binary.
356 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
357 dnl Potentially add DIR to rpathdirs.
358 dnl The rpathdirs will be appended to $LIBNAME at the end.
359 haveit=
360 for x in $rpathdirs; do
361 if test "X$x" = "X$found_dir"; then
362 haveit=yes
363 break
364 fi
365 done
366 if test -z "$haveit"; then
367 rpathdirs="$rpathdirs $found_dir"
368 fi
369 else
370 dnl Rely on "-L$found_dir".
371 dnl But don't add it if it's already contained in the LDFLAGS
372 dnl or the already constructed $LIBNAME
373 haveit=
374 for x in $LDFLAGS $LIB[]NAME; do
375 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
376 if test "X$x" = "X-L$found_dir"; then
377 haveit=yes
378 break
379 fi
380 done
381 if test -z "$haveit"; then
382 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
383 fi
384 if test "$acl_hardcode_minus_L" != no; then
385 dnl FIXME: Not sure whether we should use
386 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
387 dnl here.
388 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
389 else
390 dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
391 dnl here, because this doesn't fit in flags passed to the
392 dnl compiler. So give up. No hardcoding. This affects only
393 dnl very old systems.
394 dnl FIXME: Not sure whether we should use
395 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
396 dnl here.
397 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
398 fi
399 fi
400 fi
401 fi
402 else
403 if test "X$found_a" != "X"; then
404 dnl Linking with a static library.
405 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
406 else
407 dnl We shouldn't come here, but anyway it's good to have a
408 dnl fallback.
409 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
410 fi
411 fi
412 dnl Assume the include files are nearby.
413 additional_includedir=
414 case "$found_dir" in
415 */$acl_libdirstem | */$acl_libdirstem/)
416 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
417 LIB[]NAME[]_PREFIX="$basedir"
418 additional_includedir="$basedir/include"
419 ;;
420 esac
421 if test "X$additional_includedir" != "X"; then
422 dnl Potentially add $additional_includedir to $INCNAME.
423 dnl But don't add it
424 dnl 1. if it's the standard /usr/include,
425 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
426 dnl 3. if it's already present in $CPPFLAGS or the already
427 dnl constructed $INCNAME,
428 dnl 4. if it doesn't exist as a directory.
429 if test "X$additional_includedir" != "X/usr/include"; then
430 haveit=
431 if test "X$additional_includedir" = "X/usr/local/include"; then
432 if test -n "$GCC"; then
433 case $host_os in
434 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
435 esac
436 fi
437 fi
438 if test -z "$haveit"; then
439 for x in $CPPFLAGS $INC[]NAME; do
440 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
441 if test "X$x" = "X-I$additional_includedir"; then
442 haveit=yes
443 break
444 fi
445 done
446 if test -z "$haveit"; then
447 if test -d "$additional_includedir"; then
448 dnl Really add $additional_includedir to $INCNAME.
449 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
450 fi
451 fi
452 fi
453 fi
454 fi
455 dnl Look for dependencies.
456 if test -n "$found_la"; then
457 dnl Read the .la file. It defines the variables
458 dnl dlname, library_names, old_library, dependency_libs, current,
459 dnl age, revision, installed, dlopen, dlpreopen, libdir.
460 save_libdir="$libdir"
461 case "$found_la" in
462 */* | *\\*) . "$found_la" ;;
463 *) . "./$found_la" ;;
464 esac
465 libdir="$save_libdir"
466 dnl We use only dependency_libs.
467 for dep in $dependency_libs; do
468 case "$dep" in
469 -L*)
470 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
471 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
472 dnl But don't add it
473 dnl 1. if it's the standard /usr/lib,
474 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
475 dnl 3. if it's already present in $LDFLAGS or the already
476 dnl constructed $LIBNAME,
477 dnl 4. if it doesn't exist as a directory.
478 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
479 haveit=
480 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
481 if test -n "$GCC"; then
482 case $host_os in
483 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
484 esac
485 fi
486 fi
487 if test -z "$haveit"; then
488 haveit=
489 for x in $LDFLAGS $LIB[]NAME; do
490 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
491 if test "X$x" = "X-L$additional_libdir"; then
492 haveit=yes
493 break
494 fi
495 done
496 if test -z "$haveit"; then
497 if test -d "$additional_libdir"; then
498 dnl Really add $additional_libdir to $LIBNAME.
499 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
500 fi
501 fi
502 haveit=
503 for x in $LDFLAGS $LTLIB[]NAME; do
504 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
505 if test "X$x" = "X-L$additional_libdir"; then
506 haveit=yes
507 break
508 fi
509 done
510 if test -z "$haveit"; then
511 if test -d "$additional_libdir"; then
512 dnl Really add $additional_libdir to $LTLIBNAME.
513 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
514 fi
515 fi
516 fi
517 fi
518 ;;
519 -R*)
520 dir=`echo "X$dep" | sed -e 's/^X-R//'`
521 if test "$enable_rpath" != no; then
522 dnl Potentially add DIR to rpathdirs.
523 dnl The rpathdirs will be appended to $LIBNAME at the end.
524 haveit=
525 for x in $rpathdirs; do
526 if test "X$x" = "X$dir"; then
527 haveit=yes
528 break
529 fi
530 done
531 if test -z "$haveit"; then
532 rpathdirs="$rpathdirs $dir"
533 fi
534 dnl Potentially add DIR to ltrpathdirs.
535 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
536 haveit=
537 for x in $ltrpathdirs; do
538 if test "X$x" = "X$dir"; then
539 haveit=yes
540 break
541 fi
542 done
543 if test -z "$haveit"; then
544 ltrpathdirs="$ltrpathdirs $dir"
545 fi
546 fi
547 ;;
548 -l*)
549 dnl Handle this in the next round.
550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
551 ;;
552 *.la)
553 dnl Handle this in the next round. Throw away the .la's
554 dnl directory; it is already contained in a preceding -L
555 dnl option.
556 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
557 ;;
558 *)
559 dnl Most likely an immediate library name.
560 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
561 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
562 ;;
563 esac
564 done
565 fi
566 else
567 dnl Didn't find the library; assume it is in the system directories
568 dnl known to the linker and runtime loader. (All the system
569 dnl directories known to the linker should also be known to the
570 dnl runtime loader, otherwise the system is severely misconfigured.)
571 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
572 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
573 fi
574 fi
575 fi
576 done
577 done
578 if test "X$rpathdirs" != "X"; then
579 if test -n "$acl_hardcode_libdir_separator"; then
580 dnl Weird platform: only the last -rpath option counts, the user must
581 dnl pass all path elements in one option. We can arrange that for a
582 dnl single library, but not when more than one $LIBNAMEs are used.
583 alldirs=
584 for found_dir in $rpathdirs; do
585 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
586 done
587 dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
588 acl_save_libdir="$libdir"
589 libdir="$alldirs"
590 eval flag=\"$acl_hardcode_libdir_flag_spec\"
591 libdir="$acl_save_libdir"
592 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
593 else
594 dnl The -rpath options are cumulative.
595 for found_dir in $rpathdirs; do
596 acl_save_libdir="$libdir"
597 libdir="$found_dir"
598 eval flag=\"$acl_hardcode_libdir_flag_spec\"
599 libdir="$acl_save_libdir"
600 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
601 done
602 fi
603 fi
604 if test "X$ltrpathdirs" != "X"; then
605 dnl When using libtool, the option that works for both libraries and
606 dnl executables is -R. The -R options are cumulative.
607 for found_dir in $ltrpathdirs; do
608 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
609 done
610 fi
611 ])
612
613 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
614 dnl unless already present in VAR.
615 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
616 dnl contains two or three consecutive elements that belong together.
617 AC_DEFUN([AC_LIB_APPENDTOVAR],
618 [
619 for element in [$2]; do
620 haveit=
621 for x in $[$1]; do
622 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
623 if test "X$x" = "X$element"; then
624 haveit=yes
625 break
626 fi
627 done
628 if test -z "$haveit"; then
629 [$1]="${[$1]}${[$1]:+ }$element"
630 fi
631 done
632 ])
633
634 dnl For those cases where a variable contains several -L and -l options
635 dnl referring to unknown libraries and directories, this macro determines the
636 dnl necessary additional linker options for the runtime path.
637 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
638 dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
639 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
640 dnl otherwise linking without libtool is assumed.
641 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
642 [
643 AC_REQUIRE([AC_LIB_RPATH])
644 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
645 $1=
646 if test "$enable_rpath" != no; then
647 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
648 dnl Use an explicit option to hardcode directories into the resulting
649 dnl binary.
650 rpathdirs=
651 next=
652 for opt in $2; do
653 if test -n "$next"; then
654 dir="$next"
655 dnl No need to hardcode the standard /usr/lib.
656 if test "X$dir" != "X/usr/$acl_libdirstem"; then
657 rpathdirs="$rpathdirs $dir"
658 fi
659 next=
660 else
661 case $opt in
662 -L) next=yes ;;
663 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
664 dnl No need to hardcode the standard /usr/lib.
665 if test "X$dir" != "X/usr/$acl_libdirstem"; then
666 rpathdirs="$rpathdirs $dir"
667 fi
668 next= ;;
669 *) next= ;;
670 esac
671 fi
672 done
673 if test "X$rpathdirs" != "X"; then
674 if test -n ""$3""; then
675 dnl libtool is used for linking. Use -R options.
676 for dir in $rpathdirs; do
677 $1="${$1}${$1:+ }-R$dir"
678 done
679 else
680 dnl The linker is used for linking directly.
681 if test -n "$acl_hardcode_libdir_separator"; then
682 dnl Weird platform: only the last -rpath option counts, the user
683 dnl must pass all path elements in one option.
684 alldirs=
685 for dir in $rpathdirs; do
686 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
687 done
688 acl_save_libdir="$libdir"
689 libdir="$alldirs"
690 eval flag=\"$acl_hardcode_libdir_flag_spec\"
691 libdir="$acl_save_libdir"
692 $1="$flag"
693 else
694 dnl The -rpath options are cumulative.
695 for dir in $rpathdirs; do
696 acl_save_libdir="$libdir"
697 libdir="$dir"
698 eval flag=\"$acl_hardcode_libdir_flag_spec\"
699 libdir="$acl_save_libdir"
700 $1="${$1}${$1:+ }$flag"
701 done
702 fi
703 fi
704 fi
705 fi
706 fi
707 AC_SUBST([$1])
708 ])
+0
-185
current/m4/lib-prefix.m4 less more
0 # lib-prefix.m4 serial 5 (gettext-0.15)
1 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl From Bruno Haible.
7
8 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
9 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
10 dnl require excessive bracketing.
11 ifdef([AC_HELP_STRING],
12 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
13 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
14
15 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
16 dnl to access previously installed libraries. The basic assumption is that
17 dnl a user will want packages to use other packages he previously installed
18 dnl with the same --prefix option.
19 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
20 dnl libraries, but is otherwise very convenient.
21 AC_DEFUN([AC_LIB_PREFIX],
22 [
23 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
24 AC_REQUIRE([AC_PROG_CC])
25 AC_REQUIRE([AC_CANONICAL_HOST])
26 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
27 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
28 dnl By default, look in $includedir and $libdir.
29 use_additional=yes
30 AC_LIB_WITH_FINAL_PREFIX([
31 eval additional_includedir=\"$includedir\"
32 eval additional_libdir=\"$libdir\"
33 ])
34 AC_LIB_ARG_WITH([lib-prefix],
35 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
36 --without-lib-prefix don't search for libraries in includedir and libdir],
37 [
38 if test "X$withval" = "Xno"; then
39 use_additional=no
40 else
41 if test "X$withval" = "X"; then
42 AC_LIB_WITH_FINAL_PREFIX([
43 eval additional_includedir=\"$includedir\"
44 eval additional_libdir=\"$libdir\"
45 ])
46 else
47 additional_includedir="$withval/include"
48 additional_libdir="$withval/$acl_libdirstem"
49 fi
50 fi
51 ])
52 if test $use_additional = yes; then
53 dnl Potentially add $additional_includedir to $CPPFLAGS.
54 dnl But don't add it
55 dnl 1. if it's the standard /usr/include,
56 dnl 2. if it's already present in $CPPFLAGS,
57 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
58 dnl 4. if it doesn't exist as a directory.
59 if test "X$additional_includedir" != "X/usr/include"; then
60 haveit=
61 for x in $CPPFLAGS; do
62 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
63 if test "X$x" = "X-I$additional_includedir"; then
64 haveit=yes
65 break
66 fi
67 done
68 if test -z "$haveit"; then
69 if test "X$additional_includedir" = "X/usr/local/include"; then
70 if test -n "$GCC"; then
71 case $host_os in
72 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
73 esac
74 fi
75 fi
76 if test -z "$haveit"; then
77 if test -d "$additional_includedir"; then
78 dnl Really add $additional_includedir to $CPPFLAGS.
79 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
80 fi
81 fi
82 fi
83 fi
84 dnl Potentially add $additional_libdir to $LDFLAGS.
85 dnl But don't add it
86 dnl 1. if it's the standard /usr/lib,
87 dnl 2. if it's already present in $LDFLAGS,
88 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
89 dnl 4. if it doesn't exist as a directory.
90 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
91 haveit=
92 for x in $LDFLAGS; do
93 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
94 if test "X$x" = "X-L$additional_libdir"; then
95 haveit=yes
96 break
97 fi
98 done
99 if test -z "$haveit"; then
100 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
101 if test -n "$GCC"; then
102 case $host_os in
103 linux*) haveit=yes;;
104 esac
105 fi
106 fi
107 if test -z "$haveit"; then
108 if test -d "$additional_libdir"; then
109 dnl Really add $additional_libdir to $LDFLAGS.
110 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
111 fi
112 fi
113 fi
114 fi
115 fi
116 ])
117
118 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
119 dnl acl_final_exec_prefix, containing the values to which $prefix and
120 dnl $exec_prefix will expand at the end of the configure script.
121 AC_DEFUN([AC_LIB_PREPARE_PREFIX],
122 [
123 dnl Unfortunately, prefix and exec_prefix get only finally determined
124 dnl at the end of configure.
125 if test "X$prefix" = "XNONE"; then
126 acl_final_prefix="$ac_default_prefix"
127 else
128 acl_final_prefix="$prefix"
129 fi
130 if test "X$exec_prefix" = "XNONE"; then
131 acl_final_exec_prefix='${prefix}'
132 else
133 acl_final_exec_prefix="$exec_prefix"
134 fi
135 acl_save_prefix="$prefix"
136 prefix="$acl_final_prefix"
137 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
138 prefix="$acl_save_prefix"
139 ])
140
141 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
142 dnl variables prefix and exec_prefix bound to the values they will have
143 dnl at the end of the configure script.
144 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
145 [
146 acl_save_prefix="$prefix"
147 prefix="$acl_final_prefix"
148 acl_save_exec_prefix="$exec_prefix"
149 exec_prefix="$acl_final_exec_prefix"
150 $1
151 exec_prefix="$acl_save_exec_prefix"
152 prefix="$acl_save_prefix"
153 ])
154
155 dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
156 dnl the basename of the libdir, either "lib" or "lib64".
157 AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
158 [
159 dnl There is no formal standard regarding lib and lib64. The current
160 dnl practice is that on a system supporting 32-bit and 64-bit instruction
161 dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
162 dnl libraries go under $prefix/lib. We determine the compiler's default
163 dnl mode by looking at the compiler's library search path. If at least
164 dnl of its elements ends in /lib64 or points to a directory whose absolute
165 dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
166 dnl default, namely "lib".
167 acl_libdirstem=lib
168 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
169 if test -n "$searchpath"; then
170 acl_save_IFS="${IFS= }"; IFS=":"
171 for searchdir in $searchpath; do
172 if test -d "$searchdir"; then
173 case "$searchdir" in
174 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
175 *) searchdir=`cd "$searchdir" && pwd`
176 case "$searchdir" in
177 */lib64 ) acl_libdirstem=lib64 ;;
178 esac ;;
179 esac
180 fi
181 done
182 IFS="$acl_save_IFS"
183 fi
184 ])
+0
-31
current/m4/nls.m4 less more
0 # nls.m4 serial 3 (gettext-0.15)
1 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Authors:
16 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
17 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
18
19 AC_PREREQ(2.50)
20
21 AC_DEFUN([AM_NLS],
22 [
23 AC_MSG_CHECKING([whether NLS is requested])
24 dnl Default is enabled NLS
25 AC_ARG_ENABLE(nls,
26 [ --disable-nls do not use Native Language Support],
27 USE_NLS=$enableval, USE_NLS=yes)
28 AC_MSG_RESULT($USE_NLS)
29 AC_SUBST(USE_NLS)
30 ])
+0
-449
current/m4/po.m4 less more
0 # po.m4 serial 15 (gettext-0.17)
1 dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Authors:
16 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
17 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
18
19 AC_PREREQ(2.50)
20
21 dnl Checks for all prerequisites of the po subdirectory.
22 AC_DEFUN([AM_PO_SUBDIRS],
23 [
24 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
25 AC_REQUIRE([AC_PROG_INSTALL])dnl
26 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
27 AC_REQUIRE([AM_NLS])dnl
28
29 dnl Release version of the gettext macros. This is used to ensure that
30 dnl the gettext macros and po/Makefile.in.in are in sync.
31 AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
32
33 dnl Perform the following tests also if --disable-nls has been given,
34 dnl because they are needed for "make dist" to work.
35
36 dnl Search for GNU msgfmt in the PATH.
37 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
38 dnl The second test excludes FreeBSD msgfmt.
39 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
40 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
41 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
42 :)
43 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
44
45 dnl Test whether it is GNU msgfmt >= 0.15.
46 changequote(,)dnl
47 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
48 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
49 *) MSGFMT_015=$MSGFMT ;;
50 esac
51 changequote([,])dnl
52 AC_SUBST([MSGFMT_015])
53 changequote(,)dnl
54 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
55 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
56 *) GMSGFMT_015=$GMSGFMT ;;
57 esac
58 changequote([,])dnl
59 AC_SUBST([GMSGFMT_015])
60
61 dnl Search for GNU xgettext 0.12 or newer in the PATH.
62 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
63 dnl The second test excludes FreeBSD xgettext.
64 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
65 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
66 (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)],
67 :)
68 dnl Remove leftover from FreeBSD xgettext call.
69 rm -f messages.po
70
71 dnl Test whether it is GNU xgettext >= 0.15.
72 changequote(,)dnl
73 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
74 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
75 *) XGETTEXT_015=$XGETTEXT ;;
76 esac
77 changequote([,])dnl
78 AC_SUBST([XGETTEXT_015])
79
80 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
81 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
82 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
83
84 dnl Installation directories.
85 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
86 dnl have to define it here, so that it can be used in po/Makefile.
87 test -n "$localedir" || localedir='${datadir}/locale'
88 AC_SUBST([localedir])
89
90 dnl Support for AM_XGETTEXT_OPTION.
91 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
92 AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
93
94 AC_CONFIG_COMMANDS([po-directories], [[
95 for ac_file in $CONFIG_FILES; do
96 # Support "outfile[:infile[:infile...]]"
97 case "$ac_file" in
98 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
99 esac
100 # PO directories have a Makefile.in generated from Makefile.in.in.
101 case "$ac_file" in */Makefile.in)
102 # Adjust a relative srcdir.
103 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
104 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
105 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
106 # In autoconf-2.13 it is called $ac_given_srcdir.
107 # In autoconf-2.50 it is called $srcdir.
108 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
109 case "$ac_given_srcdir" in
110 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
111 /*) top_srcdir="$ac_given_srcdir" ;;
112 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
113 esac
114 # Treat a directory as a PO directory if and only if it has a
115 # POTFILES.in file. This allows packages to have multiple PO
116 # directories under different names or in different locations.
117 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
118 rm -f "$ac_dir/POTFILES"
119 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
120 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
121 POMAKEFILEDEPS="POTFILES.in"
122 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
123 # on $ac_dir but don't depend on user-specified configuration
124 # parameters.
125 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
126 # The LINGUAS file contains the set of available languages.
127 if test -n "$OBSOLETE_ALL_LINGUAS"; then
128 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
129 fi
130 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
131 # Hide the ALL_LINGUAS assigment from automake < 1.5.
132 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
133 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
134 else
135 # The set of available languages was given in configure.in.
136 # Hide the ALL_LINGUAS assigment from automake < 1.5.
137 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
138 fi
139 # Compute POFILES
140 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
141 # Compute UPDATEPOFILES
142 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
143 # Compute DUMMYPOFILES
144 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
145 # Compute GMOFILES
146 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
147 case "$ac_given_srcdir" in
148 .) srcdirpre= ;;
149 *) srcdirpre='$(srcdir)/' ;;
150 esac
151 POFILES=
152 UPDATEPOFILES=
153 DUMMYPOFILES=
154 GMOFILES=
155 for lang in $ALL_LINGUAS; do
156 POFILES="$POFILES $srcdirpre$lang.po"
157 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
158 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
159 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
160 done
161 # CATALOGS depends on both $ac_dir and the user's LINGUAS
162 # environment variable.
163 INST_LINGUAS=
164 if test -n "$ALL_LINGUAS"; then
165 for presentlang in $ALL_LINGUAS; do
166 useit=no
167 if test "%UNSET%" != "$LINGUAS"; then
168 desiredlanguages="$LINGUAS"
169 else
170 desiredlanguages="$ALL_LINGUAS"
171 fi
172 for desiredlang in $desiredlanguages; do
173 # Use the presentlang catalog if desiredlang is
174 # a. equal to presentlang, or
175 # b. a variant of presentlang (because in this case,
176 # presentlang can be used as a fallback for messages
177 # which are not translated in the desiredlang catalog).
178 case "$desiredlang" in
179 "$presentlang"*) useit=yes;;
180 esac
181 done
182 if test $useit = yes; then
183 INST_LINGUAS="$INST_LINGUAS $presentlang"
184 fi
185 done
186 fi
187 CATALOGS=
188 if test -n "$INST_LINGUAS"; then
189 for lang in $INST_LINGUAS; do
190 CATALOGS="$CATALOGS $lang.gmo"
191 done
192 fi
193 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
194 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"
195 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
196 if test -f "$f"; then
197 case "$f" in
198 *.orig | *.bak | *~) ;;
199 *) cat "$f" >> "$ac_dir/Makefile" ;;
200 esac
201 fi
202 done
203 fi
204 ;;
205 esac
206 done]],
207 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
208 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
209 # from automake < 1.5.
210 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
211 # Capture the value of LINGUAS because we need it to compute CATALOGS.
212 LINGUAS="${LINGUAS-%UNSET%}"
213 ])
214 ])
215
216 dnl Postprocesses a Makefile in a directory containing PO files.
217 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
218 [
219 # When this code is run, in config.status, two variables have already been
220 # set:
221 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
222 # - LINGUAS is the value of the environment variable LINGUAS at configure
223 # time.
224
225 changequote(,)dnl
226 # Adjust a relative srcdir.
227 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
228 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
229 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
230 # In autoconf-2.13 it is called $ac_given_srcdir.
231 # In autoconf-2.50 it is called $srcdir.
232 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
233 case "$ac_given_srcdir" in
234 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
235 /*) top_srcdir="$ac_given_srcdir" ;;
236 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
237 esac
238
239 # Find a way to echo strings without interpreting backslash.
240 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
241 gt_echo='echo'
242 else
243 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
244 gt_echo='printf %s\n'
245 else
246 echo_func () {
247 cat <<EOT
248 $*
249 EOT
250 }
251 gt_echo='echo_func'
252 fi
253 fi
254
255 # A sed script that extracts the value of VARIABLE from a Makefile.
256 sed_x_variable='
257 # Test if the hold space is empty.
258 x
259 s/P/P/
260 x
261 ta
262 # Yes it was empty. Look if we have the expected variable definition.
263 /^[ ]*VARIABLE[ ]*=/{
264 # Seen the first line of the variable definition.
265 s/^[ ]*VARIABLE[ ]*=//
266 ba
267 }
268 bd
269 :a
270 # Here we are processing a line from the variable definition.
271 # Remove comment, more precisely replace it with a space.
272 s/#.*$/ /
273 # See if the line ends in a backslash.
274 tb
275 :b
276 s/\\$//
277 # Print the line, without the trailing backslash.
278 p
279 tc
280 # There was no trailing backslash. The end of the variable definition is
281 # reached. Clear the hold space.
282 s/^.*$//
283 x
284 bd
285 :c
286 # A trailing backslash means that the variable definition continues in the
287 # next line. Put a nonempty string into the hold space to indicate this.
288 s/^.*$/P/
289 x
290 :d
291 '
292 changequote([,])dnl
293
294 # Set POTFILES to the value of the Makefile variable POTFILES.
295 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
296 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
297 # Compute POTFILES_DEPS as
298 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
299 POTFILES_DEPS=
300 for file in $POTFILES; do
301 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
302 done
303 POMAKEFILEDEPS=""
304
305 if test -n "$OBSOLETE_ALL_LINGUAS"; then
306 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
307 fi
308 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
309 # The LINGUAS file contains the set of available languages.
310 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
311 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
312 else
313 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
314 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
315 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
316 fi
317 # Hide the ALL_LINGUAS assigment from automake < 1.5.
318 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
319 # Compute POFILES
320 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
321 # Compute UPDATEPOFILES
322 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
323 # Compute DUMMYPOFILES
324 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
325 # Compute GMOFILES
326 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
327 # Compute PROPERTIESFILES
328 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
329 # Compute CLASSFILES
330 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
331 # Compute QMFILES
332 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
333 # Compute MSGFILES
334 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
335 # Compute RESOURCESDLLFILES
336 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
337 case "$ac_given_srcdir" in
338 .) srcdirpre= ;;
339 *) srcdirpre='$(srcdir)/' ;;
340 esac
341 POFILES=
342 UPDATEPOFILES=
343 DUMMYPOFILES=
344 GMOFILES=
345 PROPERTIESFILES=
346 CLASSFILES=
347 QMFILES=
348 MSGFILES=
349 RESOURCESDLLFILES=
350 for lang in $ALL_LINGUAS; do
351 POFILES="$POFILES $srcdirpre$lang.po"
352 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
353 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
354 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
355 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
356 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
357 QMFILES="$QMFILES $srcdirpre$lang.qm"
358 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
359 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
360 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/'`
361 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
362 done
363 # CATALOGS depends on both $ac_dir and the user's LINGUAS
364 # environment variable.
365 INST_LINGUAS=
366 if test -n "$ALL_LINGUAS"; then
367 for presentlang in $ALL_LINGUAS; do
368 useit=no
369 if test "%UNSET%" != "$LINGUAS"; then
370 desiredlanguages="$LINGUAS"
371 else
372 desiredlanguages="$ALL_LINGUAS"
373 fi
374 for desiredlang in $desiredlanguages; do
375 # Use the presentlang catalog if desiredlang is
376 # a. equal to presentlang, or
377 # b. a variant of presentlang (because in this case,
378 # presentlang can be used as a fallback for messages
379 # which are not translated in the desiredlang catalog).
380 case "$desiredlang" in
381 "$presentlang"*) useit=yes;;
382 esac
383 done
384 if test $useit = yes; then
385 INST_LINGUAS="$INST_LINGUAS $presentlang"
386 fi
387 done
388 fi
389 CATALOGS=
390 JAVACATALOGS=
391 QTCATALOGS=
392 TCLCATALOGS=
393 CSHARPCATALOGS=
394 if test -n "$INST_LINGUAS"; then
395 for lang in $INST_LINGUAS; do
396 CATALOGS="$CATALOGS $lang.gmo"
397 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
398 QTCATALOGS="$QTCATALOGS $lang.qm"
399 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
400 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
401 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/'`
402 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
403 done
404 fi
405
406 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"
407 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
408 # Add dependencies that cannot be formulated as a simple suffix rule.
409 for lang in $ALL_LINGUAS; do
410 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
411 cat >> "$ac_file.tmp" <<EOF
412 $frobbedlang.msg: $lang.po
413 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
414 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
415 EOF
416 done
417 fi
418 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
419 # Add dependencies that cannot be formulated as a simple suffix rule.
420 for lang in $ALL_LINGUAS; do
421 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/'`
422 cat >> "$ac_file.tmp" <<EOF
423 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
424 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
425 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
426 EOF
427 done
428 fi
429 if test -n "$POMAKEFILEDEPS"; then
430 cat >> "$ac_file.tmp" <<EOF
431 Makefile: $POMAKEFILEDEPS
432 EOF
433 fi
434 mv "$ac_file.tmp" "$ac_file"
435 ])
436
437 dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
438 AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
439 [
440 XGETTEXT_EXTRA_OPTIONS=
441 ])
442
443 dnl Registers an option to be passed to xgettext in the po subdirectory.
444 AC_DEFUN([AM_XGETTEXT_OPTION],
445 [
446 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
447 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
448 ])
+0
-92
current/m4/progtest.m4 less more
0 # progtest.m4 serial 4 (gettext-0.14.2)
1 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Authors:
16 dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
17
18 AC_PREREQ(2.50)
19
20 # Search path for a program which passes the given test.
21
22 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
23 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
24 AC_DEFUN([AM_PATH_PROG_WITH_TEST],
25 [
26 # Prepare PATH_SEPARATOR.
27 # The user is always right.
28 if test "${PATH_SEPARATOR+set}" != set; then
29 echo "#! /bin/sh" >conf$$.sh
30 echo "exit 0" >>conf$$.sh
31 chmod +x conf$$.sh
32 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33 PATH_SEPARATOR=';'
34 else
35 PATH_SEPARATOR=:
36 fi
37 rm -f conf$$.sh
38 fi
39
40 # Find out how to test for executable files. Don't use a zero-byte file,
41 # as systems may use methods other than mode bits to determine executability.
42 cat >conf$$.file <<_ASEOF
43 #! /bin/sh
44 exit 0
45 _ASEOF
46 chmod +x conf$$.file
47 if test -x conf$$.file >/dev/null 2>&1; then
48 ac_executable_p="test -x"
49 else
50 ac_executable_p="test -f"
51 fi
52 rm -f conf$$.file
53
54 # Extract the first word of "$2", so it can be a program name with args.
55 set dummy $2; ac_word=[$]2
56 AC_MSG_CHECKING([for $ac_word])
57 AC_CACHE_VAL(ac_cv_path_$1,
58 [case "[$]$1" in
59 [[\\/]]* | ?:[[\\/]]*)
60 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
61 ;;
62 *)
63 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
64 for ac_dir in ifelse([$5], , $PATH, [$5]); do
65 IFS="$ac_save_IFS"
66 test -z "$ac_dir" && ac_dir=.
67 for ac_exec_ext in '' $ac_executable_extensions; do
68 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
69 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
70 if [$3]; then
71 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
72 break 2
73 fi
74 fi
75 done
76 done
77 IFS="$ac_save_IFS"
78 dnl If no 4th arg is given, leave the cache variable unset,
79 dnl so AC_PATH_PROGS will keep looking.
80 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
81 ])dnl
82 ;;
83 esac])dnl
84 $1="$ac_cv_path_$1"
85 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
86 AC_MSG_RESULT([$]$1)
87 else
88 AC_MSG_RESULT(no)
89 fi
90 AC_SUBST($1)dnl
91 ])
+0
-360
current/missing less more
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2005-06-08.21
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
6 # Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23
24 # As a special exception to the GNU General Public License, if you
25 # distribute this file as part of a program that contains a
26 # configuration script generated by Autoconf, you may include it under
27 # the same distribution terms that you use for the rest of that program.
28
29 if test $# -eq 0; then
30 echo 1>&2 "Try \`$0 --help' for more information"
31 exit 1
32 fi
33
34 run=:
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
46 case "$1" in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
62
63 -h|--h|--he|--hel|--help)
64 echo "\
65 $0 [OPTION]... PROGRAM [ARGUMENT]...
66
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
69
70 Options:
71 -h, --help display this help and exit
72 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
74
75 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 automake touch all \`Makefile.in' files
80 bison create \`y.tab.[ch]', if possible, from existing .[ch]
81 flex create \`lex.yy.c', if possible, from existing .c
82 help2man touch the output file
83 lex create \`lex.yy.c', if possible, from existing .c
84 makeinfo touch the output file
85 tar try tar, gnutar, gtar, then tar without non-portable flags
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Send bug reports to <bug-automake@gnu.org>."
89 exit $?
90 ;;
91
92 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
93 echo "missing $scriptversion (GNU Automake)"
94 exit $?
95 ;;
96
97 -*)
98 echo 1>&2 "$0: Unknown \`$1' option"
99 echo 1>&2 "Try \`$0 --help' for more information"
100 exit 1
101 ;;
102
103 esac
104
105 # Now exit if we have it, but it failed. Also exit now if we
106 # don't have it and --version was passed (most likely to detect
107 # the program).
108 case "$1" in
109 lex|yacc)
110 # Not GNU programs, they don't have --version.
111 ;;
112
113 tar)
114 if test -n "$run"; then
115 echo 1>&2 "ERROR: \`tar' requires --run"
116 exit 1
117 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
118 exit 1
119 fi
120 ;;
121
122 *)
123 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
124 # We have it, but it failed.
125 exit 1
126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
127 # Could not run --version or --help. This is probably someone
128 # running `$TOOL --version' or `$TOOL --help' to check whether
129 # $TOOL exists and not knowing $TOOL uses missing.
130 exit 1
131 fi
132 ;;
133 esac
134
135 # If it does not exist, or fails to run (possibly an outdated version),
136 # try to emulate it.
137 case "$1" in
138 aclocal*)
139 echo 1>&2 "\
140 WARNING: \`$1' is $msg. You should only need it if
141 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
142 to install the \`Automake' and \`Perl' packages. Grab them from
143 any GNU archive site."
144 touch aclocal.m4
145 ;;
146
147 autoconf)
148 echo 1>&2 "\
149 WARNING: \`$1' is $msg. You should only need it if
150 you modified \`${configure_ac}'. You might want to install the
151 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
152 archive site."
153 touch configure
154 ;;
155
156 autoheader)
157 echo 1>&2 "\
158 WARNING: \`$1' is $msg. You should only need it if
159 you modified \`acconfig.h' or \`${configure_ac}'. You might want
160 to install the \`Autoconf' and \`GNU m4' packages. Grab them
161 from any GNU archive site."
162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
163 test -z "$files" && files="config.h"
164 touch_files=
165 for f in $files; do
166 case "$f" in
167 *:*) touch_files="$touch_files "`echo "$f" |
168 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169 *) touch_files="$touch_files $f.in";;
170 esac
171 done
172 touch $touch_files
173 ;;
174
175 automake*)
176 echo 1>&2 "\
177 WARNING: \`$1' is $msg. You should only need it if
178 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
179 You might want to install the \`Automake' and \`Perl' packages.
180 Grab them from any GNU archive site."
181 find . -type f -name Makefile.am -print |
182 sed 's/\.am$/.in/' |
183 while read f; do touch "$f"; done
184 ;;
185
186 autom4te)
187 echo 1>&2 "\
188 WARNING: \`$1' is needed, but is $msg.
189 You might have modified some files without having the
190 proper tools for further handling them.
191 You can get \`$1' as part of \`Autoconf' from any GNU
192 archive site."
193
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
196 if test -f "$file"; then
197 touch $file
198 else
199 test -z "$file" || exec >$file
200 echo "#! /bin/sh"
201 echo "# Created by GNU Automake missing as a replacement of"
202 echo "# $ $@"
203 echo "exit 0"
204 chmod +x $file
205 exit 1
206 fi
207 ;;
208
209 bison|yacc)
210 echo 1>&2 "\
211 WARNING: \`$1' $msg. You should only need it if
212 you modified a \`.y' file. You may need the \`Bison' package
213 in order for those modifications to take effect. You can get
214 \`Bison' from any GNU archive site."
215 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
217 eval LASTARG="\${$#}"
218 case "$LASTARG" in
219 *.y)
220 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
222 cp "$SRCFILE" y.tab.c
223 fi
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
226 cp "$SRCFILE" y.tab.h
227 fi
228 ;;
229 esac
230 fi
231 if [ ! -f y.tab.h ]; then
232 echo >y.tab.h
233 fi
234 if [ ! -f y.tab.c ]; then
235 echo 'main() { return 0; }' >y.tab.c
236 fi
237 ;;
238
239 lex|flex)
240 echo 1>&2 "\
241 WARNING: \`$1' is $msg. You should only need it if
242 you modified a \`.l' file. You may need the \`Flex' package
243 in order for those modifications to take effect. You can get
244 \`Flex' from any GNU archive site."
245 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
247 eval LASTARG="\${$#}"
248 case "$LASTARG" in
249 *.l)
250 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
252 cp "$SRCFILE" lex.yy.c
253 fi
254 ;;
255 esac
256 fi
257 if [ ! -f lex.yy.c ]; then
258 echo 'main() { return 0; }' >lex.yy.c
259 fi
260 ;;
261
262 help2man)
263 echo 1>&2 "\
264 WARNING: \`$1' is $msg. You should only need it if
265 you modified a dependency of a manual page. You may need the
266 \`Help2man' package in order for those modifications to take
267 effect. You can get \`Help2man' from any GNU archive site."
268
269 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
270 if test -z "$file"; then
271 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
272 fi
273 if [ -f "$file" ]; then
274 touch $file
275 else
276 test -z "$file" || exec >$file
277 echo ".ab help2man is required to generate this page"
278 exit 1
279 fi
280 ;;
281
282 makeinfo)
283 echo 1>&2 "\
284 WARNING: \`$1' is $msg. You should only need it if
285 you modified a \`.texi' or \`.texinfo' file, or any other file
286 indirectly affecting the aspect of the manual. The spurious
287 call might also be the consequence of using a buggy \`make' (AIX,
288 DU, IRIX). You might want to install the \`Texinfo' package or
289 the \`GNU make' package. Grab either from any GNU archive site."
290 # The file to touch is that specified with -o ...
291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292 if test -z "$file"; then
293 # ... or it is the one specified with @setfilename ...
294 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
296 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
298 fi
299 # If the file does not exist, the user really needs makeinfo;
300 # let's fail without touching anything.
301 test -f $file || exit 1
302 touch $file
303 ;;
304
305 tar)
306 shift
307
308 # We have already tried tar in the generic part.
309 # Look for gnutar/gtar before invocation to avoid ugly error
310 # messages.
311 if (gnutar --version > /dev/null 2>&1); then
312 gnutar "$@" && exit 0
313 fi
314 if (gtar --version > /dev/null 2>&1); then
315 gtar "$@" && exit 0
316 fi
317 firstarg="$1"
318 if shift; then
319 case "$firstarg" in
320 *o*)
321 firstarg=`echo "$firstarg" | sed s/o//`
322 tar "$firstarg" "$@" && exit 0
323 ;;
324 esac
325 case "$firstarg" in
326 *h*)
327 firstarg=`echo "$firstarg" | sed s/h//`
328 tar "$firstarg" "$@" && exit 0
329 ;;
330 esac
331 fi
332
333 echo 1>&2 "\
334 WARNING: I can't seem to be able to run \`tar' with the given arguments.
335 You may want to install GNU tar or Free paxutils, or check the
336 command line arguments."
337 exit 1
338 ;;
339
340 *)
341 echo 1>&2 "\
342 WARNING: \`$1' is needed, and is $msg.
343 You might have modified some files without having the
344 proper tools for further handling them. Check the \`README' file,
345 it often tells you about the needed prerequisites for installing
346 this package. You may also peek at any GNU archive site, in case
347 some other package would contain this missing \`$1' program."
348 exit 1
349 ;;
350 esac
351
352 exit 0
353
354 # Local variables:
355 # eval: (add-hook 'write-file-hooks 'time-stamp)
356 # time-stamp-start: "scriptversion="
357 # time-stamp-format: "%:y-%02m-%02d.%02H"
358 # time-stamp-end: "$"
359 # End:
+0
-0
current/po/ChangeLog less more
(Empty file)
+0
-429
current/po/Makefile.in.in less more
0 # Makefile for PO directory in any package using GNU gettext.
1 # Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
2 #
3 # This file can be copied and used freely without restrictions. It can
4 # be used in projects which are not available under the GNU General Public
5 # License but which still want to provide support for the GNU gettext
6 # functionality.
7 # Please note that the actual code of GNU gettext is covered by the GNU
8 # General Public License and is *not* in the public domain.
9 #
10 # Origin: gettext-0.17
11 GETTEXT_MACRO_VERSION = 0.17
12
13 PACKAGE = @PACKAGE@
14 VERSION = @VERSION@
15 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
16
17 SHELL = /bin/sh
18 @SET_MAKE@
19
20 srcdir = @srcdir@
21 top_srcdir = @top_srcdir@
22 VPATH = @srcdir@
23
24 prefix = @prefix@
25 exec_prefix = @exec_prefix@
26 datarootdir = @datarootdir@
27 datadir = @datadir@
28 localedir = @localedir@
29 gettextsrcdir = $(datadir)/gettext/po
30
31 INSTALL = @INSTALL@
32 INSTALL_DATA = @INSTALL_DATA@
33
34 # We use $(mkdir_p).
35 # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
36 # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
37 # @install_sh@ does not start with $(SHELL), so we add it.
38 # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
39 # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
40 # versions, $(mkinstalldirs) and $(install_sh) are unused.
41 mkinstalldirs = $(SHELL) @install_sh@ -d
42 install_sh = $(SHELL) @install_sh@
43 MKDIR_P = @MKDIR_P@
44 mkdir_p = @mkdir_p@
45
46 GMSGFMT_ = @GMSGFMT@
47 GMSGFMT_no = @GMSGFMT@
48 GMSGFMT_yes = @GMSGFMT_015@
49 GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
50 MSGFMT_ = @MSGFMT@
51 MSGFMT_no = @MSGFMT@
52 MSGFMT_yes = @MSGFMT_015@
53 MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
54 XGETTEXT_ = @XGETTEXT@
55 XGETTEXT_no = @XGETTEXT@
56 XGETTEXT_yes = @XGETTEXT_015@
57 XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
58 MSGMERGE = msgmerge
59 MSGMERGE_UPDATE = @MSGMERGE@ --update
60 MSGINIT = msginit
61 MSGCONV = msgconv
62 MSGFILTER = msgfilter
63
64 POFILES = @POFILES@
65 GMOFILES = @GMOFILES@
66 UPDATEPOFILES = @UPDATEPOFILES@
67 DUMMYPOFILES = @DUMMYPOFILES@
68 DISTFILES.common = Makefile.in.in remove-potcdate.sin \
69 $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
70 DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
71 $(POFILES) $(GMOFILES) \
72 $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
73
74 POTFILES = \
75
76 CATALOGS = @CATALOGS@
77
78 # Makevars gets inserted here. (Don't remove this line!)
79
80 .SUFFIXES:
81 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
82
83 .po.mo:
84 @echo "$(MSGFMT) -c -o $@ $<"; \
85 $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
86
87 .po.gmo:
88 @lang=`echo $* | sed -e 's,.*/,,'`; \
89 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
90 echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
91 cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
92
93 .sin.sed:
94 sed -e '/^#/d' $< > t-$@
95 mv t-$@ $@
96
97
98 all: check-macro-version all-@USE_NLS@
99
100 all-yes: stamp-po
101 all-no:
102
103 # Ensure that the gettext macros and this Makefile.in.in are in sync.
104 check-macro-version:
105 @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
106 || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
107 exit 1; \
108 }
109
110 # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
111 # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
112 # we don't want to bother translators with empty POT files). We assume that
113 # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
114 # In this case, stamp-po is a nop (i.e. a phony target).
115
116 # stamp-po is a timestamp denoting the last time at which the CATALOGS have
117 # been loosely updated. Its purpose is that when a developer or translator
118 # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
119 # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
120 # invocations of "make" will do nothing. This timestamp would not be necessary
121 # if updating the $(CATALOGS) would always touch them; however, the rule for
122 # $(POFILES) has been designed to not touch files that don't need to be
123 # changed.
124 stamp-po: $(srcdir)/$(DOMAIN).pot
125 test ! -f $(srcdir)/$(DOMAIN).pot || \
126 test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
127 @test ! -f $(srcdir)/$(DOMAIN).pot || { \
128 echo "touch stamp-po" && \
129 echo timestamp > stamp-poT && \
130 mv stamp-poT stamp-po; \
131 }
132
133 # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
134 # otherwise packages like GCC can not be built if only parts of the source
135 # have been downloaded.
136
137 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
138 # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
139 $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
140 if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \
141 package_gnu='GNU '; \
142 else \
143 package_gnu=''; \
144 fi; \
145 if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
146 msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
147 else \
148 msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
149 fi; \
150 case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
151 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
152 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
153 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
154 --files-from=$(srcdir)/POTFILES.in \
155 --copyright-holder='$(COPYRIGHT_HOLDER)' \
156 --msgid-bugs-address="$$msgid_bugs_address" \
157 ;; \
158 *) \
159 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
160 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
161 --files-from=$(srcdir)/POTFILES.in \
162 --copyright-holder='$(COPYRIGHT_HOLDER)' \
163 --package-name="$${package_gnu}@PACKAGE@" \
164 --package-version='@VERSION@' \
165 --msgid-bugs-address="$$msgid_bugs_address" \
166 ;; \
167 esac
168 test ! -f $(DOMAIN).po || { \
169 if test -f $(srcdir)/$(DOMAIN).pot; then \
170 sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
171 sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
172 if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
173 rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
174 else \
175 rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
176 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
177 fi; \
178 else \
179 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
180 fi; \
181 }
182
183 # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
184 # every "make" invocation, only create it when it is missing.
185 # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
186 $(srcdir)/$(DOMAIN).pot:
187 $(MAKE) $(DOMAIN).pot-update
188
189 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
190 # Note that a PO file is not touched if it doesn't need to be changed.
191 $(POFILES): $(srcdir)/$(DOMAIN).pot
192 @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
193 if test -f "$(srcdir)/$${lang}.po"; then \
194 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
195 echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
196 cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
197 else \
198 $(MAKE) $${lang}.po-create; \
199 fi
200
201
202 install: install-exec install-data
203 install-exec:
204 install-data: install-data-@USE_NLS@
205 if test "$(PACKAGE)" = "gettext-tools"; then \
206 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
207 for file in $(DISTFILES.common) Makevars.template; do \
208 $(INSTALL_DATA) $(srcdir)/$$file \
209 $(DESTDIR)$(gettextsrcdir)/$$file; \
210 done; \
211 for file in Makevars; do \
212 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
213 done; \
214 else \
215 : ; \
216 fi
217 install-data-no: all
218 install-data-yes: all
219 $(mkdir_p) $(DESTDIR)$(datadir)
220 @catalogs='$(CATALOGS)'; \
221 for cat in $$catalogs; do \
222 cat=`basename $$cat`; \
223 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
224 dir=$(localedir)/$$lang/LC_MESSAGES; \
225 $(mkdir_p) $(DESTDIR)$$dir; \
226 if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
227 $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
228 echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
229 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
230 if test -n "$$lc"; then \
231 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
232 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
233 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
234 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
235 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
236 for file in *; do \
237 if test -f $$file; then \
238 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
239 fi; \
240 done); \
241 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
242 else \
243 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
244 :; \
245 else \
246 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
247 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
248 fi; \
249 fi; \
250 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
251 ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
252 ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
253 cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
254 echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
255 fi; \
256 done; \
257 done
258
259 install-strip: install
260
261 installdirs: installdirs-exec installdirs-data
262 installdirs-exec:
263 installdirs-data: installdirs-data-@USE_NLS@
264 if test "$(PACKAGE)" = "gettext-tools"; then \
265 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
266 else \
267 : ; \
268 fi
269 installdirs-data-no:
270 installdirs-data-yes:
271 $(mkdir_p) $(DESTDIR)$(datadir)
272 @catalogs='$(CATALOGS)'; \
273 for cat in $$catalogs; do \
274 cat=`basename $$cat`; \
275 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
276 dir=$(localedir)/$$lang/LC_MESSAGES; \
277 $(mkdir_p) $(DESTDIR)$$dir; \
278 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
279 if test -n "$$lc"; then \
280 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
281 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
282 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
283 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
284 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
285 for file in *; do \
286 if test -f $$file; then \
287 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
288 fi; \
289 done); \
290 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
291 else \
292 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
293 :; \
294 else \
295 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
296 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
297 fi; \
298 fi; \
299 fi; \
300 done; \
301 done
302
303 # Define this as empty until I found a useful application.
304 installcheck:
305
306 uninstall: uninstall-exec uninstall-data
307 uninstall-exec:
308 uninstall-data: uninstall-data-@USE_NLS@
309 if test "$(PACKAGE)" = "gettext-tools"; then \
310 for file in $(DISTFILES.common) Makevars.template; do \
311 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
312 done; \
313 else \
314 : ; \
315 fi
316 uninstall-data-no:
317 uninstall-data-yes:
318 catalogs='$(CATALOGS)'; \
319 for cat in $$catalogs; do \
320 cat=`basename $$cat`; \
321 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
322 for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
323 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
324 done; \
325 done
326
327 check: all
328
329 info dvi ps pdf html tags TAGS ctags CTAGS ID:
330
331 mostlyclean:
332 rm -f remove-potcdate.sed
333 rm -f stamp-poT
334 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
335 rm -fr *.o
336
337 clean: mostlyclean
338
339 distclean: clean
340 rm -f Makefile Makefile.in POTFILES *.mo
341
342 maintainer-clean: distclean
343 @echo "This command is intended for maintainers to use;"
344 @echo "it deletes files that may require special tools to rebuild."
345 rm -f stamp-po $(GMOFILES)
346
347 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
348 dist distdir:
349 $(MAKE) update-po
350 @$(MAKE) dist2
351 # This is a separate target because 'update-po' must be executed before.
352 dist2: stamp-po $(DISTFILES)
353 dists="$(DISTFILES)"; \
354 if test "$(PACKAGE)" = "gettext-tools"; then \
355 dists="$$dists Makevars.template"; \
356 fi; \
357 if test -f $(srcdir)/$(DOMAIN).pot; then \
358 dists="$$dists $(DOMAIN).pot stamp-po"; \
359 fi; \
360 if test -f $(srcdir)/ChangeLog; then \
361 dists="$$dists ChangeLog"; \
362 fi; \
363 for i in 0 1 2 3 4 5 6 7 8 9; do \
364 if test -f $(srcdir)/ChangeLog.$$i; then \
365 dists="$$dists ChangeLog.$$i"; \
366 fi; \
367 done; \
368 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
369 for file in $$dists; do \
370 if test -f $$file; then \
371 cp -p $$file $(distdir) || exit 1; \
372 else \
373 cp -p $(srcdir)/$$file $(distdir) || exit 1; \
374 fi; \
375 done
376
377 update-po: Makefile
378 $(MAKE) $(DOMAIN).pot-update
379 test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
380 $(MAKE) update-gmo
381
382 # General rule for creating PO files.
383
384 .nop.po-create:
385 @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
386 echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
387 exit 1
388
389 # General rule for updating PO files.
390
391 .nop.po-update:
392 @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
393 if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
394 tmpdir=`pwd`; \
395 echo "$$lang:"; \
396 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
397 echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
398 cd $(srcdir); \
399 if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
400 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
401 rm -f $$tmpdir/$$lang.new.po; \
402 else \
403 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
404 :; \
405 else \
406 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
407 exit 1; \
408 fi; \
409 fi; \
410 else \
411 echo "msgmerge for $$lang.po failed!" 1>&2; \
412 rm -f $$tmpdir/$$lang.new.po; \
413 fi
414
415 $(DUMMYPOFILES):
416
417 update-gmo: Makefile $(GMOFILES)
418 @:
419
420 Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
421 cd $(top_builddir) \
422 && $(SHELL) ./config.status $(subdir)/$@.in po-directories
423
424 force:
425
426 # Tell versions [3.59,3.63) of GNU make not to export all variables.
427 # Otherwise a system limit (for SysV at least) may be exceeded.
428 .NOEXPORT:
+0
-41
current/po/Makevars less more
0 # Makefile variables for PO directory in any package using GNU gettext.
1
2 # Usually the message domain is the same as the package name.
3 DOMAIN = $(PACKAGE)
4
5 # These two variables depend on the location of this directory.
6 subdir = po
7 top_builddir = ..
8
9 # These options get passed to xgettext.
10 XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
11
12 # This is the copyright holder that gets inserted into the header of the
13 # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
14 # package. (Note that the msgstr strings, extracted from the package's
15 # sources, belong to the copyright holder of the package.) Translators are
16 # expected to transfer the copyright for their translations to this person
17 # or entity, or to disclaim their copyright. The empty string stands for
18 # the public domain; in this case the translators are expected to disclaim
19 # their copyright.
20 COPYRIGHT_HOLDER = Free Software Foundation, Inc.
21
22 # This is the email address or URL to which the translators shall report
23 # bugs in the untranslated strings:
24 # - Strings which are not entire sentences, see the maintainer guidelines
25 # in the GNU gettext documentation, section 'Preparing Strings'.
26 # - Strings which use unclear terms or require additional context to be
27 # understood.
28 # - Strings which make invalid assumptions about notation of date, time or
29 # money.
30 # - Pluralisation problems.
31 # - Incorrect English spelling.
32 # - Incorrect formatting.
33 # It can be your email address, or a mailing list address where translators
34 # can write to without being subscribed, or the URL of a web page through
35 # which the translators can contact you.
36 MSGID_BUGS_ADDRESS =
37
38 # This is the list of locale categories, beyond LC_MESSAGES, for which the
39 # message catalogs shall be used. It is usually empty.
40 EXTRA_LOCALE_CATEGORIES =
+0
-8
current/po/POTFILES.in less more
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
+0
-47
current/po/Rules-quot less more
0 # Special Makefile rules for English message catalogs with quotation marks.
1
2 DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
3
4 .SUFFIXES: .insert-header .po-update-en
5
6 en@quot.po-create:
7 $(MAKE) en@quot.po-update
8 en@boldquot.po-create:
9 $(MAKE) en@boldquot.po-update
10
11 en@quot.po-update: en@quot.po-update-en
12 en@boldquot.po-update: en@boldquot.po-update-en
13
14 .insert-header.po-update-en:
15 @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
16 if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
17 tmpdir=`pwd`; \
18 echo "$$lang:"; \
19 ll=`echo $$lang | sed -e 's/@.*//'`; \
20 LC_ALL=C; export LC_ALL; \
21 cd $(srcdir); \
22 if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
23 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
24 rm -f $$tmpdir/$$lang.new.po; \
25 else \
26 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
27 :; \
28 else \
29 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
30 exit 1; \
31 fi; \
32 fi; \
33 else \
34 echo "creation of $$lang.po failed!" 1>&2; \
35 rm -f $$tmpdir/$$lang.new.po; \
36 fi
37
38 en@quot.insert-header: insert-header.sin
39 sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
40
41 en@boldquot.insert-header: insert-header.sin
42 sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
43
44 mostlyclean: mostlyclean-quot
45 mostlyclean-quot:
46 rm -f *.insert-header
+0
-10
current/po/boldquot.sed less more
0 s/"\([^"]*\)"/“\1”/g
1 s/`\([^`']*\)'/‘\1’/g
2 s/ '\([^`']*\)' / ‘\1’ /g
3 s/ '\([^`']*\)'$/ ‘\1’/g
4 s/^'\([^`']*\)' /‘\1’ /g
5 s/“”/""/g
6 s/“/“/g
7 s/”/”/g
8 s/‘/‘/g
9 s/’/’/g
+0
-25
current/po/en@boldquot.header less more
0 # All this catalog "translates" are quotation characters.
1 # The msgids must be ASCII and therefore cannot contain real quotation
2 # characters, only substitutes like grave accent (0x60), apostrophe (0x27)
3 # and double quote (0x22). These substitutes look strange; see
4 # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
5 #
6 # This catalog translates grave accent (0x60) and apostrophe (0x27) to
7 # left single quotation mark (U+2018) and right single quotation mark (U+2019).
8 # It also translates pairs of apostrophe (0x27) to
9 # left single quotation mark (U+2018) and right single quotation mark (U+2019)
10 # and pairs of quotation mark (0x22) to
11 # left double quotation mark (U+201C) and right double quotation mark (U+201D).
12 #
13 # When output to an UTF-8 terminal, the quotation characters appear perfectly.
14 # When output to an ISO-8859-1 terminal, the single quotation marks are
15 # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
16 # grave/acute accent (by libiconv), and the double quotation marks are
17 # transliterated to 0x22.
18 # When output to an ASCII terminal, the single quotation marks are
19 # transliterated to apostrophes, and the double quotation marks are
20 # transliterated to 0x22.
21 #
22 # This catalog furthermore displays the text between the quotation marks in
23 # bold face, assuming the VT100/XTerm escape sequences.
24 #
+0
-22
current/po/en@quot.header less more
0 # All this catalog "translates" are quotation characters.
1 # The msgids must be ASCII and therefore cannot contain real quotation
2 # characters, only substitutes like grave accent (0x60), apostrophe (0x27)
3 # and double quote (0x22). These substitutes look strange; see
4 # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
5 #
6 # This catalog translates grave accent (0x60) and apostrophe (0x27) to
7 # left single quotation mark (U+2018) and right single quotation mark (U+2019).
8 # It also translates pairs of apostrophe (0x27) to
9 # left single quotation mark (U+2018) and right single quotation mark (U+2019)
10 # and pairs of quotation mark (0x22) to
11 # left double quotation mark (U+201C) and right double quotation mark (U+201D).
12 #
13 # When output to an UTF-8 terminal, the quotation characters appear perfectly.
14 # When output to an ISO-8859-1 terminal, the single quotation marks are
15 # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
16 # grave/acute accent (by libiconv), and the double quotation marks are
17 # transliterated to 0x22.
18 # When output to an ASCII terminal, the single quotation marks are
19 # transliterated to apostrophes, and the double quotation marks are
20 # transliterated to 0x22.
21 #
current/po/es_MX.gmo less more
Binary diff not shown
+0
-641
current/po/es_MX.po less more
0 # translation of libhdate.po to Spanish
1 # This file is distributed under the same license as the libhdate package.
2 # Copyright (C) 2005 Yaacov Zamir, Peled Esti
3 # Peled Esti <esti@actcom.co.il>, 2005.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: es_MX\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2008-01-11 18:45+0200\n"
10 "PO-Revision-Date: 2005-03-07 12:44+0200\n"
11 "Last-Translator: Peled Esti <esti@actcom.co.il>\n"
12 "Language-Team: Spanish\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:278
224 msgid "Rosh Hashana I"
225 msgstr "Rosh Hashana I"
226
227 #: src/hdate_strings.c:242 src/hdate_strings.c:279
228 msgid "Rosh Hashana II"
229 msgstr "Rosh Hashana II"
230
231 #: src/hdate_strings.c:243 src/hdate_strings.c:280
232 msgid "Tzom Gedaliah"
233 msgstr "Ayuno de Gedaliah"
234
235 #: src/hdate_strings.c:244 src/hdate_strings.c:281
236 msgid "Yom Kippur"
237 msgstr "Yom Kippur"
238
239 #: src/hdate_strings.c:245 src/hdate_strings.c:282
240 msgid "Sukkot"
241 msgstr "Sukkot"
242
243 #: src/hdate_strings.c:246 src/hdate_strings.c:283
244 msgid "Hol hamoed Sukkot"
245 msgstr "Hol hamoed Sukkot"
246
247 #: src/hdate_strings.c:247 src/hdate_strings.c:284
248 msgid "Hoshana raba"
249 msgstr "Hoshana raba"
250
251 #: src/hdate_strings.c:248 src/hdate_strings.c:285
252 msgid "Simchat Torah"
253 msgstr "Simjat Torah"
254
255 #: src/hdate_strings.c:249 src/hdate_strings.c:286
256 msgid "Chanukah"
257 msgstr "Januka"
258
259 #: src/hdate_strings.c:250 src/hdate_strings.c:287
260 #, fuzzy
261 msgid "Asara B'Tevet"
262 msgstr "Asara B'Tevet"
263
264 #: src/hdate_strings.c:251 src/hdate_strings.c:288
265 msgid "Tu B'Shvat"
266 msgstr "Tu B'Shvat"
267
268 #: src/hdate_strings.c:252 src/hdate_strings.c:289
269 #, fuzzy
270 msgid "Ta'anit Esther"
271 msgstr "Ta'anit Esther"
272
273 #: src/hdate_strings.c:253 src/hdate_strings.c:290
274 msgid "Purim"
275 msgstr "Purim"
276
277 #: src/hdate_strings.c:254 src/hdate_strings.c:291
278 msgid "Shushan Purim"
279 msgstr "Shushan Purim"
280
281 #: src/hdate_strings.c:255 src/hdate_strings.c:292
282 msgid "Pesach"
283 msgstr "Pesaj"
284
285 #: src/hdate_strings.c:256 src/hdate_strings.c:293
286 msgid "Hol hamoed Pesach"
287 msgstr "Jol hamoed Pesaj"
288
289 #: src/hdate_strings.c:257 src/hdate_strings.c:294
290 msgid "Yom HaAtzma'ut"
291 msgstr "Yom HaAtzma'ut"
292
293 #: src/hdate_strings.c:258 src/hdate_strings.c:295
294 msgid "Lag B'Omer"
295 msgstr "Lag B'Omer"
296
297 #: src/hdate_strings.c:259 src/hdate_strings.c:296
298 msgid "Erev Shavuot"
299 msgstr "Víspera de Shavuot"
300
301 #: src/hdate_strings.c:260 src/hdate_strings.c:297
302 msgid "Shavuot"
303 msgstr "Shavuot"
304
305 #: src/hdate_strings.c:261 src/hdate_strings.c:298
306 msgid "Tzom Tammuz"
307 msgstr "Ayuno de Tammuz"
308
309 #: src/hdate_strings.c:262 src/hdate_strings.c:299
310 msgid "Tish'a B'Av"
311 msgstr "Tish'a B'Av"
312
313 #: src/hdate_strings.c:263 src/hdate_strings.c:300
314 msgid "Tu B'Av"
315 msgstr "Tu B'Av"
316
317 #: src/hdate_strings.c:264 src/hdate_strings.c:301
318 msgid "Yom HaShoah"
319 msgstr "Día del Holocausto"
320
321 #: src/hdate_strings.c:265 src/hdate_strings.c:302
322 msgid "Yom HaZikaron"
323 msgstr "Día del Recuerdo"
324
325 #: src/hdate_strings.c:266 src/hdate_strings.c:303
326 #, fuzzy
327 msgid "Yom Yerushalayim"
328 msgstr "Yom Yerushalayim"
329
330 #: src/hdate_strings.c:267 src/hdate_strings.c:304
331 msgid "Shmini Atzeret"
332 msgstr "Shemini Atzeret"
333
334 #: src/hdate_strings.c:268 src/hdate_strings.c:305
335 msgid "Pesach VII"
336 msgstr "Pesaj VII"
337
338 #: src/hdate_strings.c:269 src/hdate_strings.c:306
339 msgid "Pesach VIII"
340 msgstr "Pesaj VIII"
341
342 #: src/hdate_strings.c:270 src/hdate_strings.c:307
343 msgid "Shavuot II"
344 msgstr "Shavuot II"
345
346 #: src/hdate_strings.c:271 src/hdate_strings.c:308
347 #, fuzzy
348 msgid "Sukkot II"
349 msgstr "Sukkot II"
350
351 #: src/hdate_strings.c:272 src/hdate_strings.c:309
352 #, fuzzy
353 msgid "Pesach II"
354 msgstr "Pesaj II"
355
356 #: src/hdate_strings.c:273 src/hdate_strings.c:310
357 msgid "Family Day"
358 msgstr ""
359
360 #: src/hdate_strings.c:274 src/hdate_strings.c:311
361 msgid "Memorial day for fallen whose place of burial is unknown"
362 msgstr ""
363
364 #: src/hdate_strings.c:275
365 msgid "Rabin memorial day"
366 msgstr ""
367
368 #: src/hdate_strings.c:276
369 msgid "Zhabotinsky day"
370 msgstr ""
371
372 #: src/hdate_strings.c:312
373 msgid "Yitzhak Rabin memorial day"
374 msgstr ""
375
376 #: src/hdate_strings.c:313
377 msgid "Zeev Zhabotinsky day"
378 msgstr ""
379
380 #: src/hdate_strings.c:346 src/hdate_strings.c:409
381 msgid "none"
382 msgstr "ninguno"
383
384 #: src/hdate_strings.c:347 src/hdate_strings.c:410
385 msgid "Bereshit"
386 msgstr "Bereshit"
387
388 #: src/hdate_strings.c:348 src/hdate_strings.c:411
389 msgid "Noach"
390 msgstr "Noaj"
391
392 #: src/hdate_strings.c:349 src/hdate_strings.c:412
393 msgid "Lech-Lecha"
394 msgstr "Lej-Lejá"
395
396 #: src/hdate_strings.c:350 src/hdate_strings.c:413
397 msgid "Vayera"
398 msgstr "Vaira"
399
400 #: src/hdate_strings.c:351 src/hdate_strings.c:414
401 msgid "Chayei Sara"
402 msgstr "Jayei Sará"
403
404 #: src/hdate_strings.c:352 src/hdate_strings.c:415
405 #, fuzzy
406 msgid "Toldot"
407 msgstr "Toldot"
408
409 #: src/hdate_strings.c:353 src/hdate_strings.c:416
410 #, fuzzy
411 msgid "Vayetzei"
412 msgstr "Vayetzei"
413
414 #: src/hdate_strings.c:354 src/hdate_strings.c:417
415 #, fuzzy
416 msgid "Vayishlach"
417 msgstr "Vayishalaj"
418
419 #: src/hdate_strings.c:355 src/hdate_strings.c:418
420 #, fuzzy
421 msgid "Vayeshev"
422 msgstr "Vayeshev"
423
424 #: src/hdate_strings.c:356 src/hdate_strings.c:419
425 #, fuzzy
426 msgid "Miketz"
427 msgstr "Miketz"
428
429 #: src/hdate_strings.c:357 src/hdate_strings.c:420
430 #, fuzzy
431 msgid "Vayigash"
432 msgstr "Vayigash"
433
434 #: src/hdate_strings.c:358 src/hdate_strings.c:421
435 #, fuzzy
436 msgid "Vayechi"
437 msgstr "Vayejí"
438
439 #: src/hdate_strings.c:359 src/hdate_strings.c:422
440 msgid "Shemot"
441 msgstr "Shemot"
442
443 #: src/hdate_strings.c:360 src/hdate_strings.c:423
444 msgid "Vaera"
445 msgstr "Vaerá"
446
447 #: src/hdate_strings.c:361 src/hdate_strings.c:424
448 msgid "Bo"
449 msgstr "Bo"
450
451 #: src/hdate_strings.c:362 src/hdate_strings.c:425
452 msgid "Beshalach"
453 msgstr "Beshalaj"
454
455 #: src/hdate_strings.c:363 src/hdate_strings.c:426
456 msgid "Yitro"
457 msgstr "Yitro"
458
459 #: src/hdate_strings.c:364 src/hdate_strings.c:427
460 msgid "Mishpatim"
461 msgstr "Mishpatim"
462
463 #: src/hdate_strings.c:365 src/hdate_strings.c:428
464 msgid "Terumah"
465 msgstr "Terumá"
466
467 #: src/hdate_strings.c:366 src/hdate_strings.c:429
468 msgid "Tetzaveh"
469 msgstr "Tetzavé"
470
471 #: src/hdate_strings.c:367 src/hdate_strings.c:430
472 msgid "Ki Tisa"
473 msgstr "Ki Tisá"
474
475 #: src/hdate_strings.c:368 src/hdate_strings.c:431
476 msgid "Vayakhel"
477 msgstr "Vayajel"
478
479 #: src/hdate_strings.c:369 src/hdate_strings.c:432
480 msgid "Pekudei"
481 msgstr "Pekudei"
482
483 #: src/hdate_strings.c:370 src/hdate_strings.c:433
484 msgid "Vayikra"
485 msgstr "Vayikrá"
486
487 #: src/hdate_strings.c:371 src/hdate_strings.c:434
488 msgid "Tzav"
489 msgstr "Tzav"
490
491 #: src/hdate_strings.c:372 src/hdate_strings.c:435
492 msgid "Shmini"
493 msgstr "Shemini"
494
495 #: src/hdate_strings.c:373 src/hdate_strings.c:436
496 msgid "Tazria"
497 msgstr "Tazría"
498
499 #: src/hdate_strings.c:374 src/hdate_strings.c:437
500 msgid "Metzora"
501 msgstr "Metzorá"
502
503 #: src/hdate_strings.c:375 src/hdate_strings.c:438
504 msgid "Achrei Mot"
505 msgstr "Ajrei Mot"
506
507 #: src/hdate_strings.c:376 src/hdate_strings.c:439
508 msgid "Kedoshim"
509 msgstr "Kedoshim"
510
511 #: src/hdate_strings.c:377 src/hdate_strings.c:440
512 msgid "Emor"
513 msgstr "Emor"
514
515 #: src/hdate_strings.c:378 src/hdate_strings.c:441
516 msgid "Behar"
517 msgstr "Bejar"
518
519 #: src/hdate_strings.c:379 src/hdate_strings.c:442
520 msgid "Bechukotai"
521 msgstr "Bejukotai"
522
523 #: src/hdate_strings.c:380 src/hdate_strings.c:443
524 msgid "Bamidbar"
525 msgstr "Bamidbar"
526
527 #: src/hdate_strings.c:381 src/hdate_strings.c:444
528 #, fuzzy
529 msgid "Nasso"
530 msgstr "Nasso"
531
532 #: src/hdate_strings.c:382 src/hdate_strings.c:445
533 msgid "Beha'alotcha"
534 msgstr "Beha'alotja"
535
536 #: src/hdate_strings.c:383 src/hdate_strings.c:446
537 msgid "Sh'lach"
538 msgstr "Shalaj"
539
540 #: src/hdate_strings.c:384 src/hdate_strings.c:447
541 msgid "Korach"
542 msgstr "Koraj"
543
544 #: src/hdate_strings.c:385 src/hdate_strings.c:448
545 msgid "Chukat"
546 msgstr "Jukat"
547
548 #: src/hdate_strings.c:386 src/hdate_strings.c:449
549 msgid "Balak"
550 msgstr "Balak"
551
552 #: src/hdate_strings.c:387 src/hdate_strings.c:450
553 msgid "Pinchas"
554 msgstr "Pinjas"
555
556 #: src/hdate_strings.c:388 src/hdate_strings.c:451
557 msgid "Matot"
558 msgstr "Matot"
559
560 #: src/hdate_strings.c:389 src/hdate_strings.c:452
561 msgid "Masei"
562 msgstr "Masei"
563
564 #: src/hdate_strings.c:390 src/hdate_strings.c:453
565 msgid "Devarim"
566 msgstr "Devarim"
567
568 #: src/hdate_strings.c:391 src/hdate_strings.c:454
569 msgid "Vaetchanan"
570 msgstr "Vaetjanan"
571
572 #: src/hdate_strings.c:392 src/hdate_strings.c:455
573 msgid "Eikev"
574 msgstr "Eikev"
575
576 #: src/hdate_strings.c:393 src/hdate_strings.c:456
577 msgid "Re'eh"
578 msgstr "Re'é"
579
580 #: src/hdate_strings.c:394 src/hdate_strings.c:457
581 msgid "Shoftim"
582 msgstr "Shoftim"
583
584 #: src/hdate_strings.c:395 src/hdate_strings.c:458
585 msgid "Ki Teitzei"
586 msgstr "Ki Teitzei"
587
588 #: src/hdate_strings.c:396 src/hdate_strings.c:459
589 msgid "Ki Tavo"
590 msgstr "Ki Tavó"
591
592 #: src/hdate_strings.c:397 src/hdate_strings.c:460
593 msgid "Nitzavim"
594 msgstr "Nitzavim"
595
596 #: src/hdate_strings.c:398 src/hdate_strings.c:461
597 msgid "Vayeilech"
598 msgstr "Vayeilej"
599
600 #: src/hdate_strings.c:399 src/hdate_strings.c:462
601 msgid "Ha'Azinu"
602 msgstr "Ha'Azinu"
603
604 #: src/hdate_strings.c:400 src/hdate_strings.c:463
605 msgid "Vezot Habracha"
606 msgstr "Vezot Haberaja"
607
608 #: src/hdate_strings.c:401 src/hdate_strings.c:464
609 #, fuzzy
610 msgid "Vayakhel-Pekudei"
611 msgstr "Vayakhel-Pekudei"
612
613 #: src/hdate_strings.c:402 src/hdate_strings.c:465
614 msgid "Tazria-Metzora"
615 msgstr "Tazría-Metzora"
616
617 #: src/hdate_strings.c:403 src/hdate_strings.c:466
618 msgid "Achrei Mot-Kedoshim"
619 msgstr "Ajrei Mot-Kedoshim"
620
621 #: src/hdate_strings.c:404 src/hdate_strings.c:467
622 msgid "Behar-Bechukotai"
623 msgstr "Bejar-Bejukotai"
624
625 #: src/hdate_strings.c:405 src/hdate_strings.c:468
626 msgid "Chukat-Balak"
627 msgstr "Jukat-Balak"
628
629 #: src/hdate_strings.c:406 src/hdate_strings.c:469
630 msgid "Matot-Masei"
631 msgstr "Matot-Masei"
632
633 #: src/hdate_strings.c:407 src/hdate_strings.c:470
634 #, fuzzy
635 msgid "Nitzavim-Vayeilech"
636 msgstr "Nitzavim-Vayeilej"
637
638 #: src/hdate_strings.c:568 src/hdate_strings.c:572
639 msgid "translator"
640 msgstr "Esther Peled <esti@actcom.co.il>"
current/po/fr.gmo less more
Binary diff not shown
+0
-625
current/po/fr.po less more
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: 2008-01-11 18:45+0200\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:278
222 msgid "Rosh Hashana I"
223 msgstr "Rosh Hashana I"
224
225 #: src/hdate_strings.c:242 src/hdate_strings.c:279
226 msgid "Rosh Hashana II"
227 msgstr "Rosh Hashana II"
228
229 #: src/hdate_strings.c:243 src/hdate_strings.c:280
230 msgid "Tzom Gedaliah"
231 msgstr "Tzom Gedaliah"
232
233 #: src/hdate_strings.c:244 src/hdate_strings.c:281
234 msgid "Yom Kippur"
235 msgstr "Yom Kippur"
236
237 #: src/hdate_strings.c:245 src/hdate_strings.c:282
238 msgid "Sukkot"
239 msgstr "Sukkot"
240
241 #: src/hdate_strings.c:246 src/hdate_strings.c:283
242 msgid "Hol hamoed Sukkot"
243 msgstr "Hol hamoed Sukkot"
244
245 #: src/hdate_strings.c:247 src/hdate_strings.c:284
246 msgid "Hoshana raba"
247 msgstr "Hoshana raba"
248
249 #: src/hdate_strings.c:248 src/hdate_strings.c:285
250 msgid "Simchat Torah"
251 msgstr "Simchat Torah"
252
253 #: src/hdate_strings.c:249 src/hdate_strings.c:286
254 msgid "Chanukah"
255 msgstr "Chanuka"
256
257 #: src/hdate_strings.c:250 src/hdate_strings.c:287
258 msgid "Asara B'Tevet"
259 msgstr "Asara B'Tevet"
260
261 #: src/hdate_strings.c:251 src/hdate_strings.c:288
262 msgid "Tu B'Shvat"
263 msgstr "Tu B'Shvat"
264
265 #: src/hdate_strings.c:252 src/hdate_strings.c:289
266 msgid "Ta'anit Esther"
267 msgstr "Ta'anit Esther"
268
269 #: src/hdate_strings.c:253 src/hdate_strings.c:290
270 msgid "Purim"
271 msgstr "Purim"
272
273 #: src/hdate_strings.c:254 src/hdate_strings.c:291
274 msgid "Shushan Purim"
275 msgstr "Shushan Purim"
276
277 #: src/hdate_strings.c:255 src/hdate_strings.c:292
278 msgid "Pesach"
279 msgstr "Pesach"
280
281 #: src/hdate_strings.c:256 src/hdate_strings.c:293
282 msgid "Hol hamoed Pesach"
283 msgstr "Chol hamoed Pesach"
284
285 #: src/hdate_strings.c:257 src/hdate_strings.c:294
286 msgid "Yom HaAtzma'ut"
287 msgstr "Yom HaAtzma'ut"
288
289 #: src/hdate_strings.c:258 src/hdate_strings.c:295
290 msgid "Lag B'Omer"
291 msgstr "Lag B'Omer"
292
293 #: src/hdate_strings.c:259 src/hdate_strings.c:296
294 msgid "Erev Shavuot"
295 msgstr "veille de Shavuot"
296
297 #: src/hdate_strings.c:260 src/hdate_strings.c:297
298 msgid "Shavuot"
299 msgstr "Shavuot"
300
301 #: src/hdate_strings.c:261 src/hdate_strings.c:298
302 msgid "Tzom Tammuz"
303 msgstr "Tzom Tammuz"
304
305 #: src/hdate_strings.c:262 src/hdate_strings.c:299
306 msgid "Tish'a B'Av"
307 msgstr "Tish'a B'Av"
308
309 #: src/hdate_strings.c:263 src/hdate_strings.c:300
310 msgid "Tu B'Av"
311 msgstr "Tu B'Av"
312
313 #: src/hdate_strings.c:264 src/hdate_strings.c:301
314 msgid "Yom HaShoah"
315 msgstr "Jour des Holocausto"
316
317 #: src/hdate_strings.c:265 src/hdate_strings.c:302
318 msgid "Yom HaZikaron"
319 msgstr "Jour des Recuerdo"
320
321 #: src/hdate_strings.c:266 src/hdate_strings.c:303
322 #, fuzzy
323 msgid "Yom Yerushalayim"
324 msgstr "Jour des Yerushalayim"
325
326 #: src/hdate_strings.c:267 src/hdate_strings.c:304
327 msgid "Shmini Atzeret"
328 msgstr "Shemini Atzeret"
329
330 #: src/hdate_strings.c:268 src/hdate_strings.c:305
331 msgid "Pesach VII"
332 msgstr "Pesach VII"
333
334 #: src/hdate_strings.c:269 src/hdate_strings.c:306
335 msgid "Pesach VIII"
336 msgstr "Pesach VIII"
337
338 #: src/hdate_strings.c:270 src/hdate_strings.c:307
339 msgid "Shavuot II"
340 msgstr "Shavuot II"
341
342 #: src/hdate_strings.c:271 src/hdate_strings.c:308
343 msgid "Sukkot II"
344 msgstr "Sukkot II"
345
346 #: src/hdate_strings.c:272 src/hdate_strings.c:309
347 msgid "Pesach II"
348 msgstr "Pesach II"
349
350 #: src/hdate_strings.c:273 src/hdate_strings.c:310
351 msgid "Family Day"
352 msgstr "Jour de famille"
353
354 #: src/hdate_strings.c:274 src/hdate_strings.c:311
355 msgid "Memorial day for fallen whose place of burial is unknown"
356 msgstr ""
357
358 #: src/hdate_strings.c:275
359 msgid "Rabin memorial day"
360 msgstr "Jour commémoratif de Rabin"
361
362 #: src/hdate_strings.c:276
363 msgid "Zhabotinsky day"
364 msgstr "Jour commémoratif de Zhabotinsky"
365
366 #: src/hdate_strings.c:312
367 msgid "Yitzhak Rabin memorial day"
368 msgstr "Jour commémoratif de Yitzhak Rabin"
369
370 #: src/hdate_strings.c:313
371 msgid "Zeev Zhabotinsky day"
372 msgstr "Jour commémoratif de Zeev Zhabotinsky"
373
374 #: src/hdate_strings.c:346 src/hdate_strings.c:409
375 msgid "none"
376 msgstr "nulle"
377
378 #: src/hdate_strings.c:347 src/hdate_strings.c:410
379 msgid "Bereshit"
380 msgstr "Bereshit"
381
382 #: src/hdate_strings.c:348 src/hdate_strings.c:411
383 msgid "Noach"
384 msgstr "Noach"
385
386 #: src/hdate_strings.c:349 src/hdate_strings.c:412
387 msgid "Lech-Lecha"
388 msgstr "Lech-Lecha"
389
390 #: src/hdate_strings.c:350 src/hdate_strings.c:413
391 msgid "Vayera"
392 msgstr "Vaira"
393
394 #: src/hdate_strings.c:351 src/hdate_strings.c:414
395 msgid "Chayei Sara"
396 msgstr "Chayei Sará"
397
398 #: src/hdate_strings.c:352 src/hdate_strings.c:415
399 msgid "Toldot"
400 msgstr "Toldot"
401
402 #: src/hdate_strings.c:353 src/hdate_strings.c:416
403 msgid "Vayetzei"
404 msgstr "Vayetzei"
405
406 #: src/hdate_strings.c:354 src/hdate_strings.c:417
407 msgid "Vayishlach"
408 msgstr "Vayishlach"
409
410 #: src/hdate_strings.c:355 src/hdate_strings.c:418
411 msgid "Vayeshev"
412 msgstr "Vayeshev"
413
414 #: src/hdate_strings.c:356 src/hdate_strings.c:419
415 msgid "Miketz"
416 msgstr "Miketz"
417
418 #: src/hdate_strings.c:357 src/hdate_strings.c:420
419 msgid "Vayigash"
420 msgstr "Vayigash"
421
422 #: src/hdate_strings.c:358 src/hdate_strings.c:421
423 msgid "Vayechi"
424 msgstr "Vayechí"
425
426 #: src/hdate_strings.c:359 src/hdate_strings.c:422
427 msgid "Shemot"
428 msgstr "Shemot"
429
430 #: src/hdate_strings.c:360 src/hdate_strings.c:423
431 msgid "Vaera"
432 msgstr "Vaerá"
433
434 #: src/hdate_strings.c:361 src/hdate_strings.c:424
435 msgid "Bo"
436 msgstr "Bo"
437
438 #: src/hdate_strings.c:362 src/hdate_strings.c:425
439 msgid "Beshalach"
440 msgstr "Beshalach"
441
442 #: src/hdate_strings.c:363 src/hdate_strings.c:426
443 msgid "Yitro"
444 msgstr "Yitro"
445
446 #: src/hdate_strings.c:364 src/hdate_strings.c:427
447 msgid "Mishpatim"
448 msgstr "Mishpatim"
449
450 #: src/hdate_strings.c:365 src/hdate_strings.c:428
451 msgid "Terumah"
452 msgstr "Terumá"
453
454 #: src/hdate_strings.c:366 src/hdate_strings.c:429
455 msgid "Tetzaveh"
456 msgstr "Tetzavé"
457
458 #: src/hdate_strings.c:367 src/hdate_strings.c:430
459 msgid "Ki Tisa"
460 msgstr "Ki Tisá"
461
462 #: src/hdate_strings.c:368 src/hdate_strings.c:431
463 msgid "Vayakhel"
464 msgstr "Vayakhel"
465
466 #: src/hdate_strings.c:369 src/hdate_strings.c:432
467 msgid "Pekudei"
468 msgstr "Pekudei"
469
470 #: src/hdate_strings.c:370 src/hdate_strings.c:433
471 msgid "Vayikra"
472 msgstr "Vayikrá"
473
474 #: src/hdate_strings.c:371 src/hdate_strings.c:434
475 msgid "Tzav"
476 msgstr "Tzav"
477
478 #: src/hdate_strings.c:372 src/hdate_strings.c:435
479 msgid "Shmini"
480 msgstr "Shemini"
481
482 #: src/hdate_strings.c:373 src/hdate_strings.c:436
483 msgid "Tazria"
484 msgstr "Tazría"
485
486 #: src/hdate_strings.c:374 src/hdate_strings.c:437
487 msgid "Metzora"
488 msgstr "Metzorá"
489
490 #: src/hdate_strings.c:375 src/hdate_strings.c:438
491 msgid "Achrei Mot"
492 msgstr "Achrei Mot"
493
494 #: src/hdate_strings.c:376 src/hdate_strings.c:439
495 msgid "Kedoshim"
496 msgstr "Kedoshim"
497
498 #: src/hdate_strings.c:377 src/hdate_strings.c:440
499 msgid "Emor"
500 msgstr "Emor"
501
502 #: src/hdate_strings.c:378 src/hdate_strings.c:441
503 msgid "Behar"
504 msgstr "Bechar"
505
506 #: src/hdate_strings.c:379 src/hdate_strings.c:442
507 msgid "Bechukotai"
508 msgstr "Bechukotai"
509
510 #: src/hdate_strings.c:380 src/hdate_strings.c:443
511 msgid "Bamidbar"
512 msgstr "Bamidbar"
513
514 #: src/hdate_strings.c:381 src/hdate_strings.c:444
515 msgid "Nasso"
516 msgstr "Nasso"
517
518 #: src/hdate_strings.c:382 src/hdate_strings.c:445
519 msgid "Beha'alotcha"
520 msgstr "Beha'alotcha"
521
522 #: src/hdate_strings.c:383 src/hdate_strings.c:446
523 msgid "Sh'lach"
524 msgstr "Shalach"
525
526 #: src/hdate_strings.c:384 src/hdate_strings.c:447
527 msgid "Korach"
528 msgstr "Korach"
529
530 #: src/hdate_strings.c:385 src/hdate_strings.c:448
531 msgid "Chukat"
532 msgstr "Chukat"
533
534 #: src/hdate_strings.c:386 src/hdate_strings.c:449
535 msgid "Balak"
536 msgstr "Balak"
537
538 #: src/hdate_strings.c:387 src/hdate_strings.c:450
539 msgid "Pinchas"
540 msgstr "Pinchas"
541
542 #: src/hdate_strings.c:388 src/hdate_strings.c:451
543 msgid "Matot"
544 msgstr "Matot"
545
546 #: src/hdate_strings.c:389 src/hdate_strings.c:452
547 msgid "Masei"
548 msgstr "Masei"
549
550 #: src/hdate_strings.c:390 src/hdate_strings.c:453
551 msgid "Devarim"
552 msgstr "Devarim"
553
554 #: src/hdate_strings.c:391 src/hdate_strings.c:454
555 msgid "Vaetchanan"
556 msgstr "Vaetchanan"
557
558 #: src/hdate_strings.c:392 src/hdate_strings.c:455
559 msgid "Eikev"
560 msgstr "Eikev"
561
562 #: src/hdate_strings.c:393 src/hdate_strings.c:456
563 msgid "Re'eh"
564 msgstr "Re'é"
565
566 #: src/hdate_strings.c:394 src/hdate_strings.c:457
567 msgid "Shoftim"
568 msgstr "Shoftim"
569
570 #: src/hdate_strings.c:395 src/hdate_strings.c:458
571 msgid "Ki Teitzei"
572 msgstr "Ki Teitzei"
573
574 #: src/hdate_strings.c:396 src/hdate_strings.c:459
575 msgid "Ki Tavo"
576 msgstr "Ki Tavó"
577
578 #: src/hdate_strings.c:397 src/hdate_strings.c:460
579 msgid "Nitzavim"
580 msgstr "Nitzavim"
581
582 #: src/hdate_strings.c:398 src/hdate_strings.c:461
583 msgid "Vayeilech"
584 msgstr "Vayeilech"
585
586 #: src/hdate_strings.c:399 src/hdate_strings.c:462
587 msgid "Ha'Azinu"
588 msgstr "Ha'Azinu"
589
590 #: src/hdate_strings.c:400 src/hdate_strings.c:463
591 msgid "Vezot Habracha"
592 msgstr "Vezot Haberacha"
593
594 #: src/hdate_strings.c:401 src/hdate_strings.c:464
595 msgid "Vayakhel-Pekudei"
596 msgstr "Vayakhel-Pekudei"
597
598 #: src/hdate_strings.c:402 src/hdate_strings.c:465
599 msgid "Tazria-Metzora"
600 msgstr "Tazría-Metzora"
601
602 #: src/hdate_strings.c:403 src/hdate_strings.c:466
603 msgid "Achrei Mot-Kedoshim"
604 msgstr "Achrei Mot-Kedoshim"
605
606 #: src/hdate_strings.c:404 src/hdate_strings.c:467
607 msgid "Behar-Bechukotai"
608 msgstr "Bechar-Bechukotai"
609
610 #: src/hdate_strings.c:405 src/hdate_strings.c:468
611 msgid "Chukat-Balak"
612 msgstr "Chukat-Balak"
613
614 #: src/hdate_strings.c:406 src/hdate_strings.c:469
615 msgid "Matot-Masei"
616 msgstr "Matot-Masei"
617
618 #: src/hdate_strings.c:407 src/hdate_strings.c:470
619 msgid "Nitzavim-Vayeilech"
620 msgstr "Nitzavim-Vayeilech"
621
622 #: src/hdate_strings.c:568 src/hdate_strings.c:572
623 msgid "translator"
624 msgstr "Yaacov Zamir"
current/po/he.gmo less more
Binary diff not shown
+0
-625
current/po/he.po less more
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: 2008-01-11 18:45+0200\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:278
223 msgid "Rosh Hashana I"
224 msgstr "א ראש השנה"
225
226 #: src/hdate_strings.c:242 src/hdate_strings.c:279
227 msgid "Rosh Hashana II"
228 msgstr "ב ראש השנה"
229
230 #: src/hdate_strings.c:243 src/hdate_strings.c:280
231 msgid "Tzom Gedaliah"
232 msgstr "צום גדליה"
233
234 #: src/hdate_strings.c:244 src/hdate_strings.c:281
235 msgid "Yom Kippur"
236 msgstr "יום כיפור"
237
238 #: src/hdate_strings.c:245 src/hdate_strings.c:282
239 msgid "Sukkot"
240 msgstr "סוכות"
241
242 #: src/hdate_strings.c:246 src/hdate_strings.c:283
243 msgid "Hol hamoed Sukkot"
244 msgstr "חול המועד סוכות"
245
246 #: src/hdate_strings.c:247 src/hdate_strings.c:284
247 msgid "Hoshana raba"
248 msgstr "הושענה רבה"
249
250 #: src/hdate_strings.c:248 src/hdate_strings.c:285
251 msgid "Simchat Torah"
252 msgstr "שמחת תורה"
253
254 #: src/hdate_strings.c:249 src/hdate_strings.c:286
255 msgid "Chanukah"
256 msgstr "חנוכה"
257
258 #: src/hdate_strings.c:250 src/hdate_strings.c:287
259 msgid "Asara B'Tevet"
260 msgstr "עשרה בטבת"
261
262 #: src/hdate_strings.c:251 src/hdate_strings.c:288
263 msgid "Tu B'Shvat"
264 msgstr "טו בשבט"
265
266 #: src/hdate_strings.c:252 src/hdate_strings.c:289
267 msgid "Ta'anit Esther"
268 msgstr "תענית אסתר"
269
270 #: src/hdate_strings.c:253 src/hdate_strings.c:290
271 msgid "Purim"
272 msgstr "פורים"
273
274 #: src/hdate_strings.c:254 src/hdate_strings.c:291
275 msgid "Shushan Purim"
276 msgstr "שושן פורים"
277
278 #: src/hdate_strings.c:255 src/hdate_strings.c:292
279 msgid "Pesach"
280 msgstr "פסח"
281
282 #: src/hdate_strings.c:256 src/hdate_strings.c:293
283 msgid "Hol hamoed Pesach"
284 msgstr "חול המועד פסח"
285
286 #: src/hdate_strings.c:257 src/hdate_strings.c:294
287 msgid "Yom HaAtzma'ut"
288 msgstr "יום העצמאות"
289
290 #: src/hdate_strings.c:258 src/hdate_strings.c:295
291 msgid "Lag B'Omer"
292 msgstr "לג בעומר"
293
294 #: src/hdate_strings.c:259 src/hdate_strings.c:296
295 msgid "Erev Shavuot"
296 msgstr "ערב שבועות"
297
298 #: src/hdate_strings.c:260 src/hdate_strings.c:297
299 msgid "Shavuot"
300 msgstr "שבועות"
301
302 #: src/hdate_strings.c:261 src/hdate_strings.c:298
303 msgid "Tzom Tammuz"
304 msgstr "יז תמוז"
305
306 #: src/hdate_strings.c:262 src/hdate_strings.c:299
307 msgid "Tish'a B'Av"
308 msgstr "תשעה באב"
309
310 #: src/hdate_strings.c:263 src/hdate_strings.c:300
311 msgid "Tu B'Av"
312 msgstr "טו באב"
313
314 #: src/hdate_strings.c:264 src/hdate_strings.c:301
315 msgid "Yom HaShoah"
316 msgstr "יום השואה"
317
318 #: src/hdate_strings.c:265 src/hdate_strings.c:302
319 msgid "Yom HaZikaron"
320 msgstr "יום הזיכרון"
321
322 #: src/hdate_strings.c:266 src/hdate_strings.c:303
323 msgid "Yom Yerushalayim"
324 msgstr "יום ירושלים"
325
326 #: src/hdate_strings.c:267 src/hdate_strings.c:304
327 msgid "Shmini Atzeret"
328 msgstr "שמיני עצרת"
329
330 #: src/hdate_strings.c:268 src/hdate_strings.c:305
331 msgid "Pesach VII"
332 msgstr "שביעי של פסח"
333
334 #: src/hdate_strings.c:269 src/hdate_strings.c:306
335 msgid "Pesach VIII"
336 msgstr "שמיני של פסח"
337
338 #: src/hdate_strings.c:270 src/hdate_strings.c:307
339 msgid "Shavuot II"
340 msgstr "שני של שבועות"
341
342 #: src/hdate_strings.c:271 src/hdate_strings.c:308
343 msgid "Sukkot II"
344 msgstr "סוכות שני"
345
346 #: src/hdate_strings.c:272 src/hdate_strings.c:309
347 msgid "Pesach II"
348 msgstr "שני של פסח"
349
350 #: src/hdate_strings.c:273 src/hdate_strings.c:310
351 msgid "Family Day"
352 msgstr "יום המשפחה"
353
354 #: src/hdate_strings.c:274 src/hdate_strings.c:311
355 msgid "Memorial day for fallen whose place of burial is unknown"
356 msgstr "יום הזכרון לחללי מלחמות ישראל שמקום קבורתם לא נודע"
357
358 #: src/hdate_strings.c:275
359 msgid "Rabin memorial day"
360 msgstr "יום הזכון ליצחק רבין"
361
362 #: src/hdate_strings.c:276
363 msgid "Zhabotinsky day"
364 msgstr "יום זבוטינסקי"
365
366 #: src/hdate_strings.c:312
367 msgid "Yitzhak Rabin memorial day"
368 msgstr "יום הזכרון ליצחק רבין"
369
370 #: src/hdate_strings.c:313
371 msgid "Zeev Zhabotinsky day"
372 msgstr "יום זאב זבוטינסקי"
373
374 #: src/hdate_strings.c:346 src/hdate_strings.c:409
375 msgid "none"
376 msgstr "חסר"
377
378 #: src/hdate_strings.c:347 src/hdate_strings.c:410
379 msgid "Bereshit"
380 msgstr "בראשית"
381
382 #: src/hdate_strings.c:348 src/hdate_strings.c:411
383 msgid "Noach"
384 msgstr "נח"
385
386 #: src/hdate_strings.c:349 src/hdate_strings.c:412
387 msgid "Lech-Lecha"
388 msgstr "לך לך"
389
390 #: src/hdate_strings.c:350 src/hdate_strings.c:413
391 msgid "Vayera"
392 msgstr "וירא"
393
394 #: src/hdate_strings.c:351 src/hdate_strings.c:414
395 msgid "Chayei Sara"
396 msgstr "חיי שרה"
397
398 #: src/hdate_strings.c:352 src/hdate_strings.c:415
399 msgid "Toldot"
400 msgstr "תולדות"
401
402 #: src/hdate_strings.c:353 src/hdate_strings.c:416
403 msgid "Vayetzei"
404 msgstr "ויצא"
405
406 #: src/hdate_strings.c:354 src/hdate_strings.c:417
407 msgid "Vayishlach"
408 msgstr "וישלח"
409
410 #: src/hdate_strings.c:355 src/hdate_strings.c:418
411 msgid "Vayeshev"
412 msgstr "וישב"
413
414 #: src/hdate_strings.c:356 src/hdate_strings.c:419
415 msgid "Miketz"
416 msgstr "מקץ"
417
418 #: src/hdate_strings.c:357 src/hdate_strings.c:420
419 msgid "Vayigash"
420 msgstr "ויגש"
421
422 #: src/hdate_strings.c:358 src/hdate_strings.c:421
423 msgid "Vayechi"
424 msgstr "ויחי"
425
426 #: src/hdate_strings.c:359 src/hdate_strings.c:422
427 msgid "Shemot"
428 msgstr "שמות"
429
430 #: src/hdate_strings.c:360 src/hdate_strings.c:423
431 msgid "Vaera"
432 msgstr "וארא"
433
434 #: src/hdate_strings.c:361 src/hdate_strings.c:424
435 msgid "Bo"
436 msgstr "בא"
437
438 #: src/hdate_strings.c:362 src/hdate_strings.c:425
439 msgid "Beshalach"
440 msgstr "בשלח"
441
442 #: src/hdate_strings.c:363 src/hdate_strings.c:426
443 msgid "Yitro"
444 msgstr "יתרו"
445
446 #: src/hdate_strings.c:364 src/hdate_strings.c:427
447 msgid "Mishpatim"
448 msgstr "משפטים"
449
450 #: src/hdate_strings.c:365 src/hdate_strings.c:428
451 msgid "Terumah"
452 msgstr "תרומה"
453
454 #: src/hdate_strings.c:366 src/hdate_strings.c:429
455 msgid "Tetzaveh"
456 msgstr "תצווה"
457
458 #: src/hdate_strings.c:367 src/hdate_strings.c:430
459 msgid "Ki Tisa"
460 msgstr "כי תשא"
461
462 #: src/hdate_strings.c:368 src/hdate_strings.c:431
463 msgid "Vayakhel"
464 msgstr "ויקהל"
465
466 #: src/hdate_strings.c:369 src/hdate_strings.c:432
467 msgid "Pekudei"
468 msgstr "פקודי"
469
470 #: src/hdate_strings.c:370 src/hdate_strings.c:433
471 msgid "Vayikra"
472 msgstr "ויקרא"
473
474 #: src/hdate_strings.c:371 src/hdate_strings.c:434
475 msgid "Tzav"
476 msgstr "צו"
477
478 #: src/hdate_strings.c:372 src/hdate_strings.c:435
479 msgid "Shmini"
480 msgstr "שמיני"
481
482 #: src/hdate_strings.c:373 src/hdate_strings.c:436
483 msgid "Tazria"
484 msgstr "תזריע"
485
486 #: src/hdate_strings.c:374 src/hdate_strings.c:437
487 msgid "Metzora"
488 msgstr "מצורע"
489
490 #: src/hdate_strings.c:375 src/hdate_strings.c:438
491 msgid "Achrei Mot"
492 msgstr "אחרי מות"
493
494 #: src/hdate_strings.c:376 src/hdate_strings.c:439
495 msgid "Kedoshim"
496 msgstr "קדושים"
497
498 #: src/hdate_strings.c:377 src/hdate_strings.c:440
499 msgid "Emor"
500 msgstr "אמור"
501
502 #: src/hdate_strings.c:378 src/hdate_strings.c:441
503 msgid "Behar"
504 msgstr "בהר"
505
506 #: src/hdate_strings.c:379 src/hdate_strings.c:442
507 msgid "Bechukotai"
508 msgstr "בחוקותי"
509
510 #: src/hdate_strings.c:380 src/hdate_strings.c:443
511 msgid "Bamidbar"
512 msgstr "במדבר"
513
514 #: src/hdate_strings.c:381 src/hdate_strings.c:444
515 msgid "Nasso"
516 msgstr "נשא"
517
518 #: src/hdate_strings.c:382 src/hdate_strings.c:445
519 msgid "Beha'alotcha"
520 msgstr "בהעלותך"
521
522 #: src/hdate_strings.c:383 src/hdate_strings.c:446
523 msgid "Sh'lach"
524 msgstr "שלח"
525
526 #: src/hdate_strings.c:384 src/hdate_strings.c:447
527 msgid "Korach"
528 msgstr "קרח"
529
530 #: src/hdate_strings.c:385 src/hdate_strings.c:448
531 msgid "Chukat"
532 msgstr "חוקת"
533
534 #: src/hdate_strings.c:386 src/hdate_strings.c:449
535 msgid "Balak"
536 msgstr "בלק"
537
538 #: src/hdate_strings.c:387 src/hdate_strings.c:450
539 msgid "Pinchas"
540 msgstr "פינחס"
541
542 #: src/hdate_strings.c:388 src/hdate_strings.c:451
543 msgid "Matot"
544 msgstr "מטות"
545
546 #: src/hdate_strings.c:389 src/hdate_strings.c:452
547 msgid "Masei"
548 msgstr "מסעי"
549
550 #: src/hdate_strings.c:390 src/hdate_strings.c:453
551 msgid "Devarim"
552 msgstr "דברים"
553
554 #: src/hdate_strings.c:391 src/hdate_strings.c:454
555 msgid "Vaetchanan"
556 msgstr "ואתחנן"
557
558 #: src/hdate_strings.c:392 src/hdate_strings.c:455
559 msgid "Eikev"
560 msgstr "עקב"
561
562 #: src/hdate_strings.c:393 src/hdate_strings.c:456
563 msgid "Re'eh"
564 msgstr "ראה"
565
566 #: src/hdate_strings.c:394 src/hdate_strings.c:457
567 msgid "Shoftim"
568 msgstr "שופטים"
569
570 #: src/hdate_strings.c:395 src/hdate_strings.c:458
571 msgid "Ki Teitzei"
572 msgstr "כי תצא"
573
574 #: src/hdate_strings.c:396 src/hdate_strings.c:459
575 msgid "Ki Tavo"
576 msgstr "כי תבוא"
577
578 #: src/hdate_strings.c:397 src/hdate_strings.c:460
579 msgid "Nitzavim"
580 msgstr "נצבים"
581
582 #: src/hdate_strings.c:398 src/hdate_strings.c:461
583 msgid "Vayeilech"
584 msgstr "וילך"
585
586 #: src/hdate_strings.c:399 src/hdate_strings.c:462
587 msgid "Ha'Azinu"
588 msgstr "האזינו"
589
590 #: src/hdate_strings.c:400 src/hdate_strings.c:463
591 msgid "Vezot Habracha"
592 msgstr "וזאת הברכה"
593
594 #: src/hdate_strings.c:401 src/hdate_strings.c:464
595 msgid "Vayakhel-Pekudei"
596 msgstr "ויקהל פקודי"
597
598 #: src/hdate_strings.c:402 src/hdate_strings.c:465
599 msgid "Tazria-Metzora"
600 msgstr "תזריע מצורע"
601
602 #: src/hdate_strings.c:403 src/hdate_strings.c:466
603 msgid "Achrei Mot-Kedoshim"
604 msgstr "אחרי מות קדושים"
605
606 #: src/hdate_strings.c:404 src/hdate_strings.c:467
607 msgid "Behar-Bechukotai"
608 msgstr "בהר בחוקותי"
609
610 #: src/hdate_strings.c:405 src/hdate_strings.c:468
611 msgid "Chukat-Balak"
612 msgstr "חוקת בלק"
613
614 #: src/hdate_strings.c:406 src/hdate_strings.c:469
615 msgid "Matot-Masei"
616 msgstr "מטות מסעי"
617
618 #: src/hdate_strings.c:407 src/hdate_strings.c:470
619 msgid "Nitzavim-Vayeilech"
620 msgstr "נצבים וילך"
621
622 #: src/hdate_strings.c:568 src/hdate_strings.c:572
623 msgid "translator"
624 msgstr "יעקב זמיר"
+0
-23
current/po/insert-header.sin less more
0 # Sed script that inserts the file called HEADER before the header entry.
1 #
2 # At each occurrence of a line starting with "msgid ", we execute the following
3 # commands. At the first occurrence, insert the file. At the following
4 # occurrences, do nothing. The distinction between the first and the following
5 # occurrences is achieved by looking at the hold space.
6 /^msgid /{
7 x
8 # Test if the hold space is empty.
9 s/m/m/
10 ta
11 # Yes it was empty. First occurrence. Read the file.
12 r HEADER
13 # Output the file's contents by reading the next line. But don't lose the
14 # current line while doing this.
15 g
16 N
17 bb
18 :a
19 # The hold space was nonempty. Following occurrences. Do nothing.
20 x
21 :b
22 }
+0
-625
current/po/libhdate.pot less more
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR Free Software Foundation, Inc.
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: libhdate 1.4.11\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2008-01-11 18:45+0200\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:278
223 msgid "Rosh Hashana I"
224 msgstr ""
225
226 #: src/hdate_strings.c:242 src/hdate_strings.c:279
227 msgid "Rosh Hashana II"
228 msgstr ""
229
230 #: src/hdate_strings.c:243 src/hdate_strings.c:280
231 msgid "Tzom Gedaliah"
232 msgstr ""
233
234 #: src/hdate_strings.c:244 src/hdate_strings.c:281
235 msgid "Yom Kippur"
236 msgstr ""
237
238 #: src/hdate_strings.c:245 src/hdate_strings.c:282
239 msgid "Sukkot"
240 msgstr ""
241
242 #: src/hdate_strings.c:246 src/hdate_strings.c:283
243 msgid "Hol hamoed Sukkot"
244 msgstr ""
245
246 #: src/hdate_strings.c:247 src/hdate_strings.c:284
247 msgid "Hoshana raba"
248 msgstr ""
249
250 #: src/hdate_strings.c:248 src/hdate_strings.c:285
251 msgid "Simchat Torah"
252 msgstr ""
253
254 #: src/hdate_strings.c:249 src/hdate_strings.c:286
255 msgid "Chanukah"
256 msgstr ""
257
258 #: src/hdate_strings.c:250 src/hdate_strings.c:287
259 msgid "Asara B'Tevet"
260 msgstr ""
261
262 #: src/hdate_strings.c:251 src/hdate_strings.c:288
263 msgid "Tu B'Shvat"
264 msgstr ""
265
266 #: src/hdate_strings.c:252 src/hdate_strings.c:289
267 msgid "Ta'anit Esther"
268 msgstr ""
269
270 #: src/hdate_strings.c:253 src/hdate_strings.c:290
271 msgid "Purim"
272 msgstr ""
273
274 #: src/hdate_strings.c:254 src/hdate_strings.c:291
275 msgid "Shushan Purim"
276 msgstr ""
277
278 #: src/hdate_strings.c:255 src/hdate_strings.c:292
279 msgid "Pesach"
280 msgstr ""
281
282 #: src/hdate_strings.c:256 src/hdate_strings.c:293
283 msgid "Hol hamoed Pesach"
284 msgstr ""
285
286 #: src/hdate_strings.c:257 src/hdate_strings.c:294
287 msgid "Yom HaAtzma'ut"
288 msgstr ""
289
290 #: src/hdate_strings.c:258 src/hdate_strings.c:295
291 msgid "Lag B'Omer"
292 msgstr ""
293
294 #: src/hdate_strings.c:259 src/hdate_strings.c:296
295 msgid "Erev Shavuot"
296 msgstr ""
297
298 #: src/hdate_strings.c:260 src/hdate_strings.c:297
299 msgid "Shavuot"
300 msgstr ""
301
302 #: src/hdate_strings.c:261 src/hdate_strings.c:298
303 msgid "Tzom Tammuz"
304 msgstr ""
305
306 #: src/hdate_strings.c:262 src/hdate_strings.c:299
307 msgid "Tish'a B'Av"
308 msgstr ""
309
310 #: src/hdate_strings.c:263 src/hdate_strings.c:300
311 msgid "Tu B'Av"
312 msgstr ""
313
314 #: src/hdate_strings.c:264 src/hdate_strings.c:301
315 msgid "Yom HaShoah"
316 msgstr ""
317
318 #: src/hdate_strings.c:265 src/hdate_strings.c:302
319 msgid "Yom HaZikaron"
320 msgstr ""
321
322 #: src/hdate_strings.c:266 src/hdate_strings.c:303
323 msgid "Yom Yerushalayim"
324 msgstr ""
325
326 #: src/hdate_strings.c:267 src/hdate_strings.c:304
327 msgid "Shmini Atzeret"
328 msgstr ""
329
330 #: src/hdate_strings.c:268 src/hdate_strings.c:305
331 msgid "Pesach VII"
332 msgstr ""
333
334 #: src/hdate_strings.c:269 src/hdate_strings.c:306
335 msgid "Pesach VIII"
336 msgstr ""
337
338 #: src/hdate_strings.c:270 src/hdate_strings.c:307
339 msgid "Shavuot II"
340 msgstr ""
341
342 #: src/hdate_strings.c:271 src/hdate_strings.c:308
343 msgid "Sukkot II"
344 msgstr ""
345
346 #: src/hdate_strings.c:272 src/hdate_strings.c:309
347 msgid "Pesach II"
348 msgstr ""
349
350 #: src/hdate_strings.c:273 src/hdate_strings.c:310
351 msgid "Family Day"
352 msgstr ""
353
354 #: src/hdate_strings.c:274 src/hdate_strings.c:311
355 msgid "Memorial day for fallen whose place of burial is unknown"
356 msgstr ""
357
358 #: src/hdate_strings.c:275
359 msgid "Rabin memorial day"
360 msgstr ""
361
362 #: src/hdate_strings.c:276
363 msgid "Zhabotinsky day"
364 msgstr ""
365
366 #: src/hdate_strings.c:312
367 msgid "Yitzhak Rabin memorial day"
368 msgstr ""
369
370 #: src/hdate_strings.c:313
371 msgid "Zeev Zhabotinsky day"
372 msgstr ""
373
374 #: src/hdate_strings.c:346 src/hdate_strings.c:409
375 msgid "none"
376 msgstr ""
377
378 #: src/hdate_strings.c:347 src/hdate_strings.c:410
379 msgid "Bereshit"
380 msgstr ""
381
382 #: src/hdate_strings.c:348 src/hdate_strings.c:411
383 msgid "Noach"
384 msgstr ""
385
386 #: src/hdate_strings.c:349 src/hdate_strings.c:412
387 msgid "Lech-Lecha"
388 msgstr ""
389
390 #: src/hdate_strings.c:350 src/hdate_strings.c:413
391 msgid "Vayera"
392 msgstr ""
393
394 #: src/hdate_strings.c:351 src/hdate_strings.c:414
395 msgid "Chayei Sara"
396 msgstr ""
397
398 #: src/hdate_strings.c:352 src/hdate_strings.c:415
399 msgid "Toldot"
400 msgstr ""
401
402 #: src/hdate_strings.c:353 src/hdate_strings.c:416
403 msgid "Vayetzei"
404 msgstr ""
405
406 #: src/hdate_strings.c:354 src/hdate_strings.c:417
407 msgid "Vayishlach"
408 msgstr ""
409
410 #: src/hdate_strings.c:355 src/hdate_strings.c:418
411 msgid "Vayeshev"
412 msgstr ""
413
414 #: src/hdate_strings.c:356 src/hdate_strings.c:419
415 msgid "Miketz"
416 msgstr ""
417
418 #: src/hdate_strings.c:357 src/hdate_strings.c:420
419 msgid "Vayigash"
420 msgstr ""
421
422 #: src/hdate_strings.c:358 src/hdate_strings.c:421
423 msgid "Vayechi"
424 msgstr ""
425
426 #: src/hdate_strings.c:359 src/hdate_strings.c:422
427 msgid "Shemot"
428 msgstr ""
429
430 #: src/hdate_strings.c:360 src/hdate_strings.c:423
431 msgid "Vaera"
432 msgstr ""
433
434 #: src/hdate_strings.c:361 src/hdate_strings.c:424
435 msgid "Bo"
436 msgstr ""
437
438 #: src/hdate_strings.c:362 src/hdate_strings.c:425
439 msgid "Beshalach"
440 msgstr ""
441
442 #: src/hdate_strings.c:363 src/hdate_strings.c:426
443 msgid "Yitro"
444 msgstr ""
445
446 #: src/hdate_strings.c:364 src/hdate_strings.c:427
447 msgid "Mishpatim"
448 msgstr ""
449
450 #: src/hdate_strings.c:365 src/hdate_strings.c:428
451 msgid "Terumah"
452 msgstr ""
453
454 #: src/hdate_strings.c:366 src/hdate_strings.c:429
455 msgid "Tetzaveh"
456 msgstr ""
457
458 #: src/hdate_strings.c:367 src/hdate_strings.c:430
459 msgid "Ki Tisa"
460 msgstr ""
461
462 #: src/hdate_strings.c:368 src/hdate_strings.c:431
463 msgid "Vayakhel"
464 msgstr ""
465
466 #: src/hdate_strings.c:369 src/hdate_strings.c:432
467 msgid "Pekudei"
468 msgstr ""
469
470 #: src/hdate_strings.c:370 src/hdate_strings.c:433
471 msgid "Vayikra"
472 msgstr ""
473
474 #: src/hdate_strings.c:371 src/hdate_strings.c:434
475 msgid "Tzav"
476 msgstr ""
477
478 #: src/hdate_strings.c:372 src/hdate_strings.c:435
479 msgid "Shmini"
480 msgstr ""
481
482 #: src/hdate_strings.c:373 src/hdate_strings.c:436
483 msgid "Tazria"
484 msgstr ""
485
486 #: src/hdate_strings.c:374 src/hdate_strings.c:437
487 msgid "Metzora"
488 msgstr ""
489
490 #: src/hdate_strings.c:375 src/hdate_strings.c:438
491 msgid "Achrei Mot"
492 msgstr ""
493
494 #: src/hdate_strings.c:376 src/hdate_strings.c:439
495 msgid "Kedoshim"
496 msgstr ""
497
498 #: src/hdate_strings.c:377 src/hdate_strings.c:440
499 msgid "Emor"
500 msgstr ""
501
502 #: src/hdate_strings.c:378 src/hdate_strings.c:441
503 msgid "Behar"
504 msgstr ""
505
506 #: src/hdate_strings.c:379 src/hdate_strings.c:442
507 msgid "Bechukotai"
508 msgstr ""
509
510 #: src/hdate_strings.c:380 src/hdate_strings.c:443
511 msgid "Bamidbar"
512 msgstr ""
513
514 #: src/hdate_strings.c:381 src/hdate_strings.c:444
515 msgid "Nasso"
516 msgstr ""
517
518 #: src/hdate_strings.c:382 src/hdate_strings.c:445
519 msgid "Beha'alotcha"
520 msgstr ""
521
522 #: src/hdate_strings.c:383 src/hdate_strings.c:446
523 msgid "Sh'lach"
524 msgstr ""
525
526 #: src/hdate_strings.c:384 src/hdate_strings.c:447
527 msgid "Korach"
528 msgstr ""
529
530 #: src/hdate_strings.c:385 src/hdate_strings.c:448
531 msgid "Chukat"
532 msgstr ""
533
534 #: src/hdate_strings.c:386 src/hdate_strings.c:449
535 msgid "Balak"
536 msgstr ""
537
538 #: src/hdate_strings.c:387 src/hdate_strings.c:450
539 msgid "Pinchas"
540 msgstr ""
541
542 #: src/hdate_strings.c:388 src/hdate_strings.c:451
543 msgid "Matot"
544 msgstr ""
545
546 #: src/hdate_strings.c:389 src/hdate_strings.c:452
547 msgid "Masei"
548 msgstr ""
549
550 #: src/hdate_strings.c:390 src/hdate_strings.c:453
551 msgid "Devarim"
552 msgstr ""
553
554 #: src/hdate_strings.c:391 src/hdate_strings.c:454
555 msgid "Vaetchanan"
556 msgstr ""
557
558 #: src/hdate_strings.c:392 src/hdate_strings.c:455
559 msgid "Eikev"
560 msgstr ""
561
562 #: src/hdate_strings.c:393 src/hdate_strings.c:456
563 msgid "Re'eh"
564 msgstr ""
565
566 #: src/hdate_strings.c:394 src/hdate_strings.c:457
567 msgid "Shoftim"
568 msgstr ""
569
570 #: src/hdate_strings.c:395 src/hdate_strings.c:458
571 msgid "Ki Teitzei"
572 msgstr ""
573
574 #: src/hdate_strings.c:396 src/hdate_strings.c:459
575 msgid "Ki Tavo"
576 msgstr ""
577
578 #: src/hdate_strings.c:397 src/hdate_strings.c:460
579 msgid "Nitzavim"
580 msgstr ""
581
582 #: src/hdate_strings.c:398 src/hdate_strings.c:461
583 msgid "Vayeilech"
584 msgstr ""
585
586 #: src/hdate_strings.c:399 src/hdate_strings.c:462
587 msgid "Ha'Azinu"
588 msgstr ""
589
590 #: src/hdate_strings.c:400 src/hdate_strings.c:463
591 msgid "Vezot Habracha"
592 msgstr ""
593
594 #: src/hdate_strings.c:401 src/hdate_strings.c:464
595 msgid "Vayakhel-Pekudei"
596 msgstr ""
597
598 #: src/hdate_strings.c:402 src/hdate_strings.c:465
599 msgid "Tazria-Metzora"
600 msgstr ""
601
602 #: src/hdate_strings.c:403 src/hdate_strings.c:466
603 msgid "Achrei Mot-Kedoshim"
604 msgstr ""
605
606 #: src/hdate_strings.c:404 src/hdate_strings.c:467
607 msgid "Behar-Bechukotai"
608 msgstr ""
609
610 #: src/hdate_strings.c:405 src/hdate_strings.c:468
611 msgid "Chukat-Balak"
612 msgstr ""
613
614 #: src/hdate_strings.c:406 src/hdate_strings.c:469
615 msgid "Matot-Masei"
616 msgstr ""
617
618 #: src/hdate_strings.c:407 src/hdate_strings.c:470
619 msgid "Nitzavim-Vayeilech"
620 msgstr ""
621
622 #: src/hdate_strings.c:568 src/hdate_strings.c:572
623 msgid "translator"
624 msgstr ""
+0
-6
current/po/quot.sed less more
0 s/"\([^"]*\)"/“\1”/g
1 s/`\([^`']*\)'/‘\1’/g
2 s/ '\([^`']*\)' / ‘\1’ /g
3 s/ '\([^`']*\)'$/ ‘\1’/g
4 s/^'\([^`']*\)' /‘\1’ /g
5 s/“”/""/g
+0
-19
current/po/remove-potcdate.sin less more
0 # Sed script that remove the POT-Creation-Date line in the header entry
1 # from a POT file.
2 #
3 # The distinction between the first and the following occurrences of the
4 # pattern is achieved by looking at the hold space.
5 /^"POT-Creation-Date: .*"$/{
6 x
7 # Test if the hold space is empty.
8 s/P/P/
9 ta
10 # Yes it was empty. First occurrence. Remove the line.
11 g
12 d
13 bb
14 :a
15 # The hold space was nonempty. Following occurrences. Do nothing.
16 x
17 :b
18 }
current/po/ru.gmo less more
Binary diff not shown
+0
-627
current/po/ru.po less more
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: 2008-01-11 18:45+0200\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:278
223 msgid "Rosh Hashana I"
224 msgstr "Рош-а-Шана I"
225
226 #: src/hdate_strings.c:242 src/hdate_strings.c:279
227 msgid "Rosh Hashana II"
228 msgstr "Рош-а-Шана II"
229
230 #: src/hdate_strings.c:243 src/hdate_strings.c:280
231 msgid "Tzom Gedaliah"
232 msgstr "Цом гдаляа"
233
234 #: src/hdate_strings.c:244 src/hdate_strings.c:281
235 msgid "Yom Kippur"
236 msgstr "Йом Кипур"
237
238 #: src/hdate_strings.c:245 src/hdate_strings.c:282
239 msgid "Sukkot"
240 msgstr "Суккот I"
241
242 #: src/hdate_strings.c:246 src/hdate_strings.c:283
243 msgid "Hol hamoed Sukkot"
244 msgstr "Суккот"
245
246 #: src/hdate_strings.c:247 src/hdate_strings.c:284
247 msgid "Hoshana raba"
248 msgstr "hoшана Раба"
249
250 #: src/hdate_strings.c:248 src/hdate_strings.c:285
251 msgid "Simchat Torah"
252 msgstr "Симхат-Тора"
253
254 #: src/hdate_strings.c:249 src/hdate_strings.c:286
255 msgid "Chanukah"
256 msgstr "Ханука"
257
258 #: src/hdate_strings.c:250 src/hdate_strings.c:287
259 msgid "Asara B'Tevet"
260 msgstr "Десятое Тевета"
261
262 #: src/hdate_strings.c:251 src/hdate_strings.c:288
263 msgid "Tu B'Shvat"
264 msgstr "Ту би-Шват"
265
266 #: src/hdate_strings.c:252 src/hdate_strings.c:289
267 msgid "Ta'anit Esther"
268 msgstr "Танйт зстер"
269
270 #: src/hdate_strings.c:253 src/hdate_strings.c:290
271 msgid "Purim"
272 msgstr "Пурим"
273
274 #: src/hdate_strings.c:254 src/hdate_strings.c:291
275 msgid "Shushan Purim"
276 msgstr "Ш. Пурим"
277
278 #: src/hdate_strings.c:255 src/hdate_strings.c:292
279 msgid "Pesach"
280 msgstr "Пэсах I"
281
282 #: src/hdate_strings.c:256 src/hdate_strings.c:293
283 msgid "Hol hamoed Pesach"
284 msgstr "Песах"
285
286 #: src/hdate_strings.c:257 src/hdate_strings.c:294
287 msgid "Yom HaAtzma'ut"
288 msgstr "День Независимости"
289
290 #: src/hdate_strings.c:258 src/hdate_strings.c:295
291 msgid "Lag B'Omer"
292 msgstr "Лаг ба-Омер"
293
294 #: src/hdate_strings.c:259 src/hdate_strings.c:296
295 msgid "Erev Shavuot"
296 msgstr "Шавуот"
297
298 #: src/hdate_strings.c:260 src/hdate_strings.c:297
299 msgid "Shavuot"
300 msgstr "Шавуот"
301
302 #: src/hdate_strings.c:261 src/hdate_strings.c:298
303 msgid "Tzom Tammuz"
304 msgstr "17 Тамуза"
305
306 #: src/hdate_strings.c:262 src/hdate_strings.c:299
307 msgid "Tish'a B'Av"
308 msgstr "9 Ава"
309
310 #: src/hdate_strings.c:263 src/hdate_strings.c:300
311 msgid "Tu B'Av"
312 msgstr "15-ое Ава"
313
314 #: src/hdate_strings.c:264 src/hdate_strings.c:301
315 msgid "Yom HaShoah"
316 msgstr "День Холокоста"
317
318 #: src/hdate_strings.c:265 src/hdate_strings.c:302
319 msgid "Yom HaZikaron"
320 msgstr "День Памяти"
321
322 #: src/hdate_strings.c:266 src/hdate_strings.c:303
323 msgid "Yom Yerushalayim"
324 msgstr "День Йерусалима"
325
326 #: src/hdate_strings.c:267 src/hdate_strings.c:304
327 msgid "Shmini Atzeret"
328 msgstr "Шмини-Ацерет"
329
330 #: src/hdate_strings.c:268 src/hdate_strings.c:305
331 msgid "Pesach VII"
332 msgstr "Песах VII"
333
334 #: src/hdate_strings.c:269 src/hdate_strings.c:306
335 msgid "Pesach VIII"
336 msgstr "Песах VIII"
337
338 #: src/hdate_strings.c:270 src/hdate_strings.c:307
339 msgid "Shavuot II"
340 msgstr "Шавуот II"
341
342 #: src/hdate_strings.c:271 src/hdate_strings.c:308
343 #, fuzzy
344 msgid "Sukkot II"
345 msgstr "Суккот II"
346
347 #: src/hdate_strings.c:272 src/hdate_strings.c:309
348 #, fuzzy
349 msgid "Pesach II"
350 msgstr "Песах II"
351
352 #: src/hdate_strings.c:273 src/hdate_strings.c:310
353 msgid "Family Day"
354 msgstr ""
355
356 #: src/hdate_strings.c:274 src/hdate_strings.c:311
357 msgid "Memorial day for fallen whose place of burial is unknown"
358 msgstr ""
359
360 #: src/hdate_strings.c:275
361 msgid "Rabin memorial day"
362 msgstr ""
363
364 #: src/hdate_strings.c:276
365 msgid "Zhabotinsky day"
366 msgstr ""
367
368 #: src/hdate_strings.c:312
369 msgid "Yitzhak Rabin memorial day"
370 msgstr ""
371
372 #: src/hdate_strings.c:313
373 msgid "Zeev Zhabotinsky day"
374 msgstr ""
375
376 #: src/hdate_strings.c:346 src/hdate_strings.c:409
377 msgid "none"
378 msgstr "Нет"
379
380 #: src/hdate_strings.c:347 src/hdate_strings.c:410
381 msgid "Bereshit"
382 msgstr ""
383
384 #: src/hdate_strings.c:348 src/hdate_strings.c:411
385 msgid "Noach"
386 msgstr "Ноах"
387
388 #: src/hdate_strings.c:349 src/hdate_strings.c:412
389 msgid "Lech-Lecha"
390 msgstr ""
391
392 #: src/hdate_strings.c:350 src/hdate_strings.c:413
393 msgid "Vayera"
394 msgstr ""
395
396 #: src/hdate_strings.c:351 src/hdate_strings.c:414
397 msgid "Chayei Sara"
398 msgstr "Жизнь Сары"
399
400 #: src/hdate_strings.c:352 src/hdate_strings.c:415
401 msgid "Toldot"
402 msgstr ""
403
404 #: src/hdate_strings.c:353 src/hdate_strings.c:416
405 msgid "Vayetzei"
406 msgstr ""
407
408 #: src/hdate_strings.c:354 src/hdate_strings.c:417
409 msgid "Vayishlach"
410 msgstr ""
411
412 #: src/hdate_strings.c:355 src/hdate_strings.c:418
413 msgid "Vayeshev"
414 msgstr ""
415
416 #: src/hdate_strings.c:356 src/hdate_strings.c:419
417 msgid "Miketz"
418 msgstr ""
419
420 #: src/hdate_strings.c:357 src/hdate_strings.c:420
421 msgid "Vayigash"
422 msgstr ""
423
424 #: src/hdate_strings.c:358 src/hdate_strings.c:421
425 msgid "Vayechi"
426 msgstr ""
427
428 #: src/hdate_strings.c:359 src/hdate_strings.c:422
429 msgid "Shemot"
430 msgstr ""
431
432 #: src/hdate_strings.c:360 src/hdate_strings.c:423
433 msgid "Vaera"
434 msgstr ""
435
436 #: src/hdate_strings.c:361 src/hdate_strings.c:424
437 msgid "Bo"
438 msgstr ""
439
440 #: src/hdate_strings.c:362 src/hdate_strings.c:425
441 msgid "Beshalach"
442 msgstr ""
443
444 #: src/hdate_strings.c:363 src/hdate_strings.c:426
445 msgid "Yitro"
446 msgstr ""
447
448 #: src/hdate_strings.c:364 src/hdate_strings.c:427
449 msgid "Mishpatim"
450 msgstr ""
451
452 #: src/hdate_strings.c:365 src/hdate_strings.c:428
453 msgid "Terumah"
454 msgstr ""
455
456 #: src/hdate_strings.c:366 src/hdate_strings.c:429
457 msgid "Tetzaveh"
458 msgstr ""
459
460 #: src/hdate_strings.c:367 src/hdate_strings.c:430
461 msgid "Ki Tisa"
462 msgstr ""
463
464 #: src/hdate_strings.c:368 src/hdate_strings.c:431
465 msgid "Vayakhel"
466 msgstr ""
467
468 #: src/hdate_strings.c:369 src/hdate_strings.c:432
469 msgid "Pekudei"
470 msgstr ""
471
472 #: src/hdate_strings.c:370 src/hdate_strings.c:433
473 msgid "Vayikra"
474 msgstr ""
475
476 #: src/hdate_strings.c:371 src/hdate_strings.c:434
477 msgid "Tzav"
478 msgstr ""
479
480 #: src/hdate_strings.c:372 src/hdate_strings.c:435
481 msgid "Shmini"
482 msgstr ""
483
484 #: src/hdate_strings.c:373 src/hdate_strings.c:436
485 msgid "Tazria"
486 msgstr ""
487
488 #: src/hdate_strings.c:374 src/hdate_strings.c:437
489 msgid "Metzora"
490 msgstr ""
491
492 #: src/hdate_strings.c:375 src/hdate_strings.c:438
493 msgid "Achrei Mot"
494 msgstr ""
495
496 #: src/hdate_strings.c:376 src/hdate_strings.c:439
497 msgid "Kedoshim"
498 msgstr ""
499
500 #: src/hdate_strings.c:377 src/hdate_strings.c:440
501 msgid "Emor"
502 msgstr ""
503
504 #: src/hdate_strings.c:378 src/hdate_strings.c:441
505 msgid "Behar"
506 msgstr ""
507
508 #: src/hdate_strings.c:379 src/hdate_strings.c:442
509 msgid "Bechukotai"
510 msgstr ""
511
512 #: src/hdate_strings.c:380 src/hdate_strings.c:443
513 msgid "Bamidbar"
514 msgstr ""
515
516 #: src/hdate_strings.c:381 src/hdate_strings.c:444
517 msgid "Nasso"
518 msgstr ""
519
520 #: src/hdate_strings.c:382 src/hdate_strings.c:445
521 msgid "Beha'alotcha"
522 msgstr ""
523
524 #: src/hdate_strings.c:383 src/hdate_strings.c:446
525 msgid "Sh'lach"
526 msgstr ""
527
528 #: src/hdate_strings.c:384 src/hdate_strings.c:447
529 msgid "Korach"
530 msgstr ""
531
532 #: src/hdate_strings.c:385 src/hdate_strings.c:448
533 msgid "Chukat"
534 msgstr ""
535
536 #: src/hdate_strings.c:386 src/hdate_strings.c:449
537 msgid "Balak"
538 msgstr ""
539
540 #: src/hdate_strings.c:387 src/hdate_strings.c:450
541 msgid "Pinchas"
542 msgstr ""
543
544 #: src/hdate_strings.c:388 src/hdate_strings.c:451
545 msgid "Matot"
546 msgstr ""
547
548 #: src/hdate_strings.c:389 src/hdate_strings.c:452
549 msgid "Masei"
550 msgstr ""
551
552 #: src/hdate_strings.c:390 src/hdate_strings.c:453
553 msgid "Devarim"
554 msgstr ""
555
556 #: src/hdate_strings.c:391 src/hdate_strings.c:454
557 msgid "Vaetchanan"
558 msgstr ""
559
560 #: src/hdate_strings.c:392 src/hdate_strings.c:455
561 msgid "Eikev"
562 msgstr ""
563
564 #: src/hdate_strings.c:393 src/hdate_strings.c:456
565 msgid "Re'eh"
566 msgstr ""
567
568 #: src/hdate_strings.c:394 src/hdate_strings.c:457
569 msgid "Shoftim"
570 msgstr ""
571
572 #: src/hdate_strings.c:395 src/hdate_strings.c:458
573 msgid "Ki Teitzei"
574 msgstr ""
575
576 #: src/hdate_strings.c:396 src/hdate_strings.c:459
577 msgid "Ki Tavo"
578 msgstr ""
579
580 #: src/hdate_strings.c:397 src/hdate_strings.c:460
581 msgid "Nitzavim"
582 msgstr ""
583
584 #: src/hdate_strings.c:398 src/hdate_strings.c:461
585 msgid "Vayeilech"
586 msgstr ""
587
588 #: src/hdate_strings.c:399 src/hdate_strings.c:462
589 msgid "Ha'Azinu"
590 msgstr ""
591
592 #: src/hdate_strings.c:400 src/hdate_strings.c:463
593 msgid "Vezot Habracha"
594 msgstr ""
595
596 #: src/hdate_strings.c:401 src/hdate_strings.c:464
597 msgid "Vayakhel-Pekudei"
598 msgstr ""
599
600 #: src/hdate_strings.c:402 src/hdate_strings.c:465
601 msgid "Tazria-Metzora"
602 msgstr ""
603
604 #: src/hdate_strings.c:403 src/hdate_strings.c:466
605 msgid "Achrei Mot-Kedoshim"
606 msgstr ""
607
608 #: src/hdate_strings.c:404 src/hdate_strings.c:467
609 msgid "Behar-Bechukotai"
610 msgstr ""
611
612 #: src/hdate_strings.c:405 src/hdate_strings.c:468
613 msgid "Chukat-Balak"
614 msgstr ""
615
616 #: src/hdate_strings.c:406 src/hdate_strings.c:469
617 msgid "Matot-Masei"
618 msgstr ""
619
620 #: src/hdate_strings.c:407 src/hdate_strings.c:470
621 msgid "Nitzavim-Vayeilech"
622 msgstr ""
623
624 #: src/hdate_strings.c:568 src/hdate_strings.c:572
625 msgid "translator"
626 msgstr "Борис Петербарг"
+0
-1
current/po/stamp-po less more
0 timestamp
current/po/sv.gmo less more
Binary diff not shown
+0
-625
current/po/sv.po less more
0 # Swedish translation of libhdate.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the libhdate package.
3 # Daniel Nylander <po@danielnylander.se>, 2006.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: libhdate\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2008-01-11 18:45+0200\n"
10 "PO-Revision-Date: 2008-01-10 10:26+0100\n"
11 "Last-Translator: Patrik Nilsson <blambi@chebab.com>, Daniel Nylander "
12 "<po@danielnylander.se>\n"
13 "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\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 "Sön"
21
22 #: src/hdate_strings.c:131
23 msgid "Mon"
24 msgstr "Mån"
25
26 #: src/hdate_strings.c:131
27 msgid "Tue"
28 msgstr "Tis"
29
30 #: src/hdate_strings.c:131
31 msgid "Wed"
32 msgstr "Ons"
33
34 #: src/hdate_strings.c:131
35 msgid "Thu"
36 msgstr "Tor"
37
38 #: src/hdate_strings.c:132
39 msgid "Fri"
40 msgstr "Fre"
41
42 #: src/hdate_strings.c:132
43 msgid "Sat"
44 msgstr "Lör"
45
46 #: src/hdate_strings.c:133
47 msgid "Sunday"
48 msgstr "Söndag"
49
50 #: src/hdate_strings.c:133
51 msgid "Monday"
52 msgstr "Måndag"
53
54 #: src/hdate_strings.c:133
55 msgid "Tuesday"
56 msgstr "Tisdag"
57
58 #: src/hdate_strings.c:133
59 msgid "Wednesday"
60 msgstr "Onsdag"
61
62 #: src/hdate_strings.c:134
63 msgid "Thursday"
64 msgstr "Torsdag"
65
66 #: src/hdate_strings.c:134
67 msgid "Friday"
68 msgstr "Fredag"
69
70 #: src/hdate_strings.c:134
71 msgid "Saturday"
72 msgstr "Lördag"
73
74 #: src/hdate_strings.c:165
75 msgid "Jan"
76 msgstr "Jan"
77
78 #: src/hdate_strings.c:165
79 msgid "Feb"
80 msgstr "Feb"
81
82 #: src/hdate_strings.c:165
83 msgid "Mar"
84 msgstr "Mar"
85
86 #: src/hdate_strings.c:165
87 msgid "Apr"
88 msgstr "Apr"
89
90 #: src/hdate_strings.c:165 src/hdate_strings.c:169
91 msgid "May"
92 msgstr "Maj"
93
94 #: src/hdate_strings.c:166
95 msgid "Jun"
96 msgstr "Jun"
97
98 #: src/hdate_strings.c:166
99 msgid "Jul"
100 msgstr "Jul"
101
102 #: src/hdate_strings.c:166
103 msgid "Aug"
104 msgstr "Aug"
105
106 #: src/hdate_strings.c:166
107 msgid "Sep"
108 msgstr "Sep"
109
110 #: src/hdate_strings.c:166
111 msgid "Oct"
112 msgstr "Okt"
113
114 #: src/hdate_strings.c:167
115 msgid "Nov"
116 msgstr "Nov"
117
118 #: src/hdate_strings.c:167
119 msgid "Dec"
120 msgstr "Dec"
121
122 #: src/hdate_strings.c:168
123 msgid "January"
124 msgstr "Januari"
125
126 #: src/hdate_strings.c:168
127 msgid "February"
128 msgstr "Februari"
129
130 #: src/hdate_strings.c:168
131 msgid "March"
132 msgstr "Mars"
133
134 #: src/hdate_strings.c:169
135 msgid "April"
136 msgstr "April"
137
138 #: src/hdate_strings.c:169
139 msgid "June"
140 msgstr "Juni"
141
142 #: src/hdate_strings.c:170
143 msgid "July"
144 msgstr "Juli"
145
146 #: src/hdate_strings.c:170
147 msgid "August"
148 msgstr "Augusti"
149
150 #: src/hdate_strings.c:170
151 msgid "September"
152 msgstr "September"
153
154 #: src/hdate_strings.c:171
155 msgid "October"
156 msgstr "Oktober"
157
158 #: src/hdate_strings.c:171
159 msgid "November"
160 msgstr "November"
161
162 #: src/hdate_strings.c:171
163 msgid "December"
164 msgstr "December"
165
166 #: src/hdate_strings.c:202 src/hdate_strings.c:206
167 msgid "Tishrei"
168 msgstr "Tishrei"
169
170 #: src/hdate_strings.c:202 src/hdate_strings.c:206
171 msgid "Cheshvan"
172 msgstr "Cheshvan"
173
174 #: src/hdate_strings.c:202 src/hdate_strings.c:206
175 msgid "Kislev"
176 msgstr "Kislev"
177
178 #: src/hdate_strings.c:202 src/hdate_strings.c:206
179 msgid "Tevet"
180 msgstr "Tevet"
181
182 #: src/hdate_strings.c:203 src/hdate_strings.c:207
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 msgid "Iyyar"
196 msgstr "Iyyar"
197
198 #: src/hdate_strings.c:204 src/hdate_strings.c:208
199 msgid "Sivan"
200 msgstr "Sivan"
201
202 #: src/hdate_strings.c:204 src/hdate_strings.c:208
203 msgid "Tamuz"
204 msgstr "Tamuz"
205
206 #: src/hdate_strings.c:204 src/hdate_strings.c:208
207 msgid "Av"
208 msgstr "Av"
209
210 #: src/hdate_strings.c:204 src/hdate_strings.c:208
211 msgid "Elul"
212 msgstr "Elul"
213
214 #: src/hdate_strings.c:204 src/hdate_strings.c:208
215 msgid "Adar I"
216 msgstr "Adar I"
217
218 #: src/hdate_strings.c:205 src/hdate_strings.c:209
219 msgid "Adar II"
220 msgstr "Adar II"
221
222 #: src/hdate_strings.c:241 src/hdate_strings.c:278
223 msgid "Rosh Hashana I"
224 msgstr "Rosh Hashana I"
225
226 #: src/hdate_strings.c:242 src/hdate_strings.c:279
227 msgid "Rosh Hashana II"
228 msgstr "Rosh Hashana II"
229
230 #: src/hdate_strings.c:243 src/hdate_strings.c:280
231 msgid "Tzom Gedaliah"
232 msgstr "Tzom Gedaliah"
233
234 #: src/hdate_strings.c:244 src/hdate_strings.c:281
235 msgid "Yom Kippur"
236 msgstr "Yom Kippur"
237
238 #: src/hdate_strings.c:245 src/hdate_strings.c:282
239 msgid "Sukkot"
240 msgstr "Sukkot"
241
242 #: src/hdate_strings.c:246 src/hdate_strings.c:283
243 msgid "Hol hamoed Sukkot"
244 msgstr "Hol hamoed Sukkot"
245
246 #: src/hdate_strings.c:247 src/hdate_strings.c:284
247 msgid "Hoshana raba"
248 msgstr "Hoshana raba"
249
250 #: src/hdate_strings.c:248 src/hdate_strings.c:285
251 msgid "Simchat Torah"
252 msgstr "Simchat Torah"
253
254 #: src/hdate_strings.c:249 src/hdate_strings.c:286
255 msgid "Chanukah"
256 msgstr "Chanukah"
257
258 #: src/hdate_strings.c:250 src/hdate_strings.c:287
259 msgid "Asara B'Tevet"
260 msgstr "Asara B'Tevet"
261
262 #: src/hdate_strings.c:251 src/hdate_strings.c:288
263 msgid "Tu B'Shvat"
264 msgstr "Tu B'Shvat"
265
266 #: src/hdate_strings.c:252 src/hdate_strings.c:289
267 msgid "Ta'anit Esther"
268 msgstr "Ta'anit Esther"
269
270 #: src/hdate_strings.c:253 src/hdate_strings.c:290
271 msgid "Purim"
272 msgstr "Purim"
273
274 #: src/hdate_strings.c:254 src/hdate_strings.c:291
275 msgid "Shushan Purim"
276 msgstr "Shushan Purim"
277
278 #: src/hdate_strings.c:255 src/hdate_strings.c:292
279 msgid "Pesach"
280 msgstr "Pesach"
281
282 #: src/hdate_strings.c:256 src/hdate_strings.c:293
283 msgid "Hol hamoed Pesach"
284 msgstr "Hol hamoed Pesach"
285
286 #: src/hdate_strings.c:257 src/hdate_strings.c:294
287 msgid "Yom HaAtzma'ut"
288 msgstr "Yom HaAtzma'ut"
289
290 #: src/hdate_strings.c:258 src/hdate_strings.c:295
291 msgid "Lag B'Omer"
292 msgstr "Lag B'Omer"
293
294 #: src/hdate_strings.c:259 src/hdate_strings.c:296
295 msgid "Erev Shavuot"
296 msgstr "Erev Shavuot"
297
298 #: src/hdate_strings.c:260 src/hdate_strings.c:297
299 msgid "Shavuot"
300 msgstr "Shavuot"
301
302 #: src/hdate_strings.c:261 src/hdate_strings.c:298
303 msgid "Tzom Tammuz"
304 msgstr "Tzom Tammuz"
305
306 #: src/hdate_strings.c:262 src/hdate_strings.c:299
307 msgid "Tish'a B'Av"
308 msgstr "Tish'a B'Av"
309
310 #: src/hdate_strings.c:263 src/hdate_strings.c:300
311 msgid "Tu B'Av"
312 msgstr "Tu B'Av"
313
314 #: src/hdate_strings.c:264 src/hdate_strings.c:301
315 msgid "Yom HaShoah"
316 msgstr "Yom HaShoah"
317
318 #: src/hdate_strings.c:265 src/hdate_strings.c:302
319 msgid "Yom HaZikaron"
320 msgstr "Yom HaZikaron"
321
322 #: src/hdate_strings.c:266 src/hdate_strings.c:303
323 msgid "Yom Yerushalayim"
324 msgstr "Yom Yerushalayim"
325
326 #: src/hdate_strings.c:267 src/hdate_strings.c:304
327 msgid "Shmini Atzeret"
328 msgstr "Shmini Atzeret"
329
330 #: src/hdate_strings.c:268 src/hdate_strings.c:305
331 msgid "Pesach VII"
332 msgstr "Pesach VII"
333
334 #: src/hdate_strings.c:269 src/hdate_strings.c:306
335 msgid "Pesach VIII"
336 msgstr "Pesach VIII"
337
338 #: src/hdate_strings.c:270 src/hdate_strings.c:307
339 msgid "Shavuot II"
340 msgstr "Shavuot II"
341
342 #: src/hdate_strings.c:271 src/hdate_strings.c:308
343 msgid "Sukkot II"
344 msgstr "Sukkot II"
345
346 #: src/hdate_strings.c:272 src/hdate_strings.c:309
347 msgid "Pesach II"
348 msgstr "Pesach II"
349
350 #: src/hdate_strings.c:273 src/hdate_strings.c:310
351 msgid "Family Day"
352 msgstr "Familjedagen"
353
354 #: src/hdate_strings.c:274 src/hdate_strings.c:311
355 msgid "Memorial day for fallen whose place of burial is unknown"
356 msgstr "Minnesdag för de fallena vars gravplats är okänd"
357
358 #: src/hdate_strings.c:275
359 msgid "Rabin memorial day"
360 msgstr "Minnesdag för Y. Rabin"
361
362 #: src/hdate_strings.c:276
363 msgid "Zhabotinsky day"
364 msgstr "Zhabotinksys dag"
365
366 #: src/hdate_strings.c:312
367 msgid "Yitzhak Rabin memorial day"
368 msgstr "Minnesdag för Yitzhak Rabin"
369
370 #: src/hdate_strings.c:313
371 msgid "Zeev Zhabotinsky day"
372 msgstr "Zeev Zhabotinksys dag"
373
374 #: src/hdate_strings.c:346 src/hdate_strings.c:409
375 msgid "none"
376 msgstr "ingen"
377
378 #: src/hdate_strings.c:347 src/hdate_strings.c:410
379 msgid "Bereshit"
380 msgstr "Bereshit"
381
382 #: src/hdate_strings.c:348 src/hdate_strings.c:411
383 msgid "Noach"
384 msgstr "Noach"
385
386 #: src/hdate_strings.c:349 src/hdate_strings.c:412
387 msgid "Lech-Lecha"
388 msgstr "Lech-Lecha"
389
390 #: src/hdate_strings.c:350 src/hdate_strings.c:413
391 msgid "Vayera"
392 msgstr "Vayera"
393
394 #: src/hdate_strings.c:351 src/hdate_strings.c:414
395 msgid "Chayei Sara"
396 msgstr "Chayei Sara"
397
398 #: src/hdate_strings.c:352 src/hdate_strings.c:415
399 msgid "Toldot"
400 msgstr "Toldot"
401
402 #: src/hdate_strings.c:353 src/hdate_strings.c:416
403 msgid "Vayetzei"
404 msgstr "Vayetzei"
405
406 #: src/hdate_strings.c:354 src/hdate_strings.c:417
407 msgid "Vayishlach"
408 msgstr "Vayishlach"
409
410 #: src/hdate_strings.c:355 src/hdate_strings.c:418
411 msgid "Vayeshev"
412 msgstr "Vayeshev"
413
414 #: src/hdate_strings.c:356 src/hdate_strings.c:419
415 msgid "Miketz"
416 msgstr "Miketz"
417
418 #: src/hdate_strings.c:357 src/hdate_strings.c:420
419 msgid "Vayigash"
420 msgstr "Vayigash"
421
422 #: src/hdate_strings.c:358 src/hdate_strings.c:421
423 msgid "Vayechi"
424 msgstr "Vayechi"
425
426 #: src/hdate_strings.c:359 src/hdate_strings.c:422
427 msgid "Shemot"
428 msgstr "Shemot"
429
430 #: src/hdate_strings.c:360 src/hdate_strings.c:423
431 msgid "Vaera"
432 msgstr "Vaera"
433
434 #: src/hdate_strings.c:361 src/hdate_strings.c:424
435 msgid "Bo"
436 msgstr "Bo"
437
438 #: src/hdate_strings.c:362 src/hdate_strings.c:425
439 msgid "Beshalach"
440 msgstr "Beshalach"
441
442 #: src/hdate_strings.c:363 src/hdate_strings.c:426
443 msgid "Yitro"
444 msgstr "Yitro"
445
446 #: src/hdate_strings.c:364 src/hdate_strings.c:427
447 msgid "Mishpatim"
448 msgstr "Mishpatim"
449
450 #: src/hdate_strings.c:365 src/hdate_strings.c:428
451 msgid "Terumah"
452 msgstr "Terumah"
453
454 #: src/hdate_strings.c:366 src/hdate_strings.c:429
455 msgid "Tetzaveh"
456 msgstr "Tetzaveh"
457
458 #: src/hdate_strings.c:367 src/hdate_strings.c:430
459 msgid "Ki Tisa"
460 msgstr "Ki Tisa"
461
462 #: src/hdate_strings.c:368 src/hdate_strings.c:431
463 msgid "Vayakhel"
464 msgstr "Vayakhel"
465
466 #: src/hdate_strings.c:369 src/hdate_strings.c:432
467 msgid "Pekudei"
468 msgstr "Pekudei"
469
470 #: src/hdate_strings.c:370 src/hdate_strings.c:433
471 msgid "Vayikra"
472 msgstr "Vayikra"
473
474 #: src/hdate_strings.c:371 src/hdate_strings.c:434
475 msgid "Tzav"
476 msgstr "Tzav"
477
478 #: src/hdate_strings.c:372 src/hdate_strings.c:435
479 msgid "Shmini"
480 msgstr "Shmini"
481
482 #: src/hdate_strings.c:373 src/hdate_strings.c:436
483 msgid "Tazria"
484 msgstr "Tazria"
485
486 #: src/hdate_strings.c:374 src/hdate_strings.c:437
487 msgid "Metzora"
488 msgstr "Metzora"
489
490 #: src/hdate_strings.c:375 src/hdate_strings.c:438
491 msgid "Achrei Mot"
492 msgstr "Achrei Mot"
493
494 #: src/hdate_strings.c:376 src/hdate_strings.c:439
495 msgid "Kedoshim"
496 msgstr "Kedoshim"
497
498 #: src/hdate_strings.c:377 src/hdate_strings.c:440
499 msgid "Emor"
500 msgstr "Emor"
501
502 #: src/hdate_strings.c:378 src/hdate_strings.c:441
503 msgid "Behar"
504 msgstr "Behar"
505
506 #: src/hdate_strings.c:379 src/hdate_strings.c:442
507 msgid "Bechukotai"
508 msgstr "Bechukotai"
509
510 #: src/hdate_strings.c:380 src/hdate_strings.c:443
511 msgid "Bamidbar"
512 msgstr "Bamidbar"
513
514 #: src/hdate_strings.c:381 src/hdate_strings.c:444
515 msgid "Nasso"
516 msgstr "Nasso"
517
518 #: src/hdate_strings.c:382 src/hdate_strings.c:445
519 msgid "Beha'alotcha"
520 msgstr "Beha'alotcha"
521
522 #: src/hdate_strings.c:383 src/hdate_strings.c:446
523 msgid "Sh'lach"
524 msgstr "Sh'lach"
525
526 #: src/hdate_strings.c:384 src/hdate_strings.c:447
527 msgid "Korach"
528 msgstr "Korach"
529
530 #: src/hdate_strings.c:385 src/hdate_strings.c:448
531 msgid "Chukat"
532 msgstr "Chukat"
533
534 #: src/hdate_strings.c:386 src/hdate_strings.c:449
535 msgid "Balak"
536 msgstr "Balak"
537
538 #: src/hdate_strings.c:387 src/hdate_strings.c:450
539 msgid "Pinchas"
540 msgstr "Pinchas"
541
542 #: src/hdate_strings.c:388 src/hdate_strings.c:451
543 msgid "Matot"
544 msgstr "Matot"
545
546 #: src/hdate_strings.c:389 src/hdate_strings.c:452
547 msgid "Masei"
548 msgstr "Masei"
549
550 #: src/hdate_strings.c:390 src/hdate_strings.c:453
551 msgid "Devarim"
552 msgstr "Devarim"
553
554 #: src/hdate_strings.c:391 src/hdate_strings.c:454
555 msgid "Vaetchanan"
556 msgstr "Vaetchanan"
557
558 #: src/hdate_strings.c:392 src/hdate_strings.c:455
559 msgid "Eikev"
560 msgstr "Eikev"
561
562 #: src/hdate_strings.c:393 src/hdate_strings.c:456
563 msgid "Re'eh"
564 msgstr "Re'eh"
565
566 #: src/hdate_strings.c:394 src/hdate_strings.c:457
567 msgid "Shoftim"
568 msgstr "Shoftim"
569
570 #: src/hdate_strings.c:395 src/hdate_strings.c:458
571 msgid "Ki Teitzei"
572 msgstr "Ki Teitzei"
573
574 #: src/hdate_strings.c:396 src/hdate_strings.c:459
575 msgid "Ki Tavo"
576 msgstr "Ki Tavo"
577
578 #: src/hdate_strings.c:397 src/hdate_strings.c:460
579 msgid "Nitzavim"
580 msgstr "Nitzavim"
581
582 #: src/hdate_strings.c:398 src/hdate_strings.c:461
583 msgid "Vayeilech"
584 msgstr "Vayeilech"
585
586 #: src/hdate_strings.c:399 src/hdate_strings.c:462
587 msgid "Ha'Azinu"
588 msgstr "Ha'Azinu"
589
590 #: src/hdate_strings.c:400 src/hdate_strings.c:463
591 msgid "Vezot Habracha"
592 msgstr "Vezot Habracha"
593
594 #: src/hdate_strings.c:401 src/hdate_strings.c:464
595 msgid "Vayakhel-Pekudei"
596 msgstr "Vayakhel-Pekudei"
597
598 #: src/hdate_strings.c:402 src/hdate_strings.c:465
599 msgid "Tazria-Metzora"
600 msgstr "Tazria-Metzora"
601
602 #: src/hdate_strings.c:403 src/hdate_strings.c:466
603 msgid "Achrei Mot-Kedoshim"
604 msgstr "Achrei Mot-Kedoshim"
605
606 #: src/hdate_strings.c:404 src/hdate_strings.c:467
607 msgid "Behar-Bechukotai"
608 msgstr "Behar-Bechukotai"
609
610 #: src/hdate_strings.c:405 src/hdate_strings.c:468
611 msgid "Chukat-Balak"
612 msgstr "Chukat-Balak"
613
614 #: src/hdate_strings.c:406 src/hdate_strings.c:469
615 msgid "Matot-Masei"
616 msgstr "Matot-Masei"
617
618 #: src/hdate_strings.c:407 src/hdate_strings.c:470
619 msgid "Nitzavim-Vayeilech"
620 msgstr "Nitzavim-Vayeilech"
621
622 #: src/hdate_strings.c:568 src/hdate_strings.c:572
623 msgid "translator"
624 msgstr "Daniel Nylander, Patrik Nilsson"
+0
-21
current/src/Makefile.am less more
0 libhdate_la_CFLAGS =\
1 -Wall\
2 -g
3
4 lib_LTLIBRARIES = libhdate.la
5
6 libhdate_la_SOURCES = \
7 hdate_strings.c\
8 hdate_julian.c\
9 hdate_holyday.c\
10 hdate_parasha.c\
11 hdate_sun_time.c\
12 hdate.h\
13 support.h
14
15 libhdate_la_LDFLAGS = -version-info $(VERSION_INFO)
16
17 libhdate_la_LIBADD =
18
19 include_HEADERS = hdate.h hdatepp.h
20
+0
-591
current/src/Makefile.in less more
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = ..
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 build_triplet = @build@
38 host_triplet = @host@
39 subdir = src
40 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
41 $(srcdir)/Makefile.in
42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
44 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
45 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
46 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
47 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
48 $(top_srcdir)/configure.in
49 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50 $(ACLOCAL_M4)
51 mkinstalldirs = $(install_sh) -d
52 CONFIG_CLEAN_FILES =
53 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
54 am__vpath_adj = case $$p in \
55 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
56 *) f=$$p;; \
57 esac;
58 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
59 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
60 libLTLIBRARIES_INSTALL = $(INSTALL)
61 LTLIBRARIES = $(lib_LTLIBRARIES)
62 libhdate_la_DEPENDENCIES =
63 am_libhdate_la_OBJECTS = libhdate_la-hdate_strings.lo \
64 libhdate_la-hdate_julian.lo libhdate_la-hdate_holyday.lo \
65 libhdate_la-hdate_parasha.lo libhdate_la-hdate_sun_time.lo
66 libhdate_la_OBJECTS = $(am_libhdate_la_OBJECTS)
67 DEFAULT_INCLUDES = -I. -I$(srcdir)
68 depcomp = $(SHELL) $(top_srcdir)/depcomp
69 am__depfiles_maybe = depfiles
70 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
71 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
72 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
73 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
74 $(AM_CFLAGS) $(CFLAGS)
75 CCLD = $(CC)
76 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
77 $(AM_LDFLAGS) $(LDFLAGS) -o $@
78 SOURCES = $(libhdate_la_SOURCES)
79 DIST_SOURCES = $(libhdate_la_SOURCES)
80 includeHEADERS_INSTALL = $(INSTALL_HEADER)
81 HEADERS = $(include_HEADERS)
82 ETAGS = etags
83 CTAGS = ctags
84 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
85 ACLOCAL = @ACLOCAL@
86 AMDEP_FALSE = @AMDEP_FALSE@
87 AMDEP_TRUE = @AMDEP_TRUE@
88 AMTAR = @AMTAR@
89 AR = @AR@
90 AUTOCONF = @AUTOCONF@
91 AUTOHEADER = @AUTOHEADER@
92 AUTOMAKE = @AUTOMAKE@
93 AWK = @AWK@
94 CC = @CC@
95 CCDEPMODE = @CCDEPMODE@
96 CFLAGS = @CFLAGS@
97 CPP = @CPP@
98 CPPFLAGS = @CPPFLAGS@
99 CXX = @CXX@
100 CXXCPP = @CXXCPP@
101 CXXDEPMODE = @CXXDEPMODE@
102 CXXFLAGS = @CXXFLAGS@
103 CYGPATH_W = @CYGPATH_W@
104 DATADIRNAME = @DATADIRNAME@
105 DEFS = @DEFS@
106 DEPDIR = @DEPDIR@
107 ECHO = @ECHO@
108 ECHO_C = @ECHO_C@
109 ECHO_N = @ECHO_N@
110 ECHO_T = @ECHO_T@
111 EGREP = @EGREP@
112 EXEEXT = @EXEEXT@
113 F77 = @F77@
114 FFLAGS = @FFLAGS@
115 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
116 GMSGFMT = @GMSGFMT@
117 GMSGFMT_015 = @GMSGFMT_015@
118 GREP = @GREP@
119 INSTALL_DATA = @INSTALL_DATA@
120 INSTALL_PROGRAM = @INSTALL_PROGRAM@
121 INSTALL_SCRIPT = @INSTALL_SCRIPT@
122 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
123 INTLLIBS = @INTLLIBS@
124 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
125 LDFLAGS = @LDFLAGS@
126 LIBICONV = @LIBICONV@
127 LIBINTL = @LIBINTL@
128 LIBOBJS = @LIBOBJS@
129 LIBS = @LIBS@
130 LIBTOOL = @LIBTOOL@
131 LN_S = @LN_S@
132 LTLIBICONV = @LTLIBICONV@
133 LTLIBINTL = @LTLIBINTL@
134 LTLIBOBJS = @LTLIBOBJS@
135 MAINT = @MAINT@
136 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
137 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
138 MAKEINFO = @MAKEINFO@
139 MSGFMT = @MSGFMT@
140 MSGFMT_015 = @MSGFMT_015@
141 MSGMERGE = @MSGMERGE@
142 OBJEXT = @OBJEXT@
143 PACKAGE = @PACKAGE@
144 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
145 PACKAGE_NAME = @PACKAGE_NAME@
146 PACKAGE_STRING = @PACKAGE_STRING@
147 PACKAGE_TARNAME = @PACKAGE_TARNAME@
148 PACKAGE_VERSION = @PACKAGE_VERSION@
149 PATH_SEPARATOR = @PATH_SEPARATOR@
150 PA_MODULES_PATH = @PA_MODULES_PATH@
151 PA_VERSION = @PA_VERSION@
152 PE_CFLAGS = @PE_CFLAGS@
153 PE_MODULES_PATH = @PE_MODULES_PATH@
154 PH_CONFIG_PATH = @PH_CONFIG_PATH@
155 PH_MODULES_PATH = @PH_MODULES_PATH@
156 PKG_CONFIG = @PKG_CONFIG@
157 POSUB = @POSUB@
158 PY_CFLAGS = @PY_CFLAGS@
159 PY_MODULES_PATH = @PY_MODULES_PATH@
160 PY_VERSION = @PY_VERSION@
161 RANLIB = @RANLIB@
162 RU_CFLAGS = @RU_CFLAGS@
163 RU_MODULES_PATH = @RU_MODULES_PATH@
164 RU_VERSION = @RU_VERSION@
165 SED = @SED@
166 SET_MAKE = @SET_MAKE@
167 SHELL = @SHELL@
168 STRIP = @STRIP@
169 USE_NLS = @USE_NLS@
170 VERSION = @VERSION@
171 VERSION_INFO = @VERSION_INFO@
172 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
173 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
174 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
175 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
176 WITH_PERL_FALSE = @WITH_PERL_FALSE@
177 WITH_PERL_TRUE = @WITH_PERL_TRUE@
178 WITH_PHP_FALSE = @WITH_PHP_FALSE@
179 WITH_PHP_TRUE = @WITH_PHP_TRUE@
180 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
181 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
182 WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
183 WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
184 XGETTEXT = @XGETTEXT@
185 XGETTEXT_015 = @XGETTEXT_015@
186 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
187 ac_ct_CC = @ac_ct_CC@
188 ac_ct_CXX = @ac_ct_CXX@
189 ac_ct_F77 = @ac_ct_F77@
190 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
191 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
192 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
193 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
194 am__include = @am__include@
195 am__leading_dot = @am__leading_dot@
196 am__quote = @am__quote@
197 am__tar = @am__tar@
198 am__untar = @am__untar@
199 bindir = @bindir@
200 build = @build@
201 build_alias = @build_alias@
202 build_cpu = @build_cpu@
203 build_os = @build_os@
204 build_vendor = @build_vendor@
205 datadir = @datadir@
206 datarootdir = @datarootdir@
207 docdir = @docdir@
208 dvidir = @dvidir@
209 exec_prefix = @exec_prefix@
210 have_pascal = @have_pascal@
211 have_perl = @have_perl@
212 have_php = @have_php@
213 have_php_config = @have_php_config@
214 have_python = @have_python@
215 have_ruby = @have_ruby@
216 have_swig = @have_swig@
217 host = @host@
218 host_alias = @host_alias@
219 host_cpu = @host_cpu@
220 host_os = @host_os@
221 host_vendor = @host_vendor@
222 htmldir = @htmldir@
223 includedir = @includedir@
224 infodir = @infodir@
225 install_sh = @install_sh@
226 libdir = @libdir@
227 libexecdir = @libexecdir@
228 localedir = @localedir@
229 localstatedir = @localstatedir@
230 mandir = @mandir@
231 mkdir_p = @mkdir_p@
232 oldincludedir = @oldincludedir@
233 pdfdir = @pdfdir@
234 prefix = @prefix@
235 program_transform_name = @program_transform_name@
236 psdir = @psdir@
237 sbindir = @sbindir@
238 sharedstatedir = @sharedstatedir@
239 sysconfdir = @sysconfdir@
240 target_alias = @target_alias@
241 libhdate_la_CFLAGS = \
242 -Wall\
243 -g
244
245 lib_LTLIBRARIES = libhdate.la
246 libhdate_la_SOURCES = \
247 hdate_strings.c\
248 hdate_julian.c\
249 hdate_holyday.c\
250 hdate_parasha.c\
251 hdate_sun_time.c\
252 hdate.h\
253 support.h
254
255 libhdate_la_LDFLAGS = -version-info $(VERSION_INFO)
256 libhdate_la_LIBADD =
257 include_HEADERS = hdate.h hdatepp.h
258 all: all-am
259
260 .SUFFIXES:
261 .SUFFIXES: .c .lo .o .obj
262 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
263 @for dep in $?; do \
264 case '$(am__configure_deps)' in \
265 *$$dep*) \
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
267 && exit 0; \
268 exit 1;; \
269 esac; \
270 done; \
271 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
272 cd $(top_srcdir) && \
273 $(AUTOMAKE) --gnu src/Makefile
274 .PRECIOUS: Makefile
275 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
276 @case '$?' in \
277 *config.status*) \
278 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
279 *) \
280 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
281 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
282 esac;
283
284 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
285 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
286
287 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
288 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
289 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
290 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
291 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
292 @$(NORMAL_INSTALL)
293 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
294 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
295 if test -f $$p; then \
296 f=$(am__strip_dir) \
297 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
298 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
299 else :; fi; \
300 done
301
302 uninstall-libLTLIBRARIES:
303 @$(NORMAL_UNINSTALL)
304 @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
305 p=$(am__strip_dir) \
306 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
307 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
308 done
309
310 clean-libLTLIBRARIES:
311 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
312 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
313 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
314 test "$$dir" != "$$p" || dir=.; \
315 echo "rm -f \"$${dir}/so_locations\""; \
316 rm -f "$${dir}/so_locations"; \
317 done
318 libhdate.la: $(libhdate_la_OBJECTS) $(libhdate_la_DEPENDENCIES)
319 $(LINK) -rpath $(libdir) $(libhdate_la_LDFLAGS) $(libhdate_la_OBJECTS) $(libhdate_la_LIBADD) $(LIBS)
320
321 mostlyclean-compile:
322 -rm -f *.$(OBJEXT)
323
324 distclean-compile:
325 -rm -f *.tab.c
326
327 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_holyday.Plo@am__quote@
328 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_julian.Plo@am__quote@
329 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_parasha.Plo@am__quote@
330 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_strings.Plo@am__quote@
331 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_sun_time.Plo@am__quote@
332
333 .c.o:
334 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
335 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
336 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
337 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
338 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
339
340 .c.obj:
341 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
342 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
343 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
344 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
345 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
346
347 .c.lo:
348 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
349 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
350 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
351 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
352 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
353
354 libhdate_la-hdate_strings.lo: hdate_strings.c
355 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --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" -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"; else rm -f "$(DEPDIR)/libhdate_la-hdate_strings.Tpo"; exit 1; fi
357 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_strings.c' object='libhdate_la-hdate_strings.lo' libtool=yes @AMDEPBACKSLASH@
358 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
359 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --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
360
361 libhdate_la-hdate_julian.lo: hdate_julian.c
362 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --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" -c -o libhdate_la-hdate_julian.lo `test -f 'hdate_julian.c' || echo '$(srcdir)/'`hdate_julian.c; \
363 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo" "$(DEPDIR)/libhdate_la-hdate_julian.Plo"; else rm -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo"; exit 1; fi
364 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_julian.c' object='libhdate_la-hdate_julian.lo' libtool=yes @AMDEPBACKSLASH@
365 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
366 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --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
367
368 libhdate_la-hdate_holyday.lo: hdate_holyday.c
369 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --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" -c -o libhdate_la-hdate_holyday.lo `test -f 'hdate_holyday.c' || echo '$(srcdir)/'`hdate_holyday.c; \
370 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo" "$(DEPDIR)/libhdate_la-hdate_holyday.Plo"; else rm -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo"; exit 1; fi
371 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_holyday.c' object='libhdate_la-hdate_holyday.lo' libtool=yes @AMDEPBACKSLASH@
372 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
373 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --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
374
375 libhdate_la-hdate_parasha.lo: hdate_parasha.c
376 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --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" -c -o libhdate_la-hdate_parasha.lo `test -f 'hdate_parasha.c' || echo '$(srcdir)/'`hdate_parasha.c; \
377 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo" "$(DEPDIR)/libhdate_la-hdate_parasha.Plo"; else rm -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo"; exit 1; fi
378 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_parasha.c' object='libhdate_la-hdate_parasha.lo' libtool=yes @AMDEPBACKSLASH@
379 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
380 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --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
381
382 libhdate_la-hdate_sun_time.lo: hdate_sun_time.c
383 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --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" -c -o libhdate_la-hdate_sun_time.lo `test -f 'hdate_sun_time.c' || echo '$(srcdir)/'`hdate_sun_time.c; \
384 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo" "$(DEPDIR)/libhdate_la-hdate_sun_time.Plo"; else rm -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo"; exit 1; fi
385 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_sun_time.c' object='libhdate_la-hdate_sun_time.lo' libtool=yes @AMDEPBACKSLASH@
386 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
387 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --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
388
389 mostlyclean-libtool:
390 -rm -f *.lo
391
392 clean-libtool:
393 -rm -rf .libs _libs
394
395 distclean-libtool:
396 -rm -f libtool
397 uninstall-info-am:
398 install-includeHEADERS: $(include_HEADERS)
399 @$(NORMAL_INSTALL)
400 test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
401 @list='$(include_HEADERS)'; for p in $$list; do \
402 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
403 f=$(am__strip_dir) \
404 echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
405 $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
406 done
407
408 uninstall-includeHEADERS:
409 @$(NORMAL_UNINSTALL)
410 @list='$(include_HEADERS)'; for p in $$list; do \
411 f=$(am__strip_dir) \
412 echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
413 rm -f "$(DESTDIR)$(includedir)/$$f"; \
414 done
415
416 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
417 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
418 unique=`for i in $$list; do \
419 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
420 done | \
421 $(AWK) ' { files[$$0] = 1; } \
422 END { for (i in files) print i; }'`; \
423 mkid -fID $$unique
424 tags: TAGS
425
426 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
427 $(TAGS_FILES) $(LISP)
428 tags=; \
429 here=`pwd`; \
430 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
431 unique=`for i in $$list; do \
432 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
433 done | \
434 $(AWK) ' { files[$$0] = 1; } \
435 END { for (i in files) print i; }'`; \
436 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
437 test -n "$$unique" || unique=$$empty_fix; \
438 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
439 $$tags $$unique; \
440 fi
441 ctags: CTAGS
442 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
443 $(TAGS_FILES) $(LISP)
444 tags=; \
445 here=`pwd`; \
446 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
447 unique=`for i in $$list; do \
448 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
449 done | \
450 $(AWK) ' { files[$$0] = 1; } \
451 END { for (i in files) print i; }'`; \
452 test -z "$(CTAGS_ARGS)$$tags$$unique" \
453 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
454 $$tags $$unique
455
456 GTAGS:
457 here=`$(am__cd) $(top_builddir) && pwd` \
458 && cd $(top_srcdir) \
459 && gtags -i $(GTAGS_ARGS) $$here
460
461 distclean-tags:
462 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
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 $(mkdir_p) "$(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 $(LTLIBRARIES) $(HEADERS)
494 installdirs:
495 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
496 test -z "$$dir" || $(mkdir_p) "$$dir"; \
497 done
498 install: install-am
499 install-exec: install-exec-am
500 install-data: install-data-am
501 uninstall: uninstall-am
502
503 install-am: all-am
504 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
505
506 installcheck: installcheck-am
507 install-strip:
508 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
509 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
510 `test -z '$(STRIP)' || \
511 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
512 mostlyclean-generic:
513
514 clean-generic:
515
516 distclean-generic:
517 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
518
519 maintainer-clean-generic:
520 @echo "This command is intended for maintainers to use"
521 @echo "it deletes files that may require special tools to rebuild."
522 clean: clean-am
523
524 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
525 mostlyclean-am
526
527 distclean: distclean-am
528 -rm -rf ./$(DEPDIR)
529 -rm -f Makefile
530 distclean-am: clean-am distclean-compile distclean-generic \
531 distclean-libtool distclean-tags
532
533 dvi: dvi-am
534
535 dvi-am:
536
537 html: html-am
538
539 info: info-am
540
541 info-am:
542
543 install-data-am: install-includeHEADERS
544
545 install-exec-am: install-libLTLIBRARIES
546
547 install-info: install-info-am
548
549 install-man:
550
551 installcheck-am:
552
553 maintainer-clean: maintainer-clean-am
554 -rm -rf ./$(DEPDIR)
555 -rm -f Makefile
556 maintainer-clean-am: distclean-am maintainer-clean-generic
557
558 mostlyclean: mostlyclean-am
559
560 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
561 mostlyclean-libtool
562
563 pdf: pdf-am
564
565 pdf-am:
566
567 ps: ps-am
568
569 ps-am:
570
571 uninstall-am: uninstall-includeHEADERS uninstall-info-am \
572 uninstall-libLTLIBRARIES
573
574 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
575 clean-libLTLIBRARIES clean-libtool ctags distclean \
576 distclean-compile distclean-generic distclean-libtool \
577 distclean-tags distdir dvi dvi-am html html-am info info-am \
578 install install-am install-data install-data-am install-exec \
579 install-exec-am install-includeHEADERS install-info \
580 install-info-am install-libLTLIBRARIES install-man \
581 install-strip installcheck installcheck-am installdirs \
582 maintainer-clean maintainer-clean-generic mostlyclean \
583 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
584 pdf pdf-am ps ps-am tags uninstall uninstall-am \
585 uninstall-includeHEADERS uninstall-info-am \
586 uninstall-libLTLIBRARIES
587
588 # Tell versions [3.59,3.63) of GNU make to not export all variables.
589 # Otherwise a system limit (for SysV at least) may be exceeded.
590 .NOEXPORT:
+0
-560
current/src/hdate.h less more
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 /** @file hdate.h
19 @brief libhdate C language header.
20
21 libhdate - Hebrew calendar library, the C language header file.
22 */
23
24 #ifndef __HDATE_H__
25 #define __HDATE_H__
26
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31
32 /** @def HDATE_DIASPORA_FLAG
33 @brief use diaspora dates and holydays flag
34 */
35 #define HDATE_DIASPORA_FLAG -1
36
37 /** @def HDATE_ISRAEL_FLAG
38 @brief use israel dates and holydays flag
39 */
40 #define HDATE_ISRAEL_FLAG 0
41
42 /** @def HDATE_SHORT_FLAG
43 @brief use short strings flag
44 */
45 #define HDATE_SHORT_FLAG -1
46
47 /** @def HDATE_LONG_FLAG
48 @brief use long strings flag
49 */
50 #define HDATE_LONG_FLAG 0
51
52 /** @struct hdate_struct
53 @brief libhdate Hebrew date struct
54 */
55 typedef struct
56 {
57 /** The number of day in the hebrew month (1..31). */
58 int hd_day;
59 /** The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2). */
60 int hd_mon;
61 /** The number of the hebrew year. */
62 int hd_year;
63 /** The number of the day in the month. (1..31) */
64 int gd_day;
65 /** The number of the month 1..12 (1 - jan). */
66 int gd_mon;
67 /** The number of the year. */
68 int gd_year;
69 /** The day of the week 1..7 (1 - sunday). */
70 int hd_dw;
71 /** The length of the year in days. */
72 int hd_size_of_year;
73 /** The week day of Hebrew new year. */
74 int hd_new_year_dw;
75 /** The number type of year. */
76 int hd_year_type;
77 /** The Julian day number */
78 int hd_jd;
79 /** The number of days passed since 1 tishrey */
80 int hd_days;
81 /** The number of weeks passed since 1 tishrey */
82 int hd_weeks;
83 } hdate_struct;
84
85 /*************************************************************/
86 /*************************************************************/
87
88 /**
89 @brief compute date structure from the Gregorian date
90
91 @param h pointer this hdate struct.
92 @param d Day of month 1..31
93 @param m Month 1..12
94 if m or d is 0 return current date.
95 @param y Year in 4 digits e.g. 2001
96 @return pointer to this hdate struct
97 */
98 hdate_struct *
99 hdate_set_gdate (hdate_struct *h, int d, int m, int y);
100
101 /**
102 @brief compute date structure from the Hebrew date
103
104 @param h pointer this hdate struct.
105 @param d Day of month 1..31
106 @param m Month 1..14 ,(13 - Adar 1, 14 - Adar 2)
107 if m or d is 0 return current date.
108 @param y Year in 4 digits e.g. 5731
109 @return pointer to this hdate struct
110 */
111 hdate_struct *
112 hdate_set_hdate (hdate_struct *h, int d, int m, int y);
113
114 /**
115 @brief compute date structure from the Julian day
116
117 @param h pointer this hdate struct.
118 @param jd the julian day number.
119 @return pointer to this hdate struct
120 */
121 hdate_struct *
122 hdate_set_jd (hdate_struct *h, int jd);
123
124 /*************************************************************/
125 /*************************************************************/
126
127 /**
128 @brief get formated hebrew date.
129
130 return the short ( e.g. "1 Tishrey" ) or
131 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
132
133 @param h pointer this hdate struct.
134 @param diaspora if true give diaspora holydays.
135 @param s short flag.
136 @return a static string of foramted date
137 */
138 char *
139 hdate_get_format_date (hdate_struct const * h, int diaspora, int s);
140
141 /**
142 @brief get the number of hebrew parasha.
143
144 @param h pointer this hdate struct.
145 @param diaspora if true give diaspora readings
146 @return the number of parasha 1. Bereshit etc..
147 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
148 */
149 int
150 hdate_get_parasha (hdate_struct const * h, int diaspora);
151
152 /**
153 @brief get the number of hebrew holyday.
154
155 @param h pointer this hdate struct.
156 @param diaspora if true give diaspora holydays
157 @return the number of holyday.
158 */
159 int
160 hdate_get_holyday (hdate_struct const * h, int diaspora);
161
162 /*************************************************************/
163 /*************************************************************/
164
165 /**
166 @brief convert an integer to hebrew string.
167
168 @param n The int to convert
169 @return a static string of the hebrew number UTF-8 (logical)
170 @attention ( 0 < n < 10000)
171 */
172 char *
173 hdate_get_int_string (int n);
174
175 /**
176 @brief get name of week day.
177
178 @param day The number of the day 1..7 (1 - sun).
179 @param s short flag
180 true - returns a short string: sun, false returns: sunday.
181 @return a static string of the day of the week
182 */
183 char *
184 hdate_get_day_string (int day, int s);
185
186 /**
187 @brief name of month.
188
189 @param month the number of the month 1..12 (1 - jan).
190 @param s short flag.
191 @return a static string of month name
192 */
193 char *
194 hdate_get_month_string (int month, int s);
195
196 /**
197 @brief name of hebrew month.
198
199 @param month the number of the month 1..14
200 (1 - tishre, 13 - adar 1, 14 - adar 2).
201 @param s short flag.
202 @return a static string of month name
203 */
204 char *
205 hdate_get_hebrew_month_string (int month, int s);
206
207 /**
208 @brief name of hebrew holyday.
209
210 @param holyday the holyday number.
211 @param s short flag.
212 @return a static string of holyday name
213 */
214 char *
215 hdate_get_holyday_string (int holyday, int s);
216
217 /**
218 @brief name of parasha
219
220 @param parasha the number of parasha 1-Bereshit
221 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
222 @param s short flag.
223 @return a static string of parasha name
224 */
225 char *
226 hdate_get_parasha_string (int parasha, int s);
227
228 /*************************************************************/
229 /*************************************************************/
230
231 /**
232 @brief get the hebrew holyday type.
233
234 @param holyday the holyday number.
235 @return the number of holyday type.
236 */
237 int
238 hdate_get_holyday_type (int holyday);
239
240 /**
241 @brief size of hebrew year in days.
242
243 @param hebrew_year the hebrew year.
244 @return size of Hebrew year
245 */
246 int
247 hdate_get_size_of_hebrew_year (int hebrew_year);
248
249 /*************************************************************/
250 /*************************************************************/
251
252 /**
253 @brief Days since Tishrey 3744
254
255 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
256
257 @param hebrew_year The Hebrew year
258 @return Number of days since 3,1,3744
259 */
260 int
261 hdate_days_from_3744 (int hebrew_year);
262
263 /**
264 @brief Return Hebrew year type based on size and first week day of year.
265
266 @param size_of_year Length of year in days
267 @param new_year_dw First week day of year
268 @return the number for year type (1..14)
269 */
270 int
271 hdate_get_year_type (int size_of_year, int new_year_dw);
272
273 /**
274 @brief Compute Julian day from Gregorian date
275
276 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
277
278 @param day Day of month 1..31
279 @param month Month 1..12
280 @param year Year in 4 digits e.g. 2001
281 @return the julian day number
282 */
283 int
284 hdate_gdate_to_jd (int day, int month, int year);
285
286 /**
287 @brief Compute Julian day from Hebrew day, month and year
288
289 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
290
291 @param day Day of month 1..31
292 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
293 @param year Hebrew year in 4 digits e.g. 5753
294 @param jd_tishrey1 return the julian number of 1 Tishrey this year
295 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
296 @return the julian day number
297 */
298 int
299 hdate_hdate_to_jd (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year);
300
301 /**
302 @brief Converting from the Julian day to the Gregorian date
303
304 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
305
306 @param jd Julian day
307 @param day return Day of month 1..31
308 @param month return Month 1..12
309 @param year return Year in 4 digits e.g. 2001
310 */
311 void
312 hdate_jd_to_gdate (int jd, int *day, int *month, int *year);
313
314 /**
315 @brief Converting from the Julian day to the Hebrew day
316
317 @author Yaacov Zamir 2005
318
319 @param jd Julian day
320 @param day return Day of month 1..31
321 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
322 @param year return Year in 4 digits e.g. 2001
323 @param jd_tishrey1 return the julian number of 1 Tishrey this year
324 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
325 */
326 void
327 hdate_jd_to_hdate (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year);
328
329 /*************************************************************/
330 /*************************************************************/
331
332 /**
333 @brief days from 1 january
334
335 @param day this day of month
336 @param month this month
337 @param year this year
338 @return the days from 1 jan
339 */
340 int
341 hdate_get_day_of_year (int day, int month, int year);
342
343 /**
344 @brief utc sun times for altitude at a gregorian date
345
346 Returns the sunset and sunrise times in minutes from 00:00 (utc time)
347 if sun altitude in sunrise is deg degries.
348 This function only works for altitudes sun realy is.
349 If the sun never get to this altitude, the returned sunset and sunrise values
350 will be negative. This can happen in low altitude when latitude is
351 nearing the pols in winter times, the sun never goes very high in
352 the sky there.
353
354 @param day this day of month
355 @param month this month
356 @param year this year
357 @param longitude longitude to use in calculations
358 @param latitude latitude to use in calculations
359 @param deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
360 @param sunrise return the utc sunrise in minutes
361 @param sunset return the utc sunset in minutes
362 */
363 void
364 hdate_get_utc_sun_time_deg (int day, int month, int year,
365 double latitude, double longitude, double deg, int *sunrise, int *sunset);
366
367 /**
368 @brief utc sunrise/set time for a gregorian date
369
370 @param day this day of month
371 @param month this month
372 @param year this year
373 @param longitude longitude to use in calculations
374 degrees, negative values are east
375 @param latitude latitude to use in calculations
376 degrees, negative values are south
377 @param sunrise return the utc sunrise in minutes after midnight (00:00)
378 @param sunset return the utc sunset in minutes after midnight (00:00)
379 */
380 void
381 hdate_get_utc_sun_time (int day, int month, int year,
382 double latitude, double longitude, int *sunrise, int *sunset);
383
384 /**
385 @brief utc sunrise/set time for a gregorian date
386
387 @param day this day of month
388 @param month this month
389 @param year this year
390 @param longitude longitude to use in calculations
391 @param latitude latitude to use in calculations
392 @param sun_hour return the length of shaa zaminit in minutes
393 @param first_light return the utc alut ha-shachar in minutes
394 @param talit return the utc tphilin and talit in minutes
395 @param sunrise return the utc sunrise in minutes
396 @param midday return the utc midday in minutes
397 @param sunset return the utc sunset in minutes
398 @param first_stars return the utc tzeit hacochavim in minutes
399 @param three_stars return the utc shlosha cochavim in minutes
400 */
401 void
402 hdate_get_utc_sun_time_full (int day, int month, int year, double latitude, double longitude,
403 int *sun_hour, int *first_light, int *talit, int *sunrise,
404 int *midday, int *sunset, int *first_stars, int *three_stars);
405
406 /*************************************************************/
407 /*************************************************************/
408
409 /**
410 @brief get the Gregorian day of the month
411
412 @param h pointer this hdate struct.
413 @return the Gregorian day of the month, 1..31.
414 */
415 int
416 hdate_get_gday (hdate_struct const * h);
417
418 /**
419 @brief get the Gregorian month
420
421 @param h pointer this hdate struct.
422 @return the Gregorian month, jan = 1.
423 */
424 int
425 hdate_get_gmonth (hdate_struct const * h);
426
427 /**
428 @brief get the Gregorian year
429
430 @param h pointer this hdate struct.
431 @return the Gregorian year.
432 */
433 int
434 hdate_get_gyear (hdate_struct const * h);
435
436 /**
437 @brief get the Hebrew day of the month
438
439 @param h pointer this hdate struct.
440 @return the Hebrew day of the month, 1..30.
441 */
442 int
443 hdate_get_hday (hdate_struct const * h);
444
445 /**
446 @brief get the Hebrew month
447
448 @param h pointer this hdate struct.
449 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
450 */
451 int
452 hdate_get_hmonth (hdate_struct const * h);
453
454 /**
455 @brief get the Hebrew year
456
457 @param h pointer this hdate struct.
458 @return the Hebrew year.
459 */
460 int
461 hdate_get_hyear (hdate_struct const * h);
462
463 /**
464 @brief get the day of the week
465
466 @param h pointer this hdate struct.
467 @return the the day of the week.
468 */
469 int
470 hdate_get_day_of_the_week (hdate_struct const * h);
471
472 /**
473 @brief get the size of the hebrew year
474
475 @param h pointer this hdate struct.
476 @return the the size of the hebrew year.
477 */
478 int
479 hdate_get_size_of_year (hdate_struct const * h);
480
481 /**
482 @brief get the new year day of the week
483
484 @param h pointer this hdate struct.
485 @return the the new year day of the week.
486 */
487 int
488 hdate_get_new_year_day_of_the_week (hdate_struct const * h);
489
490 /**
491 @brief get the Julian day number
492
493 @param h pointer this hdate struct.
494 @return the Julian day number.
495 */
496 int
497 hdate_get_julian (hdate_struct const * h);
498
499 /**
500 @brief get the number of days passed since 1 tishrey
501
502 @param h pointer this hdate struct.
503 @return the number of days passed since 1 tishrey.
504 */
505 int
506 hdate_get_days (hdate_struct const * h);
507
508 /**
509 @brief get the number of weeks passed since 1 tishrey
510
511 @param h pointer this hdate struct.
512 @return the number of weeks passed since 1 tishrey.
513 */
514 int
515 hdate_get_weeks (hdate_struct const * h);
516
517 /*************************************************************/
518 /*************************************************************/
519
520 /**
521 @brief creat a new hdate struct object, must be deleted using delete_hdate.
522
523 @return a new hdate object
524 */
525 hdate_struct *
526 new_hdate ();
527
528 /**
529 @brief delete an hdate struct object.
530
531 @param h pointer this hdate struct.
532 */
533 hdate_struct *
534 delete_hdate (hdate_struct *h);
535
536 /*************************************************************/
537 /*************************************************************/
538
539 /**
540 @brief Return a static string, with the package name and version
541
542 @return a static string, with the package name and version
543 */
544 char *
545 hdate_get_version_string ();
546
547 /**
548 @brief name of translator
549
550 @return a static string with name of translator, or NULL if none.
551 */
552 char *
553 hdate_get_translator_string ();
554
555 #ifdef __cplusplus
556 }
557 #endif
558
559 #endif
+0
-276
current/src/hdate_holyday.c less more
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2008 Yaacov Zamir <kzamir@walla.co.il>
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 3 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 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, see <http://www.gnu.org/licenses/>.
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 const * 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, 31, 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, 35,
42 35, 35, 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, 33},
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, 32, 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, 36, 36},
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 < 1 || h->hd_day > 31)
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 /* Rabin day, on years after 1997 */
188 if (holyday == 35)
189 {
190 if (h->gd_year < 1997)
191 holyday = 0;
192 else
193 {
194 if ((h->hd_day == 10 || h->hd_day == 11) && (h->hd_dw != 5))
195 holyday = 0;
196 if ((h->hd_day == 12) && (h->hd_dw == 6 || h->hd_dw == 7))
197 holyday = 0;
198 }
199 }
200
201 /* Zhabotinsky day, on years after 2005 */
202 if (holyday == 36)
203 {
204 if (h->gd_year < 2005)
205 holyday = 0;
206 else
207 {
208 if ((h->hd_day == 30) && (h->hd_dw != 1))
209 holyday = 0;
210 if ((h->hd_day == 29) && (h->hd_dw == 7))
211 holyday = 0;
212 }
213 }
214
215 /* diaspora holidays */
216
217 /* simchat tora only in diaspora in israel just one day shmini+simchat tora */
218 if (holyday == 8 && !diaspora)
219 holyday = 0;
220
221 /* sukkot II holiday only in diaspora */
222 if (holyday == 31 && !diaspora)
223 holyday = 6;
224
225 /* pesach II holiday only in diaspora */
226 if (holyday == 32 && !diaspora)
227 holyday = 16;
228
229 /* shavot II holiday only in diaspora */
230 if (holyday == 30 && !diaspora)
231 holyday = 0;
232
233 /* pesach VIII holiday only in diaspora */
234 if (holyday == 29 && !diaspora)
235 holyday = 0;
236
237 return holyday;
238 }
239
240 /**
241 @brief Return number of hebrew holyday type.
242
243 @param holyday the holyday number
244 @return the number of holyday type.
245 */
246 int
247 hdate_get_holyday_type (int holyday)
248 {
249 int holyday_type;
250
251 switch (holyday)
252 {
253 case 0: /* regular day */
254 holyday_type = 0;
255 break;
256 case 5:
257 case 15:
258 case 20: /* 3 regels */
259 holyday_type = 2;
260 break;
261 case 3:
262 case 4:
263 case 10:
264 case 12:
265 case 21:
266 case 22: /* tzom */
267 holyday_type = 3;
268 break;
269 default: /* regular holyday */
270 holyday_type = 1;
271 break;
272 }
273
274 return holyday_type;
275 }
+0
-644
current/src/hdate_julian.c less more
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include <time.h>
19 #include <stdio.h>
20 #include <stdlib.h>
21
22 #include "hdate.h"
23 #include "support.h"
24
25 #define HOUR 1080
26 #define DAY (24*HOUR)
27 #define WEEK (7*DAY)
28 #define M(h,p) ((h)*HOUR+p)
29 #define MONTH (DAY+M(12,793)) /* Tikun for regular month */
30
31 /**
32 @brief Days since bet (?) Tishrey 3744
33
34 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
35
36 @param hebrew_year The Hebrew year
37 @return Number of days since 3,1,3744
38 */
39 int
40 hdate_days_from_3744 (int hebrew_year)
41 {
42 int years_from_3744;
43 int molad_3744;
44 int leap_months;
45 int leap_left;
46 int months;
47 int parts;
48 int days;
49 int parts_left_in_week;
50 int parts_left_in_day;
51 int week_day;
52
53 /* Start point for calculation is Molad new year 3744 (16BC) */
54 years_from_3744 = hebrew_year - 3744;
55 molad_3744 = M (1 + 6, 779); /* Molad 3744 + 6 hours in parts */
56
57 /* Time in months */
58 leap_months = (years_from_3744 * 7 + 1) / 19; /* Number of leap months */
59 leap_left = (years_from_3744 * 7 + 1) % 19; /* Months left of leap cycle */
60 months = years_from_3744 * 12 + leap_months; /* Total Number of months */
61
62 /* Time in parts and days */
63 parts = months * MONTH + molad_3744; /* Molad This year + Molad 3744 - corections */
64 days = months * 28 + parts / DAY - 2; /* 28 days in month + corections */
65
66 /* Time left for round date in corections */
67 parts_left_in_week = parts % WEEK; /* 28 % 7 = 0 so only corections counts */
68 parts_left_in_day = parts % DAY;
69 week_day = parts_left_in_week / DAY;
70
71 /* Special cases of Molad Zaken */
72 if ((leap_left < 12 && week_day == 3
73 && parts_left_in_day >= M (9 + 6, 204)) ||
74 (leap_left < 7 && week_day == 2
75 && parts_left_in_day >= M (15 + 6, 589)))
76 {
77 days++, week_day++;
78 }
79
80 /* ADU */
81 if (week_day == 1 || week_day == 4 || week_day == 6)
82 {
83 days++;
84 }
85
86 return days;
87 }
88
89 /**
90 @brief Size of Hebrew year in days
91
92 @param hebrew_year The Hebrew year
93 @return Size of Hebrew year
94 */
95 int
96 hdate_get_size_of_hebrew_year (int hebrew_year)
97 {
98 return hdate_days_from_3744 (hebrew_year + 1) -
99 hdate_days_from_3744 (hebrew_year);
100 }
101
102 /**
103 @brief Return Hebrew year type based on size and first week day of year.
104
105 year type | year length | Tishery 1 day of week
106 | 1 | 353 | 2
107 | 2 | 353 | 7
108 | 3 | 354 | 3
109 | 4 | 354 | 5
110 | 5 | 355 | 2
111 | 6 | 355 | 5
112 | 7 | 355 | 7
113 | 8 | 383 | 2
114 | 9 | 383 | 5
115 |10 | 383 | 7
116 |11 | 384 | 3
117 |12 | 385 | 2
118 |13 | 385 | 5
119 |14 | 385 | 7
120
121 @param size_of_year Length of year in days
122 @param new_year_dw First week day of year
123 @return A number for year type (1..14)
124 */
125 int
126 hdate_get_year_type (int size_of_year, int new_year_dw)
127 {
128 /* Only 14 combinations of size and week day are posible */
129 static int year_types[24] =
130 {1, 0, 0, 2, 0, 3, 4, 0, 5, 0, 6, 7,
131 8, 0, 9, 10, 0, 11, 0, 0, 12, 0, 13, 14};
132
133 int offset;
134
135 /* convert size and first day to 1..24 number */
136 /* 2,3,5,7 -> 1,2,3,4 */
137 /* 353, 354, 355, 383, 384, 385 -> 0, 1, 2, 3, 4, 5 */
138 offset = (new_year_dw + 1) / 2;
139 offset = offset + 4 * ((size_of_year % 10 - 3) + (size_of_year / 10 - 35));
140
141 /* some combinations are imposible */
142 return year_types[offset - 1];
143 }
144
145 /**
146 @brief Compute Julian day from Gregorian day, month and year
147 Algorithm from the wikipedia's julian_day
148
149 @author Yaacov Zamir
150
151 @param day Day of month 1..31
152 @param month Month 1..12
153 @param year Year in 4 digits e.g. 2001
154 @return The julian day number
155 */
156 int
157 hdate_gdate_to_jd (int day, int month, int year)
158 {
159 int a;
160 int y;
161 int m;
162 int jdn;
163
164 a = (14 - month) / 12;
165 y = year + 4800 - a;
166 m = month + 12 * a - 3;
167
168 jdn = day + (153 * m + 2) / 5 + 365 * y + y / 4 - y / 100 + y / 400 - 32045;
169
170 return jdn;
171 }
172
173 /**
174 @brief Compute Julian day from Hebrew day, month and year
175
176 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
177
178 @param day Day of month 1..31
179 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
180 @param year Hebrew year in 4 digits e.g. 5753
181 @return The julian day number
182 */
183 int
184 hdate_hdate_to_jd (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year)
185 {
186 int length_of_year;
187 int jd;
188 int days_from_3744;
189
190 /* Adjust for leap year */
191 if (month == 13)
192 {
193 month = 6;
194 }
195 if (month == 14)
196 {
197 month = 6;
198 day += 30;
199 }
200
201 /* Calculate days since 1,1,3744 */
202 days_from_3744 = hdate_days_from_3744 (year);
203 day = days_from_3744 + (59 * (month - 1) + 1) / 2 + day;
204
205 /* length of year */
206 length_of_year = hdate_days_from_3744 (year + 1) - days_from_3744;
207
208 /* Special cases for this year */
209 if (length_of_year % 10 > 4 && month > 2) /* long Heshvan */
210 day++;
211 if (length_of_year % 10 < 4 && month > 3) /* short Kislev */
212 day--;
213 if (length_of_year > 365 && month > 6) /* leap year */
214 day += 30;
215
216 /* adjust to julian */
217 jd = day + 1715118;
218
219 /* return the 1 of tishrey julians */
220 if (jd_tishrey1 && jd_tishrey1_next_year)
221 {
222 *jd_tishrey1 = days_from_3744 + 1715119;
223 *jd_tishrey1_next_year = *jd_tishrey1 + length_of_year;
224 }
225
226 return jd;
227 }
228
229 /**
230 @brief Converting from the Julian day to the Gregorian day
231 Algorithm from 'Julian and Gregorian Day Numbers' by Peter Meyer
232
233 @author Yaacov Zamir ( Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
234
235 @param jd Julian day
236 @param d Return Day of month 1..31
237 @param m Return Month 1..12
238 @param y Return Year in 4 digits e.g. 2001
239 */
240 void
241 hdate_jd_to_gdate (int jd, int *d, int *m, int *y)
242 {
243 int l, n, i, j;
244 l = jd + 68569;
245 n = (4 * l) / 146097;
246 l = l - (146097 * n + 3) / 4;
247 i = (4000 * (l + 1)) / 1461001; /* that's 1,461,001 */
248 l = l - (1461 * i) / 4 + 31;
249 j = (80 * l) / 2447;
250 *d = l - (2447 * j) / 80;
251 l = j / 11;
252 *m = j + 2 - (12 * l);
253 *y = 100 * (n - 49) + i + l; /* that's a lower-case L */
254
255 return;
256 }
257
258 /**
259 @brief Converting from the Julian day to the Hebrew day
260
261 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2008
262
263 @param jd Julian day
264 @param day Return Day of month 1..31
265 @param month Return Month 1..14 (13 - Adar 1, 14 - Adar 2)
266 @param year Return Year in 4 digits e.g. 2001
267 */
268 void
269 hdate_jd_to_hdate (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year)
270 {
271 int days;
272 int size_of_year;
273 int internal_jd_tishrey1, internal_jd_tishrey1_next_year;
274
275 /* calculate Gregorian date */
276 hdate_jd_to_gdate (jd, day, month, year);
277
278 /* Guess Hebrew year is Gregorian year + 3760 */
279 *year = *year + 3760;
280
281 internal_jd_tishrey1 = hdate_days_from_3744 (*year) + 1715119;
282 internal_jd_tishrey1_next_year = hdate_days_from_3744 (*year + 1) + 1715119;
283
284 /* Check if computed year was underestimated */
285 if (internal_jd_tishrey1_next_year <= jd)
286 {
287 *year = *year + 1;
288 internal_jd_tishrey1 = internal_jd_tishrey1_next_year;
289 internal_jd_tishrey1_next_year = hdate_days_from_3744 (*year + 1) + 1715119;
290 }
291
292 size_of_year = internal_jd_tishrey1_next_year - internal_jd_tishrey1;
293
294 /* days into this year, first month 0..29 */
295 days = jd - internal_jd_tishrey1;
296
297 /* last 8 months allways have 236 days */
298 if (days >= (size_of_year - 236)) /* in last 8 months */
299 {
300 days = days - (size_of_year - 236);
301 *month = days * 2 / 59;
302 *day = days - (*month * 59 + 1) / 2 + 1;
303
304 *month = *month + 4 + 1;
305
306 /* if leap */
307 if (size_of_year > 355 && *month <=6)
308 *month = *month + 8;
309 }
310 else /* in 4-5 first months */
311 {
312 /* Special cases for this year */
313 if (size_of_year % 10 > 4 && days == 59) /* long Heshvan (day 30 of Heshvan) */
314 {
315 *month = 1;
316 *day = 30;
317 }
318 else if (size_of_year % 10 > 4 && days > 59) /* long Heshvan */
319 {
320 *month = (days - 1) * 2 / 59;
321 *day = days - (*month * 59 + 1) / 2;
322 }
323 else if (size_of_year % 10 < 4 && days > 87) /* short kislev */
324 {
325 *month = (days + 1) * 2 / 59;
326 *day = days - (*month * 59 + 1) / 2 + 2;
327 }
328 else /* regular months */
329 {
330 *month = days * 2 / 59;
331 *day = days - (*month * 59 + 1) / 2 + 1;
332 }
333
334 *month = *month + 1;
335 }
336
337 /* return the 1 of tishrey julians */
338 if (jd_tishrey1 && jd_tishrey1_next_year)
339 {
340 *jd_tishrey1 = internal_jd_tishrey1;
341 *jd_tishrey1_next_year = internal_jd_tishrey1_next_year;
342 }
343
344 return;
345 }
346
347 /********************************************************************************/
348 /********************************************************************************/
349
350 /**
351 @brief compute date structure from the Gregorian date
352
353 @param d Day of month 1..31
354 @param m Month 1..12 , if m or d is 0 return current date.
355 @param y Year in 4 digits e.g. 2001
356 */
357 hdate_struct *
358 hdate_set_gdate (hdate_struct * h, int d, int m, int y)
359 {
360 int jd;
361 int jd_tishrey1, jd_tishrey1_next_year;
362
363 if (!h) return NULL;
364
365 /* check for null dates (kobi) */
366 if ((d == 0) || (m == 0))
367 {
368 struct tm *tm;
369 long t;
370 /* FIXME: day start at 6:00 or 12:00 like in Gregorian cal. ? */
371 t = time (0);
372 tm = localtime (&t);
373 d = tm->tm_mday;
374 m = tm->tm_mon + 1;
375 y = tm->tm_year + 1900;
376 }
377
378 h->gd_day = d;
379 h->gd_mon = m;
380 h->gd_year = y;
381
382 jd = hdate_gdate_to_jd (d, m, y);
383 hdate_jd_to_hdate (jd, &(h->hd_day), &(h->hd_mon), &(h->hd_year), &jd_tishrey1, &jd_tishrey1_next_year);
384
385 h->hd_dw = (jd + 1) % 7 + 1;
386 h->hd_size_of_year = jd_tishrey1_next_year - jd_tishrey1;
387 h->hd_new_year_dw = (jd_tishrey1 + 1) % 7 + 1;
388 h->hd_year_type = hdate_get_year_type (h->hd_size_of_year , h->hd_new_year_dw);
389 h->hd_jd = jd;
390 h->hd_days = jd - jd_tishrey1 + 1;
391 h->hd_weeks = ((h->hd_days - 1) + (h->hd_new_year_dw - 1)) / 7 + 1;
392
393 return (h);
394 }
395
396 /**
397 @brief compute date structure from the Hebrew date
398
399 @param d Day of month 1..31
400 @param m Month 1..14 , if m or d is 0 return current date.
401 @param y Year in 4 digits e.g. 5731
402 */
403 hdate_struct *
404 hdate_set_hdate (hdate_struct * h, int d, int m, int y)
405 {
406 int jd;
407 int jd_tishrey1, jd_tishrey1_next_year;
408
409 if (!h) return NULL;
410
411 h->hd_day = d;
412 h->hd_mon = m;
413 h->hd_year = y;
414
415 jd = hdate_hdate_to_jd (d, m, y, &jd_tishrey1, &jd_tishrey1_next_year);
416 hdate_jd_to_gdate (jd, &(h->gd_day), &(h->gd_mon), &(h->gd_year));
417
418 h->hd_dw = (jd + 1) % 7 + 1;
419 h->hd_size_of_year = jd_tishrey1_next_year - jd_tishrey1;
420 h->hd_new_year_dw = (jd_tishrey1 + 1) % 7 + 1;
421 h->hd_year_type = hdate_get_year_type (h->hd_size_of_year , h->hd_new_year_dw);
422 h->hd_jd = jd;
423 h->hd_days = jd - jd_tishrey1 + 1;
424 h->hd_weeks = ((h->hd_days - 1) + (h->hd_new_year_dw - 1)) / 7 + 1;
425
426 return (h);
427 }
428
429 /**
430 @brief compute date structure from julian day
431
432 @param jd the julian day number.
433 */
434 hdate_struct *
435 hdate_set_jd (hdate_struct * h, int jd)
436 {
437 int jd_tishrey1, jd_tishrey1_next_year;
438
439 if (!h) return NULL;
440
441 hdate_jd_to_gdate (jd, &(h->gd_day), &(h->gd_mon), &(h->gd_year));
442 hdate_jd_to_hdate (jd, &(h->hd_day), &(h->hd_mon), &(h->hd_year), &jd_tishrey1, &jd_tishrey1_next_year);
443
444 h->hd_dw = (jd + 1) % 7 + 1;
445 h->hd_size_of_year = jd_tishrey1_next_year - jd_tishrey1;
446 h->hd_new_year_dw = (jd_tishrey1 + 1) % 7 + 1;
447 h->hd_year_type = hdate_get_year_type (h->hd_size_of_year , h->hd_new_year_dw);
448 h->hd_jd = jd;
449 h->hd_days = jd - jd_tishrey1 + 1;
450 h->hd_weeks = ((h->hd_days - 1) + (h->hd_new_year_dw - 1)) / 7 + 1;
451
452 return (h);
453 }
454
455 /********************************************************************************/
456 /********************************************************************************/
457
458 /**
459 @brief get the Gregorian day of the month
460
461 @param h pointer this hdate struct.
462 @return the Gregorian day of the month, 1..31.
463 */
464 int
465 hdate_get_gday (hdate_struct const * h)
466 {
467 return h->gd_day;
468 }
469
470 /**
471 @brief get the Gregorian month
472
473 @param h pointer this hdate struct.
474 @return the Gregorian month, jan = 1.
475 */
476 int
477 hdate_get_gmonth (hdate_struct const * h)
478 {
479 return h->gd_mon;
480 }
481
482 /**
483 @brief get the Gregorian year
484
485 @param h pointer this hdate struct.
486 @return the Gregorian year.
487 */
488 int
489 hdate_get_gyear (hdate_struct const * h)
490 {
491 return h->gd_year;
492 }
493
494 /**
495 @brief get the Hebrew day of the month
496
497 @param h pointer this hdate struct.
498 @return the Hebrew day of the month, 1..30.
499 */
500 int
501 hdate_get_hday (hdate_struct const * h)
502 {
503 return h->hd_day;
504 }
505
506 /**
507 @brief get the Hebrew month
508
509 @param h pointer this hdate struct.
510 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
511 */
512 int
513 hdate_get_hmonth (hdate_struct const * h)
514 {
515 return h->hd_mon;
516 }
517
518 /**
519 @brief get the Hebrew year
520
521 @param h pointer this hdate struct.
522 @return the Hebrew year.
523 */
524 int
525 hdate_get_hyear (hdate_struct const * h)
526 {
527 return h->hd_year;
528 }
529
530 /**
531 @brief get the day of the week
532
533 @param h pointer this hdate struct.
534 @return the the day of the week.
535 */
536 int
537 hdate_get_day_of_the_week (hdate_struct const * h)
538 {
539 return h->hd_dw;
540 }
541
542 /**
543 @brief get the size of the hebrew year
544
545 @param h pointer this hdate struct.
546 @return the the size of the hebrew year.
547 */
548 int
549 hdate_get_size_of_year (hdate_struct const * h)
550 {
551 return h->hd_size_of_year;
552 }
553
554 /**
555 @brief get the new year day of the week
556
557 @param h pointer this hdate struct.
558 @return the the new year day of the week.
559 */
560 int
561 hdate_get_new_year_day_of_the_week (hdate_struct const * h)
562 {
563 return h->hd_new_year_dw;
564 }
565
566 /**
567 @brief get the Julian day number
568
569 @param h pointer this hdate struct.
570 @return the Julian day number.
571 */
572 int
573 hdate_get_julian (hdate_struct const * h)
574 {
575 return h->hd_jd;
576 }
577
578 /**
579 @brief get the number of days passed since 1 tishrey
580
581 @param h pointer this hdate struct.
582 @return the number of days passed since 1 tishrey.
583 */
584 int
585 hdate_get_days (hdate_struct const * h)
586 {
587 return h->hd_days;
588 }
589
590 /**
591 @brief get the number of weeks passed since 1 tishrey
592
593 @param h pointer this hdate struct.
594 @return the number of weeks passed since 1 tishrey.
595 */
596 int
597 hdate_get_weeks (hdate_struct const * h)
598 {
599 return h->hd_weeks;
600 }
601
602 /********************************************************************************/
603 /********************************************************************************/
604
605 /**
606 @brief creat a new hdate struct object, must be deleted using delete_hdate.
607
608 @return a new hdate object
609 */
610 hdate_struct *
611 new_hdate ()
612 {
613 /* allocate memory for a new hdate object */
614 hdate_struct *h = (hdate_struct *) malloc (sizeof (hdate_struct));
615
616 /* check for out of memory */
617 if (!h)
618 return NULL;
619
620 /* get todays date */
621 hdate_set_gdate (h, 0, 0, 0);
622
623 return h;
624 }
625
626 /**
627 @brief delete an hdate struct object.
628
629 @param h pointer this hdate struct.
630 */
631 hdate_struct *
632 delete_hdate (hdate_struct *h)
633 {
634 /* if h exist delete it */
635 if (h)
636 {
637 free (h);
638 h = NULL;
639 }
640
641 return h;
642 }
643
+0
-250
current/src/hdate_parasha.c less more
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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 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, see <http://www.gnu.org/licenses/>.
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 const * 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
-573
current/src/hdate_strings.c less more
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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 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, see <http://www.gnu.org/licenses/>.
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][36] = {
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"), /* 30 */
270 N_("Sukkot II"),
271 N_("Pesach II"),
272 N_("Family Day"),
273 N_("Memorial day for fallen whose place of burial is unknown"),
274 N_("Rabin memorial day"), /* 35 */
275 N_("Zhabotinsky day")},
276 {
277 N_("Rosh Hashana I"),
278 N_("Rosh Hashana II"),
279 N_("Tzom Gedaliah"),
280 N_("Yom Kippur"),
281 N_("Sukkot"),
282 N_("Hol hamoed Sukkot"),
283 N_("Hoshana raba"),
284 N_("Simchat Torah"),
285 N_("Chanukah"),
286 N_("Asara B'Tevet"),
287 N_("Tu B'Shvat"),
288 N_("Ta'anit Esther"),
289 N_("Purim"),
290 N_("Shushan Purim"),
291 N_("Pesach"),
292 N_("Hol hamoed Pesach"),
293 N_("Yom HaAtzma'ut"),
294 N_("Lag B'Omer"),
295 N_("Erev Shavuot"),
296 N_("Shavuot"),
297 N_("Tzom Tammuz"),
298 N_("Tish'a B'Av"),
299 N_("Tu B'Av"),
300 N_("Yom HaShoah"),
301 N_("Yom HaZikaron"),
302 N_("Yom Yerushalayim"),
303 N_("Shmini Atzeret"),
304 N_("Pesach VII"),
305 N_("Pesach VIII"),
306 N_("Shavuot II"),
307 N_("Sukkot II"),
308 N_("Pesach II"),
309 N_("Family Day"),
310 N_("Memorial day for fallen whose place of burial is unknown"),
311 N_("Yitzhak Rabin memorial day"), /* 35 */
312 N_("Zeev Zhabotinsky day")}
313 };
314
315 #ifdef ENABLE_NLS
316 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
317 bind_textdomain_codeset (PACKAGE, "UTF-8");
318 #endif
319
320 /* make sure s is 0 or 1 */
321 s = s ? 0 : 1;
322
323 if (holyday >= 1 && holyday <= 36)
324 {
325 return _(holydays[s][holyday - 1]);
326 }
327
328 /* if not a valid holyday return NULL */
329 return NULL;
330 }
331
332 /**
333 @brief Name of Parasha
334
335 @param parasha The Number of Parasha 1-Bereshit
336 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
337 @param s A short flag.
338 */
339 char *
340 hdate_get_parasha_string (int parasha, int s)
341 {
342 /* FIXME: abbrev of parasha */
343 static char *parashaot[2][62] = {
344 {
345 N_("none"),
346 N_("Bereshit"), /* 1 */
347 N_("Noach"),
348 N_("Lech-Lecha"),
349 N_("Vayera"),
350 N_("Chayei Sara"),
351 N_("Toldot"),
352 N_("Vayetzei"),
353 N_("Vayishlach"),
354 N_("Vayeshev"),
355 N_("Miketz"), /* 10 */
356 N_("Vayigash"),
357 N_("Vayechi"),
358 N_("Shemot"),
359 N_("Vaera"),
360 N_("Bo"),
361 N_("Beshalach"),
362 N_("Yitro"),
363 N_("Mishpatim"),
364 N_("Terumah"),
365 N_("Tetzaveh"), /* 20 */
366 N_("Ki Tisa"),
367 N_("Vayakhel"),
368 N_("Pekudei"),
369 N_("Vayikra"),
370 N_("Tzav"),
371 N_("Shmini"),
372 N_("Tazria"),
373 N_("Metzora"),
374 N_("Achrei Mot"),
375 N_("Kedoshim"), /* 30 */
376 N_("Emor"),
377 N_("Behar"),
378 N_("Bechukotai"),
379 N_("Bamidbar"),
380 N_("Nasso"),
381 N_("Beha'alotcha"),
382 N_("Sh'lach"),
383 N_("Korach"),
384 N_("Chukat"),
385 N_("Balak"), /* 40 */
386 N_("Pinchas"),
387 N_("Matot"),
388 N_("Masei"),
389 N_("Devarim"),
390 N_("Vaetchanan"),
391 N_("Eikev"),
392 N_("Re'eh"),
393 N_("Shoftim"),
394 N_("Ki Teitzei"),
395 N_("Ki Tavo"), /* 50 */
396 N_("Nitzavim"),
397 N_("Vayeilech"),
398 N_("Ha'Azinu"),
399 N_("Vezot Habracha"), /* 54 */
400 N_("Vayakhel-Pekudei"),
401 N_("Tazria-Metzora"),
402 N_("Achrei Mot-Kedoshim"),
403 N_("Behar-Bechukotai"),
404 N_("Chukat-Balak"),
405 N_("Matot-Masei"),
406 N_("Nitzavim-Vayeilech")},
407 {
408 N_("none"),
409 N_("Bereshit"), /* 1 */
410 N_("Noach"),
411 N_("Lech-Lecha"),
412 N_("Vayera"),
413 N_("Chayei Sara"),
414 N_("Toldot"),
415 N_("Vayetzei"),
416 N_("Vayishlach"),
417 N_("Vayeshev"),
418 N_("Miketz"), /* 10 */
419 N_("Vayigash"),
420 N_("Vayechi"),
421 N_("Shemot"),
422 N_("Vaera"),
423 N_("Bo"),
424 N_("Beshalach"),
425 N_("Yitro"),
426 N_("Mishpatim"),
427 N_("Terumah"),
428 N_("Tetzaveh"), /* 20 */
429 N_("Ki Tisa"),
430 N_("Vayakhel"),
431 N_("Pekudei"),
432 N_("Vayikra"),
433 N_("Tzav"),
434 N_("Shmini"),
435 N_("Tazria"),
436 N_("Metzora"),
437 N_("Achrei Mot"),
438 N_("Kedoshim"), /* 30 */
439 N_("Emor"),
440 N_("Behar"),
441 N_("Bechukotai"),
442 N_("Bamidbar"),
443 N_("Nasso"),
444 N_("Beha'alotcha"),
445 N_("Sh'lach"),
446 N_("Korach"),
447 N_("Chukat"),
448 N_("Balak"), /* 40 */
449 N_("Pinchas"),
450 N_("Matot"),
451 N_("Masei"),
452 N_("Devarim"),
453 N_("Vaetchanan"),
454 N_("Eikev"),
455 N_("Re'eh"),
456 N_("Shoftim"),
457 N_("Ki Teitzei"),
458 N_("Ki Tavo"), /* 50 */
459 N_("Nitzavim"),
460 N_("Vayeilech"),
461 N_("Ha'Azinu"),
462 N_("Vezot Habracha"), /* 54 */
463 N_("Vayakhel-Pekudei"),
464 N_("Tazria-Metzora"),
465 N_("Achrei Mot-Kedoshim"),
466 N_("Behar-Bechukotai"),
467 N_("Chukat-Balak"),
468 N_("Matot-Masei"),
469 N_("Nitzavim-Vayeilech")}
470 };
471
472 #ifdef ENABLE_NLS
473 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
474 bind_textdomain_codeset (PACKAGE, "UTF-8");
475 #endif
476
477 /* make sure s is 0 or 1 */
478 s = s ? 0 : 1;
479
480 if (parasha >= 0 && parasha <= 61)
481 {
482 return _(parashaot[s][parasha]);
483 }
484
485 /* if not a valid parasha return NULL */
486 return NULL;
487 }
488
489 /**
490 @brief Return a static string, with the hebrew date.
491
492 return the short ( e.g. "1 Tishrey" ) or
493 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
494
495 @param h The hdate_struct of the date to print.
496 @param diaspora if true give diaspora holydays
497 @param s A short flag (true - returns a short string, false returns a long string. ).
498 */
499 char *
500 hdate_get_format_date (hdate_struct const *h, int diaspora, int s)
501 {
502 static char format_date[500];
503 static char temp[500];
504 int holyday;
505
506 if (h)
507 {
508 if (s)
509 { /* short format */
510 snprintf (format_date, 500, "%s %s",
511 hdate_get_int_string (h->hd_day),
512 hdate_get_hebrew_month_string (h->hd_mon, s));
513 return (format_date);
514 }
515 else
516 {
517 snprintf (temp, 500, "%s, %s %s",
518 hdate_get_day_string (h->hd_dw, s),
519 hdate_get_int_string (h->hd_day),
520 hdate_get_hebrew_month_string (h->hd_mon, s));
521 snprintf (format_date, 500, "%s %s",
522 temp, hdate_get_int_string (h->hd_year));
523
524 /* if holyday print it */
525 holyday = hdate_get_holyday (h, diaspora);
526
527 if (holyday != 0)
528 {
529 snprintf (temp, 500, "%s, %s",
530 format_date, hdate_get_holyday_string (holyday, 0));
531
532 return (temp);
533 }
534 else
535 return (format_date);
536 }
537 }
538
539 return NULL;
540 }
541
542 /**
543 @brief Return a static string, with the package name and version
544
545 @return a a static string, with the package name and version
546 */
547 char *
548 hdate_get_version_string ()
549 {
550 static char version[500];
551
552 /* make a "packge version" string */
553 snprintf (version, 500, "%s %s", PACKAGE, VERSION);
554
555 return (version);
556 }
557
558 /**
559 @brief Return a static string, with the name of translator
560
561 @return a a static string, with the name of translator
562 */
563 char *
564 hdate_get_translator_string ()
565 {
566 /* if untranslated return null */
567 if (strcmp (_("translator"), "translator") == 0)
568 return NULL;
569
570 /* return the translator name */
571 return _("translator");
572 }
+0
-188
current/src/hdate_sun_time.c less more
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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 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, see <http://www.gnu.org/licenses/>.
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 #include <errno.h>
28
29 #include "hdate.h"
30 #include "support.h"
31
32 /**
33 @brief days from 1 january
34
35 @parm day this day of month
36 @parm month this month
37 @parm year this year
38 @return the days from 1 jan
39 */
40 int
41 hdate_get_day_of_year (int day, int month, int year)
42 {
43 int jd;
44
45 /* get todays julian day number */
46 jd = (1461 * (year + 4800 + (month - 14) / 12)) / 4 +
47 (367 * (month - 2 - 12 * ((month - 14) / 12))) / 12 -
48 (3 * ((year + 4900 + (month - 14) / 12) / 100)) / 4 + day;
49
50 /* substruct the julian day of 1/1/year and add one */
51 jd = jd - ((1461 * (year + 4799)) / 4 +
52 367 * 11 / 12 - (3 * ((year + 4899) / 100)) / 4);
53
54 return jd;
55 }
56
57 /**
58 @brief utc sun times for altitude at a gregorian date
59
60 Returns the sunset and sunrise times in minutes from 00:00 (utc time)
61 if sun altitude in sunrise is deg degries.
62 This function only works for altitudes sun realy is.
63 If the sun never get to this altitude, the returned sunset and sunrise values
64 will be negative. This can happen in low altitude when latitude is
65 nearing the pols in winter times, the sun never goes very high in
66 the sky there.
67
68 @param day this day of month
69 @param month this month
70 @param year this year
71 @param longitude longitude to use in calculations
72 @param latitude latitude to use in calculations
73 @param deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
74 @param sunrise return the utc sunrise in minutes
75 @param sunset return the utc sunset in minutes
76 */
77 void
78 hdate_get_utc_sun_time_deg (int day, int month, int year, double latitude, double longitude, double deg, int *sunrise, int *sunset)
79 {
80 double gama; /* location of sun in yearly cycle in radians */
81 double eqtime; /* diffference betwen sun noon and clock noon */
82 double decl; /* sun declanation */
83 double ha; /* solar hour engle */
84 double sunrise_angle = M_PI * deg / 180.0; /* sun angle at sunrise/set */
85
86 int day_of_year;
87
88 /* get the day of year */
89 day_of_year = hdate_get_day_of_year (day, month, year);
90
91 /* get radians of sun orbit around erth =) */
92 gama = 2.0 * M_PI * ((double)(day_of_year - 1) / 365.0);
93
94 /* get the diff betwen suns clock and wall clock in minutes */
95 eqtime = 229.18 * (0.000075 + 0.001868 * cos (gama)
96 - 0.032077 * sin (gama) - 0.014615 * cos (2.0 * gama)
97 - 0.040849 * sin (2.0 * gama));
98
99 /* calculate suns declanation at the equater in radians */
100 decl = 0.006918 - 0.399912 * cos (gama) + 0.070257 * sin (gama)
101 - 0.006758 * cos (2.0 * gama) + 0.000907 * sin (2.0 * gama)
102 - 0.002697 * cos (3.0 * gama) + 0.00148 * sin (3.0 * gama);
103
104 /* we use radians, ratio is 2pi/360 */
105 latitude = M_PI * latitude / 180.0;
106
107 /* the sun real time diff from noon at sunset/rise in radians */
108 errno = 0;
109 ha = acos (cos (sunrise_angle) / (cos (latitude) * cos (decl)) - tan (latitude) * tan (decl));
110
111 /* check for too high altitudes and return negative values */
112 if (errno == EDOM)
113 {
114 *sunrise = -720;
115 *sunset = -720;
116
117 return;
118 }
119
120 /* we use minutes, ratio is 1440min/2pi */
121 ha = 720.0 * ha / M_PI;
122
123 /* get sunset/rise times in utc wall clock in minutes from 00:00 time */
124 *sunrise = (int)(720.0 + 4.0 * longitude - ha - eqtime);
125 *sunset = (int)(720.0 + 4.0 * longitude + ha - eqtime);
126
127 return;
128 }
129
130 /**
131 @brief utc sunrise/set time for a gregorian date
132
133 @parm day this day of month
134 @parm month this month
135 @parm year this year
136 @parm longitude longitude to use in calculations
137 @parm latitude latitude to use in calculations
138 @parm sunrise return the utc sunrise in minutes
139 @parm sunset return the utc sunset in minutes
140 */
141 void
142 hdate_get_utc_sun_time (int day, int month, int year, double latitude, double longitude, int *sunrise, int *sunset)
143 {
144 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 90.833, sunrise, sunset);
145
146 return;
147 }
148
149 /**
150 @brief utc sunrise/set time for a gregorian date
151
152 @parm day this day of month
153 @parm month this month
154 @parm year this year
155 @parm longitude longitude to use in calculations
156 @parm latitude latitude to use in calculations
157 @parm sun_hour return the length of shaa zaminit in minutes
158 @parm first_light return the utc alut ha-shachar in minutes
159 @parm talit return the utc tphilin and talit in minutes
160 @parm sunrise return the utc sunrise in minutes
161 @parm midday return the utc midday in minutes
162 @parm sunset return the utc sunset in minutes
163 @parm first_stars return the utc tzeit hacochavim in minutes
164 @parm three_stars return the utc shlosha cochavim in minutes
165 */
166 void
167 hdate_get_utc_sun_time_full (int day, int month, int year, double latitude, double longitude,
168 int *sun_hour, int *first_light, int *talit, int *sunrise,
169 int *midday, int *sunset, int *first_stars, int *three_stars)
170 {
171 int place_holder;
172
173 /* sunset and rise time */
174 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 90.833, sunrise, sunset);
175
176 /* shaa zmanit by gara, 1/12 of light time */
177 *sun_hour = (*sunset - *sunrise) / 12;
178 *midday = (*sunset + *sunrise) / 2;
179
180 /* get times of the different sun angles */
181 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 106.01, first_light, &place_holder);
182 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 101.0, talit, &place_holder);
183 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 96.0, &place_holder, first_stars);
184 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 98.5, &place_holder, three_stars);
185
186 return;
187 }
+0
-609
current/src/hdatepp.h less more
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 /** @file hdatepp.h
19 @brief libhdate C++ language header.
20
21 libhdate - Hebrew calendar library, the C++ language header file.
22 */
23
24 #ifndef __HDATE_PP_H__
25 #define __HDATE_PP_H__
26
27 #include <hdate.h>
28
29 /**
30 @brief the libhdate namespace.
31 */
32 namespace hdate
33 {
34 /**
35 @brief Hdate class.
36
37 class for Hebrew/Gregorian date conversions
38 */
39 class Hdate;
40
41 /**
42 @brief Hdate class.
43
44 class for Hebrew/Gregorian date conversions
45 */
46 class Hdate
47 {
48
49 public:
50 ////////////////////////////////////////
51 ////////////////////////////////////////
52
53 /**
54 @brief Hdate constructor.
55 */
56 Hdate()
57 {
58 /* default is this day */
59 h = new_hdate();
60
61 /* default is in israel */
62 diaspora = HDATE_ISRAEL_FLAG;
63
64 /* default localeconv is Tel-Aviv winter time */
65 latitude = 32.0;
66 longitude = -34.0;
67 tz = 2;
68 }
69
70 /**
71 @brief Hdate destructor.
72 */
73 ~Hdate()
74 {
75 delete_hdate(h);
76 }
77
78 ////////////////////////////////////////
79 ////////////////////////////////////////
80
81 /**
82 @brief compute date structure from the Gregorian date
83
84 @param d Day of month 1..31
85 @param m Month 1..12 , if m or d is 0 return current date.
86 @param y Year in 4 digits e.g. 2001
87 */
88 void
89 set_gdate (int d, int m, int y)
90 {
91 hdate_set_gdate (h, d, m, y);
92 }
93
94 /**
95 @brief compute date structure from the Hebrew date
96
97 @param d Day of month 1..31
98 @param m Month 1..14 , if m or d is 0 return current date.
99 @param y Year in 4 digits e.g. 5731
100 */
101 void
102 set_hdate (int d, int m, int y)
103 {
104 hdate_set_hdate (h, d, m, y);
105 }
106
107 /**
108 @brief compute date structure from the Julian day
109
110 @param jd the julian day number.
111 */
112 void
113 set_jd (int jd)
114 {
115 hdate_set_jd (h, jd);
116 }
117
118 ////////////////////////////////////////
119 ////////////////////////////////////////
120
121 /**
122 @brief get formated hebrew date.
123
124 return the short ( e.g. "1 Tishrey" ) or
125 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
126
127 @param s short flag.
128 @return a static string of foramted date
129 */
130 char *
131 get_format_date (int s)
132 {
133 return hdate_get_format_date (h, diaspora, s);
134 }
135
136 /**
137 @brief get name of week day.
138
139 @param s short flag
140 true - returns a short string: sun, false returns: sunday.
141 @return a static string of the day of the week
142 */
143 char *
144 get_day_of_week_string (int s)
145 {
146 return hdate_get_day_string (h->hd_dw, s);
147 }
148
149 /**
150 @brief get name month.
151
152 @param s short flag
153 true - returns a short string: Mar, false returns: March.
154 @return a static string of month name
155 */
156 char *
157 get_month_string (int s)
158 {
159 return hdate_get_month_string (h->gd_mon, s);
160 }
161
162 /**
163 @brief get name hebrew month.
164
165 @param s short flag
166 true - returns a short string.
167 @return a static string of hebrew month name
168 */
169 char *
170 get_hebrew_month_string (int s)
171 {
172 return hdate_get_hebrew_month_string (h->hd_mon, s);
173 }
174
175 /**
176 @brief get name hebrew holiday.
177
178 @param s short flag
179 true - returns a short string.
180 @return a static string of hebrew holiday name
181 */
182 char *
183 get_holyday_string (int s)
184 {
185 int holyday;
186
187 holyday = hdate_get_holyday (h, diaspora);
188 return hdate_get_holyday_string (holyday, s);
189 }
190
191 /**
192 @brief get the hebrew holiday type.
193
194 @return the holiday type
195 (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday)
196 */
197 int
198 get_holyday_type ()
199 {
200 int holyday;
201
202 holyday = hdate_get_holyday (h, diaspora);
203 return hdate_get_holyday_type (holyday);
204 }
205
206 /**
207 @brief get name hebrew parasha.
208
209 @param s short flag
210 true - returns a short string.
211 @return a static string of hebrew parash name
212 */
213 char *
214 get_parasha_string (int s)
215 {
216 int parasha;
217
218 parasha = hdate_get_parasha (h, diaspora);
219 return hdate_get_parasha_string (parasha, s);
220 }
221
222 /**
223 @brief get name hebrew year.
224
225 @return a static string of hebrew year
226 */
227 char *
228 get_hebrew_year_string ()
229 {
230 return hdate_get_int_string (h->hd_year);
231 }
232
233 /**
234 @brief get name hebrew hebrew day of the month
235
236 @return a static string of hebrew day of the month
237 */
238 char *
239 get_hebrew_day_string ()
240 {
241 return hdate_get_int_string (h->hd_day);
242 }
243
244 ////////////////////////////////////////
245 ////////////////////////////////////////
246
247 /**
248 @brief get parash number
249
250 @return the hebrew parasha number
251 */
252 int
253 get_parasha ()
254 {
255 return hdate_get_parasha (h, diaspora);
256 }
257
258 /**
259 @brief get holiday number
260 @return the hebrew holiday number
261 */
262 int
263 get_holyday ()
264 {
265 return hdate_get_holyday (h, diaspora);
266 }
267
268 /**
269 @brief get Gregorian day of the month
270
271 @return the Gregorian day of the month
272 */
273 int
274 get_gday ()
275 {
276 return hdate_get_gday (h);
277 }
278
279 /**
280 @brief get Gregorian month
281
282 @return the Gregorian month
283 */
284 int
285 get_gmonth ()
286 {
287 return hdate_get_gmonth (h);
288 }
289
290 /**
291 @brief get Gregorian year
292
293 @return the Gregorian year
294 */
295 int
296 get_gyear ()
297 {
298 return hdate_get_gyear (h);
299 }
300
301 /**
302 @brief get Hebrew day of the month
303
304 @return the Hebrew day of the month
305 */
306 int
307 get_hday ()
308 {
309 return hdate_get_hday (h);
310 }
311
312 /**
313 @brief get Hebrew month
314
315 @return the Hebrew month
316 */
317 int
318 get_hmonth ()
319 {
320 return hdate_get_hmonth (h);
321 }
322
323 /**
324 @brief get Hebrew year
325
326 @return the Hebrew year
327 */
328 int
329 get_hyear ()
330 {
331 return hdate_get_hyear (h);
332 }
333
334 /**
335 @brief get the day of the week
336
337 @return the day of the week
338 */
339 int
340 get_day_of_the_week ()
341 {
342 return hdate_get_day_of_the_week (h);
343 }
344
345 /**
346 @brief get the size of the Hebrew year in days
347
348 @return the size of the Hebrew year in days
349 */
350 int
351 get_size_of_year ()
352 {
353 return hdate_get_size_of_year (h);
354 }
355
356 /**
357 @brief get the day of the week of hebrew new years
358
359 @return the day of the week of hebrew new years
360 */
361 int
362 get_new_year_day_of_the_week ()
363 {
364 return hdate_get_new_year_day_of_the_week (h);
365 }
366
367 /**
368 @brief get the Julian day number
369
370 @return the Julian day number
371 */
372 int
373 get_julian ()
374 {
375 return hdate_get_julian (h);
376 }
377
378 /**
379 @brief get the number of days sice Tishrey I
380
381 @return the the number of days sice Tishrey I
382 */
383 int
384 get_days ()
385 {
386 return hdate_get_days (h);
387 }
388
389 /**
390 @brief get the number of weeks sice Tishrey I
391
392 @return the the number of weeks sice Tishrey I
393 */
394 int
395 get_weeks ()
396 {
397 return hdate_get_weeks (h);
398 }
399
400 ////////////////////////////////////////
401 ////////////////////////////////////////
402
403 /**
404 @brief set location
405
406 @param in_longitude longitude to use in calculations
407 degrees, negative values are east
408 @param in_latitude latitude to use in calculations
409 degrees, negative values are south
410 @param in_tz time zone
411 */
412 void
413 set_location (double in_latitude, double in_longitude, int in_tz)
414 {
415 latitude = in_latitude;
416 longitude = in_longitude;
417 tz = in_tz;
418 }
419
420 /**
421 @brief sunrise time
422
423 @return sunrise in minutes after midnight (00:00)
424 */
425 int
426 get_sunrise ()
427 {
428 int sunrise;
429 int sunset;
430
431 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
432 latitude, longitude,
433 &sunrise, &sunset);
434
435 return sunrise + tz * 60;
436 }
437
438 /**
439 @brief sunset time
440
441 @return sunset in minutes after midnight (00:00)
442 */
443 int
444 get_sunset ()
445 {
446 int sunrise;
447 int sunset;
448
449 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
450 latitude, longitude,
451 &sunrise, &sunset);
452
453 return sunset + tz * 60;
454 }
455
456 /**
457 @brief first light time
458
459 @return first light in minutes after midnight (00:00)
460 */
461 int
462 get_first_light ()
463 {
464 int sunrise;
465 int sunset;
466
467 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
468 latitude, longitude, 106.01,
469 &sunrise, &sunset);
470
471 return sunrise + tz * 60;
472 }
473
474 /**
475 @brief talit time
476
477 @return talit time in minutes after midnight (00:00)
478 */
479 int
480 get_talit ()
481 {
482 int sunrise;
483 int sunset;
484
485 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
486 latitude, longitude, 101.0,
487 &sunrise, &sunset);
488
489 return sunrise + tz * 60;
490 }
491
492 /**
493 @brief first stars time
494
495 @return first stars in minutes after midnight (00:00)
496 */
497 int
498 get_first_stars ()
499 {
500 int sunrise;
501 int sunset;
502
503 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
504 latitude, longitude, 96.0,
505 &sunrise, &sunset);
506
507 return sunset + tz * 60;
508 }
509
510 /**
511 @brief three stars time
512
513 @return three stars in minutes after midnight (00:00)
514 */
515 int
516 get_three_stars ()
517 {
518 int sunrise;
519 int sunset;
520
521 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
522 latitude, longitude, 98.5,
523 &sunrise, &sunset);
524
525 return sunset + tz * 60;
526 }
527
528 /**
529 @brief sun light hour time
530
531 @return sun light hour in minutes
532 */
533 int
534 get_sun_hour ()
535 {
536 int sunrise;
537 int sunset;
538
539 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
540 latitude, longitude,
541 &sunrise, &sunset);
542
543 return (sunset - sunrise) / 12;
544 }
545
546 /**
547 @brief midday hour time
548
549 @return midday hour in minutes
550 */
551 int
552 get_midday ()
553 {
554 int sunrise;
555 int sunset;
556
557 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
558 latitude, longitude,
559 &sunrise, &sunset);
560
561 return (sunset + sunrise) / 2;
562 }
563
564 ////////////////////////////////////////
565 ////////////////////////////////////////
566
567 /**
568 @brief name of translator
569
570 @return a static string with name of translator, or NULL if none
571 */
572 char *
573 get_translator_string ()
574 {
575 return hdate_get_translator_string ();
576 }
577
578 /**
579 @brief set this hdate object to use diaspora holidays and dates
580 */
581 void
582 set_diaspora ()
583 {
584 diaspora = HDATE_DIASPORA_FLAG;
585 }
586
587 /**
588 @brief set this hdate object to use israel holidays and dates
589 */
590 void
591 set_israel ()
592 {
593 diaspora = HDATE_ISRAEL_FLAG;
594 }
595
596 private:
597
598 int diaspora;
599 double latitude;
600 double longitude;
601 int tz;
602 hdate_struct *h;
603
604 };
605
606 } // name space
607
608 #endif
+0
-54
current/src/support.h less more
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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 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, see <http://www.gnu.org/licenses/>.
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