Merge lp:~didrocks/ubuntuone-client/dont-suffer-zg-crash into lp:ubuntuone-client

Proposed by Didier Roche-Tolomelli
Status: Rejected
Rejected by: dobey
Proposed branch: lp:~didrocks/ubuntuone-client/dont-suffer-zg-crash
Merge into: lp:ubuntuone-client
Diff against target: 170206 lines (has conflicts)
Conflict adding file COPYING.icons.  Moved existing file to COPYING.icons.moved.
Conflict adding file COPYING.  Moved existing file to COPYING.moved.
Conflict adding file HACKING.  Moved existing file to HACKING.moved.
Conflict adding file Makefile.am.  Moved existing file to Makefile.am.moved.
Conflict adding file README.  Moved existing file to README.moved.
Conflict adding file bin.  Moved existing file to bin.moved.
Conflict adding file configure.ac.  Moved existing file to configure.ac.moved.
Conflict adding file contrib.  Moved existing file to contrib.moved.
Conflict adding file data.  Moved existing file to data.moved.
Conflict adding file docs.  Moved existing file to docs.moved.
Conflict adding file gsd-plugin.  Moved existing file to gsd-plugin.moved.
Conflict adding file libsyncdaemon.  Moved existing file to libsyncdaemon.moved.
Conflict adding file nautilus.  Moved existing file to nautilus.moved.
Conflict adding file po.  Moved existing file to po.moved.
Conflict adding file pylintrc.  Moved existing file to pylintrc.moved.
Conflict adding file tests.  Moved existing file to tests.moved.
Conflict adding file ubuntuone.  Moved existing file to ubuntuone.moved.
To merge this branch: bzr merge lp:~didrocks/ubuntuone-client/dont-suffer-zg-crash
Reviewer Review Type Date Requested Status
dobey (community) Disapprove
Review via email: mp+67285@code.launchpad.net

Description of the change

Don't crash if zeitgeist is crashing, just avoid logging.

To post a comment you must log in.
Revision history for this message
dobey (dobey) wrote :

You're attempting to merge the packaging branch in. That won't work here.

review: Disapprove

Unmerged revisions

84. By Didier Roche-Tolomelli

don't crash if zeitgeist can't initialize

83. By dobey

* New upstream release.
  - Launcher progress bar is uninformative (LP: #779851)
  - libsyncdaemon header breaks compilation in C++ (LP: #801263)
  - Install extensions to correct ABI directories (LP: #800723)
  - Never sees NetworkManager connection (LP: #791548)
* Replace gconf-defualts with a gsettings schema override for g-s-d plug-in
* Convert to dh_python2
* Don't hardcode the ABI version for the g-s-d plug-ins directory

82. By dobey

* Use Depends instead of Recommends to pull in Unity API (LP: #770379)
* New upstream release.
  - Remove patches already included in upstream
  - Uploads fail due to starvation (LP: #767466, #766102)
  - Logging defaults to DEBUG, should be INFO (LP: #765441)
* Require new version of ubuntuone-storage-protocol for LP: #767466

81. By dobey

Fix the Recommends for Unity API (LP: #770379)

80. By dobey

[Chris Coulson]
Only free the GconfValue when it is not NULL (LP: #767825)

79. By dobey

* 01_broken-sso-dbus-api.patch:
  - Fix the broken usage of SSO D-Bus API (LP: #764646, #759197)
* 02_check-enabled-before-dbus.patch:
  - Check that file sync is enabled before D-Bus connection (LP: #759714)

78. By dobey

* New upstream release.
  - ZipQueue does not trigger deferred when cancelled (LP: #757864)
  - AssertionError in aggregator (LP: #759084)
  - Ubuntu One folder bookmark not created (LP: #759197)

77. By dobey

* New upstream release.
  - Avoid conflict when same file already exists locally (LP: #711389)
  - Must move fils to trash on deletion (LP: #690673)
  - Support disconnection during initial connect attempt (LP: #711211)
  - Log version number on startup (LP: #715455)
  - Memory usage too high (LP: #721483)
  - Unsubscribed folders show as synced, if they exist (LP: #741835)
  - gnome-settings-daemon crash in g_str_hash (LP: #744383)
  - Should not re-queue uploads directly (LP: #744608)
  - No feedback when creating folder from symlink fails (LP: #747299)
  - [FFE] Use API to set urgency from background process (LP: #747677)
  - Open control panel to volumes when quota exceeded (LP: #702176)
  - Set the launcher to urgent when quota exceeded (LP: #702183)
  - nautilus crash in g_str_hash (LP: #724882)
  - Disable/enable file sync is buggy (LP: #744980)

[Chris Coulson]
* gnome-settings-daemon crash in g_return_fail_if_warning (LP: #744980)

76. By dobey

* debian/control:
  - Conflict to deal with icons moving to ubuntuone-client (LP: #741529)

75. By dobey

* New upstream release.
  - Too many download notifications (LP: #740377)
* debian/rules:
  - Remove the .la and .a files from the g-s-d extensions directory

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'COPYING'
2--- COPYING 1970-01-01 00:00:00 +0000
3+++ COPYING 2011-07-08 07:12:36 +0000
4@@ -0,0 +1,674 @@
5+ GNU GENERAL PUBLIC LICENSE
6+ Version 3, 29 June 2007
7+
8+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
9+ Everyone is permitted to copy and distribute verbatim copies
10+ of this license document, but changing it is not allowed.
11+
12+ Preamble
13+
14+ The GNU General Public License is a free, copyleft license for
15+software and other kinds of works.
16+
17+ The licenses for most software and other practical works are designed
18+to take away your freedom to share and change the works. By contrast,
19+the GNU General Public License is intended to guarantee your freedom to
20+share and change all versions of a program--to make sure it remains free
21+software for all its users. We, the Free Software Foundation, use the
22+GNU General Public License for most of our software; it applies also to
23+any other work released this way by its authors. You can apply it to
24+your programs, too.
25+
26+ When we speak of free software, we are referring to freedom, not
27+price. Our General Public Licenses are designed to make sure that you
28+have the freedom to distribute copies of free software (and charge for
29+them if you wish), that you receive source code or can get it if you
30+want it, that you can change the software or use pieces of it in new
31+free programs, and that you know you can do these things.
32+
33+ To protect your rights, we need to prevent others from denying you
34+these rights or asking you to surrender the rights. Therefore, you have
35+certain responsibilities if you distribute copies of the software, or if
36+you modify it: responsibilities to respect the freedom of others.
37+
38+ For example, if you distribute copies of such a program, whether
39+gratis or for a fee, you must pass on to the recipients the same
40+freedoms that you received. You must make sure that they, too, receive
41+or can get the source code. And you must show them these terms so they
42+know their rights.
43+
44+ Developers that use the GNU GPL protect your rights with two steps:
45+(1) assert copyright on the software, and (2) offer you this License
46+giving you legal permission to copy, distribute and/or modify it.
47+
48+ For the developers' and authors' protection, the GPL clearly explains
49+that there is no warranty for this free software. For both users' and
50+authors' sake, the GPL requires that modified versions be marked as
51+changed, so that their problems will not be attributed erroneously to
52+authors of previous versions.
53+
54+ Some devices are designed to deny users access to install or run
55+modified versions of the software inside them, although the manufacturer
56+can do so. This is fundamentally incompatible with the aim of
57+protecting users' freedom to change the software. The systematic
58+pattern of such abuse occurs in the area of products for individuals to
59+use, which is precisely where it is most unacceptable. Therefore, we
60+have designed this version of the GPL to prohibit the practice for those
61+products. If such problems arise substantially in other domains, we
62+stand ready to extend this provision to those domains in future versions
63+of the GPL, as needed to protect the freedom of users.
64+
65+ Finally, every program is threatened constantly by software patents.
66+States should not allow patents to restrict development and use of
67+software on general-purpose computers, but in those that do, we wish to
68+avoid the special danger that patents applied to a free program could
69+make it effectively proprietary. To prevent this, the GPL assures that
70+patents cannot be used to render the program non-free.
71+
72+ The precise terms and conditions for copying, distribution and
73+modification follow.
74+
75+ TERMS AND CONDITIONS
76+
77+ 0. Definitions.
78+
79+ "This License" refers to version 3 of the GNU General Public License.
80+
81+ "Copyright" also means copyright-like laws that apply to other kinds of
82+works, such as semiconductor masks.
83+
84+ "The Program" refers to any copyrightable work licensed under this
85+License. Each licensee is addressed as "you". "Licensees" and
86+"recipients" may be individuals or organizations.
87+
88+ To "modify" a work means to copy from or adapt all or part of the work
89+in a fashion requiring copyright permission, other than the making of an
90+exact copy. The resulting work is called a "modified version" of the
91+earlier work or a work "based on" the earlier work.
92+
93+ A "covered work" means either the unmodified Program or a work based
94+on the Program.
95+
96+ To "propagate" a work means to do anything with it that, without
97+permission, would make you directly or secondarily liable for
98+infringement under applicable copyright law, except executing it on a
99+computer or modifying a private copy. Propagation includes copying,
100+distribution (with or without modification), making available to the
101+public, and in some countries other activities as well.
102+
103+ To "convey" a work means any kind of propagation that enables other
104+parties to make or receive copies. Mere interaction with a user through
105+a computer network, with no transfer of a copy, is not conveying.
106+
107+ An interactive user interface displays "Appropriate Legal Notices"
108+to the extent that it includes a convenient and prominently visible
109+feature that (1) displays an appropriate copyright notice, and (2)
110+tells the user that there is no warranty for the work (except to the
111+extent that warranties are provided), that licensees may convey the
112+work under this License, and how to view a copy of this License. If
113+the interface presents a list of user commands or options, such as a
114+menu, a prominent item in the list meets this criterion.
115+
116+ 1. Source Code.
117+
118+ The "source code" for a work means the preferred form of the work
119+for making modifications to it. "Object code" means any non-source
120+form of a work.
121+
122+ A "Standard Interface" means an interface that either is an official
123+standard defined by a recognized standards body, or, in the case of
124+interfaces specified for a particular programming language, one that
125+is widely used among developers working in that language.
126+
127+ The "System Libraries" of an executable work include anything, other
128+than the work as a whole, that (a) is included in the normal form of
129+packaging a Major Component, but which is not part of that Major
130+Component, and (b) serves only to enable use of the work with that
131+Major Component, or to implement a Standard Interface for which an
132+implementation is available to the public in source code form. A
133+"Major Component", in this context, means a major essential component
134+(kernel, window system, and so on) of the specific operating system
135+(if any) on which the executable work runs, or a compiler used to
136+produce the work, or an object code interpreter used to run it.
137+
138+ The "Corresponding Source" for a work in object code form means all
139+the source code needed to generate, install, and (for an executable
140+work) run the object code and to modify the work, including scripts to
141+control those activities. However, it does not include the work's
142+System Libraries, or general-purpose tools or generally available free
143+programs which are used unmodified in performing those activities but
144+which are not part of the work. For example, Corresponding Source
145+includes interface definition files associated with source files for
146+the work, and the source code for shared libraries and dynamically
147+linked subprograms that the work is specifically designed to require,
148+such as by intimate data communication or control flow between those
149+subprograms and other parts of the work.
150+
151+ The Corresponding Source need not include anything that users
152+can regenerate automatically from other parts of the Corresponding
153+Source.
154+
155+ The Corresponding Source for a work in source code form is that
156+same work.
157+
158+ 2. Basic Permissions.
159+
160+ All rights granted under this License are granted for the term of
161+copyright on the Program, and are irrevocable provided the stated
162+conditions are met. This License explicitly affirms your unlimited
163+permission to run the unmodified Program. The output from running a
164+covered work is covered by this License only if the output, given its
165+content, constitutes a covered work. This License acknowledges your
166+rights of fair use or other equivalent, as provided by copyright law.
167+
168+ You may make, run and propagate covered works that you do not
169+convey, without conditions so long as your license otherwise remains
170+in force. You may convey covered works to others for the sole purpose
171+of having them make modifications exclusively for you, or provide you
172+with facilities for running those works, provided that you comply with
173+the terms of this License in conveying all material for which you do
174+not control copyright. Those thus making or running the covered works
175+for you must do so exclusively on your behalf, under your direction
176+and control, on terms that prohibit them from making any copies of
177+your copyrighted material outside their relationship with you.
178+
179+ Conveying under any other circumstances is permitted solely under
180+the conditions stated below. Sublicensing is not allowed; section 10
181+makes it unnecessary.
182+
183+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
184+
185+ No covered work shall be deemed part of an effective technological
186+measure under any applicable law fulfilling obligations under article
187+11 of the WIPO copyright treaty adopted on 20 December 1996, or
188+similar laws prohibiting or restricting circumvention of such
189+measures.
190+
191+ When you convey a covered work, you waive any legal power to forbid
192+circumvention of technological measures to the extent such circumvention
193+is effected by exercising rights under this License with respect to
194+the covered work, and you disclaim any intention to limit operation or
195+modification of the work as a means of enforcing, against the work's
196+users, your or third parties' legal rights to forbid circumvention of
197+technological measures.
198+
199+ 4. Conveying Verbatim Copies.
200+
201+ You may convey verbatim copies of the Program's source code as you
202+receive it, in any medium, provided that you conspicuously and
203+appropriately publish on each copy an appropriate copyright notice;
204+keep intact all notices stating that this License and any
205+non-permissive terms added in accord with section 7 apply to the code;
206+keep intact all notices of the absence of any warranty; and give all
207+recipients a copy of this License along with the Program.
208+
209+ You may charge any price or no price for each copy that you convey,
210+and you may offer support or warranty protection for a fee.
211+
212+ 5. Conveying Modified Source Versions.
213+
214+ You may convey a work based on the Program, or the modifications to
215+produce it from the Program, in the form of source code under the
216+terms of section 4, provided that you also meet all of these conditions:
217+
218+ a) The work must carry prominent notices stating that you modified
219+ it, and giving a relevant date.
220+
221+ b) The work must carry prominent notices stating that it is
222+ released under this License and any conditions added under section
223+ 7. This requirement modifies the requirement in section 4 to
224+ "keep intact all notices".
225+
226+ c) You must license the entire work, as a whole, under this
227+ License to anyone who comes into possession of a copy. This
228+ License will therefore apply, along with any applicable section 7
229+ additional terms, to the whole of the work, and all its parts,
230+ regardless of how they are packaged. This License gives no
231+ permission to license the work in any other way, but it does not
232+ invalidate such permission if you have separately received it.
233+
234+ d) If the work has interactive user interfaces, each must display
235+ Appropriate Legal Notices; however, if the Program has interactive
236+ interfaces that do not display Appropriate Legal Notices, your
237+ work need not make them do so.
238+
239+ A compilation of a covered work with other separate and independent
240+works, which are not by their nature extensions of the covered work,
241+and which are not combined with it such as to form a larger program,
242+in or on a volume of a storage or distribution medium, is called an
243+"aggregate" if the compilation and its resulting copyright are not
244+used to limit the access or legal rights of the compilation's users
245+beyond what the individual works permit. Inclusion of a covered work
246+in an aggregate does not cause this License to apply to the other
247+parts of the aggregate.
248+
249+ 6. Conveying Non-Source Forms.
250+
251+ You may convey a covered work in object code form under the terms
252+of sections 4 and 5, provided that you also convey the
253+machine-readable Corresponding Source under the terms of this License,
254+in one of these ways:
255+
256+ a) Convey the object code in, or embodied in, a physical product
257+ (including a physical distribution medium), accompanied by the
258+ Corresponding Source fixed on a durable physical medium
259+ customarily used for software interchange.
260+
261+ b) Convey the object code in, or embodied in, a physical product
262+ (including a physical distribution medium), accompanied by a
263+ written offer, valid for at least three years and valid for as
264+ long as you offer spare parts or customer support for that product
265+ model, to give anyone who possesses the object code either (1) a
266+ copy of the Corresponding Source for all the software in the
267+ product that is covered by this License, on a durable physical
268+ medium customarily used for software interchange, for a price no
269+ more than your reasonable cost of physically performing this
270+ conveying of source, or (2) access to copy the
271+ Corresponding Source from a network server at no charge.
272+
273+ c) Convey individual copies of the object code with a copy of the
274+ written offer to provide the Corresponding Source. This
275+ alternative is allowed only occasionally and noncommercially, and
276+ only if you received the object code with such an offer, in accord
277+ with subsection 6b.
278+
279+ d) Convey the object code by offering access from a designated
280+ place (gratis or for a charge), and offer equivalent access to the
281+ Corresponding Source in the same way through the same place at no
282+ further charge. You need not require recipients to copy the
283+ Corresponding Source along with the object code. If the place to
284+ copy the object code is a network server, the Corresponding Source
285+ may be on a different server (operated by you or a third party)
286+ that supports equivalent copying facilities, provided you maintain
287+ clear directions next to the object code saying where to find the
288+ Corresponding Source. Regardless of what server hosts the
289+ Corresponding Source, you remain obligated to ensure that it is
290+ available for as long as needed to satisfy these requirements.
291+
292+ e) Convey the object code using peer-to-peer transmission, provided
293+ you inform other peers where the object code and Corresponding
294+ Source of the work are being offered to the general public at no
295+ charge under subsection 6d.
296+
297+ A separable portion of the object code, whose source code is excluded
298+from the Corresponding Source as a System Library, need not be
299+included in conveying the object code work.
300+
301+ A "User Product" is either (1) a "consumer product", which means any
302+tangible personal property which is normally used for personal, family,
303+or household purposes, or (2) anything designed or sold for incorporation
304+into a dwelling. In determining whether a product is a consumer product,
305+doubtful cases shall be resolved in favor of coverage. For a particular
306+product received by a particular user, "normally used" refers to a
307+typical or common use of that class of product, regardless of the status
308+of the particular user or of the way in which the particular user
309+actually uses, or expects or is expected to use, the product. A product
310+is a consumer product regardless of whether the product has substantial
311+commercial, industrial or non-consumer uses, unless such uses represent
312+the only significant mode of use of the product.
313+
314+ "Installation Information" for a User Product means any methods,
315+procedures, authorization keys, or other information required to install
316+and execute modified versions of a covered work in that User Product from
317+a modified version of its Corresponding Source. The information must
318+suffice to ensure that the continued functioning of the modified object
319+code is in no case prevented or interfered with solely because
320+modification has been made.
321+
322+ If you convey an object code work under this section in, or with, or
323+specifically for use in, a User Product, and the conveying occurs as
324+part of a transaction in which the right of possession and use of the
325+User Product is transferred to the recipient in perpetuity or for a
326+fixed term (regardless of how the transaction is characterized), the
327+Corresponding Source conveyed under this section must be accompanied
328+by the Installation Information. But this requirement does not apply
329+if neither you nor any third party retains the ability to install
330+modified object code on the User Product (for example, the work has
331+been installed in ROM).
332+
333+ The requirement to provide Installation Information does not include a
334+requirement to continue to provide support service, warranty, or updates
335+for a work that has been modified or installed by the recipient, or for
336+the User Product in which it has been modified or installed. Access to a
337+network may be denied when the modification itself materially and
338+adversely affects the operation of the network or violates the rules and
339+protocols for communication across the network.
340+
341+ Corresponding Source conveyed, and Installation Information provided,
342+in accord with this section must be in a format that is publicly
343+documented (and with an implementation available to the public in
344+source code form), and must require no special password or key for
345+unpacking, reading or copying.
346+
347+ 7. Additional Terms.
348+
349+ "Additional permissions" are terms that supplement the terms of this
350+License by making exceptions from one or more of its conditions.
351+Additional permissions that are applicable to the entire Program shall
352+be treated as though they were included in this License, to the extent
353+that they are valid under applicable law. If additional permissions
354+apply only to part of the Program, that part may be used separately
355+under those permissions, but the entire Program remains governed by
356+this License without regard to the additional permissions.
357+
358+ When you convey a copy of a covered work, you may at your option
359+remove any additional permissions from that copy, or from any part of
360+it. (Additional permissions may be written to require their own
361+removal in certain cases when you modify the work.) You may place
362+additional permissions on material, added by you to a covered work,
363+for which you have or can give appropriate copyright permission.
364+
365+ Notwithstanding any other provision of this License, for material you
366+add to a covered work, you may (if authorized by the copyright holders of
367+that material) supplement the terms of this License with terms:
368+
369+ a) Disclaiming warranty or limiting liability differently from the
370+ terms of sections 15 and 16 of this License; or
371+
372+ b) Requiring preservation of specified reasonable legal notices or
373+ author attributions in that material or in the Appropriate Legal
374+ Notices displayed by works containing it; or
375+
376+ c) Prohibiting misrepresentation of the origin of that material, or
377+ requiring that modified versions of such material be marked in
378+ reasonable ways as different from the original version; or
379+
380+ d) Limiting the use for publicity purposes of names of licensors or
381+ authors of the material; or
382+
383+ e) Declining to grant rights under trademark law for use of some
384+ trade names, trademarks, or service marks; or
385+
386+ f) Requiring indemnification of licensors and authors of that
387+ material by anyone who conveys the material (or modified versions of
388+ it) with contractual assumptions of liability to the recipient, for
389+ any liability that these contractual assumptions directly impose on
390+ those licensors and authors.
391+
392+ All other non-permissive additional terms are considered "further
393+restrictions" within the meaning of section 10. If the Program as you
394+received it, or any part of it, contains a notice stating that it is
395+governed by this License along with a term that is a further
396+restriction, you may remove that term. If a license document contains
397+a further restriction but permits relicensing or conveying under this
398+License, you may add to a covered work material governed by the terms
399+of that license document, provided that the further restriction does
400+not survive such relicensing or conveying.
401+
402+ If you add terms to a covered work in accord with this section, you
403+must place, in the relevant source files, a statement of the
404+additional terms that apply to those files, or a notice indicating
405+where to find the applicable terms.
406+
407+ Additional terms, permissive or non-permissive, may be stated in the
408+form of a separately written license, or stated as exceptions;
409+the above requirements apply either way.
410+
411+ 8. Termination.
412+
413+ You may not propagate or modify a covered work except as expressly
414+provided under this License. Any attempt otherwise to propagate or
415+modify it is void, and will automatically terminate your rights under
416+this License (including any patent licenses granted under the third
417+paragraph of section 11).
418+
419+ However, if you cease all violation of this License, then your
420+license from a particular copyright holder is reinstated (a)
421+provisionally, unless and until the copyright holder explicitly and
422+finally terminates your license, and (b) permanently, if the copyright
423+holder fails to notify you of the violation by some reasonable means
424+prior to 60 days after the cessation.
425+
426+ Moreover, your license from a particular copyright holder is
427+reinstated permanently if the copyright holder notifies you of the
428+violation by some reasonable means, this is the first time you have
429+received notice of violation of this License (for any work) from that
430+copyright holder, and you cure the violation prior to 30 days after
431+your receipt of the notice.
432+
433+ Termination of your rights under this section does not terminate the
434+licenses of parties who have received copies or rights from you under
435+this License. If your rights have been terminated and not permanently
436+reinstated, you do not qualify to receive new licenses for the same
437+material under section 10.
438+
439+ 9. Acceptance Not Required for Having Copies.
440+
441+ You are not required to accept this License in order to receive or
442+run a copy of the Program. Ancillary propagation of a covered work
443+occurring solely as a consequence of using peer-to-peer transmission
444+to receive a copy likewise does not require acceptance. However,
445+nothing other than this License grants you permission to propagate or
446+modify any covered work. These actions infringe copyright if you do
447+not accept this License. Therefore, by modifying or propagating a
448+covered work, you indicate your acceptance of this License to do so.
449+
450+ 10. Automatic Licensing of Downstream Recipients.
451+
452+ Each time you convey a covered work, the recipient automatically
453+receives a license from the original licensors, to run, modify and
454+propagate that work, subject to this License. You are not responsible
455+for enforcing compliance by third parties with this License.
456+
457+ An "entity transaction" is a transaction transferring control of an
458+organization, or substantially all assets of one, or subdividing an
459+organization, or merging organizations. If propagation of a covered
460+work results from an entity transaction, each party to that
461+transaction who receives a copy of the work also receives whatever
462+licenses to the work the party's predecessor in interest had or could
463+give under the previous paragraph, plus a right to possession of the
464+Corresponding Source of the work from the predecessor in interest, if
465+the predecessor has it or can get it with reasonable efforts.
466+
467+ You may not impose any further restrictions on the exercise of the
468+rights granted or affirmed under this License. For example, you may
469+not impose a license fee, royalty, or other charge for exercise of
470+rights granted under this License, and you may not initiate litigation
471+(including a cross-claim or counterclaim in a lawsuit) alleging that
472+any patent claim is infringed by making, using, selling, offering for
473+sale, or importing the Program or any portion of it.
474+
475+ 11. Patents.
476+
477+ A "contributor" is a copyright holder who authorizes use under this
478+License of the Program or a work on which the Program is based. The
479+work thus licensed is called the contributor's "contributor version".
480+
481+ A contributor's "essential patent claims" are all patent claims
482+owned or controlled by the contributor, whether already acquired or
483+hereafter acquired, that would be infringed by some manner, permitted
484+by this License, of making, using, or selling its contributor version,
485+but do not include claims that would be infringed only as a
486+consequence of further modification of the contributor version. For
487+purposes of this definition, "control" includes the right to grant
488+patent sublicenses in a manner consistent with the requirements of
489+this License.
490+
491+ Each contributor grants you a non-exclusive, worldwide, royalty-free
492+patent license under the contributor's essential patent claims, to
493+make, use, sell, offer for sale, import and otherwise run, modify and
494+propagate the contents of its contributor version.
495+
496+ In the following three paragraphs, a "patent license" is any express
497+agreement or commitment, however denominated, not to enforce a patent
498+(such as an express permission to practice a patent or covenant not to
499+sue for patent infringement). To "grant" such a patent license to a
500+party means to make such an agreement or commitment not to enforce a
501+patent against the party.
502+
503+ If you convey a covered work, knowingly relying on a patent license,
504+and the Corresponding Source of the work is not available for anyone
505+to copy, free of charge and under the terms of this License, through a
506+publicly available network server or other readily accessible means,
507+then you must either (1) cause the Corresponding Source to be so
508+available, or (2) arrange to deprive yourself of the benefit of the
509+patent license for this particular work, or (3) arrange, in a manner
510+consistent with the requirements of this License, to extend the patent
511+license to downstream recipients. "Knowingly relying" means you have
512+actual knowledge that, but for the patent license, your conveying the
513+covered work in a country, or your recipient's use of the covered work
514+in a country, would infringe one or more identifiable patents in that
515+country that you have reason to believe are valid.
516+
517+ If, pursuant to or in connection with a single transaction or
518+arrangement, you convey, or propagate by procuring conveyance of, a
519+covered work, and grant a patent license to some of the parties
520+receiving the covered work authorizing them to use, propagate, modify
521+or convey a specific copy of the covered work, then the patent license
522+you grant is automatically extended to all recipients of the covered
523+work and works based on it.
524+
525+ A patent license is "discriminatory" if it does not include within
526+the scope of its coverage, prohibits the exercise of, or is
527+conditioned on the non-exercise of one or more of the rights that are
528+specifically granted under this License. You may not convey a covered
529+work if you are a party to an arrangement with a third party that is
530+in the business of distributing software, under which you make payment
531+to the third party based on the extent of your activity of conveying
532+the work, and under which the third party grants, to any of the
533+parties who would receive the covered work from you, a discriminatory
534+patent license (a) in connection with copies of the covered work
535+conveyed by you (or copies made from those copies), or (b) primarily
536+for and in connection with specific products or compilations that
537+contain the covered work, unless you entered into that arrangement,
538+or that patent license was granted, prior to 28 March 2007.
539+
540+ Nothing in this License shall be construed as excluding or limiting
541+any implied license or other defenses to infringement that may
542+otherwise be available to you under applicable patent law.
543+
544+ 12. No Surrender of Others' Freedom.
545+
546+ If conditions are imposed on you (whether by court order, agreement or
547+otherwise) that contradict the conditions of this License, they do not
548+excuse you from the conditions of this License. If you cannot convey a
549+covered work so as to satisfy simultaneously your obligations under this
550+License and any other pertinent obligations, then as a consequence you may
551+not convey it at all. For example, if you agree to terms that obligate you
552+to collect a royalty for further conveying from those to whom you convey
553+the Program, the only way you could satisfy both those terms and this
554+License would be to refrain entirely from conveying the Program.
555+
556+ 13. Use with the GNU Affero General Public License.
557+
558+ Notwithstanding any other provision of this License, you have
559+permission to link or combine any covered work with a work licensed
560+under version 3 of the GNU Affero General Public License into a single
561+combined work, and to convey the resulting work. The terms of this
562+License will continue to apply to the part which is the covered work,
563+but the special requirements of the GNU Affero General Public License,
564+section 13, concerning interaction through a network will apply to the
565+combination as such.
566+
567+ 14. Revised Versions of this License.
568+
569+ The Free Software Foundation may publish revised and/or new versions of
570+the GNU General Public License from time to time. Such new versions will
571+be similar in spirit to the present version, but may differ in detail to
572+address new problems or concerns.
573+
574+ Each version is given a distinguishing version number. If the
575+Program specifies that a certain numbered version of the GNU General
576+Public License "or any later version" applies to it, you have the
577+option of following the terms and conditions either of that numbered
578+version or of any later version published by the Free Software
579+Foundation. If the Program does not specify a version number of the
580+GNU General Public License, you may choose any version ever published
581+by the Free Software Foundation.
582+
583+ If the Program specifies that a proxy can decide which future
584+versions of the GNU General Public License can be used, that proxy's
585+public statement of acceptance of a version permanently authorizes you
586+to choose that version for the Program.
587+
588+ Later license versions may give you additional or different
589+permissions. However, no additional obligations are imposed on any
590+author or copyright holder as a result of your choosing to follow a
591+later version.
592+
593+ 15. Disclaimer of Warranty.
594+
595+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
596+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
597+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
598+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
599+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
600+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
601+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
602+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
603+
604+ 16. Limitation of Liability.
605+
606+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
607+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
608+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
609+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
610+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
611+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
612+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
613+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
614+SUCH DAMAGES.
615+
616+ 17. Interpretation of Sections 15 and 16.
617+
618+ If the disclaimer of warranty and limitation of liability provided
619+above cannot be given local legal effect according to their terms,
620+reviewing courts shall apply local law that most closely approximates
621+an absolute waiver of all civil liability in connection with the
622+Program, unless a warranty or assumption of liability accompanies a
623+copy of the Program in return for a fee.
624+
625+ END OF TERMS AND CONDITIONS
626+
627+ How to Apply These Terms to Your New Programs
628+
629+ If you develop a new program, and you want it to be of the greatest
630+possible use to the public, the best way to achieve this is to make it
631+free software which everyone can redistribute and change under these terms.
632+
633+ To do so, attach the following notices to the program. It is safest
634+to attach them to the start of each source file to most effectively
635+state the exclusion of warranty; and each file should have at least
636+the "copyright" line and a pointer to where the full notice is found.
637+
638+ <one line to give the program's name and a brief idea of what it does.>
639+ Copyright (C) <year> <name of author>
640+
641+ This program is free software: you can redistribute it and/or modify
642+ it under the terms of the GNU General Public License as published by
643+ the Free Software Foundation, either version 3 of the License, or
644+ (at your option) any later version.
645+
646+ This program is distributed in the hope that it will be useful,
647+ but WITHOUT ANY WARRANTY; without even the implied warranty of
648+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
649+ GNU General Public License for more details.
650+
651+ You should have received a copy of the GNU General Public License
652+ along with this program. If not, see <http://www.gnu.org/licenses/>.
653+
654+Also add information on how to contact you by electronic and paper mail.
655+
656+ If the program does terminal interaction, make it output a short
657+notice like this when it starts in an interactive mode:
658+
659+ <program> Copyright (C) <year> <name of author>
660+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
661+ This is free software, and you are welcome to redistribute it
662+ under certain conditions; type `show c' for details.
663+
664+The hypothetical commands `show w' and `show c' should show the appropriate
665+parts of the General Public License. Of course, your program's commands
666+might be different; for a GUI interface, you would use an "about box".
667+
668+ You should also get your employer (if you work as a programmer) or school,
669+if any, to sign a "copyright disclaimer" for the program, if necessary.
670+For more information on this, and how to apply and follow the GNU GPL, see
671+<http://www.gnu.org/licenses/>.
672+
673+ The GNU General Public License does not permit incorporating your program
674+into proprietary programs. If your program is a subroutine library, you
675+may consider it more useful to permit linking proprietary applications with
676+the library. If this is what you want to do, use the GNU Lesser General
677+Public License instead of this License. But first, please read
678+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
679
680=== added file 'COPYING.icons'
681--- COPYING.icons 1970-01-01 00:00:00 +0000
682+++ COPYING.icons 2011-07-08 07:12:36 +0000
683@@ -0,0 +1,61 @@
684+THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
685+
686+BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
687+
688+1. Definitions
689+
690+ 1. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
691+ 2. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License.
692+ 3. "Creative Commons Compatible License" means a license that is listed at http://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License.
693+ 4. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
694+ 5. "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike.
695+ 6. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
696+ 7. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
697+ 8. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
698+ 9. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
699+ 10. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
700+ 11. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
701+
702+2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
703+
704+3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
705+
706+ 1. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
707+ 2. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
708+ 3. to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
709+ 4. to Distribute and Publicly Perform Adaptations.
710+ 5.
711+
712+ For the avoidance of doubt:
713+ 1. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
714+ 2. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
715+ 3. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
716+
717+The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
718+
719+4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
720+
721+ 1. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested.
722+ 2. You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License.
723+ 3. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
724+ 4. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
725+
726+5. Representations, Warranties and Disclaimer
727+
728+UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
729+
730+6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
731+
732+7. Termination
733+
734+ 1. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
735+ 2. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
736+
737+8. Miscellaneous
738+
739+ 1. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
740+ 2. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
741+ 3. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
742+ 4. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
743+ 5. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
744+ 6. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
745
746=== renamed file 'COPYING.icons' => 'COPYING.icons.moved'
747=== renamed file 'COPYING' => 'COPYING.moved'
748=== added file 'HACKING'
749--- HACKING 1970-01-01 00:00:00 +0000
750+++ HACKING 2011-07-08 07:12:36 +0000
751@@ -0,0 +1,35 @@
752+Ubuntu One requires acceptance of the Canonical Contributor Agreement. You
753+will need to follow the instructions at:
754+
755+http://www.canonical.com/contributors
756+
757+Once the agreement is accepted, you will be added to the Ubuntu One Contributor
758+Agreement team on Launchpad, so that your branches may be merged in upstream.
759+
760+
761+In order to run tests in ubuntuone-client, you will need to have a built
762+version of ubuntuone-storage-protocol in a tree, or installed. You can
763+specify the path to a built tree with the --with-protocol option to configure,
764+or autogen.sh (which calls configure after creating it).
765+
766+$: ./configure --with-protocol=$HOME/source/ubuntuone-storage-protocol/trunk
767+
768+After configuring, in order to run the tests, all you need to do is run
769+make check.
770+
771+$: make check
772+
773+
774+Ubuntu One uses branch based development on Launchpad, and bugs to track
775+features and issues. Make sure a bug is filed for the piece of code you wish
776+to work on. When committing your changes, be sure to specify the bug # it
777+fixes using the --fixes option in bzr.
778+
779+$: bzr commit --fixes=lp:<BUGNUMBER>
780+
781+If you forget to do this, you can link the branch manually on the Launchpad
782+web page. After pushing your branch to Launchpad, you will need to propose it
783+for merging into the parent branch. You can do this from the Launchpad web
784+page for your branch. In order for your branch to be accepted, you will have
785+to have accepted the Canonical Contributor Agreement as stated above, and
786+there will need to be at least two approvals from Ubuntu One developers.
787
788=== renamed file 'HACKING' => 'HACKING.moved'
789=== added file 'Makefile.am'
790--- Makefile.am 1970-01-01 00:00:00 +0000
791+++ Makefile.am 2011-07-08 07:12:36 +0000
792@@ -0,0 +1,151 @@
793+SUBDIRS = data libsyncdaemon nautilus po gsd-plugin docs
794+
795+# Shut libtoolize up
796+ACLOCAL_AMFLAGS = -I m4
797+
798+# PYTHONPATH for local Python scripts
799+PYTHONPATH="$(SSO_PATH):$(USP_PATH):$(top_builddir):$(top_srcdir)"
800+
801+# Python packages we want to install
802+pythonpkgdir = $(pythondir)/$(PACKAGE)
803+pypackages = \
804+ ubuntuone \
805+ $(shell SRCDIR="ubuntuone"; for i in `find $$SRCDIR -type d`; do DIRNAME=`basename $$i`; if [ "x$$DIRNAME" != "xtest" ]; then printf "$$i "; fi; done)
806+
807+# Install our scripts and extra data here
808+bin_SCRIPTS = \
809+ bin/ubuntuone-launch \
810+ bin/u1sdtool
811+
812+libexec_SCRIPTS = \
813+ bin/ubuntuone-syncdaemon \
814+ bin/ubuntuone-login
815+
816+clientdefsdir = $(pythonpkgdir)/ubuntuone
817+clientdefs_in_files = ubuntuone/clientdefs.py.in
818+clientdefs_DATA = $(clientdefs_in_files:.py.in=.py)
819+
820+# Don't end up pulling in storage-protocol source as well
821+pyfiles = $(shell SRCDIR="$(top_srcdir)/ubuntuone"; for i in `find $$SRCDIR -type f -name "*.py"`; do if [ ! -f $$i.in ]; then printf "$$i "; fi; done)
822+
823+$(clientdefs_DATA): $(clientdefs_in_files) ubuntuone
824+ sed -e 's|\@localedir\@|$(localedir)|g' \
825+ -e 's|\@libexecdir\@|$(libexecdir)|g' \
826+ -e 's|\@GETTEXT_PACKAGE\@|$(GETTEXT_PACKAGE)|g' \
827+ -e 's|\@SSO_APP_NAME\@|$(SSO_APP_NAME)|g' \
828+ -e 's|\@SSO_TC_URL\@|$(SSO_TC_URL)|g' \
829+ -e 's|\@SSO_PING_URL\@|$(SSO_PING_URL)|g' \
830+ -e 's|\@VERSION\@|$(VERSION)|g' < $< > $@
831+
832+pylintrc: Makefile
833+ if test "x$(builddir)" != "x$(srcdir)"; then \
834+ if [ ! -e pylintrc -a ! -h pylintrc ]; then \
835+ $(LN_S) $(srcdir)/pylintrc; \
836+ fi; \
837+ fi
838+
839+logging.conf: data/logging.conf.in Makefile
840+ $(MAKE) -C data logging.conf
841+
842+lint: pylintrc $(clientdefs_DATA) Makefile
843+ PYTHONPATH="$(PYTHONPATH)" SRCDIR="$(srcdir)" USE_PYFLAKES="true" u1lint
844+
845+test: logging.conf $(clientdefs_DATA) Makefile
846+ echo "$(PYTHONPATH)"
847+ if test "x$(builddir)" == "x$(srcdir)"; then \
848+ PYTHONPATH="$(PYTHONPATH)" u1trial tests -p tests/platform/windows; \
849+ fi
850+ rm -rf _trial_temp
851+
852+test-coverage: logging.conf $(clientdefs_DATA) Makefile
853+ if test "x$(builddir)" == "x$(srcdir)"; then \
854+ PYTHONPATH="$(PYTHONPATH)" u1trial -c tests; \
855+ fi
856+ rm -rf _trial_temp
857+
858+check: lint test Makefile
859+
860+docs: $(clientdefs_DATA) Makefile
861+ $(mkdir_p) docs
862+ if test "x$(builddir)" != "x$(srcdir)" -a -f "$(srcdir)/docs/syncdaemon_dbus_api.txt"; then \
863+ $(LN_S) "$(top_srcdir)/docs/syncdaemon_dbus_api.txt" "docs/syncdaemon_dbus_api.txt"; \
864+ else \
865+ PYTHONPATH="$(PYTHONPATH)" SRCDIR="$(srcdir)" $(PYTHON) $(srcdir)/contrib/dbus-docs; \
866+ fi
867+
868+ubuntuone: Makefile
869+ if test "x$(builddir)" != "x$(srcdir)"; then \
870+ $(mkdir_p) ubuntuone; \
871+ $(mkdir_p) tests; \
872+ (cd ubuntuone && $(LNDIR) $(srcdir)/../ubuntuone > /dev/null); \
873+ (cd tests && $(LNDIR) $(srcdir)/../tests > /dev/null); \
874+ fi
875+
876+all-local: pylintrc logging.conf $(clientdefs_DATA)
877+
878+sd_path = ubuntuone/syncdaemon
879+
880+u1fsfsm: $(srcdir)/ubuntuone/syncdaemon/u1fsfsm.ods
881+ PYTHONPATH=$(PYTHONPATH) \
882+ HAS_OOFFICE="true" \
883+ XDG_CACHE_HOME="$(builddir)/_trial_temp/xdg_cache" \
884+ $(PYTHON) -t $(srcdir)/$(sd_path)/fsm/fsm_parser.py \
885+ -o $(builddir)/$(sd_path)/u1fsfsm.py $<
886+ PYTHONPATH=$(PYTHONPATH) \
887+ HAS_OOFFICE="true" \
888+ XDG_CACHE_HOME="$(builddir)/_trial_temp/xdg_cache" \
889+ $(PYTHON) -t $(srcdir)/$(sd_path)/fsm/fsm.py \
890+ $(srcdir)/$(sd_path)/u1fsfsm.py
891+
892+install-data-local: $(clientdefs_DATA)
893+ for package in $(pypackages); do \
894+ $(mkdir_p) $(DESTDIR)$(pythonpkgdir)/$$package; \
895+ for module in $(top_srcdir)/$$package/*.py; do \
896+ $(install_sh_DATA) $$module $(DESTDIR)$(pythonpkgdir)/$$package; \
897+ done; \
898+ done
899+ echo "$(PACKAGE)" > $(DESTDIR)$(pythondir)/$(PACKAGE).pth
900+
901+uninstall-local:
902+ for package in $(pypackages); do \
903+ for module in $(top_srcdir)/$$package/*.py; do \
904+ modname=`basename $$module`; \
905+ rm -f $(DESTDIR)$(pythonpkgdir)/$$package/$$modname; \
906+ done; \
907+ rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(pythonpkgdir)/$$package; \
908+ done
909+ rm -f $(DESTDIR)$(pythondir)/$(PACKAGE).pth
910+
911+clean-local:
912+ for i in `find $(builddir) -name "*.pyc"`; do \
913+ rm -f $$i; \
914+ done
915+ rm -rf build dist _trial_temp
916+
917+EXTRA_DIST = \
918+ $(srcdir)/ubuntuone/syncdaemon/u1fsfsm.ods \
919+ $(pyfiles) \
920+ $(clientdefs_in_files) \
921+ COPYING.icons \
922+ HACKING \
923+ bin \
924+ contrib \
925+ tests \
926+ pylintrc
927+
928+CLEANFILES = \
929+ $(clientdefs_DATA)
930+
931+MAINTAINERCLEANFILES = \
932+ Makefile.in \
933+ aclocal.m4 \
934+ config.guess \
935+ config.h.in \
936+ config.sub \
937+ configure \
938+ depcomp \
939+ install-sh \
940+ libtool \
941+ ltmain.sh \
942+ missing \
943+ mkinstalldirs
944
945=== renamed file 'Makefile.am' => 'Makefile.am.moved'
946=== added file 'Makefile.in'
947--- Makefile.in 1970-01-01 00:00:00 +0000
948+++ Makefile.in 2011-07-08 07:12:36 +0000
949@@ -0,0 +1,1065 @@
950+# Makefile.in generated by automake 1.11.1 from Makefile.am.
951+# @configure_input@
952+
953+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
954+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
955+# Inc.
956+# This Makefile.in is free software; the Free Software Foundation
957+# gives unlimited permission to copy and/or distribute it,
958+# with or without modifications, as long as this notice is preserved.
959+
960+# This program is distributed in the hope that it will be useful,
961+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
962+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
963+# PARTICULAR PURPOSE.
964+
965+@SET_MAKE@
966+
967+
968+VPATH = @srcdir@
969+pkgdatadir = $(datadir)/@PACKAGE@
970+pkgincludedir = $(includedir)/@PACKAGE@
971+pkglibdir = $(libdir)/@PACKAGE@
972+pkglibexecdir = $(libexecdir)/@PACKAGE@
973+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
974+install_sh_DATA = $(install_sh) -c -m 644
975+install_sh_PROGRAM = $(install_sh) -c
976+install_sh_SCRIPT = $(install_sh) -c
977+INSTALL_HEADER = $(INSTALL_DATA)
978+transform = $(program_transform_name)
979+NORMAL_INSTALL = :
980+PRE_INSTALL = :
981+POST_INSTALL = :
982+NORMAL_UNINSTALL = :
983+PRE_UNINSTALL = :
984+POST_UNINSTALL = :
985+build_triplet = @build@
986+host_triplet = @host@
987+subdir = .
988+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
989+ $(srcdir)/Makefile.in $(srcdir)/config.h.in \
990+ $(top_srcdir)/configure COPYING config.guess config.sub \
991+ depcomp install-sh ltmain.sh missing
992+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
993+am__aclocal_m4_deps = $(top_srcdir)/m4/gtk-doc.m4 \
994+ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \
995+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
996+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
997+ $(top_srcdir)/configure.ac
998+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
999+ $(ACLOCAL_M4)
1000+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
1001+ configure.lineno config.status.lineno
1002+mkinstalldirs = $(install_sh) -d
1003+CONFIG_HEADER = config.h
1004+CONFIG_CLEAN_FILES =
1005+CONFIG_CLEAN_VPATH_FILES =
1006+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
1007+am__vpath_adj = case $$p in \
1008+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
1009+ *) f=$$p;; \
1010+ esac;
1011+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
1012+am__install_max = 40
1013+am__nobase_strip_setup = \
1014+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
1015+am__nobase_strip = \
1016+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
1017+am__nobase_list = $(am__nobase_strip_setup); \
1018+ for p in $$list; do echo "$$p $$p"; done | \
1019+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
1020+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
1021+ if (++n[$$2] == $(am__install_max)) \
1022+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
1023+ END { for (dir in files) print dir, files[dir] }'
1024+am__base_list = \
1025+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
1026+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
1027+am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" \
1028+ "$(DESTDIR)$(clientdefsdir)"
1029+SCRIPTS = $(bin_SCRIPTS) $(libexec_SCRIPTS)
1030+AM_V_GEN = $(am__v_GEN_$(V))
1031+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
1032+am__v_GEN_0 = @echo " GEN " $@;
1033+AM_V_at = $(am__v_at_$(V))
1034+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
1035+am__v_at_0 = @
1036+SOURCES =
1037+DIST_SOURCES =
1038+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
1039+ html-recursive info-recursive install-data-recursive \
1040+ install-dvi-recursive install-exec-recursive \
1041+ install-html-recursive install-info-recursive \
1042+ install-pdf-recursive install-ps-recursive install-recursive \
1043+ installcheck-recursive installdirs-recursive pdf-recursive \
1044+ ps-recursive uninstall-recursive
1045+DATA = $(clientdefs_DATA)
1046+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
1047+ distclean-recursive maintainer-clean-recursive
1048+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
1049+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
1050+ distdir dist dist-all distcheck
1051+ETAGS = etags
1052+CTAGS = ctags
1053+DIST_SUBDIRS = $(SUBDIRS)
1054+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
1055+distdir = $(PACKAGE)-$(VERSION)
1056+top_distdir = $(distdir)
1057+am__remove_distdir = \
1058+ { test ! -d "$(distdir)" \
1059+ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
1060+ && rm -fr "$(distdir)"; }; }
1061+am__relativize = \
1062+ dir0=`pwd`; \
1063+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
1064+ sed_rest='s,^[^/]*/*,,'; \
1065+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
1066+ sed_butlast='s,/*[^/]*$$,,'; \
1067+ while test -n "$$dir1"; do \
1068+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
1069+ if test "$$first" != "."; then \
1070+ if test "$$first" = ".."; then \
1071+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
1072+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
1073+ else \
1074+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
1075+ if test "$$first2" = "$$first"; then \
1076+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
1077+ else \
1078+ dir2="../$$dir2"; \
1079+ fi; \
1080+ dir0="$$dir0"/"$$first"; \
1081+ fi; \
1082+ fi; \
1083+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
1084+ done; \
1085+ reldir="$$dir2"
1086+DIST_ARCHIVES = $(distdir).tar.gz
1087+GZIP_ENV = --best
1088+distuninstallcheck_listfiles = find . -type f -print
1089+distcleancheck_listfiles = find . -type f -print
1090+ACLOCAL = @ACLOCAL@
1091+
1092+# Shut libtoolize up
1093+ACLOCAL_AMFLAGS = -I m4
1094+ALL_LINGUAS = @ALL_LINGUAS@
1095+AMTAR = @AMTAR@
1096+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
1097+AR = @AR@
1098+AUTOCONF = @AUTOCONF@
1099+AUTOHEADER = @AUTOHEADER@
1100+AUTOMAKE = @AUTOMAKE@
1101+AWK = @AWK@
1102+CC = @CC@
1103+CCDEPMODE = @CCDEPMODE@
1104+CFLAGS = @CFLAGS@
1105+CPP = @CPP@
1106+CPPFLAGS = @CPPFLAGS@
1107+CYGPATH_W = @CYGPATH_W@
1108+DATADIRNAME = @DATADIRNAME@
1109+DBUS_CFLAGS = @DBUS_CFLAGS@
1110+DBUS_LIBS = @DBUS_LIBS@
1111+DBUS_SERVICES_DIR = @DBUS_SERVICES_DIR@
1112+DEFS = @DEFS@
1113+DEPDIR = @DEPDIR@
1114+DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
1115+DSYMUTIL = @DSYMUTIL@
1116+DUMPBIN = @DUMPBIN@
1117+ECHO_C = @ECHO_C@
1118+ECHO_N = @ECHO_N@
1119+ECHO_T = @ECHO_T@
1120+EGREP = @EGREP@
1121+EXEEXT = @EXEEXT@
1122+FGREP = @FGREP@
1123+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
1124+GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
1125+GMSGFMT = @GMSGFMT@
1126+GREP = @GREP@
1127+GSD_INTLTOOL_PLUGIN_RULE = @GSD_INTLTOOL_PLUGIN_RULE@
1128+GSD_PLUGINDIR_NAME = @GSD_PLUGINDIR_NAME@
1129+GTKDOC_CHECK = @GTKDOC_CHECK@
1130+GTKDOC_MKPDF = @GTKDOC_MKPDF@
1131+GTKDOC_REBASE = @GTKDOC_REBASE@
1132+HTML_DIR = @HTML_DIR@
1133+ICONTOOL_RENDER = @ICONTOOL_RENDER@
1134+INSTALL = @INSTALL@
1135+INSTALL_DATA = @INSTALL_DATA@
1136+INSTALL_PROGRAM = @INSTALL_PROGRAM@
1137+INSTALL_SCRIPT = @INSTALL_SCRIPT@
1138+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
1139+INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
1140+INTLTOOL_MERGE = @INTLTOOL_MERGE@
1141+INTLTOOL_PERL = @INTLTOOL_PERL@
1142+INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
1143+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
1144+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
1145+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
1146+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
1147+INTROSPECTION_GIRDIR_NAME = @INTROSPECTION_GIRDIR_NAME@
1148+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
1149+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
1150+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
1151+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
1152+INTROSPECTION_TYPELIBDIR_NAME = @INTROSPECTION_TYPELIBDIR_NAME@
1153+LD = @LD@
1154+LDFLAGS = @LDFLAGS@
1155+LIBOBJS = @LIBOBJS@
1156+LIBS = @LIBS@
1157+LIBSYNCDAEMON_AGE = @LIBSYNCDAEMON_AGE@
1158+LIBSYNCDAEMON_CURRENT = @LIBSYNCDAEMON_CURRENT@
1159+LIBSYNCDAEMON_REVISION = @LIBSYNCDAEMON_REVISION@
1160+LIBTOOL = @LIBTOOL@
1161+LIPO = @LIPO@
1162+LNDIR = @LNDIR@
1163+LN_S = @LN_S@
1164+LOG_FILE_SIZE = @LOG_FILE_SIZE@
1165+LOG_LEVEL = @LOG_LEVEL@
1166+LTLIBOBJS = @LTLIBOBJS@
1167+MAKEINFO = @MAKEINFO@
1168+MKDIR_P = @MKDIR_P@
1169+MSGFMT = @MSGFMT@
1170+MSGMERGE = @MSGMERGE@
1171+NAUTILUS_CFLAGS = @NAUTILUS_CFLAGS@
1172+NAUTILUS_EXTENSIONDIR_NAME = @NAUTILUS_EXTENSIONDIR_NAME@
1173+NAUTILUS_LIBS = @NAUTILUS_LIBS@
1174+NM = @NM@
1175+NMEDIT = @NMEDIT@
1176+OBJDUMP = @OBJDUMP@
1177+OBJEXT = @OBJEXT@
1178+OTOOL = @OTOOL@
1179+OTOOL64 = @OTOOL64@
1180+PACKAGE = @PACKAGE@
1181+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
1182+PACKAGE_NAME = @PACKAGE_NAME@
1183+PACKAGE_STRING = @PACKAGE_STRING@
1184+PACKAGE_TARNAME = @PACKAGE_TARNAME@
1185+PACKAGE_URL = @PACKAGE_URL@
1186+PACKAGE_VERSION = @PACKAGE_VERSION@
1187+PATH_SEPARATOR = @PATH_SEPARATOR@
1188+PKG_CONFIG = @PKG_CONFIG@
1189+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
1190+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
1191+PYTHON = @PYTHON@
1192+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
1193+PYTHON_PLATFORM = @PYTHON_PLATFORM@
1194+PYTHON_PREFIX = @PYTHON_PREFIX@
1195+PYTHON_VERSION = @PYTHON_VERSION@
1196+RANLIB = @RANLIB@
1197+SED = @SED@
1198+SETTINGS_PLUGIN_CFLAGS = @SETTINGS_PLUGIN_CFLAGS@
1199+SETTINGS_PLUGIN_LIBS = @SETTINGS_PLUGIN_LIBS@
1200+SET_MAKE = @SET_MAKE@
1201+SHELL = @SHELL@
1202+SSO_APP_NAME = @SSO_APP_NAME@
1203+SSO_PATH = @SSO_PATH@
1204+SSO_PING_URL = @SSO_PING_URL@
1205+SSO_TC_URL = @SSO_TC_URL@
1206+STRIP = @STRIP@
1207+USE_NLS = @USE_NLS@
1208+USP_PATH = @USP_PATH@
1209+VALAC = @VALAC@
1210+VAPIGEN = @VAPIGEN@
1211+VERSION = @VERSION@
1212+XGETTEXT = @XGETTEXT@
1213+abs_builddir = @abs_builddir@
1214+abs_srcdir = @abs_srcdir@
1215+abs_top_builddir = @abs_top_builddir@
1216+abs_top_srcdir = @abs_top_srcdir@
1217+ac_ct_CC = @ac_ct_CC@
1218+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
1219+am__include = @am__include@
1220+am__leading_dot = @am__leading_dot@
1221+am__quote = @am__quote@
1222+am__tar = @am__tar@
1223+am__untar = @am__untar@
1224+bindir = @bindir@
1225+build = @build@
1226+build_alias = @build_alias@
1227+build_cpu = @build_cpu@
1228+build_os = @build_os@
1229+build_vendor = @build_vendor@
1230+builddir = @builddir@
1231+datadir = @datadir@
1232+datarootdir = @datarootdir@
1233+docdir = @docdir@
1234+dvidir = @dvidir@
1235+exec_prefix = @exec_prefix@
1236+host = @host@
1237+host_alias = @host_alias@
1238+host_cpu = @host_cpu@
1239+host_os = @host_os@
1240+host_vendor = @host_vendor@
1241+htmldir = @htmldir@
1242+includedir = @includedir@
1243+infodir = @infodir@
1244+install_sh = @install_sh@
1245+libdir = @libdir@
1246+libexecdir = @libexecdir@
1247+localedir = @localedir@
1248+localstatedir = @localstatedir@
1249+lt_ECHO = @lt_ECHO@
1250+mandir = @mandir@
1251+mkdir_p = @mkdir_p@
1252+oldincludedir = @oldincludedir@
1253+pdfdir = @pdfdir@
1254+pkgpyexecdir = @pkgpyexecdir@
1255+pkgpythondir = @pkgpythondir@
1256+prefix = @prefix@
1257+program_transform_name = @program_transform_name@
1258+psdir = @psdir@
1259+pyexecdir = @pyexecdir@
1260+pythondir = @pythondir@
1261+render_sizes = @render_sizes@
1262+sbindir = @sbindir@
1263+sharedstatedir = @sharedstatedir@
1264+srcdir = @srcdir@
1265+sysconfdir = @sysconfdir@
1266+target_alias = @target_alias@
1267+top_build_prefix = @top_build_prefix@
1268+top_builddir = @top_builddir@
1269+top_srcdir = @top_srcdir@
1270+SUBDIRS = data libsyncdaemon nautilus po gsd-plugin docs
1271+
1272+# PYTHONPATH for local Python scripts
1273+PYTHONPATH = "$(SSO_PATH):$(USP_PATH):$(top_builddir):$(top_srcdir)"
1274+
1275+# Python packages we want to install
1276+pythonpkgdir = $(pythondir)/$(PACKAGE)
1277+pypackages = \
1278+ ubuntuone \
1279+ $(shell SRCDIR="ubuntuone"; for i in `find $$SRCDIR -type d`; do DIRNAME=`basename $$i`; if [ "x$$DIRNAME" != "xtest" ]; then printf "$$i "; fi; done)
1280+
1281+
1282+# Install our scripts and extra data here
1283+bin_SCRIPTS = \
1284+ bin/ubuntuone-launch \
1285+ bin/u1sdtool
1286+
1287+libexec_SCRIPTS = \
1288+ bin/ubuntuone-syncdaemon \
1289+ bin/ubuntuone-login
1290+
1291+clientdefsdir = $(pythonpkgdir)/ubuntuone
1292+clientdefs_in_files = ubuntuone/clientdefs.py.in
1293+clientdefs_DATA = $(clientdefs_in_files:.py.in=.py)
1294+
1295+# Don't end up pulling in storage-protocol source as well
1296+pyfiles = $(shell SRCDIR="$(top_srcdir)/ubuntuone"; for i in `find $$SRCDIR -type f -name "*.py"`; do if [ ! -f $$i.in ]; then printf "$$i "; fi; done)
1297+sd_path = ubuntuone/syncdaemon
1298+EXTRA_DIST = \
1299+ $(srcdir)/ubuntuone/syncdaemon/u1fsfsm.ods \
1300+ $(pyfiles) \
1301+ $(clientdefs_in_files) \
1302+ COPYING.icons \
1303+ HACKING \
1304+ bin \
1305+ contrib \
1306+ tests \
1307+ pylintrc
1308+
1309+CLEANFILES = \
1310+ $(clientdefs_DATA)
1311+
1312+MAINTAINERCLEANFILES = \
1313+ Makefile.in \
1314+ aclocal.m4 \
1315+ config.guess \
1316+ config.h.in \
1317+ config.sub \
1318+ configure \
1319+ depcomp \
1320+ install-sh \
1321+ libtool \
1322+ ltmain.sh \
1323+ missing \
1324+ mkinstalldirs
1325+
1326+all: config.h
1327+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
1328+
1329+.SUFFIXES:
1330+am--refresh:
1331+ @:
1332+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
1333+ @for dep in $?; do \
1334+ case '$(am__configure_deps)' in \
1335+ *$$dep*) \
1336+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
1337+ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
1338+ && exit 0; \
1339+ exit 1;; \
1340+ esac; \
1341+ done; \
1342+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
1343+ $(am__cd) $(top_srcdir) && \
1344+ $(AUTOMAKE) --foreign Makefile
1345+.PRECIOUS: Makefile
1346+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1347+ @case '$?' in \
1348+ *config.status*) \
1349+ echo ' $(SHELL) ./config.status'; \
1350+ $(SHELL) ./config.status;; \
1351+ *) \
1352+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
1353+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
1354+ esac;
1355+
1356+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
1357+ $(SHELL) ./config.status --recheck
1358+
1359+$(top_srcdir)/configure: $(am__configure_deps)
1360+ $(am__cd) $(srcdir) && $(AUTOCONF)
1361+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
1362+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
1363+$(am__aclocal_m4_deps):
1364+
1365+config.h: stamp-h1
1366+ @if test ! -f $@; then \
1367+ rm -f stamp-h1; \
1368+ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
1369+ else :; fi
1370+
1371+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
1372+ @rm -f stamp-h1
1373+ cd $(top_builddir) && $(SHELL) ./config.status config.h
1374+$(srcdir)/config.h.in: $(am__configure_deps)
1375+ ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
1376+ rm -f stamp-h1
1377+ touch $@
1378+
1379+distclean-hdr:
1380+ -rm -f config.h stamp-h1
1381+install-binSCRIPTS: $(bin_SCRIPTS)
1382+ @$(NORMAL_INSTALL)
1383+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
1384+ @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
1385+ for p in $$list; do \
1386+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1387+ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
1388+ done | \
1389+ sed -e 'p;s,.*/,,;n' \
1390+ -e 'h;s|.*|.|' \
1391+ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
1392+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
1393+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
1394+ if ($$2 == $$4) { files[d] = files[d] " " $$1; \
1395+ if (++n[d] == $(am__install_max)) { \
1396+ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
1397+ else { print "f", d "/" $$4, $$1 } } \
1398+ END { for (d in files) print "f", d, files[d] }' | \
1399+ while read type dir files; do \
1400+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
1401+ test -z "$$files" || { \
1402+ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
1403+ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
1404+ } \
1405+ ; done
1406+
1407+uninstall-binSCRIPTS:
1408+ @$(NORMAL_UNINSTALL)
1409+ @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
1410+ files=`for p in $$list; do echo "$$p"; done | \
1411+ sed -e 's,.*/,,;$(transform)'`; \
1412+ test -n "$$list" || exit 0; \
1413+ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
1414+ cd "$(DESTDIR)$(bindir)" && rm -f $$files
1415+install-libexecSCRIPTS: $(libexec_SCRIPTS)
1416+ @$(NORMAL_INSTALL)
1417+ test -z "$(libexecdir)" || $(MKDIR_P) "$(DESTDIR)$(libexecdir)"
1418+ @list='$(libexec_SCRIPTS)'; test -n "$(libexecdir)" || list=; \
1419+ for p in $$list; do \
1420+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1421+ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
1422+ done | \
1423+ sed -e 'p;s,.*/,,;n' \
1424+ -e 'h;s|.*|.|' \
1425+ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
1426+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
1427+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
1428+ if ($$2 == $$4) { files[d] = files[d] " " $$1; \
1429+ if (++n[d] == $(am__install_max)) { \
1430+ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
1431+ else { print "f", d "/" $$4, $$1 } } \
1432+ END { for (d in files) print "f", d, files[d] }' | \
1433+ while read type dir files; do \
1434+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
1435+ test -z "$$files" || { \
1436+ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \
1437+ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \
1438+ } \
1439+ ; done
1440+
1441+uninstall-libexecSCRIPTS:
1442+ @$(NORMAL_UNINSTALL)
1443+ @list='$(libexec_SCRIPTS)'; test -n "$(libexecdir)" || exit 0; \
1444+ files=`for p in $$list; do echo "$$p"; done | \
1445+ sed -e 's,.*/,,;$(transform)'`; \
1446+ test -n "$$list" || exit 0; \
1447+ echo " ( cd '$(DESTDIR)$(libexecdir)' && rm -f" $$files ")"; \
1448+ cd "$(DESTDIR)$(libexecdir)" && rm -f $$files
1449+
1450+mostlyclean-libtool:
1451+ -rm -f *.lo
1452+
1453+clean-libtool:
1454+ -rm -rf .libs _libs
1455+
1456+distclean-libtool:
1457+ -rm -f libtool config.lt
1458+install-clientdefsDATA: $(clientdefs_DATA)
1459+ @$(NORMAL_INSTALL)
1460+ test -z "$(clientdefsdir)" || $(MKDIR_P) "$(DESTDIR)$(clientdefsdir)"
1461+ @list='$(clientdefs_DATA)'; test -n "$(clientdefsdir)" || list=; \
1462+ for p in $$list; do \
1463+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1464+ echo "$$d$$p"; \
1465+ done | $(am__base_list) | \
1466+ while read files; do \
1467+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(clientdefsdir)'"; \
1468+ $(INSTALL_DATA) $$files "$(DESTDIR)$(clientdefsdir)" || exit $$?; \
1469+ done
1470+
1471+uninstall-clientdefsDATA:
1472+ @$(NORMAL_UNINSTALL)
1473+ @list='$(clientdefs_DATA)'; test -n "$(clientdefsdir)" || list=; \
1474+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1475+ test -n "$$files" || exit 0; \
1476+ echo " ( cd '$(DESTDIR)$(clientdefsdir)' && rm -f" $$files ")"; \
1477+ cd "$(DESTDIR)$(clientdefsdir)" && rm -f $$files
1478+
1479+# This directory's subdirectories are mostly independent; you can cd
1480+# into them and run `make' without going through this Makefile.
1481+# To change the values of `make' variables: instead of editing Makefiles,
1482+# (1) if the variable is set in `config.status', edit `config.status'
1483+# (which will cause the Makefiles to be regenerated when you run `make');
1484+# (2) otherwise, pass the desired values on the `make' command line.
1485+$(RECURSIVE_TARGETS):
1486+ @fail= failcom='exit 1'; \
1487+ for f in x $$MAKEFLAGS; do \
1488+ case $$f in \
1489+ *=* | --[!k]*);; \
1490+ *k*) failcom='fail=yes';; \
1491+ esac; \
1492+ done; \
1493+ dot_seen=no; \
1494+ target=`echo $@ | sed s/-recursive//`; \
1495+ list='$(SUBDIRS)'; for subdir in $$list; do \
1496+ echo "Making $$target in $$subdir"; \
1497+ if test "$$subdir" = "."; then \
1498+ dot_seen=yes; \
1499+ local_target="$$target-am"; \
1500+ else \
1501+ local_target="$$target"; \
1502+ fi; \
1503+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1504+ || eval $$failcom; \
1505+ done; \
1506+ if test "$$dot_seen" = "no"; then \
1507+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
1508+ fi; test -z "$$fail"
1509+
1510+$(RECURSIVE_CLEAN_TARGETS):
1511+ @fail= failcom='exit 1'; \
1512+ for f in x $$MAKEFLAGS; do \
1513+ case $$f in \
1514+ *=* | --[!k]*);; \
1515+ *k*) failcom='fail=yes';; \
1516+ esac; \
1517+ done; \
1518+ dot_seen=no; \
1519+ case "$@" in \
1520+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
1521+ *) list='$(SUBDIRS)' ;; \
1522+ esac; \
1523+ rev=''; for subdir in $$list; do \
1524+ if test "$$subdir" = "."; then :; else \
1525+ rev="$$subdir $$rev"; \
1526+ fi; \
1527+ done; \
1528+ rev="$$rev ."; \
1529+ target=`echo $@ | sed s/-recursive//`; \
1530+ for subdir in $$rev; do \
1531+ echo "Making $$target in $$subdir"; \
1532+ if test "$$subdir" = "."; then \
1533+ local_target="$$target-am"; \
1534+ else \
1535+ local_target="$$target"; \
1536+ fi; \
1537+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1538+ || eval $$failcom; \
1539+ done && test -z "$$fail"
1540+tags-recursive:
1541+ list='$(SUBDIRS)'; for subdir in $$list; do \
1542+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
1543+ done
1544+ctags-recursive:
1545+ list='$(SUBDIRS)'; for subdir in $$list; do \
1546+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
1547+ done
1548+
1549+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
1550+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1551+ unique=`for i in $$list; do \
1552+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1553+ done | \
1554+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1555+ END { if (nonempty) { for (i in files) print i; }; }'`; \
1556+ mkid -fID $$unique
1557+tags: TAGS
1558+
1559+TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
1560+ $(TAGS_FILES) $(LISP)
1561+ set x; \
1562+ here=`pwd`; \
1563+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
1564+ include_option=--etags-include; \
1565+ empty_fix=.; \
1566+ else \
1567+ include_option=--include; \
1568+ empty_fix=; \
1569+ fi; \
1570+ list='$(SUBDIRS)'; for subdir in $$list; do \
1571+ if test "$$subdir" = .; then :; else \
1572+ test ! -f $$subdir/TAGS || \
1573+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
1574+ fi; \
1575+ done; \
1576+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
1577+ unique=`for i in $$list; do \
1578+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1579+ done | \
1580+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1581+ END { if (nonempty) { for (i in files) print i; }; }'`; \
1582+ shift; \
1583+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1584+ test -n "$$unique" || unique=$$empty_fix; \
1585+ if test $$# -gt 0; then \
1586+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1587+ "$$@" $$unique; \
1588+ else \
1589+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1590+ $$unique; \
1591+ fi; \
1592+ fi
1593+ctags: CTAGS
1594+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
1595+ $(TAGS_FILES) $(LISP)
1596+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
1597+ unique=`for i in $$list; do \
1598+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1599+ done | \
1600+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1601+ END { if (nonempty) { for (i in files) print i; }; }'`; \
1602+ test -z "$(CTAGS_ARGS)$$unique" \
1603+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1604+ $$unique
1605+
1606+GTAGS:
1607+ here=`$(am__cd) $(top_builddir) && pwd` \
1608+ && $(am__cd) $(top_srcdir) \
1609+ && gtags -i $(GTAGS_ARGS) "$$here"
1610+
1611+distclean-tags:
1612+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1613+
1614+distdir: $(DISTFILES)
1615+ $(am__remove_distdir)
1616+ test -d "$(distdir)" || mkdir "$(distdir)"
1617+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1618+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1619+ list='$(DISTFILES)'; \
1620+ dist_files=`for file in $$list; do echo $$file; done | \
1621+ sed -e "s|^$$srcdirstrip/||;t" \
1622+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1623+ case $$dist_files in \
1624+ */*) $(MKDIR_P) `echo "$$dist_files" | \
1625+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1626+ sort -u` ;; \
1627+ esac; \
1628+ for file in $$dist_files; do \
1629+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1630+ if test -d $$d/$$file; then \
1631+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1632+ if test -d "$(distdir)/$$file"; then \
1633+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1634+ fi; \
1635+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1636+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
1637+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1638+ fi; \
1639+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
1640+ else \
1641+ test -f "$(distdir)/$$file" \
1642+ || cp -p $$d/$$file "$(distdir)/$$file" \
1643+ || exit 1; \
1644+ fi; \
1645+ done
1646+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1647+ if test "$$subdir" = .; then :; else \
1648+ test -d "$(distdir)/$$subdir" \
1649+ || $(MKDIR_P) "$(distdir)/$$subdir" \
1650+ || exit 1; \
1651+ fi; \
1652+ done
1653+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1654+ if test "$$subdir" = .; then :; else \
1655+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
1656+ $(am__relativize); \
1657+ new_distdir=$$reldir; \
1658+ dir1=$$subdir; dir2="$(top_distdir)"; \
1659+ $(am__relativize); \
1660+ new_top_distdir=$$reldir; \
1661+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
1662+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
1663+ ($(am__cd) $$subdir && \
1664+ $(MAKE) $(AM_MAKEFLAGS) \
1665+ top_distdir="$$new_top_distdir" \
1666+ distdir="$$new_distdir" \
1667+ am__remove_distdir=: \
1668+ am__skip_length_check=: \
1669+ am__skip_mode_fix=: \
1670+ distdir) \
1671+ || exit 1; \
1672+ fi; \
1673+ done
1674+ -test -n "$(am__skip_mode_fix)" \
1675+ || find "$(distdir)" -type d ! -perm -755 \
1676+ -exec chmod u+rwx,go+rx {} \; -o \
1677+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1678+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1679+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
1680+ || chmod -R a+r "$(distdir)"
1681+dist-gzip: distdir
1682+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1683+ $(am__remove_distdir)
1684+
1685+dist-bzip2: distdir
1686+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
1687+ $(am__remove_distdir)
1688+
1689+dist-lzma: distdir
1690+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
1691+ $(am__remove_distdir)
1692+
1693+dist-xz: distdir
1694+ tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
1695+ $(am__remove_distdir)
1696+
1697+dist-tarZ: distdir
1698+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1699+ $(am__remove_distdir)
1700+
1701+dist-shar: distdir
1702+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1703+ $(am__remove_distdir)
1704+
1705+dist-zip: distdir
1706+ -rm -f $(distdir).zip
1707+ zip -rq $(distdir).zip $(distdir)
1708+ $(am__remove_distdir)
1709+
1710+dist dist-all: distdir
1711+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1712+ $(am__remove_distdir)
1713+
1714+# This target untars the dist file and tries a VPATH configuration. Then
1715+# it guarantees that the distribution is self-contained by making another
1716+# tarfile.
1717+distcheck: dist
1718+ case '$(DIST_ARCHIVES)' in \
1719+ *.tar.gz*) \
1720+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
1721+ *.tar.bz2*) \
1722+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1723+ *.tar.lzma*) \
1724+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
1725+ *.tar.xz*) \
1726+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
1727+ *.tar.Z*) \
1728+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1729+ *.shar.gz*) \
1730+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
1731+ *.zip*) \
1732+ unzip $(distdir).zip ;;\
1733+ esac
1734+ chmod -R a-w $(distdir); chmod a+w $(distdir)
1735+ mkdir $(distdir)/_build
1736+ mkdir $(distdir)/_inst
1737+ chmod a-w $(distdir)
1738+ test -d $(distdir)/_build || exit 0; \
1739+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1740+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1741+ && am__cwd=`pwd` \
1742+ && $(am__cd) $(distdir)/_build \
1743+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1744+ $(DISTCHECK_CONFIGURE_FLAGS) \
1745+ && $(MAKE) $(AM_MAKEFLAGS) \
1746+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
1747+ && $(MAKE) $(AM_MAKEFLAGS) check \
1748+ && $(MAKE) $(AM_MAKEFLAGS) install \
1749+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1750+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1751+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1752+ distuninstallcheck \
1753+ && chmod -R a-w "$$dc_install_base" \
1754+ && ({ \
1755+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1756+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1757+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1758+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1759+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1760+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
1761+ && rm -rf "$$dc_destdir" \
1762+ && $(MAKE) $(AM_MAKEFLAGS) dist \
1763+ && rm -rf $(DIST_ARCHIVES) \
1764+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
1765+ && cd "$$am__cwd" \
1766+ || exit 1
1767+ $(am__remove_distdir)
1768+ @(echo "$(distdir) archives ready for distribution: "; \
1769+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1770+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1771+distuninstallcheck:
1772+ @$(am__cd) '$(distuninstallcheck_dir)' \
1773+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
1774+ || { echo "ERROR: files left after uninstall:" ; \
1775+ if test -n "$(DESTDIR)"; then \
1776+ echo " (check DESTDIR support)"; \
1777+ fi ; \
1778+ $(distuninstallcheck_listfiles) ; \
1779+ exit 1; } >&2
1780+distcleancheck: distclean
1781+ @if test '$(srcdir)' = . ; then \
1782+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1783+ exit 1 ; \
1784+ fi
1785+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1786+ || { echo "ERROR: files left in build directory after distclean:" ; \
1787+ $(distcleancheck_listfiles) ; \
1788+ exit 1; } >&2
1789+check-am: all-am
1790+check: check-recursive
1791+all-am: Makefile $(SCRIPTS) $(DATA) config.h all-local
1792+installdirs: installdirs-recursive
1793+installdirs-am:
1794+ for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(clientdefsdir)"; do \
1795+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1796+ done
1797+install: install-recursive
1798+install-exec: install-exec-recursive
1799+install-data: install-data-recursive
1800+uninstall: uninstall-recursive
1801+
1802+install-am: all-am
1803+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1804+
1805+installcheck: installcheck-recursive
1806+install-strip:
1807+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1808+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1809+ `test -z '$(STRIP)' || \
1810+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1811+mostlyclean-generic:
1812+
1813+clean-generic:
1814+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1815+
1816+distclean-generic:
1817+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1818+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1819+
1820+maintainer-clean-generic:
1821+ @echo "This command is intended for maintainers to use"
1822+ @echo "it deletes files that may require special tools to rebuild."
1823+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
1824+clean: clean-recursive
1825+
1826+clean-am: clean-generic clean-libtool clean-local mostlyclean-am
1827+
1828+distclean: distclean-recursive
1829+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1830+ -rm -f Makefile
1831+distclean-am: clean-am distclean-generic distclean-hdr \
1832+ distclean-libtool distclean-tags
1833+
1834+dvi: dvi-recursive
1835+
1836+dvi-am:
1837+
1838+html: html-recursive
1839+
1840+html-am:
1841+
1842+info: info-recursive
1843+
1844+info-am:
1845+
1846+install-data-am: install-clientdefsDATA install-data-local
1847+
1848+install-dvi: install-dvi-recursive
1849+
1850+install-dvi-am:
1851+
1852+install-exec-am: install-binSCRIPTS install-libexecSCRIPTS
1853+
1854+install-html: install-html-recursive
1855+
1856+install-html-am:
1857+
1858+install-info: install-info-recursive
1859+
1860+install-info-am:
1861+
1862+install-man:
1863+
1864+install-pdf: install-pdf-recursive
1865+
1866+install-pdf-am:
1867+
1868+install-ps: install-ps-recursive
1869+
1870+install-ps-am:
1871+
1872+installcheck-am:
1873+
1874+maintainer-clean: maintainer-clean-recursive
1875+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1876+ -rm -rf $(top_srcdir)/autom4te.cache
1877+ -rm -f Makefile
1878+maintainer-clean-am: distclean-am maintainer-clean-generic
1879+
1880+mostlyclean: mostlyclean-recursive
1881+
1882+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
1883+
1884+pdf: pdf-recursive
1885+
1886+pdf-am:
1887+
1888+ps: ps-recursive
1889+
1890+ps-am:
1891+
1892+uninstall-am: uninstall-binSCRIPTS uninstall-clientdefsDATA \
1893+ uninstall-libexecSCRIPTS uninstall-local
1894+
1895+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
1896+ ctags-recursive install-am install-strip tags-recursive
1897+
1898+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
1899+ all all-am all-local am--refresh check check-am clean \
1900+ clean-generic clean-libtool clean-local ctags ctags-recursive \
1901+ dist dist-all dist-bzip2 dist-gzip dist-lzma dist-shar \
1902+ dist-tarZ dist-xz dist-zip distcheck distclean \
1903+ distclean-generic distclean-hdr distclean-libtool \
1904+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
1905+ dvi-am html html-am info info-am install install-am \
1906+ install-binSCRIPTS install-clientdefsDATA install-data \
1907+ install-data-am install-data-local install-dvi install-dvi-am \
1908+ install-exec install-exec-am install-html install-html-am \
1909+ install-info install-info-am install-libexecSCRIPTS \
1910+ install-man install-pdf install-pdf-am install-ps \
1911+ install-ps-am install-strip installcheck installcheck-am \
1912+ installdirs installdirs-am maintainer-clean \
1913+ maintainer-clean-generic mostlyclean mostlyclean-generic \
1914+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
1915+ uninstall uninstall-am uninstall-binSCRIPTS \
1916+ uninstall-clientdefsDATA uninstall-libexecSCRIPTS \
1917+ uninstall-local
1918+
1919+
1920+$(clientdefs_DATA): $(clientdefs_in_files) ubuntuone
1921+ sed -e 's|\@localedir\@|$(localedir)|g' \
1922+ -e 's|\@libexecdir\@|$(libexecdir)|g' \
1923+ -e 's|\@GETTEXT_PACKAGE\@|$(GETTEXT_PACKAGE)|g' \
1924+ -e 's|\@SSO_APP_NAME\@|$(SSO_APP_NAME)|g' \
1925+ -e 's|\@SSO_TC_URL\@|$(SSO_TC_URL)|g' \
1926+ -e 's|\@SSO_PING_URL\@|$(SSO_PING_URL)|g' \
1927+ -e 's|\@VERSION\@|$(VERSION)|g' < $< > $@
1928+
1929+pylintrc: Makefile
1930+ if test "x$(builddir)" != "x$(srcdir)"; then \
1931+ if [ ! -e pylintrc -a ! -h pylintrc ]; then \
1932+ $(LN_S) $(srcdir)/pylintrc; \
1933+ fi; \
1934+ fi
1935+
1936+logging.conf: data/logging.conf.in Makefile
1937+ $(MAKE) -C data logging.conf
1938+
1939+lint: pylintrc $(clientdefs_DATA) Makefile
1940+ PYTHONPATH="$(PYTHONPATH)" SRCDIR="$(srcdir)" USE_PYFLAKES="true" u1lint
1941+
1942+test: logging.conf $(clientdefs_DATA) Makefile
1943+ echo "$(PYTHONPATH)"
1944+ if test "x$(builddir)" == "x$(srcdir)"; then \
1945+ PYTHONPATH="$(PYTHONPATH)" u1trial tests -p tests/platform/windows; \
1946+ fi
1947+ rm -rf _trial_temp
1948+
1949+test-coverage: logging.conf $(clientdefs_DATA) Makefile
1950+ if test "x$(builddir)" == "x$(srcdir)"; then \
1951+ PYTHONPATH="$(PYTHONPATH)" u1trial -c tests; \
1952+ fi
1953+ rm -rf _trial_temp
1954+
1955+check: lint test Makefile
1956+
1957+docs: $(clientdefs_DATA) Makefile
1958+ $(mkdir_p) docs
1959+ if test "x$(builddir)" != "x$(srcdir)" -a -f "$(srcdir)/docs/syncdaemon_dbus_api.txt"; then \
1960+ $(LN_S) "$(top_srcdir)/docs/syncdaemon_dbus_api.txt" "docs/syncdaemon_dbus_api.txt"; \
1961+ else \
1962+ PYTHONPATH="$(PYTHONPATH)" SRCDIR="$(srcdir)" $(PYTHON) $(srcdir)/contrib/dbus-docs; \
1963+ fi
1964+
1965+ubuntuone: Makefile
1966+ if test "x$(builddir)" != "x$(srcdir)"; then \
1967+ $(mkdir_p) ubuntuone; \
1968+ $(mkdir_p) tests; \
1969+ (cd ubuntuone && $(LNDIR) $(srcdir)/../ubuntuone > /dev/null); \
1970+ (cd tests && $(LNDIR) $(srcdir)/../tests > /dev/null); \
1971+ fi
1972+
1973+all-local: pylintrc logging.conf $(clientdefs_DATA)
1974+
1975+u1fsfsm: $(srcdir)/ubuntuone/syncdaemon/u1fsfsm.ods
1976+ PYTHONPATH=$(PYTHONPATH) \
1977+ HAS_OOFFICE="true" \
1978+ XDG_CACHE_HOME="$(builddir)/_trial_temp/xdg_cache" \
1979+ $(PYTHON) -t $(srcdir)/$(sd_path)/fsm/fsm_parser.py \
1980+ -o $(builddir)/$(sd_path)/u1fsfsm.py $<
1981+ PYTHONPATH=$(PYTHONPATH) \
1982+ HAS_OOFFICE="true" \
1983+ XDG_CACHE_HOME="$(builddir)/_trial_temp/xdg_cache" \
1984+ $(PYTHON) -t $(srcdir)/$(sd_path)/fsm/fsm.py \
1985+ $(srcdir)/$(sd_path)/u1fsfsm.py
1986+
1987+install-data-local: $(clientdefs_DATA)
1988+ for package in $(pypackages); do \
1989+ $(mkdir_p) $(DESTDIR)$(pythonpkgdir)/$$package; \
1990+ for module in $(top_srcdir)/$$package/*.py; do \
1991+ $(install_sh_DATA) $$module $(DESTDIR)$(pythonpkgdir)/$$package; \
1992+ done; \
1993+ done
1994+ echo "$(PACKAGE)" > $(DESTDIR)$(pythondir)/$(PACKAGE).pth
1995+
1996+uninstall-local:
1997+ for package in $(pypackages); do \
1998+ for module in $(top_srcdir)/$$package/*.py; do \
1999+ modname=`basename $$module`; \
2000+ rm -f $(DESTDIR)$(pythonpkgdir)/$$package/$$modname; \
2001+ done; \
2002+ rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(pythonpkgdir)/$$package; \
2003+ done
2004+ rm -f $(DESTDIR)$(pythondir)/$(PACKAGE).pth
2005+
2006+clean-local:
2007+ for i in `find $(builddir) -name "*.pyc"`; do \
2008+ rm -f $$i; \
2009+ done
2010+ rm -rf build dist _trial_temp
2011+
2012+# Tell versions [3.59,3.63) of GNU make to not export all variables.
2013+# Otherwise a system limit (for SysV at least) may be exceeded.
2014+.NOEXPORT:
2015
2016=== added file 'README'
2017--- README 1970-01-01 00:00:00 +0000
2018+++ README 2011-07-08 07:12:36 +0000
2019@@ -0,0 +1,113 @@
2020+== Testing the Nautilus extension ==
2021+Ideally, we should have packages for testing, but since for each change this
2022+would be too much work, here are some instructions on how to setup a GNOME
2023+development installation to test it, without interfering the system-installed
2024+GNOME.
2025+
2026+To do so, the best way might be to use jhbuild, a set of scripts to build
2027+the whole GNOME desktop from GIT.
2028+
2029+1. Install jhbuild
2030+jhbuild package is available, but regardless of whether you install it with
2031+apt-get or by just getting the sources from GNOME GIT, you should follow the
2032+instructions at http://live.gnome.org/Jhbuild to set it up. The most important
2033+thing is to have a ~/.jhbuildrc file where the configuration to be used for
2034+building is stored. Default values should be ok, but make sure you set the
2035+correct moduleset line, so that includes the correct GNOME version (2.28 for
2036+Karmic). An example of this is:
2037+
2038+ moduleset = [ 'gnome-2.28', 'freedesktop-2.28', 'gnome-external-deps-2.28', 'gnome-suites-2.28' ]
2039+
2040+Which would install most of GNOME. Just using 'gnome-2.28' should be enough for
2041+testing the Nautilus extension though, but it doesn't harm to have all the
2042+others since jhbuild would just build what you tell it to build.
2043+
2044+2. Bootstrap
2045+This step installs, in the directory setup for installation in the ~/.jhbuildrc
2046+file, all the build tools needed for building, like autotools, gettext, python,
2047+etc.
2048+
2049+This is optional, since if not done, jhbuild would use the needed stuff from
2050+the system it's running on (autotools, gettext, etc), but if you see problems
2051+related to these packages, bootstrap would get the correct versions of all
2052+these tools.
2053+
2054+To do this, just run:
2055+
2056+ jhbuild bootstrap
2057+
2058+3. Build Nautilus
2059+
2060+ jhbuild build nautilus
2061+
2062+This would build and install (in the directory setup for installation in the
2063+~/.jhbuildrc) Nautilus and all its dependencies. This takes a long time, so
2064+make sure to not plan to sit down looking at the computer until it ends. Also,
2065+it would probably encounter some errors, which you'll have to try to deal with.
2066+
2067+Documentation for some modules always fail (at least for me), so when it
2068+happens to you, just open a shell from within jhbuild (it will offer you the
2069+option when there is an error in building), edit the top-level Makefile (not
2070+Makefile.am or Makefile.in, but plain Makefile) and remove 'doc' (or 'help')
2071+from the SUBDIRS line.
2072+
2073+Also, building API documentation takes a long time, so to reduce the time
2074+needed for building, make sure to have this line:
2075+
2076+ # extra arguments to pass to all autogen.sh scripts
2077+ # to speed up builds of gnome2, try '--disable-static --disable-gtk-doc'
2078+ autogenargs='--disable-static --disable-gtk-doc'
2079+
2080+in ~/,jhbuildrc.
2081+
2082+You might want to build the whole of GNOME. In that case, instead of 'jhbuild
2083+build nautilus', run:
2084+
2085+ jhbuild build
2086+
2087+4. Build Ubuntu One Nautilus extension
2088+
2089+You need to build the extension from within jhbuild environment. To do so,
2090+I have a profile in GNOME Terminal which runs the following script:
2091+
2092+ export BONOBO_ACTIVATION_PATH=/opt/extra/lib64/bonobo/servers:/opt/extra/lib/bonobo/servers
2093+ export PATH=/opt/icecream/bin:/opt/extra/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/lib/jvm/jre/bin
2094+ export LD_LIBRARY_PATH=/opt/extra/lib64:/opt/extra/lib
2095+ export PKG_CONFIG_PATH=/opt/extra/lib64/pkgconfig:/opt/extra/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig
2096+ export MONO_PATH=/usr/lib:/opt/extra/lib
2097+ export XDG_DATA_DIRS=/opt/extra/share
2098+ export XDG_CONFIG_DIRS=/opt/extra/etc/xdg
2099+ export ACLOCAL_FLAGS="-I /opt/extra/share/aclocal"
2100+
2101+ export GSM_VERBOSE_DEBUG=1
2102+
2103+ alias make='make -j8'
2104+ cd /opt/extra/src
2105+ bash
2106+
2107+Replace '/opt/extra' with the installation directory you setup in ~/.jhbuildrc.
2108+
2109+All this just sets environment variables used for building to point to the
2110+tree where jhbuild installed stuff.
2111+
2112+Once running on jhbuild build environment, just build and install our extension:
2113+
2114+ ./autogen.sh --prefix=$install_directory_in_jhbuildrc
2115+ make
2116+ make install
2117+
2118+5. Test the extension
2119+To test the extension you need to run the copy of Nautilus you just built with
2120+jhbuild. You can either create a separate user and have the following in the
2121+~/.xsession/~/.xinitc startup scripts:
2122+
2123+ export PATH=/opt/extra/bin:$PATH
2124+ ln -s /var/run/dbus/system_bus_socket /opt/extra/var/run/dbus/system_bus_socket
2125+ jhbuild run /opt/extra/bin/gnome-session
2126+
2127+or, the easiest way:
2128+
2129+ jhbuild run /opt/extra/bin/nautilus
2130+
2131+again, replacing /opt/extra with whatever install directory you use in
2132+~/.jhbuilrc
2133
2134=== renamed file 'README' => 'README.moved'
2135=== added file 'aclocal.m4'
2136--- aclocal.m4 1970-01-01 00:00:00 +0000
2137+++ aclocal.m4 2011-07-08 07:12:36 +0000
2138@@ -0,0 +1,1535 @@
2139+# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2140+
2141+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2142+# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2143+# This file is free software; the Free Software Foundation
2144+# gives unlimited permission to copy and/or distribute it,
2145+# with or without modifications, as long as this notice is preserved.
2146+
2147+# This program is distributed in the hope that it will be useful,
2148+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
2149+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
2150+# PARTICULAR PURPOSE.
2151+
2152+m4_ifndef([AC_AUTOCONF_VERSION],
2153+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2154+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
2155+[m4_warning([this file was generated for autoconf 2.67.
2156+You have another version of autoconf. It may work, but is not guaranteed to.
2157+If you have problems, you may need to regenerate the build system entirely.
2158+To do so, use the procedure documented by the package, typically `autoreconf'.])])
2159+
2160+dnl -*- mode: autoconf -*-
2161+dnl Copyright 2009 Johan Dahlin
2162+dnl
2163+dnl This file is free software; the author(s) gives unlimited
2164+dnl permission to copy and/or distribute it, with or without
2165+dnl modifications, as long as this notice is preserved.
2166+dnl
2167+
2168+# serial 1
2169+
2170+m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
2171+[
2172+ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
2173+ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
2174+ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
2175+
2176+ dnl enable/disable introspection
2177+ m4_if([$2], [require],
2178+ [dnl
2179+ enable_introspection=yes
2180+ ],[dnl
2181+ AC_ARG_ENABLE(introspection,
2182+ AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
2183+ [Enable introspection for this build]),,
2184+ [enable_introspection=auto])
2185+ ])dnl
2186+
2187+ AC_MSG_CHECKING([for gobject-introspection])
2188+
2189+ dnl presence/version checking
2190+ AS_CASE([$enable_introspection],
2191+ [no], [dnl
2192+ found_introspection="no (disabled, use --enable-introspection to enable)"
2193+ ],dnl
2194+ [yes],[dnl
2195+ PKG_CHECK_EXISTS([gobject-introspection-1.0],,
2196+ AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
2197+ PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
2198+ found_introspection=yes,
2199+ AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
2200+ ],dnl
2201+ [auto],[dnl
2202+ PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
2203+ ],dnl
2204+ [dnl
2205+ AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
2206+ ])dnl
2207+
2208+ AC_MSG_RESULT([$found_introspection])
2209+
2210+ INTROSPECTION_SCANNER=
2211+ INTROSPECTION_COMPILER=
2212+ INTROSPECTION_GENERATE=
2213+ INTROSPECTION_GIRDIR=
2214+ INTROSPECTION_TYPELIBDIR=
2215+ if test "x$found_introspection" = "xyes"; then
2216+ INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
2217+ INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
2218+ INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
2219+ INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
2220+ INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
2221+ INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
2222+ INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
2223+ INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
2224+ fi
2225+ AC_SUBST(INTROSPECTION_SCANNER)
2226+ AC_SUBST(INTROSPECTION_COMPILER)
2227+ AC_SUBST(INTROSPECTION_GENERATE)
2228+ AC_SUBST(INTROSPECTION_GIRDIR)
2229+ AC_SUBST(INTROSPECTION_TYPELIBDIR)
2230+ AC_SUBST(INTROSPECTION_CFLAGS)
2231+ AC_SUBST(INTROSPECTION_LIBS)
2232+ AC_SUBST(INTROSPECTION_MAKEFILE)
2233+
2234+ AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
2235+])
2236+
2237+
2238+dnl Usage:
2239+dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
2240+
2241+AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
2242+[
2243+ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
2244+])
2245+
2246+dnl Usage:
2247+dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
2248+
2249+
2250+AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
2251+[
2252+ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
2253+])
2254+
2255+# nls.m4 serial 5 (gettext-0.18)
2256+dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
2257+dnl Inc.
2258+dnl This file is free software; the Free Software Foundation
2259+dnl gives unlimited permission to copy and/or distribute it,
2260+dnl with or without modifications, as long as this notice is preserved.
2261+dnl
2262+dnl This file can can be used in projects which are not available under
2263+dnl the GNU General Public License or the GNU Library General Public
2264+dnl License but which still want to provide support for the GNU gettext
2265+dnl functionality.
2266+dnl Please note that the actual code of the GNU gettext library is covered
2267+dnl by the GNU Library General Public License, and the rest of the GNU
2268+dnl gettext package package is covered by the GNU General Public License.
2269+dnl They are *not* in the public domain.
2270+
2271+dnl Authors:
2272+dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
2273+dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
2274+
2275+AC_PREREQ([2.50])
2276+
2277+AC_DEFUN([AM_NLS],
2278+[
2279+ AC_MSG_CHECKING([whether NLS is requested])
2280+ dnl Default is enabled NLS
2281+ AC_ARG_ENABLE([nls],
2282+ [ --disable-nls do not use Native Language Support],
2283+ USE_NLS=$enableval, USE_NLS=yes)
2284+ AC_MSG_RESULT([$USE_NLS])
2285+ AC_SUBST([USE_NLS])
2286+])
2287+
2288+# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
2289+# serial 1 (pkg-config-0.24)
2290+#
2291+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
2292+#
2293+# This program is free software; you can redistribute it and/or modify
2294+# it under the terms of the GNU General Public License as published by
2295+# the Free Software Foundation; either version 2 of the License, or
2296+# (at your option) any later version.
2297+#
2298+# This program is distributed in the hope that it will be useful, but
2299+# WITHOUT ANY WARRANTY; without even the implied warranty of
2300+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2301+# General Public License for more details.
2302+#
2303+# You should have received a copy of the GNU General Public License
2304+# along with this program; if not, write to the Free Software
2305+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2306+#
2307+# As a special exception to the GNU General Public License, if you
2308+# distribute this file as part of a program that contains a
2309+# configuration script generated by Autoconf, you may include it under
2310+# the same distribution terms that you use for the rest of that program.
2311+
2312+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
2313+# ----------------------------------
2314+AC_DEFUN([PKG_PROG_PKG_CONFIG],
2315+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
2316+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
2317+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
2318+AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
2319+AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
2320+
2321+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2322+ AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
2323+fi
2324+if test -n "$PKG_CONFIG"; then
2325+ _pkg_min_version=m4_default([$1], [0.9.0])
2326+ AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
2327+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2328+ AC_MSG_RESULT([yes])
2329+ else
2330+ AC_MSG_RESULT([no])
2331+ PKG_CONFIG=""
2332+ fi
2333+fi[]dnl
2334+])# PKG_PROG_PKG_CONFIG
2335+
2336+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2337+#
2338+# Check to see whether a particular set of modules exists. Similar
2339+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
2340+#
2341+# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2342+# only at the first occurence in configure.ac, so if the first place
2343+# it's called might be skipped (such as if it is within an "if", you
2344+# have to call PKG_CHECK_EXISTS manually
2345+# --------------------------------------------------------------
2346+AC_DEFUN([PKG_CHECK_EXISTS],
2347+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2348+if test -n "$PKG_CONFIG" && \
2349+ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
2350+ m4_default([$2], [:])
2351+m4_ifvaln([$3], [else
2352+ $3])dnl
2353+fi])
2354+
2355+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
2356+# ---------------------------------------------
2357+m4_define([_PKG_CONFIG],
2358+[if test -n "$$1"; then
2359+ pkg_cv_[]$1="$$1"
2360+ elif test -n "$PKG_CONFIG"; then
2361+ PKG_CHECK_EXISTS([$3],
2362+ [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
2363+ [pkg_failed=yes])
2364+ else
2365+ pkg_failed=untried
2366+fi[]dnl
2367+])# _PKG_CONFIG
2368+
2369+# _PKG_SHORT_ERRORS_SUPPORTED
2370+# -----------------------------
2371+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
2372+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2373+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2374+ _pkg_short_errors_supported=yes
2375+else
2376+ _pkg_short_errors_supported=no
2377+fi[]dnl
2378+])# _PKG_SHORT_ERRORS_SUPPORTED
2379+
2380+
2381+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
2382+# [ACTION-IF-NOT-FOUND])
2383+#
2384+#
2385+# Note that if there is a possibility the first call to
2386+# PKG_CHECK_MODULES might not happen, you should be sure to include an
2387+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
2388+#
2389+#
2390+# --------------------------------------------------------------
2391+AC_DEFUN([PKG_CHECK_MODULES],
2392+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2393+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
2394+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
2395+
2396+pkg_failed=no
2397+AC_MSG_CHECKING([for $1])
2398+
2399+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
2400+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
2401+
2402+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
2403+and $1[]_LIBS to avoid the need to call pkg-config.
2404+See the pkg-config man page for more details.])
2405+
2406+if test $pkg_failed = yes; then
2407+ AC_MSG_RESULT([no])
2408+ _PKG_SHORT_ERRORS_SUPPORTED
2409+ if test $_pkg_short_errors_supported = yes; then
2410+ $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
2411+ else
2412+ $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
2413+ fi
2414+ # Put the nasty error message in config.log where it belongs
2415+ echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
2416+
2417+ m4_default([$4], [AC_MSG_ERROR(
2418+[Package requirements ($2) were not met:
2419+
2420+$$1_PKG_ERRORS
2421+
2422+Consider adjusting the PKG_CONFIG_PATH environment variable if you
2423+installed software in a non-standard prefix.
2424+
2425+_PKG_TEXT])[]dnl
2426+ ])
2427+elif test $pkg_failed = untried; then
2428+ AC_MSG_RESULT([no])
2429+ m4_default([$4], [AC_MSG_FAILURE(
2430+[The pkg-config script could not be found or is too old. Make sure it
2431+is in your PATH or set the PKG_CONFIG environment variable to the full
2432+path to pkg-config.
2433+
2434+_PKG_TEXT
2435+
2436+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
2437+ ])
2438+else
2439+ $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
2440+ $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
2441+ AC_MSG_RESULT([yes])
2442+ $3
2443+fi[]dnl
2444+])# PKG_CHECK_MODULES
2445+
2446+# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2447+#
2448+# This file is free software; the Free Software Foundation
2449+# gives unlimited permission to copy and/or distribute it,
2450+# with or without modifications, as long as this notice is preserved.
2451+
2452+# AM_AUTOMAKE_VERSION(VERSION)
2453+# ----------------------------
2454+# Automake X.Y traces this macro to ensure aclocal.m4 has been
2455+# generated from the m4 files accompanying Automake X.Y.
2456+# (This private macro should not be called outside this file.)
2457+AC_DEFUN([AM_AUTOMAKE_VERSION],
2458+[am__api_version='1.11'
2459+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
2460+dnl require some minimum version. Point them to the right macro.
2461+m4_if([$1], [1.11.1], [],
2462+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
2463+])
2464+
2465+# _AM_AUTOCONF_VERSION(VERSION)
2466+# -----------------------------
2467+# aclocal traces this macro to find the Autoconf version.
2468+# This is a private macro too. Using m4_define simplifies
2469+# the logic in aclocal, which can simply ignore this definition.
2470+m4_define([_AM_AUTOCONF_VERSION], [])
2471+
2472+# AM_SET_CURRENT_AUTOMAKE_VERSION
2473+# -------------------------------
2474+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
2475+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
2476+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
2477+[AM_AUTOMAKE_VERSION([1.11.1])dnl
2478+m4_ifndef([AC_AUTOCONF_VERSION],
2479+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2480+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
2481+
2482+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
2483+
2484+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
2485+#
2486+# This file is free software; the Free Software Foundation
2487+# gives unlimited permission to copy and/or distribute it,
2488+# with or without modifications, as long as this notice is preserved.
2489+
2490+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
2491+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
2492+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
2493+#
2494+# Of course, Automake must honor this variable whenever it calls a
2495+# tool from the auxiliary directory. The problem is that $srcdir (and
2496+# therefore $ac_aux_dir as well) can be either absolute or relative,
2497+# depending on how configure is run. This is pretty annoying, since
2498+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
2499+# source directory, any form will work fine, but in subdirectories a
2500+# relative path needs to be adjusted first.
2501+#
2502+# $ac_aux_dir/missing
2503+# fails when called from a subdirectory if $ac_aux_dir is relative
2504+# $top_srcdir/$ac_aux_dir/missing
2505+# fails if $ac_aux_dir is absolute,
2506+# fails when called from a subdirectory in a VPATH build with
2507+# a relative $ac_aux_dir
2508+#
2509+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
2510+# are both prefixed by $srcdir. In an in-source build this is usually
2511+# harmless because $srcdir is `.', but things will broke when you
2512+# start a VPATH build or use an absolute $srcdir.
2513+#
2514+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
2515+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
2516+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
2517+# and then we would define $MISSING as
2518+# MISSING="\${SHELL} $am_aux_dir/missing"
2519+# This will work as long as MISSING is not called from configure, because
2520+# unfortunately $(top_srcdir) has no meaning in configure.
2521+# However there are other variables, like CC, which are often used in
2522+# configure, and could therefore not use this "fixed" $ac_aux_dir.
2523+#
2524+# Another solution, used here, is to always expand $ac_aux_dir to an
2525+# absolute PATH. The drawback is that using absolute paths prevent a
2526+# configured tree to be moved without reconfiguration.
2527+
2528+AC_DEFUN([AM_AUX_DIR_EXPAND],
2529+[dnl Rely on autoconf to set up CDPATH properly.
2530+AC_PREREQ([2.50])dnl
2531+# expand $ac_aux_dir to an absolute path
2532+am_aux_dir=`cd $ac_aux_dir && pwd`
2533+])
2534+
2535+# AM_CONDITIONAL -*- Autoconf -*-
2536+
2537+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
2538+# Free Software Foundation, Inc.
2539+#
2540+# This file is free software; the Free Software Foundation
2541+# gives unlimited permission to copy and/or distribute it,
2542+# with or without modifications, as long as this notice is preserved.
2543+
2544+# serial 9
2545+
2546+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2547+# -------------------------------------
2548+# Define a conditional.
2549+AC_DEFUN([AM_CONDITIONAL],
2550+[AC_PREREQ(2.52)dnl
2551+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2552+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2553+AC_SUBST([$1_TRUE])dnl
2554+AC_SUBST([$1_FALSE])dnl
2555+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
2556+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
2557+m4_define([_AM_COND_VALUE_$1], [$2])dnl
2558+if $2; then
2559+ $1_TRUE=
2560+ $1_FALSE='#'
2561+else
2562+ $1_TRUE='#'
2563+ $1_FALSE=
2564+fi
2565+AC_CONFIG_COMMANDS_PRE(
2566+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2567+ AC_MSG_ERROR([[conditional "$1" was never defined.
2568+Usually this means the macro was only invoked conditionally.]])
2569+fi])])
2570+
2571+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
2572+# Free Software Foundation, Inc.
2573+#
2574+# This file is free software; the Free Software Foundation
2575+# gives unlimited permission to copy and/or distribute it,
2576+# with or without modifications, as long as this notice is preserved.
2577+
2578+# serial 10
2579+
2580+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
2581+# written in clear, in which case automake, when reading aclocal.m4,
2582+# will think it sees a *use*, and therefore will trigger all it's
2583+# C support machinery. Also note that it means that autoscan, seeing
2584+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2585+
2586+
2587+# _AM_DEPENDENCIES(NAME)
2588+# ----------------------
2589+# See how the compiler implements dependency checking.
2590+# NAME is "CC", "CXX", "GCJ", or "OBJC".
2591+# We try a few techniques and use that to set a single cache variable.
2592+#
2593+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
2594+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
2595+# dependency, and given that the user is not expected to run this macro,
2596+# just rely on AC_PROG_CC.
2597+AC_DEFUN([_AM_DEPENDENCIES],
2598+[AC_REQUIRE([AM_SET_DEPDIR])dnl
2599+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
2600+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
2601+AC_REQUIRE([AM_DEP_TRACK])dnl
2602+
2603+ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
2604+ [$1], CXX, [depcc="$CXX" am_compiler_list=],
2605+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
2606+ [$1], UPC, [depcc="$UPC" am_compiler_list=],
2607+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
2608+ [depcc="$$1" am_compiler_list=])
2609+
2610+AC_CACHE_CHECK([dependency style of $depcc],
2611+ [am_cv_$1_dependencies_compiler_type],
2612+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2613+ # We make a subdir and do the tests there. Otherwise we can end up
2614+ # making bogus files that we don't know about and never remove. For
2615+ # instance it was reported that on HP-UX the gcc test will end up
2616+ # making a dummy file named `D' -- because `-MD' means `put the output
2617+ # in D'.
2618+ mkdir conftest.dir
2619+ # Copy depcomp to subdir because otherwise we won't find it if we're
2620+ # using a relative directory.
2621+ cp "$am_depcomp" conftest.dir
2622+ cd conftest.dir
2623+ # We will build objects and dependencies in a subdirectory because
2624+ # it helps to detect inapplicable dependency modes. For instance
2625+ # both Tru64's cc and ICC support -MD to output dependencies as a
2626+ # side effect of compilation, but ICC will put the dependencies in
2627+ # the current directory while Tru64 will put them in the object
2628+ # directory.
2629+ mkdir sub
2630+
2631+ am_cv_$1_dependencies_compiler_type=none
2632+ if test "$am_compiler_list" = ""; then
2633+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
2634+ fi
2635+ am__universal=false
2636+ m4_case([$1], [CC],
2637+ [case " $depcc " in #(
2638+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
2639+ esac],
2640+ [CXX],
2641+ [case " $depcc " in #(
2642+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
2643+ esac])
2644+
2645+ for depmode in $am_compiler_list; do
2646+ # Setup a source with many dependencies, because some compilers
2647+ # like to wrap large dependency lists on column 80 (with \), and
2648+ # we should not choose a depcomp mode which is confused by this.
2649+ #
2650+ # We need to recreate these files for each test, as the compiler may
2651+ # overwrite some of them when testing with obscure command lines.
2652+ # This happens at least with the AIX C compiler.
2653+ : > sub/conftest.c
2654+ for i in 1 2 3 4 5 6; do
2655+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
2656+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2657+ # Solaris 8's {/usr,}/bin/sh.
2658+ touch sub/conftst$i.h
2659+ done
2660+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2661+
2662+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
2663+ # mode. It turns out that the SunPro C++ compiler does not properly
2664+ # handle `-M -o', and we need to detect this. Also, some Intel
2665+ # versions had trouble with output in subdirs
2666+ am__obj=sub/conftest.${OBJEXT-o}
2667+ am__minus_obj="-o $am__obj"
2668+ case $depmode in
2669+ gcc)
2670+ # This depmode causes a compiler race in universal mode.
2671+ test "$am__universal" = false || continue
2672+ ;;
2673+ nosideeffect)
2674+ # after this tag, mechanisms are not by side-effect, so they'll
2675+ # only be used when explicitly requested
2676+ if test "x$enable_dependency_tracking" = xyes; then
2677+ continue
2678+ else
2679+ break
2680+ fi
2681+ ;;
2682+ msvisualcpp | msvcmsys)
2683+ # This compiler won't grok `-c -o', but also, the minuso test has
2684+ # not run yet. These depmodes are late enough in the game, and
2685+ # so weak that their functioning should not be impacted.
2686+ am__obj=conftest.${OBJEXT-o}
2687+ am__minus_obj=
2688+ ;;
2689+ none) break ;;
2690+ esac
2691+ if depmode=$depmode \
2692+ source=sub/conftest.c object=$am__obj \
2693+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2694+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2695+ >/dev/null 2>conftest.err &&
2696+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2697+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2698+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2699+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2700+ # icc doesn't choke on unknown options, it will just issue warnings
2701+ # or remarks (even with -Werror). So we grep stderr for any message
2702+ # that says an option was ignored or not supported.
2703+ # When given -MP, icc 7.0 and 7.1 complain thusly:
2704+ # icc: Command line warning: ignoring option '-M'; no argument required
2705+ # The diagnosis changed in icc 8.0:
2706+ # icc: Command line remark: option '-MP' not supported
2707+ if (grep 'ignoring option' conftest.err ||
2708+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2709+ am_cv_$1_dependencies_compiler_type=$depmode
2710+ break
2711+ fi
2712+ fi
2713+ done
2714+
2715+ cd ..
2716+ rm -rf conftest.dir
2717+else
2718+ am_cv_$1_dependencies_compiler_type=none
2719+fi
2720+])
2721+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2722+AM_CONDITIONAL([am__fastdep$1], [
2723+ test "x$enable_dependency_tracking" != xno \
2724+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2725+])
2726+
2727+
2728+# AM_SET_DEPDIR
2729+# -------------
2730+# Choose a directory name for dependency files.
2731+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
2732+AC_DEFUN([AM_SET_DEPDIR],
2733+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2734+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2735+])
2736+
2737+
2738+# AM_DEP_TRACK
2739+# ------------
2740+AC_DEFUN([AM_DEP_TRACK],
2741+[AC_ARG_ENABLE(dependency-tracking,
2742+[ --disable-dependency-tracking speeds up one-time build
2743+ --enable-dependency-tracking do not reject slow dependency extractors])
2744+if test "x$enable_dependency_tracking" != xno; then
2745+ am_depcomp="$ac_aux_dir/depcomp"
2746+ AMDEPBACKSLASH='\'
2747+fi
2748+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2749+AC_SUBST([AMDEPBACKSLASH])dnl
2750+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
2751+])
2752+
2753+# Generate code to set up dependency tracking. -*- Autoconf -*-
2754+
2755+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
2756+# Free Software Foundation, Inc.
2757+#
2758+# This file is free software; the Free Software Foundation
2759+# gives unlimited permission to copy and/or distribute it,
2760+# with or without modifications, as long as this notice is preserved.
2761+
2762+#serial 5
2763+
2764+# _AM_OUTPUT_DEPENDENCY_COMMANDS
2765+# ------------------------------
2766+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2767+[{
2768+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
2769+ # are listed without --file. Let's play safe and only enable the eval
2770+ # if we detect the quoting.
2771+ case $CONFIG_FILES in
2772+ *\'*) eval set x "$CONFIG_FILES" ;;
2773+ *) set x $CONFIG_FILES ;;
2774+ esac
2775+ shift
2776+ for mf
2777+ do
2778+ # Strip MF so we end up with the name of the file.
2779+ mf=`echo "$mf" | sed -e 's/:.*$//'`
2780+ # Check whether this is an Automake generated Makefile or not.
2781+ # We used to match only the files named `Makefile.in', but
2782+ # some people rename them; so instead we look at the file content.
2783+ # Grep'ing the first line is not enough: some people post-process
2784+ # each Makefile.in and add a new line on top of each file to say so.
2785+ # Grep'ing the whole file is not good either: AIX grep has a line
2786+ # limit of 2048, but all sed's we know have understand at least 4000.
2787+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
2788+ dirpart=`AS_DIRNAME("$mf")`
2789+ else
2790+ continue
2791+ fi
2792+ # Extract the definition of DEPDIR, am__include, and am__quote
2793+ # from the Makefile without running `make'.
2794+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2795+ test -z "$DEPDIR" && continue
2796+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
2797+ test -z "am__include" && continue
2798+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2799+ # When using ansi2knr, U may be empty or an underscore; expand it
2800+ U=`sed -n 's/^U = //p' < "$mf"`
2801+ # Find all dependency output files, they are included files with
2802+ # $(DEPDIR) in their names. We invoke sed twice because it is the
2803+ # simplest approach to changing $(DEPDIR) to its actual value in the
2804+ # expansion.
2805+ for file in `sed -n "
2806+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
2807+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2808+ # Make sure the directory exists.
2809+ test -f "$dirpart/$file" && continue
2810+ fdir=`AS_DIRNAME(["$file"])`
2811+ AS_MKDIR_P([$dirpart/$fdir])
2812+ # echo "creating $dirpart/$file"
2813+ echo '# dummy' > "$dirpart/$file"
2814+ done
2815+ done
2816+}
2817+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2818+
2819+
2820+# AM_OUTPUT_DEPENDENCY_COMMANDS
2821+# -----------------------------
2822+# This macro should only be invoked once -- use via AC_REQUIRE.
2823+#
2824+# This code is only required when automatic dependency tracking
2825+# is enabled. FIXME. This creates each `.P' file that we will
2826+# need in order to bootstrap the dependency handling code.
2827+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2828+[AC_CONFIG_COMMANDS([depfiles],
2829+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2830+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2831+])
2832+
2833+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
2834+# Free Software Foundation, Inc.
2835+#
2836+# This file is free software; the Free Software Foundation
2837+# gives unlimited permission to copy and/or distribute it,
2838+# with or without modifications, as long as this notice is preserved.
2839+
2840+# serial 8
2841+
2842+# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
2843+AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
2844+
2845+# Do all the work for Automake. -*- Autoconf -*-
2846+
2847+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2848+# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
2849+#
2850+# This file is free software; the Free Software Foundation
2851+# gives unlimited permission to copy and/or distribute it,
2852+# with or without modifications, as long as this notice is preserved.
2853+
2854+# serial 16
2855+
2856+# This macro actually does too much. Some checks are only needed if
2857+# your package does certain things. But this isn't really a big deal.
2858+
2859+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
2860+# AM_INIT_AUTOMAKE([OPTIONS])
2861+# -----------------------------------------------
2862+# The call with PACKAGE and VERSION arguments is the old style
2863+# call (pre autoconf-2.50), which is being phased out. PACKAGE
2864+# and VERSION should now be passed to AC_INIT and removed from
2865+# the call to AM_INIT_AUTOMAKE.
2866+# We support both call styles for the transition. After
2867+# the next Automake release, Autoconf can make the AC_INIT
2868+# arguments mandatory, and then we can depend on a new Autoconf
2869+# release and drop the old call support.
2870+AC_DEFUN([AM_INIT_AUTOMAKE],
2871+[AC_PREREQ([2.62])dnl
2872+dnl Autoconf wants to disallow AM_ names. We explicitly allow
2873+dnl the ones we care about.
2874+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
2875+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
2876+AC_REQUIRE([AC_PROG_INSTALL])dnl
2877+if test "`cd $srcdir && pwd`" != "`pwd`"; then
2878+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2879+ # is not polluted with repeated "-I."
2880+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
2881+ # test to see if srcdir already configured
2882+ if test -f $srcdir/config.status; then
2883+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
2884+ fi
2885+fi
2886+
2887+# test whether we have cygpath
2888+if test -z "$CYGPATH_W"; then
2889+ if (cygpath --version) >/dev/null 2>/dev/null; then
2890+ CYGPATH_W='cygpath -w'
2891+ else
2892+ CYGPATH_W=echo
2893+ fi
2894+fi
2895+AC_SUBST([CYGPATH_W])
2896+
2897+# Define the identity of the package.
2898+dnl Distinguish between old-style and new-style calls.
2899+m4_ifval([$2],
2900+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
2901+ AC_SUBST([PACKAGE], [$1])dnl
2902+ AC_SUBST([VERSION], [$2])],
2903+[_AM_SET_OPTIONS([$1])dnl
2904+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
2905+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
2906+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
2907+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
2908+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
2909+
2910+_AM_IF_OPTION([no-define],,
2911+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
2912+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
2913+
2914+# Some tools Automake needs.
2915+AC_REQUIRE([AM_SANITY_CHECK])dnl
2916+AC_REQUIRE([AC_ARG_PROGRAM])dnl
2917+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
2918+AM_MISSING_PROG(AUTOCONF, autoconf)
2919+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
2920+AM_MISSING_PROG(AUTOHEADER, autoheader)
2921+AM_MISSING_PROG(MAKEINFO, makeinfo)
2922+AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
2923+AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
2924+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
2925+# We need awk for the "check" target. The system "awk" is bad on
2926+# some platforms.
2927+AC_REQUIRE([AC_PROG_AWK])dnl
2928+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
2929+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2930+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
2931+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
2932+ [_AM_PROG_TAR([v7])])])
2933+_AM_IF_OPTION([no-dependencies],,
2934+[AC_PROVIDE_IFELSE([AC_PROG_CC],
2935+ [_AM_DEPENDENCIES(CC)],
2936+ [define([AC_PROG_CC],
2937+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
2938+AC_PROVIDE_IFELSE([AC_PROG_CXX],
2939+ [_AM_DEPENDENCIES(CXX)],
2940+ [define([AC_PROG_CXX],
2941+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
2942+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
2943+ [_AM_DEPENDENCIES(OBJC)],
2944+ [define([AC_PROG_OBJC],
2945+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
2946+])
2947+_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
2948+dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
2949+dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
2950+dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
2951+AC_CONFIG_COMMANDS_PRE(dnl
2952+[m4_provide_if([_AM_COMPILER_EXEEXT],
2953+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
2954+])
2955+
2956+dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
2957+dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
2958+dnl mangled by Autoconf and run in a shell conditional statement.
2959+m4_define([_AC_COMPILER_EXEEXT],
2960+m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
2961+
2962+
2963+# When config.status generates a header, we must update the stamp-h file.
2964+# This file resides in the same directory as the config header
2965+# that is generated. The stamp files are numbered to have different names.
2966+
2967+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
2968+# loop where config.status creates the headers, so we can generate
2969+# our stamp files there.
2970+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
2971+[# Compute $1's index in $config_headers.
2972+_am_arg=$1
2973+_am_stamp_count=1
2974+for _am_header in $config_headers :; do
2975+ case $_am_header in
2976+ $_am_arg | $_am_arg:* )
2977+ break ;;
2978+ * )
2979+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2980+ esac
2981+done
2982+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
2983+
2984+# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
2985+#
2986+# This file is free software; the Free Software Foundation
2987+# gives unlimited permission to copy and/or distribute it,
2988+# with or without modifications, as long as this notice is preserved.
2989+
2990+# AM_PROG_INSTALL_SH
2991+# ------------------
2992+# Define $install_sh.
2993+AC_DEFUN([AM_PROG_INSTALL_SH],
2994+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2995+if test x"${install_sh}" != xset; then
2996+ case $am_aux_dir in
2997+ *\ * | *\ *)
2998+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2999+ *)
3000+ install_sh="\${SHELL} $am_aux_dir/install-sh"
3001+ esac
3002+fi
3003+AC_SUBST(install_sh)])
3004+
3005+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
3006+#
3007+# This file is free software; the Free Software Foundation
3008+# gives unlimited permission to copy and/or distribute it,
3009+# with or without modifications, as long as this notice is preserved.
3010+
3011+# serial 2
3012+
3013+# Check whether the underlying file-system supports filenames
3014+# with a leading dot. For instance MS-DOS doesn't.
3015+AC_DEFUN([AM_SET_LEADING_DOT],
3016+[rm -rf .tst 2>/dev/null
3017+mkdir .tst 2>/dev/null
3018+if test -d .tst; then
3019+ am__leading_dot=.
3020+else
3021+ am__leading_dot=_
3022+fi
3023+rmdir .tst 2>/dev/null
3024+AC_SUBST([am__leading_dot])])
3025+
3026+# Check to see how 'make' treats includes. -*- Autoconf -*-
3027+
3028+# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
3029+#
3030+# This file is free software; the Free Software Foundation
3031+# gives unlimited permission to copy and/or distribute it,
3032+# with or without modifications, as long as this notice is preserved.
3033+
3034+# serial 4
3035+
3036+# AM_MAKE_INCLUDE()
3037+# -----------------
3038+# Check to see how make treats includes.
3039+AC_DEFUN([AM_MAKE_INCLUDE],
3040+[am_make=${MAKE-make}
3041+cat > confinc << 'END'
3042+am__doit:
3043+ @echo this is the am__doit target
3044+.PHONY: am__doit
3045+END
3046+# If we don't find an include directive, just comment out the code.
3047+AC_MSG_CHECKING([for style of include used by $am_make])
3048+am__include="#"
3049+am__quote=
3050+_am_result=none
3051+# First try GNU make style include.
3052+echo "include confinc" > confmf
3053+# Ignore all kinds of additional output from `make'.
3054+case `$am_make -s -f confmf 2> /dev/null` in #(
3055+*the\ am__doit\ target*)
3056+ am__include=include
3057+ am__quote=
3058+ _am_result=GNU
3059+ ;;
3060+esac
3061+# Now try BSD make style include.
3062+if test "$am__include" = "#"; then
3063+ echo '.include "confinc"' > confmf
3064+ case `$am_make -s -f confmf 2> /dev/null` in #(
3065+ *the\ am__doit\ target*)
3066+ am__include=.include
3067+ am__quote="\""
3068+ _am_result=BSD
3069+ ;;
3070+ esac
3071+fi
3072+AC_SUBST([am__include])
3073+AC_SUBST([am__quote])
3074+AC_MSG_RESULT([$_am_result])
3075+rm -f confinc confmf
3076+])
3077+
3078+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
3079+
3080+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
3081+# Free Software Foundation, Inc.
3082+#
3083+# This file is free software; the Free Software Foundation
3084+# gives unlimited permission to copy and/or distribute it,
3085+# with or without modifications, as long as this notice is preserved.
3086+
3087+# serial 6
3088+
3089+# AM_MISSING_PROG(NAME, PROGRAM)
3090+# ------------------------------
3091+AC_DEFUN([AM_MISSING_PROG],
3092+[AC_REQUIRE([AM_MISSING_HAS_RUN])
3093+$1=${$1-"${am_missing_run}$2"}
3094+AC_SUBST($1)])
3095+
3096+
3097+# AM_MISSING_HAS_RUN
3098+# ------------------
3099+# Define MISSING if not defined so far and test if it supports --run.
3100+# If it does, set am_missing_run to use it, otherwise, to nothing.
3101+AC_DEFUN([AM_MISSING_HAS_RUN],
3102+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
3103+AC_REQUIRE_AUX_FILE([missing])dnl
3104+if test x"${MISSING+set}" != xset; then
3105+ case $am_aux_dir in
3106+ *\ * | *\ *)
3107+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3108+ *)
3109+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
3110+ esac
3111+fi
3112+# Use eval to expand $SHELL
3113+if eval "$MISSING --run true"; then
3114+ am_missing_run="$MISSING --run "
3115+else
3116+ am_missing_run=
3117+ AC_MSG_WARN([`missing' script is too old or missing])
3118+fi
3119+])
3120+
3121+# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
3122+#
3123+# This file is free software; the Free Software Foundation
3124+# gives unlimited permission to copy and/or distribute it,
3125+# with or without modifications, as long as this notice is preserved.
3126+
3127+# AM_PROG_MKDIR_P
3128+# ---------------
3129+# Check for `mkdir -p'.
3130+AC_DEFUN([AM_PROG_MKDIR_P],
3131+[AC_PREREQ([2.60])dnl
3132+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
3133+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
3134+dnl while keeping a definition of mkdir_p for backward compatibility.
3135+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
3136+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
3137+dnl Makefile.ins that do not define MKDIR_P, so we do our own
3138+dnl adjustment using top_builddir (which is defined more often than
3139+dnl MKDIR_P).
3140+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
3141+case $mkdir_p in
3142+ [[\\/$]]* | ?:[[\\/]]*) ;;
3143+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3144+esac
3145+])
3146+
3147+# Helper functions for option handling. -*- Autoconf -*-
3148+
3149+# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
3150+#
3151+# This file is free software; the Free Software Foundation
3152+# gives unlimited permission to copy and/or distribute it,
3153+# with or without modifications, as long as this notice is preserved.
3154+
3155+# serial 4
3156+
3157+# _AM_MANGLE_OPTION(NAME)
3158+# -----------------------
3159+AC_DEFUN([_AM_MANGLE_OPTION],
3160+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
3161+
3162+# _AM_SET_OPTION(NAME)
3163+# ------------------------------
3164+# Set option NAME. Presently that only means defining a flag for this option.
3165+AC_DEFUN([_AM_SET_OPTION],
3166+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
3167+
3168+# _AM_SET_OPTIONS(OPTIONS)
3169+# ----------------------------------
3170+# OPTIONS is a space-separated list of Automake options.
3171+AC_DEFUN([_AM_SET_OPTIONS],
3172+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
3173+
3174+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
3175+# -------------------------------------------
3176+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3177+AC_DEFUN([_AM_IF_OPTION],
3178+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
3179+
3180+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
3181+# Free Software Foundation, Inc.
3182+#
3183+# This file is free software; the Free Software Foundation
3184+# gives unlimited permission to copy and/or distribute it,
3185+# with or without modifications, as long as this notice is preserved.
3186+
3187+# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3188+# ---------------------------------------------------------------------------
3189+# Adds support for distributing Python modules and packages. To
3190+# install modules, copy them to $(pythondir), using the python_PYTHON
3191+# automake variable. To install a package with the same name as the
3192+# automake package, install to $(pkgpythondir), or use the
3193+# pkgpython_PYTHON automake variable.
3194+#
3195+# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
3196+# locations to install python extension modules (shared libraries).
3197+# Another macro is required to find the appropriate flags to compile
3198+# extension modules.
3199+#
3200+# If your package is configured with a different prefix to python,
3201+# users will have to add the install directory to the PYTHONPATH
3202+# environment variable, or create a .pth file (see the python
3203+# documentation for details).
3204+#
3205+# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
3206+# cause an error if the version of python installed on the system
3207+# doesn't meet the requirement. MINIMUM-VERSION should consist of
3208+# numbers and dots only.
3209+AC_DEFUN([AM_PATH_PYTHON],
3210+ [
3211+ dnl Find a Python interpreter. Python versions prior to 2.0 are not
3212+ dnl supported. (2.0 was released on October 16, 2000).
3213+ m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
3214+ [python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 dnl
3215+python2.1 python2.0])
3216+
3217+ m4_if([$1],[],[
3218+ dnl No version check is needed.
3219+ # Find any Python interpreter.
3220+ if test -z "$PYTHON"; then
3221+ AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
3222+ fi
3223+ am_display_PYTHON=python
3224+ ], [
3225+ dnl A version check is needed.
3226+ if test -n "$PYTHON"; then
3227+ # If the user set $PYTHON, use it and don't search something else.
3228+ AC_MSG_CHECKING([whether $PYTHON version >= $1])
3229+ AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
3230+ [AC_MSG_RESULT(yes)],
3231+ [AC_MSG_ERROR(too old)])
3232+ am_display_PYTHON=$PYTHON
3233+ else
3234+ # Otherwise, try each interpreter until we find one that satisfies
3235+ # VERSION.
3236+ AC_CACHE_CHECK([for a Python interpreter with version >= $1],
3237+ [am_cv_pathless_PYTHON],[
3238+ for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
3239+ test "$am_cv_pathless_PYTHON" = none && break
3240+ AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
3241+ done])
3242+ # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3243+ if test "$am_cv_pathless_PYTHON" = none; then
3244+ PYTHON=:
3245+ else
3246+ AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
3247+ fi
3248+ am_display_PYTHON=$am_cv_pathless_PYTHON
3249+ fi
3250+ ])
3251+
3252+ if test "$PYTHON" = :; then
3253+ dnl Run any user-specified action, or abort.
3254+ m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
3255+ else
3256+
3257+ dnl Query Python for its version number. Getting [:3] seems to be
3258+ dnl the best way to do this; it's what "site.py" does in the standard
3259+ dnl library.
3260+
3261+ AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
3262+ [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
3263+ AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
3264+
3265+ dnl Use the values of $prefix and $exec_prefix for the corresponding
3266+ dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
3267+ dnl distinct variables so they can be overridden if need be. However,
3268+ dnl general consensus is that you shouldn't need this ability.
3269+
3270+ AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
3271+ AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
3272+
3273+ dnl At times (like when building shared libraries) you may want
3274+ dnl to know which OS platform Python thinks this is.
3275+
3276+ AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
3277+ [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
3278+ AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
3279+
3280+
3281+ dnl Set up 4 directories:
3282+
3283+ dnl pythondir -- where to install python scripts. This is the
3284+ dnl site-packages directory, not the python standard library
3285+ dnl directory like in previous automake betas. This behavior
3286+ dnl is more consistent with lispdir.m4 for example.
3287+ dnl Query distutils for this directory. distutils does not exist in
3288+ dnl Python 1.5, so we fall back to the hardcoded directory if it
3289+ dnl doesn't work.
3290+ AC_CACHE_CHECK([for $am_display_PYTHON script directory],
3291+ [am_cv_python_pythondir],
3292+ [if test "x$prefix" = xNONE
3293+ then
3294+ am_py_prefix=$ac_default_prefix
3295+ else
3296+ am_py_prefix=$prefix
3297+ fi
3298+ am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
3299+ echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3300+ case $am_cv_python_pythondir in
3301+ $am_py_prefix*)
3302+ am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3303+ am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
3304+ ;;
3305+ *)
3306+ case $am_py_prefix in
3307+ /usr|/System*) ;;
3308+ *)
3309+ am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
3310+ ;;
3311+ esac
3312+ ;;
3313+ esac
3314+ ])
3315+ AC_SUBST([pythondir], [$am_cv_python_pythondir])
3316+
3317+ dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
3318+ dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
3319+ dnl more consistent with the rest of automake.
3320+
3321+ AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
3322+
3323+ dnl pyexecdir -- directory for installing python extension modules
3324+ dnl (shared libraries)
3325+ dnl Query distutils for this directory. distutils does not exist in
3326+ dnl Python 1.5, so we fall back to the hardcoded directory if it
3327+ dnl doesn't work.
3328+ AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
3329+ [am_cv_python_pyexecdir],
3330+ [if test "x$exec_prefix" = xNONE
3331+ then
3332+ am_py_exec_prefix=$am_py_prefix
3333+ else
3334+ am_py_exec_prefix=$exec_prefix
3335+ fi
3336+ am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
3337+ echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3338+ case $am_cv_python_pyexecdir in
3339+ $am_py_exec_prefix*)
3340+ am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3341+ am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
3342+ ;;
3343+ *)
3344+ case $am_py_exec_prefix in
3345+ /usr|/System*) ;;
3346+ *)
3347+ am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
3348+ ;;
3349+ esac
3350+ ;;
3351+ esac
3352+ ])
3353+ AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
3354+
3355+ dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
3356+
3357+ AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
3358+
3359+ dnl Run any user-specified action.
3360+ $2
3361+ fi
3362+
3363+])
3364+
3365+
3366+# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
3367+# ---------------------------------------------------------------------------
3368+# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
3369+# Run ACTION-IF-FALSE otherwise.
3370+# This test uses sys.hexversion instead of the string equivalent (first
3371+# word of sys.version), in order to cope with versions such as 2.2c1.
3372+# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
3373+AC_DEFUN([AM_PYTHON_CHECK_VERSION],
3374+ [prog="import sys
3375+# split strings by '.' and convert to numeric. Append some zeros
3376+# because we need at least 4 digits for the hex conversion.
3377+# map returns an iterator in Python 3.0 and a list in 2.x
3378+minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
3379+minverhex = 0
3380+# xrange is not present in Python 3.0 and range returns an iterator
3381+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
3382+sys.exit(sys.hexversion < minverhex)"
3383+ AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
3384+
3385+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
3386+#
3387+# This file is free software; the Free Software Foundation
3388+# gives unlimited permission to copy and/or distribute it,
3389+# with or without modifications, as long as this notice is preserved.
3390+
3391+# AM_RUN_LOG(COMMAND)
3392+# -------------------
3393+# Run COMMAND, save the exit status in ac_status, and log it.
3394+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
3395+AC_DEFUN([AM_RUN_LOG],
3396+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
3397+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
3398+ ac_status=$?
3399+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3400+ (exit $ac_status); }])
3401+
3402+# Check to make sure that the build environment is sane. -*- Autoconf -*-
3403+
3404+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
3405+# Free Software Foundation, Inc.
3406+#
3407+# This file is free software; the Free Software Foundation
3408+# gives unlimited permission to copy and/or distribute it,
3409+# with or without modifications, as long as this notice is preserved.
3410+
3411+# serial 5
3412+
3413+# AM_SANITY_CHECK
3414+# ---------------
3415+AC_DEFUN([AM_SANITY_CHECK],
3416+[AC_MSG_CHECKING([whether build environment is sane])
3417+# Just in case
3418+sleep 1
3419+echo timestamp > conftest.file
3420+# Reject unsafe characters in $srcdir or the absolute working directory
3421+# name. Accept space and tab only in the latter.
3422+am_lf='
3423+'
3424+case `pwd` in
3425+ *[[\\\"\#\$\&\'\`$am_lf]]*)
3426+ AC_MSG_ERROR([unsafe absolute working directory name]);;
3427+esac
3428+case $srcdir in
3429+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
3430+ AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
3431+esac
3432+
3433+# Do `set' in a subshell so we don't clobber the current shell's
3434+# arguments. Must try -L first in case configure is actually a
3435+# symlink; some systems play weird games with the mod time of symlinks
3436+# (eg FreeBSD returns the mod time of the symlink's containing
3437+# directory).
3438+if (
3439+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3440+ if test "$[*]" = "X"; then
3441+ # -L didn't work.
3442+ set X `ls -t "$srcdir/configure" conftest.file`
3443+ fi
3444+ rm -f conftest.file
3445+ if test "$[*]" != "X $srcdir/configure conftest.file" \
3446+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
3447+
3448+ # If neither matched, then we have a broken ls. This can happen
3449+ # if, for instance, CONFIG_SHELL is bash and it inherits a
3450+ # broken ls alias from the environment. This has actually
3451+ # happened. Such a system could not be considered "sane".
3452+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
3453+alias in your environment])
3454+ fi
3455+
3456+ test "$[2]" = conftest.file
3457+ )
3458+then
3459+ # Ok.
3460+ :
3461+else
3462+ AC_MSG_ERROR([newly created file is older than distributed files!
3463+Check your system clock])
3464+fi
3465+AC_MSG_RESULT(yes)])
3466+
3467+# Copyright (C) 2009 Free Software Foundation, Inc.
3468+#
3469+# This file is free software; the Free Software Foundation
3470+# gives unlimited permission to copy and/or distribute it,
3471+# with or without modifications, as long as this notice is preserved.
3472+
3473+# serial 1
3474+
3475+# AM_SILENT_RULES([DEFAULT])
3476+# --------------------------
3477+# Enable less verbose build rules; with the default set to DEFAULT
3478+# (`yes' being less verbose, `no' or empty being verbose).
3479+AC_DEFUN([AM_SILENT_RULES],
3480+[AC_ARG_ENABLE([silent-rules],
3481+[ --enable-silent-rules less verbose build output (undo: `make V=1')
3482+ --disable-silent-rules verbose build output (undo: `make V=0')])
3483+case $enable_silent_rules in
3484+yes) AM_DEFAULT_VERBOSITY=0;;
3485+no) AM_DEFAULT_VERBOSITY=1;;
3486+*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
3487+esac
3488+AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
3489+AM_BACKSLASH='\'
3490+AC_SUBST([AM_BACKSLASH])dnl
3491+_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
3492+])
3493+
3494+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
3495+#
3496+# This file is free software; the Free Software Foundation
3497+# gives unlimited permission to copy and/or distribute it,
3498+# with or without modifications, as long as this notice is preserved.
3499+
3500+# AM_PROG_INSTALL_STRIP
3501+# ---------------------
3502+# One issue with vendor `install' (even GNU) is that you can't
3503+# specify the program used to strip binaries. This is especially
3504+# annoying in cross-compiling environments, where the build's strip
3505+# is unlikely to handle the host's binaries.
3506+# Fortunately install-sh will honor a STRIPPROG variable, so we
3507+# always use install-sh in `make install-strip', and initialize
3508+# STRIPPROG with the value of the STRIP variable (set by the user).
3509+AC_DEFUN([AM_PROG_INSTALL_STRIP],
3510+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
3511+# Installed binaries are usually stripped using `strip' when the user
3512+# run `make install-strip'. However `strip' might not be the right
3513+# tool to use in cross-compilation environments, therefore Automake
3514+# will honor the `STRIP' environment variable to overrule this program.
3515+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
3516+if test "$cross_compiling" != no; then
3517+ AC_CHECK_TOOL([STRIP], [strip], :)
3518+fi
3519+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3520+AC_SUBST([INSTALL_STRIP_PROGRAM])])
3521+
3522+# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
3523+#
3524+# This file is free software; the Free Software Foundation
3525+# gives unlimited permission to copy and/or distribute it,
3526+# with or without modifications, as long as this notice is preserved.
3527+
3528+# serial 2
3529+
3530+# _AM_SUBST_NOTMAKE(VARIABLE)
3531+# ---------------------------
3532+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
3533+# This macro is traced by Automake.
3534+AC_DEFUN([_AM_SUBST_NOTMAKE])
3535+
3536+# AM_SUBST_NOTMAKE(VARIABLE)
3537+# ---------------------------
3538+# Public sister of _AM_SUBST_NOTMAKE.
3539+AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
3540+
3541+# Check how to create a tarball. -*- Autoconf -*-
3542+
3543+# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
3544+#
3545+# This file is free software; the Free Software Foundation
3546+# gives unlimited permission to copy and/or distribute it,
3547+# with or without modifications, as long as this notice is preserved.
3548+
3549+# serial 2
3550+
3551+# _AM_PROG_TAR(FORMAT)
3552+# --------------------
3553+# Check how to create a tarball in format FORMAT.
3554+# FORMAT should be one of `v7', `ustar', or `pax'.
3555+#
3556+# Substitute a variable $(am__tar) that is a command
3557+# writing to stdout a FORMAT-tarball containing the directory
3558+# $tardir.
3559+# tardir=directory && $(am__tar) > result.tar
3560+#
3561+# Substitute a variable $(am__untar) that extract such
3562+# a tarball read from stdin.
3563+# $(am__untar) < result.tar
3564+AC_DEFUN([_AM_PROG_TAR],
3565+[# Always define AMTAR for backward compatibility.
3566+AM_MISSING_PROG([AMTAR], [tar])
3567+m4_if([$1], [v7],
3568+ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
3569+ [m4_case([$1], [ustar],, [pax],,
3570+ [m4_fatal([Unknown tar format])])
3571+AC_MSG_CHECKING([how to create a $1 tar archive])
3572+# Loop over all known methods to create a tar archive until one works.
3573+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
3574+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
3575+# Do not fold the above two line into one, because Tru64 sh and
3576+# Solaris sh will not grok spaces in the rhs of `-'.
3577+for _am_tool in $_am_tools
3578+do
3579+ case $_am_tool in
3580+ gnutar)
3581+ for _am_tar in tar gnutar gtar;
3582+ do
3583+ AM_RUN_LOG([$_am_tar --version]) && break
3584+ done
3585+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
3586+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
3587+ am__untar="$_am_tar -xf -"
3588+ ;;
3589+ plaintar)
3590+ # Must skip GNU tar: if it does not support --format= it doesn't create
3591+ # ustar tarball either.
3592+ (tar --version) >/dev/null 2>&1 && continue
3593+ am__tar='tar chf - "$$tardir"'
3594+ am__tar_='tar chf - "$tardir"'
3595+ am__untar='tar xf -'
3596+ ;;
3597+ pax)
3598+ am__tar='pax -L -x $1 -w "$$tardir"'
3599+ am__tar_='pax -L -x $1 -w "$tardir"'
3600+ am__untar='pax -r'
3601+ ;;
3602+ cpio)
3603+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
3604+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
3605+ am__untar='cpio -i -H $1 -d'
3606+ ;;
3607+ none)
3608+ am__tar=false
3609+ am__tar_=false
3610+ am__untar=false
3611+ ;;
3612+ esac
3613+
3614+ # If the value was cached, stop now. We just wanted to have am__tar
3615+ # and am__untar set.
3616+ test -n "${am_cv_prog_tar_$1}" && break
3617+
3618+ # tar/untar a dummy directory, and stop if the command works
3619+ rm -rf conftest.dir
3620+ mkdir conftest.dir
3621+ echo GrepMe > conftest.dir/file
3622+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
3623+ rm -rf conftest.dir
3624+ if test -s conftest.tar; then
3625+ AM_RUN_LOG([$am__untar <conftest.tar])
3626+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3627+ fi
3628+done
3629+rm -rf conftest.dir
3630+
3631+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
3632+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
3633+AC_SUBST([am__tar])
3634+AC_SUBST([am__untar])
3635+]) # _AM_PROG_TAR
3636+
3637+# Autoconf support for the Vala compiler
3638+
3639+# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
3640+#
3641+# This file is free software; the Free Software Foundation
3642+# gives unlimited permission to copy and/or distribute it,
3643+# with or without modifications, as long as this notice is preserved.
3644+
3645+# serial 4
3646+
3647+# Check whether the Vala compiler exists in `PATH'. If it is found, the
3648+# variable VALAC is set. Optionally a minimum release number of the
3649+# compiler can be requested.
3650+#
3651+# AM_PROG_VALAC([MINIMUM-VERSION])
3652+# --------------------------------
3653+AC_DEFUN([AM_PROG_VALAC],
3654+[AC_PATH_PROG([VALAC], [valac], [])
3655+ AS_IF([test -z "$VALAC"],
3656+ [AC_MSG_WARN([No Vala compiler found. You will not be able to compile .vala source files.])],
3657+ [AS_IF([test -n "$1"],
3658+ [AC_MSG_CHECKING([$VALAC is at least version $1])
3659+ am__vala_version=`$VALAC --version | sed 's/Vala *//'`
3660+ AS_VERSION_COMPARE([$1], ["$am__vala_version"],
3661+ [AC_MSG_RESULT([yes])],
3662+ [AC_MSG_RESULT([yes])],
3663+ [AC_MSG_RESULT([no])
3664+ AC_MSG_ERROR([Vala $1 not found.])])])])
3665+])
3666+
3667+m4_include([m4/gtk-doc.m4])
3668+m4_include([m4/intltool.m4])
3669+m4_include([m4/libtool.m4])
3670+m4_include([m4/ltoptions.m4])
3671+m4_include([m4/ltsugar.m4])
3672+m4_include([m4/ltversion.m4])
3673+m4_include([m4/lt~obsolete.m4])
3674
3675=== added directory 'bin'
3676=== renamed directory 'bin' => 'bin.moved'
3677=== added file 'bin/u1sdtool'
3678--- bin/u1sdtool 1970-01-01 00:00:00 +0000
3679+++ bin/u1sdtool 2011-07-08 07:12:36 +0000
3680@@ -0,0 +1,286 @@
3681+#! /usr/bin/env python
3682+
3683+# u1sdtool - command line utility for controlling ubuntuone-syncdaemon
3684+#
3685+# Author: Guillermo Gonzalez <guillermo.gonzalez@canonical.com>
3686+#
3687+# Copyright 2009 Canonical Ltd.
3688+#
3689+# This program is free software: you can redistribute it and/or modify it
3690+# under the terms of the GNU General Public License version 3, as published
3691+# by the Free Software Foundation.
3692+#
3693+# This program is distributed in the hope that it will be useful, but
3694+# WITHOUT ANY WARRANTY; without even the implied warranties of
3695+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
3696+# PURPOSE. See the GNU General Public License for more details.
3697+#
3698+# You should have received a copy of the GNU General Public License along
3699+# with this program. If not, see <http://www.gnu.org/licenses/>.
3700+from twisted.internet import glib2reactor
3701+glib2reactor.install()
3702+
3703+import dbus
3704+import codecs
3705+import os
3706+import sys
3707+import warnings
3708+
3709+from dbus.mainloop.glib import DBusGMainLoop
3710+from optparse import OptionParser
3711+from twisted.internet import reactor, defer
3712+
3713+from ubuntuone.platform.linux.tools import (
3714+ SyncDaemonTool,
3715+ show_dirty_nodes,
3716+ show_path_info,
3717+ show_uploads,
3718+ show_downloads,
3719+ show_shares,
3720+ show_shared,
3721+ show_folders,
3722+ show_error,
3723+ show_state,
3724+ show_waiting,
3725+ show_waiting_content,
3726+ show_waiting_metadata,
3727+ show_public_file_info,
3728+ is_running,
3729+)
3730+
3731+
3732+def main(options, args, stdout):
3733+ """entry point"""
3734+ loop = DBusGMainLoop(set_as_default=True)
3735+ bus = dbus.SessionBus(mainloop=loop)
3736+ sync_daemon_tool = SyncDaemonTool(bus)
3737+
3738+ # get the encoding of the output stream, defaults to UTF-8
3739+ out_encoding = getattr(stdout, 'encoding', 'utf-8')
3740+ if out_encoding is None:
3741+ out_encoding = 'utf-8'
3742+ out = codecs.getwriter(out_encoding)(stdout, errors='replace')
3743+ # start syncdaemon if it's required
3744+ if not is_running() and not options.quit and not options.start:
3745+ d = sync_daemon_tool.start()
3746+ d.addBoth(lambda _: run(options, sync_daemon_tool, out))
3747+ else:
3748+ d = run(options, sync_daemon_tool, out)
3749+
3750+ def default_errback(error):
3751+ """ default error handler. """
3752+ out.write("\nOops, an error ocurred:\n")
3753+ error.printTraceback()
3754+
3755+ def stop_reactor(result):
3756+ """ stop the reactor. """
3757+ if reactor.running:
3758+ reactor.stop()
3759+ d.addErrback(default_errback)
3760+ d.addCallback(stop_reactor)
3761+ return d
3762+
3763+
3764+def run(options, sync_daemon_tool, out):
3765+ if options.wait:
3766+ def callback(result):
3767+ """ wait_for_nirvana callback (stop the reactor and exit)"""
3768+ out.write("\nubuntuone-syncdaemon became a fully "
3769+ "enlightened Buddha!\n")
3770+
3771+ d = sync_daemon_tool.wait_for_nirvana(verbose=True)
3772+ d.addCallbacks(callback)
3773+ elif options.list_shares:
3774+ d = sync_daemon_tool.get_shares()
3775+ d.addCallback(lambda r: show_shares(r, out))
3776+ elif options.accept_share:
3777+ d = sync_daemon_tool.accept_share(options.accept_share)
3778+ elif options.reject_share:
3779+ d = sync_daemon_tool.reject_share(options.reject_share)
3780+ elif options.subscribe_share:
3781+ d = sync_daemon_tool.subscribe_share(options.subscribe_share)
3782+ d.addErrback(lambda r: show_error(r, out))
3783+ elif options.unsubscribe_share:
3784+ d = sync_daemon_tool.unsubscribe_share(options.unsubscribe_share)
3785+ d.addErrback(lambda r: show_error(r, out))
3786+ elif options.refresh_shares:
3787+ d = sync_daemon_tool.refresh_shares()
3788+ elif options.refresh_volumes:
3789+ d = sync_daemon_tool.refresh_volumes()
3790+ elif options.offer_share:
3791+ path, username, name, access_level = options.offer_share
3792+ path = os.path.abspath(path)
3793+ d = sync_daemon_tool.offer_share(path, username, name, access_level)
3794+ elif options.list_shared:
3795+ d = sync_daemon_tool.list_shared()
3796+ d.addCallback(lambda r: show_shared(r, out))
3797+ elif options.create_folder:
3798+ path = os.path.abspath(options.create_folder)
3799+ if not os.path.exists(path):
3800+ parser.error("PATH: '%s' don't exists" % path)
3801+ d = sync_daemon_tool.create_folder(path)
3802+ d.addErrback(lambda r: show_error(r, out))
3803+ elif options.delete_folder:
3804+ d = sync_daemon_tool.delete_folder(options.delete_folder)
3805+ d.addErrback(lambda r: show_error(r, out))
3806+ elif options.list_folders:
3807+ d = sync_daemon_tool.get_folders()
3808+ d.addCallback(lambda r: show_folders(r, out))
3809+ elif options.subscribe_folder:
3810+ d = sync_daemon_tool.subscribe_folder(options.subscribe_folder)
3811+ d.addErrback(lambda r: show_error(r, out))
3812+ elif options.unsubscribe_folder:
3813+ d = sync_daemon_tool.unsubscribe_folder(options.unsubscribe_folder)
3814+ d.addErrback(lambda r: show_error(r, out))
3815+ elif options.rescan_from_scratch is not None:
3816+ d = sync_daemon_tool.rescan_from_scratch(options.rescan_from_scratch)
3817+ d.addErrback(lambda r: show_error(r, out))
3818+ elif options.publish_file:
3819+ path = os.path.abspath(options.publish_file)
3820+ d = sync_daemon_tool.change_public_access(path, True)
3821+ d.addCallback(lambda info: show_public_file_info(info, out))
3822+ d.addErrback(lambda failure: show_error(failure, out))
3823+ elif options.unpublish_file:
3824+ path = os.path.abspath(options.unpublish_file)
3825+ d = sync_daemon_tool.change_public_access(path, False)
3826+ d.addCallback(lambda info: show_public_file_info(info, out))
3827+ d.addErrback(lambda failure: show_error(failure, out))
3828+ elif options.path_info:
3829+ path = os.path.abspath(options.path_info)
3830+ if not os.path.exists(path):
3831+ parser.error("PATH: '%s' don't exists" % path)
3832+ d = sync_daemon_tool.get_metadata(path)
3833+ d.addCallback(lambda r: show_path_info(r, path, out))
3834+ elif options.dirty_nodes:
3835+ d = sync_daemon_tool.get_dirty_nodes()
3836+ d.addCallback(lambda r: show_dirty_nodes(r, out))
3837+ elif options.current_transfers:
3838+ d = sync_daemon_tool.get_current_uploads()
3839+ d.addCallback(lambda r: show_uploads(r, out))
3840+ d.addCallback(lambda _: sync_daemon_tool.get_current_downloads())
3841+ d.addCallback(lambda r: show_downloads(r, out))
3842+ elif options.quit:
3843+ d = sync_daemon_tool.quit()
3844+ def shutdown_check(result):
3845+ if result is None and not is_running():
3846+ out.write("ubuntuone-syncdaemon stopped.\n")
3847+ else:
3848+ out.write("ubuntuone-syncdaemon still running.\n")
3849+ d.addBoth(shutdown_check)
3850+ elif options.connect:
3851+ d = sync_daemon_tool.connect()
3852+ elif options.disconnect:
3853+ d = sync_daemon_tool.disconnect()
3854+ elif options.status:
3855+ d = sync_daemon_tool.get_status()
3856+ d.addCallback(lambda r: show_state(r, out))
3857+ elif options.waiting:
3858+ d = sync_daemon_tool.waiting()
3859+ d.addCallback(lambda r: show_waiting(r, out))
3860+ elif options.waiting_metadata:
3861+ d = sync_daemon_tool.waiting_metadata()
3862+ d.addCallback(lambda r: show_waiting_metadata(r, out))
3863+ elif options.waiting_content:
3864+ d = sync_daemon_tool.waiting_content()
3865+ d.addCallback(lambda r: show_waiting_content(r, out))
3866+ elif options.start:
3867+ d = sync_daemon_tool.start()
3868+ else:
3869+ parser.print_help()
3870+ d = defer.succeed(None)
3871+ return d
3872+
3873+
3874+if __name__ == '__main__':
3875+ # disable the dbus warnings
3876+ warnings.filterwarnings('ignore', module='dbus')
3877+ usage = "Usage: %prog [option]"
3878+ parser = OptionParser(usage=usage)
3879+ parser.add_option("-w", "--wait", dest="wait", action="store_true",
3880+ help="Wait until ubuntuone-syncdaemon reaches nirvana")
3881+ parser.add_option("", "--accept-share", dest="accept_share",
3882+ metavar="SHARE_ID",
3883+ help="Accept the share with the specified id")
3884+ parser.add_option("", "--reject-share", dest="reject_share",
3885+ metavar="SHARE_ID",
3886+ help="Reject the share with the specified id")
3887+ parser.add_option("", "--list-shares", dest="list_shares",
3888+ action="store_true",
3889+ help="Get the list of shares")
3890+ parser.add_option("", "--subscribe-share", dest="subscribe_share",
3891+ metavar="SHARE_ID",
3892+ help="Subscribe to a share specified by id")
3893+ parser.add_option("", "--unsubscribe-share", dest="unsubscribe_share",
3894+ metavar="SHARE_ID",
3895+ help="Unsubscribe from a share specified by id")
3896+ parser.add_option("", "--refresh-shares", dest="refresh_shares",
3897+ action="store_true",
3898+ help="Request a refresh of the list of shares to"
3899+ " the server")
3900+ parser.add_option("", "--offer-share", dest="offer_share", type="string",
3901+ nargs=4, metavar="PATH USER SHARE_NAME ACCESS_LEVEL",
3902+ help="Share PATH to USER. ")
3903+ parser.add_option("", "--list-shared", dest="list_shared",
3904+ action="store_true",
3905+ help="List the shared path's/shares offered. ")
3906+ parser.add_option("", "--create-folder", dest="create_folder",
3907+ metavar="PATH",
3908+ help="Create user defined folder in the specified path")
3909+ parser.add_option("", "--delete-folder", dest="delete_folder",
3910+ metavar="FOLDER_ID",
3911+ help="Delete user defined folder in the specified path")
3912+ parser.add_option("", "--list-folders", dest="list_folders",
3913+ action="store_true",
3914+ help="List all the user defined folders")
3915+ parser.add_option("", "--subscribe-folder", dest="subscribe_folder",
3916+ metavar="FOLDER_ID",
3917+ help="Subscribe to the folder specified by id")
3918+ parser.add_option("", "--unsubscribe-folder", dest="unsubscribe_folder",
3919+ metavar="FOLDER_ID",
3920+ help="Unsubscribe from the folder specified by id")
3921+ parser.add_option("", "--refresh-volumes", dest="refresh_volumes",
3922+ action="store_true",
3923+ help="Request a refresh of the list of volumes to"
3924+ " the server")
3925+ parser.add_option("", "--rescan-from-scratch", dest="rescan_from_scratch",
3926+ metavar="VOLUME_ID",
3927+ help="Request a rescan from scratch for a volume.")
3928+ parser.add_option("", "--publish-file", dest="publish_file",
3929+ metavar="PATH", help="Publish file publicly.")
3930+ parser.add_option("", "--unpublish-file", dest="unpublish_file",
3931+ metavar="PATH", help="Stop publishing file publicly.")
3932+ parser.add_option("", "--info", dest="path_info",
3933+ metavar="PATH", help="Request the metadata of PATH")
3934+
3935+ parser.add_option("", "--list-dirty-nodes", dest="dirty_nodes",
3936+ action="store_true",
3937+ help="Show the list of nodes marked as 'dirty'")
3938+ parser.add_option("", "--current-transfers", dest="current_transfers",
3939+ action="store_true",
3940+ help=" show the current uploads and downloads")
3941+ parser.add_option("-q", "--quit", dest="quit", action='store_true',
3942+ help="Shutdown the syncdaemon")
3943+ parser.add_option("-c", "--connect", dest="connect", action='store_true',
3944+ help="Connect the syncdaemon")
3945+ parser.add_option("-d", "--disconnect", dest="disconnect",
3946+ action='store_true', help="Disconnect the syncdaemon")
3947+ parser.add_option("-s", "--status", dest="status", action='store_true',
3948+ help="Get the current status of syncdaemon")
3949+ parser.add_option("", "--waiting", dest="waiting",
3950+ action='store_true',
3951+ help="Get the list of operations being executed")
3952+ parser.add_option("", "--waiting-content", dest="waiting_content",
3953+ action='store_true',
3954+ help="Get the waiting content list - Warning: this "
3955+ "option is deprecated, use '--waiting' instead")
3956+ parser.add_option("", "--waiting-metadata", dest="waiting_metadata",
3957+ action='store_true',
3958+ help="Get the waiting metadata list - Warning: this "
3959+ "option is deprecated, use '--waiting' instead")
3960+ parser.add_option("", "--start", dest="start", action='store_true',
3961+ help="Start syncdaemon if it's not running")
3962+
3963+ (options, args) = parser.parse_args(sys.argv)
3964+ reactor.callWhenRunning(main, options, args, sys.stdout)
3965+ reactor.run()
3966+
3967
3968=== added file 'bin/ubuntuone-launch'
3969--- bin/ubuntuone-launch 1970-01-01 00:00:00 +0000
3970+++ bin/ubuntuone-launch 2011-07-08 07:12:36 +0000
3971@@ -0,0 +1,117 @@
3972+#!/usr/bin/python
3973+
3974+# ubuntuone-launch - Ubuntu One storage synchronization daemon startup helper
3975+#
3976+# Author: John Lenton <john.lenton@canonical.com>
3977+#
3978+# Copyright 2010 Canonical Ltd.
3979+#
3980+# This program is free software: you can redistribute it and/or modify it
3981+# under the terms of the GNU General Public License version 3, as published
3982+# by the Free Software Foundation.
3983+#
3984+# This program is distributed in the hope that it will be useful, but
3985+# WITHOUT ANY WARRANTY; without even the implied warranties of
3986+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
3987+# PURPOSE. See the GNU General Public License for more details.
3988+#
3989+# You should have received a copy of the GNU General Public License along
3990+# with this program. If not, see <http://www.gnu.org/licenses/>.
3991+"""
3992+Ubuntu One storage synchronization daemon (syncdaemon) startup helper.
3993+
3994+This script decides whether to start and connect syncdaemon.
3995+
3996+ * If you've never used Ubuntu One file sync, or if you've disabled
3997+ file sync via Ubuntu One control panel (or equivalently via setting
3998+ files_sync_enabled to False in the syncdaemon configuration file),
3999+ syncdaemon is not started, and nothing happens as a result of this
4000+ script being run.
4001+
4002+ * otherwise if syncdaemon is not already running it is started, and
4003+ local rescan is allowed to finish.
4004+
4005+ * if syncdaemon has never synced to the server, or if there are no
4006+ credentials for Ubuntu One in the keyring, nothing further happens.
4007+
4008+ * otherwise, syncdaemon is asked to connect.
4009+
4010+"""
4011+import sys
4012+import os
4013+
4014+U1ROOT = os.path.expanduser('~/Ubuntu One/')
4015+
4016+if __name__ == '__main__':
4017+ # this check is done early to speed up startup on people who are not
4018+ # (yet) using the service (this way avoids all the imports).
4019+ if not os.path.isdir(U1ROOT):
4020+ # no directory, just quit
4021+ sys.exit(1)
4022+
4023+import dbus
4024+import glib
4025+import gobject
4026+from dbus.mainloop.glib import DBusGMainLoop
4027+from ubuntuone.platform.credentials import CredentialsManagementTool
4028+from ubuntuone.platform.tools import SyncDaemonTool, is_running
4029+from twisted.internet import defer
4030+
4031+
4032+def stage_two(node, sync_daemon_tool):
4033+ """Do the last few checks and ask for a connect if all is ok."""
4034+ # if the node_id of the root node is None, the user has never
4035+ # connected. Do not connect in that case.
4036+ if node.get('node_id', '') is None:
4037+ d = defer.fail(RuntimeError("never connected?"))
4038+ else:
4039+ # one last check: avoid having sso pop up asking for creds if
4040+ # the user deleted them
4041+ creds_tools = CredentialsManagementTool()
4042+ d = creds_tools.find_credentials()
4043+
4044+ return d
4045+
4046+
4047+def wait_for_ready(_, sync_daemon_tool):
4048+ """Wait for syncdaemon to be READY."""
4049+ d = sync_daemon_tool.wait_for_signal(
4050+ 'StatusChanged',
4051+ lambda a: a.get('name', '') == 'READY')
4052+ return d
4053+
4054+
4055+def main():
4056+ """Start syncdaemon and ask it to connect, if possible."""
4057+ gobject.set_application_name("ubuntuone-launch")
4058+ loop = DBusGMainLoop(set_as_default=True)
4059+ bus = dbus.SessionBus(mainloop=loop)
4060+ sync_daemon_tool = SyncDaemonTool(bus)
4061+
4062+ if sync_daemon_tool.is_files_sync_enabled():
4063+ if not is_running():
4064+ try:
4065+ # have SD start
4066+ d = sync_daemon_tool.start()
4067+ d.addBoth(wait_for_ready, sync_daemon_tool)
4068+ except dbus.exception.DBusException, e:
4069+ # some dbus error, shouldn't happen, bail out
4070+ d = defer.fail(e)
4071+ else:
4072+ # SD is already running
4073+ d = defer.succeed(True)
4074+ else:
4075+ # SD will not start (has been disabled by user)
4076+ d = defer.fail(RuntimeError("File sync is disabled"))
4077+
4078+ d.addCallback(lambda _: sync_daemon_tool.get_metadata(U1ROOT))
4079+ d.addCallback(stage_two, sync_daemon_tool)
4080+ # os._exit feels like it's cheating, but it's simple and fast
4081+ d.addCallbacks(lambda _: os._exit(0), lambda _: os._exit(1))
4082+
4083+ mainloop = glib.MainLoop()
4084+ mainloop.run()
4085+
4086+
4087+if __name__ == '__main__':
4088+ main()
4089
4090=== added file 'bin/ubuntuone-login'
4091--- bin/ubuntuone-login 1970-01-01 00:00:00 +0000
4092+++ bin/ubuntuone-login 2011-07-08 07:12:36 +0000
4093@@ -0,0 +1,64 @@
4094+#!/usr/bin/python
4095+# -*- coding: utf-8 -*-
4096+#
4097+# Author: Natalia B. Bidart <natalia.bidart@canonical.com>
4098+#
4099+# Copyright 2010 Canonical Ltd.
4100+#
4101+# This program is free software: you can redistribute it and/or modify it
4102+# under the terms of the GNU General Public License version 3, as published
4103+# by the Free Software Foundation.
4104+#
4105+# This program is distributed in the hope that it will be useful, but
4106+# WITHOUT ANY WARRANTY; without even the implied warranties of
4107+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
4108+# PURPOSE. See the GNU General Public License for more details.
4109+#
4110+# You should have received a copy of the GNU General Public License along
4111+# with this program. If not, see <http://www.gnu.org/licenses/>.
4112+
4113+"""The script tu ron the Ubuntu One Login D-Bus service."""
4114+
4115+# Invalid name "ubuntuone-login"
4116+# pylint: disable=C0103
4117+
4118+import logging
4119+import os
4120+import sys
4121+
4122+import dbus.mainloop.glib
4123+import dbus.service
4124+import glib
4125+
4126+from ubuntuone.logger import basic_formatter
4127+from ubuntuone.credentials import logger
4128+from ubuntuone.platform.linux.credentials import (
4129+ DBUS_BUS_NAME, DBUS_CREDENTIALS_PATH,
4130+ CredentialsManagement)
4131+
4132+dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
4133+
4134+
4135+if __name__ == "__main__":
4136+ # Register DBus service for making sure we run only one instance
4137+ bus = dbus.SessionBus()
4138+ name = bus.request_name(DBUS_BUS_NAME,
4139+ dbus.bus.NAME_FLAG_DO_NOT_QUEUE)
4140+ if name == dbus.bus.REQUEST_NAME_REPLY_EXISTS:
4141+ logger.error("Ubuntu One login manager already running, quitting.")
4142+ sys.exit(0)
4143+
4144+ if os.environ.get('U1_CREDENTIALS_DEBUG'):
4145+ debug_handler = logging.StreamHandler(sys.stderr)
4146+ debug_handler.setFormatter(basic_formatter)
4147+ debug_handler.setLevel(logging.DEBUG)
4148+ logger.addHandler(debug_handler)
4149+
4150+ logger.info("Starting Ubuntu One login manager for bus %r.", DBUS_BUS_NAME)
4151+ bus_name = dbus.service.BusName(DBUS_BUS_NAME, bus=dbus.SessionBus())
4152+ mainloop = glib.MainLoop()
4153+ CredentialsManagement(timeout_func=glib.timeout_add,
4154+ shutdown_func=mainloop.quit,
4155+ bus_name=bus_name, object_path=DBUS_CREDENTIALS_PATH)
4156+
4157+ mainloop.run()
4158
4159=== added file 'bin/ubuntuone-syncdaemon'
4160--- bin/ubuntuone-syncdaemon 1970-01-01 00:00:00 +0000
4161+++ bin/ubuntuone-syncdaemon 2011-07-08 07:12:36 +0000
4162@@ -0,0 +1,193 @@
4163+#!/usr/bin/python
4164+
4165+# ubuntuone-syncdaemon - Ubuntu One storage synchronization daemon
4166+#
4167+# Author: Guillermo Gonzalez <guillermo.gonzalez@canonical.com>
4168+#
4169+# Copyright 2009 Canonical Ltd.
4170+#
4171+# This program is free software: you can redistribute it and/or modify it
4172+# under the terms of the GNU General Public License version 3, as published
4173+# by the Free Software Foundation.
4174+#
4175+# This program is distributed in the hope that it will be useful, but
4176+# WITHOUT ANY WARRANTY; without even the implied warranties of
4177+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
4178+# PURPOSE. See the GNU General Public License for more details.
4179+#
4180+# You should have received a copy of the GNU General Public License along
4181+# with this program. If not, see <http://www.gnu.org/licenses/>.
4182+
4183+import sys
4184+
4185+if sys.platform == 'win32':
4186+ from txnamedpipes.reactor import install
4187+ install()
4188+else:
4189+ from twisted.internet import glib2reactor
4190+ glib2reactor.install()
4191+
4192+ import dbus
4193+ import dbus.mainloop.glib
4194+ dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
4195+
4196+import atexit
4197+import os
4198+import signal
4199+import sys
4200+import shutil
4201+
4202+from ubuntuone.platform import is_already_running, set_application_name, is_root
4203+from ubuntuone.syncdaemon import logger, config
4204+from ubuntuone.syncdaemon.config import (
4205+ get_config_files,
4206+)
4207+
4208+from ubuntuone.syncdaemon.main import Main
4209+
4210+from twisted.internet import reactor
4211+from xdg.BaseDirectory import (
4212+ xdg_cache_home,
4213+ xdg_data_home,
4214+)
4215+
4216+
4217+def die(msg):
4218+ logger.root_logger.warning(msg)
4219+ sys.stderr.write(msg + '\n')
4220+ sys.exit(1)
4221+
4222+
4223+def main(argv):
4224+ """ client entry point. """
4225+ args = argv[1:]
4226+ usage = "Usage: %prog [config file] [extra config files] [options] "
4227+ configs = []
4228+ while len(args) > 0 and not args[0].startswith('-'):
4229+ configs.append(args.pop(0))
4230+ if len(configs) == 0:
4231+ configs.extend(get_config_files())
4232+ (parser, options, argv) = config.configglue(file(configs[0]), *configs[1:],
4233+ args=args, usage=usage)
4234+
4235+ logger.init()
4236+ if options.debug:
4237+ logger.set_debug('stdout file')
4238+ else:
4239+ logger.configure_logging(options.logging_level,
4240+ options.logging_file_size,
4241+ options.logging_backup_count)
4242+
4243+ # check we're not running as root, or have explicitely and in
4244+ # length expressed our desire to do so
4245+ if (is_root() and
4246+ not options.im_ok_with_being_root_pretty_please_let_me_be_root):
4247+ die("Please don't run the syncdaemon as root.")
4248+
4249+ # check if the user disabled files sync
4250+ # we need to perform this check first because libsyncdaemon uses
4251+ # NameOwnerChanged signal to set up internal syncdaemon structures.
4252+ # In case we check config after acquiring DBus name we'll get LP:759714
4253+ if not config.get_user_config().get_files_sync_enabled():
4254+ die('Files synchronization is disabled.')
4255+
4256+ # check if there is another instance running
4257+ if is_already_running():
4258+ die('Another instance is running')
4259+
4260+ # check if we are using xdg_data_home and it doesn't exists
4261+ if xdg_data_home in options.data_dir and \
4262+ not os.path.exists(options.data_dir):
4263+ # if we have metadata in the old xdg_cache, move it!
4264+ old_data_dir = options.data_dir.replace(xdg_data_home, xdg_cache_home)
4265+ if os.path.exists(old_data_dir):
4266+ parent = os.path.dirname(options.data_dir)
4267+ if os.path.exists(parent) and not os.access(parent, os.W_OK):
4268+ # make the parent dir writable
4269+ os.chmod(parent, 0775)
4270+ elif not os.path.exists(parent):
4271+ # if it don't exits
4272+ os.makedirs(parent)
4273+ shutil.move(old_data_dir, options.data_dir)
4274+ if not os.path.exists(options.data_dir):
4275+ parent = os.path.dirname(options.data_dir)
4276+ if os.path.exists(parent) and not os.access(parent, os.W_OK):
4277+ # make the parent dir writable
4278+ os.chmod(parent, 0775)
4279+ os.makedirs(options.data_dir)
4280+
4281+ # create the partials_dir
4282+ partials_dir = os.path.join(xdg_cache_home, 'ubuntuone', 'partials')
4283+ if not os.path.exists(partials_dir):
4284+ os.makedirs(partials_dir)
4285+
4286+ logger.rotate_logs()
4287+ main = Main(options.root_dir, options.shares_dir, options.data_dir,
4288+ partials_dir, host=options.host, port=int(options.port),
4289+ dns_srv=options.dns_srv, ssl=True,
4290+ disable_ssl_verify=options.disable_ssl_verify,
4291+ mark_interval=options.mark_interval,
4292+ broadcast_events=options.send_events_over_dbus,
4293+ handshake_timeout=options.handshake_timeout,
4294+ shares_symlink_name='Shared With Me',
4295+ read_limit=options.bandwidth_throttling_read_limit,
4296+ write_limit=options.bandwidth_throttling_write_limit,
4297+ throttling_enabled=options.bandwidth_throttling_on,
4298+ ignore_files=options.ignore)
4299+ if options.oauth:
4300+ values = options.oauth.split(':')
4301+ if len(values) == 4 or len(values) == 2:
4302+ main.external.oauth_credentials = values
4303+ else:
4304+ msg = "--oauth requires a key and secret together in the form " \
4305+ "[CONSUMER_KEY:CONSUMER_SECRET:]KEY:SECRET"
4306+ parser.error(msg)
4307+
4308+ # override the reactor default signal handlers in order to
4309+ # shutdown properly
4310+ atexit.register(reactor.callFromThread, main.quit)
4311+ def install_handlers():
4312+ """ install our custom signal handler. """
4313+ def handler(signum, frame):
4314+ logger.root_logger.debug("Signal received %s ", str(signum))
4315+ reactor.callFromThread(main.quit)
4316+ for signal_name in ['SIGHUP', 'SIGTERM', 'SIGINT']:
4317+ actual_signal = getattr(signal, signal_name, None)
4318+ # some platforms do not have all the signals, eg: Windows does not
4319+ # have SIGHUP
4320+ if actual_signal is not None:
4321+ signal.signal(actual_signal, handler)
4322+
4323+ reactor.callWhenRunning(install_handlers)
4324+ # set the application name
4325+ set_application_name('ubuntuone-syncdaemon')
4326+
4327+ # check if we should start the heapy monitor
4328+ if options.debug_heapy_monitor:
4329+ try:
4330+ import guppy.heapy.RM
4331+ except ImportError:
4332+ logger.root_logger.warning('guppy-pe/heapy not available, remote '
4333+ 'monitor thread not started')
4334+ else:
4335+ guppy.heapy.RM.on()
4336+
4337+ main.start()
4338+ if options.debug_lsprof_file:
4339+ try:
4340+ from bzrlib.lsprof import profile
4341+ ret, stats = profile(reactor.run)
4342+ stats.save(options.debug_lsprof_file)
4343+ except ImportError:
4344+ logger.root_logger.warning('bzrlib.lsprof not available')
4345+ reactor.run()
4346+ else:
4347+ reactor.run()
4348+
4349+
4350+if __name__ == '__main__':
4351+ try:
4352+ main(sys.argv)
4353+ except Exception:
4354+ logger.root_logger.exception('Unexpected error')
4355+ raise
4356
4357=== added file 'config.guess'
4358--- config.guess 1970-01-01 00:00:00 +0000
4359+++ config.guess 2011-07-08 07:12:36 +0000
4360@@ -0,0 +1,1502 @@
4361+#! /bin/sh
4362+# Attempt to guess a canonical system name.
4363+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4364+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4365+# Free Software Foundation, Inc.
4366+
4367+timestamp='2009-12-30'
4368+
4369+# This file is free software; you can redistribute it and/or modify it
4370+# under the terms of the GNU General Public License as published by
4371+# the Free Software Foundation; either version 2 of the License, or
4372+# (at your option) any later version.
4373+#
4374+# This program is distributed in the hope that it will be useful, but
4375+# WITHOUT ANY WARRANTY; without even the implied warranty of
4376+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4377+# General Public License for more details.
4378+#
4379+# You should have received a copy of the GNU General Public License
4380+# along with this program; if not, write to the Free Software
4381+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
4382+# 02110-1301, USA.
4383+#
4384+# As a special exception to the GNU General Public License, if you
4385+# distribute this file as part of a program that contains a
4386+# configuration script generated by Autoconf, you may include it under
4387+# the same distribution terms that you use for the rest of that program.
4388+
4389+
4390+# Originally written by Per Bothner. Please send patches (context
4391+# diff format) to <config-patches@gnu.org> and include a ChangeLog
4392+# entry.
4393+#
4394+# This script attempts to guess a canonical system name similar to
4395+# config.sub. If it succeeds, it prints the system name on stdout, and
4396+# exits with 0. Otherwise, it exits with 1.
4397+#
4398+# You can get the latest version of this script from:
4399+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
4400+
4401+me=`echo "$0" | sed -e 's,.*/,,'`
4402+
4403+usage="\
4404+Usage: $0 [OPTION]
4405+
4406+Output the configuration name of the system \`$me' is run on.
4407+
4408+Operation modes:
4409+ -h, --help print this help, then exit
4410+ -t, --time-stamp print date of last modification, then exit
4411+ -v, --version print version number, then exit
4412+
4413+Report bugs and patches to <config-patches@gnu.org>."
4414+
4415+version="\
4416+GNU config.guess ($timestamp)
4417+
4418+Originally written by Per Bothner.
4419+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
4420+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
4421+Software Foundation, Inc.
4422+
4423+This is free software; see the source for copying conditions. There is NO
4424+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4425+
4426+help="
4427+Try \`$me --help' for more information."
4428+
4429+# Parse command line
4430+while test $# -gt 0 ; do
4431+ case $1 in
4432+ --time-stamp | --time* | -t )
4433+ echo "$timestamp" ; exit ;;
4434+ --version | -v )
4435+ echo "$version" ; exit ;;
4436+ --help | --h* | -h )
4437+ echo "$usage"; exit ;;
4438+ -- ) # Stop option processing
4439+ shift; break ;;
4440+ - ) # Use stdin as input.
4441+ break ;;
4442+ -* )
4443+ echo "$me: invalid option $1$help" >&2
4444+ exit 1 ;;
4445+ * )
4446+ break ;;
4447+ esac
4448+done
4449+
4450+if test $# != 0; then
4451+ echo "$me: too many arguments$help" >&2
4452+ exit 1
4453+fi
4454+
4455+trap 'exit 1' 1 2 15
4456+
4457+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
4458+# compiler to aid in system detection is discouraged as it requires
4459+# temporary files to be created and, as you can see below, it is a
4460+# headache to deal with in a portable fashion.
4461+
4462+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
4463+# use `HOST_CC' if defined, but it is deprecated.
4464+
4465+# Portable tmp directory creation inspired by the Autoconf team.
4466+
4467+set_cc_for_build='
4468+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
4469+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
4470+: ${TMPDIR=/tmp} ;
4471+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
4472+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
4473+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
4474+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
4475+dummy=$tmp/dummy ;
4476+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
4477+case $CC_FOR_BUILD,$HOST_CC,$CC in
4478+ ,,) echo "int x;" > $dummy.c ;
4479+ for c in cc gcc c89 c99 ; do
4480+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
4481+ CC_FOR_BUILD="$c"; break ;
4482+ fi ;
4483+ done ;
4484+ if test x"$CC_FOR_BUILD" = x ; then
4485+ CC_FOR_BUILD=no_compiler_found ;
4486+ fi
4487+ ;;
4488+ ,,*) CC_FOR_BUILD=$CC ;;
4489+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
4490+esac ; set_cc_for_build= ;'
4491+
4492+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
4493+# (ghazi@noc.rutgers.edu 1994-08-24)
4494+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
4495+ PATH=$PATH:/.attbin ; export PATH
4496+fi
4497+
4498+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
4499+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
4500+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
4501+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
4502+
4503+# Note: order is significant - the case branches are not exclusive.
4504+
4505+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4506+ *:NetBSD:*:*)
4507+ # NetBSD (nbsd) targets should (where applicable) match one or
4508+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
4509+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
4510+ # switched to ELF, *-*-netbsd* would select the old
4511+ # object file format. This provides both forward
4512+ # compatibility and a consistent mechanism for selecting the
4513+ # object file format.
4514+ #
4515+ # Note: NetBSD doesn't particularly care about the vendor
4516+ # portion of the name. We always set it to "unknown".
4517+ sysctl="sysctl -n hw.machine_arch"
4518+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
4519+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
4520+ case "${UNAME_MACHINE_ARCH}" in
4521+ armeb) machine=armeb-unknown ;;
4522+ arm*) machine=arm-unknown ;;
4523+ sh3el) machine=shl-unknown ;;
4524+ sh3eb) machine=sh-unknown ;;
4525+ sh5el) machine=sh5le-unknown ;;
4526+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
4527+ esac
4528+ # The Operating System including object format, if it has switched
4529+ # to ELF recently, or will in the future.
4530+ case "${UNAME_MACHINE_ARCH}" in
4531+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
4532+ eval $set_cc_for_build
4533+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
4534+ | grep -q __ELF__
4535+ then
4536+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
4537+ # Return netbsd for either. FIX?
4538+ os=netbsd
4539+ else
4540+ os=netbsdelf
4541+ fi
4542+ ;;
4543+ *)
4544+ os=netbsd
4545+ ;;
4546+ esac
4547+ # The OS release
4548+ # Debian GNU/NetBSD machines have a different userland, and
4549+ # thus, need a distinct triplet. However, they do not need
4550+ # kernel version information, so it can be replaced with a
4551+ # suitable tag, in the style of linux-gnu.
4552+ case "${UNAME_VERSION}" in
4553+ Debian*)
4554+ release='-gnu'
4555+ ;;
4556+ *)
4557+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
4558+ ;;
4559+ esac
4560+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
4561+ # contains redundant information, the shorter form:
4562+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
4563+ echo "${machine}-${os}${release}"
4564+ exit ;;
4565+ *:OpenBSD:*:*)
4566+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
4567+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
4568+ exit ;;
4569+ *:ekkoBSD:*:*)
4570+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
4571+ exit ;;
4572+ *:SolidBSD:*:*)
4573+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
4574+ exit ;;
4575+ macppc:MirBSD:*:*)
4576+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
4577+ exit ;;
4578+ *:MirBSD:*:*)
4579+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
4580+ exit ;;
4581+ alpha:OSF1:*:*)
4582+ case $UNAME_RELEASE in
4583+ *4.0)
4584+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
4585+ ;;
4586+ *5.*)
4587+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
4588+ ;;
4589+ esac
4590+ # According to Compaq, /usr/sbin/psrinfo has been available on
4591+ # OSF/1 and Tru64 systems produced since 1995. I hope that
4592+ # covers most systems running today. This code pipes the CPU
4593+ # types through head -n 1, so we only detect the type of CPU 0.
4594+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
4595+ case "$ALPHA_CPU_TYPE" in
4596+ "EV4 (21064)")
4597+ UNAME_MACHINE="alpha" ;;
4598+ "EV4.5 (21064)")
4599+ UNAME_MACHINE="alpha" ;;
4600+ "LCA4 (21066/21068)")
4601+ UNAME_MACHINE="alpha" ;;
4602+ "EV5 (21164)")
4603+ UNAME_MACHINE="alphaev5" ;;
4604+ "EV5.6 (21164A)")
4605+ UNAME_MACHINE="alphaev56" ;;
4606+ "EV5.6 (21164PC)")
4607+ UNAME_MACHINE="alphapca56" ;;
4608+ "EV5.7 (21164PC)")
4609+ UNAME_MACHINE="alphapca57" ;;
4610+ "EV6 (21264)")
4611+ UNAME_MACHINE="alphaev6" ;;
4612+ "EV6.7 (21264A)")
4613+ UNAME_MACHINE="alphaev67" ;;
4614+ "EV6.8CB (21264C)")
4615+ UNAME_MACHINE="alphaev68" ;;
4616+ "EV6.8AL (21264B)")
4617+ UNAME_MACHINE="alphaev68" ;;
4618+ "EV6.8CX (21264D)")
4619+ UNAME_MACHINE="alphaev68" ;;
4620+ "EV6.9A (21264/EV69A)")
4621+ UNAME_MACHINE="alphaev69" ;;
4622+ "EV7 (21364)")
4623+ UNAME_MACHINE="alphaev7" ;;
4624+ "EV7.9 (21364A)")
4625+ UNAME_MACHINE="alphaev79" ;;
4626+ esac
4627+ # A Pn.n version is a patched version.
4628+ # A Vn.n version is a released version.
4629+ # A Tn.n version is a released field test version.
4630+ # A Xn.n version is an unreleased experimental baselevel.
4631+ # 1.2 uses "1.2" for uname -r.
4632+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4633+ exit ;;
4634+ Alpha\ *:Windows_NT*:*)
4635+ # How do we know it's Interix rather than the generic POSIX subsystem?
4636+ # Should we change UNAME_MACHINE based on the output of uname instead
4637+ # of the specific Alpha model?
4638+ echo alpha-pc-interix
4639+ exit ;;
4640+ 21064:Windows_NT:50:3)
4641+ echo alpha-dec-winnt3.5
4642+ exit ;;
4643+ Amiga*:UNIX_System_V:4.0:*)
4644+ echo m68k-unknown-sysv4
4645+ exit ;;
4646+ *:[Aa]miga[Oo][Ss]:*:*)
4647+ echo ${UNAME_MACHINE}-unknown-amigaos
4648+ exit ;;
4649+ *:[Mm]orph[Oo][Ss]:*:*)
4650+ echo ${UNAME_MACHINE}-unknown-morphos
4651+ exit ;;
4652+ *:OS/390:*:*)
4653+ echo i370-ibm-openedition
4654+ exit ;;
4655+ *:z/VM:*:*)
4656+ echo s390-ibm-zvmoe
4657+ exit ;;
4658+ *:OS400:*:*)
4659+ echo powerpc-ibm-os400
4660+ exit ;;
4661+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
4662+ echo arm-acorn-riscix${UNAME_RELEASE}
4663+ exit ;;
4664+ arm:riscos:*:*|arm:RISCOS:*:*)
4665+ echo arm-unknown-riscos
4666+ exit ;;
4667+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
4668+ echo hppa1.1-hitachi-hiuxmpp
4669+ exit ;;
4670+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
4671+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
4672+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
4673+ echo pyramid-pyramid-sysv3
4674+ else
4675+ echo pyramid-pyramid-bsd
4676+ fi
4677+ exit ;;
4678+ NILE*:*:*:dcosx)
4679+ echo pyramid-pyramid-svr4
4680+ exit ;;
4681+ DRS?6000:unix:4.0:6*)
4682+ echo sparc-icl-nx6
4683+ exit ;;
4684+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
4685+ case `/usr/bin/uname -p` in
4686+ sparc) echo sparc-icl-nx7; exit ;;
4687+ esac ;;
4688+ s390x:SunOS:*:*)
4689+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4690+ exit ;;
4691+ sun4H:SunOS:5.*:*)
4692+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4693+ exit ;;
4694+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
4695+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4696+ exit ;;
4697+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
4698+ echo i386-pc-auroraux${UNAME_RELEASE}
4699+ exit ;;
4700+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
4701+ eval $set_cc_for_build
4702+ SUN_ARCH="i386"
4703+ # If there is a compiler, see if it is configured for 64-bit objects.
4704+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
4705+ # This test works for both compilers.
4706+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
4707+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
4708+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
4709+ grep IS_64BIT_ARCH >/dev/null
4710+ then
4711+ SUN_ARCH="x86_64"
4712+ fi
4713+ fi
4714+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4715+ exit ;;
4716+ sun4*:SunOS:6*:*)
4717+ # According to config.sub, this is the proper way to canonicalize
4718+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
4719+ # it's likely to be more like Solaris than SunOS4.
4720+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4721+ exit ;;
4722+ sun4*:SunOS:*:*)
4723+ case "`/usr/bin/arch -k`" in
4724+ Series*|S4*)
4725+ UNAME_RELEASE=`uname -v`
4726+ ;;
4727+ esac
4728+ # Japanese Language versions have a version number like `4.1.3-JL'.
4729+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
4730+ exit ;;
4731+ sun3*:SunOS:*:*)
4732+ echo m68k-sun-sunos${UNAME_RELEASE}
4733+ exit ;;
4734+ sun*:*:4.2BSD:*)
4735+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
4736+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
4737+ case "`/bin/arch`" in
4738+ sun3)
4739+ echo m68k-sun-sunos${UNAME_RELEASE}
4740+ ;;
4741+ sun4)
4742+ echo sparc-sun-sunos${UNAME_RELEASE}
4743+ ;;
4744+ esac
4745+ exit ;;
4746+ aushp:SunOS:*:*)
4747+ echo sparc-auspex-sunos${UNAME_RELEASE}
4748+ exit ;;
4749+ # The situation for MiNT is a little confusing. The machine name
4750+ # can be virtually everything (everything which is not
4751+ # "atarist" or "atariste" at least should have a processor
4752+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
4753+ # to the lowercase version "mint" (or "freemint"). Finally
4754+ # the system name "TOS" denotes a system which is actually not
4755+ # MiNT. But MiNT is downward compatible to TOS, so this should
4756+ # be no problem.
4757+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
4758+ echo m68k-atari-mint${UNAME_RELEASE}
4759+ exit ;;
4760+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
4761+ echo m68k-atari-mint${UNAME_RELEASE}
4762+ exit ;;
4763+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
4764+ echo m68k-atari-mint${UNAME_RELEASE}
4765+ exit ;;
4766+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
4767+ echo m68k-milan-mint${UNAME_RELEASE}
4768+ exit ;;
4769+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
4770+ echo m68k-hades-mint${UNAME_RELEASE}
4771+ exit ;;
4772+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
4773+ echo m68k-unknown-mint${UNAME_RELEASE}
4774+ exit ;;
4775+ m68k:machten:*:*)
4776+ echo m68k-apple-machten${UNAME_RELEASE}
4777+ exit ;;
4778+ powerpc:machten:*:*)
4779+ echo powerpc-apple-machten${UNAME_RELEASE}
4780+ exit ;;
4781+ RISC*:Mach:*:*)
4782+ echo mips-dec-mach_bsd4.3
4783+ exit ;;
4784+ RISC*:ULTRIX:*:*)
4785+ echo mips-dec-ultrix${UNAME_RELEASE}
4786+ exit ;;
4787+ VAX*:ULTRIX*:*:*)
4788+ echo vax-dec-ultrix${UNAME_RELEASE}
4789+ exit ;;
4790+ 2020:CLIX:*:* | 2430:CLIX:*:*)
4791+ echo clipper-intergraph-clix${UNAME_RELEASE}
4792+ exit ;;
4793+ mips:*:*:UMIPS | mips:*:*:RISCos)
4794+ eval $set_cc_for_build
4795+ sed 's/^ //' << EOF >$dummy.c
4796+#ifdef __cplusplus
4797+#include <stdio.h> /* for printf() prototype */
4798+ int main (int argc, char *argv[]) {
4799+#else
4800+ int main (argc, argv) int argc; char *argv[]; {
4801+#endif
4802+ #if defined (host_mips) && defined (MIPSEB)
4803+ #if defined (SYSTYPE_SYSV)
4804+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
4805+ #endif
4806+ #if defined (SYSTYPE_SVR4)
4807+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
4808+ #endif
4809+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
4810+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
4811+ #endif
4812+ #endif
4813+ exit (-1);
4814+ }
4815+EOF
4816+ $CC_FOR_BUILD -o $dummy $dummy.c &&
4817+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
4818+ SYSTEM_NAME=`$dummy $dummyarg` &&
4819+ { echo "$SYSTEM_NAME"; exit; }
4820+ echo mips-mips-riscos${UNAME_RELEASE}
4821+ exit ;;
4822+ Motorola:PowerMAX_OS:*:*)
4823+ echo powerpc-motorola-powermax
4824+ exit ;;
4825+ Motorola:*:4.3:PL8-*)
4826+ echo powerpc-harris-powermax
4827+ exit ;;
4828+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
4829+ echo powerpc-harris-powermax
4830+ exit ;;
4831+ Night_Hawk:Power_UNIX:*:*)
4832+ echo powerpc-harris-powerunix
4833+ exit ;;
4834+ m88k:CX/UX:7*:*)
4835+ echo m88k-harris-cxux7
4836+ exit ;;
4837+ m88k:*:4*:R4*)
4838+ echo m88k-motorola-sysv4
4839+ exit ;;
4840+ m88k:*:3*:R3*)
4841+ echo m88k-motorola-sysv3
4842+ exit ;;
4843+ AViiON:dgux:*:*)
4844+ # DG/UX returns AViiON for all architectures
4845+ UNAME_PROCESSOR=`/usr/bin/uname -p`
4846+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
4847+ then
4848+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
4849+ [ ${TARGET_BINARY_INTERFACE}x = x ]
4850+ then
4851+ echo m88k-dg-dgux${UNAME_RELEASE}
4852+ else
4853+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
4854+ fi
4855+ else
4856+ echo i586-dg-dgux${UNAME_RELEASE}
4857+ fi
4858+ exit ;;
4859+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
4860+ echo m88k-dolphin-sysv3
4861+ exit ;;
4862+ M88*:*:R3*:*)
4863+ # Delta 88k system running SVR3
4864+ echo m88k-motorola-sysv3
4865+ exit ;;
4866+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
4867+ echo m88k-tektronix-sysv3
4868+ exit ;;
4869+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
4870+ echo m68k-tektronix-bsd
4871+ exit ;;
4872+ *:IRIX*:*:*)
4873+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
4874+ exit ;;
4875+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
4876+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
4877+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
4878+ i*86:AIX:*:*)
4879+ echo i386-ibm-aix
4880+ exit ;;
4881+ ia64:AIX:*:*)
4882+ if [ -x /usr/bin/oslevel ] ; then
4883+ IBM_REV=`/usr/bin/oslevel`
4884+ else
4885+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4886+ fi
4887+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
4888+ exit ;;
4889+ *:AIX:2:3)
4890+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
4891+ eval $set_cc_for_build
4892+ sed 's/^ //' << EOF >$dummy.c
4893+ #include <sys/systemcfg.h>
4894+
4895+ main()
4896+ {
4897+ if (!__power_pc())
4898+ exit(1);
4899+ puts("powerpc-ibm-aix3.2.5");
4900+ exit(0);
4901+ }
4902+EOF
4903+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
4904+ then
4905+ echo "$SYSTEM_NAME"
4906+ else
4907+ echo rs6000-ibm-aix3.2.5
4908+ fi
4909+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
4910+ echo rs6000-ibm-aix3.2.4
4911+ else
4912+ echo rs6000-ibm-aix3.2
4913+ fi
4914+ exit ;;
4915+ *:AIX:*:[456])
4916+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
4917+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
4918+ IBM_ARCH=rs6000
4919+ else
4920+ IBM_ARCH=powerpc
4921+ fi
4922+ if [ -x /usr/bin/oslevel ] ; then
4923+ IBM_REV=`/usr/bin/oslevel`
4924+ else
4925+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4926+ fi
4927+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
4928+ exit ;;
4929+ *:AIX:*:*)
4930+ echo rs6000-ibm-aix
4931+ exit ;;
4932+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
4933+ echo romp-ibm-bsd4.4
4934+ exit ;;
4935+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
4936+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
4937+ exit ;; # report: romp-ibm BSD 4.3
4938+ *:BOSX:*:*)
4939+ echo rs6000-bull-bosx
4940+ exit ;;
4941+ DPX/2?00:B.O.S.:*:*)
4942+ echo m68k-bull-sysv3
4943+ exit ;;
4944+ 9000/[34]??:4.3bsd:1.*:*)
4945+ echo m68k-hp-bsd
4946+ exit ;;
4947+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
4948+ echo m68k-hp-bsd4.4
4949+ exit ;;
4950+ 9000/[34678]??:HP-UX:*:*)
4951+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4952+ case "${UNAME_MACHINE}" in
4953+ 9000/31? ) HP_ARCH=m68000 ;;
4954+ 9000/[34]?? ) HP_ARCH=m68k ;;
4955+ 9000/[678][0-9][0-9])
4956+ if [ -x /usr/bin/getconf ]; then
4957+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
4958+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
4959+ case "${sc_cpu_version}" in
4960+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
4961+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
4962+ 532) # CPU_PA_RISC2_0
4963+ case "${sc_kernel_bits}" in
4964+ 32) HP_ARCH="hppa2.0n" ;;
4965+ 64) HP_ARCH="hppa2.0w" ;;
4966+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
4967+ esac ;;
4968+ esac
4969+ fi
4970+ if [ "${HP_ARCH}" = "" ]; then
4971+ eval $set_cc_for_build
4972+ sed 's/^ //' << EOF >$dummy.c
4973+
4974+ #define _HPUX_SOURCE
4975+ #include <stdlib.h>
4976+ #include <unistd.h>
4977+
4978+ int main ()
4979+ {
4980+ #if defined(_SC_KERNEL_BITS)
4981+ long bits = sysconf(_SC_KERNEL_BITS);
4982+ #endif
4983+ long cpu = sysconf (_SC_CPU_VERSION);
4984+
4985+ switch (cpu)
4986+ {
4987+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
4988+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
4989+ case CPU_PA_RISC2_0:
4990+ #if defined(_SC_KERNEL_BITS)
4991+ switch (bits)
4992+ {
4993+ case 64: puts ("hppa2.0w"); break;
4994+ case 32: puts ("hppa2.0n"); break;
4995+ default: puts ("hppa2.0"); break;
4996+ } break;
4997+ #else /* !defined(_SC_KERNEL_BITS) */
4998+ puts ("hppa2.0"); break;
4999+ #endif
5000+ default: puts ("hppa1.0"); break;
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches