Browse Source

Initial import of renamed Unico engine, ready for hacking!

tags/r14.0.0
Timothy Pearson 6 years ago
commit
143c156ed8

+ 3
- 0
AUTHORS View File

@@ -0,0 +1,3 @@
1
+TDE integration by Timothy Pearson <kb9vqf@pearsoncomputing.net>
2
+
3
+Portions of this engine are based on Unico by Andrea Cimitan <andrea.cimitan@canonical.com>

+ 510
- 0
COPYING View File

@@ -0,0 +1,510 @@
1
+
2
+                  GNU LESSER GENERAL PUBLIC LICENSE
3
+                       Version 2.1, February 1999
4
+
5
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
6
+	51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
7
+ Everyone is permitted to copy and distribute verbatim copies
8
+ of this license document, but changing it is not allowed.
9
+
10
+[This is the first released version of the Lesser GPL.  It also counts
11
+ as the successor of the GNU Library Public License, version 2, hence
12
+ the version number 2.1.]
13
+
14
+                            Preamble
15
+
16
+  The licenses for most software are designed to take away your
17
+freedom to share and change it.  By contrast, the GNU General Public
18
+Licenses are intended to guarantee your freedom to share and change
19
+free software--to make sure the software is free for all its users.
20
+
21
+  This license, the Lesser General Public License, applies to some
22
+specially designated software packages--typically libraries--of the
23
+Free Software Foundation and other authors who decide to use it.  You
24
+can use it too, but we suggest you first think carefully about whether
25
+this license or the ordinary General Public License is the better
26
+strategy to use in any particular case, based on the explanations
27
+below.
28
+
29
+  When we speak of free software, we are referring to freedom of use,
30
+not price.  Our General Public Licenses are designed to make sure that
31
+you have the freedom to distribute copies of free software (and charge
32
+for this service if you wish); that you receive source code or can get
33
+it if you want it; that you can change the software and use pieces of
34
+it in new free programs; and that you are informed that you can do
35
+these things.
36
+
37
+  To protect your rights, we need to make restrictions that forbid
38
+distributors to deny you these rights or to ask you to surrender these
39
+rights.  These restrictions translate to certain responsibilities for
40
+you if you distribute copies of the library or if you modify it.
41
+
42
+  For example, if you distribute copies of the library, whether gratis
43
+or for a fee, you must give the recipients all the rights that we gave
44
+you.  You must make sure that they, too, receive or can get the source
45
+code.  If you link other code with the library, you must provide
46
+complete object files to the recipients, so that they can relink them
47
+with the library after making changes to the library and recompiling
48
+it.  And you must show them these terms so they know their rights.
49
+
50
+  We protect your rights with a two-step method: (1) we copyright the
51
+library, and (2) we offer you this license, which gives you legal
52
+permission to copy, distribute and/or modify the library.
53
+
54
+  To protect each distributor, we want to make it very clear that
55
+there is no warranty for the free library.  Also, if the library is
56
+modified by someone else and passed on, the recipients should know
57
+that what they have is not the original version, so that the original
58
+author's reputation will not be affected by problems that might be
59
+introduced by others.
60
+
61
+  Finally, software patents pose a constant threat to the existence of
62
+any free program.  We wish to make sure that a company cannot
63
+effectively restrict the users of a free program by obtaining a
64
+restrictive license from a patent holder.  Therefore, we insist that
65
+any patent license obtained for a version of the library must be
66
+consistent with the full freedom of use specified in this license.
67
+
68
+  Most GNU software, including some libraries, is covered by the
69
+ordinary GNU General Public License.  This license, the GNU Lesser
70
+General Public License, applies to certain designated libraries, and
71
+is quite different from the ordinary General Public License.  We use
72
+this license for certain libraries in order to permit linking those
73
+libraries into non-free programs.
74
+
75
+  When a program is linked with a library, whether statically or using
76
+a shared library, the combination of the two is legally speaking a
77
+combined work, a derivative of the original library.  The ordinary
78
+General Public License therefore permits such linking only if the
79
+entire combination fits its criteria of freedom.  The Lesser General
80
+Public License permits more lax criteria for linking other code with
81
+the library.
82
+
83
+  We call this license the "Lesser" General Public License because it
84
+does Less to protect the user's freedom than the ordinary General
85
+Public License.  It also provides other free software developers Less
86
+of an advantage over competing non-free programs.  These disadvantages
87
+are the reason we use the ordinary General Public License for many
88
+libraries.  However, the Lesser license provides advantages in certain
89
+special circumstances.
90
+
91
+  For example, on rare occasions, there may be a special need to
92
+encourage the widest possible use of a certain library, so that it
93
+becomes a de-facto standard.  To achieve this, non-free programs must
94
+be allowed to use the library.  A more frequent case is that a free
95
+library does the same job as widely used non-free libraries.  In this
96
+case, there is little to gain by limiting the free library to free
97
+software only, so we use the Lesser General Public License.
98
+
99
+  In other cases, permission to use a particular library in non-free
100
+programs enables a greater number of people to use a large body of
101
+free software.  For example, permission to use the GNU C Library in
102
+non-free programs enables many more people to use the whole GNU
103
+operating system, as well as its variant, the GNU/Linux operating
104
+system.
105
+
106
+  Although the Lesser General Public License is Less protective of the
107
+users' freedom, it does ensure that the user of a program that is
108
+linked with the Library has the freedom and the wherewithal to run
109
+that program using a modified version of the Library.
110
+
111
+  The precise terms and conditions for copying, distribution and
112
+modification follow.  Pay close attention to the difference between a
113
+"work based on the library" and a "work that uses the library".  The
114
+former contains code derived from the library, whereas the latter must
115
+be combined with the library in order to run.
116
+
117
+                  GNU LESSER GENERAL PUBLIC LICENSE
118
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
119
+
120
+  0. This License Agreement applies to any software library or other
121
+program which contains a notice placed by the copyright holder or
122
+other authorized party saying it may be distributed under the terms of
123
+this Lesser General Public License (also called "this License").
124
+Each licensee is addressed as "you".
125
+
126
+  A "library" means a collection of software functions and/or data
127
+prepared so as to be conveniently linked with application programs
128
+(which use some of those functions and data) to form executables.
129
+
130
+  The "Library", below, refers to any such software library or work
131
+which has been distributed under these terms.  A "work based on the
132
+Library" means either the Library or any derivative work under
133
+copyright law: that is to say, a work containing the Library or a
134
+portion of it, either verbatim or with modifications and/or translated
135
+straightforwardly into another language.  (Hereinafter, translation is
136
+included without limitation in the term "modification".)
137
+
138
+  "Source code" for a work means the preferred form of the work for
139
+making modifications to it.  For a library, complete source code means
140
+all the source code for all modules it contains, plus any associated
141
+interface definition files, plus the scripts used to control
142
+compilation and installation of the library.
143
+
144
+  Activities other than copying, distribution and modification are not
145
+covered by this License; they are outside its scope.  The act of
146
+running a program using the Library is not restricted, and output from
147
+such a program is covered only if its contents constitute a work based
148
+on the Library (independent of the use of the Library in a tool for
149
+writing it).  Whether that is true depends on what the Library does
150
+and what the program that uses the Library does.
151
+
152
+  1. You may copy and distribute verbatim copies of the Library's
153
+complete source code as you receive it, in any medium, provided that
154
+you conspicuously and appropriately publish on each copy an
155
+appropriate copyright notice and disclaimer of warranty; keep intact
156
+all the notices that refer to this License and to the absence of any
157
+warranty; and distribute a copy of this License along with the
158
+Library.
159
+
160
+  You may charge a fee for the physical act of transferring a copy,
161
+and you may at your option offer warranty protection in exchange for a
162
+fee.
163
+
164
+  2. You may modify your copy or copies of the Library or any portion
165
+of it, thus forming a work based on the Library, and copy and
166
+distribute such modifications or work under the terms of Section 1
167
+above, provided that you also meet all of these conditions:
168
+
169
+    a) The modified work must itself be a software library.
170
+
171
+    b) You must cause the files modified to carry prominent notices
172
+    stating that you changed the files and the date of any change.
173
+
174
+    c) You must cause the whole of the work to be licensed at no
175
+    charge to all third parties under the terms of this License.
176
+
177
+    d) If a facility in the modified Library refers to a function or a
178
+    table of data to be supplied by an application program that uses
179
+    the facility, other than as an argument passed when the facility
180
+    is invoked, then you must make a good faith effort to ensure that,
181
+    in the event an application does not supply such function or
182
+    table, the facility still operates, and performs whatever part of
183
+    its purpose remains meaningful.
184
+
185
+    (For example, a function in a library to compute square roots has
186
+    a purpose that is entirely well-defined independent of the
187
+    application.  Therefore, Subsection 2d requires that any
188
+    application-supplied function or table used by this function must
189
+    be optional: if the application does not supply it, the square
190
+    root function must still compute square roots.)
191
+
192
+These requirements apply to the modified work as a whole.  If
193
+identifiable sections of that work are not derived from the Library,
194
+and can be reasonably considered independent and separate works in
195
+themselves, then this License, and its terms, do not apply to those
196
+sections when you distribute them as separate works.  But when you
197
+distribute the same sections as part of a whole which is a work based
198
+on the Library, the distribution of the whole must be on the terms of
199
+this License, whose permissions for other licensees extend to the
200
+entire whole, and thus to each and every part regardless of who wrote
201
+it.
202
+
203
+Thus, it is not the intent of this section to claim rights or contest
204
+your rights to work written entirely by you; rather, the intent is to
205
+exercise the right to control the distribution of derivative or
206
+collective works based on the Library.
207
+
208
+In addition, mere aggregation of another work not based on the Library
209
+with the Library (or with a work based on the Library) on a volume of
210
+a storage or distribution medium does not bring the other work under
211
+the scope of this License.
212
+
213
+  3. You may opt to apply the terms of the ordinary GNU General Public
214
+License instead of this License to a given copy of the Library.  To do
215
+this, you must alter all the notices that refer to this License, so
216
+that they refer to the ordinary GNU General Public License, version 2,
217
+instead of to this License.  (If a newer version than version 2 of the
218
+ordinary GNU General Public License has appeared, then you can specify
219
+that version instead if you wish.)  Do not make any other change in
220
+these notices.
221
+
222
+  Once this change is made in a given copy, it is irreversible for
223
+that copy, so the ordinary GNU General Public License applies to all
224
+subsequent copies and derivative works made from that copy.
225
+
226
+  This option is useful when you wish to copy part of the code of
227
+the Library into a program that is not a library.
228
+
229
+  4. You may copy and distribute the Library (or a portion or
230
+derivative of it, under Section 2) in object code or executable form
231
+under the terms of Sections 1 and 2 above provided that you accompany
232
+it with the complete corresponding machine-readable source code, which
233
+must be distributed under the terms of Sections 1 and 2 above on a
234
+medium customarily used for software interchange.
235
+
236
+  If distribution of object code is made by offering access to copy
237
+from a designated place, then offering equivalent access to copy the
238
+source code from the same place satisfies the requirement to
239
+distribute the source code, even though third parties are not
240
+compelled to copy the source along with the object code.
241
+
242
+  5. A program that contains no derivative of any portion of the
243
+Library, but is designed to work with the Library by being compiled or
244
+linked with it, is called a "work that uses the Library".  Such a
245
+work, in isolation, is not a derivative work of the Library, and
246
+therefore falls outside the scope of this License.
247
+
248
+  However, linking a "work that uses the Library" with the Library
249
+creates an executable that is a derivative of the Library (because it
250
+contains portions of the Library), rather than a "work that uses the
251
+library".  The executable is therefore covered by this License.
252
+Section 6 states terms for distribution of such executables.
253
+
254
+  When a "work that uses the Library" uses material from a header file
255
+that is part of the Library, the object code for the work may be a
256
+derivative work of the Library even though the source code is not.
257
+Whether this is true is especially significant if the work can be
258
+linked without the Library, or if the work is itself a library.  The
259
+threshold for this to be true is not precisely defined by law.
260
+
261
+  If such an object file uses only numerical parameters, data
262
+structure layouts and accessors, and small macros and small inline
263
+functions (ten lines or less in length), then the use of the object
264
+file is unrestricted, regardless of whether it is legally a derivative
265
+work.  (Executables containing this object code plus portions of the
266
+Library will still fall under Section 6.)
267
+
268
+  Otherwise, if the work is a derivative of the Library, you may
269
+distribute the object code for the work under the terms of Section 6.
270
+Any executables containing that work also fall under Section 6,
271
+whether or not they are linked directly with the Library itself.
272
+
273
+  6. As an exception to the Sections above, you may also combine or
274
+link a "work that uses the Library" with the Library to produce a
275
+work containing portions of the Library, and distribute that work
276
+under terms of your choice, provided that the terms permit
277
+modification of the work for the customer's own use and reverse
278
+engineering for debugging such modifications.
279
+
280
+  You must give prominent notice with each copy of the work that the
281
+Library is used in it and that the Library and its use are covered by
282
+this License.  You must supply a copy of this License.  If the work
283
+during execution displays copyright notices, you must include the
284
+copyright notice for the Library among them, as well as a reference
285
+directing the user to the copy of this License.  Also, you must do one
286
+of these things:
287
+
288
+    a) Accompany the work with the complete corresponding
289
+    machine-readable source code for the Library including whatever
290
+    changes were used in the work (which must be distributed under
291
+    Sections 1 and 2 above); and, if the work is an executable linked
292
+    with the Library, with the complete machine-readable "work that
293
+    uses the Library", as object code and/or source code, so that the
294
+    user can modify the Library and then relink to produce a modified
295
+    executable containing the modified Library.  (It is understood
296
+    that the user who changes the contents of definitions files in the
297
+    Library will not necessarily be able to recompile the application
298
+    to use the modified definitions.)
299
+
300
+    b) Use a suitable shared library mechanism for linking with the
301
+    Library.  A suitable mechanism is one that (1) uses at run time a
302
+    copy of the library already present on the user's computer system,
303
+    rather than copying library functions into the executable, and (2)
304
+    will operate properly with a modified version of the library, if
305
+    the user installs one, as long as the modified version is
306
+    interface-compatible with the version that the work was made with.
307
+
308
+    c) Accompany the work with a written offer, valid for at least
309
+    three years, to give the same user the materials specified in
310
+    Subsection 6a, above, for a charge no more than the cost of
311
+    performing this distribution.
312
+
313
+    d) If distribution of the work is made by offering access to copy
314
+    from a designated place, offer equivalent access to copy the above
315
+    specified materials from the same place.
316
+
317
+    e) Verify that the user has already received a copy of these
318
+    materials or that you have already sent this user a copy.
319
+
320
+  For an executable, the required form of the "work that uses the
321
+Library" must include any data and utility programs needed for
322
+reproducing the executable from it.  However, as a special exception,
323
+the materials to be distributed need not include anything that is
324
+normally distributed (in either source or binary form) with the major
325
+components (compiler, kernel, and so on) of the operating system on
326
+which the executable runs, unless that component itself accompanies
327
+the executable.
328
+
329
+  It may happen that this requirement contradicts the license
330
+restrictions of other proprietary libraries that do not normally
331
+accompany the operating system.  Such a contradiction means you cannot
332
+use both them and the Library together in an executable that you
333
+distribute.
334
+
335
+  7. You may place library facilities that are a work based on the
336
+Library side-by-side in a single library together with other library
337
+facilities not covered by this License, and distribute such a combined
338
+library, provided that the separate distribution of the work based on
339
+the Library and of the other library facilities is otherwise
340
+permitted, and provided that you do these two things:
341
+
342
+    a) Accompany the combined library with a copy of the same work
343
+    based on the Library, uncombined with any other library
344
+    facilities.  This must be distributed under the terms of the
345
+    Sections above.
346
+
347
+    b) Give prominent notice with the combined library of the fact
348
+    that part of it is a work based on the Library, and explaining
349
+    where to find the accompanying uncombined form of the same work.
350
+
351
+  8. You may not copy, modify, sublicense, link with, or distribute
352
+the Library except as expressly provided under this License.  Any
353
+attempt otherwise to copy, modify, sublicense, link with, or
354
+distribute the Library is void, and will automatically terminate your
355
+rights under this License.  However, parties who have received copies,
356
+or rights, from you under this License will not have their licenses
357
+terminated so long as such parties remain in full compliance.
358
+
359
+  9. You are not required to accept this License, since you have not
360
+signed it.  However, nothing else grants you permission to modify or
361
+distribute the Library or its derivative works.  These actions are
362
+prohibited by law if you do not accept this License.  Therefore, by
363
+modifying or distributing the Library (or any work based on the
364
+Library), you indicate your acceptance of this License to do so, and
365
+all its terms and conditions for copying, distributing or modifying
366
+the Library or works based on it.
367
+
368
+  10. Each time you redistribute the Library (or any work based on the
369
+Library), the recipient automatically receives a license from the
370
+original licensor to copy, distribute, link with or modify the Library
371
+subject to these terms and conditions.  You may not impose any further
372
+restrictions on the recipients' exercise of the rights granted herein.
373
+You are not responsible for enforcing compliance by third parties with
374
+this License.
375
+
376
+  11. If, as a consequence of a court judgment or allegation of patent
377
+infringement or for any other reason (not limited to patent issues),
378
+conditions are imposed on you (whether by court order, agreement or
379
+otherwise) that contradict the conditions of this License, they do not
380
+excuse you from the conditions of this License.  If you cannot
381
+distribute so as to satisfy simultaneously your obligations under this
382
+License and any other pertinent obligations, then as a consequence you
383
+may not distribute the Library at all.  For example, if a patent
384
+license would not permit royalty-free redistribution of the Library by
385
+all those who receive copies directly or indirectly through you, then
386
+the only way you could satisfy both it and this License would be to
387
+refrain entirely from distribution of the Library.
388
+
389
+If any portion of this section is held invalid or unenforceable under
390
+any particular circumstance, the balance of the section is intended to
391
+apply, and the section as a whole is intended to apply in other
392
+circumstances.
393
+
394
+It is not the purpose of this section to induce you to infringe any
395
+patents or other property right claims or to contest validity of any
396
+such claims; this section has the sole purpose of protecting the
397
+integrity of the free software distribution system which is
398
+implemented by public license practices.  Many people have made
399
+generous contributions to the wide range of software distributed
400
+through that system in reliance on consistent application of that
401
+system; it is up to the author/donor to decide if he or she is willing
402
+to distribute software through any other system and a licensee cannot
403
+impose that choice.
404
+
405
+This section is intended to make thoroughly clear what is believed to
406
+be a consequence of the rest of this License.
407
+
408
+  12. If the distribution and/or use of the Library is restricted in
409
+certain countries either by patents or by copyrighted interfaces, the
410
+original copyright holder who places the Library under this License
411
+may add an explicit geographical distribution limitation excluding those
412
+countries, so that distribution is permitted only in or among
413
+countries not thus excluded.  In such case, this License incorporates
414
+the limitation as if written in the body of this License.
415
+
416
+  13. The Free Software Foundation may publish revised and/or new
417
+versions of the Lesser General Public License from time to time.
418
+Such new versions will be similar in spirit to the present version,
419
+but may differ in detail to address new problems or concerns.
420
+
421
+Each version is given a distinguishing version number.  If the Library
422
+specifies a version number of this License which applies to it and
423
+"any later version", you have the option of following the terms and
424
+conditions either of that version or of any later version published by
425
+the Free Software Foundation.  If the Library does not specify a
426
+license version number, you may choose any version ever published by
427
+the Free Software Foundation.
428
+
429
+  14. If you wish to incorporate parts of the Library into other free
430
+programs whose distribution conditions are incompatible with these,
431
+write to the author to ask for permission.  For software which is
432
+copyrighted by the Free Software Foundation, write to the Free
433
+Software Foundation; we sometimes make exceptions for this.  Our
434
+decision will be guided by the two goals of preserving the free status
435
+of all derivatives of our free software and of promoting the sharing
436
+and reuse of software generally.
437
+
438
+                            NO WARRANTY
439
+
440
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
441
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
442
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
443
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
444
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
445
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
446
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
447
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
448
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
449
+
450
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
451
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
452
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
453
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
454
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
455
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
456
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
457
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
458
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
459
+DAMAGES.
460
+
461
+                     END OF TERMS AND CONDITIONS
462
+
463
+           How to Apply These Terms to Your New Libraries
464
+
465
+  If you develop a new library, and you want it to be of the greatest
466
+possible use to the public, we recommend making it free software that
467
+everyone can redistribute and change.  You can do so by permitting
468
+redistribution under these terms (or, alternatively, under the terms
469
+of the ordinary General Public License).
470
+
471
+  To apply these terms, attach the following notices to the library.
472
+It is safest to attach them to the start of each source file to most
473
+effectively convey the exclusion of warranty; and each file should
474
+have at least the "copyright" line and a pointer to where the full
475
+notice is found.
476
+
477
+
478
+    <one line to give the library's name and a brief idea of what it does.>
479
+    Copyright (C) <year>  <name of author>
480
+
481
+    This library is free software; you can redistribute it and/or
482
+    modify it under the terms of the GNU Lesser General Public
483
+    License as published by the Free Software Foundation; either
484
+    version 2.1 of the License, or (at your option) any later version.
485
+
486
+    This library is distributed in the hope that it will be useful,
487
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
488
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
489
+    Lesser General Public License for more details.
490
+
491
+    You should have received a copy of the GNU Lesser General Public
492
+    License along with this library; if not, write to the Free Software
493
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
494
+
495
+Also add information on how to contact you by electronic and paper mail.
496
+
497
+You should also get your employer (if you work as a programmer) or
498
+your school, if any, to sign a "copyright disclaimer" for the library,
499
+if necessary.  Here is a sample; alter the names:
500
+
501
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
502
+  library `Frob' (a library for tweaking knobs) written by James
503
+  Random Hacker.
504
+
505
+  <signature of Ty Coon>, 1 April 1990
506
+  Ty Coon, President of Vice
507
+
508
+That's all there is to it!
509
+
510
+

+ 0
- 0
ChangeLog View File


+ 365
- 0
INSTALL View File

@@ -0,0 +1,365 @@
1
+Installation Instructions
2
+*************************
3
+
4
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
5
+2006, 2007, 2008, 2009 Free Software Foundation, Inc.
6
+
7
+   Copying and distribution of this file, with or without modification,
8
+are permitted in any medium without royalty provided the copyright
9
+notice and this notice are preserved.  This file is offered as-is,
10
+without warranty of any kind.
11
+
12
+Basic Installation
13
+==================
14
+
15
+   Briefly, the shell commands `./configure; make; make install' should
16
+configure, build, and install this package.  The following
17
+more-detailed instructions are generic; see the `README' file for
18
+instructions specific to this package.  Some packages provide this
19
+`INSTALL' file but do not implement all of the features documented
20
+below.  The lack of an optional feature in a given package is not
21
+necessarily a bug.  More recommendations for GNU packages can be found
22
+in *note Makefile Conventions: (standards)Makefile Conventions.
23
+
24
+   The `configure' shell script attempts to guess correct values for
25
+various system-dependent variables used during compilation.  It uses
26
+those values to create a `Makefile' in each directory of the package.
27
+It may also create one or more `.h' files containing system-dependent
28
+definitions.  Finally, it creates a shell script `config.status' that
29
+you can run in the future to recreate the current configuration, and a
30
+file `config.log' containing compiler output (useful mainly for
31
+debugging `configure').
32
+
33
+   It can also use an optional file (typically called `config.cache'
34
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
35
+the results of its tests to speed up reconfiguring.  Caching is
36
+disabled by default to prevent problems with accidental use of stale
37
+cache files.
38
+
39
+   If you need to do unusual things to compile the package, please try
40
+to figure out how `configure' could check whether to do them, and mail
41
+diffs or instructions to the address given in the `README' so they can
42
+be considered for the next release.  If you are using the cache, and at
43
+some point `config.cache' contains results you don't want to keep, you
44
+may 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
48
+you want to change it or regenerate `configure' using a newer version
49
+of `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
+
96
+Compilers and Options
97
+=====================
98
+
99
+   Some systems require unusual options for compilation or linking that
100
+the `configure' script does not know about.  Run `./configure --help'
101
+for details on some of the pertinent environment variables.
102
+
103
+   You can give `configure' initial values for configuration parameters
104
+by setting variables in the command line or in the environment.  Here
105
+is an example:
106
+
107
+     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
108
+
109
+   *Note Defining Variables::, for more details.
110
+
111
+Compiling For Multiple Architectures
112
+====================================
113
+
114
+   You can compile the package for more than one kind of computer at the
115
+same time, by placing the object files for each architecture in their
116
+own directory.  To do this, you can use GNU `make'.  `cd' to the
117
+directory where you want the object files and executables to go and run
118
+the `configure' script.  `configure' automatically checks for the
119
+source code in the directory that `configure' is in and in `..'.  This
120
+is known as a "VPATH" build.
121
+
122
+   With a non-GNU `make', it is safer to compile the package for one
123
+architecture at a time in the source code directory.  After you have
124
+installed the package for one architecture, use `make distclean' before
125
+reconfiguring for another architecture.
126
+
127
+   On MacOS X 10.5 and later systems, you can create libraries and
128
+executables that work on multiple system types--known as "fat" or
129
+"universal" binaries--by specifying multiple `-arch' options to the
130
+compiler but only a single `-arch' option to the preprocessor.  Like
131
+this:
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
138
+may have to build one architecture at a time and combine the results
139
+using the `lipo' tool if you have problems.
140
+
141
+Installation 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
146
+can specify an installation prefix other than `/usr/local' by giving
147
+`configure' the option `--prefix=PREFIX', where PREFIX must be an
148
+absolute file name.
149
+
150
+   You can specify separate installation prefixes for
151
+architecture-specific files and architecture-independent files.  If you
152
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
153
+PREFIX as the prefix for installing programs and libraries.
154
+Documentation and other data files still use the regular prefix.
155
+
156
+   In addition, if you use an unusual directory layout you can give
157
+options like `--bindir=DIR' to specify different values for particular
158
+kinds of files.  Run `configure --help' for a list of the directories
159
+you can set and what kinds of files go in them.  In general, the
160
+default for these options is expressed in terms of `${prefix}', so that
161
+specifying just `--prefix' will affect all of the other directory
162
+specifications that were not explicitly provided.
163
+
164
+   The most portable way to affect installation locations is to pass the
165
+correct locations to `configure'; however, many packages provide one or
166
+both of the following shortcuts of passing variable assignments to the
167
+`make install' command line to change installation locations without
168
+having to reconfigure or recompile.
169
+
170
+   The first method involves providing an override variable for each
171
+affected directory.  For example, `make install
172
+prefix=/alternate/directory' will choose an alternate location for all
173
+directory configuration variables that were expressed in terms of
174
+`${prefix}'.  Any directories that were specified during `configure',
175
+but not in terms of `${prefix}', must each be overridden at install
176
+time for the entire installation to be relocated.  The approach of
177
+makefile variable overrides for each directory variable is required by
178
+the GNU Coding Standards, and ideally causes no recompilation.
179
+However, some platforms have known limitations with the semantics of
180
+shared libraries that end up requiring recompilation when using this
181
+method, particularly noticeable in packages that use GNU Libtool.
182
+
183
+   The second method involves providing the `DESTDIR' variable.  For
184
+example, `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
187
+does not work on platforms that have drive letters.  On the other hand,
188
+it does better at avoiding recompilation issues, and works well even
189
+when some directory options were not specified in terms of `${prefix}'
190
+at `configure' time.
191
+
192
+Optional Features
193
+=================
194
+
195
+   If the package supports it, you can cause programs to be installed
196
+with an extra prefix or suffix on their names by giving `configure' the
197
+option `--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.
201
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
202
+is something like `gnu-as' or `x' (for the X Window System).  The
203
+`README' should mention any `--enable-' and `--with-' options that the
204
+package recognizes.
205
+
206
+   For packages that use the X Window System, `configure' can usually
207
+find the X include and library files automatically, but if it doesn't,
208
+you 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
212
+execution of `make' will be.  For these packages, running `./configure
213
+--enable-silent-rules' sets the default to minimal output, which can be
214
+overridden with `make V=1'; while running `./configure
215
+--disable-silent-rules' sets the default to verbose, which can be
216
+overridden with `make V=0'.
217
+
218
+Particular systems
219
+==================
220
+
221
+   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
222
+CC is not installed, it is recommended to use the following options in
223
+order to use an ANSI C compiler:
224
+
225
+     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
226
+
227
+and 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
230
+parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
231
+a workaround.  If GNU CC is not installed, it is therefore recommended
232
+to try
233
+
234
+     ./configure CC="cc"
235
+
236
+and 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
241
+directory contains several dysfunctional programs; working variants of
242
+these programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
243
+in your `PATH', put it _after_ `/usr/bin'.
244
+
245
+   On Haiku, software installed for all users goes in `/boot/common',
246
+not `/usr/local'.  It is recommended to use the following options:
247
+
248
+     ./configure --prefix=/boot/common
249
+
250
+Specifying the System Type
251
+==========================
252
+
253
+   There may be some features `configure' cannot figure out
254
+automatically, but needs to determine by the type of machine the package
255
+will 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
257
+a 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
259
+type, such as `sun4', or a canonical name which has the form:
260
+
261
+     CPU-COMPANY-SYSTEM
262
+
263
+where 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
270
+need to know the machine type.
271
+
272
+   If you are _building_ compiler tools for cross-compiling, you should
273
+use the option `--target=TYPE' to select the type of system they will
274
+produce code for.
275
+
276
+   If you want to _use_ a cross compiler, that generates code for a
277
+platform different from the build platform, you should specify the
278
+"host" platform (i.e., that on which the generated programs will
279
+eventually be run) with `--host=TYPE'.
280
+
281
+Sharing Defaults
282
+================
283
+
284
+   If you want to set default values for `configure' scripts to share,
285
+you can create a site shell script called `config.site' that gives
286
+default 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.
290
+A warning: not all `configure' scripts look for a site script.
291
+
292
+Defining Variables
293
+==================
294
+
295
+   Variables not defined in a site shell script can be set in the
296
+environment passed to `configure'.  However, some packages may run
297
+configure again during the build, and the customized values of these
298
+variables may be lost.  In order to avoid this problem, you should set
299
+them in the `configure' command line, using `VAR=value'.  For example:
300
+
301
+     ./configure CC=/usr/local2/bin/gcc
302
+
303
+causes the specified `gcc' to be used as the C compiler (unless it is
304
+overridden in the site shell script).
305
+
306
+Unfortunately, this technique does not work for `CONFIG_SHELL' due to
307
+an 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
315
+operates.
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
+

+ 30
- 0
Makefile.am View File

@@ -0,0 +1,30 @@
1
+SUBDIRS = \
2
+	build \
3
+	tdegtk \
4
+	tests
5
+
6
+ACLOCAL_AMFLAGS = -I build
7
+
8
+EXTRA_DIST = autogen.sh COPYING
9
+
10
+DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
11
+
12
+MAINTAINERCLEANFILES = \
13
+	build/compile \
14
+	build/config.guess \
15
+	build/config.sub \
16
+	build/depcomp \
17
+	build/install-sh \
18
+	build/ltmain.sh \
19
+	build/missing \
20
+	Makefile.in \
21
+	config.h.in \
22
+	configure \
23
+	aclocal.m4
24
+
25
+release: dist
26
+	make $(PACKAGE)-$(VERSION).tar.gz.md5
27
+	make $(PACKAGE)-$(VERSION).tar.bz2.md5
28
+
29
+%.md5: %
30
+	md5sum $< > $@

+ 0
- 0
NEWS View File


+ 0
- 0
README View File


+ 1179
- 0
aclocal.m4
File diff suppressed because it is too large
View File


+ 23
- 0
autogen.sh View File

@@ -0,0 +1,23 @@
1
+#!/bin/sh
2
+# Run this to generate all the initial makefiles, etc.
3
+
4
+srcdir=`dirname $0`
5
+test -z "$srcdir" && srcdir=.
6
+
7
+PKG_NAME="tdegtk"
8
+
9
+(test -f $srcdir/tdegtk/tdegtk-theme.c) || {
10
+    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
11
+    echo " top-level $PKG_NAME directory"
12
+    exit 1
13
+}
14
+
15
+which gnome-autogen.sh || {
16
+    echo "You need to install gnome-common from the GNOME CVS"
17
+    exit 1
18
+}
19
+
20
+REQUIRED_AUTOCONF_VERSION=2.63
21
+REQUIRED_AUTOMAKE_VERSION=1.9
22
+REQUIRED_INTLTOOL_VERSION=0.40.0
23
+REQUIRED_PKG_CONFIG_VERSION=0.16.0 . gnome-autogen.sh

+ 1
- 0
build/Makefile.am View File

@@ -0,0 +1 @@
1
+EXTRA_DIST = as-compiler-flag.m4

+ 61
- 0
build/as-compiler-flag.m4 View File

@@ -0,0 +1,61 @@
1
+dnl as-compiler-flag.m4 0.1.0
2
+
3
+dnl autostars m4 macro for detection of compiler flags
4
+
5
+dnl David Schleef <ds@schleef.org>
6
+
7
+dnl $Id: as-compiler-flag.m4,v 1.1 2005/12/15 23:35:19 ds Exp $
8
+
9
+dnl AS_COMPILER_FLAG(CFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
10
+dnl Tries to compile with the given CFLAGS.
11
+dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags,
12
+dnl and ACTION-IF-NOT-ACCEPTED otherwise.
13
+
14
+AC_DEFUN([AS_COMPILER_FLAG],
15
+[
16
+  AC_MSG_CHECKING([to see if compiler understands $1])
17
+
18
+  save_CFLAGS="$CFLAGS"
19
+  CFLAGS="$CFLAGS $1"
20
+
21
+  AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
22
+  CFLAGS="$save_CFLAGS"
23
+
24
+  if test "X$flag_ok" = Xyes ; then
25
+    m4_ifvaln([$2],[$2])
26
+    true
27
+  else
28
+    m4_ifvaln([$3],[$3])
29
+    true
30
+  fi
31
+  AC_MSG_RESULT([$flag_ok])
32
+])
33
+
34
+dnl AS_COMPILER_FLAGS(VAR, FLAGS)
35
+dnl Tries to compile with the given CFLAGS.
36
+
37
+AC_DEFUN([AS_COMPILER_FLAGS],
38
+[
39
+  list=$2
40
+  flags_supported=""
41
+  flags_unsupported=""
42
+  AC_MSG_CHECKING([for supported compiler flags])
43
+  for each in $list
44
+  do
45
+    save_CFLAGS="$CFLAGS"
46
+    CFLAGS="$CFLAGS $each"
47
+    AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
48
+    CFLAGS="$save_CFLAGS"
49
+
50
+    if test "X$flag_ok" = Xyes ; then
51
+      flags_supported="$flags_supported $each"
52
+    else
53
+      flags_unsupported="$flags_unsupported $each"
54
+    fi
55
+  done
56
+  AC_MSG_RESULT([$flags_supported])
57
+  if test "X$flags_unsupported" != X ; then
58
+    AC_MSG_WARN([unsupported compiler flags: $flags_unsupported])
59
+  fi
60
+  $1="$$1 $flags_supported"
61
+])

+ 143
- 0
build/compile View File

@@ -0,0 +1,143 @@
1
+#! /bin/sh
2
+# Wrapper for compilers which do not understand `-c -o'.
3
+
4
+scriptversion=2009-10-06.20; # UTC
5
+
6
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009  Free Software
7
+# Foundation, Inc.
8
+# Written by Tom Tromey <tromey@cygnus.com>.
9
+#
10
+# This program is free software; you can redistribute it and/or modify
11
+# it under the terms of the GNU General Public License as published by
12
+# the Free Software Foundation; either version 2, or (at your option)
13
+# any later version.
14
+#
15
+# This program is distributed in the hope that it will be useful,
16
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
+# GNU General Public License for more details.
19
+#
20
+# You should have received a copy of the GNU General Public License
21
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
+
23
+# As a special exception to the GNU General Public License, if you
24
+# distribute this file as part of a program that contains a
25
+# configuration script generated by Autoconf, you may include it under
26
+# the same distribution terms that you use for the rest of that program.
27
+
28
+# This file is maintained in Automake, please report
29
+# bugs to <bug-automake@gnu.org> or send patches to
30
+# <automake-patches@gnu.org>.
31
+
32
+case $1 in
33
+  '')
34
+     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
35
+     exit 1;
36
+     ;;
37
+  -h | --h*)
38
+    cat <<\EOF
39
+Usage: compile [--help] [--version] PROGRAM [ARGS]
40
+
41
+Wrapper for compilers which do not understand `-c -o'.
42
+Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
43
+arguments, and rename the output as expected.
44
+
45
+If you are trying to build a whole package this is not the
46
+right script to run: please start by reading the file `INSTALL'.
47
+
48
+Report bugs to <bug-automake@gnu.org>.
49
+EOF
50
+    exit $?
51
+    ;;
52
+  -v | --v*)
53
+    echo "compile $scriptversion"
54
+    exit $?
55
+    ;;
56
+esac
57
+
58
+ofile=
59
+cfile=
60
+eat=
61
+
62
+for arg
63
+do
64
+  if test -n "$eat"; then
65
+    eat=
66
+  else
67
+    case $1 in
68
+      -o)
69
+	# configure might choose to run compile as `compile cc -o foo foo.c'.
70
+	# So we strip `-o arg' only if arg is an object.
71
+	eat=1
72
+	case $2 in
73
+	  *.o | *.obj)
74
+	    ofile=$2
75
+	    ;;
76
+	  *)
77
+	    set x "$@" -o "$2"
78
+	    shift
79
+	    ;;
80
+	esac
81
+	;;
82
+      *.c)
83
+	cfile=$1
84
+	set x "$@" "$1"
85
+	shift
86
+	;;
87
+      *)
88
+	set x "$@" "$1"
89
+	shift
90
+	;;
91
+    esac
92
+  fi
93
+  shift
94
+done
95
+
96
+if test -z "$ofile" || test -z "$cfile"; then
97
+  # If no `-o' option was seen then we might have been invoked from a
98
+  # pattern rule where we don't need one.  That is ok -- this is a
99
+  # normal compilation that the losing compiler can handle.  If no
100
+  # `.c' file was seen then we are probably linking.  That is also
101
+  # ok.
102
+  exec "$@"
103
+fi
104
+
105
+# Name of file we expect compiler to create.
106
+cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
107
+
108
+# Create the lock directory.
109
+# Note: use `[/\\:.-]' here to ensure that we don't use the same name
110
+# that we are using for the .o file.  Also, base the name on the expected
111
+# object file name, since that is what matters with a parallel build.
112
+lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
113
+while true; do
114
+  if mkdir "$lockdir" >/dev/null 2>&1; then
115
+    break
116
+  fi
117
+  sleep 1
118
+done
119
+# FIXME: race condition here if user kills between mkdir and trap.
120
+trap "rmdir '$lockdir'; exit 1" 1 2 15
121
+
122
+# Run the compile.
123
+"$@"
124
+ret=$?
125
+
126
+if test -f "$cofile"; then
127
+  test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
128
+elif test -f "${cofile}bj"; then
129
+  test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
130
+fi
131
+
132
+rmdir "$lockdir"
133
+exit $ret
134
+
135
+# Local Variables:
136
+# mode: shell-script
137
+# sh-indentation: 2
138
+# eval: (add-hook 'write-file-hooks 'time-stamp)
139
+# time-stamp-start: "scriptversion="
140
+# time-stamp-format: "%:y-%02m-%02d.%02H"
141
+# time-stamp-time-zone: "UTC"
142
+# time-stamp-end: "; # UTC"
143
+# End:

+ 1517
- 0
build/config.guess
File diff suppressed because it is too large
View File


+ 1760
- 0
build/config.sub
File diff suppressed because it is too large
View File


+ 630
- 0
build/depcomp View File

@@ -0,0 +1,630 @@
1
+#! /bin/sh
2
+# depcomp - compile a program generating dependencies as side-effects
3
+
4
+scriptversion=2009-04-28.21; # UTC
5
+
6
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
7
+# Software Foundation, Inc.
8
+
9
+# This program is free software; you can redistribute it and/or modify
10
+# it under the terms of the GNU General Public License as published by
11
+# the Free Software Foundation; either version 2, or (at your option)
12
+# any later version.
13
+
14
+# This program is distributed in the hope that it will be useful,
15
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+# GNU General Public License for more details.
18
+
19
+# You should have received a copy of the GNU General Public License
20
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+
22
+# As a special exception to the GNU General Public License, if you
23
+# distribute this file as part of a program that contains a
24
+# configuration script generated by Autoconf, you may include it under
25
+# the same distribution terms that you use for the rest of that program.
26
+
27
+# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
28
+
29
+case $1 in
30
+  '')
31
+     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
32
+     exit 1;
33
+     ;;
34
+  -h | --h*)
35
+    cat <<\EOF
36
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
37
+
38
+Run PROGRAMS ARGS to compile a file, generating dependencies
39
+as side-effects.
40
+
41
+Environment variables:
42
+  depmode     Dependency tracking mode.
43
+  source      Source file read by `PROGRAMS ARGS'.
44
+  object      Object file output by `PROGRAMS ARGS'.
45
+  DEPDIR      directory where to store dependencies.
46
+  depfile     Dependency file to output.
47
+  tmpdepfile  Temporary file to use when outputing dependencies.
48
+  libtool     Whether libtool is used (yes/no).
49
+
50
+Report bugs to <bug-automake@gnu.org>.
51
+EOF
52
+    exit $?
53
+    ;;
54
+  -v | --v*)
55
+    echo "depcomp $scriptversion"
56
+    exit $?
57
+    ;;
58
+esac
59
+
60
+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
61
+  echo "depcomp: Variables source, object and depmode must be set" 1>&2
62
+  exit 1
63
+fi
64
+
65
+# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
66
+depfile=${depfile-`echo "$object" |
67
+  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
68
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
69
+
70
+rm -f "$tmpdepfile"
71
+
72
+# Some modes work just like other modes, but use different flags.  We
73
+# parameterize here, but still list the modes in the big case below,
74
+# to make depend.m4 easier to write.  Note that we *cannot* use a case
75
+# here, because this file can only contain one case statement.
76
+if test "$depmode" = hp; then
77
+  # HP compiler uses -M and no extra arg.
78
+  gccflag=-M
79
+  depmode=gcc
80
+fi
81
+
82
+if test "$depmode" = dashXmstdout; then
83
+   # This is just like dashmstdout with a different argument.
84
+   dashmflag=-xM
85
+   depmode=dashmstdout
86
+fi
87
+
88
+cygpath_u="cygpath -u -f -"
89
+if test "$depmode" = msvcmsys; then
90
+   # This is just like msvisualcpp but w/o cygpath translation.
91
+   # Just convert the backslash-escaped backslashes to single forward
92
+   # slashes to satisfy depend.m4
93
+   cygpath_u="sed s,\\\\\\\\,/,g"
94
+   depmode=msvisualcpp
95
+fi
96
+
97
+case "$depmode" in
98
+gcc3)
99
+## gcc 3 implements dependency tracking that does exactly what
100
+## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
101
+## it if -MD -MP comes after the -MF stuff.  Hmm.
102
+## Unfortunately, FreeBSD c89 acceptance of flags depends upon
103
+## the command line argument order; so add the flags where they
104
+## appear in depend2.am.  Note that the slowdown incurred here
105
+## affects only configure: in makefiles, %FASTDEP% shortcuts this.
106
+  for arg
107
+  do
108
+    case $arg in
109
+    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
110
+    *)  set fnord "$@" "$arg" ;;
111
+    esac
112
+    shift # fnord
113
+    shift # $arg
114
+  done
115
+  "$@"
116
+  stat=$?
117
+  if test $stat -eq 0; then :
118
+  else
119
+    rm -f "$tmpdepfile"
120
+    exit $stat
121
+  fi
122
+  mv "$tmpdepfile" "$depfile"
123
+  ;;
124
+
125
+gcc)
126
+## There are various ways to get dependency output from gcc.  Here's
127
+## why we pick this rather obscure method:
128
+## - Don't want to use -MD because we'd like the dependencies to end
129
+##   up in a subdir.  Having to rename by hand is ugly.
130
+##   (We might end up doing this anyway to support other compilers.)
131
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
132
+##   -MM, not -M (despite what the docs say).
133
+## - Using -M directly means running the compiler twice (even worse
134
+##   than renaming).
135
+  if test -z "$gccflag"; then
136
+    gccflag=-MD,
137
+  fi
138
+  "$@" -Wp,"$gccflag$tmpdepfile"
139
+  stat=$?
140
+  if test $stat -eq 0; then :
141
+  else
142
+    rm -f "$tmpdepfile"
143
+    exit $stat
144
+  fi
145
+  rm -f "$depfile"
146
+  echo "$object : \\" > "$depfile"
147
+  alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
148
+## The second -e expression handles DOS-style file names with drive letters.
149
+  sed -e 's/^[^:]*: / /' \
150
+      -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
151
+## This next piece of magic avoids the `deleted header file' problem.
152
+## The problem is that when a header file which appears in a .P file
153
+## is deleted, the dependency causes make to die (because there is
154
+## typically no way to rebuild the header).  We avoid this by adding
155
+## dummy dependencies for each header file.  Too bad gcc doesn't do
156
+## this for us directly.
157
+  tr ' ' '
158
+' < "$tmpdepfile" |
159
+## Some versions of gcc put a space before the `:'.  On the theory
160
+## that the space means something, we add a space to the output as
161
+## well.
162
+## Some versions of the HPUX 10.20 sed can't process this invocation
163
+## correctly.  Breaking it into two sed invocations is a workaround.
164
+    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
165
+  rm -f "$tmpdepfile"
166
+  ;;
167
+
168
+hp)
169
+  # This case exists only to let depend.m4 do its work.  It works by
170
+  # looking at the text of this script.  This case will never be run,
171
+  # since it is checked for above.
172
+  exit 1
173
+  ;;
174
+
175
+sgi)
176
+  if test "$libtool" = yes; then
177
+    "$@" "-Wp,-MDupdate,$tmpdepfile"
178
+  else
179
+    "$@" -MDupdate "$tmpdepfile"
180
+  fi
181
+  stat=$?
182
+  if test $stat -eq 0; then :
183
+  else
184
+    rm -f "$tmpdepfile"
185
+    exit $stat
186
+  fi
187
+  rm -f "$depfile"
188
+
189
+  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
190
+    echo "$object : \\" > "$depfile"
191
+
192
+    # Clip off the initial element (the dependent).  Don't try to be
193
+    # clever and replace this with sed code, as IRIX sed won't handle
194
+    # lines with more than a fixed number of characters (4096 in
195
+    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
196
+    # the IRIX cc adds comments like `#:fec' to the end of the
197
+    # dependency line.
198
+    tr ' ' '
199
+' < "$tmpdepfile" \
200
+    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
201
+    tr '
202
+' ' ' >> "$depfile"
203
+    echo >> "$depfile"
204
+
205
+    # The second pass generates a dummy entry for each header file.
206
+    tr ' ' '
207
+' < "$tmpdepfile" \
208
+   | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
209
+   >> "$depfile"
210
+  else
211
+    # The sourcefile does not contain any dependencies, so just
212
+    # store a dummy comment line, to avoid errors with the Makefile
213
+    # "include basename.Plo" scheme.
214
+    echo "#dummy" > "$depfile"
215
+  fi
216
+  rm -f "$tmpdepfile"
217
+  ;;
218
+
219
+aix)
220
+  # The C for AIX Compiler uses -M and outputs the dependencies
221
+  # in a .u file.  In older versions, this file always lives in the
222
+  # current directory.  Also, the AIX compiler puts `$object:' at the
223
+  # start of each line; $object doesn't have directory information.
224
+  # Version 6 uses the directory in both cases.
225
+  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
226
+  test "x$dir" = "x$object" && dir=
227
+  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
228
+  if test "$libtool" = yes; then
229
+    tmpdepfile1=$dir$base.u
230
+    tmpdepfile2=$base.u
231
+    tmpdepfile3=$dir.libs/$base.u
232
+    "$@" -Wc,-M
233
+  else
234
+    tmpdepfile1=$dir$base.u
235
+    tmpdepfile2=$dir$base.u
236
+    tmpdepfile3=$dir$base.u
237
+    "$@" -M
238
+  fi
239
+  stat=$?
240
+
241
+  if test $stat -eq 0; then :
242
+  else
243
+    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
244
+    exit $stat
245
+  fi
246
+
247
+  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
248
+  do
249
+    test -f "$tmpdepfile" && break
250
+  done
251
+  if test -f "$tmpdepfile"; then
252
+    # Each line is of the form `foo.o: dependent.h'.
253
+    # Do two passes, one to just change these to
254
+    # `$object: dependent.h' and one to simply `dependent.h:'.
255
+    sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
256
+    # That's a tab and a space in the [].
257
+    sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
258
+  else
259
+    # The sourcefile does not contain any dependencies, so just
260
+    # store a dummy comment line, to avoid errors with the Makefile
261
+    # "include basename.Plo" scheme.
262
+    echo "#dummy" > "$depfile"
263
+  fi
264
+  rm -f "$tmpdepfile"
265
+  ;;
266
+
267
+icc)
268
+  # Intel's C compiler understands `-MD -MF file'.  However on
269
+  #    icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
270
+  # ICC 7.0 will fill foo.d with something like
271
+  #    foo.o: sub/foo.c
272
+  #    foo.o: sub/foo.h
273
+  # which is wrong.  We want:
274
+  #    sub/foo.o: sub/foo.c
275
+  #    sub/foo.o: sub/foo.h
276
+  #    sub/foo.c:
277
+  #    sub/foo.h:
278
+  # ICC 7.1 will output
279
+  #    foo.o: sub/foo.c sub/foo.h
280
+  # and will wrap long lines using \ :
281
+  #    foo.o: sub/foo.c ... \
282
+  #     sub/foo.h ... \
283
+  #     ...
284
+
285
+  "$@" -MD -MF "$tmpdepfile"
286
+  stat=$?
287
+  if test $stat -eq 0; then :
288
+  else
289
+    rm -f "$tmpdepfile"
290
+    exit $stat
291
+  fi
292
+  rm -f "$depfile"
293
+  # Each line is of the form `foo.o: dependent.h',
294
+  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
295
+  # Do two passes, one to just change these to
296
+  # `$object: dependent.h' and one to simply `dependent.h:'.
297
+  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
298
+  # Some versions of the HPUX 10.20 sed can't process this invocation
299
+  # correctly.  Breaking it into two sed invocations is a workaround.
300
+  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
301
+    sed -e 's/$/ :/' >> "$depfile"
302
+  rm -f "$tmpdepfile"
303
+  ;;
304
+
305
+hp2)
306
+  # The "hp" stanza above does not work with aCC (C++) and HP's ia64
307
+  # compilers, which have integrated preprocessors.  The correct option
308
+  # to use with these is +Maked; it writes dependencies to a file named
309
+  # 'foo.d', which lands next to the object file, wherever that
310
+  # happens to be.
311
+  # Much of this is similar to the tru64 case; see comments there.
312
+  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
313
+  test "x$dir" = "x$object" && dir=
314
+  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
315
+  if test "$libtool" = yes; then
316
+    tmpdepfile1=$dir$base.d
317
+    tmpdepfile2=$dir.libs/$base.d
318
+    "$@" -Wc,+Maked
319
+  else
320
+    tmpdepfile1=$dir$base.d
321
+    tmpdepfile2=$dir$base.d
322
+    "$@" +Maked
323
+  fi
324
+  stat=$?
325
+  if test $stat -eq 0; then :
326
+  else
327
+     rm -f "$tmpdepfile1" "$tmpdepfile2"
328
+     exit $stat
329
+  fi
330
+
331
+  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
332
+  do
333
+    test -f "$tmpdepfile" && break
334
+  done
335
+  if test -f "$tmpdepfile"; then
336
+    sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
337
+    # Add `dependent.h:' lines.
338
+    sed -ne '2,${
339
+	       s/^ *//
340
+	       s/ \\*$//
341
+	       s/$/:/
342
+	       p
343
+	     }' "$tmpdepfile" >> "$depfile"
344
+  else
345
+    echo "#dummy" > "$depfile"
346
+  fi
347
+  rm -f "$tmpdepfile" "$tmpdepfile2"
348
+  ;;
349
+
350
+tru64)
351
+   # The Tru64 compiler uses -MD to generate dependencies as a side
352
+   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
353
+   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
354
+   # dependencies in `foo.d' instead, so we check for that too.
355
+   # Subdirectories are respected.
356
+   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
357
+   test "x$dir" = "x$object" && dir=
358
+   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
359
+
360
+   if test "$libtool" = yes; then
361
+      # With Tru64 cc, shared objects can also be used to make a
362
+      # static library.  This mechanism is used in libtool 1.4 series to
363
+      # handle both shared and static libraries in a single compilation.
364
+      # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
365
+      #
366
+      # With libtool 1.5 this exception was removed, and libtool now
367
+      # generates 2 separate objects for the 2 libraries.  These two
368
+      # compilations output dependencies in $dir.libs/$base.o.d and
369
+      # in $dir$base.o.d.  We have to check for both files, because
370
+      # one of the two compilations can be disabled.  We should prefer
371
+      # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
372
+      # automatically cleaned when .libs/ is deleted, while ignoring
373
+      # the former would cause a distcleancheck panic.
374
+      tmpdepfile1=$dir.libs/$base.lo.d   # libtool 1.4
375
+      tmpdepfile2=$dir$base.o.d          # libtool 1.5
376
+      tmpdepfile3=$dir.libs/$base.o.d    # libtool 1.5
377
+      tmpdepfile4=$dir.libs/$base.d      # Compaq CCC V6.2-504
378
+      "$@" -Wc,-MD
379
+   else
380
+      tmpdepfile1=$dir$base.o.d
381
+      tmpdepfile2=$dir$base.d
382
+      tmpdepfile3=$dir$base.d
383
+      tmpdepfile4=$dir$base.d
384
+      "$@" -MD
385
+   fi
386
+
387
+   stat=$?
388
+   if test $stat -eq 0; then :
389
+   else
390
+      rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
391
+      exit $stat
392
+   fi
393
+
394
+   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
395
+   do
396
+     test -f "$tmpdepfile" && break
397
+   done
398
+   if test -f "$tmpdepfile"; then
399
+      sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
400
+      # That's a tab and a space in the [].
401
+      sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
402
+   else
403
+      echo "#dummy" > "$depfile"
404
+   fi
405
+   rm -f "$tmpdepfile"
406
+   ;;
407
+
408
+#nosideeffect)
409
+  # This comment above is used by automake to tell side-effect
410
+  # dependency tracking mechanisms from slower ones.
411
+
412
+dashmstdout)
413
+  # Important note: in order to support this mode, a compiler *must*
414
+  # always write the preprocessed file to stdout, regardless of -o.
415
+  "$@" || exit $?
416
+
417
+  # Remove the call to Libtool.
418
+  if test "$libtool" = yes; then
419
+    while test "X$1" != 'X--mode=compile'; do
420
+      shift
421
+    done
422
+    shift
423
+  fi
424
+
425
+  # Remove `-o $object'.
426
+  IFS=" "
427
+  for arg
428
+  do
429
+    case $arg in
430
+    -o)
431
+      shift
432
+      ;;
433
+    $object)
434
+      shift
435
+      ;;
436
+    *)
437
+      set fnord "$@" "$arg"
438
+      shift # fnord
439
+      shift # $arg
440
+      ;;
441
+    esac
442
+  done
443
+
444
+  test -z "$dashmflag" && dashmflag=-M
445
+  # Require at least two characters before searching for `:'
446
+  # in the target name.  This is to cope with DOS-style filenames:
447
+  # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
448
+  "$@" $dashmflag |
449
+    sed 's:^[  ]*[^: ][^:][^:]*\:[    ]*:'"$object"'\: :' > "$tmpdepfile"
450
+  rm -f "$depfile"
451
+  cat < "$tmpdepfile" > "$depfile"
452
+  tr ' ' '
453
+' < "$tmpdepfile" | \
454
+## Some versions of the HPUX 10.20 sed can't process this invocation
455
+## correctly.  Breaking it into two sed invocations is a workaround.
456
+    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
457
+  rm -f "$tmpdepfile"
458
+  ;;
459
+
460
+dashXmstdout)
461
+  # This case only exists to satisfy depend.m4.  It is never actually
462
+  # run, as this mode is specially recognized in the preamble.
463
+  exit 1
464
+  ;;
465
+
466
+makedepend)
467
+  "$@" || exit $?
468
+  # Remove any Libtool call
469
+  if test "$libtool" = yes; then
470
+    while test "X$1" != 'X--mode=compile'; do
471
+      shift
472
+    done
473
+    shift
474
+  fi
475
+  # X makedepend
476
+  shift
477
+  cleared=no eat=no
478
+  for arg
479
+  do
480
+    case $cleared in
481
+    no)
482
+      set ""; shift
483
+      cleared=yes ;;
484
+    esac
485
+    if test $eat = yes; then
486
+      eat=no
487
+      continue
488
+    fi
489
+    case "$arg" in
490
+    -D*|-I*)
491
+      set fnord "$@" "$arg"; shift ;;
492
+    # Strip any option that makedepend may not understand.  Remove
493
+    # the object too, otherwise makedepend will parse it as a source file.
494
+    -arch)
495
+      eat=yes ;;
496
+    -*|$object)
497
+      ;;
498
+    *)
499
+      set fnord "$@" "$arg"; shift ;;
500
+    esac
501
+  done
502
+  obj_suffix=`echo "$object" | sed 's/^.*\././'`
503
+  touch "$tmpdepfile"
504
+  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
505
+  rm -f "$depfile"
506
+  cat < "$tmpdepfile" > "$depfile"
507
+  sed '1,2d' "$tmpdepfile" | tr ' ' '
508
+' | \
509
+## Some versions of the HPUX 10.20 sed can't process this invocation
510
+## correctly.  Breaking it into two sed invocations is a workaround.
511
+    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
512
+  rm -f "$tmpdepfile" "$tmpdepfile".bak
513
+  ;;
514
+
515
+cpp)
516
+  # Important note: in order to support this mode, a compiler *must*
517
+  # always write the preprocessed file to stdout.
518
+  "$@" || exit $?
519
+
520
+  # Remove the call to Libtool.
521
+  if test "$libtool" = yes; then
522
+    while test "X$1" != 'X--mode=compile'; do
523
+      shift
524
+    done
525
+    shift
526
+  fi
527
+
528
+  # Remove `-o $object'.
529
+  IFS=" "
530
+  for arg
531
+  do
532
+    case $arg in
533
+    -o)
534
+      shift
535
+      ;;
536
+    $object)
537
+      shift
538
+      ;;
539
+    *)
540
+      set fnord "$@" "$arg"
541
+      shift # fnord
542
+      shift # $arg
543
+      ;;
544
+    esac
545
+  done
546
+
547
+  "$@" -E |
548
+    sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
549
+       -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
550
+    sed '$ s: \\$::' > "$tmpdepfile"
551
+  rm -f "$depfile"
552
+  echo "$object : \\" > "$depfile"
553
+  cat < "$tmpdepfile" >> "$depfile"
554
+  sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
555
+  rm -f "$tmpdepfile"
556
+  ;;
557
+
558
+msvisualcpp)
559
+  # Important note: in order to support this mode, a compiler *must*
560
+  # always write the preprocessed file to stdout.
561
+  "$@" || exit $?
562
+
563
+  # Remove the call to Libtool.
564
+  if test "$libtool" = yes; then
565
+    while test "X$1" != 'X--mode=compile'; do
566
+      shift
567
+    done
568
+    shift
569
+  fi
570
+
571
+  IFS=" "
572
+  for arg
573
+  do
574
+    case "$arg" in
575
+    -o)
576
+      shift
577
+      ;;
578
+    $object)
579
+      shift
580
+      ;;
581
+    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
582
+	set fnord "$@"
583
+	shift
584
+	shift
585
+	;;
586
+    *)
587
+	set fnord "$@" "$arg"
588
+	shift
589
+	shift
590
+	;;
591
+    esac
592
+  done
593
+  "$@" -E 2>/dev/null |
594
+  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
595
+  rm -f "$depfile"
596
+  echo "$object : \\" > "$depfile"
597
+  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::	\1 \\:p' >> "$depfile"
598
+  echo "	" >> "$depfile"
599
+  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
600
+  rm -f "$tmpdepfile"
601
+  ;;
602
+
603
+msvcmsys)
604
+  # This case exists only to let depend.m4 do its work.  It works by
605
+  # looking at the text of this script.  This case will never be run,
606
+  # since it is checked for above.
607
+  exit 1
608
+  ;;
609
+
610
+none)
611
+  exec "$@"
612
+  ;;
613
+
614
+*)
615
+  echo "Unknown depmode $depmode" 1>&2
616
+  exit 1
617
+  ;;
618
+esac
619
+
620
+exit 0
621
+
622
+# Local Variables:
623
+# mode: shell-script
624
+# sh-indentation: 2
625
+# eval: (add-hook 'write-file-hooks 'time-stamp)
626
+# time-stamp-start: "scriptversion="
627
+# time-stamp-format: "%:y-%02m-%02d.%02H"
628
+# time-stamp-time-zone: "UTC"
629
+# time-stamp-end: "; # UTC"
630
+# End:

+ 520
- 0
build/install-sh View File

@@ -0,0 +1,520 @@
1
+#!/bin/sh
2
+# install - install a program, script, or datafile
3
+
4
+scriptversion=2009-04-28.21; # UTC
5
+
6
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
7
+# later released in X11R6 (xc/config/util/install.sh) with the
8
+# following copyright and license.
9
+#
10
+# Copyright (C) 1994 X Consortium
11
+#
12
+# Permission is hereby granted, free of charge, to any person obtaining a copy
13
+# of this software and associated documentation files (the "Software"), to
14
+# deal in the Software without restriction, including without limitation the
15
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16
+# sell copies of the Software, and to permit persons to whom the Software is
17
+# furnished to do so, subject to the following conditions:
18
+#
19
+# The above copyright notice and this permission notice shall be included in
20
+# all copies or substantial portions of the Software.
21
+#
22
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
25
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
26
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
27
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
+#
29
+# Except as contained in this notice, the name of the X Consortium shall not
30
+# be used in advertising or otherwise to promote the sale, use or other deal-
31
+# ings in this Software without prior written authorization from the X Consor-
32
+# tium.
33
+#
34
+#
35
+# FSF changes to this file are in the public domain.
36
+#
37
+# Calling this script install-sh is preferred over install.sh, to prevent
38
+# `make' implicit rules from creating a file called install from it
39
+# when there is no Makefile.
40
+#
41
+# This script is compatible with the BSD install script, but was written
42
+# from scratch.
43
+
44
+nl='
45
+'
46
+IFS=" ""	$nl"
47
+
48
+# set DOITPROG to echo to test this script
49
+
50
+# Don't use :- since 4.3BSD and earlier shells don't like it.
51
+doit=${DOITPROG-}
52
+if test -z "$doit"; then
53
+  doit_exec=exec
54
+else
55
+  doit_exec=$doit
56
+fi
57
+
58
+# Put in absolute file names if you don't have them in your path;
59
+# or use environment vars.
60
+
61
+chgrpprog=${CHGRPPROG-chgrp}
62
+chmodprog=${CHMODPROG-chmod}
63
+chownprog=${CHOWNPROG-chown}
64
+cmpprog=${CMPPROG-cmp}
65
+cpprog=${CPPROG-cp}
66
+mkdirprog=${MKDIRPROG-mkdir}
67
+mvprog=${MVPROG-mv}
68
+rmprog=${RMPROG-rm}
69
+stripprog=${STRIPPROG-strip}
70
+
71
+posix_glob='?'
72
+initialize_posix_glob='
73
+  test "$posix_glob" != "?" || {
74
+    if (set -f) 2>/dev/null; then
75
+      posix_glob=
76
+    else
77
+      posix_glob=:
78
+    fi
79
+  }
80
+'
81
+
82
+posix_mkdir=
83
+
84
+# Desired mode of installed file.
85
+mode=0755
86
+
87
+chgrpcmd=
88
+chmodcmd=$chmodprog
89
+chowncmd=
90
+mvcmd=$mvprog
91
+rmcmd="$rmprog -f"
92
+stripcmd=
93
+
94
+src=
95
+dst=
96
+dir_arg=
97
+dst_arg=
98
+
99
+copy_on_change=false
100
+no_target_directory=
101
+
102
+usage="\
103
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
104
+   or: $0 [OPTION]... SRCFILES... DIRECTORY
105
+   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
106
+   or: $0 [OPTION]... -d DIRECTORIES...
107
+
108
+In the 1st form, copy SRCFILE to DSTFILE.
109
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
110
+In the 4th, create DIRECTORIES.
111
+
112
+Options:
113
+     --help     display this help and exit.
114
+     --version  display version info and exit.
115
+
116
+  -c            (ignored)
117
+  -C            install only if different (preserve the last data modification time)
118
+  -d            create directories instead of installing files.
119
+  -g GROUP      $chgrpprog installed files to GROUP.
120
+  -m MODE       $chmodprog installed files to MODE.
121
+  -o USER       $chownprog installed files to USER.
122
+  -s            $stripprog installed files.
123
+  -t DIRECTORY  install into DIRECTORY.
124
+  -T            report an error if DSTFILE is a directory.
125
+
126
+Environment variables override the default commands:
127
+  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
128
+  RMPROG STRIPPROG
129
+"
130
+
131
+while test $# -ne 0; do
132
+  case $1 in
133
+    -c) ;;
134
+
135
+    -C) copy_on_change=true;;
136
+
137
+    -d) dir_arg=true;;
138
+
139
+    -g) chgrpcmd="$chgrpprog $2"
140
+	shift;;
141
+
142
+    --help) echo "$usage"; exit $?;;
143
+
144
+    -m) mode=$2
145
+	case $mode in
146
+	  *' '* | *'	'* | *'
147
+'*	  | *'*'* | *'?'* | *'['*)
148
+	    echo "$0: invalid mode: $mode" >&2
149
+	    exit 1;;
150
+	esac
151
+	shift;;
152
+
153
+    -o) chowncmd="$chownprog $2"
154
+	shift;;
155
+
156
+    -s) stripcmd=$stripprog;;
157
+
158
+    -t) dst_arg=$2
159
+	shift;;
160
+
161
+    -T) no_target_directory=true;;
162
+
163
+    --version) echo "$0 $scriptversion"; exit $?;;
164
+
165
+    --)	shift
166
+	break;;
167
+
168
+    -*)	echo "$0: invalid option: $1" >&2
169
+	exit 1;;
170
+
171
+    *)  break;;
172
+  esac
173
+  shift
174
+done
175
+
176
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
177
+  # When -d is used, all remaining arguments are directories to create.
178
+  # When -t is used, the destination is already specified.
179
+  # Otherwise, the last argument is the destination.  Remove it from $@.
180
+  for arg
181
+  do
182
+    if test -n "$dst_arg"; then
183
+      # $@ is not empty: it contains at least $arg.
184
+      set fnord "$@" "$dst_arg"
185
+      shift # fnord
186
+    fi
187
+    shift # arg
188
+    dst_arg=$arg
189
+  done
190
+fi
191
+
192
+if test $# -eq 0; then
193
+  if test -z "$dir_arg"; then
194
+    echo "$0: no input file specified." >&2
195
+    exit 1
196
+  fi
197
+  # It's OK to call `install-sh -d' without argument.
198
+  # This can happen when creating conditional directories.
199
+  exit 0
200
+fi
201
+
202
+if test -z "$dir_arg"; then
203
+  trap '(exit $?); exit' 1 2 13 15
204
+
205
+  # Set umask so as not to create temps with too-generous modes.
206
+  # However, 'strip' requires both read and write access to temps.
207
+  case $mode in
208
+    # Optimize common cases.
209
+    *644) cp_umask=133;;
210
+    *755) cp_umask=22;;
211
+
212
+    *[0-7])
213
+      if test -z "$stripcmd"; then
214
+	u_plus_rw=
215
+      else
216
+	u_plus_rw='% 200'
217
+      fi
218
+      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
219
+    *)
220
+      if test -z "$stripcmd"; then
221
+	u_plus_rw=
222
+      else
223
+	u_plus_rw=,u+rw
224
+      fi
225
+      cp_umask=$mode$u_plus_rw;;
226
+  esac
227
+fi
228
+
229
+for src
230
+do
231
+  # Protect names starting with `-'.
232
+  case $src in
233
+    -*) src=./$src;;
234
+  esac
235
+
236
+  if test -n "$dir_arg"; then
237
+    dst=$src
238
+    dstdir=$dst
239
+    test -d "$dstdir"
240
+    dstdir_status=$?
241
+  else
242
+
243
+    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
244
+    # might cause directories to be created, which would be especially bad
245
+    # if $src (and thus $dsttmp) contains '*'.
246
+    if test ! -f "$src" && test ! -d "$src"; then
247
+      echo "$0: $src does not exist." >&2
248
+      exit 1
249
+    fi
250
+
251
+    if test -z "$dst_arg"; then
252
+      echo "$0: no destination specified." >&2
253
+      exit 1
254
+    fi
255
+
256
+    dst=$dst_arg
257
+    # Protect names starting with `-'.
258
+    case $dst in
259
+      -*) dst=./$dst;;
260
+    esac
261
+
262
+    # If destination is a directory, append the input filename; won't work
263
+    # if double slashes aren't ignored.
264
+    if test -d "$dst"; then
265
+      if test -n "$no_target_directory"; then
266
+	echo "$0: $dst_arg: Is a directory" >&2
267
+	exit 1
268
+      fi
269
+      dstdir=$dst
270
+      dst=$dstdir/`basename "$src"`
271
+      dstdir_status=0
272
+    else
273
+      # Prefer dirname, but fall back on a substitute if dirname fails.
274
+      dstdir=`
275
+	(dirname "$dst") 2>/dev/null ||
276
+	expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
277
+	     X"$dst" : 'X\(//\)[^/]' \| \
278
+	     X"$dst" : 'X\(//\)$' \| \
279
+	     X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
280
+	echo X"$dst" |
281
+	    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
282
+		   s//\1/
283
+		   q
284
+		 }
285
+		 /^X\(\/\/\)[^/].*/{
286
+		   s//\1/
287
+		   q
288
+		 }
289
+		 /^X\(\/\/\)$/{
290
+		   s//\1/
291
+		   q
292
+		 }
293
+		 /^X\(\/\).*/{
294
+		   s//\1/
295
+		   q
296
+		 }
297
+		 s/.*/./; q'
298
+      `
299
+
300
+      test -d "$dstdir"
301
+      dstdir_status=$?
302
+    fi
303
+  fi
304
+
305
+  obsolete_mkdir_used=false
306
+
307
+  if test $dstdir_status != 0; then
308
+    case $posix_mkdir in
309
+      '')
310
+	# Create intermediate dirs using mode 755 as modified by the umask.
311
+	# This is like FreeBSD 'install' as of 1997-10-28.
312
+	umask=`umask`
313
+	case $stripcmd.$umask in
314
+	  # Optimize common cases.
315
+	  *[2367][2367]) mkdir_umask=$umask;;
316
+	  .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
317
+
318
+	  *[0-7])
319
+	    mkdir_umask=`expr $umask + 22 \
320
+	      - $umask % 100 % 40 + $umask % 20 \
321
+	      - $umask % 10 % 4 + $umask % 2
322
+	    `;;
323
+	  *) mkdir_umask=$umask,go-w;;
324
+	esac
325
+
326
+	# With -d, create the new directory with the user-specified mode.
327
+	# Otherwise, rely on $mkdir_umask.
328
+	if test -n "$dir_arg"; then
329
+	  mkdir_mode=-m$mode
330
+	else
331
+	  mkdir_mode=
332
+	fi
333
+
334
+	posix_mkdir=false
335
+	case $umask in
336
+	  *[123567][0-7][0-7])
337
+	    # POSIX mkdir -p sets u+wx bits regardless of umask, which
338
+	    # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
339
+	    ;;
340
+	  *)
341
+	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
342
+	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
343
+
344
+	    if (umask $mkdir_umask &&
345
+		exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
346
+	    then
347
+	      if test -z "$dir_arg" || {
348
+		   # Check for POSIX incompatibilities with -m.
349
+		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
350
+		   # other-writeable bit of parent directory when it shouldn't.
351
+		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
352
+		   ls_ld_tmpdir=`ls -ld "$tmpdir"`
353
+		   case $ls_ld_tmpdir in
354
+		     d????-?r-*) different_mode=700;;
355
+		     d????-?--*) different_mode=755;;
356
+		     *) false;;
357
+		   esac &&
358
+		   $mkdirprog -m$different_mode -p -- "$tmpdir" && {
359
+		     ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
360
+		     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
361
+		   }
362
+		 }
363
+	      then posix_mkdir=:
364
+	      fi
365
+	      rmdir "$tmpdir/d" "$tmpdir"
366
+	    else
367
+	      # Remove any dirs left behind by ancient mkdir implementations.
368
+	      rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
369
+	    fi
370
+	    trap '' 0;;
371
+	esac;;
372
+    esac
373
+
374
+    if
375
+      $posix_mkdir && (
376
+	umask $mkdir_umask &&
377
+	$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
378
+      )
379
+    then :
380
+    else
381
+
382
+      # The umask is ridiculous, or mkdir does not conform to POSIX,
383
+      # or it failed possibly due to a race condition.  Create the
384
+      # directory the slow way, step by step, checking for races as we go.
385
+
386
+      case $dstdir in
387
+	/*) prefix='/';;
388
+	-*) prefix='./';;
389
+	*)  prefix='';;
390
+      esac
391
+
392
+      eval "$initialize_posix_glob"
393
+
394
+      oIFS=$IFS
395
+      IFS=/
396
+      $posix_glob set -f
397
+      set fnord $dstdir
398
+      shift
399
+      $posix_glob set +f
400
+      IFS=$oIFS
401
+
402
+      prefixes=
403
+
404
+      for d
405
+      do
406
+	test -z "$d" && continue
407
+
408
+	prefix=$prefix$d
409
+	if test -d "$prefix"; then
410
+	  prefixes=
411
+	else
412
+	  if $posix_mkdir; then
413
+	    (umask=$mkdir_umask &&
414
+	     $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415
+	    # Don't fail if two instances are running concurrently.
416
+	    test -d "$prefix" || exit 1
417
+	  else
418
+	    case $prefix in
419
+	      *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
420
+	      *) qprefix=$prefix;;
421
+	    esac
422
+	    prefixes="$prefixes '$qprefix'"
423
+	  fi
424
+	fi
425
+	prefix=$prefix/
426
+      done
427
+
428
+      if test -n "$prefixes"; then
429
+	# Don't fail if two instances are running concurrently.
430
+	(umask $mkdir_umask &&
431
+	 eval "\$doit_exec \$mkdirprog $prefixes") ||
432
+	  test -d "$dstdir" || exit 1
433
+	obsolete_mkdir_used=true
434
+      fi
435
+    fi
436
+  fi
437
+
438
+  if test -n "$dir_arg"; then
439
+    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
440
+    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
441
+    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
442
+      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
443
+  else
444
+
445
+    # Make a couple of temp file names in the proper directory.
446
+    dsttmp=$dstdir/_inst.$$_
447
+    rmtmp=$dstdir/_rm.$$_
448
+
449
+    # Trap to clean up those temp files at exit.
450
+    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451
+
452
+    # Copy the file name to the temp name.
453
+    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
454
+
455
+    # and set any options; do chmod last to preserve setuid bits.
456
+    #
457
+    # If any of these fail, we abort the whole thing.  If we want to
458
+    # ignore errors from any of these, just make sure not to ignore
459
+    # errors from the above "$doit $cpprog $src $dsttmp" command.
460
+    #
461
+    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
462
+    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
463
+    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
464
+    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
465
+
466
+    # If -C, don't bother to copy if it wouldn't change the file.
467
+    if $copy_on_change &&
468
+       old=`LC_ALL=C ls -dlL "$dst"	2>/dev/null` &&
469
+       new=`LC_ALL=C ls -dlL "$dsttmp"	2>/dev/null` &&
470
+
471
+       eval "$initialize_posix_glob" &&
472
+       $posix_glob set -f &&
473
+       set X $old && old=:$2:$4:$5:$6 &&
474
+       set X $new && new=:$2:$4:$5:$6 &&
475
+       $posix_glob set +f &&
476
+
477
+       test "$old" = "$new" &&
478
+       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
479
+    then
480
+      rm -f "$dsttmp"
481
+    else
482
+      # Rename the file to the real destination.
483
+      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
484
+
485
+      # The rename failed, perhaps because mv can't rename something else
486
+      # to itself, or perhaps because mv is so ancient that it does not
487
+      # support -f.
488
+      {
489
+	# Now remove or move aside any old file at destination location.
490
+	# We try this two ways since rm can't unlink itself on some
491
+	# systems and the destination file might be busy for other
492
+	# reasons.  In this case, the final cleanup might fail but the new
493
+	# file should still install successfully.
494
+	{
495
+	  test ! -f "$dst" ||
496
+	  $doit $rmcmd -f "$dst" 2>/dev/null ||
497
+	  { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
498
+	    { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
499
+	  } ||
500
+	  { echo "$0: cannot unlink or rename $dst" >&2
501
+	    (exit 1); exit 1
502
+	  }
503
+	} &&
504
+
505
+	# Now rename the file to the real destination.
506
+	$doit $mvcmd "$dsttmp" "$dst"
507
+      }
508
+    fi || exit 1
509
+
510
+    trap '' 0
511
+  fi
512
+done
513
+
514
+# Local variables:
515
+# eval: (add-hook 'write-file-hooks 'time-stamp)
516
+# time-stamp-start: "scriptversion="
517
+# time-stamp-format: "%:y-%02m-%02d.%02H"
518
+# time-stamp-time-zone: "UTC"
519
+# time-stamp-end: "; # UTC"
520
+# End:

+ 7851
- 0
build/libtool.m4
File diff suppressed because it is too large
View File


+ 9642
- 0
build/ltmain.sh
File diff suppressed because it is too large
View File


+ 369
- 0
build/ltoptions.m4 View File

@@ -0,0 +1,369 @@
1
+# Helper functions for option handling.                    -*- Autoconf -*-
2
+#
3
+#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4
+#   Inc.
5
+#   Written by Gary V. Vaughan, 2004
6
+#
7
+# This file is free software; the Free Software Foundation gives
8
+# unlimited permission to copy and/or distribute it, with or without
9
+# modifications, as long as this notice is preserved.
10
+
11
+# serial 7 ltoptions.m4
12
+
13
+# This is to help aclocal find these macros, as it can't see m4_define.
14
+AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
15
+
16
+
17
+# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
18
+# ------------------------------------------
19
+m4_define([_LT_MANGLE_OPTION],
20
+[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
21
+
22
+
23
+# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
24
+# ---------------------------------------
25
+# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
26
+# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
27
+# saved as a flag.
28
+m4_define([_LT_SET_OPTION],
29
+[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
30
+m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
31
+        _LT_MANGLE_DEFUN([$1], [$2]),
32
+    [m4_warning([Unknown $1 option `$2'])])[]dnl
33
+])
34
+
35
+
36
+# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
37
+# ------------------------------------------------------------
38
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
39
+m4_define([_LT_IF_OPTION],
40
+[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
41
+
42
+
43
+# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
44
+# -------------------------------------------------------
45
+# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
46
+# are set.
47
+m4_define([_LT_UNLESS_OPTIONS],
48
+[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
49
+	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
50
+		      [m4_define([$0_found])])])[]dnl
51
+m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
52
+])[]dnl
53
+])
54
+
55
+
56
+# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
57
+# ----------------------------------------
58
+# OPTION-LIST is a space-separated list of Libtool options associated
59
+# with MACRO-NAME.  If any OPTION has a matching handler declared with
60
+# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
61
+# the unknown option and exit.
62
+m4_defun([_LT_SET_OPTIONS],
63
+[# Set options
64
+m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
65
+    [_LT_SET_OPTION([$1], _LT_Option)])
66
+
67
+m4_if([$1],[LT_INIT],[
68
+  dnl
69
+  dnl Simply set some default values (i.e off) if boolean options were not
70
+  dnl specified:
71
+  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
72
+  ])
73
+  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
74
+  ])
75
+  dnl
76
+  dnl If no reference was made to various pairs of opposing options, then
77
+  dnl we run the default mode handler for the pair.  For example, if neither
78
+  dnl `shared' nor `disable-shared' was passed, we enable building of shared
79
+  dnl archives by default:
80
+  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
81
+  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
82
+  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
83
+  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
84
+  		   [_LT_ENABLE_FAST_INSTALL])
85
+  ])
86
+])# _LT_SET_OPTIONS
87
+
88
+
89
+## --------------------------------- ##
90
+## Macros to handle LT_INIT options. ##
91
+## --------------------------------- ##
92
+
93
+# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
94
+# -----------------------------------------
95
+m4_define([_LT_MANGLE_DEFUN],
96
+[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
97
+
98
+
99
+# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
100
+# -----------------------------------------------
101
+m4_define([LT_OPTION_DEFINE],
102
+[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
103
+])# LT_OPTION_DEFINE
104
+
105
+
106
+# dlopen
107
+# ------
108
+LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
109
+])
110
+
111
+AU_DEFUN([AC_LIBTOOL_DLOPEN],
112
+[_LT_SET_OPTION([LT_INIT], [dlopen])
113
+AC_DIAGNOSE([obsolete],
114
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
115
+put the `dlopen' option into LT_INIT's first parameter.])
116
+])
117
+
118
+dnl aclocal-1.4 backwards compatibility:
119
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
120
+
121
+
122
+# win32-dll
123
+# ---------
124
+# Declare package support for building win32 dll's.
125
+LT_OPTION_DEFINE([LT_INIT], [win32-dll],
126
+[enable_win32_dll=yes
127
+
128
+case $host in
129
+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
130
+  AC_CHECK_TOOL(AS, as, false)
131
+  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
132
+  AC_CHECK_TOOL(OBJDUMP, objdump, false)
133
+  ;;
134
+esac
135
+
136
+test -z "$AS" && AS=as
137
+_LT_DECL([], [AS],      [1], [Assembler program])dnl
138
+
139
+test -z "$DLLTOOL" && DLLTOOL=dlltool
140
+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
141
+
142
+test -z "$OBJDUMP" && OBJDUMP=objdump
143
+_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
144
+])# win32-dll
145
+
146
+AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
147
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
148
+_LT_SET_OPTION([LT_INIT], [win32-dll])
149
+AC_DIAGNOSE([obsolete],
150
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
151
+put the `win32-dll' option into LT_INIT's first parameter.])
152
+])
153
+
154
+dnl aclocal-1.4 backwards compatibility:
155
+dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
156
+
157
+
158
+# _LT_ENABLE_SHARED([DEFAULT])
159
+# ----------------------------
160
+# implement the --enable-shared flag, and supports the `shared' and
161
+# `disable-shared' LT_INIT options.
162
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
163
+m4_define([_LT_ENABLE_SHARED],
164
+[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
165
+AC_ARG_ENABLE([shared],
166
+    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
167
+	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
168
+    [p=${PACKAGE-default}
169
+    case $enableval in
170
+    yes) enable_shared=yes ;;
171
+    no) enable_shared=no ;;
172
+    *)
173
+      enable_shared=no
174
+      # Look at the argument we got.  We use all the common list separators.
175
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
176
+      for pkg in $enableval; do
177
+	IFS="$lt_save_ifs"
178
+	if test "X$pkg" = "X$p"; then
179
+	  enable_shared=yes
180
+	fi
181
+      done
182
+      IFS="$lt_save_ifs"
183
+      ;;
184
+    esac],
185
+    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
186
+
187
+    _LT_DECL([build_libtool_libs], [enable_shared], [0],
188
+	[Whether or not to build shared libraries])
189
+])# _LT_ENABLE_SHARED
190
+
191
+LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
192
+LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
193
+
194
+# Old names:
195
+AC_DEFUN([AC_ENABLE_SHARED],
196
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
197
+])
198
+
199
+AC_DEFUN([AC_DISABLE_SHARED],
200
+[_LT_SET_OPTION([LT_INIT], [disable-shared])
201
+])
202
+
203
+AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
204
+AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
205
+
206
+dnl aclocal-1.4 backwards compatibility:
207
+dnl AC_DEFUN([AM_ENABLE_SHARED], [])
208
+dnl AC_DEFUN([AM_DISABLE_SHARED], [])
209
+
210
+
211
+
212
+# _LT_ENABLE_STATIC([DEFAULT])
213
+# ----------------------------
214
+# implement the --enable-static flag, and support the `static' and
215
+# `disable-static' LT_INIT options.
216
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
217
+m4_define([_LT_ENABLE_STATIC],
218
+[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
219
+AC_ARG_ENABLE([static],
220
+    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
221
+	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
222
+    [p=${PACKAGE-default}
223
+    case $enableval in
224
+    yes) enable_static=yes ;;
225
+    no) enable_static=no ;;
226
+    *)
227
+     enable_static=no
228
+      # Look at the argument we got.  We use all the common list separators.
229
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
230
+      for pkg in $enableval; do
231
+	IFS="$lt_save_ifs"
232
+	if test "X$pkg" = "X$p"; then
233
+	  enable_static=yes
234
+	fi
235
+      done
236
+      IFS="$lt_save_ifs"
237
+      ;;
238
+    esac],
239
+    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
240
+
241
+    _LT_DECL([build_old_libs], [enable_static], [0],
242
+	[Whether or not to build static libraries])
243
+])# _LT_ENABLE_STATIC
244
+
<