Merge lp:~kelemeng/indicator-session/bug547131 into lp:indicator-session/0.1

Proposed by Gabor Kelemen
Status: Merged
Merged at revision: 117
Proposed branch: lp:~kelemeng/indicator-session/bug547131
Merge into: lp:indicator-session/0.1
Diff against target: 74287 lines (+73378/-0) (has conflicts)
168 files modified
AUTHORS (+2/-0)
COPYING (+676/-0)
INSTALL (+365/-0)
Makefile.am (+10/-0)
Makefile.in (+769/-0)
aclocal.m4 (+9893/-0)
autogen.sh (+11/-0)
compile (+143/-0)
config.guess (+1533/-0)
config.h.in (+89/-0)
config.sub (+1693/-0)
configure (+15780/-0)
configure.ac (+160/-0)
data/Makefile.am (+44/-0)
data/Makefile.in (+710/-0)
data/icons/16x16/Makefile.am (+1/-0)
data/icons/16x16/Makefile.in (+599/-0)
data/icons/16x16/actions/Makefile.am (+10/-0)
data/icons/16x16/actions/Makefile.in (+452/-0)
data/icons/16x16/status/Makefile.am (+7/-0)
data/icons/16x16/status/Makefile.in (+449/-0)
data/icons/22x22/Makefile.am (+1/-0)
data/icons/22x22/Makefile.in (+599/-0)
data/icons/22x22/actions/Makefile.am (+10/-0)
data/icons/22x22/actions/Makefile.in (+452/-0)
data/icons/22x22/status/Makefile.am (+7/-0)
data/icons/22x22/status/Makefile.in (+449/-0)
data/icons/24x24/Makefile.am (+1/-0)
data/icons/24x24/Makefile.in (+599/-0)
data/icons/24x24/actions/Makefile.am (+10/-0)
data/icons/24x24/actions/Makefile.in (+452/-0)
data/icons/24x24/status/Makefile.am (+7/-0)
data/icons/24x24/status/Makefile.in (+449/-0)
data/icons/32x32/Makefile.am (+1/-0)
data/icons/32x32/Makefile.in (+599/-0)
data/icons/32x32/actions/Makefile.am (+8/-0)
data/icons/32x32/actions/Makefile.in (+450/-0)
data/icons/32x32/status/Makefile.am (+7/-0)
data/icons/32x32/status/Makefile.in (+449/-0)
data/icons/Makefile.am (+15/-0)
data/icons/Makefile.in (+614/-0)
data/icons/scalable/Makefile.am (+1/-0)
data/icons/scalable/Makefile.in (+599/-0)
data/icons/scalable/actions/Makefile.am (+10/-0)
data/icons/scalable/actions/Makefile.in (+452/-0)
data/icons/scalable/actions/system-log-out.svg (+284/-0)
data/icons/scalable/actions/system-restart.svg (+397/-0)
data/icons/scalable/actions/system-shutdown-panel.svg (+247/-0)
data/icons/scalable/actions/system-shutdown.svg (+247/-0)
data/icons/scalable/status/Makefile.am (+7/-0)
data/icons/scalable/status/Makefile.in (+449/-0)
data/icons/scalable/status/account-logged-in.svg (+270/-0)
data/indicator-session.schemas.in (+28/-0)
data/indicator-session.service.in (+3/-0)
data/indicator-users.service.in (+3/-0)
debian/changelog (+445/-0)
debian/compat (+1/-0)
debian/control (+33/-0)
debian/copyright (+53/-0)
debian/rules (+15/-0)
debian/watch (+2/-0)
depcomp (+630/-0)
install-sh (+520/-0)
ltmain.sh (+8413/-0)
missing (+376/-0)
mkinstalldirs (+162/-0)
po/LINGUAS (+71/-0)
po/Makefile.in.in (+217/-0)
po/POTFILES.in (+8/-0)
po/am.po (+187/-0)
po/ar.po (+222/-0)
po/ast.po (+193/-0)
po/az.po (+189/-0)
po/be.po (+190/-0)
po/bg.po (+221/-0)
po/bn.po (+187/-0)
po/br.po (+189/-0)
po/bs.po (+188/-0)
po/ca.po (+190/-0)
po/crh.po (+191/-0)
po/cs.po (+214/-0)
po/csb.po (+192/-0)
po/cv.po (+187/-0)
po/da.po (+213/-0)
po/de.po (+221/-0)
po/el.po (+214/-0)
po/en_AU.po (+191/-0)
po/en_CA.po (+189/-0)
po/en_GB.po (+191/-0)
po/eo.po (+190/-0)
po/es.po (+216/-0)
po/et.po (+193/-0)
po/eu.po (+191/-0)
po/fa.po (+187/-0)
po/fi.po (+218/-0)
po/fr.po (+218/-0)
po/gl.po (+195/-0)
po/gu.po (+187/-0)
po/he.po (+210/-0)
po/hi.po (+209/-0)
po/hr.po (+220/-0)
po/hu.po (+218/-0)
po/id.po (+189/-0)
po/is.po (+191/-0)
po/it.po (+216/-0)
po/ja.po (+211/-0)
po/kk.po (+193/-0)
po/kn.po (+187/-0)
po/ko.po (+193/-0)
po/ku.po (+189/-0)
po/lb.po (+189/-0)
po/lt.po (+195/-0)
po/lv.po (+197/-0)
po/mr.po (+187/-0)
po/ms.po (+190/-0)
po/nb.po (+213/-0)
po/nl.po (+221/-0)
po/nn.po (+188/-0)
po/oc.po (+195/-0)
po/pa.po (+187/-0)
po/pl.po (+219/-0)
po/pt.po (+219/-0)
po/pt_BR.po (+221/-0)
po/ro.po (+219/-0)
po/ru.po (+220/-0)
po/si.po (+189/-0)
po/sk.po (+215/-0)
po/sl.po (+221/-0)
po/sq.po (+198/-0)
po/sr.po (+218/-0)
po/sv.po (+215/-0)
po/te.po (+187/-0)
po/th.po (+209/-0)
po/tr.po (+216/-0)
po/ug.po (+187/-0)
po/uk.po (+192/-0)
po/vi.po (+189/-0)
po/zh_CN.po (+206/-0)
po/zh_HK.po (+187/-0)
po/zh_TW.po (+206/-0)
src/Makefile.am (+149/-0)
src/Makefile.in (+970/-0)
src/consolekit-manager.xml (+353/-0)
src/consolekit-session.xml (+435/-0)
src/dbus-shared-names.h (+57/-0)
src/dbusmenu-shared.h (+4/-0)
src/dialog.c (+230/-0)
src/dialog.h (+64/-0)
src/gconf-helper.c (+114/-0)
src/gconf-helper.h (+52/-0)
src/gdm-local-display-factory.xml (+20/-0)
src/gtk-logout-helper.c (+216/-0)
src/indicator-session.c (+471/-0)
src/lock-helper.c (+305/-0)
src/lock-helper.h (+36/-0)
src/session-dbus-client.h (+64/-0)
src/session-dbus-server.h (+120/-0)
src/session-dbus.c (+139/-0)
src/session-dbus.h (+55/-0)
src/session-dbus.xml (+15/-0)
src/session-service.c (+818/-0)
src/upower.xml (+309/-0)
src/users-service-client.h (+220/-0)
src/users-service-dbus.c (+1135/-0)
src/users-service-dbus.h (+93/-0)
src/users-service-marshal.c (+84/-0)
src/users-service.list (+1/-0)
src/users-service.xml (+56/-0)
Conflict adding file AUTHORS.  Moved existing file to AUTHORS.moved.
Conflict adding file COPYING.  Moved existing file to COPYING.moved.
Conflict adding file ChangeLog.  Moved existing file to ChangeLog.moved.
Conflict adding file Makefile.am.  Moved existing file to Makefile.am.moved.
Conflict adding file NEWS.  Moved existing file to NEWS.moved.
Conflict adding file README.  Moved existing file to README.moved.
Conflict adding file autogen.sh.  Moved existing file to autogen.sh.moved.
Conflict adding file configure.ac.  Moved existing file to configure.ac.moved.
Conflict adding file data.  Moved existing file to data.moved.
Conflict adding file po.  Moved existing file to po.moved.
Conflict adding file src.  Moved existing file to src.moved.
To merge this branch: bzr merge lp:~kelemeng/indicator-session/bug547131
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+22164@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

The merge request is a little bit messed up. But that's a problem with
the branches we're working on fixing. Rev 31 seems good.

  review approve

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'AUTHORS'
--- AUTHORS 1970-01-01 00:00:00 +0000
+++ AUTHORS 2010-03-25 18:36:47 +0000
@@ -0,0 +1,2 @@
1Ted Gould <ted@canonical.com>
2Cody Russell <crussell@canonical.com>
03
=== renamed file 'AUTHORS' => 'AUTHORS.moved'
=== added file 'COPYING'
--- COPYING 1970-01-01 00:00:00 +0000
+++ COPYING 2010-03-25 18:36:47 +0000
@@ -0,0 +1,676 @@
1
2 GNU GENERAL PUBLIC LICENSE
3 Version 3, 29 June 2007
4
5 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
6 Everyone is permitted to copy and distribute verbatim copies
7 of this license document, but changing it is not allowed.
8
9 Preamble
10
11 The GNU General Public License is a free, copyleft license for
12software and other kinds of works.
13
14 The licenses for most software and other practical works are designed
15to take away your freedom to share and change the works. By contrast,
16the GNU General Public License is intended to guarantee your freedom to
17share and change all versions of a program--to make sure it remains free
18software for all its users. We, the Free Software Foundation, use the
19GNU General Public License for most of our software; it applies also to
20any other work released this way by its authors. You can apply it to
21your programs, too.
22
23 When we speak of free software, we are referring to freedom, not
24price. Our General Public Licenses are designed to make sure that you
25have the freedom to distribute copies of free software (and charge for
26them if you wish), that you receive source code or can get it if you
27want it, that you can change the software or use pieces of it in new
28free programs, and that you know you can do these things.
29
30 To protect your rights, we need to prevent others from denying you
31these rights or asking you to surrender the rights. Therefore, you have
32certain responsibilities if you distribute copies of the software, or if
33you modify it: responsibilities to respect the freedom of others.
34
35 For example, if you distribute copies of such a program, whether
36gratis or for a fee, you must pass on to the recipients the same
37freedoms that you received. You must make sure that they, too, receive
38or can get the source code. And you must show them these terms so they
39know their rights.
40
41 Developers that use the GNU GPL protect your rights with two steps:
42(1) assert copyright on the software, and (2) offer you this License
43giving you legal permission to copy, distribute and/or modify it.
44
45 For the developers' and authors' protection, the GPL clearly explains
46that there is no warranty for this free software. For both users' and
47authors' sake, the GPL requires that modified versions be marked as
48changed, so that their problems will not be attributed erroneously to
49authors of previous versions.
50
51 Some devices are designed to deny users access to install or run
52modified versions of the software inside them, although the manufacturer
53can do so. This is fundamentally incompatible with the aim of
54protecting users' freedom to change the software. The systematic
55pattern of such abuse occurs in the area of products for individuals to
56use, which is precisely where it is most unacceptable. Therefore, we
57have designed this version of the GPL to prohibit the practice for those
58products. If such problems arise substantially in other domains, we
59stand ready to extend this provision to those domains in future versions
60of the GPL, as needed to protect the freedom of users.
61
62 Finally, every program is threatened constantly by software patents.
63States should not allow patents to restrict development and use of
64software on general-purpose computers, but in those that do, we wish to
65avoid the special danger that patents applied to a free program could
66make it effectively proprietary. To prevent this, the GPL assures that
67patents cannot be used to render the program non-free.
68
69 The precise terms and conditions for copying, distribution and
70modification follow.
71
72 TERMS AND CONDITIONS
73
74 0. Definitions.
75
76 "This License" refers to version 3 of the GNU General Public License.
77
78 "Copyright" also means copyright-like laws that apply to other kinds of
79works, such as semiconductor masks.
80
81 "The Program" refers to any copyrightable work licensed under this
82License. Each licensee is addressed as "you". "Licensees" and
83"recipients" may be individuals or organizations.
84
85 To "modify" a work means to copy from or adapt all or part of the work
86in a fashion requiring copyright permission, other than the making of an
87exact copy. The resulting work is called a "modified version" of the
88earlier work or a work "based on" the earlier work.
89
90 A "covered work" means either the unmodified Program or a work based
91on the Program.
92
93 To "propagate" a work means to do anything with it that, without
94permission, would make you directly or secondarily liable for
95infringement under applicable copyright law, except executing it on a
96computer or modifying a private copy. Propagation includes copying,
97distribution (with or without modification), making available to the
98public, and in some countries other activities as well.
99
100 To "convey" a work means any kind of propagation that enables other
101parties to make or receive copies. Mere interaction with a user through
102a computer network, with no transfer of a copy, is not conveying.
103
104 An interactive user interface displays "Appropriate Legal Notices"
105to the extent that it includes a convenient and prominently visible
106feature that (1) displays an appropriate copyright notice, and (2)
107tells the user that there is no warranty for the work (except to the
108extent that warranties are provided), that licensees may convey the
109work under this License, and how to view a copy of this License. If
110the interface presents a list of user commands or options, such as a
111menu, a prominent item in the list meets this criterion.
112
113 1. Source Code.
114
115 The "source code" for a work means the preferred form of the work
116for making modifications to it. "Object code" means any non-source
117form of a work.
118
119 A "Standard Interface" means an interface that either is an official
120standard defined by a recognized standards body, or, in the case of
121interfaces specified for a particular programming language, one that
122is widely used among developers working in that language.
123
124 The "System Libraries" of an executable work include anything, other
125than the work as a whole, that (a) is included in the normal form of
126packaging a Major Component, but which is not part of that Major
127Component, and (b) serves only to enable use of the work with that
128Major Component, or to implement a Standard Interface for which an
129implementation is available to the public in source code form. A
130"Major Component", in this context, means a major essential component
131(kernel, window system, and so on) of the specific operating system
132(if any) on which the executable work runs, or a compiler used to
133produce the work, or an object code interpreter used to run it.
134
135 The "Corresponding Source" for a work in object code form means all
136the source code needed to generate, install, and (for an executable
137work) run the object code and to modify the work, including scripts to
138control those activities. However, it does not include the work's
139System Libraries, or general-purpose tools or generally available free
140programs which are used unmodified in performing those activities but
141which are not part of the work. For example, Corresponding Source
142includes interface definition files associated with source files for
143the work, and the source code for shared libraries and dynamically
144linked subprograms that the work is specifically designed to require,
145such as by intimate data communication or control flow between those
146subprograms and other parts of the work.
147
148 The Corresponding Source need not include anything that users
149can regenerate automatically from other parts of the Corresponding
150Source.
151
152 The Corresponding Source for a work in source code form is that
153same work.
154
155 2. Basic Permissions.
156
157 All rights granted under this License are granted for the term of
158copyright on the Program, and are irrevocable provided the stated
159conditions are met. This License explicitly affirms your unlimited
160permission to run the unmodified Program. The output from running a
161covered work is covered by this License only if the output, given its
162content, constitutes a covered work. This License acknowledges your
163rights of fair use or other equivalent, as provided by copyright law.
164
165 You may make, run and propagate covered works that you do not
166convey, without conditions so long as your license otherwise remains
167in force. You may convey covered works to others for the sole purpose
168of having them make modifications exclusively for you, or provide you
169with facilities for running those works, provided that you comply with
170the terms of this License in conveying all material for which you do
171not control copyright. Those thus making or running the covered works
172for you must do so exclusively on your behalf, under your direction
173and control, on terms that prohibit them from making any copies of
174your copyrighted material outside their relationship with you.
175
176 Conveying under any other circumstances is permitted solely under
177the conditions stated below. Sublicensing is not allowed; section 10
178makes it unnecessary.
179
180 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
181
182 No covered work shall be deemed part of an effective technological
183measure under any applicable law fulfilling obligations under article
18411 of the WIPO copyright treaty adopted on 20 December 1996, or
185similar laws prohibiting or restricting circumvention of such
186measures.
187
188 When you convey a covered work, you waive any legal power to forbid
189circumvention of technological measures to the extent such circumvention
190is effected by exercising rights under this License with respect to
191the covered work, and you disclaim any intention to limit operation or
192modification of the work as a means of enforcing, against the work's
193users, your or third parties' legal rights to forbid circumvention of
194technological measures.
195
196 4. Conveying Verbatim Copies.
197
198 You may convey verbatim copies of the Program's source code as you
199receive it, in any medium, provided that you conspicuously and
200appropriately publish on each copy an appropriate copyright notice;
201keep intact all notices stating that this License and any
202non-permissive terms added in accord with section 7 apply to the code;
203keep intact all notices of the absence of any warranty; and give all
204recipients a copy of this License along with the Program.
205
206 You may charge any price or no price for each copy that you convey,
207and you may offer support or warranty protection for a fee.
208
209 5. Conveying Modified Source Versions.
210
211 You may convey a work based on the Program, or the modifications to
212produce it from the Program, in the form of source code under the
213terms of section 4, provided that you also meet all of these conditions:
214
215 a) The work must carry prominent notices stating that you modified
216 it, and giving a relevant date.
217
218 b) The work must carry prominent notices stating that it is
219 released under this License and any conditions added under section
220 7. This requirement modifies the requirement in section 4 to
221 "keep intact all notices".
222
223 c) You must license the entire work, as a whole, under this
224 License to anyone who comes into possession of a copy. This
225 License will therefore apply, along with any applicable section 7
226 additional terms, to the whole of the work, and all its parts,
227 regardless of how they are packaged. This License gives no
228 permission to license the work in any other way, but it does not
229 invalidate such permission if you have separately received it.
230
231 d) If the work has interactive user interfaces, each must display
232 Appropriate Legal Notices; however, if the Program has interactive
233 interfaces that do not display Appropriate Legal Notices, your
234 work need not make them do so.
235
236 A compilation of a covered work with other separate and independent
237works, which are not by their nature extensions of the covered work,
238and which are not combined with it such as to form a larger program,
239in or on a volume of a storage or distribution medium, is called an
240"aggregate" if the compilation and its resulting copyright are not
241used to limit the access or legal rights of the compilation's users
242beyond what the individual works permit. Inclusion of a covered work
243in an aggregate does not cause this License to apply to the other
244parts of the aggregate.
245
246 6. Conveying Non-Source Forms.
247
248 You may convey a covered work in object code form under the terms
249of sections 4 and 5, provided that you also convey the
250machine-readable Corresponding Source under the terms of this License,
251in one of these ways:
252
253 a) Convey the object code in, or embodied in, a physical product
254 (including a physical distribution medium), accompanied by the
255 Corresponding Source fixed on a durable physical medium
256 customarily used for software interchange.
257
258 b) Convey the object code in, or embodied in, a physical product
259 (including a physical distribution medium), accompanied by a
260 written offer, valid for at least three years and valid for as
261 long as you offer spare parts or customer support for that product
262 model, to give anyone who possesses the object code either (1) a
263 copy of the Corresponding Source for all the software in the
264 product that is covered by this License, on a durable physical
265 medium customarily used for software interchange, for a price no
266 more than your reasonable cost of physically performing this
267 conveying of source, or (2) access to copy the
268 Corresponding Source from a network server at no charge.
269
270 c) Convey individual copies of the object code with a copy of the
271 written offer to provide the Corresponding Source. This
272 alternative is allowed only occasionally and noncommercially, and
273 only if you received the object code with such an offer, in accord
274 with subsection 6b.
275
276 d) Convey the object code by offering access from a designated
277 place (gratis or for a charge), and offer equivalent access to the
278 Corresponding Source in the same way through the same place at no
279 further charge. You need not require recipients to copy the
280 Corresponding Source along with the object code. If the place to
281 copy the object code is a network server, the Corresponding Source
282 may be on a different server (operated by you or a third party)
283 that supports equivalent copying facilities, provided you maintain
284 clear directions next to the object code saying where to find the
285 Corresponding Source. Regardless of what server hosts the
286 Corresponding Source, you remain obligated to ensure that it is
287 available for as long as needed to satisfy these requirements.
288
289 e) Convey the object code using peer-to-peer transmission, provided
290 you inform other peers where the object code and Corresponding
291 Source of the work are being offered to the general public at no
292 charge under subsection 6d.
293
294 A separable portion of the object code, whose source code is excluded
295from the Corresponding Source as a System Library, need not be
296included in conveying the object code work.
297
298 A "User Product" is either (1) a "consumer product", which means any
299tangible personal property which is normally used for personal, family,
300or household purposes, or (2) anything designed or sold for incorporation
301into a dwelling. In determining whether a product is a consumer product,
302doubtful cases shall be resolved in favor of coverage. For a particular
303product received by a particular user, "normally used" refers to a
304typical or common use of that class of product, regardless of the status
305of the particular user or of the way in which the particular user
306actually uses, or expects or is expected to use, the product. A product
307is a consumer product regardless of whether the product has substantial
308commercial, industrial or non-consumer uses, unless such uses represent
309the only significant mode of use of the product.
310
311 "Installation Information" for a User Product means any methods,
312procedures, authorization keys, or other information required to install
313and execute modified versions of a covered work in that User Product from
314a modified version of its Corresponding Source. The information must
315suffice to ensure that the continued functioning of the modified object
316code is in no case prevented or interfered with solely because
317modification has been made.
318
319 If you convey an object code work under this section in, or with, or
320specifically for use in, a User Product, and the conveying occurs as
321part of a transaction in which the right of possession and use of the
322User Product is transferred to the recipient in perpetuity or for a
323fixed term (regardless of how the transaction is characterized), the
324Corresponding Source conveyed under this section must be accompanied
325by the Installation Information. But this requirement does not apply
326if neither you nor any third party retains the ability to install
327modified object code on the User Product (for example, the work has
328been installed in ROM).
329
330 The requirement to provide Installation Information does not include a
331requirement to continue to provide support service, warranty, or updates
332for a work that has been modified or installed by the recipient, or for
333the User Product in which it has been modified or installed. Access to a
334network may be denied when the modification itself materially and
335adversely affects the operation of the network or violates the rules and
336protocols for communication across the network.
337
338 Corresponding Source conveyed, and Installation Information provided,
339in accord with this section must be in a format that is publicly
340documented (and with an implementation available to the public in
341source code form), and must require no special password or key for
342unpacking, reading or copying.
343
344 7. Additional Terms.
345
346 "Additional permissions" are terms that supplement the terms of this
347License by making exceptions from one or more of its conditions.
348Additional permissions that are applicable to the entire Program shall
349be treated as though they were included in this License, to the extent
350that they are valid under applicable law. If additional permissions
351apply only to part of the Program, that part may be used separately
352under those permissions, but the entire Program remains governed by
353this License without regard to the additional permissions.
354
355 When you convey a copy of a covered work, you may at your option
356remove any additional permissions from that copy, or from any part of
357it. (Additional permissions may be written to require their own
358removal in certain cases when you modify the work.) You may place
359additional permissions on material, added by you to a covered work,
360for which you have or can give appropriate copyright permission.
361
362 Notwithstanding any other provision of this License, for material you
363add to a covered work, you may (if authorized by the copyright holders of
364that material) supplement the terms of this License with terms:
365
366 a) Disclaiming warranty or limiting liability differently from the
367 terms of sections 15 and 16 of this License; or
368
369 b) Requiring preservation of specified reasonable legal notices or
370 author attributions in that material or in the Appropriate Legal
371 Notices displayed by works containing it; or
372
373 c) Prohibiting misrepresentation of the origin of that material, or
374 requiring that modified versions of such material be marked in
375 reasonable ways as different from the original version; or
376
377 d) Limiting the use for publicity purposes of names of licensors or
378 authors of the material; or
379
380 e) Declining to grant rights under trademark law for use of some
381 trade names, trademarks, or service marks; or
382
383 f) Requiring indemnification of licensors and authors of that
384 material by anyone who conveys the material (or modified versions of
385 it) with contractual assumptions of liability to the recipient, for
386 any liability that these contractual assumptions directly impose on
387 those licensors and authors.
388
389 All other non-permissive additional terms are considered "further
390restrictions" within the meaning of section 10. If the Program as you
391received it, or any part of it, contains a notice stating that it is
392governed by this License along with a term that is a further
393restriction, you may remove that term. If a license document contains
394a further restriction but permits relicensing or conveying under this
395License, you may add to a covered work material governed by the terms
396of that license document, provided that the further restriction does
397not survive such relicensing or conveying.
398
399 If you add terms to a covered work in accord with this section, you
400must place, in the relevant source files, a statement of the
401additional terms that apply to those files, or a notice indicating
402where to find the applicable terms.
403
404 Additional terms, permissive or non-permissive, may be stated in the
405form of a separately written license, or stated as exceptions;
406the above requirements apply either way.
407
408 8. Termination.
409
410 You may not propagate or modify a covered work except as expressly
411provided under this License. Any attempt otherwise to propagate or
412modify it is void, and will automatically terminate your rights under
413this License (including any patent licenses granted under the third
414paragraph of section 11).
415
416 However, if you cease all violation of this License, then your
417license from a particular copyright holder is reinstated (a)
418provisionally, unless and until the copyright holder explicitly and
419finally terminates your license, and (b) permanently, if the copyright
420holder fails to notify you of the violation by some reasonable means
421prior to 60 days after the cessation.
422
423 Moreover, your license from a particular copyright holder is
424reinstated permanently if the copyright holder notifies you of the
425violation by some reasonable means, this is the first time you have
426received notice of violation of this License (for any work) from that
427copyright holder, and you cure the violation prior to 30 days after
428your receipt of the notice.
429
430 Termination of your rights under this section does not terminate the
431licenses of parties who have received copies or rights from you under
432this License. If your rights have been terminated and not permanently
433reinstated, you do not qualify to receive new licenses for the same
434material under section 10.
435
436 9. Acceptance Not Required for Having Copies.
437
438 You are not required to accept this License in order to receive or
439run a copy of the Program. Ancillary propagation of a covered work
440occurring solely as a consequence of using peer-to-peer transmission
441to receive a copy likewise does not require acceptance. However,
442nothing other than this License grants you permission to propagate or
443modify any covered work. These actions infringe copyright if you do
444not accept this License. Therefore, by modifying or propagating a
445covered work, you indicate your acceptance of this License to do so.
446
447 10. Automatic Licensing of Downstream Recipients.
448
449 Each time you convey a covered work, the recipient automatically
450receives a license from the original licensors, to run, modify and
451propagate that work, subject to this License. You are not responsible
452for enforcing compliance by third parties with this License.
453
454 An "entity transaction" is a transaction transferring control of an
455organization, or substantially all assets of one, or subdividing an
456organization, or merging organizations. If propagation of a covered
457work results from an entity transaction, each party to that
458transaction who receives a copy of the work also receives whatever
459licenses to the work the party's predecessor in interest had or could
460give under the previous paragraph, plus a right to possession of the
461Corresponding Source of the work from the predecessor in interest, if
462the predecessor has it or can get it with reasonable efforts.
463
464 You may not impose any further restrictions on the exercise of the
465rights granted or affirmed under this License. For example, you may
466not impose a license fee, royalty, or other charge for exercise of
467rights granted under this License, and you may not initiate litigation
468(including a cross-claim or counterclaim in a lawsuit) alleging that
469any patent claim is infringed by making, using, selling, offering for
470sale, or importing the Program or any portion of it.
471
472 11. Patents.
473
474 A "contributor" is a copyright holder who authorizes use under this
475License of the Program or a work on which the Program is based. The
476work thus licensed is called the contributor's "contributor version".
477
478 A contributor's "essential patent claims" are all patent claims
479owned or controlled by the contributor, whether already acquired or
480hereafter acquired, that would be infringed by some manner, permitted
481by this License, of making, using, or selling its contributor version,
482but do not include claims that would be infringed only as a
483consequence of further modification of the contributor version. For
484purposes of this definition, "control" includes the right to grant
485patent sublicenses in a manner consistent with the requirements of
486this License.
487
488 Each contributor grants you a non-exclusive, worldwide, royalty-free
489patent license under the contributor's essential patent claims, to
490make, use, sell, offer for sale, import and otherwise run, modify and
491propagate the contents of its contributor version.
492
493 In the following three paragraphs, a "patent license" is any express
494agreement or commitment, however denominated, not to enforce a patent
495(such as an express permission to practice a patent or covenant not to
496sue for patent infringement). To "grant" such a patent license to a
497party means to make such an agreement or commitment not to enforce a
498patent against the party.
499
500 If you convey a covered work, knowingly relying on a patent license,
501and the Corresponding Source of the work is not available for anyone
502to copy, free of charge and under the terms of this License, through a
503publicly available network server or other readily accessible means,
504then you must either (1) cause the Corresponding Source to be so
505available, or (2) arrange to deprive yourself of the benefit of the
506patent license for this particular work, or (3) arrange, in a manner
507consistent with the requirements of this License, to extend the patent
508license to downstream recipients. "Knowingly relying" means you have
509actual knowledge that, but for the patent license, your conveying the
510covered work in a country, or your recipient's use of the covered work
511in a country, would infringe one or more identifiable patents in that
512country that you have reason to believe are valid.
513
514 If, pursuant to or in connection with a single transaction or
515arrangement, you convey, or propagate by procuring conveyance of, a
516covered work, and grant a patent license to some of the parties
517receiving the covered work authorizing them to use, propagate, modify
518or convey a specific copy of the covered work, then the patent license
519you grant is automatically extended to all recipients of the covered
520work and works based on it.
521
522 A patent license is "discriminatory" if it does not include within
523the scope of its coverage, prohibits the exercise of, or is
524conditioned on the non-exercise of one or more of the rights that are
525specifically granted under this License. You may not convey a covered
526work if you are a party to an arrangement with a third party that is
527in the business of distributing software, under which you make payment
528to the third party based on the extent of your activity of conveying
529the work, and under which the third party grants, to any of the
530parties who would receive the covered work from you, a discriminatory
531patent license (a) in connection with copies of the covered work
532conveyed by you (or copies made from those copies), or (b) primarily
533for and in connection with specific products or compilations that
534contain the covered work, unless you entered into that arrangement,
535or that patent license was granted, prior to 28 March 2007.
536
537 Nothing in this License shall be construed as excluding or limiting
538any implied license or other defenses to infringement that may
539otherwise be available to you under applicable patent law.
540
541 12. No Surrender of Others' Freedom.
542
543 If conditions are imposed on you (whether by court order, agreement or
544otherwise) that contradict the conditions of this License, they do not
545excuse you from the conditions of this License. If you cannot convey a
546covered work so as to satisfy simultaneously your obligations under this
547License and any other pertinent obligations, then as a consequence you may
548not convey it at all. For example, if you agree to terms that obligate you
549to collect a royalty for further conveying from those to whom you convey
550the Program, the only way you could satisfy both those terms and this
551License would be to refrain entirely from conveying the Program.
552
553 13. Use with the GNU Affero General Public License.
554
555 Notwithstanding any other provision of this License, you have
556permission to link or combine any covered work with a work licensed
557under version 3 of the GNU Affero General Public License into a single
558combined work, and to convey the resulting work. The terms of this
559License will continue to apply to the part which is the covered work,
560but the special requirements of the GNU Affero General Public License,
561section 13, concerning interaction through a network will apply to the
562combination as such.
563
564 14. Revised Versions of this License.
565
566 The Free Software Foundation may publish revised and/or new versions of
567the GNU General Public License from time to time. Such new versions will
568be similar in spirit to the present version, but may differ in detail to
569address new problems or concerns.
570
571 Each version is given a distinguishing version number. If the
572Program specifies that a certain numbered version of the GNU General
573Public License "or any later version" applies to it, you have the
574option of following the terms and conditions either of that numbered
575version or of any later version published by the Free Software
576Foundation. If the Program does not specify a version number of the
577GNU General Public License, you may choose any version ever published
578by the Free Software Foundation.
579
580 If the Program specifies that a proxy can decide which future
581versions of the GNU General Public License can be used, that proxy's
582public statement of acceptance of a version permanently authorizes you
583to choose that version for the Program.
584
585 Later license versions may give you additional or different
586permissions. However, no additional obligations are imposed on any
587author or copyright holder as a result of your choosing to follow a
588later version.
589
590 15. Disclaimer of Warranty.
591
592 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
593APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
594HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
595OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
596THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
597PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
598IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
599ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
600
601 16. Limitation of Liability.
602
603 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
604WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
605THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
606GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
607USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
608DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
609PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
610EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
611SUCH DAMAGES.
612
613 17. Interpretation of Sections 15 and 16.
614
615 If the disclaimer of warranty and limitation of liability provided
616above cannot be given local legal effect according to their terms,
617reviewing courts shall apply local law that most closely approximates
618an absolute waiver of all civil liability in connection with the
619Program, unless a warranty or assumption of liability accompanies a
620copy of the Program in return for a fee.
621
622 END OF TERMS AND CONDITIONS
623
624 How to Apply These Terms to Your New Programs
625
626 If you develop a new program, and you want it to be of the greatest
627possible use to the public, the best way to achieve this is to make it
628free software which everyone can redistribute and change under these terms.
629
630 To do so, attach the following notices to the program. It is safest
631to attach them to the start of each source file to most effectively
632state the exclusion of warranty; and each file should have at least
633the "copyright" line and a pointer to where the full notice is found.
634
635 <one line to give the program's name and a brief idea of what it does.>
636 Copyright (C) <year> <name of author>
637
638 This program is free software: you can redistribute it and/or modify
639 it under the terms of the GNU General Public License as published by
640 the Free Software Foundation, either version 3 of the License, or
641 (at your option) any later version.
642
643 This program is distributed in the hope that it will be useful,
644 but WITHOUT ANY WARRANTY; without even the implied warranty of
645 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
646 GNU General Public License for more details.
647
648 You should have received a copy of the GNU General Public License
649 along with this program. If not, see <http://www.gnu.org/licenses/>.
650
651Also add information on how to contact you by electronic and paper mail.
652
653 If the program does terminal interaction, make it output a short
654notice like this when it starts in an interactive mode:
655
656 <program> Copyright (C) <year> <name of author>
657 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
658 This is free software, and you are welcome to redistribute it
659 under certain conditions; type `show c' for details.
660
661The hypothetical commands `show w' and `show c' should show the appropriate
662parts of the General Public License. Of course, your program's commands
663might be different; for a GUI interface, you would use an "about box".
664
665 You should also get your employer (if you work as a programmer) or school,
666if any, to sign a "copyright disclaimer" for the program, if necessary.
667For more information on this, and how to apply and follow the GNU GPL, see
668<http://www.gnu.org/licenses/>.
669
670 The GNU General Public License does not permit incorporating your program
671into proprietary programs. If your program is a subroutine library, you
672may consider it more useful to permit linking proprietary applications with
673the library. If this is what you want to do, use the GNU Lesser General
674Public License instead of this License. But first, please read
675<http://www.gnu.org/philosophy/why-not-lgpl.html>.
676
0677
=== renamed file 'COPYING' => 'COPYING.moved'
=== added file 'ChangeLog'
=== renamed file 'ChangeLog' => 'ChangeLog.moved'
=== added file 'INSTALL'
--- INSTALL 1970-01-01 00:00:00 +0000
+++ INSTALL 2010-03-25 18:36:47 +0000
@@ -0,0 +1,365 @@
1Installation Instructions
2*************************
3
4Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
52006, 2007, 2008, 2009 Free Software Foundation, Inc.
6
7 Copying and distribution of this file, with or without modification,
8are permitted in any medium without royalty provided the copyright
9notice and this notice are preserved. This file is offered as-is,
10without warranty of any kind.
11
12Basic Installation
13==================
14
15 Briefly, the shell commands `./configure; make; make install' should
16configure, build, and install this package. The following
17more-detailed instructions are generic; see the `README' file for
18instructions specific to this package. Some packages provide this
19`INSTALL' file but do not implement all of the features documented
20below. The lack of an optional feature in a given package is not
21necessarily a bug. More recommendations for GNU packages can be found
22in *note Makefile Conventions: (standards)Makefile Conventions.
23
24 The `configure' shell script attempts to guess correct values for
25various system-dependent variables used during compilation. It uses
26those values to create a `Makefile' in each directory of the package.
27It may also create one or more `.h' files containing system-dependent
28definitions. Finally, it creates a shell script `config.status' that
29you can run in the future to recreate the current configuration, and a
30file `config.log' containing compiler output (useful mainly for
31debugging `configure').
32
33 It can also use an optional file (typically called `config.cache'
34and enabled with `--cache-file=config.cache' or simply `-C') that saves
35the results of its tests to speed up reconfiguring. Caching is
36disabled by default to prevent problems with accidental use of stale
37cache files.
38
39 If you need to do unusual things to compile the package, please try
40to figure out how `configure' could check whether to do them, and mail
41diffs or instructions to the address given in the `README' so they can
42be considered for the next release. If you are using the cache, and at
43some point `config.cache' contains results you don't want to keep, you
44may remove or edit it.
45
46 The file `configure.ac' (or `configure.in') is used to create
47`configure' by a program called `autoconf'. You need `configure.ac' if
48you want to change it or regenerate `configure' using a newer version
49of `autoconf'.
50
51 The simplest way to compile this package is:
52
53 1. `cd' to the directory containing the package's source code and type
54 `./configure' to configure the package for your system.
55
56 Running `configure' might take a while. While running, it prints
57 some messages telling which features it is checking for.
58
59 2. Type `make' to compile the package.
60
61 3. Optionally, type `make check' to run any self-tests that come with
62 the package, generally using the just-built uninstalled binaries.
63
64 4. Type `make install' to install the programs and any data files and
65 documentation. When installing into a prefix owned by root, it is
66 recommended that the package be configured and built as a regular
67 user, and only the `make install' phase executed with root
68 privileges.
69
70 5. Optionally, type `make installcheck' to repeat any self-tests, but
71 this time using the binaries in their final installed location.
72 This target does not install anything. Running this target as a
73 regular user, particularly if the prior `make install' required
74 root privileges, verifies that the installation completed
75 correctly.
76
77 6. You can remove the program binaries and object files from the
78 source code directory by typing `make clean'. To also remove the
79 files that `configure' created (so you can compile the package for
80 a different kind of computer), type `make distclean'. There is
81 also a `make maintainer-clean' target, but that is intended mainly
82 for the package's developers. If you use it, you may have to get
83 all sorts of other programs in order to regenerate files that came
84 with the distribution.
85
86 7. Often, you can also type `make uninstall' to remove the installed
87 files again. In practice, not all packages have tested that
88 uninstallation works correctly, even though it is required by the
89 GNU Coding Standards.
90
91 8. Some packages, particularly those that use Automake, provide `make
92 distcheck', which can by used by developers to test that all other
93 targets like `make install' and `make uninstall' work correctly.
94 This target is generally not run by end users.
95
96Compilers and Options
97=====================
98
99 Some systems require unusual options for compilation or linking that
100the `configure' script does not know about. Run `./configure --help'
101for details on some of the pertinent environment variables.
102
103 You can give `configure' initial values for configuration parameters
104by setting variables in the command line or in the environment. Here
105is an example:
106
107 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
108
109 *Note Defining Variables::, for more details.
110
111Compiling For Multiple Architectures
112====================================
113
114 You can compile the package for more than one kind of computer at the
115same time, by placing the object files for each architecture in their
116own directory. To do this, you can use GNU `make'. `cd' to the
117directory where you want the object files and executables to go and run
118the `configure' script. `configure' automatically checks for the
119source code in the directory that `configure' is in and in `..'. This
120is known as a "VPATH" build.
121
122 With a non-GNU `make', it is safer to compile the package for one
123architecture at a time in the source code directory. After you have
124installed the package for one architecture, use `make distclean' before
125reconfiguring for another architecture.
126
127 On MacOS X 10.5 and later systems, you can create libraries and
128executables that work on multiple system types--known as "fat" or
129"universal" binaries--by specifying multiple `-arch' options to the
130compiler but only a single `-arch' option to the preprocessor. Like
131this:
132
133 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
134 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
135 CPP="gcc -E" CXXCPP="g++ -E"
136
137 This is not guaranteed to produce working output in all cases, you
138may have to build one architecture at a time and combine the results
139using the `lipo' tool if you have problems.
140
141Installation Names
142==================
143
144 By default, `make install' installs the package's commands under
145`/usr/local/bin', include files under `/usr/local/include', etc. You
146can specify an installation prefix other than `/usr/local' by giving
147`configure' the option `--prefix=PREFIX', where PREFIX must be an
148absolute file name.
149
150 You can specify separate installation prefixes for
151architecture-specific files and architecture-independent files. If you
152pass the option `--exec-prefix=PREFIX' to `configure', the package uses
153PREFIX as the prefix for installing programs and libraries.
154Documentation and other data files still use the regular prefix.
155
156 In addition, if you use an unusual directory layout you can give
157options like `--bindir=DIR' to specify different values for particular
158kinds of files. Run `configure --help' for a list of the directories
159you can set and what kinds of files go in them. In general, the
160default for these options is expressed in terms of `${prefix}', so that
161specifying just `--prefix' will affect all of the other directory
162specifications that were not explicitly provided.
163
164 The most portable way to affect installation locations is to pass the
165correct locations to `configure'; however, many packages provide one or
166both of the following shortcuts of passing variable assignments to the
167`make install' command line to change installation locations without
168having to reconfigure or recompile.
169
170 The first method involves providing an override variable for each
171affected directory. For example, `make install
172prefix=/alternate/directory' will choose an alternate location for all
173directory configuration variables that were expressed in terms of
174`${prefix}'. Any directories that were specified during `configure',
175but not in terms of `${prefix}', must each be overridden at install
176time for the entire installation to be relocated. The approach of
177makefile variable overrides for each directory variable is required by
178the GNU Coding Standards, and ideally causes no recompilation.
179However, some platforms have known limitations with the semantics of
180shared libraries that end up requiring recompilation when using this
181method, particularly noticeable in packages that use GNU Libtool.
182
183 The second method involves providing the `DESTDIR' variable. For
184example, `make install DESTDIR=/alternate/directory' will prepend
185`/alternate/directory' before all installation names. The approach of
186`DESTDIR' overrides is not required by the GNU Coding Standards, and
187does not work on platforms that have drive letters. On the other hand,
188it does better at avoiding recompilation issues, and works well even
189when some directory options were not specified in terms of `${prefix}'
190at `configure' time.
191
192Optional Features
193=================
194
195 If the package supports it, you can cause programs to be installed
196with an extra prefix or suffix on their names by giving `configure' the
197option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
198
199 Some packages pay attention to `--enable-FEATURE' options to
200`configure', where FEATURE indicates an optional part of the package.
201They may also pay attention to `--with-PACKAGE' options, where PACKAGE
202is something like `gnu-as' or `x' (for the X Window System). The
203`README' should mention any `--enable-' and `--with-' options that the
204package recognizes.
205
206 For packages that use the X Window System, `configure' can usually
207find the X include and library files automatically, but if it doesn't,
208you can use the `configure' options `--x-includes=DIR' and
209`--x-libraries=DIR' to specify their locations.
210
211 Some packages offer the ability to configure how verbose the
212execution of `make' will be. For these packages, running `./configure
213--enable-silent-rules' sets the default to minimal output, which can be
214overridden with `make V=1'; while running `./configure
215--disable-silent-rules' sets the default to verbose, which can be
216overridden with `make V=0'.
217
218Particular systems
219==================
220
221 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
222CC is not installed, it is recommended to use the following options in
223order to use an ANSI C compiler:
224
225 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
226
227and if that doesn't work, install pre-built binaries of GCC for HP-UX.
228
229 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
230parse its `<wchar.h>' header file. The option `-nodtk' can be used as
231a workaround. If GNU CC is not installed, it is therefore recommended
232to try
233
234 ./configure CC="cc"
235
236and if that doesn't work, try
237
238 ./configure CC="cc -nodtk"
239
240 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
241directory contains several dysfunctional programs; working variants of
242these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
243in your `PATH', put it _after_ `/usr/bin'.
244
245 On Haiku, software installed for all users goes in `/boot/common',
246not `/usr/local'. It is recommended to use the following options:
247
248 ./configure --prefix=/boot/common
249
250Specifying the System Type
251==========================
252
253 There may be some features `configure' cannot figure out
254automatically, but needs to determine by the type of machine the package
255will run on. Usually, assuming the package is built to be run on the
256_same_ architectures, `configure' can figure that out, but if it prints
257a message saying it cannot guess the machine type, give it the
258`--build=TYPE' option. TYPE can either be a short name for the system
259type, such as `sun4', or a canonical name which has the form:
260
261 CPU-COMPANY-SYSTEM
262
263where SYSTEM can have one of these forms:
264
265 OS
266 KERNEL-OS
267
268 See the file `config.sub' for the possible values of each field. If
269`config.sub' isn't included in this package, then this package doesn't
270need to know the machine type.
271
272 If you are _building_ compiler tools for cross-compiling, you should
273use the option `--target=TYPE' to select the type of system they will
274produce code for.
275
276 If you want to _use_ a cross compiler, that generates code for a
277platform different from the build platform, you should specify the
278"host" platform (i.e., that on which the generated programs will
279eventually be run) with `--host=TYPE'.
280
281Sharing Defaults
282================
283
284 If you want to set default values for `configure' scripts to share,
285you can create a site shell script called `config.site' that gives
286default values for variables like `CC', `cache_file', and `prefix'.
287`configure' looks for `PREFIX/share/config.site' if it exists, then
288`PREFIX/etc/config.site' if it exists. Or, you can set the
289`CONFIG_SITE' environment variable to the location of the site script.
290A warning: not all `configure' scripts look for a site script.
291
292Defining Variables
293==================
294
295 Variables not defined in a site shell script can be set in the
296environment passed to `configure'. However, some packages may run
297configure again during the build, and the customized values of these
298variables may be lost. In order to avoid this problem, you should set
299them in the `configure' command line, using `VAR=value'. For example:
300
301 ./configure CC=/usr/local2/bin/gcc
302
303causes the specified `gcc' to be used as the C compiler (unless it is
304overridden in the site shell script).
305
306Unfortunately, this technique does not work for `CONFIG_SHELL' due to
307an Autoconf bug. Until the bug is fixed you can use this workaround:
308
309 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
310
311`configure' Invocation
312======================
313
314 `configure' recognizes the following options to control how it
315operates.
316
317`--help'
318`-h'
319 Print a summary of all of the options to `configure', and exit.
320
321`--help=short'
322`--help=recursive'
323 Print a summary of the options unique to this package's
324 `configure', and exit. The `short' variant lists options used
325 only in the top level, while the `recursive' variant lists options
326 also present in any nested packages.
327
328`--version'
329`-V'
330 Print the version of Autoconf used to generate the `configure'
331 script, and exit.
332
333`--cache-file=FILE'
334 Enable the cache: use and save the results of the tests in FILE,
335 traditionally `config.cache'. FILE defaults to `/dev/null' to
336 disable caching.
337
338`--config-cache'
339`-C'
340 Alias for `--cache-file=config.cache'.
341
342`--quiet'
343`--silent'
344`-q'
345 Do not print messages saying which checks are being made. To
346 suppress all normal output, redirect it to `/dev/null' (any error
347 messages will still be shown).
348
349`--srcdir=DIR'
350 Look for the package's source code in directory DIR. Usually
351 `configure' can determine that directory automatically.
352
353`--prefix=DIR'
354 Use DIR as the installation prefix. *note Installation Names::
355 for more details, including other options available for fine-tuning
356 the installation locations.
357
358`--no-create'
359`-n'
360 Run the configure checks, but stop before creating any output
361 files.
362
363`configure' also accepts some other, not widely useful, options. Run
364`configure --help' for more details.
365
0366
=== added file 'Makefile.am'
--- Makefile.am 1970-01-01 00:00:00 +0000
+++ Makefile.am 2010-03-25 18:36:47 +0000
@@ -0,0 +1,10 @@
1
2SUBDIRS = \
3 src \
4 data \
5 po
6
7EXTRA_DIST = autogen.sh
8
9DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
10
011
=== renamed file 'Makefile.am' => 'Makefile.am.moved'
=== added file 'Makefile.in'
--- Makefile.in 1970-01-01 00:00:00 +0000
+++ Makefile.in 2010-03-25 18:36:47 +0000
@@ -0,0 +1,769 @@
1# Makefile.in generated by automake 1.11.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6# Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@
20pkglibdir = $(libdir)/@PACKAGE@
21pkglibexecdir = $(libexecdir)/@PACKAGE@
22am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23install_sh_DATA = $(install_sh) -c -m 644
24install_sh_PROGRAM = $(install_sh) -c
25install_sh_SCRIPT = $(install_sh) -c
26INSTALL_HEADER = $(INSTALL_DATA)
27transform = $(program_transform_name)
28NORMAL_INSTALL = :
29PRE_INSTALL = :
30POST_INSTALL = :
31NORMAL_UNINSTALL = :
32PRE_UNINSTALL = :
33POST_UNINSTALL = :
34build_triplet = @build@
35host_triplet = @host@
36subdir = .
37DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
39 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
40 compile config.guess config.sub depcomp install-sh ltmain.sh \
41 missing mkinstalldirs
42ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43am__aclocal_m4_deps = $(top_srcdir)/configure.ac
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
47 configure.lineno config.status.lineno
48mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
49CONFIG_HEADER = config.h
50CONFIG_CLEAN_FILES =
51CONFIG_CLEAN_VPATH_FILES =
52AM_V_GEN = $(am__v_GEN_$(V))
53am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
54am__v_GEN_0 = @echo " GEN " $@;
55AM_V_at = $(am__v_at_$(V))
56am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
57am__v_at_0 = @
58SOURCES =
59DIST_SOURCES =
60RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
61 html-recursive info-recursive install-data-recursive \
62 install-dvi-recursive install-exec-recursive \
63 install-html-recursive install-info-recursive \
64 install-pdf-recursive install-ps-recursive install-recursive \
65 installcheck-recursive installdirs-recursive pdf-recursive \
66 ps-recursive uninstall-recursive
67RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
68 distclean-recursive maintainer-clean-recursive
69AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
70 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
71 distdir dist dist-all distcheck
72ETAGS = etags
73CTAGS = ctags
74DIST_SUBDIRS = $(SUBDIRS)
75DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
76distdir = $(PACKAGE)-$(VERSION)
77top_distdir = $(distdir)
78am__remove_distdir = \
79 { test ! -d "$(distdir)" \
80 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
81 && rm -fr "$(distdir)"; }; }
82am__relativize = \
83 dir0=`pwd`; \
84 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
85 sed_rest='s,^[^/]*/*,,'; \
86 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
87 sed_butlast='s,/*[^/]*$$,,'; \
88 while test -n "$$dir1"; do \
89 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
90 if test "$$first" != "."; then \
91 if test "$$first" = ".."; then \
92 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
93 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
94 else \
95 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
96 if test "$$first2" = "$$first"; then \
97 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
98 else \
99 dir2="../$$dir2"; \
100 fi; \
101 dir0="$$dir0"/"$$first"; \
102 fi; \
103 fi; \
104 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
105 done; \
106 reldir="$$dir2"
107DIST_ARCHIVES = $(distdir).tar.gz
108GZIP_ENV = --best
109distuninstallcheck_listfiles = find . -type f -print
110distcleancheck_listfiles = find . -type f -print
111ACLOCAL = @ACLOCAL@
112ALL_LINGUAS = @ALL_LINGUAS@
113AMTAR = @AMTAR@
114AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
115APPLET_CFLAGS = @APPLET_CFLAGS@
116APPLET_LIBS = @APPLET_LIBS@
117AR = @AR@
118AUTOCONF = @AUTOCONF@
119AUTOHEADER = @AUTOHEADER@
120AUTOMAKE = @AUTOMAKE@
121AWK = @AWK@
122CATALOGS = @CATALOGS@
123CATOBJEXT = @CATOBJEXT@
124CC = @CC@
125CCDEPMODE = @CCDEPMODE@
126CFLAGS = @CFLAGS@
127CPP = @CPP@
128CPPFLAGS = @CPPFLAGS@
129CYGPATH_W = @CYGPATH_W@
130DATADIRNAME = @DATADIRNAME@
131DBUSSERVICEDIR = @DBUSSERVICEDIR@
132DEFS = @DEFS@
133DEPDIR = @DEPDIR@
134DSYMUTIL = @DSYMUTIL@
135DUMPBIN = @DUMPBIN@
136ECHO_C = @ECHO_C@
137ECHO_N = @ECHO_N@
138ECHO_T = @ECHO_T@
139EGREP = @EGREP@
140EXEEXT = @EXEEXT@
141FGREP = @FGREP@
142GCONFTOOL = @GCONFTOOL@
143GCONF_CFLAGS = @GCONF_CFLAGS@
144GCONF_LIBS = @GCONF_LIBS@
145GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
146GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
147GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
148GMOFILES = @GMOFILES@
149GMSGFMT = @GMSGFMT@
150GNOMELOCALEDIR = @GNOMELOCALEDIR@
151GREP = @GREP@
152GTKLOGOUTHELPER_CFLAGS = @GTKLOGOUTHELPER_CFLAGS@
153GTKLOGOUTHELPER_LIBS = @GTKLOGOUTHELPER_LIBS@
154INDICATORDIR = @INDICATORDIR@
155INDICATORICONSDIR = @INDICATORICONSDIR@
156INSTALL = @INSTALL@
157INSTALL_DATA = @INSTALL_DATA@
158INSTALL_PROGRAM = @INSTALL_PROGRAM@
159INSTALL_SCRIPT = @INSTALL_SCRIPT@
160INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
161INSTOBJEXT = @INSTOBJEXT@
162INTLLIBS = @INTLLIBS@
163INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
164INTLTOOL_MERGE = @INTLTOOL_MERGE@
165INTLTOOL_PERL = @INTLTOOL_PERL@
166INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
167LD = @LD@
168LDFLAGS = @LDFLAGS@
169LIBOBJS = @LIBOBJS@
170LIBS = @LIBS@
171LIBTOOL = @LIBTOOL@
172LIPO = @LIPO@
173LN_S = @LN_S@
174LTLIBOBJS = @LTLIBOBJS@
175MAINT = @MAINT@
176MAKEINFO = @MAKEINFO@
177MKDIR_P = @MKDIR_P@
178MKINSTALLDIRS = @MKINSTALLDIRS@
179MSGFMT = @MSGFMT@
180MSGFMT_OPTS = @MSGFMT_OPTS@
181MSGMERGE = @MSGMERGE@
182NM = @NM@
183NMEDIT = @NMEDIT@
184OBJDUMP = @OBJDUMP@
185OBJEXT = @OBJEXT@
186OTOOL = @OTOOL@
187OTOOL64 = @OTOOL64@
188PACKAGE = @PACKAGE@
189PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
190PACKAGE_NAME = @PACKAGE_NAME@
191PACKAGE_STRING = @PACKAGE_STRING@
192PACKAGE_TARNAME = @PACKAGE_TARNAME@
193PACKAGE_URL = @PACKAGE_URL@
194PACKAGE_VERSION = @PACKAGE_VERSION@
195PATH_SEPARATOR = @PATH_SEPARATOR@
196PKG_CONFIG = @PKG_CONFIG@
197POFILES = @POFILES@
198POSUB = @POSUB@
199PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
200PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
201RANLIB = @RANLIB@
202SED = @SED@
203SESSIONERVICE_CFLAGS = @SESSIONERVICE_CFLAGS@
204SESSIONERVICE_LIBS = @SESSIONERVICE_LIBS@
205SESSIONSERVICE_CFLAGS = @SESSIONSERVICE_CFLAGS@
206SESSIONSERVICE_LIBS = @SESSIONSERVICE_LIBS@
207SET_MAKE = @SET_MAKE@
208SHELL = @SHELL@
209STRIP = @STRIP@
210USE_NLS = @USE_NLS@
211VERSION = @VERSION@
212XGETTEXT = @XGETTEXT@
213abs_builddir = @abs_builddir@
214abs_srcdir = @abs_srcdir@
215abs_top_builddir = @abs_top_builddir@
216abs_top_srcdir = @abs_top_srcdir@
217ac_ct_CC = @ac_ct_CC@
218ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
219am__include = @am__include@
220am__leading_dot = @am__leading_dot@
221am__quote = @am__quote@
222am__tar = @am__tar@
223am__untar = @am__untar@
224bindir = @bindir@
225build = @build@
226build_alias = @build_alias@
227build_cpu = @build_cpu@
228build_os = @build_os@
229build_vendor = @build_vendor@
230builddir = @builddir@
231datadir = @datadir@
232datarootdir = @datarootdir@
233docdir = @docdir@
234dvidir = @dvidir@
235exec_prefix = @exec_prefix@
236host = @host@
237host_alias = @host_alias@
238host_cpu = @host_cpu@
239host_os = @host_os@
240host_vendor = @host_vendor@
241htmldir = @htmldir@
242includedir = @includedir@
243infodir = @infodir@
244install_sh = @install_sh@
245libdir = @libdir@
246libexecdir = @libexecdir@
247localedir = @localedir@
248localstatedir = @localstatedir@
249lt_ECHO = @lt_ECHO@
250mandir = @mandir@
251mkdir_p = @mkdir_p@
252oldincludedir = @oldincludedir@
253pdfdir = @pdfdir@
254prefix = @prefix@
255program_transform_name = @program_transform_name@
256psdir = @psdir@
257sbindir = @sbindir@
258sharedstatedir = @sharedstatedir@
259srcdir = @srcdir@
260sysconfdir = @sysconfdir@
261target_alias = @target_alias@
262top_build_prefix = @top_build_prefix@
263top_builddir = @top_builddir@
264top_srcdir = @top_srcdir@
265SUBDIRS = \
266 src \
267 data \
268 po
269
270EXTRA_DIST = autogen.sh
271DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
272all: config.h
273 $(MAKE) $(AM_MAKEFLAGS) all-recursive
274
275.SUFFIXES:
276am--refresh:
277 @:
278$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
279 @for dep in $?; do \
280 case '$(am__configure_deps)' in \
281 *$$dep*) \
282 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
283 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
284 && exit 0; \
285 exit 1;; \
286 esac; \
287 done; \
288 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
289 $(am__cd) $(top_srcdir) && \
290 $(AUTOMAKE) --gnu Makefile
291.PRECIOUS: Makefile
292Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
293 @case '$?' in \
294 *config.status*) \
295 echo ' $(SHELL) ./config.status'; \
296 $(SHELL) ./config.status;; \
297 *) \
298 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
299 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
300 esac;
301
302$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
303 $(SHELL) ./config.status --recheck
304
305$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
306 $(am__cd) $(srcdir) && $(AUTOCONF)
307$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
308 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
309$(am__aclocal_m4_deps):
310
311config.h: stamp-h1
312 @if test ! -f $@; then \
313 rm -f stamp-h1; \
314 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
315 else :; fi
316
317stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
318 @rm -f stamp-h1
319 cd $(top_builddir) && $(SHELL) ./config.status config.h
320$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
321 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
322 rm -f stamp-h1
323 touch $@
324
325distclean-hdr:
326 -rm -f config.h stamp-h1
327
328mostlyclean-libtool:
329 -rm -f *.lo
330
331clean-libtool:
332 -rm -rf .libs _libs
333
334distclean-libtool:
335 -rm -f libtool config.lt
336
337# This directory's subdirectories are mostly independent; you can cd
338# into them and run `make' without going through this Makefile.
339# To change the values of `make' variables: instead of editing Makefiles,
340# (1) if the variable is set in `config.status', edit `config.status'
341# (which will cause the Makefiles to be regenerated when you run `make');
342# (2) otherwise, pass the desired values on the `make' command line.
343$(RECURSIVE_TARGETS):
344 @fail= failcom='exit 1'; \
345 for f in x $$MAKEFLAGS; do \
346 case $$f in \
347 *=* | --[!k]*);; \
348 *k*) failcom='fail=yes';; \
349 esac; \
350 done; \
351 dot_seen=no; \
352 target=`echo $@ | sed s/-recursive//`; \
353 list='$(SUBDIRS)'; for subdir in $$list; do \
354 echo "Making $$target in $$subdir"; \
355 if test "$$subdir" = "."; then \
356 dot_seen=yes; \
357 local_target="$$target-am"; \
358 else \
359 local_target="$$target"; \
360 fi; \
361 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
362 || eval $$failcom; \
363 done; \
364 if test "$$dot_seen" = "no"; then \
365 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
366 fi; test -z "$$fail"
367
368$(RECURSIVE_CLEAN_TARGETS):
369 @fail= failcom='exit 1'; \
370 for f in x $$MAKEFLAGS; do \
371 case $$f in \
372 *=* | --[!k]*);; \
373 *k*) failcom='fail=yes';; \
374 esac; \
375 done; \
376 dot_seen=no; \
377 case "$@" in \
378 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
379 *) list='$(SUBDIRS)' ;; \
380 esac; \
381 rev=''; for subdir in $$list; do \
382 if test "$$subdir" = "."; then :; else \
383 rev="$$subdir $$rev"; \
384 fi; \
385 done; \
386 rev="$$rev ."; \
387 target=`echo $@ | sed s/-recursive//`; \
388 for subdir in $$rev; do \
389 echo "Making $$target in $$subdir"; \
390 if test "$$subdir" = "."; then \
391 local_target="$$target-am"; \
392 else \
393 local_target="$$target"; \
394 fi; \
395 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
396 || eval $$failcom; \
397 done && test -z "$$fail"
398tags-recursive:
399 list='$(SUBDIRS)'; for subdir in $$list; do \
400 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
401 done
402ctags-recursive:
403 list='$(SUBDIRS)'; for subdir in $$list; do \
404 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
405 done
406
407ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
408 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
409 unique=`for i in $$list; do \
410 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
411 done | \
412 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
413 END { if (nonempty) { for (i in files) print i; }; }'`; \
414 mkid -fID $$unique
415tags: TAGS
416
417TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
418 $(TAGS_FILES) $(LISP)
419 set x; \
420 here=`pwd`; \
421 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
422 include_option=--etags-include; \
423 empty_fix=.; \
424 else \
425 include_option=--include; \
426 empty_fix=; \
427 fi; \
428 list='$(SUBDIRS)'; for subdir in $$list; do \
429 if test "$$subdir" = .; then :; else \
430 test ! -f $$subdir/TAGS || \
431 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
432 fi; \
433 done; \
434 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
435 unique=`for i in $$list; do \
436 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
437 done | \
438 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
439 END { if (nonempty) { for (i in files) print i; }; }'`; \
440 shift; \
441 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
442 test -n "$$unique" || unique=$$empty_fix; \
443 if test $$# -gt 0; then \
444 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
445 "$$@" $$unique; \
446 else \
447 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
448 $$unique; \
449 fi; \
450 fi
451ctags: CTAGS
452CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
453 $(TAGS_FILES) $(LISP)
454 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
455 unique=`for i in $$list; do \
456 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
457 done | \
458 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
459 END { if (nonempty) { for (i in files) print i; }; }'`; \
460 test -z "$(CTAGS_ARGS)$$unique" \
461 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
462 $$unique
463
464GTAGS:
465 here=`$(am__cd) $(top_builddir) && pwd` \
466 && $(am__cd) $(top_srcdir) \
467 && gtags -i $(GTAGS_ARGS) "$$here"
468
469distclean-tags:
470 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
471
472distdir: $(DISTFILES)
473 $(am__remove_distdir)
474 test -d "$(distdir)" || mkdir "$(distdir)"
475 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
476 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
477 list='$(DISTFILES)'; \
478 dist_files=`for file in $$list; do echo $$file; done | \
479 sed -e "s|^$$srcdirstrip/||;t" \
480 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
481 case $$dist_files in \
482 */*) $(MKDIR_P) `echo "$$dist_files" | \
483 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
484 sort -u` ;; \
485 esac; \
486 for file in $$dist_files; do \
487 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
488 if test -d $$d/$$file; then \
489 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
490 if test -d "$(distdir)/$$file"; then \
491 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
492 fi; \
493 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
494 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
495 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
496 fi; \
497 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
498 else \
499 test -f "$(distdir)/$$file" \
500 || cp -p $$d/$$file "$(distdir)/$$file" \
501 || exit 1; \
502 fi; \
503 done
504 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
505 if test "$$subdir" = .; then :; else \
506 test -d "$(distdir)/$$subdir" \
507 || $(MKDIR_P) "$(distdir)/$$subdir" \
508 || exit 1; \
509 fi; \
510 done
511 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
512 if test "$$subdir" = .; then :; else \
513 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
514 $(am__relativize); \
515 new_distdir=$$reldir; \
516 dir1=$$subdir; dir2="$(top_distdir)"; \
517 $(am__relativize); \
518 new_top_distdir=$$reldir; \
519 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
520 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
521 ($(am__cd) $$subdir && \
522 $(MAKE) $(AM_MAKEFLAGS) \
523 top_distdir="$$new_top_distdir" \
524 distdir="$$new_distdir" \
525 am__remove_distdir=: \
526 am__skip_length_check=: \
527 am__skip_mode_fix=: \
528 distdir) \
529 || exit 1; \
530 fi; \
531 done
532 -test -n "$(am__skip_mode_fix)" \
533 || find "$(distdir)" -type d ! -perm -755 \
534 -exec chmod u+rwx,go+rx {} \; -o \
535 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
536 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
537 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
538 || chmod -R a+r "$(distdir)"
539dist-gzip: distdir
540 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
541 $(am__remove_distdir)
542
543dist-bzip2: distdir
544 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
545 $(am__remove_distdir)
546
547dist-lzma: distdir
548 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
549 $(am__remove_distdir)
550
551dist-xz: distdir
552 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
553 $(am__remove_distdir)
554
555dist-tarZ: distdir
556 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
557 $(am__remove_distdir)
558
559dist-shar: distdir
560 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
561 $(am__remove_distdir)
562
563dist-zip: distdir
564 -rm -f $(distdir).zip
565 zip -rq $(distdir).zip $(distdir)
566 $(am__remove_distdir)
567
568dist dist-all: distdir
569 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
570 $(am__remove_distdir)
571
572# This target untars the dist file and tries a VPATH configuration. Then
573# it guarantees that the distribution is self-contained by making another
574# tarfile.
575distcheck: dist
576 case '$(DIST_ARCHIVES)' in \
577 *.tar.gz*) \
578 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
579 *.tar.bz2*) \
580 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
581 *.tar.lzma*) \
582 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
583 *.tar.xz*) \
584 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
585 *.tar.Z*) \
586 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
587 *.shar.gz*) \
588 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
589 *.zip*) \
590 unzip $(distdir).zip ;;\
591 esac
592 chmod -R a-w $(distdir); chmod a+w $(distdir)
593 mkdir $(distdir)/_build
594 mkdir $(distdir)/_inst
595 chmod a-w $(distdir)
596 test -d $(distdir)/_build || exit 0; \
597 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
598 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
599 && am__cwd=`pwd` \
600 && $(am__cd) $(distdir)/_build \
601 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
602 $(DISTCHECK_CONFIGURE_FLAGS) \
603 && $(MAKE) $(AM_MAKEFLAGS) \
604 && $(MAKE) $(AM_MAKEFLAGS) dvi \
605 && $(MAKE) $(AM_MAKEFLAGS) check \
606 && $(MAKE) $(AM_MAKEFLAGS) install \
607 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
608 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
609 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
610 distuninstallcheck \
611 && chmod -R a-w "$$dc_install_base" \
612 && ({ \
613 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
614 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
615 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
616 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
617 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
618 } || { rm -rf "$$dc_destdir"; exit 1; }) \
619 && rm -rf "$$dc_destdir" \
620 && $(MAKE) $(AM_MAKEFLAGS) dist \
621 && rm -rf $(DIST_ARCHIVES) \
622 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
623 && cd "$$am__cwd" \
624 || exit 1
625 $(am__remove_distdir)
626 @(echo "$(distdir) archives ready for distribution: "; \
627 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
628 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
629distuninstallcheck:
630 @$(am__cd) '$(distuninstallcheck_dir)' \
631 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
632 || { echo "ERROR: files left after uninstall:" ; \
633 if test -n "$(DESTDIR)"; then \
634 echo " (check DESTDIR support)"; \
635 fi ; \
636 $(distuninstallcheck_listfiles) ; \
637 exit 1; } >&2
638distcleancheck: distclean
639 @if test '$(srcdir)' = . ; then \
640 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
641 exit 1 ; \
642 fi
643 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
644 || { echo "ERROR: files left in build directory after distclean:" ; \
645 $(distcleancheck_listfiles) ; \
646 exit 1; } >&2
647check-am: all-am
648check: check-recursive
649all-am: Makefile config.h
650installdirs: installdirs-recursive
651installdirs-am:
652install: install-recursive
653install-exec: install-exec-recursive
654install-data: install-data-recursive
655uninstall: uninstall-recursive
656
657install-am: all-am
658 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
659
660installcheck: installcheck-recursive
661install-strip:
662 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
663 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
664 `test -z '$(STRIP)' || \
665 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
666mostlyclean-generic:
667
668clean-generic:
669
670distclean-generic:
671 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
672 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
673
674maintainer-clean-generic:
675 @echo "This command is intended for maintainers to use"
676 @echo "it deletes files that may require special tools to rebuild."
677clean: clean-recursive
678
679clean-am: clean-generic clean-libtool mostlyclean-am
680
681distclean: distclean-recursive
682 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
683 -rm -f Makefile
684distclean-am: clean-am distclean-generic distclean-hdr \
685 distclean-libtool distclean-tags
686
687dvi: dvi-recursive
688
689dvi-am:
690
691html: html-recursive
692
693html-am:
694
695info: info-recursive
696
697info-am:
698
699install-data-am:
700
701install-dvi: install-dvi-recursive
702
703install-dvi-am:
704
705install-exec-am:
706
707install-html: install-html-recursive
708
709install-html-am:
710
711install-info: install-info-recursive
712
713install-info-am:
714
715install-man:
716
717install-pdf: install-pdf-recursive
718
719install-pdf-am:
720
721install-ps: install-ps-recursive
722
723install-ps-am:
724
725installcheck-am:
726
727maintainer-clean: maintainer-clean-recursive
728 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
729 -rm -rf $(top_srcdir)/autom4te.cache
730 -rm -f Makefile
731maintainer-clean-am: distclean-am maintainer-clean-generic
732
733mostlyclean: mostlyclean-recursive
734
735mostlyclean-am: mostlyclean-generic mostlyclean-libtool
736
737pdf: pdf-recursive
738
739pdf-am:
740
741ps: ps-recursive
742
743ps-am:
744
745uninstall-am:
746
747.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
748 ctags-recursive install-am install-strip tags-recursive
749
750.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
751 all all-am am--refresh check check-am clean clean-generic \
752 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
753 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
754 distcheck distclean distclean-generic distclean-hdr \
755 distclean-libtool distclean-tags distcleancheck distdir \
756 distuninstallcheck dvi dvi-am html html-am info info-am \
757 install install-am install-data install-data-am install-dvi \
758 install-dvi-am install-exec install-exec-am install-html \
759 install-html-am install-info install-info-am install-man \
760 install-pdf install-pdf-am install-ps install-ps-am \
761 install-strip installcheck installcheck-am installdirs \
762 installdirs-am maintainer-clean maintainer-clean-generic \
763 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
764 ps ps-am tags tags-recursive uninstall uninstall-am
765
766
767# Tell versions [3.59,3.63) of GNU make to not export all variables.
768# Otherwise a system limit (for SysV at least) may be exceeded.
769.NOEXPORT:
0770
=== added file 'NEWS'
=== renamed file 'NEWS' => 'NEWS.moved'
=== added file 'README'
=== renamed file 'README' => 'README.moved'
=== added file 'aclocal.m4'
--- aclocal.m4 1970-01-01 00:00:00 +0000
+++ aclocal.m4 2010-03-25 18:36:47 +0000
@@ -0,0 +1,9893 @@
1# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5# This file 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
14m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17[m4_warning([this file was generated for autoconf 2.65.
18You have another version of autoconf. It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22dnl AM_GCONF_SOURCE_2
23dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24dnl (i.e. pass to gconftool-2
25dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26dnl you should install foo.schemas files
27dnl
28
29AC_DEFUN([AM_GCONF_SOURCE_2],
30[
31 if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32 GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
33 else
34 GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
35 fi
36
37 AC_ARG_WITH([gconf-source],
38 AC_HELP_STRING([--with-gconf-source=sourceaddress],
39 [Config database for installing schema files.]),
40 [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
41
42 AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43 AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
44
45 if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46 GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
47 fi
48
49 AC_ARG_WITH([gconf-schema-file-dir],
50 AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51 [Directory for installing schema files.]),
52 [GCONF_SCHEMA_FILE_DIR="$withval"],)
53
54 AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55 AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
56
57 AC_ARG_ENABLE(schemas-install,
58 AC_HELP_STRING([--disable-schemas-install],
59 [Disable the schemas installation]),
60 [case ${enableval} in
61 yes|no) ;;
62 *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
63 esac])
64 AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
65])
66
67# Copyright (C) 1995-2002 Free Software Foundation, Inc.
68# Copyright (C) 2001-2003,2004 Red Hat, Inc.
69#
70# This file is free software, distributed under the terms of the GNU
71# General Public License. As a special exception to the GNU General
72# Public License, this file may be distributed as part of a program
73# that contains a configuration script generated by Autoconf, under
74# the same distribution terms as the rest of that program.
75#
76# This file can be copied and used freely without restrictions. It can
77# be used in projects which are not available under the GNU Public License
78# but which still want to provide support for the GNU gettext functionality.
79#
80# Macro to add for using GNU gettext.
81# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
82#
83# Modified to never use included libintl.
84# Owen Taylor <otaylor@redhat.com>, 12/15/1998
85#
86# Major rework to remove unused code
87# Owen Taylor <otaylor@redhat.com>, 12/11/2002
88#
89# Added better handling of ALL_LINGUAS from GNU gettext version
90# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
91#
92# Modified to require ngettext
93# Matthias Clasen <mclasen@redhat.com> 08/06/2004
94#
95# We need this here as well, since someone might use autoconf-2.5x
96# to configure GLib then an older version to configure a package
97# using AM_GLIB_GNU_GETTEXT
98AC_PREREQ(2.53)
99
100dnl
101dnl We go to great lengths to make sure that aclocal won't
102dnl try to pull in the installed version of these macros
103dnl when running aclocal in the glib directory.
104dnl
105m4_copy([AC_DEFUN],[glib_DEFUN])
106m4_copy([AC_REQUIRE],[glib_REQUIRE])
107dnl
108dnl At the end, if we're not within glib, we'll define the public
109dnl definitions in terms of our private definitions.
110dnl
111
112# GLIB_LC_MESSAGES
113#--------------------
114glib_DEFUN([GLIB_LC_MESSAGES],
115 [AC_CHECK_HEADERS([locale.h])
116 if test $ac_cv_header_locale_h = yes; then
117 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
118 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
119 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
120 if test $am_cv_val_LC_MESSAGES = yes; then
121 AC_DEFINE(HAVE_LC_MESSAGES, 1,
122 [Define if your <locale.h> file defines LC_MESSAGES.])
123 fi
124 fi])
125
126# GLIB_PATH_PROG_WITH_TEST
127#----------------------------
128dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
129dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
130glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
131[# Extract the first word of "$2", so it can be a program name with args.
132set dummy $2; ac_word=[$]2
133AC_MSG_CHECKING([for $ac_word])
134AC_CACHE_VAL(ac_cv_path_$1,
135[case "[$]$1" in
136 /*)
137 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
138 ;;
139 *)
140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
141 for ac_dir in ifelse([$5], , $PATH, [$5]); do
142 test -z "$ac_dir" && ac_dir=.
143 if test -f $ac_dir/$ac_word; then
144 if [$3]; then
145 ac_cv_path_$1="$ac_dir/$ac_word"
146 break
147 fi
148 fi
149 done
150 IFS="$ac_save_ifs"
151dnl If no 4th arg is given, leave the cache variable unset,
152dnl so AC_PATH_PROGS will keep looking.
153ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
154])dnl
155 ;;
156esac])dnl
157$1="$ac_cv_path_$1"
158if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
159 AC_MSG_RESULT([$]$1)
160else
161 AC_MSG_RESULT(no)
162fi
163AC_SUBST($1)dnl
164])
165
166# GLIB_WITH_NLS
167#-----------------
168glib_DEFUN([GLIB_WITH_NLS],
169 dnl NLS is obligatory
170 [USE_NLS=yes
171 AC_SUBST(USE_NLS)
172
173 gt_cv_have_gettext=no
174
175 CATOBJEXT=NONE
176 XGETTEXT=:
177 INTLLIBS=
178
179 AC_CHECK_HEADER(libintl.h,
180 [gt_cv_func_dgettext_libintl="no"
181 libintl_extra_libs=""
182
183 #
184 # First check in libc
185 #
186 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
187 [AC_TRY_LINK([
188#include <libintl.h>
189],
190 [return !ngettext ("","", 1)],
191 gt_cv_func_ngettext_libc=yes,
192 gt_cv_func_ngettext_libc=no)
193 ])
194
195 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
196 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
197 [AC_TRY_LINK([
198#include <libintl.h>
199],
200 [return !dgettext ("","")],
201 gt_cv_func_dgettext_libc=yes,
202 gt_cv_func_dgettext_libc=no)
203 ])
204 fi
205
206 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
207 AC_CHECK_FUNCS(bind_textdomain_codeset)
208 fi
209
210 #
211 # If we don't have everything we want, check in libintl
212 #
213 if test "$gt_cv_func_dgettext_libc" != "yes" \
214 || test "$gt_cv_func_ngettext_libc" != "yes" \
215 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
216
217 AC_CHECK_LIB(intl, bindtextdomain,
218 [AC_CHECK_LIB(intl, ngettext,
219 [AC_CHECK_LIB(intl, dgettext,
220 gt_cv_func_dgettext_libintl=yes)])])
221
222 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
223 AC_MSG_CHECKING([if -liconv is needed to use gettext])
224 AC_MSG_RESULT([])
225 AC_CHECK_LIB(intl, ngettext,
226 [AC_CHECK_LIB(intl, dcgettext,
227 [gt_cv_func_dgettext_libintl=yes
228 libintl_extra_libs=-liconv],
229 :,-liconv)],
230 :,-liconv)
231 fi
232
233 #
234 # If we found libintl, then check in it for bind_textdomain_codeset();
235 # we'll prefer libc if neither have bind_textdomain_codeset(),
236 # and both have dgettext and ngettext
237 #
238 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
239 glib_save_LIBS="$LIBS"
240 LIBS="$LIBS -lintl $libintl_extra_libs"
241 unset ac_cv_func_bind_textdomain_codeset
242 AC_CHECK_FUNCS(bind_textdomain_codeset)
243 LIBS="$glib_save_LIBS"
244
245 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
246 gt_cv_func_dgettext_libc=no
247 else
248 if test "$gt_cv_func_dgettext_libc" = "yes" \
249 && test "$gt_cv_func_ngettext_libc" = "yes"; then
250 gt_cv_func_dgettext_libintl=no
251 fi
252 fi
253 fi
254 fi
255
256 if test "$gt_cv_func_dgettext_libc" = "yes" \
257 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
258 gt_cv_have_gettext=yes
259 fi
260
261 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
262 INTLLIBS="-lintl $libintl_extra_libs"
263 fi
264
265 if test "$gt_cv_have_gettext" = "yes"; then
266 AC_DEFINE(HAVE_GETTEXT,1,
267 [Define if the GNU gettext() function is already present or preinstalled.])
268 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
269 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
270 if test "$MSGFMT" != "no"; then
271 glib_save_LIBS="$LIBS"
272 LIBS="$LIBS $INTLLIBS"
273 AC_CHECK_FUNCS(dcgettext)
274 MSGFMT_OPTS=
275 AC_MSG_CHECKING([if msgfmt accepts -c])
276 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
277msgid ""
278msgstr ""
279"Content-Type: text/plain; charset=UTF-8\n"
280"Project-Id-Version: test 1.0\n"
281"PO-Revision-Date: 2007-02-15 12:01+0100\n"
282"Last-Translator: test <foo@bar.xx>\n"
283"Language-Team: C <LL@li.org>\n"
284"MIME-Version: 1.0\n"
285"Content-Transfer-Encoding: 8bit\n"
286], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
287 AC_SUBST(MSGFMT_OPTS)
288 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
289 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
290 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
291 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
292 return _nl_msg_cat_cntr],
293 [CATOBJEXT=.gmo
294 DATADIRNAME=share],
295 [case $host in
296 *-*-solaris*)
297 dnl On Solaris, if bind_textdomain_codeset is in libc,
298 dnl GNU format message catalog is always supported,
299 dnl since both are added to the libc all together.
300 dnl Hence, we'd like to go with DATADIRNAME=share and
301 dnl and CATOBJEXT=.gmo in this case.
302 AC_CHECK_FUNC(bind_textdomain_codeset,
303 [CATOBJEXT=.gmo
304 DATADIRNAME=share],
305 [CATOBJEXT=.mo
306 DATADIRNAME=lib])
307 ;;
308 *)
309 CATOBJEXT=.mo
310 DATADIRNAME=lib
311 ;;
312 esac])
313 LIBS="$glib_save_LIBS"
314 INSTOBJEXT=.mo
315 else
316 gt_cv_have_gettext=no
317 fi
318 fi
319 ])
320
321 if test "$gt_cv_have_gettext" = "yes" ; then
322 AC_DEFINE(ENABLE_NLS, 1,
323 [always defined to indicate that i18n is enabled])
324 fi
325
326 dnl Test whether we really found GNU xgettext.
327 if test "$XGETTEXT" != ":"; then
328 dnl If it is not GNU xgettext we define it as : so that the
329 dnl Makefiles still can work.
330 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
331 : ;
332 else
333 AC_MSG_RESULT(
334 [found xgettext program is not GNU xgettext; ignore it])
335 XGETTEXT=":"
336 fi
337 fi
338
339 # We need to process the po/ directory.
340 POSUB=po
341
342 AC_OUTPUT_COMMANDS(
343 [case "$CONFIG_FILES" in *po/Makefile.in*)
344 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
345 esac])
346
347 dnl These rules are solely for the distribution goal. While doing this
348 dnl we only have to keep exactly one list of the available catalogs
349 dnl in configure.in.
350 for lang in $ALL_LINGUAS; do
351 GMOFILES="$GMOFILES $lang.gmo"
352 POFILES="$POFILES $lang.po"
353 done
354
355 dnl Make all variables we use known to autoconf.
356 AC_SUBST(CATALOGS)
357 AC_SUBST(CATOBJEXT)
358 AC_SUBST(DATADIRNAME)
359 AC_SUBST(GMOFILES)
360 AC_SUBST(INSTOBJEXT)
361 AC_SUBST(INTLLIBS)
362 AC_SUBST(PO_IN_DATADIR_TRUE)
363 AC_SUBST(PO_IN_DATADIR_FALSE)
364 AC_SUBST(POFILES)
365 AC_SUBST(POSUB)
366 ])
367
368# AM_GLIB_GNU_GETTEXT
369# -------------------
370# Do checks necessary for use of gettext. If a suitable implementation
371# of gettext is found in either in libintl or in the C library,
372# it will set INTLLIBS to the libraries needed for use of gettext
373# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
374# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
375# on various variables needed by the Makefile.in.in installed by
376# glib-gettextize.
377dnl
378glib_DEFUN([GLIB_GNU_GETTEXT],
379 [AC_REQUIRE([AC_PROG_CC])dnl
380 AC_REQUIRE([AC_HEADER_STDC])dnl
381
382 GLIB_LC_MESSAGES
383 GLIB_WITH_NLS
384
385 if test "$gt_cv_have_gettext" = "yes"; then
386 if test "x$ALL_LINGUAS" = "x"; then
387 LINGUAS=
388 else
389 AC_MSG_CHECKING(for catalogs to be installed)
390 NEW_LINGUAS=
391 for presentlang in $ALL_LINGUAS; do
392 useit=no
393 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
394 desiredlanguages="$LINGUAS"
395 else
396 desiredlanguages="$ALL_LINGUAS"
397 fi
398 for desiredlang in $desiredlanguages; do
399 # Use the presentlang catalog if desiredlang is
400 # a. equal to presentlang, or
401 # b. a variant of presentlang (because in this case,
402 # presentlang can be used as a fallback for messages
403 # which are not translated in the desiredlang catalog).
404 case "$desiredlang" in
405 "$presentlang"*) useit=yes;;
406 esac
407 done
408 if test $useit = yes; then
409 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
410 fi
411 done
412 LINGUAS=$NEW_LINGUAS
413 AC_MSG_RESULT($LINGUAS)
414 fi
415
416 dnl Construct list of names of catalog files to be constructed.
417 if test -n "$LINGUAS"; then
418 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
419 fi
420 fi
421
422 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
423 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
424 dnl Try to locate is.
425 MKINSTALLDIRS=
426 if test -n "$ac_aux_dir"; then
427 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
428 fi
429 if test -z "$MKINSTALLDIRS"; then
430 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
431 fi
432 AC_SUBST(MKINSTALLDIRS)
433
434 dnl Generate list of files to be processed by xgettext which will
435 dnl be included in po/Makefile.
436 test -d po || mkdir po
437 if test "x$srcdir" != "x."; then
438 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
439 posrcprefix="$srcdir/"
440 else
441 posrcprefix="../$srcdir/"
442 fi
443 else
444 posrcprefix="../"
445 fi
446 rm -f po/POTFILES
447 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
448 < $srcdir/po/POTFILES.in > po/POTFILES
449 ])
450
451# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
452# -------------------------------
453# Define VARIABLE to the location where catalog files will
454# be installed by po/Makefile.
455glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
456[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
457glib_save_prefix="$prefix"
458glib_save_exec_prefix="$exec_prefix"
459glib_save_datarootdir="$datarootdir"
460test "x$prefix" = xNONE && prefix=$ac_default_prefix
461test "x$exec_prefix" = xNONE && exec_prefix=$prefix
462datarootdir=`eval echo "${datarootdir}"`
463if test "x$CATOBJEXT" = "x.mo" ; then
464 localedir=`eval echo "${libdir}/locale"`
465else
466 localedir=`eval echo "${datadir}/locale"`
467fi
468prefix="$glib_save_prefix"
469exec_prefix="$glib_save_exec_prefix"
470datarootdir="$glib_save_datarootdir"
471AC_DEFINE_UNQUOTED($1, "$localedir",
472 [Define the location where the catalogs will be installed])
473])
474
475dnl
476dnl Now the definitions that aclocal will find
477dnl
478ifdef(glib_configure_in,[],[
479AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
480AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
481])dnl
482
483# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
484#
485# Create a temporary file with TEST-FILE as its contents and pass the
486# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
487# 0 and perform ACTION-IF-FAIL for any other exit status.
488AC_DEFUN([GLIB_RUN_PROG],
489[cat >conftest.foo <<_ACEOF
490$2
491_ACEOF
492if AC_RUN_LOG([$1 conftest.foo]); then
493 m4_ifval([$3], [$3], [:])
494m4_ifvaln([$4], [else $4])dnl
495echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
496sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
497fi])
498
499
500
501dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
502# serial 40 IT_PROG_INTLTOOL
503AC_DEFUN([IT_PROG_INTLTOOL], [
504AC_PREREQ([2.50])dnl
505AC_REQUIRE([AM_NLS])dnl
506
507case "$am__api_version" in
508 1.[01234])
509 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
510 ;;
511 *)
512 ;;
513esac
514
515if test -n "$1"; then
516 AC_MSG_CHECKING([for intltool >= $1])
517
518 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
519 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
520 [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
521 ]
522 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
523 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
524 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
525fi
526
527AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
528AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
529AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
530if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
531 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
532fi
533
534 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
535INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
536 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
537 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
538 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
539 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
540 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
541 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
542INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
543 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
544 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
545 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
546 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
547 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
548 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
549 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
550 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
551 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
552 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
553
554_IT_SUBST(INTLTOOL_DESKTOP_RULE)
555_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
556_IT_SUBST(INTLTOOL_KEYS_RULE)
557_IT_SUBST(INTLTOOL_PROP_RULE)
558_IT_SUBST(INTLTOOL_OAF_RULE)
559_IT_SUBST(INTLTOOL_PONG_RULE)
560_IT_SUBST(INTLTOOL_SERVER_RULE)
561_IT_SUBST(INTLTOOL_SHEET_RULE)
562_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
563_IT_SUBST(INTLTOOL_UI_RULE)
564_IT_SUBST(INTLTOOL_XAM_RULE)
565_IT_SUBST(INTLTOOL_KBD_RULE)
566_IT_SUBST(INTLTOOL_XML_RULE)
567_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
568_IT_SUBST(INTLTOOL_CAVES_RULE)
569_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
570_IT_SUBST(INTLTOOL_THEME_RULE)
571_IT_SUBST(INTLTOOL_SERVICE_RULE)
572_IT_SUBST(INTLTOOL_POLICY_RULE)
573
574# Check the gettext tools to make sure they are GNU
575AC_PATH_PROG(XGETTEXT, xgettext)
576AC_PATH_PROG(MSGMERGE, msgmerge)
577AC_PATH_PROG(MSGFMT, msgfmt)
578AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
579if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
580 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
581fi
582xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
583mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
584mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
585if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
586 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
587fi
588
589AC_PATH_PROG(INTLTOOL_PERL, perl)
590if test -z "$INTLTOOL_PERL"; then
591 AC_MSG_ERROR([perl not found])
592fi
593AC_MSG_CHECKING([for perl >= 5.8.1])
594$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
595if test $? -ne 0; then
596 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
597else
598 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
599 AC_MSG_RESULT([$IT_PERL_VERSION])
600fi
601if test "x$2" != "xno-xml"; then
602 AC_MSG_CHECKING([for XML::Parser])
603 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
604 AC_MSG_RESULT([ok])
605 else
606 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
607 fi
608fi
609
610# Substitute ALL_LINGUAS so we can use it in po/Makefile
611AC_SUBST(ALL_LINGUAS)
612
613# Set DATADIRNAME correctly if it is not set yet
614# (copied from glib-gettext.m4)
615if test -z "$DATADIRNAME"; then
616 AC_LINK_IFELSE(
617 [AC_LANG_PROGRAM([[]],
618 [[extern int _nl_msg_cat_cntr;
619 return _nl_msg_cat_cntr]])],
620 [DATADIRNAME=share],
621 [case $host in
622 *-*-solaris*)
623 dnl On Solaris, if bind_textdomain_codeset is in libc,
624 dnl GNU format message catalog is always supported,
625 dnl since both are added to the libc all together.
626 dnl Hence, we'd like to go with DATADIRNAME=share
627 dnl in this case.
628 AC_CHECK_FUNC(bind_textdomain_codeset,
629 [DATADIRNAME=share], [DATADIRNAME=lib])
630 ;;
631 *)
632 [DATADIRNAME=lib]
633 ;;
634 esac])
635fi
636AC_SUBST(DATADIRNAME)
637
638IT_PO_SUBDIR([po])
639
640])
641
642
643# IT_PO_SUBDIR(DIRNAME)
644# ---------------------
645# All po subdirs have to be declared with this macro; the subdir "po" is
646# declared by IT_PROG_INTLTOOL.
647#
648AC_DEFUN([IT_PO_SUBDIR],
649[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
650dnl
651dnl The following CONFIG_COMMANDS should be exetuted at the very end
652dnl of config.status.
653AC_CONFIG_COMMANDS_PRE([
654 AC_CONFIG_COMMANDS([$1/stamp-it], [
655 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
656 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
657 fi
658 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
659 >"$1/stamp-it.tmp"
660 [sed '/^#/d
661 s/^[[].*] *//
662 /^[ ]*$/d
663 '"s|^| $ac_top_srcdir/|" \
664 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
665 ]
666 [sed '/^POTFILES =/,/[^\\]$/ {
667 /^POTFILES =/!d
668 r $1/POTFILES
669 }
670 ' "$1/Makefile.in" >"$1/Makefile"]
671 rm -f "$1/Makefile.tmp"
672 mv "$1/stamp-it.tmp" "$1/stamp-it"
673 ])
674])dnl
675])
676
677# _IT_SUBST(VARIABLE)
678# -------------------
679# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
680#
681AC_DEFUN([_IT_SUBST],
682[
683AC_SUBST([$1])
684m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
685]
686)
687
688# deprecated macros
689AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
690# A hint is needed for aclocal from Automake <= 1.9.4:
691# AC_DEFUN([AC_PROG_INTLTOOL], ...)
692
693
694# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
695#
696# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
697# 2006, 2007, 2008 Free Software Foundation, Inc.
698# Written by Gordon Matzigkeit, 1996
699#
700# This file is free software; the Free Software Foundation gives
701# unlimited permission to copy and/or distribute it, with or without
702# modifications, as long as this notice is preserved.
703
704m4_define([_LT_COPYING], [dnl
705# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
706# 2006, 2007, 2008 Free Software Foundation, Inc.
707# Written by Gordon Matzigkeit, 1996
708#
709# This file is part of GNU Libtool.
710#
711# GNU Libtool is free software; you can redistribute it and/or
712# modify it under the terms of the GNU General Public License as
713# published by the Free Software Foundation; either version 2 of
714# the License, or (at your option) any later version.
715#
716# As a special exception to the GNU General Public License,
717# if you distribute this file as part of a program or library that
718# is built using GNU Libtool, you may include this file under the
719# same distribution terms that you use for the rest of that program.
720#
721# GNU Libtool is distributed in the hope that it will be useful,
722# but WITHOUT ANY WARRANTY; without even the implied warranty of
723# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
724# GNU General Public License for more details.
725#
726# You should have received a copy of the GNU General Public License
727# along with GNU Libtool; see the file COPYING. If not, a copy
728# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
729# obtained by writing to the Free Software Foundation, Inc.,
730# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
731])
732
733# serial 56 LT_INIT
734
735
736# LT_PREREQ(VERSION)
737# ------------------
738# Complain and exit if this libtool version is less that VERSION.
739m4_defun([LT_PREREQ],
740[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
741 [m4_default([$3],
742 [m4_fatal([Libtool version $1 or higher is required],
743 63)])],
744 [$2])])
745
746
747# _LT_CHECK_BUILDDIR
748# ------------------
749# Complain if the absolute build directory name contains unusual characters
750m4_defun([_LT_CHECK_BUILDDIR],
751[case `pwd` in
752 *\ * | *\ *)
753 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
754esac
755])
756
757
758# LT_INIT([OPTIONS])
759# ------------------
760AC_DEFUN([LT_INIT],
761[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
762AC_BEFORE([$0], [LT_LANG])dnl
763AC_BEFORE([$0], [LT_OUTPUT])dnl
764AC_BEFORE([$0], [LTDL_INIT])dnl
765m4_require([_LT_CHECK_BUILDDIR])dnl
766
767dnl Autoconf doesn't catch unexpanded LT_ macros by default:
768m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
769m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
770dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
771dnl unless we require an AC_DEFUNed macro:
772AC_REQUIRE([LTOPTIONS_VERSION])dnl
773AC_REQUIRE([LTSUGAR_VERSION])dnl
774AC_REQUIRE([LTVERSION_VERSION])dnl
775AC_REQUIRE([LTOBSOLETE_VERSION])dnl
776m4_require([_LT_PROG_LTMAIN])dnl
777
778dnl Parse OPTIONS
779_LT_SET_OPTIONS([$0], [$1])
780
781# This can be used to rebuild libtool when needed
782LIBTOOL_DEPS="$ltmain"
783
784# Always use our own libtool.
785LIBTOOL='$(SHELL) $(top_builddir)/libtool'
786AC_SUBST(LIBTOOL)dnl
787
788_LT_SETUP
789
790# Only expand once:
791m4_define([LT_INIT])
792])# LT_INIT
793
794# Old names:
795AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
796AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
797dnl aclocal-1.4 backwards compatibility:
798dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
799dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
800
801
802# _LT_CC_BASENAME(CC)
803# -------------------
804# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
805m4_defun([_LT_CC_BASENAME],
806[for cc_temp in $1""; do
807 case $cc_temp in
808 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
809 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
810 \-*) ;;
811 *) break;;
812 esac
813done
814cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
815])
816
817
818# _LT_FILEUTILS_DEFAULTS
819# ----------------------
820# It is okay to use these file commands and assume they have been set
821# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
822m4_defun([_LT_FILEUTILS_DEFAULTS],
823[: ${CP="cp -f"}
824: ${MV="mv -f"}
825: ${RM="rm -f"}
826])# _LT_FILEUTILS_DEFAULTS
827
828
829# _LT_SETUP
830# ---------
831m4_defun([_LT_SETUP],
832[AC_REQUIRE([AC_CANONICAL_HOST])dnl
833AC_REQUIRE([AC_CANONICAL_BUILD])dnl
834_LT_DECL([], [host_alias], [0], [The host system])dnl
835_LT_DECL([], [host], [0])dnl
836_LT_DECL([], [host_os], [0])dnl
837dnl
838_LT_DECL([], [build_alias], [0], [The build system])dnl
839_LT_DECL([], [build], [0])dnl
840_LT_DECL([], [build_os], [0])dnl
841dnl
842AC_REQUIRE([AC_PROG_CC])dnl
843AC_REQUIRE([LT_PATH_LD])dnl
844AC_REQUIRE([LT_PATH_NM])dnl
845dnl
846AC_REQUIRE([AC_PROG_LN_S])dnl
847test -z "$LN_S" && LN_S="ln -s"
848_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
849dnl
850AC_REQUIRE([LT_CMD_MAX_LEN])dnl
851_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
852_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
853dnl
854m4_require([_LT_FILEUTILS_DEFAULTS])dnl
855m4_require([_LT_CHECK_SHELL_FEATURES])dnl
856m4_require([_LT_CMD_RELOAD])dnl
857m4_require([_LT_CHECK_MAGIC_METHOD])dnl
858m4_require([_LT_CMD_OLD_ARCHIVE])dnl
859m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
860
861_LT_CONFIG_LIBTOOL_INIT([
862# See if we are running on zsh, and set the options which allow our
863# commands through without removal of \ escapes INIT.
864if test -n "\${ZSH_VERSION+set}" ; then
865 setopt NO_GLOB_SUBST
866fi
867])
868if test -n "${ZSH_VERSION+set}" ; then
869 setopt NO_GLOB_SUBST
870fi
871
872_LT_CHECK_OBJDIR
873
874m4_require([_LT_TAG_COMPILER])dnl
875_LT_PROG_ECHO_BACKSLASH
876
877case $host_os in
878aix3*)
879 # AIX sometimes has problems with the GCC collect2 program. For some
880 # reason, if we set the COLLECT_NAMES environment variable, the problems
881 # vanish in a puff of smoke.
882 if test "X${COLLECT_NAMES+set}" != Xset; then
883 COLLECT_NAMES=
884 export COLLECT_NAMES
885 fi
886 ;;
887esac
888
889# Sed substitution that helps us do robust quoting. It backslashifies
890# metacharacters that are still active within double-quoted strings.
891sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
892
893# Same as above, but do not quote variable references.
894double_quote_subst='s/\([["`\\]]\)/\\\1/g'
895
896# Sed substitution to delay expansion of an escaped shell variable in a
897# double_quote_subst'ed string.
898delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
899
900# Sed substitution to delay expansion of an escaped single quote.
901delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
902
903# Sed substitution to avoid accidental globbing in evaled expressions
904no_glob_subst='s/\*/\\\*/g'
905
906# Global variables:
907ofile=libtool
908can_build_shared=yes
909
910# All known linkers require a `.a' archive for static linking (except MSVC,
911# which needs '.lib').
912libext=a
913
914with_gnu_ld="$lt_cv_prog_gnu_ld"
915
916old_CC="$CC"
917old_CFLAGS="$CFLAGS"
918
919# Set sane defaults for various variables
920test -z "$CC" && CC=cc
921test -z "$LTCC" && LTCC=$CC
922test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
923test -z "$LD" && LD=ld
924test -z "$ac_objext" && ac_objext=o
925
926_LT_CC_BASENAME([$compiler])
927
928# Only perform the check for file, if the check method requires it
929test -z "$MAGIC_CMD" && MAGIC_CMD=file
930case $deplibs_check_method in
931file_magic*)
932 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
933 _LT_PATH_MAGIC
934 fi
935 ;;
936esac
937
938# Use C for the default configuration in the libtool script
939LT_SUPPORTED_TAG([CC])
940_LT_LANG_C_CONFIG
941_LT_LANG_DEFAULT_CONFIG
942_LT_CONFIG_COMMANDS
943])# _LT_SETUP
944
945
946# _LT_PROG_LTMAIN
947# ---------------
948# Note that this code is called both from `configure', and `config.status'
949# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
950# `config.status' has no value for ac_aux_dir unless we are using Automake,
951# so we pass a copy along to make sure it has a sensible value anyway.
952m4_defun([_LT_PROG_LTMAIN],
953[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
954_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
955ltmain="$ac_aux_dir/ltmain.sh"
956])# _LT_PROG_LTMAIN
957
958
959
960# So that we can recreate a full libtool script including additional
961# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
962# in macros and then make a single call at the end using the `libtool'
963# label.
964
965
966# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
967# ----------------------------------------
968# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
969m4_define([_LT_CONFIG_LIBTOOL_INIT],
970[m4_ifval([$1],
971 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
972 [$1
973])])])
974
975# Initialize.
976m4_define([_LT_OUTPUT_LIBTOOL_INIT])
977
978
979# _LT_CONFIG_LIBTOOL([COMMANDS])
980# ------------------------------
981# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
982m4_define([_LT_CONFIG_LIBTOOL],
983[m4_ifval([$1],
984 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
985 [$1
986])])])
987
988# Initialize.
989m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
990
991
992# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
993# -----------------------------------------------------
994m4_defun([_LT_CONFIG_SAVE_COMMANDS],
995[_LT_CONFIG_LIBTOOL([$1])
996_LT_CONFIG_LIBTOOL_INIT([$2])
997])
998
999
1000# _LT_FORMAT_COMMENT([COMMENT])
1001# -----------------------------
1002# Add leading comment marks to the start of each line, and a trailing
1003# full-stop to the whole comment if one is not present already.
1004m4_define([_LT_FORMAT_COMMENT],
1005[m4_ifval([$1], [
1006m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1007 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1008)])
1009
1010
1011
1012
1013
1014# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1015# -------------------------------------------------------------------
1016# CONFIGNAME is the name given to the value in the libtool script.
1017# VARNAME is the (base) name used in the configure script.
1018# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1019# VARNAME. Any other value will be used directly.
1020m4_define([_LT_DECL],
1021[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1022 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1023 [m4_ifval([$1], [$1], [$2])])
1024 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1025 m4_ifval([$4],
1026 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1027 lt_dict_add_subkey([lt_decl_dict], [$2],
1028 [tagged?], [m4_ifval([$5], [yes], [no])])])
1029])
1030
1031
1032# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1033# --------------------------------------------------------
1034m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1035
1036
1037# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1038# ------------------------------------------------
1039m4_define([lt_decl_tag_varnames],
1040[_lt_decl_filter([tagged?], [yes], $@)])
1041
1042
1043# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1044# ---------------------------------------------------------
1045m4_define([_lt_decl_filter],
1046[m4_case([$#],
1047 [0], [m4_fatal([$0: too few arguments: $#])],
1048 [1], [m4_fatal([$0: too few arguments: $#: $1])],
1049 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1050 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1051 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1052])
1053
1054
1055# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1056# --------------------------------------------------
1057m4_define([lt_decl_quote_varnames],
1058[_lt_decl_filter([value], [1], $@)])
1059
1060
1061# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1062# ---------------------------------------------------
1063m4_define([lt_decl_dquote_varnames],
1064[_lt_decl_filter([value], [2], $@)])
1065
1066
1067# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1068# ---------------------------------------------------
1069m4_define([lt_decl_varnames_tagged],
1070[m4_assert([$# <= 2])dnl
1071_$0(m4_quote(m4_default([$1], [[, ]])),
1072 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1073 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1074m4_define([_lt_decl_varnames_tagged],
1075[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1076
1077
1078# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1079# ------------------------------------------------
1080m4_define([lt_decl_all_varnames],
1081[_$0(m4_quote(m4_default([$1], [[, ]])),
1082 m4_if([$2], [],
1083 m4_quote(lt_decl_varnames),
1084 m4_quote(m4_shift($@))))[]dnl
1085])
1086m4_define([_lt_decl_all_varnames],
1087[lt_join($@, lt_decl_varnames_tagged([$1],
1088 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1089])
1090
1091
1092# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1093# ------------------------------------
1094# Quote a variable value, and forward it to `config.status' so that its
1095# declaration there will have the same value as in `configure'. VARNAME
1096# must have a single quote delimited value for this to work.
1097m4_define([_LT_CONFIG_STATUS_DECLARE],
1098[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1099
1100
1101# _LT_CONFIG_STATUS_DECLARATIONS
1102# ------------------------------
1103# We delimit libtool config variables with single quotes, so when
1104# we write them to config.status, we have to be sure to quote all
1105# embedded single quotes properly. In configure, this macro expands
1106# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1107#
1108# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1109m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1110[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1111 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1112
1113
1114# _LT_LIBTOOL_TAGS
1115# ----------------
1116# Output comment and list of tags supported by the script
1117m4_defun([_LT_LIBTOOL_TAGS],
1118[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1119available_tags="_LT_TAGS"dnl
1120])
1121
1122
1123# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1124# -----------------------------------
1125# Extract the dictionary values for VARNAME (optionally with TAG) and
1126# expand to a commented shell variable setting:
1127#
1128# # Some comment about what VAR is for.
1129# visible_name=$lt_internal_name
1130m4_define([_LT_LIBTOOL_DECLARE],
1131[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1132 [description])))[]dnl
1133m4_pushdef([_libtool_name],
1134 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1135m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1136 [0], [_libtool_name=[$]$1],
1137 [1], [_libtool_name=$lt_[]$1],
1138 [2], [_libtool_name=$lt_[]$1],
1139 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1140m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1141])
1142
1143
1144# _LT_LIBTOOL_CONFIG_VARS
1145# -----------------------
1146# Produce commented declarations of non-tagged libtool config variables
1147# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1148# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1149# section) are produced by _LT_LIBTOOL_TAG_VARS.
1150m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1151[m4_foreach([_lt_var],
1152 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1153 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1154
1155
1156# _LT_LIBTOOL_TAG_VARS(TAG)
1157# -------------------------
1158m4_define([_LT_LIBTOOL_TAG_VARS],
1159[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1160 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1161
1162
1163# _LT_TAGVAR(VARNAME, [TAGNAME])
1164# ------------------------------
1165m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1166
1167
1168# _LT_CONFIG_COMMANDS
1169# -------------------
1170# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1171# variables for single and double quote escaping we saved from calls
1172# to _LT_DECL, we can put quote escaped variables declarations
1173# into `config.status', and then the shell code to quote escape them in
1174# for loops in `config.status'. Finally, any additional code accumulated
1175# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1176m4_defun([_LT_CONFIG_COMMANDS],
1177[AC_PROVIDE_IFELSE([LT_OUTPUT],
1178 dnl If the libtool generation code has been placed in $CONFIG_LT,
1179 dnl instead of duplicating it all over again into config.status,
1180 dnl then we will have config.status run $CONFIG_LT later, so it
1181 dnl needs to know what name is stored there:
1182 [AC_CONFIG_COMMANDS([libtool],
1183 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1184 dnl If the libtool generation code is destined for config.status,
1185 dnl expand the accumulated commands and init code now:
1186 [AC_CONFIG_COMMANDS([libtool],
1187 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1188])#_LT_CONFIG_COMMANDS
1189
1190
1191# Initialize.
1192m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1193[
1194
1195# The HP-UX ksh and POSIX shell print the target directory to stdout
1196# if CDPATH is set.
1197(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1198
1199sed_quote_subst='$sed_quote_subst'
1200double_quote_subst='$double_quote_subst'
1201delay_variable_subst='$delay_variable_subst'
1202_LT_CONFIG_STATUS_DECLARATIONS
1203LTCC='$LTCC'
1204LTCFLAGS='$LTCFLAGS'
1205compiler='$compiler_DEFAULT'
1206
1207# Quote evaled strings.
1208for var in lt_decl_all_varnames([[ \
1209]], lt_decl_quote_varnames); do
1210 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1211 *[[\\\\\\\`\\"\\\$]]*)
1212 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1213 ;;
1214 *)
1215 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1216 ;;
1217 esac
1218done
1219
1220# Double-quote double-evaled strings.
1221for var in lt_decl_all_varnames([[ \
1222]], lt_decl_dquote_varnames); do
1223 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1224 *[[\\\\\\\`\\"\\\$]]*)
1225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1226 ;;
1227 *)
1228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1229 ;;
1230 esac
1231done
1232
1233# Fix-up fallback echo if it was mangled by the above quoting rules.
1234case \$lt_ECHO in
1235*'\\\[$]0 --fallback-echo"')dnl "
1236 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1237 ;;
1238esac
1239
1240_LT_OUTPUT_LIBTOOL_INIT
1241])
1242
1243
1244# LT_OUTPUT
1245# ---------
1246# This macro allows early generation of the libtool script (before
1247# AC_OUTPUT is called), incase it is used in configure for compilation
1248# tests.
1249AC_DEFUN([LT_OUTPUT],
1250[: ${CONFIG_LT=./config.lt}
1251AC_MSG_NOTICE([creating $CONFIG_LT])
1252cat >"$CONFIG_LT" <<_LTEOF
1253#! $SHELL
1254# Generated by $as_me.
1255# Run this file to recreate a libtool stub with the current configuration.
1256
1257lt_cl_silent=false
1258SHELL=\${CONFIG_SHELL-$SHELL}
1259_LTEOF
1260
1261cat >>"$CONFIG_LT" <<\_LTEOF
1262AS_SHELL_SANITIZE
1263_AS_PREPARE
1264
1265exec AS_MESSAGE_FD>&1
1266exec AS_MESSAGE_LOG_FD>>config.log
1267{
1268 echo
1269 AS_BOX([Running $as_me.])
1270} >&AS_MESSAGE_LOG_FD
1271
1272lt_cl_help="\
1273\`$as_me' creates a local libtool stub from the current configuration,
1274for use in further configure time tests before the real libtool is
1275generated.
1276
1277Usage: $[0] [[OPTIONS]]
1278
1279 -h, --help print this help, then exit
1280 -V, --version print version number, then exit
1281 -q, --quiet do not print progress messages
1282 -d, --debug don't remove temporary files
1283
1284Report bugs to <bug-libtool@gnu.org>."
1285
1286lt_cl_version="\
1287m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1288m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1289configured by $[0], generated by m4_PACKAGE_STRING.
1290
1291Copyright (C) 2008 Free Software Foundation, Inc.
1292This config.lt script is free software; the Free Software Foundation
1293gives unlimited permision to copy, distribute and modify it."
1294
1295while test $[#] != 0
1296do
1297 case $[1] in
1298 --version | --v* | -V )
1299 echo "$lt_cl_version"; exit 0 ;;
1300 --help | --h* | -h )
1301 echo "$lt_cl_help"; exit 0 ;;
1302 --debug | --d* | -d )
1303 debug=: ;;
1304 --quiet | --q* | --silent | --s* | -q )
1305 lt_cl_silent=: ;;
1306
1307 -*) AC_MSG_ERROR([unrecognized option: $[1]
1308Try \`$[0] --help' for more information.]) ;;
1309
1310 *) AC_MSG_ERROR([unrecognized argument: $[1]
1311Try \`$[0] --help' for more information.]) ;;
1312 esac
1313 shift
1314done
1315
1316if $lt_cl_silent; then
1317 exec AS_MESSAGE_FD>/dev/null
1318fi
1319_LTEOF
1320
1321cat >>"$CONFIG_LT" <<_LTEOF
1322_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1323_LTEOF
1324
1325cat >>"$CONFIG_LT" <<\_LTEOF
1326AC_MSG_NOTICE([creating $ofile])
1327_LT_OUTPUT_LIBTOOL_COMMANDS
1328AS_EXIT(0)
1329_LTEOF
1330chmod +x "$CONFIG_LT"
1331
1332# configure is writing to config.log, but config.lt does its own redirection,
1333# appending to config.log, which fails on DOS, as config.log is still kept
1334# open by configure. Here we exec the FD to /dev/null, effectively closing
1335# config.log, so it can be properly (re)opened and appended to by config.lt.
1336if test "$no_create" != yes; then
1337 lt_cl_success=:
1338 test "$silent" = yes &&
1339 lt_config_lt_args="$lt_config_lt_args --quiet"
1340 exec AS_MESSAGE_LOG_FD>/dev/null
1341 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1342 exec AS_MESSAGE_LOG_FD>>config.log
1343 $lt_cl_success || AS_EXIT(1)
1344fi
1345])# LT_OUTPUT
1346
1347
1348# _LT_CONFIG(TAG)
1349# ---------------
1350# If TAG is the built-in tag, create an initial libtool script with a
1351# default configuration from the untagged config vars. Otherwise add code
1352# to config.status for appending the configuration named by TAG from the
1353# matching tagged config vars.
1354m4_defun([_LT_CONFIG],
1355[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1356_LT_CONFIG_SAVE_COMMANDS([
1357 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1358 m4_if(_LT_TAG, [C], [
1359 # See if we are running on zsh, and set the options which allow our
1360 # commands through without removal of \ escapes.
1361 if test -n "${ZSH_VERSION+set}" ; then
1362 setopt NO_GLOB_SUBST
1363 fi
1364
1365 cfgfile="${ofile}T"
1366 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1367 $RM "$cfgfile"
1368
1369 cat <<_LT_EOF >> "$cfgfile"
1370#! $SHELL
1371
1372# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1373# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1375# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1376#
1377_LT_COPYING
1378_LT_LIBTOOL_TAGS
1379
1380# ### BEGIN LIBTOOL CONFIG
1381_LT_LIBTOOL_CONFIG_VARS
1382_LT_LIBTOOL_TAG_VARS
1383# ### END LIBTOOL CONFIG
1384
1385_LT_EOF
1386
1387 case $host_os in
1388 aix3*)
1389 cat <<\_LT_EOF >> "$cfgfile"
1390# AIX sometimes has problems with the GCC collect2 program. For some
1391# reason, if we set the COLLECT_NAMES environment variable, the problems
1392# vanish in a puff of smoke.
1393if test "X${COLLECT_NAMES+set}" != Xset; then
1394 COLLECT_NAMES=
1395 export COLLECT_NAMES
1396fi
1397_LT_EOF
1398 ;;
1399 esac
1400
1401 _LT_PROG_LTMAIN
1402
1403 # We use sed instead of cat because bash on DJGPP gets confused if
1404 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1405 # text mode, it properly converts lines to CR/LF. This bash problem
1406 # is reportedly fixed, but why not run on old versions too?
1407 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1408 || (rm -f "$cfgfile"; exit 1)
1409
1410 _LT_PROG_XSI_SHELLFNS
1411
1412 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1413 || (rm -f "$cfgfile"; exit 1)
1414
1415 mv -f "$cfgfile" "$ofile" ||
1416 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1417 chmod +x "$ofile"
1418],
1419[cat <<_LT_EOF >> "$ofile"
1420
1421dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1422dnl in a comment (ie after a #).
1423# ### BEGIN LIBTOOL TAG CONFIG: $1
1424_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1425# ### END LIBTOOL TAG CONFIG: $1
1426_LT_EOF
1427])dnl /m4_if
1428],
1429[m4_if([$1], [], [
1430 PACKAGE='$PACKAGE'
1431 VERSION='$VERSION'
1432 TIMESTAMP='$TIMESTAMP'
1433 RM='$RM'
1434 ofile='$ofile'], [])
1435])dnl /_LT_CONFIG_SAVE_COMMANDS
1436])# _LT_CONFIG
1437
1438
1439# LT_SUPPORTED_TAG(TAG)
1440# ---------------------
1441# Trace this macro to discover what tags are supported by the libtool
1442# --tag option, using:
1443# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1444AC_DEFUN([LT_SUPPORTED_TAG], [])
1445
1446
1447# C support is built-in for now
1448m4_define([_LT_LANG_C_enabled], [])
1449m4_define([_LT_TAGS], [])
1450
1451
1452# LT_LANG(LANG)
1453# -------------
1454# Enable libtool support for the given language if not already enabled.
1455AC_DEFUN([LT_LANG],
1456[AC_BEFORE([$0], [LT_OUTPUT])dnl
1457m4_case([$1],
1458 [C], [_LT_LANG(C)],
1459 [C++], [_LT_LANG(CXX)],
1460 [Java], [_LT_LANG(GCJ)],
1461 [Fortran 77], [_LT_LANG(F77)],
1462 [Fortran], [_LT_LANG(FC)],
1463 [Windows Resource], [_LT_LANG(RC)],
1464 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1465 [_LT_LANG($1)],
1466 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1467])# LT_LANG
1468
1469
1470# _LT_LANG(LANGNAME)
1471# ------------------
1472m4_defun([_LT_LANG],
1473[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1474 [LT_SUPPORTED_TAG([$1])dnl
1475 m4_append([_LT_TAGS], [$1 ])dnl
1476 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1477 _LT_LANG_$1_CONFIG($1)])dnl
1478])# _LT_LANG
1479
1480
1481# _LT_LANG_DEFAULT_CONFIG
1482# -----------------------
1483m4_defun([_LT_LANG_DEFAULT_CONFIG],
1484[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1485 [LT_LANG(CXX)],
1486 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1487
1488AC_PROVIDE_IFELSE([AC_PROG_F77],
1489 [LT_LANG(F77)],
1490 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1491
1492AC_PROVIDE_IFELSE([AC_PROG_FC],
1493 [LT_LANG(FC)],
1494 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1495
1496dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1497dnl pulling things in needlessly.
1498AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1499 [LT_LANG(GCJ)],
1500 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1501 [LT_LANG(GCJ)],
1502 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1503 [LT_LANG(GCJ)],
1504 [m4_ifdef([AC_PROG_GCJ],
1505 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1506 m4_ifdef([A][M_PROG_GCJ],
1507 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1508 m4_ifdef([LT_PROG_GCJ],
1509 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1510
1511AC_PROVIDE_IFELSE([LT_PROG_RC],
1512 [LT_LANG(RC)],
1513 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1514])# _LT_LANG_DEFAULT_CONFIG
1515
1516# Obsolete macros:
1517AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1518AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1519AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1520AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1521dnl aclocal-1.4 backwards compatibility:
1522dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1523dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1524dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1525dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1526
1527
1528# _LT_TAG_COMPILER
1529# ----------------
1530m4_defun([_LT_TAG_COMPILER],
1531[AC_REQUIRE([AC_PROG_CC])dnl
1532
1533_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1534_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1535_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1536_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1537
1538# If no C compiler was specified, use CC.
1539LTCC=${LTCC-"$CC"}
1540
1541# If no C compiler flags were specified, use CFLAGS.
1542LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1543
1544# Allow CC to be a program name with arguments.
1545compiler=$CC
1546])# _LT_TAG_COMPILER
1547
1548
1549# _LT_COMPILER_BOILERPLATE
1550# ------------------------
1551# Check for compiler boilerplate output or warnings with
1552# the simple compiler test code.
1553m4_defun([_LT_COMPILER_BOILERPLATE],
1554[m4_require([_LT_DECL_SED])dnl
1555ac_outfile=conftest.$ac_objext
1556echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1557eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1558_lt_compiler_boilerplate=`cat conftest.err`
1559$RM conftest*
1560])# _LT_COMPILER_BOILERPLATE
1561
1562
1563# _LT_LINKER_BOILERPLATE
1564# ----------------------
1565# Check for linker boilerplate output or warnings with
1566# the simple link test code.
1567m4_defun([_LT_LINKER_BOILERPLATE],
1568[m4_require([_LT_DECL_SED])dnl
1569ac_outfile=conftest.$ac_objext
1570echo "$lt_simple_link_test_code" >conftest.$ac_ext
1571eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1572_lt_linker_boilerplate=`cat conftest.err`
1573$RM -r conftest*
1574])# _LT_LINKER_BOILERPLATE
1575
1576# _LT_REQUIRED_DARWIN_CHECKS
1577# -------------------------
1578m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1579 case $host_os in
1580 rhapsody* | darwin*)
1581 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1582 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1583 AC_CHECK_TOOL([LIPO], [lipo], [:])
1584 AC_CHECK_TOOL([OTOOL], [otool], [:])
1585 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1586 _LT_DECL([], [DSYMUTIL], [1],
1587 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1588 _LT_DECL([], [NMEDIT], [1],
1589 [Tool to change global to local symbols on Mac OS X])
1590 _LT_DECL([], [LIPO], [1],
1591 [Tool to manipulate fat objects and archives on Mac OS X])
1592 _LT_DECL([], [OTOOL], [1],
1593 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1594 _LT_DECL([], [OTOOL64], [1],
1595 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1596
1597 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1598 [lt_cv_apple_cc_single_mod=no
1599 if test -z "${LT_MULTI_MODULE}"; then
1600 # By default we will add the -single_module flag. You can override
1601 # by either setting the environment variable LT_MULTI_MODULE
1602 # non-empty at configure time, or by adding -multi_module to the
1603 # link flags.
1604 rm -rf libconftest.dylib*
1605 echo "int foo(void){return 1;}" > conftest.c
1606 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1607-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1608 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1609 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1610 _lt_result=$?
1611 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1612 lt_cv_apple_cc_single_mod=yes
1613 else
1614 cat conftest.err >&AS_MESSAGE_LOG_FD
1615 fi
1616 rm -rf libconftest.dylib*
1617 rm -f conftest.*
1618 fi])
1619 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1620 [lt_cv_ld_exported_symbols_list],
1621 [lt_cv_ld_exported_symbols_list=no
1622 save_LDFLAGS=$LDFLAGS
1623 echo "_main" > conftest.sym
1624 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1625 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1626 [lt_cv_ld_exported_symbols_list=yes],
1627 [lt_cv_ld_exported_symbols_list=no])
1628 LDFLAGS="$save_LDFLAGS"
1629 ])
1630 case $host_os in
1631 rhapsody* | darwin1.[[012]])
1632 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1633 darwin1.*)
1634 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1635 darwin*) # darwin 5.x on
1636 # if running on 10.5 or later, the deployment target defaults
1637 # to the OS version, if on x86, and 10.4, the deployment
1638 # target defaults to 10.4. Don't you love it?
1639 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1640 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1641 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1642 10.[[012]]*)
1643 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1644 10.*)
1645 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1646 esac
1647 ;;
1648 esac
1649 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1650 _lt_dar_single_mod='$single_module'
1651 fi
1652 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1653 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1654 else
1655 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1656 fi
1657 if test "$DSYMUTIL" != ":"; then
1658 _lt_dsymutil='~$DSYMUTIL $lib || :'
1659 else
1660 _lt_dsymutil=
1661 fi
1662 ;;
1663 esac
1664])
1665
1666
1667# _LT_DARWIN_LINKER_FEATURES
1668# --------------------------
1669# Checks for linker and compiler features on darwin
1670m4_defun([_LT_DARWIN_LINKER_FEATURES],
1671[
1672 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1673 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1674 _LT_TAGVAR(hardcode_direct, $1)=no
1675 _LT_TAGVAR(hardcode_automatic, $1)=yes
1676 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1677 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1678 _LT_TAGVAR(link_all_deplibs, $1)=yes
1679 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1680 case $cc_basename in
1681 ifort*) _lt_dar_can_shared=yes ;;
1682 *) _lt_dar_can_shared=$GCC ;;
1683 esac
1684 if test "$_lt_dar_can_shared" = "yes"; then
1685 output_verbose_link_cmd=echo
1686 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1687 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1688 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1689 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1690 m4_if([$1], [CXX],
1691[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1692 _LT_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${_lt_dsymutil}"
1693 _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
1694 fi
1695],[])
1696 else
1697 _LT_TAGVAR(ld_shlibs, $1)=no
1698 fi
1699])
1700
1701# _LT_SYS_MODULE_PATH_AIX
1702# -----------------------
1703# Links a minimal program and checks the executable
1704# for the system default hardcoded library path. In most cases,
1705# this is /usr/lib:/lib, but when the MPI compilers are used
1706# the location of the communication and MPI libs are included too.
1707# If we don't find anything, use the default library path according
1708# to the aix ld manual.
1709m4_defun([_LT_SYS_MODULE_PATH_AIX],
1710[m4_require([_LT_DECL_SED])dnl
1711AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1712lt_aix_libpath_sed='
1713 /Import File Strings/,/^$/ {
1714 /^0/ {
1715 s/^0 *\(.*\)$/\1/
1716 p
1717 }
1718 }'
1719aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1720# Check for a 64-bit object if we didn't find anything.
1721if test -z "$aix_libpath"; then
1722 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1723fi],[])
1724if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1725])# _LT_SYS_MODULE_PATH_AIX
1726
1727
1728# _LT_SHELL_INIT(ARG)
1729# -------------------
1730m4_define([_LT_SHELL_INIT],
1731[ifdef([AC_DIVERSION_NOTICE],
1732 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1733 [AC_DIVERT_PUSH(NOTICE)])
1734$1
1735AC_DIVERT_POP
1736])# _LT_SHELL_INIT
1737
1738
1739# _LT_PROG_ECHO_BACKSLASH
1740# -----------------------
1741# Add some code to the start of the generated configure script which
1742# will find an echo command which doesn't interpret backslashes.
1743m4_defun([_LT_PROG_ECHO_BACKSLASH],
1744[_LT_SHELL_INIT([
1745# Check that we are running under the correct shell.
1746SHELL=${CONFIG_SHELL-/bin/sh}
1747
1748case X$lt_ECHO in
1749X*--fallback-echo)
1750 # Remove one level of quotation (which was required for Make).
1751 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1752 ;;
1753esac
1754
1755ECHO=${lt_ECHO-echo}
1756if test "X[$]1" = X--no-reexec; then
1757 # Discard the --no-reexec flag, and continue.
1758 shift
1759elif test "X[$]1" = X--fallback-echo; then
1760 # Avoid inline document here, it may be left over
1761 :
1762elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1763 # Yippee, $ECHO works!
1764 :
1765else
1766 # Restart under the correct shell.
1767 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1768fi
1769
1770if test "X[$]1" = X--fallback-echo; then
1771 # used as fallback echo
1772 shift
1773 cat <<_LT_EOF
1774[$]*
1775_LT_EOF
1776 exit 0
1777fi
1778
1779# The HP-UX ksh and POSIX shell print the target directory to stdout
1780# if CDPATH is set.
1781(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1782
1783if test -z "$lt_ECHO"; then
1784 if test "X${echo_test_string+set}" != Xset; then
1785 # find a string as large as possible, as long as the shell can cope with it
1786 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1787 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1788 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1789 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1790 then
1791 break
1792 fi
1793 done
1794 fi
1795
1796 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1797 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1798 test "X$echo_testing_string" = "X$echo_test_string"; then
1799 :
1800 else
1801 # The Solaris, AIX, and Digital Unix default echo programs unquote
1802 # backslashes. This makes it impossible to quote backslashes using
1803 # echo "$something" | sed 's/\\/\\\\/g'
1804 #
1805 # So, first we look for a working echo in the user's PATH.
1806
1807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1808 for dir in $PATH /usr/ucb; do
1809 IFS="$lt_save_ifs"
1810 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1811 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1812 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1813 test "X$echo_testing_string" = "X$echo_test_string"; then
1814 ECHO="$dir/echo"
1815 break
1816 fi
1817 done
1818 IFS="$lt_save_ifs"
1819
1820 if test "X$ECHO" = Xecho; then
1821 # We didn't find a better echo, so look for alternatives.
1822 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1823 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1824 test "X$echo_testing_string" = "X$echo_test_string"; then
1825 # This shell has a builtin print -r that does the trick.
1826 ECHO='print -r'
1827 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1828 test "X$CONFIG_SHELL" != X/bin/ksh; then
1829 # If we have ksh, try running configure again with it.
1830 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1831 export ORIGINAL_CONFIG_SHELL
1832 CONFIG_SHELL=/bin/ksh
1833 export CONFIG_SHELL
1834 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1835 else
1836 # Try using printf.
1837 ECHO='printf %s\n'
1838 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1839 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1840 test "X$echo_testing_string" = "X$echo_test_string"; then
1841 # Cool, printf works
1842 :
1843 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1844 test "X$echo_testing_string" = 'X\t' &&
1845 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1846 test "X$echo_testing_string" = "X$echo_test_string"; then
1847 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1848 export CONFIG_SHELL
1849 SHELL="$CONFIG_SHELL"
1850 export SHELL
1851 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1852 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1853 test "X$echo_testing_string" = 'X\t' &&
1854 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1855 test "X$echo_testing_string" = "X$echo_test_string"; then
1856 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1857 else
1858 # maybe with a smaller string...
1859 prev=:
1860
1861 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1862 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1863 then
1864 break
1865 fi
1866 prev="$cmd"
1867 done
1868
1869 if test "$prev" != 'sed 50q "[$]0"'; then
1870 echo_test_string=`eval $prev`
1871 export echo_test_string
1872 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1873 else
1874 # Oops. We lost completely, so just stick with echo.
1875 ECHO=echo
1876 fi
1877 fi
1878 fi
1879 fi
1880 fi
1881fi
1882
1883# Copy echo and quote the copy suitably for passing to libtool from
1884# the Makefile, instead of quoting the original, which is used later.
1885lt_ECHO=$ECHO
1886if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1887 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1888fi
1889
1890AC_SUBST(lt_ECHO)
1891])
1892_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1893_LT_DECL([], [ECHO], [1],
1894 [An echo program that does not interpret backslashes])
1895])# _LT_PROG_ECHO_BACKSLASH
1896
1897
1898# _LT_ENABLE_LOCK
1899# ---------------
1900m4_defun([_LT_ENABLE_LOCK],
1901[AC_ARG_ENABLE([libtool-lock],
1902 [AS_HELP_STRING([--disable-libtool-lock],
1903 [avoid locking (might break parallel builds)])])
1904test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1905
1906# Some flags need to be propagated to the compiler or linker for good
1907# libtool support.
1908case $host in
1909ia64-*-hpux*)
1910 # Find out which ABI we are using.
1911 echo 'int i;' > conftest.$ac_ext
1912 if AC_TRY_EVAL(ac_compile); then
1913 case `/usr/bin/file conftest.$ac_objext` in
1914 *ELF-32*)
1915 HPUX_IA64_MODE="32"
1916 ;;
1917 *ELF-64*)
1918 HPUX_IA64_MODE="64"
1919 ;;
1920 esac
1921 fi
1922 rm -rf conftest*
1923 ;;
1924*-*-irix6*)
1925 # Find out which ABI we are using.
1926 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1927 if AC_TRY_EVAL(ac_compile); then
1928 if test "$lt_cv_prog_gnu_ld" = yes; then
1929 case `/usr/bin/file conftest.$ac_objext` in
1930 *32-bit*)
1931 LD="${LD-ld} -melf32bsmip"
1932 ;;
1933 *N32*)
1934 LD="${LD-ld} -melf32bmipn32"
1935 ;;
1936 *64-bit*)
1937 LD="${LD-ld} -melf64bmip"
1938 ;;
1939 esac
1940 else
1941 case `/usr/bin/file conftest.$ac_objext` in
1942 *32-bit*)
1943 LD="${LD-ld} -32"
1944 ;;
1945 *N32*)
1946 LD="${LD-ld} -n32"
1947 ;;
1948 *64-bit*)
1949 LD="${LD-ld} -64"
1950 ;;
1951 esac
1952 fi
1953 fi
1954 rm -rf conftest*
1955 ;;
1956
1957x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1958s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1959 # Find out which ABI we are using.
1960 echo 'int i;' > conftest.$ac_ext
1961 if AC_TRY_EVAL(ac_compile); then
1962 case `/usr/bin/file conftest.o` in
1963 *32-bit*)
1964 case $host in
1965 x86_64-*kfreebsd*-gnu)
1966 LD="${LD-ld} -m elf_i386_fbsd"
1967 ;;
1968 x86_64-*linux*)
1969 LD="${LD-ld} -m elf_i386"
1970 ;;
1971 ppc64-*linux*|powerpc64-*linux*)
1972 LD="${LD-ld} -m elf32ppclinux"
1973 ;;
1974 s390x-*linux*)
1975 LD="${LD-ld} -m elf_s390"
1976 ;;
1977 sparc64-*linux*)
1978 LD="${LD-ld} -m elf32_sparc"
1979 ;;
1980 esac
1981 ;;
1982 *64-bit*)
1983 case $host in
1984 x86_64-*kfreebsd*-gnu)
1985 LD="${LD-ld} -m elf_x86_64_fbsd"
1986 ;;
1987 x86_64-*linux*)
1988 LD="${LD-ld} -m elf_x86_64"
1989 ;;
1990 ppc*-*linux*|powerpc*-*linux*)
1991 LD="${LD-ld} -m elf64ppc"
1992 ;;
1993 s390*-*linux*|s390*-*tpf*)
1994 LD="${LD-ld} -m elf64_s390"
1995 ;;
1996 sparc*-*linux*)
1997 LD="${LD-ld} -m elf64_sparc"
1998 ;;
1999 esac
2000 ;;
2001 esac
2002 fi
2003 rm -rf conftest*
2004 ;;
2005
2006*-*-sco3.2v5*)
2007 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2008 SAVE_CFLAGS="$CFLAGS"
2009 CFLAGS="$CFLAGS -belf"
2010 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2011 [AC_LANG_PUSH(C)
2012 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2013 AC_LANG_POP])
2014 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2015 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2016 CFLAGS="$SAVE_CFLAGS"
2017 fi
2018 ;;
2019sparc*-*solaris*)
2020 # Find out which ABI we are using.
2021 echo 'int i;' > conftest.$ac_ext
2022 if AC_TRY_EVAL(ac_compile); then
2023 case `/usr/bin/file conftest.o` in
2024 *64-bit*)
2025 case $lt_cv_prog_gnu_ld in
2026 yes*) LD="${LD-ld} -m elf64_sparc" ;;
2027 *)
2028 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2029 LD="${LD-ld} -64"
2030 fi
2031 ;;
2032 esac
2033 ;;
2034 esac
2035 fi
2036 rm -rf conftest*
2037 ;;
2038esac
2039
2040need_locks="$enable_libtool_lock"
2041])# _LT_ENABLE_LOCK
2042
2043
2044# _LT_CMD_OLD_ARCHIVE
2045# -------------------
2046m4_defun([_LT_CMD_OLD_ARCHIVE],
2047[AC_CHECK_TOOL(AR, ar, false)
2048test -z "$AR" && AR=ar
2049test -z "$AR_FLAGS" && AR_FLAGS=cru
2050_LT_DECL([], [AR], [1], [The archiver])
2051_LT_DECL([], [AR_FLAGS], [1])
2052
2053AC_CHECK_TOOL(STRIP, strip, :)
2054test -z "$STRIP" && STRIP=:
2055_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2056
2057AC_CHECK_TOOL(RANLIB, ranlib, :)
2058test -z "$RANLIB" && RANLIB=:
2059_LT_DECL([], [RANLIB], [1],
2060 [Commands used to install an old-style archive])
2061
2062# Determine commands to create old-style static archives.
2063old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2064old_postinstall_cmds='chmod 644 $oldlib'
2065old_postuninstall_cmds=
2066
2067if test -n "$RANLIB"; then
2068 case $host_os in
2069 openbsd*)
2070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2071 ;;
2072 *)
2073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2074 ;;
2075 esac
2076 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2077fi
2078_LT_DECL([], [old_postinstall_cmds], [2])
2079_LT_DECL([], [old_postuninstall_cmds], [2])
2080_LT_TAGDECL([], [old_archive_cmds], [2],
2081 [Commands used to build an old-style archive])
2082])# _LT_CMD_OLD_ARCHIVE
2083
2084
2085# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2086# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2087# ----------------------------------------------------------------
2088# Check whether the given compiler option works
2089AC_DEFUN([_LT_COMPILER_OPTION],
2090[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2091m4_require([_LT_DECL_SED])dnl
2092AC_CACHE_CHECK([$1], [$2],
2093 [$2=no
2094 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2096 lt_compiler_flag="$3"
2097 # Insert the option either (1) after the last *FLAGS variable, or
2098 # (2) before a word containing "conftest.", or (3) at the end.
2099 # Note that $ac_compile itself does not contain backslashes and begins
2100 # with a dollar sign (not a hyphen), so the echo should work correctly.
2101 # The option is referenced via a variable to avoid confusing sed.
2102 lt_compile=`echo "$ac_compile" | $SED \
2103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2104 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2105 -e 's:$: $lt_compiler_flag:'`
2106 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2107 (eval "$lt_compile" 2>conftest.err)
2108 ac_status=$?
2109 cat conftest.err >&AS_MESSAGE_LOG_FD
2110 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2111 if (exit $ac_status) && test -s "$ac_outfile"; then
2112 # The compiler can only warn and ignore the option if not recognized
2113 # So say no if there are warnings other than the usual output.
2114 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2117 $2=yes
2118 fi
2119 fi
2120 $RM conftest*
2121])
2122
2123if test x"[$]$2" = xyes; then
2124 m4_if([$5], , :, [$5])
2125else
2126 m4_if([$6], , :, [$6])
2127fi
2128])# _LT_COMPILER_OPTION
2129
2130# Old name:
2131AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2132dnl aclocal-1.4 backwards compatibility:
2133dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2134
2135
2136# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2137# [ACTION-SUCCESS], [ACTION-FAILURE])
2138# ----------------------------------------------------
2139# Check whether the given linker option works
2140AC_DEFUN([_LT_LINKER_OPTION],
2141[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2142m4_require([_LT_DECL_SED])dnl
2143AC_CACHE_CHECK([$1], [$2],
2144 [$2=no
2145 save_LDFLAGS="$LDFLAGS"
2146 LDFLAGS="$LDFLAGS $3"
2147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2149 # The linker can only warn and ignore the option if not recognized
2150 # So say no if there are warnings
2151 if test -s conftest.err; then
2152 # Append any errors to the config.log.
2153 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2154 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2156 if diff conftest.exp conftest.er2 >/dev/null; then
2157 $2=yes
2158 fi
2159 else
2160 $2=yes
2161 fi
2162 fi
2163 $RM -r conftest*
2164 LDFLAGS="$save_LDFLAGS"
2165])
2166
2167if test x"[$]$2" = xyes; then
2168 m4_if([$4], , :, [$4])
2169else
2170 m4_if([$5], , :, [$5])
2171fi
2172])# _LT_LINKER_OPTION
2173
2174# Old name:
2175AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2176dnl aclocal-1.4 backwards compatibility:
2177dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2178
2179
2180# LT_CMD_MAX_LEN
2181#---------------
2182AC_DEFUN([LT_CMD_MAX_LEN],
2183[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2184# find the maximum length of command line arguments
2185AC_MSG_CHECKING([the maximum length of command line arguments])
2186AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2187 i=0
2188 teststring="ABCD"
2189
2190 case $build_os in
2191 msdosdjgpp*)
2192 # On DJGPP, this test can blow up pretty badly due to problems in libc
2193 # (any single argument exceeding 2000 bytes causes a buffer overrun
2194 # during glob expansion). Even if it were fixed, the result of this
2195 # check would be larger than it should be.
2196 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2197 ;;
2198
2199 gnu*)
2200 # Under GNU Hurd, this test is not required because there is
2201 # no limit to the length of command line arguments.
2202 # Libtool will interpret -1 as no limit whatsoever
2203 lt_cv_sys_max_cmd_len=-1;
2204 ;;
2205
2206 cygwin* | mingw* | cegcc*)
2207 # On Win9x/ME, this test blows up -- it succeeds, but takes
2208 # about 5 minutes as the teststring grows exponentially.
2209 # Worse, since 9x/ME are not pre-emptively multitasking,
2210 # you end up with a "frozen" computer, even though with patience
2211 # the test eventually succeeds (with a max line length of 256k).
2212 # Instead, let's just punt: use the minimum linelength reported by
2213 # all of the supported platforms: 8192 (on NT/2K/XP).
2214 lt_cv_sys_max_cmd_len=8192;
2215 ;;
2216
2217 amigaos*)
2218 # On AmigaOS with pdksh, this test takes hours, literally.
2219 # So we just punt and use a minimum line length of 8192.
2220 lt_cv_sys_max_cmd_len=8192;
2221 ;;
2222
2223 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2224 # This has been around since 386BSD, at least. Likely further.
2225 if test -x /sbin/sysctl; then
2226 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2227 elif test -x /usr/sbin/sysctl; then
2228 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2229 else
2230 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2231 fi
2232 # And add a safety zone
2233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2235 ;;
2236
2237 interix*)
2238 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2239 lt_cv_sys_max_cmd_len=196608
2240 ;;
2241
2242 osf*)
2243 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2244 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2245 # nice to cause kernel panics so lets avoid the loop below.
2246 # First set a reasonable default.
2247 lt_cv_sys_max_cmd_len=16384
2248 #
2249 if test -x /sbin/sysconfig; then
2250 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2251 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2252 esac
2253 fi
2254 ;;
2255 sco3.2v5*)
2256 lt_cv_sys_max_cmd_len=102400
2257 ;;
2258 sysv5* | sco5v6* | sysv4.2uw2*)
2259 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2260 if test -n "$kargmax"; then
2261 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2262 else
2263 lt_cv_sys_max_cmd_len=32768
2264 fi
2265 ;;
2266 *)
2267 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2268 if test -n "$lt_cv_sys_max_cmd_len"; then
2269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2271 else
2272 # Make teststring a little bigger before we do anything with it.
2273 # a 1K string should be a reasonable start.
2274 for i in 1 2 3 4 5 6 7 8 ; do
2275 teststring=$teststring$teststring
2276 done
2277 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2278 # If test is not a shell built-in, we'll probably end up computing a
2279 # maximum length that is only half of the actual maximum length, but
2280 # we can't tell.
2281 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2282 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2283 test $i != 17 # 1/2 MB should be enough
2284 do
2285 i=`expr $i + 1`
2286 teststring=$teststring$teststring
2287 done
2288 # Only check the string length outside the loop.
2289 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2290 teststring=
2291 # Add a significant safety factor because C++ compilers can tack on
2292 # massive amounts of additional arguments before passing them to the
2293 # linker. It appears as though 1/2 is a usable value.
2294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2295 fi
2296 ;;
2297 esac
2298])
2299if test -n $lt_cv_sys_max_cmd_len ; then
2300 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2301else
2302 AC_MSG_RESULT(none)
2303fi
2304max_cmd_len=$lt_cv_sys_max_cmd_len
2305_LT_DECL([], [max_cmd_len], [0],
2306 [What is the maximum length of a command?])
2307])# LT_CMD_MAX_LEN
2308
2309# Old name:
2310AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2311dnl aclocal-1.4 backwards compatibility:
2312dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2313
2314
2315# _LT_HEADER_DLFCN
2316# ----------------
2317m4_defun([_LT_HEADER_DLFCN],
2318[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2319])# _LT_HEADER_DLFCN
2320
2321
2322# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2323# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2324# ----------------------------------------------------------------
2325m4_defun([_LT_TRY_DLOPEN_SELF],
2326[m4_require([_LT_HEADER_DLFCN])dnl
2327if test "$cross_compiling" = yes; then :
2328 [$4]
2329else
2330 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2331 lt_status=$lt_dlunknown
2332 cat > conftest.$ac_ext <<_LT_EOF
2333[#line __oline__ "configure"
2334#include "confdefs.h"
2335
2336#if HAVE_DLFCN_H
2337#include <dlfcn.h>
2338#endif
2339
2340#include <stdio.h>
2341
2342#ifdef RTLD_GLOBAL
2343# define LT_DLGLOBAL RTLD_GLOBAL
2344#else
2345# ifdef DL_GLOBAL
2346# define LT_DLGLOBAL DL_GLOBAL
2347# else
2348# define LT_DLGLOBAL 0
2349# endif
2350#endif
2351
2352/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2353 find out it does not work in some platform. */
2354#ifndef LT_DLLAZY_OR_NOW
2355# ifdef RTLD_LAZY
2356# define LT_DLLAZY_OR_NOW RTLD_LAZY
2357# else
2358# ifdef DL_LAZY
2359# define LT_DLLAZY_OR_NOW DL_LAZY
2360# else
2361# ifdef RTLD_NOW
2362# define LT_DLLAZY_OR_NOW RTLD_NOW
2363# else
2364# ifdef DL_NOW
2365# define LT_DLLAZY_OR_NOW DL_NOW
2366# else
2367# define LT_DLLAZY_OR_NOW 0
2368# endif
2369# endif
2370# endif
2371# endif
2372#endif
2373
2374void fnord() { int i=42;}
2375int main ()
2376{
2377 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2378 int status = $lt_dlunknown;
2379
2380 if (self)
2381 {
2382 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2383 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2384 /* dlclose (self); */
2385 }
2386 else
2387 puts (dlerror ());
2388
2389 return status;
2390}]
2391_LT_EOF
2392 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2393 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2394 lt_status=$?
2395 case x$lt_status in
2396 x$lt_dlno_uscore) $1 ;;
2397 x$lt_dlneed_uscore) $2 ;;
2398 x$lt_dlunknown|x*) $3 ;;
2399 esac
2400 else :
2401 # compilation failed
2402 $3
2403 fi
2404fi
2405rm -fr conftest*
2406])# _LT_TRY_DLOPEN_SELF
2407
2408
2409# LT_SYS_DLOPEN_SELF
2410# ------------------
2411AC_DEFUN([LT_SYS_DLOPEN_SELF],
2412[m4_require([_LT_HEADER_DLFCN])dnl
2413if test "x$enable_dlopen" != xyes; then
2414 enable_dlopen=unknown
2415 enable_dlopen_self=unknown
2416 enable_dlopen_self_static=unknown
2417else
2418 lt_cv_dlopen=no
2419 lt_cv_dlopen_libs=
2420
2421 case $host_os in
2422 beos*)
2423 lt_cv_dlopen="load_add_on"
2424 lt_cv_dlopen_libs=
2425 lt_cv_dlopen_self=yes
2426 ;;
2427
2428 mingw* | pw32* | cegcc*)
2429 lt_cv_dlopen="LoadLibrary"
2430 lt_cv_dlopen_libs=
2431 ;;
2432
2433 cygwin*)
2434 lt_cv_dlopen="dlopen"
2435 lt_cv_dlopen_libs=
2436 ;;
2437
2438 darwin*)
2439 # if libdl is installed we need to link against it
2440 AC_CHECK_LIB([dl], [dlopen],
2441 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2442 lt_cv_dlopen="dyld"
2443 lt_cv_dlopen_libs=
2444 lt_cv_dlopen_self=yes
2445 ])
2446 ;;
2447
2448 *)
2449 AC_CHECK_FUNC([shl_load],
2450 [lt_cv_dlopen="shl_load"],
2451 [AC_CHECK_LIB([dld], [shl_load],
2452 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2453 [AC_CHECK_FUNC([dlopen],
2454 [lt_cv_dlopen="dlopen"],
2455 [AC_CHECK_LIB([dl], [dlopen],
2456 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2457 [AC_CHECK_LIB([svld], [dlopen],
2458 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2459 [AC_CHECK_LIB([dld], [dld_link],
2460 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2461 ])
2462 ])
2463 ])
2464 ])
2465 ])
2466 ;;
2467 esac
2468
2469 if test "x$lt_cv_dlopen" != xno; then
2470 enable_dlopen=yes
2471 else
2472 enable_dlopen=no
2473 fi
2474
2475 case $lt_cv_dlopen in
2476 dlopen)
2477 save_CPPFLAGS="$CPPFLAGS"
2478 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2479
2480 save_LDFLAGS="$LDFLAGS"
2481 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2482
2483 save_LIBS="$LIBS"
2484 LIBS="$lt_cv_dlopen_libs $LIBS"
2485
2486 AC_CACHE_CHECK([whether a program can dlopen itself],
2487 lt_cv_dlopen_self, [dnl
2488 _LT_TRY_DLOPEN_SELF(
2489 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2490 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2491 ])
2492
2493 if test "x$lt_cv_dlopen_self" = xyes; then
2494 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2495 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2496 lt_cv_dlopen_self_static, [dnl
2497 _LT_TRY_DLOPEN_SELF(
2498 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2499 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2500 ])
2501 fi
2502
2503 CPPFLAGS="$save_CPPFLAGS"
2504 LDFLAGS="$save_LDFLAGS"
2505 LIBS="$save_LIBS"
2506 ;;
2507 esac
2508
2509 case $lt_cv_dlopen_self in
2510 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2511 *) enable_dlopen_self=unknown ;;
2512 esac
2513
2514 case $lt_cv_dlopen_self_static in
2515 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2516 *) enable_dlopen_self_static=unknown ;;
2517 esac
2518fi
2519_LT_DECL([dlopen_support], [enable_dlopen], [0],
2520 [Whether dlopen is supported])
2521_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2522 [Whether dlopen of programs is supported])
2523_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2524 [Whether dlopen of statically linked programs is supported])
2525])# LT_SYS_DLOPEN_SELF
2526
2527# Old name:
2528AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2529dnl aclocal-1.4 backwards compatibility:
2530dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2531
2532
2533# _LT_COMPILER_C_O([TAGNAME])
2534# ---------------------------
2535# Check to see if options -c and -o are simultaneously supported by compiler.
2536# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2537m4_defun([_LT_COMPILER_C_O],
2538[m4_require([_LT_DECL_SED])dnl
2539m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2540m4_require([_LT_TAG_COMPILER])dnl
2541AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2542 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2543 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2544 $RM -r conftest 2>/dev/null
2545 mkdir conftest
2546 cd conftest
2547 mkdir out
2548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2549
2550 lt_compiler_flag="-o out/conftest2.$ac_objext"
2551 # Insert the option either (1) after the last *FLAGS variable, or
2552 # (2) before a word containing "conftest.", or (3) at the end.
2553 # Note that $ac_compile itself does not contain backslashes and begins
2554 # with a dollar sign (not a hyphen), so the echo should work correctly.
2555 lt_compile=`echo "$ac_compile" | $SED \
2556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2557 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2558 -e 's:$: $lt_compiler_flag:'`
2559 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2560 (eval "$lt_compile" 2>out/conftest.err)
2561 ac_status=$?
2562 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2563 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2565 then
2566 # The compiler can only warn and ignore the option if not recognized
2567 # So say no if there are warnings
2568 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2571 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2572 fi
2573 fi
2574 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2575 $RM conftest*
2576 # SGI C++ compiler will create directory out/ii_files/ for
2577 # template instantiation
2578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2579 $RM out/* && rmdir out
2580 cd ..
2581 $RM -r conftest
2582 $RM conftest*
2583])
2584_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2585 [Does compiler simultaneously support -c and -o options?])
2586])# _LT_COMPILER_C_O
2587
2588
2589# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2590# ----------------------------------
2591# Check to see if we can do hard links to lock some files if needed
2592m4_defun([_LT_COMPILER_FILE_LOCKS],
2593[m4_require([_LT_ENABLE_LOCK])dnl
2594m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2595_LT_COMPILER_C_O([$1])
2596
2597hard_links="nottested"
2598if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2599 # do not overwrite the value of need_locks provided by the user
2600 AC_MSG_CHECKING([if we can lock with hard links])
2601 hard_links=yes
2602 $RM conftest*
2603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2604 touch conftest.a
2605 ln conftest.a conftest.b 2>&5 || hard_links=no
2606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2607 AC_MSG_RESULT([$hard_links])
2608 if test "$hard_links" = no; then
2609 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2610 need_locks=warn
2611 fi
2612else
2613 need_locks=no
2614fi
2615_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2616])# _LT_COMPILER_FILE_LOCKS
2617
2618
2619# _LT_CHECK_OBJDIR
2620# ----------------
2621m4_defun([_LT_CHECK_OBJDIR],
2622[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2623[rm -f .libs 2>/dev/null
2624mkdir .libs 2>/dev/null
2625if test -d .libs; then
2626 lt_cv_objdir=.libs
2627else
2628 # MS-DOS does not allow filenames that begin with a dot.
2629 lt_cv_objdir=_libs
2630fi
2631rmdir .libs 2>/dev/null])
2632objdir=$lt_cv_objdir
2633_LT_DECL([], [objdir], [0],
2634 [The name of the directory that contains temporary libtool files])dnl
2635m4_pattern_allow([LT_OBJDIR])dnl
2636AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2637 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2638])# _LT_CHECK_OBJDIR
2639
2640
2641# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2642# --------------------------------------
2643# Check hardcoding attributes.
2644m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2645[AC_MSG_CHECKING([how to hardcode library paths into programs])
2646_LT_TAGVAR(hardcode_action, $1)=
2647if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2648 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2649 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2650
2651 # We can hardcode non-existent directories.
2652 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2654 # have to relink, otherwise we might link with an installed library
2655 # when we should be linking with a yet-to-be-installed one
2656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2657 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2658 # Linking always hardcodes the temporary library directory.
2659 _LT_TAGVAR(hardcode_action, $1)=relink
2660 else
2661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2662 _LT_TAGVAR(hardcode_action, $1)=immediate
2663 fi
2664else
2665 # We cannot hardcode anything, or else we can only hardcode existing
2666 # directories.
2667 _LT_TAGVAR(hardcode_action, $1)=unsupported
2668fi
2669AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2670
2671if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2672 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2673 # Fast installation is not supported
2674 enable_fast_install=no
2675elif test "$shlibpath_overrides_runpath" = yes ||
2676 test "$enable_shared" = no; then
2677 # Fast installation is not necessary
2678 enable_fast_install=needless
2679fi
2680_LT_TAGDECL([], [hardcode_action], [0],
2681 [How to hardcode a shared library path into an executable])
2682])# _LT_LINKER_HARDCODE_LIBPATH
2683
2684
2685# _LT_CMD_STRIPLIB
2686# ----------------
2687m4_defun([_LT_CMD_STRIPLIB],
2688[m4_require([_LT_DECL_EGREP])
2689striplib=
2690old_striplib=
2691AC_MSG_CHECKING([whether stripping libraries is possible])
2692if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2693 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2694 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2695 AC_MSG_RESULT([yes])
2696else
2697# FIXME - insert some real tests, host_os isn't really good enough
2698 case $host_os in
2699 darwin*)
2700 if test -n "$STRIP" ; then
2701 striplib="$STRIP -x"
2702 old_striplib="$STRIP -S"
2703 AC_MSG_RESULT([yes])
2704 else
2705 AC_MSG_RESULT([no])
2706 fi
2707 ;;
2708 *)
2709 AC_MSG_RESULT([no])
2710 ;;
2711 esac
2712fi
2713_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2714_LT_DECL([], [striplib], [1])
2715])# _LT_CMD_STRIPLIB
2716
2717
2718# _LT_SYS_DYNAMIC_LINKER([TAG])
2719# -----------------------------
2720# PORTME Fill in your ld.so characteristics
2721m4_defun([_LT_SYS_DYNAMIC_LINKER],
2722[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2723m4_require([_LT_DECL_EGREP])dnl
2724m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2725m4_require([_LT_DECL_OBJDUMP])dnl
2726m4_require([_LT_DECL_SED])dnl
2727AC_MSG_CHECKING([dynamic linker characteristics])
2728m4_if([$1],
2729 [], [
2730if test "$GCC" = yes; then
2731 case $host_os in
2732 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2733 *) lt_awk_arg="/^libraries:/" ;;
2734 esac
2735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2736 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2737 # if the path contains ";" then we assume it to be the separator
2738 # otherwise default to the standard path separator (i.e. ":") - it is
2739 # assumed that no part of a normal pathname contains ";" but that should
2740 # okay in the real world where ";" in dirpaths is itself problematic.
2741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2742 else
2743 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2744 fi
2745 # Ok, now we have the path, separated by spaces, we can step through it
2746 # and add multilib dir if necessary.
2747 lt_tmp_lt_search_path_spec=
2748 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2749 for lt_sys_path in $lt_search_path_spec; do
2750 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2752 else
2753 test -d "$lt_sys_path" && \
2754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2755 fi
2756 done
2757 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2758BEGIN {RS=" "; FS="/|\n";} {
2759 lt_foo="";
2760 lt_count=0;
2761 for (lt_i = NF; lt_i > 0; lt_i--) {
2762 if ($lt_i != "" && $lt_i != ".") {
2763 if ($lt_i == "..") {
2764 lt_count++;
2765 } else {
2766 if (lt_count == 0) {
2767 lt_foo="/" $lt_i lt_foo;
2768 } else {
2769 lt_count--;
2770 }
2771 }
2772 }
2773 }
2774 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2775 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2776}'`
2777 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2778else
2779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2780fi])
2781library_names_spec=
2782libname_spec='lib$name'
2783soname_spec=
2784shrext_cmds=".so"
2785postinstall_cmds=
2786postuninstall_cmds=
2787finish_cmds=
2788finish_eval=
2789shlibpath_var=
2790shlibpath_overrides_runpath=unknown
2791version_type=none
2792dynamic_linker="$host_os ld.so"
2793sys_lib_dlsearch_path_spec="/lib /usr/lib"
2794need_lib_prefix=unknown
2795hardcode_into_libs=no
2796
2797# when you set need_version to no, make sure it does not cause -set_version
2798# flags to be left without arguments
2799need_version=unknown
2800
2801case $host_os in
2802aix3*)
2803 version_type=linux
2804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2805 shlibpath_var=LIBPATH
2806
2807 # AIX 3 has no versioning support, so we append a major version to the name.
2808 soname_spec='${libname}${release}${shared_ext}$major'
2809 ;;
2810
2811aix[[4-9]]*)
2812 version_type=linux
2813 need_lib_prefix=no
2814 need_version=no
2815 hardcode_into_libs=yes
2816 if test "$host_cpu" = ia64; then
2817 # AIX 5 supports IA64
2818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2819 shlibpath_var=LD_LIBRARY_PATH
2820 else
2821 # With GCC up to 2.95.x, collect2 would create an import file
2822 # for dependence libraries. The import file would start with
2823 # the line `#! .'. This would cause the generated library to
2824 # depend on `.', always an invalid library. This was fixed in
2825 # development snapshots of GCC prior to 3.0.
2826 case $host_os in
2827 aix4 | aix4.[[01]] | aix4.[[01]].*)
2828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2829 echo ' yes '
2830 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2831 :
2832 else
2833 can_build_shared=no
2834 fi
2835 ;;
2836 esac
2837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2838 # soname into executable. Probably we can add versioning support to
2839 # collect2, so additional links can be useful in future.
2840 if test "$aix_use_runtimelinking" = yes; then
2841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2842 # instead of lib<name>.a to let people know that these are not
2843 # typical AIX shared libraries.
2844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2845 else
2846 # We preserve .a as extension for shared libraries through AIX4.2
2847 # and later when we are not doing run time linking.
2848 library_names_spec='${libname}${release}.a $libname.a'
2849 soname_spec='${libname}${release}${shared_ext}$major'
2850 fi
2851 shlibpath_var=LIBPATH
2852 fi
2853 ;;
2854
2855amigaos*)
2856 case $host_cpu in
2857 powerpc)
2858 # Since July 2007 AmigaOS4 officially supports .so libraries.
2859 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2861 ;;
2862 m68k)
2863 library_names_spec='$libname.ixlibrary $libname.a'
2864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2865 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'
2866 ;;
2867 esac
2868 ;;
2869
2870beos*)
2871 library_names_spec='${libname}${shared_ext}'
2872 dynamic_linker="$host_os ld.so"
2873 shlibpath_var=LIBRARY_PATH
2874 ;;
2875
2876bsdi[[45]]*)
2877 version_type=linux
2878 need_version=no
2879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2880 soname_spec='${libname}${release}${shared_ext}$major'
2881 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2882 shlibpath_var=LD_LIBRARY_PATH
2883 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2884 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2885 # the default ld.so.conf also contains /usr/contrib/lib and
2886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2887 # libtool to hard-code these into programs
2888 ;;
2889
2890cygwin* | mingw* | pw32* | cegcc*)
2891 version_type=windows
2892 shrext_cmds=".dll"
2893 need_version=no
2894 need_lib_prefix=no
2895
2896 case $GCC,$host_os in
2897 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2898 library_names_spec='$libname.dll.a'
2899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2900 postinstall_cmds='base_file=`basename \${file}`~
2901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2902 dldir=$destdir/`dirname \$dlpath`~
2903 test -d \$dldir || mkdir -p \$dldir~
2904 $install_prog $dir/$dlname \$dldir/$dlname~
2905 chmod a+x \$dldir/$dlname~
2906 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2907 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2908 fi'
2909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2910 dlpath=$dir/\$dldll~
2911 $RM \$dlpath'
2912 shlibpath_overrides_runpath=yes
2913
2914 case $host_os in
2915 cygwin*)
2916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2918 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2919 ;;
2920 mingw* | cegcc*)
2921 # MinGW DLLs use traditional 'lib' prefix
2922 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2923 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2924 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2925 # It is most probably a Windows format PATH printed by
2926 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2927 # path with ; separators, and with drive letters. We can handle the
2928 # drive letters (cygwin fileutils understands them), so leave them,
2929 # especially as we might pass files found there to a mingw objdump,
2930 # which wouldn't understand a cygwinified path. Ahh.
2931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2932 else
2933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2934 fi
2935 ;;
2936 pw32*)
2937 # pw32 DLLs use 'pw' prefix rather than 'lib'
2938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2939 ;;
2940 esac
2941 ;;
2942
2943 *)
2944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2945 ;;
2946 esac
2947 dynamic_linker='Win32 ld.exe'
2948 # FIXME: first we should search . and the directory the executable is in
2949 shlibpath_var=PATH
2950 ;;
2951
2952darwin* | rhapsody*)
2953 dynamic_linker="$host_os dyld"
2954 version_type=darwin
2955 need_lib_prefix=no
2956 need_version=no
2957 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2958 soname_spec='${libname}${release}${major}$shared_ext'
2959 shlibpath_overrides_runpath=yes
2960 shlibpath_var=DYLD_LIBRARY_PATH
2961 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2962m4_if([$1], [],[
2963 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2965 ;;
2966
2967dgux*)
2968 version_type=linux
2969 need_lib_prefix=no
2970 need_version=no
2971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2972 soname_spec='${libname}${release}${shared_ext}$major'
2973 shlibpath_var=LD_LIBRARY_PATH
2974 ;;
2975
2976freebsd1*)
2977 dynamic_linker=no
2978 ;;
2979
2980freebsd* | dragonfly*)
2981 # DragonFly does not have aout. When/if they implement a new
2982 # versioning mechanism, adjust this.
2983 if test -x /usr/bin/objformat; then
2984 objformat=`/usr/bin/objformat`
2985 else
2986 case $host_os in
2987 freebsd[[123]]*) objformat=aout ;;
2988 *) objformat=elf ;;
2989 esac
2990 fi
2991 version_type=freebsd-$objformat
2992 case $version_type in
2993 freebsd-elf*)
2994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2995 need_version=no
2996 need_lib_prefix=no
2997 ;;
2998 freebsd-*)
2999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3000 need_version=yes
3001 ;;
3002 esac
3003 shlibpath_var=LD_LIBRARY_PATH
3004 case $host_os in
3005 freebsd2*)
3006 shlibpath_overrides_runpath=yes
3007 ;;
3008 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3009 shlibpath_overrides_runpath=yes
3010 hardcode_into_libs=yes
3011 ;;
3012 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3013 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3014 shlibpath_overrides_runpath=no
3015 hardcode_into_libs=yes
3016 ;;
3017 *) # from 4.6 on, and DragonFly
3018 shlibpath_overrides_runpath=yes
3019 hardcode_into_libs=yes
3020 ;;
3021 esac
3022 ;;
3023
3024gnu*)
3025 version_type=linux
3026 need_lib_prefix=no
3027 need_version=no
3028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3029 soname_spec='${libname}${release}${shared_ext}$major'
3030 shlibpath_var=LD_LIBRARY_PATH
3031 hardcode_into_libs=yes
3032 ;;
3033
3034hpux9* | hpux10* | hpux11*)
3035 # Give a soname corresponding to the major version so that dld.sl refuses to
3036 # link against other versions.
3037 version_type=sunos
3038 need_lib_prefix=no
3039 need_version=no
3040 case $host_cpu in
3041 ia64*)
3042 shrext_cmds='.so'
3043 hardcode_into_libs=yes
3044 dynamic_linker="$host_os dld.so"
3045 shlibpath_var=LD_LIBRARY_PATH
3046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3048 soname_spec='${libname}${release}${shared_ext}$major'
3049 if test "X$HPUX_IA64_MODE" = X32; then
3050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3051 else
3052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3053 fi
3054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3055 ;;
3056 hppa*64*)
3057 shrext_cmds='.sl'
3058 hardcode_into_libs=yes
3059 dynamic_linker="$host_os dld.sl"
3060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3063 soname_spec='${libname}${release}${shared_ext}$major'
3064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3066 ;;
3067 *)
3068 shrext_cmds='.sl'
3069 dynamic_linker="$host_os dld.sl"
3070 shlibpath_var=SHLIB_PATH
3071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3073 soname_spec='${libname}${release}${shared_ext}$major'
3074 ;;
3075 esac
3076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3077 postinstall_cmds='chmod 555 $lib'
3078 ;;
3079
3080interix[[3-9]]*)
3081 version_type=linux
3082 need_lib_prefix=no
3083 need_version=no
3084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3085 soname_spec='${libname}${release}${shared_ext}$major'
3086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3087 shlibpath_var=LD_LIBRARY_PATH
3088 shlibpath_overrides_runpath=no
3089 hardcode_into_libs=yes
3090 ;;
3091
3092irix5* | irix6* | nonstopux*)
3093 case $host_os in
3094 nonstopux*) version_type=nonstopux ;;
3095 *)
3096 if test "$lt_cv_prog_gnu_ld" = yes; then
3097 version_type=linux
3098 else
3099 version_type=irix
3100 fi ;;
3101 esac
3102 need_lib_prefix=no
3103 need_version=no
3104 soname_spec='${libname}${release}${shared_ext}$major'
3105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3106 case $host_os in
3107 irix5* | nonstopux*)
3108 libsuff= shlibsuff=
3109 ;;
3110 *)
3111 case $LD in # libtool.m4 will add one of these switches to LD
3112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3113 libsuff= shlibsuff= libmagic=32-bit;;
3114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3115 libsuff=32 shlibsuff=N32 libmagic=N32;;
3116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3118 *) libsuff= shlibsuff= libmagic=never-match;;
3119 esac
3120 ;;
3121 esac
3122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3123 shlibpath_overrides_runpath=no
3124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3126 hardcode_into_libs=yes
3127 ;;
3128
3129# No shared lib support for Linux oldld, aout, or coff.
3130linux*oldld* | linux*aout* | linux*coff*)
3131 dynamic_linker=no
3132 ;;
3133
3134# This must be Linux ELF.
3135linux* | k*bsd*-gnu | kopensolaris*-gnu)
3136 version_type=linux
3137 need_lib_prefix=no
3138 need_version=no
3139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3140 soname_spec='${libname}${release}${shared_ext}$major'
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches