Merge lp:~smoser/ubuntu/oneiric/jigit/merge-debian-1.18-1 into lp:ubuntu/oneiric/jigit

Proposed by Scott Moser
Status: Merged
Merged at revision: 11
Proposed branch: lp:~smoser/ubuntu/oneiric/jigit/merge-debian-1.18-1
Merge into: lp:ubuntu/oneiric/jigit
Diff against target: 46128 lines (+45275/-199)
69 files modified
ChangeLog (+16/-0)
Makefile (+9/-1)
README (+20/-13)
debian/changelog (+29/-0)
debian/compat (+1/-1)
debian/control (+29/-4)
debian/copyright (+23/-8)
debian/libjte-dev.dirs (+2/-0)
debian/libjte1.dirs (+1/-0)
debian/rules (+20/-8)
debian/source/format (+1/-0)
jigit-mkimage.1 (+39/-13)
libjte/COPYING (+502/-0)
libjte/COPYRIGHT (+30/-0)
libjte/ChangeLog (+112/-0)
libjte/Makefile.am (+80/-0)
libjte/Makefile.in (+928/-0)
libjte/acinclude.m4 (+105/-0)
libjte/aclocal.m4 (+1032/-0)
libjte/bin/jigdo-gen-md5-list (+151/-0)
libjte/bootstrap (+6/-0)
libjte/checksum.c (+602/-0)
libjte/checksum.h (+80/-0)
libjte/compile (+143/-0)
libjte/config.guess (+1502/-0)
libjte/config.sub (+1714/-0)
libjte/configure (+14181/-0)
libjte/configure.ac (+184/-0)
libjte/depcomp (+630/-0)
libjte/doc/API (+12/-0)
libjte/doc/NOTES (+149/-0)
libjte/doc/TODO (+25/-0)
libjte/doc/doxyfile (+260/-0)
libjte/doc/doxyfileall (+261/-0)
libjte/doc/genman (+7/-0)
libjte/doc/jigdo-gen-md5-list.1 (+30/-0)
libjte/doc/jigdo-gen-md5-list.inc (+9/-0)
libjte/endian.c (+188/-0)
libjte/endianconv.h (+33/-0)
libjte/install-sh (+520/-0)
libjte/jte.c (+1274/-0)
libjte/jte.h (+145/-0)
libjte/libjte-1.pc.in (+11/-0)
libjte/libjte.c (+517/-0)
libjte/libjte.h (+445/-0)
libjte/libjte.ver (+32/-0)
libjte/libjte_private.h (+64/-0)
libjte/libtool.m4 (+7377/-0)
libjte/ltmain.sh (+8413/-0)
libjte/ltoptions.m4 (+368/-0)
libjte/ltsugar.m4 (+123/-0)
libjte/ltversion.m4 (+23/-0)
libjte/lt~obsolete.m4 (+92/-0)
libjte/md5.c (+416/-0)
libjte/md5.h (+41/-0)
libjte/missing (+376/-0)
libjte/rsync.c (+125/-0)
libjte/rsync.h (+6/-0)
libjte/sha1.c (+348/-0)
libjte/sha1.h (+48/-0)
libjte/sha256.c (+310/-0)
libjte/sha256.h (+69/-0)
libjte/sha512.c (+426/-0)
libjte/sha512.h (+69/-0)
libjte/test/demo.c (+342/-0)
libjte/version.h.in (+3/-0)
mkimage.1 (+0/-111)
mkimage.c (+143/-37)
mkjigsnap.8 (+3/-3)
To merge this branch: bzr merge lp:~smoser/ubuntu/oneiric/jigit/merge-debian-1.18-1
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Ubuntu branches Pending
Review via email: mp+62723@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Good work! There's -2 available now, but it seems ours just builds anyway.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2007-11-20 16:40:49 +0000
3+++ ChangeLog 2011-05-27 18:21:17 +0000
4@@ -1,3 +1,19 @@
5+Version 1.18 (2011/04/30)
6+
7+ * More dynamic memory handling in mkimage, instead of allocating
8+ fixed-size strings on the stack. Should now work on Hurd too.
9+ * Fix man page syntax errors.
10+ * s,config.h,../config.h, in libjte for easier use by the xorriso folks
11+
12+Version 1.17 (2011/03/16)
13+
14+ * Rename mkimage to jigit-mkimage, to avoid a naming clash.
15+ * Sanity-check jigdo files - require a valid JigsawDownload
16+ header by default.
17+ * Multiple fixes for how MD5 comparisons are dealt with.
18+ * Add libjte - jigdo generation code that used to be embedded in
19+ mkisofs/genisoimage. Now a shared library useable in xorriso etc.
20+
21 Version 1.16 (2007/10/18)
22
23 * Remove build-stamp from the release tarball, to make debian package
24
25=== added file 'JTE-patch1.gz'
26Binary files JTE-patch1.gz 1970-01-01 00:00:00 +0000 and JTE-patch1.gz 2011-05-27 18:21:17 +0000 differ
27=== modified file 'Makefile'
28--- Makefile 2008-05-29 10:33:52 +0000
29+++ Makefile 2011-05-27 18:21:17 +0000
30@@ -1,4 +1,4 @@
31-BINS = jigdump jigit-mkimage jigsum rsyncsum
32+BINS = jigdump jigit-mkimage jigsum rsyncsum lib
33 CFLAGS = -g -Wall -Werror -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
34 #CC = gcc
35
36@@ -16,7 +16,15 @@
37 jigdump: jigdump.o md5.o
38 $(CC) -o $@ $+
39
40+lib: libjte/Makefile
41+ make -C libjte
42+
43+libjte/Makefile:
44+ cd libjte && ./configure
45+
46 clean:
47 rm -f *.o $(BINS) *~ build-stamp
48+ -make -C libjte clean
49
50 distclean: clean
51+ -make -C libjte distclean
52\ No newline at end of file
53
54=== modified file 'README'
55--- README 2008-03-23 20:57:42 +0000
56+++ README 2011-05-27 18:21:17 +0000
57@@ -1,7 +1,7 @@
58-README for JTE 1.16
59+README for JTE 1.18
60
61 Steve McIntyre <steve@einval.com>
62-17 Oct 2007
63+30 April 2011
64
65 License - GPL v2. See the file COPYING for more details.
66
67@@ -30,15 +30,26 @@
68 2. Write a helper tool to dump extra information for jigdo to use alongside
69 the ISO image (helper tool written, but modifying jigdo to use this looks
70 HARD)
71- 3. Patch genisoimage to write .jigdo and .template files alongside the ISO image
72+ 3. Patch ISO creation tools to write .jigdo and .template files
73+ alongside the ISO image
74
75-I've now done the third of these, and called it JTE (or Jigdo Template Export).
76-The code works fine, and runs in a very small fraction of the time taken to run
77-genisoimage and jigdo separately. The output .jigdo and .template files work
78-correctly, i.e. jigdo-file and the wrapper script jigdo-mirror accept them and
79+I've now done the third of these, and called the code JTE (or Jigdo
80+Template Export). The code works fine, and runs in a very small
81+fraction of the time taken to run genisoimage and jigdo
82+separately. The output .jigdo and .template files work correctly,
83+i.e. jigdo-file and the wrapper script jigdo-mirror accept them and
84 will generate an ISO image that exactly matches the original.
85
86-Current versions of JTE now also come with some extra tools:
87+However, cdrkit / genisoimage is now deprecated in my opinion. The
88+nice people working on xorriso (George Danchev and Thomas Schmitt)
89+have helped a huge amount by cleaning up some of my code and wrapping
90+it properly in a shared library. The code is now included here as
91+libjte, and re-licensed slightly as LGPL v2.1 or later.
92+
93+Tools
94+=====
95+
96+JTE also comes with some extra tools:
97
98 jigit-mkimage, a simple and very fast tool to reconstruct image files
99 from .jigdo and .template files. It doesn't have any logic to cope
100@@ -55,13 +66,9 @@
101 jigit is a first attempt at a user-friendly wrapper for jigit-mkimage
102 on a user's machine.
103
104-The addition of these extra tools means that I'm now distributing JTE
105-as a tarball rather than just a genisoimage patch; the patch is inside the
106-tarball too.
107-
108 ----------------------------------------------------------------------
109
110-How to use JTE
111+How to use JTE in genisoimage
112
113 To use the jigdo creation code, specify the location of the output
114 .jigdo and .template files alongside the ISO image. You can also
115
116=== modified file 'debian/changelog'
117--- debian/changelog 2010-03-06 13:29:10 +0000
118+++ debian/changelog 2011-05-27 18:21:17 +0000
119@@ -1,3 +1,32 @@
120+jigit (1.18-1ubuntu1) oneiric; urgency=low
121+
122+ * Merge from debian unstable (LP: #789219). Remaining changes:
123+ - jigit: set default HOST to http://releases.ubuntu.com
124+
125+ -- Scott Moser <smoser@ubuntu.com> Fri, 27 May 2011 13:09:29 -0400
126+
127+jigit (1.18-1) unstable; urgency=low
128+
129+ * New upstream release.
130+ + More dynamic memory handling in mkimage, instead of allocating
131+ fixed-size strings on the stack. Should now work on Hurd too.
132+ + Fix man page syntax errors.
133+ + s,config.h,../config.h, in libjte for easier use by the xorriso folks
134+
135+ -- Steve McIntyre <93sam@debian.org> Sat, 30 Apr 2011 19:06:18 +0100
136+
137+jigit (1.17-2) unstable; urgency=low
138+
139+ * Include jigdo-gen-md5-list and its man page. Closes: #620155
140+
141+ -- Steve McIntyre <93sam@debian.org> Wed, 30 Mar 2011 20:57:56 +0100
142+
143+jigit (1.17-1) unstable; urgency=low
144+
145+ * New upstream release, complete with new libjte code.
146+
147+ -- Steve McIntyre <93sam@debian.org> Sun, 20 Mar 2011 01:17:45 +0000
148+
149 jigit (1.16-2ubuntu2) lucid; urgency=low
150
151 * rebuild rest of main for armel armv7/thumb2 optimization;
152
153=== modified file 'debian/compat'
154--- debian/compat 2008-05-29 10:33:52 +0000
155+++ debian/compat 2011-05-27 18:21:17 +0000
156@@ -1,1 +1,1 @@
157-5
158+8
159
160=== modified file 'debian/control'
161--- debian/control 2008-05-29 10:33:52 +0000
162+++ debian/control 2011-05-27 18:21:17 +0000
163@@ -3,13 +3,15 @@
164 Priority: extra
165 Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
166 XSBC-Original-Maintainer: Steve McIntyre <93sam@debian.org>
167-Build-Depends: debhelper (>= 5), zlib1g-dev, libbz2-dev
168-Standards-Version: 3.7.2.0
169+Build-Depends: debhelper (>= 8), zlib1g-dev, libbz2-dev
170+Standards-Version: 3.9.1.0
171+Homepage: http://www.einval.com/~steve/software/JTE/
172
173 Package: jigit
174+Section: utils
175 Priority: extra
176 Architecture: any
177-Depends: ${shlibs:Depends}
178+Depends: ${shlibs:Depends}, ${misc:Depends}
179 Recommends: wget
180 Description: tools for working with jigdo files
181 Jigit makes jigdo easy! Run jigit to update existing CDs and images
182@@ -22,4 +24,27 @@
183 dump: list the contents of a template file
184 jigsum: Output MD5 sums in the base64-style jigdo way
185 mkjigsnap: helper script to be run on the upstream server
186-Section: utils
187+
188+Package: libjte1
189+Section: libs
190+Priority: extra
191+Architecture: any
192+Depends: ${shlibs:Depends}, ${misc:Depends}
193+Description: Jigdo Template Export - runtime library
194+ libjte is a library providing support for creating jigdo files, to be
195+ used by ISO image creation tools such as xorriso.
196+ .
197+ This package provides the runtime library file needed to run software
198+ written using libjte
199+
200+Package: libjte-dev
201+Section: libdevel
202+Priority: extra
203+Architecture: any
204+Depends: ${misc:Depends}, ${shlibs:Depends}, zlib1g-dev, libbz2-dev, libjte1 (= ${binary:Version})
205+Description: Jigdo Template Export - development
206+ libjte is a library providing support for creating jigdo files, to be
207+ used by ISO image creation tools such as xorriso.
208+ .
209+ This package provides the header and development files needed to build
210+ programs and packages that use libjte.
211
212=== modified file 'debian/copyright'
213--- debian/copyright 2004-12-26 18:01:01 +0000
214+++ debian/copyright 2011-05-27 18:21:17 +0000
215@@ -1,13 +1,28 @@
216-This is the Debian GNU/Linux prepackaged version of jigit, a tool
217-written by Steve McIntyre <steve@einval.com> to help create ISO images
218-from jigdo files.
219-
220- Copyright (c) 2004 Steve McIntyre. jigit may be copied under the
221- terms and conditions of version 2 of the GNU General Public License,
222- as published by the Free Software Foundation (Cambridge, MA, USA).
223+This is the Debian GNU/Linux prepackaged version of jigit. Jigit includes:
224+
225+ * a set of tools written by Steve McIntyre <steve@einval.com> to help
226+ create ISO images from jigdo files.
227+
228+ Copyright (c) 2004-2011 Steve McIntyre. jigit may be copied under
229+ the terms and conditions of version 2 of the GNU General Public
230+ License, as published by the Free Software Foundation (Cambridge,
231+ MA, USA).
232+
233+ * the libjte library which contains utility code to help in creating
234+ jigdo files.
235+
236+ Copyright (C) 2000-2011 Free Software Foundation, Inc.,
237+ Steve McIntyre, George Danchev, Thomas Schmitt.
238+
239+ This program is free software; you can redistribute it and/or
240+ modify it under the terms of the GNU Lesser General Public License
241+ as published by the Free Software Foundation; either version 2.1
242+ of the License, or (at your option) any later version.
243
244 On Debian GNU/Linux systems, the complete text of the GNU General
245-Public License can be found in /usr/share/common-licenses/GPL .
246+Public License (v2) can be found in /usr/share/common-licenses/GPL-2
247+and the complete text of the GNU Lesser General Public License (v2.1)
248+can be found in /usr/share/common-licenses/LGPL-2.1 .
249
250 This package was also put together by Steve McIntyre
251 <93sam@debian.org> from sources obtained from:
252
253=== added file 'debian/libjte-dev.dirs'
254--- debian/libjte-dev.dirs 1970-01-01 00:00:00 +0000
255+++ debian/libjte-dev.dirs 2011-05-27 18:21:17 +0000
256@@ -0,0 +1,2 @@
257+/usr/include/libjte
258+/usr/lib/pkgconfig
259
260=== added file 'debian/libjte1.dirs'
261--- debian/libjte1.dirs 1970-01-01 00:00:00 +0000
262+++ debian/libjte1.dirs 2011-05-27 18:21:17 +0000
263@@ -0,0 +1,1 @@
264+/usr/lib
265
266=== modified file 'debian/rules'
267--- debian/rules 2008-05-29 10:33:52 +0000
268+++ debian/rules 2011-05-27 18:21:17 +0000
269@@ -10,6 +10,7 @@
270 dh_testdir
271
272 # Add here commands to compile the package.
273+ cd libjte && ./configure --prefix=/usr
274 $(MAKE)
275
276 touch build-stamp
277@@ -20,24 +21,34 @@
278 rm -f build-stamp
279
280 # Add here commands to clean up after the build process.
281- -$(MAKE) clean
282- -$(MAKE) distclean
283+ $(MAKE) clean
284+ $(MAKE) distclean
285
286 dh_clean
287
288 install: build
289 dh_testdir
290 dh_testroot
291- dh_clean -k
292+ dh_prep
293 dh_installdirs
294
295 # Add here commands to install the package into debian/<packagename>
296 #$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
297- dh_install jigit-mkimage jigdump jigit jigsum usr/bin
298- dh_install mkjigsnap usr/sbin
299- dh_install jigit-mkimage.1 jigdump.1 jigit.1 jigsum.1 usr/share/man/man1
300- dh_install mkjigsnap.8 usr/share/man/man8
301- dh_install iso-image.pl usr/share/doc/jigit/examples
302+ dh_install -pjigit jigit-mkimage jigdump jigit jigsum usr/bin
303+ dh_install -pjigit libjte/bin/jigdo-gen-md5-list usr/bin
304+ dh_install -pjigit mkjigsnap usr/sbin
305+ dh_install -pjigit jigit-mkimage.1 jigdump.1 jigit.1 jigsum.1 usr/share/man/man1
306+ dh_install -pjigit libjte/doc/jigdo-gen-md5-list.1 usr/share/man/man1
307+ dh_install -pjigit mkjigsnap.8 usr/share/man/man8
308+ dh_install -pjigit iso-image.pl usr/share/doc/jigit/examples
309+
310+ dh_install -plibjte1 libjte/libjte/.libs/libjte.so.1.0.0 usr/lib
311+ dh_install -plibjte1 libjte/libjte/.libs/libjte.so.1 usr/lib
312+
313+ dh_install -plibjte-dev libjte/libjte/.libs/libjte.a usr/lib
314+ dh_install -plibjte-dev libjte/libjte/.libs/libjte.so usr/lib
315+ dh_install -plibjte-dev libjte/libjte.h usr/include/libjte
316+ dh_install -plibjte-dev libjte/libjte-1.pc usr/lib/pkgconfig
317
318 # Build architecture-independent files here.
319 binary-indep: build install
320@@ -51,6 +62,7 @@
321 dh_installdocs
322 dh_installexamples
323 dh_installman
324+ dh_makeshlibs
325 dh_link
326 dh_strip
327 dh_compress
328
329=== added directory 'debian/source'
330=== added file 'debian/source/format'
331--- debian/source/format 1970-01-01 00:00:00 +0000
332+++ debian/source/format 2011-05-27 18:21:17 +0000
333@@ -0,0 +1,1 @@
334+1.0
335
336=== modified file 'jigit-mkimage.1'
337--- jigit-mkimage.1 2008-03-23 20:57:42 +0000
338+++ jigit-mkimage.1 2011-05-27 18:21:17 +0000
339@@ -3,15 +3,15 @@
340 mkimage \- Create an ISO image from jigdo files
341 .SH SYNOPSIS
342 .B mkimage
343-\-j \f jigdo\fR \-t \f template\fR
344-[\fIoptions\fR]...
345-.PP
346-.B mkimage
347-\-t \f template\fR \-z
348-[\fIoptions\fR]...
349-.PP
350-.B mkimage
351-\-f \f md5\-list\fR -t \f template\fR \-M \f missing\-list\fR
352+\-j \fjigdo\fR \-t \ftemplate\fR
353+[\fIoptions\fR]...
354+.PP
355+.B mkimage
356+\-t \ftemplate\fR \-z
357+[\fIoptions\fR]...
358+.PP
359+.B mkimage
360+\-f \fmd5\-list\fR -t \ftemplate\fR \-M \fmissing\-list\fR
361 [\fIoptions\fR]...
362 .SH DESCRIPTION
363 .PP
364@@ -31,10 +31,30 @@
365 an MD5 file (\fB\-f\fR).
366 .TP
367 \fB\-f MD5 file\fR
368-A file listing files available locally and their MD5 sums, in jigdo's
369-base64-like format. Can be generated by jigdo-file or jigsum. To
370-rebuild an image you must specify \fBat least\fR one of the MD5 file and
371-a jigdo file (\fB\-j\fR).
372+A file listing files available locally and their MD5 sums, in the same
373+format as used by genisoimage:
374+.sp
375+.RS +.2i
376+.ta 2.0i 2.0i 5.0i
377+.nf
378+MD5sum File size Path
379+32 chars 12 chars to end of line
380+.fi
381+.RE
382+.IP
383+.PP
384+The MD5sum must be written in standard hexadecimal notation, the
385+file size must list the size of the file in bytes, and the path
386+must list the absolute path to the file. For example:
387+.sp
388+.nf
389+00006dcd58ff0756c36d2efae21be376 14736 /mirror/debian/file1
390+000635c69b254a1be8badcec3a8d05c1 211822 /mirror/debian/file2
391+00083436a3899a09633fc1026ef1e66e 22762 /mirror/debian/file3
392+.fi
393+.PP
394+To rebuild an image you must specify \fBat least\fR one of the
395+MD5 file and a jigdo file (\fB\-j\fR).
396 .TP
397 \fB\-m item=path\fR
398 Used in conjunction with a jigdo file; specify where mkimage should
399@@ -59,6 +79,12 @@
400 mkimage will normally write to stderr when it reports
401 progress. Specify a logfile (or /dev/null) if you want it elsewhere.
402 .TP
403+\fB\-O\fR
404+Skip checking the validity of specified jigdo files. mkimage will
405+normally check for the "JigsawDownload" header as a sanity check, but
406+some very old jigdo files produced by Debian pre-dated the addition of
407+this header.
408+.TP
409 \fB\-o outfile\fR
410 mkimage will normally write the ISO image to stdout, ready for piping
411 into cdrecord or to iso-image.pl. Specify an output filename if you
412
413=== added directory 'libjte'
414=== added file 'libjte/COPYING'
415--- libjte/COPYING 1970-01-01 00:00:00 +0000
416+++ libjte/COPYING 2011-05-27 18:21:17 +0000
417@@ -0,0 +1,502 @@
418+ GNU LESSER GENERAL PUBLIC LICENSE
419+ Version 2.1, February 1999
420+
421+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
422+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
423+ Everyone is permitted to copy and distribute verbatim copies
424+ of this license document, but changing it is not allowed.
425+
426+[This is the first released version of the Lesser GPL. It also counts
427+ as the successor of the GNU Library Public License, version 2, hence
428+ the version number 2.1.]
429+
430+ Preamble
431+
432+ The licenses for most software are designed to take away your
433+freedom to share and change it. By contrast, the GNU General Public
434+Licenses are intended to guarantee your freedom to share and change
435+free software--to make sure the software is free for all its users.
436+
437+ This license, the Lesser General Public License, applies to some
438+specially designated software packages--typically libraries--of the
439+Free Software Foundation and other authors who decide to use it. You
440+can use it too, but we suggest you first think carefully about whether
441+this license or the ordinary General Public License is the better
442+strategy to use in any particular case, based on the explanations below.
443+
444+ When we speak of free software, we are referring to freedom of use,
445+not price. Our General Public Licenses are designed to make sure that
446+you have the freedom to distribute copies of free software (and charge
447+for this service if you wish); that you receive source code or can get
448+it if you want it; that you can change the software and use pieces of
449+it in new free programs; and that you are informed that you can do
450+these things.
451+
452+ To protect your rights, we need to make restrictions that forbid
453+distributors to deny you these rights or to ask you to surrender these
454+rights. These restrictions translate to certain responsibilities for
455+you if you distribute copies of the library or if you modify it.
456+
457+ For example, if you distribute copies of the library, whether gratis
458+or for a fee, you must give the recipients all the rights that we gave
459+you. You must make sure that they, too, receive or can get the source
460+code. If you link other code with the library, you must provide
461+complete object files to the recipients, so that they can relink them
462+with the library after making changes to the library and recompiling
463+it. And you must show them these terms so they know their rights.
464+
465+ We protect your rights with a two-step method: (1) we copyright the
466+library, and (2) we offer you this license, which gives you legal
467+permission to copy, distribute and/or modify the library.
468+
469+ To protect each distributor, we want to make it very clear that
470+there is no warranty for the free library. Also, if the library is
471+modified by someone else and passed on, the recipients should know
472+that what they have is not the original version, so that the original
473+author's reputation will not be affected by problems that might be
474+introduced by others.
475+
476
477+ Finally, software patents pose a constant threat to the existence of
478+any free program. We wish to make sure that a company cannot
479+effectively restrict the users of a free program by obtaining a
480+restrictive license from a patent holder. Therefore, we insist that
481+any patent license obtained for a version of the library must be
482+consistent with the full freedom of use specified in this license.
483+
484+ Most GNU software, including some libraries, is covered by the
485+ordinary GNU General Public License. This license, the GNU Lesser
486+General Public License, applies to certain designated libraries, and
487+is quite different from the ordinary General Public License. We use
488+this license for certain libraries in order to permit linking those
489+libraries into non-free programs.
490+
491+ When a program is linked with a library, whether statically or using
492+a shared library, the combination of the two is legally speaking a
493+combined work, a derivative of the original library. The ordinary
494+General Public License therefore permits such linking only if the
495+entire combination fits its criteria of freedom. The Lesser General
496+Public License permits more lax criteria for linking other code with
497+the library.
498+
499+ We call this license the "Lesser" General Public License because it
500+does Less to protect the user's freedom than the ordinary General
501+Public License. It also provides other free software developers Less
502+of an advantage over competing non-free programs. These disadvantages
503+are the reason we use the ordinary General Public License for many
504+libraries. However, the Lesser license provides advantages in certain
505+special circumstances.
506+
507+ For example, on rare occasions, there may be a special need to
508+encourage the widest possible use of a certain library, so that it becomes
509+a de-facto standard. To achieve this, non-free programs must be
510+allowed to use the library. A more frequent case is that a free
511+library does the same job as widely used non-free libraries. In this
512+case, there is little to gain by limiting the free library to free
513+software only, so we use the Lesser General Public License.
514+
515+ In other cases, permission to use a particular library in non-free
516+programs enables a greater number of people to use a large body of
517+free software. For example, permission to use the GNU C Library in
518+non-free programs enables many more people to use the whole GNU
519+operating system, as well as its variant, the GNU/Linux operating
520+system.
521+
522+ Although the Lesser General Public License is Less protective of the
523+users' freedom, it does ensure that the user of a program that is
524+linked with the Library has the freedom and the wherewithal to run
525+that program using a modified version of the Library.
526+
527+ The precise terms and conditions for copying, distribution and
528+modification follow. Pay close attention to the difference between a
529+"work based on the library" and a "work that uses the library". The
530+former contains code derived from the library, whereas the latter must
531+be combined with the library in order to run.
532+
533
534+ GNU LESSER GENERAL PUBLIC LICENSE
535+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
536+
537+ 0. This License Agreement applies to any software library or other
538+program which contains a notice placed by the copyright holder or
539+other authorized party saying it may be distributed under the terms of
540+this Lesser General Public License (also called "this License").
541+Each licensee is addressed as "you".
542+
543+ A "library" means a collection of software functions and/or data
544+prepared so as to be conveniently linked with application programs
545+(which use some of those functions and data) to form executables.
546+
547+ The "Library", below, refers to any such software library or work
548+which has been distributed under these terms. A "work based on the
549+Library" means either the Library or any derivative work under
550+copyright law: that is to say, a work containing the Library or a
551+portion of it, either verbatim or with modifications and/or translated
552+straightforwardly into another language. (Hereinafter, translation is
553+included without limitation in the term "modification".)
554+
555+ "Source code" for a work means the preferred form of the work for
556+making modifications to it. For a library, complete source code means
557+all the source code for all modules it contains, plus any associated
558+interface definition files, plus the scripts used to control compilation
559+and installation of the library.
560+
561+ Activities other than copying, distribution and modification are not
562+covered by this License; they are outside its scope. The act of
563+running a program using the Library is not restricted, and output from
564+such a program is covered only if its contents constitute a work based
565+on the Library (independent of the use of the Library in a tool for
566+writing it). Whether that is true depends on what the Library does
567+and what the program that uses the Library does.
568+
569+ 1. You may copy and distribute verbatim copies of the Library's
570+complete source code as you receive it, in any medium, provided that
571+you conspicuously and appropriately publish on each copy an
572+appropriate copyright notice and disclaimer of warranty; keep intact
573+all the notices that refer to this License and to the absence of any
574+warranty; and distribute a copy of this License along with the
575+Library.
576+
577+ You may charge a fee for the physical act of transferring a copy,
578+and you may at your option offer warranty protection in exchange for a
579+fee.
580+
581
582+ 2. You may modify your copy or copies of the Library or any portion
583+of it, thus forming a work based on the Library, and copy and
584+distribute such modifications or work under the terms of Section 1
585+above, provided that you also meet all of these conditions:
586+
587+ a) The modified work must itself be a software library.
588+
589+ b) You must cause the files modified to carry prominent notices
590+ stating that you changed the files and the date of any change.
591+
592+ c) You must cause the whole of the work to be licensed at no
593+ charge to all third parties under the terms of this License.
594+
595+ d) If a facility in the modified Library refers to a function or a
596+ table of data to be supplied by an application program that uses
597+ the facility, other than as an argument passed when the facility
598+ is invoked, then you must make a good faith effort to ensure that,
599+ in the event an application does not supply such function or
600+ table, the facility still operates, and performs whatever part of
601+ its purpose remains meaningful.
602+
603+ (For example, a function in a library to compute square roots has
604+ a purpose that is entirely well-defined independent of the
605+ application. Therefore, Subsection 2d requires that any
606+ application-supplied function or table used by this function must
607+ be optional: if the application does not supply it, the square
608+ root function must still compute square roots.)
609+
610+These requirements apply to the modified work as a whole. If
611+identifiable sections of that work are not derived from the Library,
612+and can be reasonably considered independent and separate works in
613+themselves, then this License, and its terms, do not apply to those
614+sections when you distribute them as separate works. But when you
615+distribute the same sections as part of a whole which is a work based
616+on the Library, the distribution of the whole must be on the terms of
617+this License, whose permissions for other licensees extend to the
618+entire whole, and thus to each and every part regardless of who wrote
619+it.
620+
621+Thus, it is not the intent of this section to claim rights or contest
622+your rights to work written entirely by you; rather, the intent is to
623+exercise the right to control the distribution of derivative or
624+collective works based on the Library.
625+
626+In addition, mere aggregation of another work not based on the Library
627+with the Library (or with a work based on the Library) on a volume of
628+a storage or distribution medium does not bring the other work under
629+the scope of this License.
630+
631+ 3. You may opt to apply the terms of the ordinary GNU General Public
632+License instead of this License to a given copy of the Library. To do
633+this, you must alter all the notices that refer to this License, so
634+that they refer to the ordinary GNU General Public License, version 2,
635+instead of to this License. (If a newer version than version 2 of the
636+ordinary GNU General Public License has appeared, then you can specify
637+that version instead if you wish.) Do not make any other change in
638+these notices.
639+
640
641+ Once this change is made in a given copy, it is irreversible for
642+that copy, so the ordinary GNU General Public License applies to all
643+subsequent copies and derivative works made from that copy.
644+
645+ This option is useful when you wish to copy part of the code of
646+the Library into a program that is not a library.
647+
648+ 4. You may copy and distribute the Library (or a portion or
649+derivative of it, under Section 2) in object code or executable form
650+under the terms of Sections 1 and 2 above provided that you accompany
651+it with the complete corresponding machine-readable source code, which
652+must be distributed under the terms of Sections 1 and 2 above on a
653+medium customarily used for software interchange.
654+
655+ If distribution of object code is made by offering access to copy
656+from a designated place, then offering equivalent access to copy the
657+source code from the same place satisfies the requirement to
658+distribute the source code, even though third parties are not
659+compelled to copy the source along with the object code.
660+
661+ 5. A program that contains no derivative of any portion of the
662+Library, but is designed to work with the Library by being compiled or
663+linked with it, is called a "work that uses the Library". Such a
664+work, in isolation, is not a derivative work of the Library, and
665+therefore falls outside the scope of this License.
666+
667+ However, linking a "work that uses the Library" with the Library
668+creates an executable that is a derivative of the Library (because it
669+contains portions of the Library), rather than a "work that uses the
670+library". The executable is therefore covered by this License.
671+Section 6 states terms for distribution of such executables.
672+
673+ When a "work that uses the Library" uses material from a header file
674+that is part of the Library, the object code for the work may be a
675+derivative work of the Library even though the source code is not.
676+Whether this is true is especially significant if the work can be
677+linked without the Library, or if the work is itself a library. The
678+threshold for this to be true is not precisely defined by law.
679+
680+ If such an object file uses only numerical parameters, data
681+structure layouts and accessors, and small macros and small inline
682+functions (ten lines or less in length), then the use of the object
683+file is unrestricted, regardless of whether it is legally a derivative
684+work. (Executables containing this object code plus portions of the
685+Library will still fall under Section 6.)
686+
687+ Otherwise, if the work is a derivative of the Library, you may
688+distribute the object code for the work under the terms of Section 6.
689+Any executables containing that work also fall under Section 6,
690+whether or not they are linked directly with the Library itself.
691+
692
693+ 6. As an exception to the Sections above, you may also combine or
694+link a "work that uses the Library" with the Library to produce a
695+work containing portions of the Library, and distribute that work
696+under terms of your choice, provided that the terms permit
697+modification of the work for the customer's own use and reverse
698+engineering for debugging such modifications.
699+
700+ You must give prominent notice with each copy of the work that the
701+Library is used in it and that the Library and its use are covered by
702+this License. You must supply a copy of this License. If the work
703+during execution displays copyright notices, you must include the
704+copyright notice for the Library among them, as well as a reference
705+directing the user to the copy of this License. Also, you must do one
706+of these things:
707+
708+ a) Accompany the work with the complete corresponding
709+ machine-readable source code for the Library including whatever
710+ changes were used in the work (which must be distributed under
711+ Sections 1 and 2 above); and, if the work is an executable linked
712+ with the Library, with the complete machine-readable "work that
713+ uses the Library", as object code and/or source code, so that the
714+ user can modify the Library and then relink to produce a modified
715+ executable containing the modified Library. (It is understood
716+ that the user who changes the contents of definitions files in the
717+ Library will not necessarily be able to recompile the application
718+ to use the modified definitions.)
719+
720+ b) Use a suitable shared library mechanism for linking with the
721+ Library. A suitable mechanism is one that (1) uses at run time a
722+ copy of the library already present on the user's computer system,
723+ rather than copying library functions into the executable, and (2)
724+ will operate properly with a modified version of the library, if
725+ the user installs one, as long as the modified version is
726+ interface-compatible with the version that the work was made with.
727+
728+ c) Accompany the work with a written offer, valid for at
729+ least three years, to give the same user the materials
730+ specified in Subsection 6a, above, for a charge no more
731+ than the cost of performing this distribution.
732+
733+ d) If distribution of the work is made by offering access to copy
734+ from a designated place, offer equivalent access to copy the above
735+ specified materials from the same place.
736+
737+ e) Verify that the user has already received a copy of these
738+ materials or that you have already sent this user a copy.
739+
740+ For an executable, the required form of the "work that uses the
741+Library" must include any data and utility programs needed for
742+reproducing the executable from it. However, as a special exception,
743+the materials to be distributed need not include anything that is
744+normally distributed (in either source or binary form) with the major
745+components (compiler, kernel, and so on) of the operating system on
746+which the executable runs, unless that component itself accompanies
747+the executable.
748+
749+ It may happen that this requirement contradicts the license
750+restrictions of other proprietary libraries that do not normally
751+accompany the operating system. Such a contradiction means you cannot
752+use both them and the Library together in an executable that you
753+distribute.
754+
755
756+ 7. You may place library facilities that are a work based on the
757+Library side-by-side in a single library together with other library
758+facilities not covered by this License, and distribute such a combined
759+library, provided that the separate distribution of the work based on
760+the Library and of the other library facilities is otherwise
761+permitted, and provided that you do these two things:
762+
763+ a) Accompany the combined library with a copy of the same work
764+ based on the Library, uncombined with any other library
765+ facilities. This must be distributed under the terms of the
766+ Sections above.
767+
768+ b) Give prominent notice with the combined library of the fact
769+ that part of it is a work based on the Library, and explaining
770+ where to find the accompanying uncombined form of the same work.
771+
772+ 8. You may not copy, modify, sublicense, link with, or distribute
773+the Library except as expressly provided under this License. Any
774+attempt otherwise to copy, modify, sublicense, link with, or
775+distribute the Library is void, and will automatically terminate your
776+rights under this License. However, parties who have received copies,
777+or rights, from you under this License will not have their licenses
778+terminated so long as such parties remain in full compliance.
779+
780+ 9. You are not required to accept this License, since you have not
781+signed it. However, nothing else grants you permission to modify or
782+distribute the Library or its derivative works. These actions are
783+prohibited by law if you do not accept this License. Therefore, by
784+modifying or distributing the Library (or any work based on the
785+Library), you indicate your acceptance of this License to do so, and
786+all its terms and conditions for copying, distributing or modifying
787+the Library or works based on it.
788+
789+ 10. Each time you redistribute the Library (or any work based on the
790+Library), the recipient automatically receives a license from the
791+original licensor to copy, distribute, link with or modify the Library
792+subject to these terms and conditions. You may not impose any further
793+restrictions on the recipients' exercise of the rights granted herein.
794+You are not responsible for enforcing compliance by third parties with
795+this License.
796+
797
798+ 11. If, as a consequence of a court judgment or allegation of patent
799+infringement or for any other reason (not limited to patent issues),
800+conditions are imposed on you (whether by court order, agreement or
801+otherwise) that contradict the conditions of this License, they do not
802+excuse you from the conditions of this License. If you cannot
803+distribute so as to satisfy simultaneously your obligations under this
804+License and any other pertinent obligations, then as a consequence you
805+may not distribute the Library at all. For example, if a patent
806+license would not permit royalty-free redistribution of the Library by
807+all those who receive copies directly or indirectly through you, then
808+the only way you could satisfy both it and this License would be to
809+refrain entirely from distribution of the Library.
810+
811+If any portion of this section is held invalid or unenforceable under any
812+particular circumstance, the balance of the section is intended to apply,
813+and the section as a whole is intended to apply in other circumstances.
814+
815+It is not the purpose of this section to induce you to infringe any
816+patents or other property right claims or to contest validity of any
817+such claims; this section has the sole purpose of protecting the
818+integrity of the free software distribution system which is
819+implemented by public license practices. Many people have made
820+generous contributions to the wide range of software distributed
821+through that system in reliance on consistent application of that
822+system; it is up to the author/donor to decide if he or she is willing
823+to distribute software through any other system and a licensee cannot
824+impose that choice.
825+
826+This section is intended to make thoroughly clear what is believed to
827+be a consequence of the rest of this License.
828+
829+ 12. If the distribution and/or use of the Library is restricted in
830+certain countries either by patents or by copyrighted interfaces, the
831+original copyright holder who places the Library under this License may add
832+an explicit geographical distribution limitation excluding those countries,
833+so that distribution is permitted only in or among countries not thus
834+excluded. In such case, this License incorporates the limitation as if
835+written in the body of this License.
836+
837+ 13. The Free Software Foundation may publish revised and/or new
838+versions of the Lesser General Public License from time to time.
839+Such new versions will be similar in spirit to the present version,
840+but may differ in detail to address new problems or concerns.
841+
842+Each version is given a distinguishing version number. If the Library
843+specifies a version number of this License which applies to it and
844+"any later version", you have the option of following the terms and
845+conditions either of that version or of any later version published by
846+the Free Software Foundation. If the Library does not specify a
847+license version number, you may choose any version ever published by
848+the Free Software Foundation.
849+
850
851+ 14. If you wish to incorporate parts of the Library into other free
852+programs whose distribution conditions are incompatible with these,
853+write to the author to ask for permission. For software which is
854+copyrighted by the Free Software Foundation, write to the Free
855+Software Foundation; we sometimes make exceptions for this. Our
856+decision will be guided by the two goals of preserving the free status
857+of all derivatives of our free software and of promoting the sharing
858+and reuse of software generally.
859+
860+ NO WARRANTY
861+
862+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
863+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
864+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
865+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
866+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
867+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
868+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
869+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
870+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
871+
872+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
873+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
874+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
875+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
876+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
877+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
878+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
879+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
880+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
881+DAMAGES.
882+
883+ END OF TERMS AND CONDITIONS
884+
885
886+ How to Apply These Terms to Your New Libraries
887+
888+ If you develop a new library, and you want it to be of the greatest
889+possible use to the public, we recommend making it free software that
890+everyone can redistribute and change. You can do so by permitting
891+redistribution under these terms (or, alternatively, under the terms of the
892+ordinary General Public License).
893+
894+ To apply these terms, attach the following notices to the library. It is
895+safest to attach them to the start of each source file to most effectively
896+convey the exclusion of warranty; and each file should have at least the
897+"copyright" line and a pointer to where the full notice is found.
898+
899+ <one line to give the library's name and a brief idea of what it does.>
900+ Copyright (C) <year> <name of author>
901+
902+ This library is free software; you can redistribute it and/or
903+ modify it under the terms of the GNU Lesser General Public
904+ License as published by the Free Software Foundation; either
905+ version 2.1 of the License, or (at your option) any later version.
906+
907+ This library is distributed in the hope that it will be useful,
908+ but WITHOUT ANY WARRANTY; without even the implied warranty of
909+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
910+ Lesser General Public License for more details.
911+
912+ You should have received a copy of the GNU Lesser General Public
913+ License along with this library; if not, write to the Free Software
914+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
915+
916+Also add information on how to contact you by electronic and paper mail.
917+
918+You should also get your employer (if you work as a programmer) or your
919+school, if any, to sign a "copyright disclaimer" for the library, if
920+necessary. Here is a sample; alter the names:
921+
922+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
923+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
924+
925+ <signature of Ty Coon>, 1 April 1990
926+ Ty Coon, President of Vice
927+
928+That's all there is to it!
929
930=== added file 'libjte/COPYRIGHT'
931--- libjte/COPYRIGHT 1970-01-01 00:00:00 +0000
932+++ libjte/COPYRIGHT 2011-05-27 18:21:17 +0000
933@@ -0,0 +1,30 @@
934+Steve McIntyre <steve@einval.com>
935+George Danchev <danchev@spnet.net>
936+Thomas Schmitt <scdbackup@gmx.net>
937+Copyright (C) 2000-2010 Free Software Foundation, Inc., Steve McIntyre, George Danchev, Thomas Schmitt.
938+
939+This statement overrides for the libjte package as a whole any license
940+statements by Steve McIntyre, George Danchev, and Thomas Schmitt in the
941+source code files of the package. Individually they are licensed as stated.
942+
943+libjte contains code with explicitely unclaimed copyrights, code from programs
944+and libraries with copyright of Free Software Foundation under LGPLv2.1,
945+code with copyright of Steve McIntyre, George Danchev, and Thomas Schmitt
946+under LGPLv2.1.
947+
948+In the sum, libjte is provided under this license:
949+
950+ This program is free software; you can redistribute it and/or modify
951+ it under the terms of the GNU Lesser General Public License as
952+ published by the Free Software Foundation; either version 2.1 of
953+ the License, or (at your option) any later version.
954+
955+ This program is distributed in the hope that it will be useful,
956+ but WITHOUT ANY WARRANTY; without even the implied warranty of
957+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
958+ GNU General Public License for more details.
959+
960+ You should have received a copy of the GNU Lesser General Public License
961+ along with this program; if not, write to the Free Software
962+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
963+
964
965=== added file 'libjte/ChangeLog'
966--- libjte/ChangeLog 1970-01-01 00:00:00 +0000
967+++ libjte/ChangeLog 2011-05-27 18:21:17 +0000
968@@ -0,0 +1,112 @@
969+libjte-0.1.1 (not released yet)
970+===============================================================================
971+* Thomas: porting libjte to Solaris 9: avoiding <stdint.h> if not available,
972+ trying to use <inttypes.h> in that case.
973+* jte.c: return from flush_compressed_chunk() if size<=0.
974+* jte.c, libjte.c: drop redundant check against NULL upon free()'ing.
975+* checksum.c, sha256.c, sha256.h, sha512.c, sha512.h:
976+ Thomas: Removed obsolete include <endian.h> and __THROW;
977+ Initialize sha512.c by pairs of 32 bit constants rather than by 64 bit.
978+* checksum.c, endian.c, md5.c, rsync.c, sha1.c, sha256.c, sha512.c:
979+ include ../config.h eventually.
980+* jte.c, libjte.c: Thomas: Eventually include ../config.h so that GNU xorriso
981+ can configure usage of zlib libbz2.
982+* checksum.c, sha1.c, sha1.h: Steve: new sha1 implementation.
983+* Makefile.am, checksum.c, configure.ac: Steve: use threaded checksums.
984+* Makefile.am, configure.ac, jte.c: Thomas: Made source compilable without zlib.
985+ It is not of use then, but can reside as unused code in GNU xorriso.
986+* jte.c: Thomas: avoid strndup as it is non standard.
987+* configure.ac, jte.c, jte.h, libjte.c, libjte.h, test/demo.c:
988+ Thomas: Corrected handling of mapping strings To=From. Gave up parameters
989+ submode and islast of API functions libjte_write_unmatched() and
990+ libjte_show_data_chunk(). libjte version is now 0.1.1 producing libjte.so.2.
991+* Makefile.am, test/demo.c: Thomas: updated demo doc - jigit-mkimage example.
992+* jte.c: change producer code to libjte.
993+* Makefile.am, test/demo.c: demo app by Thomas.
994+* jte.c, jte.h, libjte.c, libjte.h, libjte_private.h, test/jigdo-gen-md5-list:
995+ added copyright blurb.
996+* libjte.ver: Thomas: bugfix, add libjte__version and libjte__is_compatible
997+ symbols which were missing in libjte.ver.
998+* libjte.h: Thomas: Clarified the meaning of parameters of
999+ libjte_set_error_behavior().
1000+* libjte.c: Thomas: bugfix, libjte_set_error_behavior()
1001+ interpreted 0 the same as 1.
1002+* jte.c: update references to attarer.org; Rf: Debian bug #596860.
1003+* configure.ac: check for presence of important functions used.
1004+* configure.ac: checks for types, typedefs, structures (hopefully to beef up
1005+ tree configuration on hostile, evil or purely insane systems).
1006+* configure.ac: populate AC_CHECK_HEADERS() with used system header files.
1007+* libjte.c, libjte.h: Thomas: API doc; properly handle mirror_name
1008+ in libjte_decide_file_jigdo().
1009+* jte.c: check malloc return value.
1010+* jte.c: drop JTWRITE_DEBUG block.
1011+* jte.c: bz_stream declares a member char* next_out so we assign to it same
1012+ type of data.
1013+* configure.ac, jte.c, libjte.c, libjte.h: Thomas: runtime version inquiry:
1014+ allows to check for sufficient library features at runtime.
1015+* checksum.c, libjte.c: Thomas: Switched MD5 from mandatory to unconditional checksum
1016+ algorithm. Made use of CHECK_*_USED macros when composing checksum bit pattern in
1017+ parse_checksum_algo().
1018+* libjte.c: Thomas: Made use of checksum.c:parse_checksum_algo().
1019+* configure.ac: fix BZIP2 leftover.
1020+* libjte.h: include sys/types.h because of off_t.
1021+* libjte.c, libjte.h: avoid public stdint, use off_t instead;
1022+ Related to the fact: C++ implementations should define
1023+ these macros only when __STDC_CONSTANT_MACROS is defined before
1024+ <stdint.h> is included.
1025+* jte.c, libjte.c: two memory leaks underneath libjte_destroy(). Thanks to valgrind.
1026+* checksum.c, endian.c, endianconv.h, jte.c, jte.h, md5.c, md5.h, rsync.c, rsync.h:
1027+ replace 'unsigned long long' by uint64_t also as suggested by Thomas.
1028+* jte.c, libjte.c: Freeing checksum contexts for iso and template in libjte_destroy()
1029+ Avoiding memory leaks in write_template_header() and write_jt_header().
1030+ All delivered by Thomas.
1031+* jte.c, jte.h, libjte.c: list destructors as sent by Thomas.
1032+* jte.c: Removed five unused variables.
1033+* checksum.c, jte.c, libjte.c, libjte_private.h: Moved
1034+ static variables from write_compressed_chunk() into libjte_env
1035+ Replaced static local return buffer in base64_dump() by calloc memory.
1036+* configure.ac: -std=c99 since we are using 'long long' here and there, which is a
1037+ valid type in C99, still nothing guarantees it is 64-bit a-la (u)int64_t.
1038+* bin/gen-jigdo-md5-list: simple jigdo md5 list generator.
1039+* checksum.c, jte.c, jte.h, libjte.c, libjte.h, libjte.ver, libjte_private.h, md5.c:
1040+ Introduced a message list which can be used instead of fprintf(stderr), error
1041+ indicating return values, and an opportunity to avoid exit(). New API functions
1042+ libjte_set_error_behavior(), libjte_get_next_message(), libjte_clear_msg_list().
1043+ Changed return values with API calls libjte_write_unmatched() and
1044+ libjte_write_match_record().
1045+* jte.c, jte.h, libjte.c, libjte_private.h: get rid of globals.
1046+* configure.ac, jte.c, libjte.c: use LIBJTE_WITH_LIBBZ2 rather than
1047+ LIBJTE_WITH_LIBBZIP2.
1048+* configure.ac, jte.c: fix bz2 test linkage and conditional header include.
1049+* libjte.c, libjte.h, libjte.ver, libjte_private.h: Thomas; setter for image size.
1050+* jte.c, jte.h: avoid SIGSEGV in jte_add_mapping() is the parameter is a constant
1051+ string drop SECTOR_SIZE and last_extent_written, image size could be deduced
1052+ inside libjte change generator field from JTE to libjte.
1053+* acinclude.m4: use libjte.ver as linker script.
1054+* checksum.c: drop C++ style comment as they are anti C99
1055+* Makefile.am, configure.ac: set and put ACLOCAL_AMFLAGS (Makefile.am) and
1056+ AC_CONFIG_MACRO_DIR(configure.ac) in sync.
1057+* bootstrap: add a directory for aclocal to search for m4 files.
1058+* Makefile.am, acinclude.m4, aclocal.m4, bootstrap, compile,
1059+ configure.ac, depcomp, install-sh, libjte-1.pc.in, libjte.ver,
1060+ libtool, ltmain.sh, missing, version.h.in: added Empire as sent by Thomas.
1061+* libjte.h, libjte_private.h: added preliminary API suggested by Thomas.
1062+* Makefile, jte.c: missing includes and D_LARGEFILE_SOURCE directive.
1063+* Added _FILE_OFFSET_BITS=64 directive to compiler.
1064+* checksum.h, endianconv.h: more include guards.
1065+* jte.c, jte.h: added include guards, include it in *.c.
1066+* jte.h: include stdio.h for FILE and unistd.h for off_t.
1067+* checksum.c: close(fd) on a bailing out.
1068+* jte.c: add the only diff (fix) between cdrkit 1.10.0
1069+ and cdrkit svn trunk, rev844.
1070+* jte.c: drop unneeded ifdefs checking for libschily.
1071+* rsync.c: drop unneeded includes, use stdint.h for unint32_t and
1072+ string.h for size_t.
1073+* checksum.c: drop unneeded includes.
1074+* Added doc/NOTES, doc/TODO, doc/doxyfile files.
1075+* endian.c, endianconv.h: added endianconv.h also included it back into endian.c
1076+* endian.c: comment eventually unneeded includes.
1077+* jte.c: commented genisoimage includes; added few more from standard lib
1078+* Added checksum.c, checksum.h, endian.c, jte.c, jte.h, rsync.c, sha1.c,
1079+ sha1.h, sha256.c, sha256.h, sha512.c, sha512.h: extracted JTE
1080+ code from cdrkit 1.1.10.
1081
1082=== added file 'libjte/Makefile.am'
1083--- libjte/Makefile.am 1970-01-01 00:00:00 +0000
1084+++ libjte/Makefile.am 2011-05-27 18:21:17 +0000
1085@@ -0,0 +1,80 @@
1086+
1087+# LIBBURNIA_PKGCONFDIR is defined OS specific in acinclude.m4
1088+# was: pkgconfigdir=$(libdir)/pkgconfig
1089+pkgconfigdir=$(LIBBURNIA_PKGCONFDIR)
1090+
1091+libincludedir=$(includedir)/libjte
1092+
1093+lib_LTLIBRARIES = libjte/libjte.la
1094+ACLOCAL_AMFLAGS = -I ./
1095+## ========================================================================= ##
1096+
1097+# Build libraries
1098+
1099+libjte_libjte_la_LDFLAGS = \
1100+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
1101+
1102+# Eventually enabling system adapters for ACL and EA.
1103+libjte_libjte_la_CFLAGS = $(ZLIB_DEF) $(BZIP2_DEF) $(PTHREADS_DEF)
1104+
1105+libjte_libjte_la_SOURCES = \
1106+ checksum.c \
1107+ checksum.h \
1108+ endian.c \
1109+ endianconv.h \
1110+ jte.c \
1111+ jte.h \
1112+ libjte.c \
1113+ libjte.h \
1114+ libjte_private.h \
1115+ md5.c \
1116+ md5.h \
1117+ rsync.c \
1118+ rsync.h \
1119+ sha1.c \
1120+ sha1.h \
1121+ sha256.c \
1122+ sha256.h \
1123+ sha512.c \
1124+ sha512.h
1125+
1126+libjte_libjte_la_LIBADD= \
1127+ -lz
1128+
1129+libinclude_HEADERS = \
1130+ libjte.h
1131+
1132+install-exec-hook:
1133+ $(LIBBURNIA_LDCONFIG_CMD) "$(DESTDIR)$(libdir)" || echo 'NOTE: Explicite dynamic library configuration failed. If needed, configure manually for:' "$(DESTDIR)$(libdir)"
1134+
1135+## ========================================================================= ##
1136+
1137+## Build demo applications (if there any)
1138+noinst_PROGRAMS = \
1139+ test/demo
1140+
1141+# test/demo
1142+
1143+test_demo_CPPFLAGS = -Ilibjte
1144+test_demo_LDADD = $(libjte_libjte_la_OBJECTS) $(libjte_libjte_la_LIBADD)
1145+test_demo_SOURCES = test/demo.c
1146+
1147+
1148+## ========================================================================= ##
1149+
1150+# Extra things
1151+nodist_pkgconfig_DATA = \
1152+ libjte-1.pc
1153+
1154+
1155+EXTRA_DIST = \
1156+ libjte-1.pc.in \
1157+ version.h.in \
1158+ bin/jigdo-gen-md5-list \
1159+ doc/jigdo-gen-md5-list.1 \
1160+ doc/API \
1161+ doc/TODO \
1162+ doc/NOTES \
1163+ COPYRIGHT \
1164+ libjte.ver
1165+
1166
1167=== added file 'libjte/Makefile.in'
1168--- libjte/Makefile.in 1970-01-01 00:00:00 +0000
1169+++ libjte/Makefile.in 2011-05-27 18:21:17 +0000
1170@@ -0,0 +1,928 @@
1171+# Makefile.in generated by automake 1.11.1 from Makefile.am.
1172+# @configure_input@
1173+
1174+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
1175+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
1176+# Inc.
1177+# This Makefile.in is free software; the Free Software Foundation
1178+# gives unlimited permission to copy and/or distribute it,
1179+# with or without modifications, as long as this notice is preserved.
1180+
1181+# This program is distributed in the hope that it will be useful,
1182+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1183+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1184+# PARTICULAR PURPOSE.
1185+
1186+@SET_MAKE@
1187+
1188+
1189+
1190+
1191+VPATH = @srcdir@
1192+pkgdatadir = $(datadir)/@PACKAGE@
1193+pkgincludedir = $(includedir)/@PACKAGE@
1194+pkglibdir = $(libdir)/@PACKAGE@
1195+pkglibexecdir = $(libexecdir)/@PACKAGE@
1196+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
1197+install_sh_DATA = $(install_sh) -c -m 644
1198+install_sh_PROGRAM = $(install_sh) -c
1199+install_sh_SCRIPT = $(install_sh) -c
1200+INSTALL_HEADER = $(INSTALL_DATA)
1201+transform = $(program_transform_name)
1202+NORMAL_INSTALL = :
1203+PRE_INSTALL = :
1204+POST_INSTALL = :
1205+NORMAL_UNINSTALL = :
1206+PRE_UNINSTALL = :
1207+POST_UNINSTALL = :
1208+build_triplet = @build@
1209+host_triplet = @host@
1210+target_triplet = @target@
1211+noinst_PROGRAMS = test/demo$(EXEEXT)
1212+subdir = .
1213+DIST_COMMON = $(am__configure_deps) $(libinclude_HEADERS) \
1214+ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
1215+ $(srcdir)/libjte-1.pc.in $(srcdir)/version.h.in \
1216+ $(top_srcdir)/configure COPYING ChangeLog compile config.guess \
1217+ config.sub depcomp install-sh ltmain.sh missing
1218+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
1219+am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \
1220+ $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \
1221+ $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \
1222+ $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
1223+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
1224+ $(ACLOCAL_M4)
1225+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
1226+ configure.lineno config.status.lineno
1227+mkinstalldirs = $(install_sh) -d
1228+CONFIG_CLEAN_FILES = version.h libjte-1.pc
1229+CONFIG_CLEAN_VPATH_FILES =
1230+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
1231+am__vpath_adj = case $$p in \
1232+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
1233+ *) f=$$p;; \
1234+ esac;
1235+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
1236+am__install_max = 40
1237+am__nobase_strip_setup = \
1238+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
1239+am__nobase_strip = \
1240+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
1241+am__nobase_list = $(am__nobase_strip_setup); \
1242+ for p in $$list; do echo "$$p $$p"; done | \
1243+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
1244+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
1245+ if (++n[$$2] == $(am__install_max)) \
1246+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
1247+ END { for (dir in files) print dir, files[dir] }'
1248+am__base_list = \
1249+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
1250+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
1251+am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" \
1252+ "$(DESTDIR)$(libincludedir)"
1253+LTLIBRARIES = $(lib_LTLIBRARIES)
1254+libjte_libjte_la_DEPENDENCIES =
1255+am_libjte_libjte_la_OBJECTS = libjte_libjte_la-checksum.lo \
1256+ libjte_libjte_la-endian.lo libjte_libjte_la-jte.lo \
1257+ libjte_libjte_la-libjte.lo libjte_libjte_la-md5.lo \
1258+ libjte_libjte_la-rsync.lo libjte_libjte_la-sha1.lo \
1259+ libjte_libjte_la-sha256.lo libjte_libjte_la-sha512.lo
1260+libjte_libjte_la_OBJECTS = $(am_libjte_libjte_la_OBJECTS)
1261+libjte_libjte_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
1262+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libjte_libjte_la_CFLAGS) \
1263+ $(CFLAGS) $(libjte_libjte_la_LDFLAGS) $(LDFLAGS) -o $@
1264+am__dirstamp = $(am__leading_dot)dirstamp
1265+PROGRAMS = $(noinst_PROGRAMS)
1266+am_test_demo_OBJECTS = test/test_demo-demo.$(OBJEXT)
1267+test_demo_OBJECTS = $(am_test_demo_OBJECTS)
1268+am__DEPENDENCIES_1 =
1269+test_demo_DEPENDENCIES = $(libjte_libjte_la_OBJECTS) \
1270+ $(am__DEPENDENCIES_1)
1271+DEFAULT_INCLUDES = -I.@am__isrc@
1272+depcomp = $(SHELL) $(top_srcdir)/depcomp
1273+am__depfiles_maybe = depfiles
1274+am__mv = mv -f
1275+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
1276+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1277+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
1278+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
1279+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1280+CCLD = $(CC)
1281+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
1282+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
1283+ $(LDFLAGS) -o $@
1284+SOURCES = $(libjte_libjte_la_SOURCES) $(test_demo_SOURCES)
1285+DIST_SOURCES = $(libjte_libjte_la_SOURCES) $(test_demo_SOURCES)
1286+DATA = $(nodist_pkgconfig_DATA)
1287+HEADERS = $(libinclude_HEADERS)
1288+ETAGS = etags
1289+CTAGS = ctags
1290+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
1291+distdir = $(PACKAGE)-$(VERSION)
1292+top_distdir = $(distdir)
1293+am__remove_distdir = \
1294+ { test ! -d "$(distdir)" \
1295+ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
1296+ && rm -fr "$(distdir)"; }; }
1297+DIST_ARCHIVES = $(distdir).tar.gz
1298+GZIP_ENV = --best
1299+distuninstallcheck_listfiles = find . -type f -print
1300+distcleancheck_listfiles = find . -type f -print
1301+ACLOCAL = @ACLOCAL@
1302+AMTAR = @AMTAR@
1303+AR = @AR@
1304+ARCH = @ARCH@
1305+AUTOCONF = @AUTOCONF@
1306+AUTOHEADER = @AUTOHEADER@
1307+AUTOMAKE = @AUTOMAKE@
1308+AWK = @AWK@
1309+BZIP2_DEF = @BZIP2_DEF@
1310+CC = @CC@
1311+CCDEPMODE = @CCDEPMODE@
1312+CFLAGS = @CFLAGS@
1313+CPP = @CPP@
1314+CPPFLAGS = @CPPFLAGS@
1315+CYGPATH_W = @CYGPATH_W@
1316+DEFS = @DEFS@
1317+DEPDIR = @DEPDIR@
1318+DSYMUTIL = @DSYMUTIL@
1319+DUMPBIN = @DUMPBIN@
1320+ECHO_C = @ECHO_C@
1321+ECHO_N = @ECHO_N@
1322+ECHO_T = @ECHO_T@
1323+EGREP = @EGREP@
1324+EXEEXT = @EXEEXT@
1325+FGREP = @FGREP@
1326+GREP = @GREP@
1327+INSTALL = @INSTALL@
1328+INSTALL_DATA = @INSTALL_DATA@
1329+INSTALL_PROGRAM = @INSTALL_PROGRAM@
1330+INSTALL_SCRIPT = @INSTALL_SCRIPT@
1331+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
1332+LD = @LD@
1333+LDFLAGS = @LDFLAGS@
1334+LIBBURNIA_LDCONFIG_CMD = @LIBBURNIA_LDCONFIG_CMD@
1335+LIBBURNIA_PKGCONFDIR = @LIBBURNIA_PKGCONFDIR@
1336+LIBOBJS = @LIBOBJS@
1337+LIBS = @LIBS@
1338+LIBTOOL = @LIBTOOL@
1339+LIBTOOL_DEPS = @LIBTOOL_DEPS@
1340+LIPO = @LIPO@
1341+LN_S = @LN_S@
1342+LTLIBOBJS = @LTLIBOBJS@
1343+LT_AGE = @LT_AGE@
1344+LT_CURRENT = @LT_CURRENT@
1345+LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@
1346+LT_REVISION = @LT_REVISION@
1347+MAINT = @MAINT@
1348+MAKEINFO = @MAKEINFO@
1349+MKDIR_P = @MKDIR_P@
1350+NM = @NM@
1351+NMEDIT = @NMEDIT@
1352+OBJDUMP = @OBJDUMP@
1353+OBJEXT = @OBJEXT@
1354+OTOOL = @OTOOL@
1355+OTOOL64 = @OTOOL64@
1356+PACKAGE = @PACKAGE@
1357+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
1358+PACKAGE_NAME = @PACKAGE_NAME@
1359+PACKAGE_STRING = @PACKAGE_STRING@
1360+PACKAGE_TARNAME = @PACKAGE_TARNAME@
1361+PACKAGE_URL = @PACKAGE_URL@
1362+PACKAGE_VERSION = @PACKAGE_VERSION@
1363+PATH_SEPARATOR = @PATH_SEPARATOR@
1364+PTHREADS_DEF = @PTHREADS_DEF@
1365+RANLIB = @RANLIB@
1366+SED = @SED@
1367+SET_MAKE = @SET_MAKE@
1368+SHELL = @SHELL@
1369+STRIP = @STRIP@
1370+VERSION = @VERSION@
1371+ZLIB_DEF = @ZLIB_DEF@
1372+abs_builddir = @abs_builddir@
1373+abs_srcdir = @abs_srcdir@
1374+abs_top_builddir = @abs_top_builddir@
1375+abs_top_srcdir = @abs_top_srcdir@
1376+ac_ct_CC = @ac_ct_CC@
1377+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
1378+am__include = @am__include@
1379+am__leading_dot = @am__leading_dot@
1380+am__quote = @am__quote@
1381+am__tar = @am__tar@
1382+am__untar = @am__untar@
1383+bindir = @bindir@
1384+build = @build@
1385+build_alias = @build_alias@
1386+build_cpu = @build_cpu@
1387+build_os = @build_os@
1388+build_vendor = @build_vendor@
1389+builddir = @builddir@
1390+datadir = @datadir@
1391+datarootdir = @datarootdir@
1392+docdir = @docdir@
1393+dvidir = @dvidir@
1394+exec_prefix = @exec_prefix@
1395+host = @host@
1396+host_alias = @host_alias@
1397+host_cpu = @host_cpu@
1398+host_os = @host_os@
1399+host_vendor = @host_vendor@
1400+htmldir = @htmldir@
1401+includedir = @includedir@
1402+infodir = @infodir@
1403+install_sh = @install_sh@
1404+libdir = @libdir@
1405+libexecdir = @libexecdir@
1406+localedir = @localedir@
1407+localstatedir = @localstatedir@
1408+lt_ECHO = @lt_ECHO@
1409+mandir = @mandir@
1410+mkdir_p = @mkdir_p@
1411+oldincludedir = @oldincludedir@
1412+pdfdir = @pdfdir@
1413+prefix = @prefix@
1414+program_transform_name = @program_transform_name@
1415+psdir = @psdir@
1416+sbindir = @sbindir@
1417+sharedstatedir = @sharedstatedir@
1418+srcdir = @srcdir@
1419+sysconfdir = @sysconfdir@
1420+target = @target@
1421+target_alias = @target_alias@
1422+target_cpu = @target_cpu@
1423+target_os = @target_os@
1424+target_vendor = @target_vendor@
1425+top_build_prefix = @top_build_prefix@
1426+top_builddir = @top_builddir@
1427+top_srcdir = @top_srcdir@
1428+
1429+# LIBBURNIA_PKGCONFDIR is defined OS specific in acinclude.m4
1430+# was: pkgconfigdir=$(libdir)/pkgconfig
1431+pkgconfigdir = $(LIBBURNIA_PKGCONFDIR)
1432+libincludedir = $(includedir)/libjte
1433+lib_LTLIBRARIES = libjte/libjte.la
1434+ACLOCAL_AMFLAGS = -I ./
1435+
1436+# Build libraries
1437+libjte_libjte_la_LDFLAGS = \
1438+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
1439+
1440+
1441+# Eventually enabling system adapters for ACL and EA.
1442+libjte_libjte_la_CFLAGS = $(ZLIB_DEF) $(BZIP2_DEF) $(PTHREADS_DEF)
1443+libjte_libjte_la_SOURCES = \
1444+ checksum.c \
1445+ checksum.h \
1446+ endian.c \
1447+ endianconv.h \
1448+ jte.c \
1449+ jte.h \
1450+ libjte.c \
1451+ libjte.h \
1452+ libjte_private.h \
1453+ md5.c \
1454+ md5.h \
1455+ rsync.c \
1456+ rsync.h \
1457+ sha1.c \
1458+ sha1.h \
1459+ sha256.c \
1460+ sha256.h \
1461+ sha512.c \
1462+ sha512.h
1463+
1464+libjte_libjte_la_LIBADD = \
1465+ -lz
1466+
1467+libinclude_HEADERS = \
1468+ libjte.h
1469+
1470+
1471+# test/demo
1472+test_demo_CPPFLAGS = -Ilibjte
1473+test_demo_LDADD = $(libjte_libjte_la_OBJECTS) $(libjte_libjte_la_LIBADD)
1474+test_demo_SOURCES = test/demo.c
1475+
1476+# Extra things
1477+nodist_pkgconfig_DATA = \
1478+ libjte-1.pc
1479+
1480+EXTRA_DIST = \
1481+ libjte-1.pc.in \
1482+ version.h.in \
1483+ bin/jigdo-gen-md5-list \
1484+ doc/jigdo-gen-md5-list.1 \
1485+ doc/API \
1486+ doc/TODO \
1487+ doc/NOTES \
1488+ COPYRIGHT \
1489+ libjte.ver
1490+
1491+all: all-am
1492+
1493+.SUFFIXES:
1494+.SUFFIXES: .c .lo .o .obj
1495+am--refresh:
1496+ @:
1497+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
1498+ @for dep in $?; do \
1499+ case '$(am__configure_deps)' in \
1500+ *$$dep*) \
1501+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
1502+ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
1503+ && exit 0; \
1504+ exit 1;; \
1505+ esac; \
1506+ done; \
1507+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
1508+ $(am__cd) $(top_srcdir) && \
1509+ $(AUTOMAKE) --foreign Makefile
1510+.PRECIOUS: Makefile
1511+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1512+ @case '$?' in \
1513+ *config.status*) \
1514+ echo ' $(SHELL) ./config.status'; \
1515+ $(SHELL) ./config.status;; \
1516+ *) \
1517+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
1518+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
1519+ esac;
1520+
1521+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
1522+ $(SHELL) ./config.status --recheck
1523+
1524+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
1525+ $(am__cd) $(srcdir) && $(AUTOCONF)
1526+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
1527+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
1528+$(am__aclocal_m4_deps):
1529+version.h: $(top_builddir)/config.status $(srcdir)/version.h.in
1530+ cd $(top_builddir) && $(SHELL) ./config.status $@
1531+libjte-1.pc: $(top_builddir)/config.status $(srcdir)/libjte-1.pc.in
1532+ cd $(top_builddir) && $(SHELL) ./config.status $@
1533+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
1534+ @$(NORMAL_INSTALL)
1535+ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
1536+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
1537+ list2=; for p in $$list; do \
1538+ if test -f $$p; then \
1539+ list2="$$list2 $$p"; \
1540+ else :; fi; \
1541+ done; \
1542+ test -z "$$list2" || { \
1543+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
1544+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
1545+ }
1546+
1547+uninstall-libLTLIBRARIES:
1548+ @$(NORMAL_UNINSTALL)
1549+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
1550+ for p in $$list; do \
1551+ $(am__strip_dir) \
1552+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
1553+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
1554+ done
1555+
1556+clean-libLTLIBRARIES:
1557+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
1558+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
1559+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
1560+ test "$$dir" != "$$p" || dir=.; \
1561+ echo "rm -f \"$${dir}/so_locations\""; \
1562+ rm -f "$${dir}/so_locations"; \
1563+ done
1564+libjte/$(am__dirstamp):
1565+ @$(MKDIR_P) libjte
1566+ @: > libjte/$(am__dirstamp)
1567+libjte/libjte.la: $(libjte_libjte_la_OBJECTS) $(libjte_libjte_la_DEPENDENCIES) libjte/$(am__dirstamp)
1568+ $(libjte_libjte_la_LINK) -rpath $(libdir) $(libjte_libjte_la_OBJECTS) $(libjte_libjte_la_LIBADD) $(LIBS)
1569+
1570+clean-noinstPROGRAMS:
1571+ @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
1572+ echo " rm -f" $$list; \
1573+ rm -f $$list || exit $$?; \
1574+ test -n "$(EXEEXT)" || exit 0; \
1575+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
1576+ echo " rm -f" $$list; \
1577+ rm -f $$list
1578+test/$(am__dirstamp):
1579+ @$(MKDIR_P) test
1580+ @: > test/$(am__dirstamp)
1581+test/$(DEPDIR)/$(am__dirstamp):
1582+ @$(MKDIR_P) test/$(DEPDIR)
1583+ @: > test/$(DEPDIR)/$(am__dirstamp)
1584+test/test_demo-demo.$(OBJEXT): test/$(am__dirstamp) \
1585+ test/$(DEPDIR)/$(am__dirstamp)
1586+test/demo$(EXEEXT): $(test_demo_OBJECTS) $(test_demo_DEPENDENCIES) test/$(am__dirstamp)
1587+ @rm -f test/demo$(EXEEXT)
1588+ $(LINK) $(test_demo_OBJECTS) $(test_demo_LDADD) $(LIBS)
1589+
1590+mostlyclean-compile:
1591+ -rm -f *.$(OBJEXT)
1592+ -rm -f test/test_demo-demo.$(OBJEXT)
1593+
1594+distclean-compile:
1595+ -rm -f *.tab.c
1596+
1597+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjte_libjte_la-checksum.Plo@am__quote@
1598+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjte_libjte_la-endian.Plo@am__quote@
1599+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjte_libjte_la-jte.Plo@am__quote@
1600+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjte_libjte_la-libjte.Plo@am__quote@
1601+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjte_libjte_la-md5.Plo@am__quote@
1602+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjte_libjte_la-rsync.Plo@am__quote@
1603+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjte_libjte_la-sha1.Plo@am__quote@
1604+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjte_libjte_la-sha256.Plo@am__quote@
1605+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjte_libjte_la-sha512.Plo@am__quote@
1606+@AMDEP_TRUE@@am__include@ @am__quote@test/$(DEPDIR)/test_demo-demo.Po@am__quote@
1607+
1608+.c.o:
1609+@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
1610+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
1611+@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
1612+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1613+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1614+@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
1615+
1616+.c.obj:
1617+@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
1618+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
1619+@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
1620+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1621+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1622+@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
1623+
1624+.c.lo:
1625+@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
1626+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
1627+@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
1628+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
1629+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1630+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
1631+
1632+libjte_libjte_la-checksum.lo: checksum.c
1633+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -MT libjte_libjte_la-checksum.lo -MD -MP -MF $(DEPDIR)/libjte_libjte_la-checksum.Tpo -c -o libjte_libjte_la-checksum.lo `test -f 'checksum.c' || echo '$(srcdir)/'`checksum.c
1634+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjte_libjte_la-checksum.Tpo $(DEPDIR)/libjte_libjte_la-checksum.Plo
1635+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='checksum.c' object='libjte_libjte_la-checksum.lo' libtool=yes @AMDEPBACKSLASH@
1636+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1637+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -c -o libjte_libjte_la-checksum.lo `test -f 'checksum.c' || echo '$(srcdir)/'`checksum.c
1638+
1639+libjte_libjte_la-endian.lo: endian.c
1640+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -MT libjte_libjte_la-endian.lo -MD -MP -MF $(DEPDIR)/libjte_libjte_la-endian.Tpo -c -o libjte_libjte_la-endian.lo `test -f 'endian.c' || echo '$(srcdir)/'`endian.c
1641+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjte_libjte_la-endian.Tpo $(DEPDIR)/libjte_libjte_la-endian.Plo
1642+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='endian.c' object='libjte_libjte_la-endian.lo' libtool=yes @AMDEPBACKSLASH@
1643+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1644+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -c -o libjte_libjte_la-endian.lo `test -f 'endian.c' || echo '$(srcdir)/'`endian.c
1645+
1646+libjte_libjte_la-jte.lo: jte.c
1647+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -MT libjte_libjte_la-jte.lo -MD -MP -MF $(DEPDIR)/libjte_libjte_la-jte.Tpo -c -o libjte_libjte_la-jte.lo `test -f 'jte.c' || echo '$(srcdir)/'`jte.c
1648+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjte_libjte_la-jte.Tpo $(DEPDIR)/libjte_libjte_la-jte.Plo
1649+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='jte.c' object='libjte_libjte_la-jte.lo' libtool=yes @AMDEPBACKSLASH@
1650+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1651+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -c -o libjte_libjte_la-jte.lo `test -f 'jte.c' || echo '$(srcdir)/'`jte.c
1652+
1653+libjte_libjte_la-libjte.lo: libjte.c
1654+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -MT libjte_libjte_la-libjte.lo -MD -MP -MF $(DEPDIR)/libjte_libjte_la-libjte.Tpo -c -o libjte_libjte_la-libjte.lo `test -f 'libjte.c' || echo '$(srcdir)/'`libjte.c
1655+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjte_libjte_la-libjte.Tpo $(DEPDIR)/libjte_libjte_la-libjte.Plo
1656+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libjte.c' object='libjte_libjte_la-libjte.lo' libtool=yes @AMDEPBACKSLASH@
1657+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1658+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -c -o libjte_libjte_la-libjte.lo `test -f 'libjte.c' || echo '$(srcdir)/'`libjte.c
1659+
1660+libjte_libjte_la-md5.lo: md5.c
1661+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -MT libjte_libjte_la-md5.lo -MD -MP -MF $(DEPDIR)/libjte_libjte_la-md5.Tpo -c -o libjte_libjte_la-md5.lo `test -f 'md5.c' || echo '$(srcdir)/'`md5.c
1662+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjte_libjte_la-md5.Tpo $(DEPDIR)/libjte_libjte_la-md5.Plo
1663+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='md5.c' object='libjte_libjte_la-md5.lo' libtool=yes @AMDEPBACKSLASH@
1664+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1665+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -c -o libjte_libjte_la-md5.lo `test -f 'md5.c' || echo '$(srcdir)/'`md5.c
1666+
1667+libjte_libjte_la-rsync.lo: rsync.c
1668+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -MT libjte_libjte_la-rsync.lo -MD -MP -MF $(DEPDIR)/libjte_libjte_la-rsync.Tpo -c -o libjte_libjte_la-rsync.lo `test -f 'rsync.c' || echo '$(srcdir)/'`rsync.c
1669+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjte_libjte_la-rsync.Tpo $(DEPDIR)/libjte_libjte_la-rsync.Plo
1670+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='rsync.c' object='libjte_libjte_la-rsync.lo' libtool=yes @AMDEPBACKSLASH@
1671+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1672+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -c -o libjte_libjte_la-rsync.lo `test -f 'rsync.c' || echo '$(srcdir)/'`rsync.c
1673+
1674+libjte_libjte_la-sha1.lo: sha1.c
1675+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -MT libjte_libjte_la-sha1.lo -MD -MP -MF $(DEPDIR)/libjte_libjte_la-sha1.Tpo -c -o libjte_libjte_la-sha1.lo `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c
1676+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjte_libjte_la-sha1.Tpo $(DEPDIR)/libjte_libjte_la-sha1.Plo
1677+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sha1.c' object='libjte_libjte_la-sha1.lo' libtool=yes @AMDEPBACKSLASH@
1678+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1679+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -c -o libjte_libjte_la-sha1.lo `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c
1680+
1681+libjte_libjte_la-sha256.lo: sha256.c
1682+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -MT libjte_libjte_la-sha256.lo -MD -MP -MF $(DEPDIR)/libjte_libjte_la-sha256.Tpo -c -o libjte_libjte_la-sha256.lo `test -f 'sha256.c' || echo '$(srcdir)/'`sha256.c
1683+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjte_libjte_la-sha256.Tpo $(DEPDIR)/libjte_libjte_la-sha256.Plo
1684+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sha256.c' object='libjte_libjte_la-sha256.lo' libtool=yes @AMDEPBACKSLASH@
1685+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1686+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -c -o libjte_libjte_la-sha256.lo `test -f 'sha256.c' || echo '$(srcdir)/'`sha256.c
1687+
1688+libjte_libjte_la-sha512.lo: sha512.c
1689+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -MT libjte_libjte_la-sha512.lo -MD -MP -MF $(DEPDIR)/libjte_libjte_la-sha512.Tpo -c -o libjte_libjte_la-sha512.lo `test -f 'sha512.c' || echo '$(srcdir)/'`sha512.c
1690+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjte_libjte_la-sha512.Tpo $(DEPDIR)/libjte_libjte_la-sha512.Plo
1691+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sha512.c' object='libjte_libjte_la-sha512.lo' libtool=yes @AMDEPBACKSLASH@
1692+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1693+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjte_libjte_la_CFLAGS) $(CFLAGS) -c -o libjte_libjte_la-sha512.lo `test -f 'sha512.c' || echo '$(srcdir)/'`sha512.c
1694+
1695+test/test_demo-demo.o: test/demo.c
1696+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_demo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test/test_demo-demo.o -MD -MP -MF test/$(DEPDIR)/test_demo-demo.Tpo -c -o test/test_demo-demo.o `test -f 'test/demo.c' || echo '$(srcdir)/'`test/demo.c
1697+@am__fastdepCC_TRUE@ $(am__mv) test/$(DEPDIR)/test_demo-demo.Tpo test/$(DEPDIR)/test_demo-demo.Po
1698+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test/demo.c' object='test/test_demo-demo.o' libtool=no @AMDEPBACKSLASH@
1699+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1700+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_demo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test/test_demo-demo.o `test -f 'test/demo.c' || echo '$(srcdir)/'`test/demo.c
1701+
1702+test/test_demo-demo.obj: test/demo.c
1703+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_demo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test/test_demo-demo.obj -MD -MP -MF test/$(DEPDIR)/test_demo-demo.Tpo -c -o test/test_demo-demo.obj `if test -f 'test/demo.c'; then $(CYGPATH_W) 'test/demo.c'; else $(CYGPATH_W) '$(srcdir)/test/demo.c'; fi`
1704+@am__fastdepCC_TRUE@ $(am__mv) test/$(DEPDIR)/test_demo-demo.Tpo test/$(DEPDIR)/test_demo-demo.Po
1705+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test/demo.c' object='test/test_demo-demo.obj' libtool=no @AMDEPBACKSLASH@
1706+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1707+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_demo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test/test_demo-demo.obj `if test -f 'test/demo.c'; then $(CYGPATH_W) 'test/demo.c'; else $(CYGPATH_W) '$(srcdir)/test/demo.c'; fi`
1708+
1709+mostlyclean-libtool:
1710+ -rm -f *.lo
1711+
1712+clean-libtool:
1713+ -rm -rf .libs _libs
1714+ -rm -rf libjte/.libs libjte/_libs
1715+ -rm -rf test/.libs test/_libs
1716+
1717+distclean-libtool:
1718+ -rm -f libtool config.lt
1719+install-nodist_pkgconfigDATA: $(nodist_pkgconfig_DATA)
1720+ @$(NORMAL_INSTALL)
1721+ test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
1722+ @list='$(nodist_pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
1723+ for p in $$list; do \
1724+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1725+ echo "$$d$$p"; \
1726+ done | $(am__base_list) | \
1727+ while read files; do \
1728+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
1729+ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
1730+ done
1731+
1732+uninstall-nodist_pkgconfigDATA:
1733+ @$(NORMAL_UNINSTALL)
1734+ @list='$(nodist_pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
1735+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1736+ test -n "$$files" || exit 0; \
1737+ echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
1738+ cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
1739+install-libincludeHEADERS: $(libinclude_HEADERS)
1740+ @$(NORMAL_INSTALL)
1741+ test -z "$(libincludedir)" || $(MKDIR_P) "$(DESTDIR)$(libincludedir)"
1742+ @list='$(libinclude_HEADERS)'; test -n "$(libincludedir)" || list=; \
1743+ for p in $$list; do \
1744+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1745+ echo "$$d$$p"; \
1746+ done | $(am__base_list) | \
1747+ while read files; do \
1748+ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libincludedir)'"; \
1749+ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libincludedir)" || exit $$?; \
1750+ done
1751+
1752+uninstall-libincludeHEADERS:
1753+ @$(NORMAL_UNINSTALL)
1754+ @list='$(libinclude_HEADERS)'; test -n "$(libincludedir)" || list=; \
1755+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1756+ test -n "$$files" || exit 0; \
1757+ echo " ( cd '$(DESTDIR)$(libincludedir)' && rm -f" $$files ")"; \
1758+ cd "$(DESTDIR)$(libincludedir)" && rm -f $$files
1759+
1760+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
1761+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1762+ unique=`for i in $$list; do \
1763+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1764+ done | \
1765+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1766+ END { if (nonempty) { for (i in files) print i; }; }'`; \
1767+ mkid -fID $$unique
1768+tags: TAGS
1769+
1770+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
1771+ $(TAGS_FILES) $(LISP)
1772+ set x; \
1773+ here=`pwd`; \
1774+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1775+ unique=`for i in $$list; do \
1776+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1777+ done | \
1778+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1779+ END { if (nonempty) { for (i in files) print i; }; }'`; \
1780+ shift; \
1781+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1782+ test -n "$$unique" || unique=$$empty_fix; \
1783+ if test $$# -gt 0; then \
1784+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1785+ "$$@" $$unique; \
1786+ else \
1787+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1788+ $$unique; \
1789+ fi; \
1790+ fi
1791+ctags: CTAGS
1792+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
1793+ $(TAGS_FILES) $(LISP)
1794+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1795+ unique=`for i in $$list; do \
1796+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1797+ done | \
1798+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1799+ END { if (nonempty) { for (i in files) print i; }; }'`; \
1800+ test -z "$(CTAGS_ARGS)$$unique" \
1801+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1802+ $$unique
1803+
1804+GTAGS:
1805+ here=`$(am__cd) $(top_builddir) && pwd` \
1806+ && $(am__cd) $(top_srcdir) \
1807+ && gtags -i $(GTAGS_ARGS) "$$here"
1808+
1809+distclean-tags:
1810+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1811+
1812+distdir: $(DISTFILES)
1813+ $(am__remove_distdir)
1814+ test -d "$(distdir)" || mkdir "$(distdir)"
1815+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1816+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1817+ list='$(DISTFILES)'; \
1818+ dist_files=`for file in $$list; do echo $$file; done | \
1819+ sed -e "s|^$$srcdirstrip/||;t" \
1820+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1821+ case $$dist_files in \
1822+ */*) $(MKDIR_P) `echo "$$dist_files" | \
1823+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1824+ sort -u` ;; \
1825+ esac; \
1826+ for file in $$dist_files; do \
1827+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1828+ if test -d $$d/$$file; then \
1829+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1830+ if test -d "$(distdir)/$$file"; then \
1831+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1832+ fi; \
1833+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1834+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
1835+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1836+ fi; \
1837+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
1838+ else \
1839+ test -f "$(distdir)/$$file" \
1840+ || cp -p $$d/$$file "$(distdir)/$$file" \
1841+ || exit 1; \
1842+ fi; \
1843+ done
1844+ -test -n "$(am__skip_mode_fix)" \
1845+ || find "$(distdir)" -type d ! -perm -755 \
1846+ -exec chmod u+rwx,go+rx {} \; -o \
1847+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1848+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1849+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
1850+ || chmod -R a+r "$(distdir)"
1851+dist-gzip: distdir
1852+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1853+ $(am__remove_distdir)
1854+
1855+dist-bzip2: distdir
1856+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
1857+ $(am__remove_distdir)
1858+
1859+dist-lzma: distdir
1860+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
1861+ $(am__remove_distdir)
1862+
1863+dist-xz: distdir
1864+ tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
1865+ $(am__remove_distdir)
1866+
1867+dist-tarZ: distdir
1868+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1869+ $(am__remove_distdir)
1870+
1871+dist-shar: distdir
1872+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1873+ $(am__remove_distdir)
1874+
1875+dist-zip: distdir
1876+ -rm -f $(distdir).zip
1877+ zip -rq $(distdir).zip $(distdir)
1878+ $(am__remove_distdir)
1879+
1880+dist dist-all: distdir
1881+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1882+ $(am__remove_distdir)
1883+
1884+# This target untars the dist file and tries a VPATH configuration. Then
1885+# it guarantees that the distribution is self-contained by making another
1886+# tarfile.
1887+distcheck: dist
1888+ case '$(DIST_ARCHIVES)' in \
1889+ *.tar.gz*) \
1890+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
1891+ *.tar.bz2*) \
1892+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1893+ *.tar.lzma*) \
1894+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
1895+ *.tar.xz*) \
1896+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
1897+ *.tar.Z*) \
1898+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1899+ *.shar.gz*) \
1900+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
1901+ *.zip*) \
1902+ unzip $(distdir).zip ;;\
1903+ esac
1904+ chmod -R a-w $(distdir); chmod a+w $(distdir)
1905+ mkdir $(distdir)/_build
1906+ mkdir $(distdir)/_inst
1907+ chmod a-w $(distdir)
1908+ test -d $(distdir)/_build || exit 0; \
1909+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1910+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1911+ && am__cwd=`pwd` \
1912+ && $(am__cd) $(distdir)/_build \
1913+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1914+ $(DISTCHECK_CONFIGURE_FLAGS) \
1915+ && $(MAKE) $(AM_MAKEFLAGS) \
1916+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
1917+ && $(MAKE) $(AM_MAKEFLAGS) check \
1918+ && $(MAKE) $(AM_MAKEFLAGS) install \
1919+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1920+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1921+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1922+ distuninstallcheck \
1923+ && chmod -R a-w "$$dc_install_base" \
1924+ && ({ \
1925+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1926+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1927+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1928+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1929+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1930+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
1931+ && rm -rf "$$dc_destdir" \
1932+ && $(MAKE) $(AM_MAKEFLAGS) dist \
1933+ && rm -rf $(DIST_ARCHIVES) \
1934+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
1935+ && cd "$$am__cwd" \
1936+ || exit 1
1937+ $(am__remove_distdir)
1938+ @(echo "$(distdir) archives ready for distribution: "; \
1939+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1940+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1941+distuninstallcheck:
1942+ @$(am__cd) '$(distuninstallcheck_dir)' \
1943+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
1944+ || { echo "ERROR: files left after uninstall:" ; \
1945+ if test -n "$(DESTDIR)"; then \
1946+ echo " (check DESTDIR support)"; \
1947+ fi ; \
1948+ $(distuninstallcheck_listfiles) ; \
1949+ exit 1; } >&2
1950+distcleancheck: distclean
1951+ @if test '$(srcdir)' = . ; then \
1952+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1953+ exit 1 ; \
1954+ fi
1955+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1956+ || { echo "ERROR: files left in build directory after distclean:" ; \
1957+ $(distcleancheck_listfiles) ; \
1958+ exit 1; } >&2
1959+check-am: all-am
1960+check: check-am
1961+all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS)
1962+installdirs:
1963+ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(libincludedir)"; do \
1964+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1965+ done
1966+install: install-am
1967+install-exec: install-exec-am
1968+install-data: install-data-am
1969+uninstall: uninstall-am
1970+
1971+install-am: all-am
1972+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1973+
1974+installcheck: installcheck-am
1975+install-strip:
1976+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1977+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1978+ `test -z '$(STRIP)' || \
1979+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1980+mostlyclean-generic:
1981+
1982+clean-generic:
1983+
1984+distclean-generic:
1985+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1986+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1987+ -rm -f libjte/$(am__dirstamp)
1988+ -rm -f test/$(DEPDIR)/$(am__dirstamp)
1989+ -rm -f test/$(am__dirstamp)
1990+
1991+maintainer-clean-generic:
1992+ @echo "This command is intended for maintainers to use"
1993+ @echo "it deletes files that may require special tools to rebuild."
1994+clean: clean-am
1995+
1996+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
1997+ clean-noinstPROGRAMS mostlyclean-am
1998+
1999+distclean: distclean-am
2000+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
2001+ -rm -rf ./$(DEPDIR) test/$(DEPDIR)
2002+ -rm -f Makefile
2003+distclean-am: clean-am distclean-compile distclean-generic \
2004+ distclean-libtool distclean-tags
2005+
2006+dvi: dvi-am
2007+
2008+dvi-am:
2009+
2010+html: html-am
2011+
2012+html-am:
2013+
2014+info: info-am
2015+
2016+info-am:
2017+
2018+install-data-am: install-libincludeHEADERS \
2019+ install-nodist_pkgconfigDATA
2020+
2021+install-dvi: install-dvi-am
2022+
2023+install-dvi-am:
2024+
2025+install-exec-am: install-libLTLIBRARIES
2026+ @$(NORMAL_INSTALL)
2027+ $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
2028+install-html: install-html-am
2029+
2030+install-html-am:
2031+
2032+install-info: install-info-am
2033+
2034+install-info-am:
2035+
2036+install-man:
2037+
2038+install-pdf: install-pdf-am
2039+
2040+install-pdf-am:
2041+
2042+install-ps: install-ps-am
2043+
2044+install-ps-am:
2045+
2046+installcheck-am:
2047+
2048+maintainer-clean: maintainer-clean-am
2049+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
2050+ -rm -rf $(top_srcdir)/autom4te.cache
2051+ -rm -rf ./$(DEPDIR) test/$(DEPDIR)
2052+ -rm -f Makefile
2053+maintainer-clean-am: distclean-am maintainer-clean-generic
2054+
2055+mostlyclean: mostlyclean-am
2056+
2057+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
2058+ mostlyclean-libtool
2059+
2060+pdf: pdf-am
2061+
2062+pdf-am:
2063+
2064+ps: ps-am
2065+
2066+ps-am:
2067+
2068+uninstall-am: uninstall-libLTLIBRARIES uninstall-libincludeHEADERS \
2069+ uninstall-nodist_pkgconfigDATA
2070+
2071+.MAKE: install-am install-exec-am install-strip
2072+
2073+.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
2074+ clean-generic clean-libLTLIBRARIES clean-libtool \
2075+ clean-noinstPROGRAMS ctags dist dist-all dist-bzip2 dist-gzip \
2076+ dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
2077+ distclean distclean-compile distclean-generic \
2078+ distclean-libtool distclean-tags distcleancheck distdir \
2079+ distuninstallcheck dvi dvi-am html html-am info info-am \
2080+ install install-am install-data install-data-am install-dvi \
2081+ install-dvi-am install-exec install-exec-am install-exec-hook \
2082+ install-html install-html-am install-info install-info-am \
2083+ install-libLTLIBRARIES install-libincludeHEADERS install-man \
2084+ install-nodist_pkgconfigDATA install-pdf install-pdf-am \
2085+ install-ps install-ps-am install-strip installcheck \
2086+ installcheck-am installdirs maintainer-clean \
2087+ maintainer-clean-generic mostlyclean mostlyclean-compile \
2088+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
2089+ tags uninstall uninstall-am uninstall-libLTLIBRARIES \
2090+ uninstall-libincludeHEADERS uninstall-nodist_pkgconfigDATA
2091+
2092+
2093+install-exec-hook:
2094+ $(LIBBURNIA_LDCONFIG_CMD) "$(DESTDIR)$(libdir)" || echo 'NOTE: Explicite dynamic library configuration failed. If needed, configure manually for:' "$(DESTDIR)$(libdir)"
2095+
2096+# Tell versions [3.59,3.63) of GNU make to not export all variables.
2097+# Otherwise a system limit (for SysV at least) may be exceeded.
2098+.NOEXPORT:
2099
2100=== added file 'libjte/acinclude.m4'
2101--- libjte/acinclude.m4 1970-01-01 00:00:00 +0000
2102+++ libjte/acinclude.m4 2011-05-27 18:21:17 +0000
2103@@ -0,0 +1,105 @@
2104+AC_DEFUN([LIBBURNIA_SET_FLAGS],
2105+[
2106+case $target_os in
2107+freebsd*)
2108+ LDFLAGS="$LDFLAGS -L/usr/local/lib"
2109+ CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2110+ ;;
2111+esac
2112+])
2113+
2114+
2115+AC_DEFUN([TARGET_SHIZZLE],
2116+[
2117+ ARCH=""
2118+ LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
2119+
2120+ AC_MSG_CHECKING([target operating system])
2121+
2122+ LIBBURNIA_LDCONFIG_CMD="echo 'No ldconfig run performed. If needed, configure manually for:'"
2123+ case $target in
2124+ *-*-linux*)
2125+ ARCH=linux
2126+ LIBBURNIA_LDCONFIG_CMD=ldconfig
2127+ ;;
2128+ *-*-freebsd*)
2129+ ARCH=freebsd
2130+
2131+ # This may later be overridden by configure --enable-libdir-pkgconfig
2132+ LIBBURNIA_PKGCONFDIR=$(echo "$libdir" | sed 's/\/lib$/\/libdata/')/pkgconfig
2133+ ;;
2134+ *)
2135+ ARCH=
2136+ ;;
2137+ esac
2138+
2139+ AC_MSG_RESULT([$ARCH])
2140+])
2141+
2142+
2143+
2144+dnl LIBJTE_ASSERT_VERS_LIBS is by Thomas Schmitt, libburnia project
2145+dnl It tests whether -Wl,--version-script=... works with the compiler
2146+AC_DEFUN([LIBJTE_ASSERT_VERS_LIBS],
2147+[
2148+ libburnia_save_LDFLAGS="$LDFLAGS"
2149+ LDFLAGS="$LDFLAGS -Wl,--version-script=libjte.ver"
2150+ AC_TRY_LINK([#include <stdio.h>], [printf("Hello\n");],
2151+ [vers_libs_test="yes"], [vers_libs_test="no"])
2152+ if test x$vers_libs_test = xno
2153+ then
2154+ LDFLAGS="$libburnia_save_LDFLAGS"
2155+ fi
2156+])
2157+
2158+
2159+dnl LIBBURNIA_SET_PKGCONFIG determines the install directory for the *.pc file.
2160+dnl Important: Must be performed _after_ TARGET_SHIZZLE
2161+dnl
2162+AC_DEFUN([LIBBURNIA_SET_PKGCONFIG],
2163+[
2164+### for testing --enable-libdir-pkgconfig on Linux
2165+### LIBBURNIA_PKGCONFDIR="$libdir"data/pkgconfig
2166+
2167+if test "x$LIBBURNIA_PKGCONFDIR" = "x$libdir"/pkgconfig
2168+then
2169+ dummy=dummy
2170+else
2171+ AC_ARG_ENABLE(libdir-pkgconfig,
2172+ [ --enable-libdir-pkgconfig Install to $libdir/pkgconfig on any OS, default=no],
2173+ , enable_libdir_pkgconfig="no")
2174+ AC_MSG_CHECKING([for --enable-libdir-pkgconfig])
2175+ if test "x$enable_libdir_pkgconfig" = xyes
2176+ then
2177+ LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
2178+ fi
2179+ AC_MSG_RESULT([$enable_libdir_pkgconfig])
2180+fi
2181+
2182+libburnia_pkgconfig_override="no"
2183+AC_ARG_ENABLE(pkgconfig-path,
2184+[ --enable-pkgconfig-path=DIR Absolute path of directory for libjte-*.pc],
2185+libburnia_pkgconfig_override="yes" , enable_pkgconfig_path="none")
2186+AC_MSG_CHECKING([for overridden pkgconfig directory path])
2187+if test "x$enable_pkgconfig_path" = xno
2188+then
2189+ libburnia_pkgconfig_override="no"
2190+fi
2191+if test "x$enable_pkgconfig_path" = x -o "x$enable_pkgconfig_path" = xyes
2192+then
2193+ libburnia_pkgconfig_override="invalid argument"
2194+fi
2195+if test "x$libburnia_pkgconfig_override" = xyes
2196+then
2197+ LIBBURNIA_PKGCONFDIR="$enable_pkgconfig_path"
2198+ AC_MSG_RESULT([$LIBBURNIA_PKGCONFDIR])
2199+else
2200+ AC_MSG_RESULT([$libburnia_pkgconfig_override])
2201+fi
2202+AC_SUBST(LIBBURNIA_PKGCONFDIR)
2203+
2204+dnl For debugging only
2205+### AC_MSG_RESULT([LIBBURNIA_PKGCONFDIR = $LIBBURNIA_PKGCONFDIR])
2206+
2207+])
2208+
2209
2210=== added file 'libjte/aclocal.m4'
2211--- libjte/aclocal.m4 1970-01-01 00:00:00 +0000
2212+++ libjte/aclocal.m4 2011-05-27 18:21:17 +0000
2213@@ -0,0 +1,1032 @@
2214+# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2215+
2216+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2217+# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2218+# This file is free software; the Free Software Foundation
2219+# gives unlimited permission to copy and/or distribute it,
2220+# with or without modifications, as long as this notice is preserved.
2221+
2222+# This program is distributed in the hope that it will be useful,
2223+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
2224+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
2225+# PARTICULAR PURPOSE.
2226+
2227+m4_ifndef([AC_AUTOCONF_VERSION],
2228+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2229+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
2230+[m4_warning([this file was generated for autoconf 2.67.
2231+You have another version of autoconf. It may work, but is not guaranteed to.
2232+If you have problems, you may need to regenerate the build system entirely.
2233+To do so, use the procedure documented by the package, typically `autoreconf'.])])
2234+
2235+# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2236+#
2237+# This file is free software; the Free Software Foundation
2238+# gives unlimited permission to copy and/or distribute it,
2239+# with or without modifications, as long as this notice is preserved.
2240+
2241+# AM_AUTOMAKE_VERSION(VERSION)
2242+# ----------------------------
2243+# Automake X.Y traces this macro to ensure aclocal.m4 has been
2244+# generated from the m4 files accompanying Automake X.Y.
2245+# (This private macro should not be called outside this file.)
2246+AC_DEFUN([AM_AUTOMAKE_VERSION],
2247+[am__api_version='1.11'
2248+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
2249+dnl require some minimum version. Point them to the right macro.
2250+m4_if([$1], [1.11.1], [],
2251+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
2252+])
2253+
2254+# _AM_AUTOCONF_VERSION(VERSION)
2255+# -----------------------------
2256+# aclocal traces this macro to find the Autoconf version.
2257+# This is a private macro too. Using m4_define simplifies
2258+# the logic in aclocal, which can simply ignore this definition.
2259+m4_define([_AM_AUTOCONF_VERSION], [])
2260+
2261+# AM_SET_CURRENT_AUTOMAKE_VERSION
2262+# -------------------------------
2263+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
2264+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
2265+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
2266+[AM_AUTOMAKE_VERSION([1.11.1])dnl
2267+m4_ifndef([AC_AUTOCONF_VERSION],
2268+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2269+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
2270+
2271+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
2272+
2273+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
2274+#
2275+# This file is free software; the Free Software Foundation
2276+# gives unlimited permission to copy and/or distribute it,
2277+# with or without modifications, as long as this notice is preserved.
2278+
2279+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
2280+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
2281+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
2282+#
2283+# Of course, Automake must honor this variable whenever it calls a
2284+# tool from the auxiliary directory. The problem is that $srcdir (and
2285+# therefore $ac_aux_dir as well) can be either absolute or relative,
2286+# depending on how configure is run. This is pretty annoying, since
2287+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
2288+# source directory, any form will work fine, but in subdirectories a
2289+# relative path needs to be adjusted first.
2290+#
2291+# $ac_aux_dir/missing
2292+# fails when called from a subdirectory if $ac_aux_dir is relative
2293+# $top_srcdir/$ac_aux_dir/missing
2294+# fails if $ac_aux_dir is absolute,
2295+# fails when called from a subdirectory in a VPATH build with
2296+# a relative $ac_aux_dir
2297+#
2298+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
2299+# are both prefixed by $srcdir. In an in-source build this is usually
2300+# harmless because $srcdir is `.', but things will broke when you
2301+# start a VPATH build or use an absolute $srcdir.
2302+#
2303+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
2304+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
2305+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
2306+# and then we would define $MISSING as
2307+# MISSING="\${SHELL} $am_aux_dir/missing"
2308+# This will work as long as MISSING is not called from configure, because
2309+# unfortunately $(top_srcdir) has no meaning in configure.
2310+# However there are other variables, like CC, which are often used in
2311+# configure, and could therefore not use this "fixed" $ac_aux_dir.
2312+#
2313+# Another solution, used here, is to always expand $ac_aux_dir to an
2314+# absolute PATH. The drawback is that using absolute paths prevent a
2315+# configured tree to be moved without reconfiguration.
2316+
2317+AC_DEFUN([AM_AUX_DIR_EXPAND],
2318+[dnl Rely on autoconf to set up CDPATH properly.
2319+AC_PREREQ([2.50])dnl
2320+# expand $ac_aux_dir to an absolute path
2321+am_aux_dir=`cd $ac_aux_dir && pwd`
2322+])
2323+
2324+# AM_CONDITIONAL -*- Autoconf -*-
2325+
2326+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
2327+# Free Software Foundation, Inc.
2328+#
2329+# This file is free software; the Free Software Foundation
2330+# gives unlimited permission to copy and/or distribute it,
2331+# with or without modifications, as long as this notice is preserved.
2332+
2333+# serial 9
2334+
2335+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2336+# -------------------------------------
2337+# Define a conditional.
2338+AC_DEFUN([AM_CONDITIONAL],
2339+[AC_PREREQ(2.52)dnl
2340+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2341+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2342+AC_SUBST([$1_TRUE])dnl
2343+AC_SUBST([$1_FALSE])dnl
2344+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
2345+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
2346+m4_define([_AM_COND_VALUE_$1], [$2])dnl
2347+if $2; then
2348+ $1_TRUE=
2349+ $1_FALSE='#'
2350+else
2351+ $1_TRUE='#'
2352+ $1_FALSE=
2353+fi
2354+AC_CONFIG_COMMANDS_PRE(
2355+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2356+ AC_MSG_ERROR([[conditional "$1" was never defined.
2357+Usually this means the macro was only invoked conditionally.]])
2358+fi])])
2359+
2360+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
2361+# Free Software Foundation, Inc.
2362+#
2363+# This file is free software; the Free Software Foundation
2364+# gives unlimited permission to copy and/or distribute it,
2365+# with or without modifications, as long as this notice is preserved.
2366+
2367+# serial 10
2368+
2369+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
2370+# written in clear, in which case automake, when reading aclocal.m4,
2371+# will think it sees a *use*, and therefore will trigger all it's
2372+# C support machinery. Also note that it means that autoscan, seeing
2373+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2374+
2375+
2376+# _AM_DEPENDENCIES(NAME)
2377+# ----------------------
2378+# See how the compiler implements dependency checking.
2379+# NAME is "CC", "CXX", "GCJ", or "OBJC".
2380+# We try a few techniques and use that to set a single cache variable.
2381+#
2382+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
2383+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
2384+# dependency, and given that the user is not expected to run this macro,
2385+# just rely on AC_PROG_CC.
2386+AC_DEFUN([_AM_DEPENDENCIES],
2387+[AC_REQUIRE([AM_SET_DEPDIR])dnl
2388+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
2389+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
2390+AC_REQUIRE([AM_DEP_TRACK])dnl
2391+
2392+ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
2393+ [$1], CXX, [depcc="$CXX" am_compiler_list=],
2394+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
2395+ [$1], UPC, [depcc="$UPC" am_compiler_list=],
2396+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
2397+ [depcc="$$1" am_compiler_list=])
2398+
2399+AC_CACHE_CHECK([dependency style of $depcc],
2400+ [am_cv_$1_dependencies_compiler_type],
2401+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2402+ # We make a subdir and do the tests there. Otherwise we can end up
2403+ # making bogus files that we don't know about and never remove. For
2404+ # instance it was reported that on HP-UX the gcc test will end up
2405+ # making a dummy file named `D' -- because `-MD' means `put the output
2406+ # in D'.
2407+ mkdir conftest.dir
2408+ # Copy depcomp to subdir because otherwise we won't find it if we're
2409+ # using a relative directory.
2410+ cp "$am_depcomp" conftest.dir
2411+ cd conftest.dir
2412+ # We will build objects and dependencies in a subdirectory because
2413+ # it helps to detect inapplicable dependency modes. For instance
2414+ # both Tru64's cc and ICC support -MD to output dependencies as a
2415+ # side effect of compilation, but ICC will put the dependencies in
2416+ # the current directory while Tru64 will put them in the object
2417+ # directory.
2418+ mkdir sub
2419+
2420+ am_cv_$1_dependencies_compiler_type=none
2421+ if test "$am_compiler_list" = ""; then
2422+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
2423+ fi
2424+ am__universal=false
2425+ m4_case([$1], [CC],
2426+ [case " $depcc " in #(
2427+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
2428+ esac],
2429+ [CXX],
2430+ [case " $depcc " in #(
2431+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
2432+ esac])
2433+
2434+ for depmode in $am_compiler_list; do
2435+ # Setup a source with many dependencies, because some compilers
2436+ # like to wrap large dependency lists on column 80 (with \), and
2437+ # we should not choose a depcomp mode which is confused by this.
2438+ #
2439+ # We need to recreate these files for each test, as the compiler may
2440+ # overwrite some of them when testing with obscure command lines.
2441+ # This happens at least with the AIX C compiler.
2442+ : > sub/conftest.c
2443+ for i in 1 2 3 4 5 6; do
2444+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
2445+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2446+ # Solaris 8's {/usr,}/bin/sh.
2447+ touch sub/conftst$i.h
2448+ done
2449+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2450+
2451+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
2452+ # mode. It turns out that the SunPro C++ compiler does not properly
2453+ # handle `-M -o', and we need to detect this. Also, some Intel
2454+ # versions had trouble with output in subdirs
2455+ am__obj=sub/conftest.${OBJEXT-o}
2456+ am__minus_obj="-o $am__obj"
2457+ case $depmode in
2458+ gcc)
2459+ # This depmode causes a compiler race in universal mode.
2460+ test "$am__universal" = false || continue
2461+ ;;
2462+ nosideeffect)
2463+ # after this tag, mechanisms are not by side-effect, so they'll
2464+ # only be used when explicitly requested
2465+ if test "x$enable_dependency_tracking" = xyes; then
2466+ continue
2467+ else
2468+ break
2469+ fi
2470+ ;;
2471+ msvisualcpp | msvcmsys)
2472+ # This compiler won't grok `-c -o', but also, the minuso test has
2473+ # not run yet. These depmodes are late enough in the game, and
2474+ # so weak that their functioning should not be impacted.
2475+ am__obj=conftest.${OBJEXT-o}
2476+ am__minus_obj=
2477+ ;;
2478+ none) break ;;
2479+ esac
2480+ if depmode=$depmode \
2481+ source=sub/conftest.c object=$am__obj \
2482+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2483+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2484+ >/dev/null 2>conftest.err &&
2485+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2486+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2487+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2488+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2489+ # icc doesn't choke on unknown options, it will just issue warnings
2490+ # or remarks (even with -Werror). So we grep stderr for any message
2491+ # that says an option was ignored or not supported.
2492+ # When given -MP, icc 7.0 and 7.1 complain thusly:
2493+ # icc: Command line warning: ignoring option '-M'; no argument required
2494+ # The diagnosis changed in icc 8.0:
2495+ # icc: Command line remark: option '-MP' not supported
2496+ if (grep 'ignoring option' conftest.err ||
2497+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2498+ am_cv_$1_dependencies_compiler_type=$depmode
2499+ break
2500+ fi
2501+ fi
2502+ done
2503+
2504+ cd ..
2505+ rm -rf conftest.dir
2506+else
2507+ am_cv_$1_dependencies_compiler_type=none
2508+fi
2509+])
2510+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2511+AM_CONDITIONAL([am__fastdep$1], [
2512+ test "x$enable_dependency_tracking" != xno \
2513+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2514+])
2515+
2516+
2517+# AM_SET_DEPDIR
2518+# -------------
2519+# Choose a directory name for dependency files.
2520+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
2521+AC_DEFUN([AM_SET_DEPDIR],
2522+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2523+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2524+])
2525+
2526+
2527+# AM_DEP_TRACK
2528+# ------------
2529+AC_DEFUN([AM_DEP_TRACK],
2530+[AC_ARG_ENABLE(dependency-tracking,
2531+[ --disable-dependency-tracking speeds up one-time build
2532+ --enable-dependency-tracking do not reject slow dependency extractors])
2533+if test "x$enable_dependency_tracking" != xno; then
2534+ am_depcomp="$ac_aux_dir/depcomp"
2535+ AMDEPBACKSLASH='\'
2536+fi
2537+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2538+AC_SUBST([AMDEPBACKSLASH])dnl
2539+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
2540+])
2541+
2542+# Generate code to set up dependency tracking. -*- Autoconf -*-
2543+
2544+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
2545+# Free Software Foundation, Inc.
2546+#
2547+# This file is free software; the Free Software Foundation
2548+# gives unlimited permission to copy and/or distribute it,
2549+# with or without modifications, as long as this notice is preserved.
2550+
2551+#serial 5
2552+
2553+# _AM_OUTPUT_DEPENDENCY_COMMANDS
2554+# ------------------------------
2555+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2556+[{
2557+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
2558+ # are listed without --file. Let's play safe and only enable the eval
2559+ # if we detect the quoting.
2560+ case $CONFIG_FILES in
2561+ *\'*) eval set x "$CONFIG_FILES" ;;
2562+ *) set x $CONFIG_FILES ;;
2563+ esac
2564+ shift
2565+ for mf
2566+ do
2567+ # Strip MF so we end up with the name of the file.
2568+ mf=`echo "$mf" | sed -e 's/:.*$//'`
2569+ # Check whether this is an Automake generated Makefile or not.
2570+ # We used to match only the files named `Makefile.in', but
2571+ # some people rename them; so instead we look at the file content.
2572+ # Grep'ing the first line is not enough: some people post-process
2573+ # each Makefile.in and add a new line on top of each file to say so.
2574+ # Grep'ing the whole file is not good either: AIX grep has a line
2575+ # limit of 2048, but all sed's we know have understand at least 4000.
2576+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
2577+ dirpart=`AS_DIRNAME("$mf")`
2578+ else
2579+ continue
2580+ fi
2581+ # Extract the definition of DEPDIR, am__include, and am__quote
2582+ # from the Makefile without running `make'.
2583+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2584+ test -z "$DEPDIR" && continue
2585+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
2586+ test -z "am__include" && continue
2587+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2588+ # When using ansi2knr, U may be empty or an underscore; expand it
2589+ U=`sed -n 's/^U = //p' < "$mf"`
2590+ # Find all dependency output files, they are included files with
2591+ # $(DEPDIR) in their names. We invoke sed twice because it is the
2592+ # simplest approach to changing $(DEPDIR) to its actual value in the
2593+ # expansion.
2594+ for file in `sed -n "
2595+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
2596+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2597+ # Make sure the directory exists.
2598+ test -f "$dirpart/$file" && continue
2599+ fdir=`AS_DIRNAME(["$file"])`
2600+ AS_MKDIR_P([$dirpart/$fdir])
2601+ # echo "creating $dirpart/$file"
2602+ echo '# dummy' > "$dirpart/$file"
2603+ done
2604+ done
2605+}
2606+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2607+
2608+
2609+# AM_OUTPUT_DEPENDENCY_COMMANDS
2610+# -----------------------------
2611+# This macro should only be invoked once -- use via AC_REQUIRE.
2612+#
2613+# This code is only required when automatic dependency tracking
2614+# is enabled. FIXME. This creates each `.P' file that we will
2615+# need in order to bootstrap the dependency handling code.
2616+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2617+[AC_CONFIG_COMMANDS([depfiles],
2618+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2619+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2620+])
2621+
2622+# Do all the work for Automake. -*- Autoconf -*-
2623+
2624+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2625+# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
2626+#
2627+# This file is free software; the Free Software Foundation
2628+# gives unlimited permission to copy and/or distribute it,
2629+# with or without modifications, as long as this notice is preserved.
2630+
2631+# serial 16
2632+
2633+# This macro actually does too much. Some checks are only needed if
2634+# your package does certain things. But this isn't really a big deal.
2635+
2636+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
2637+# AM_INIT_AUTOMAKE([OPTIONS])
2638+# -----------------------------------------------
2639+# The call with PACKAGE and VERSION arguments is the old style
2640+# call (pre autoconf-2.50), which is being phased out. PACKAGE
2641+# and VERSION should now be passed to AC_INIT and removed from
2642+# the call to AM_INIT_AUTOMAKE.
2643+# We support both call styles for the transition. After
2644+# the next Automake release, Autoconf can make the AC_INIT
2645+# arguments mandatory, and then we can depend on a new Autoconf
2646+# release and drop the old call support.
2647+AC_DEFUN([AM_INIT_AUTOMAKE],
2648+[AC_PREREQ([2.62])dnl
2649+dnl Autoconf wants to disallow AM_ names. We explicitly allow
2650+dnl the ones we care about.
2651+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
2652+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
2653+AC_REQUIRE([AC_PROG_INSTALL])dnl
2654+if test "`cd $srcdir && pwd`" != "`pwd`"; then
2655+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2656+ # is not polluted with repeated "-I."
2657+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
2658+ # test to see if srcdir already configured
2659+ if test -f $srcdir/config.status; then
2660+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
2661+ fi
2662+fi
2663+
2664+# test whether we have cygpath
2665+if test -z "$CYGPATH_W"; then
2666+ if (cygpath --version) >/dev/null 2>/dev/null; then
2667+ CYGPATH_W='cygpath -w'
2668+ else
2669+ CYGPATH_W=echo
2670+ fi
2671+fi
2672+AC_SUBST([CYGPATH_W])
2673+
2674+# Define the identity of the package.
2675+dnl Distinguish between old-style and new-style calls.
2676+m4_ifval([$2],
2677+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
2678+ AC_SUBST([PACKAGE], [$1])dnl
2679+ AC_SUBST([VERSION], [$2])],
2680+[_AM_SET_OPTIONS([$1])dnl
2681+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
2682+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
2683+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
2684+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
2685+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
2686+
2687+_AM_IF_OPTION([no-define],,
2688+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
2689+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
2690+
2691+# Some tools Automake needs.
2692+AC_REQUIRE([AM_SANITY_CHECK])dnl
2693+AC_REQUIRE([AC_ARG_PROGRAM])dnl
2694+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
2695+AM_MISSING_PROG(AUTOCONF, autoconf)
2696+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
2697+AM_MISSING_PROG(AUTOHEADER, autoheader)
2698+AM_MISSING_PROG(MAKEINFO, makeinfo)
2699+AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
2700+AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
2701+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
2702+# We need awk for the "check" target. The system "awk" is bad on
2703+# some platforms.
2704+AC_REQUIRE([AC_PROG_AWK])dnl
2705+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
2706+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2707+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
2708+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
2709+ [_AM_PROG_TAR([v7])])])
2710+_AM_IF_OPTION([no-dependencies],,
2711+[AC_PROVIDE_IFELSE([AC_PROG_CC],
2712+ [_AM_DEPENDENCIES(CC)],
2713+ [define([AC_PROG_CC],
2714+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
2715+AC_PROVIDE_IFELSE([AC_PROG_CXX],
2716+ [_AM_DEPENDENCIES(CXX)],
2717+ [define([AC_PROG_CXX],
2718+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
2719+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
2720+ [_AM_DEPENDENCIES(OBJC)],
2721+ [define([AC_PROG_OBJC],
2722+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
2723+])
2724+_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
2725+dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
2726+dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
2727+dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
2728+AC_CONFIG_COMMANDS_PRE(dnl
2729+[m4_provide_if([_AM_COMPILER_EXEEXT],
2730+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
2731+])
2732+
2733+dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
2734+dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
2735+dnl mangled by Autoconf and run in a shell conditional statement.
2736+m4_define([_AC_COMPILER_EXEEXT],
2737+m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
2738+
2739+
2740+# When config.status generates a header, we must update the stamp-h file.
2741+# This file resides in the same directory as the config header
2742+# that is generated. The stamp files are numbered to have different names.
2743+
2744+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
2745+# loop where config.status creates the headers, so we can generate
2746+# our stamp files there.
2747+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
2748+[# Compute $1's index in $config_headers.
2749+_am_arg=$1
2750+_am_stamp_count=1
2751+for _am_header in $config_headers :; do
2752+ case $_am_header in
2753+ $_am_arg | $_am_arg:* )
2754+ break ;;
2755+ * )
2756+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2757+ esac
2758+done
2759+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
2760+
2761+# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
2762+#
2763+# This file is free software; the Free Software Foundation
2764+# gives unlimited permission to copy and/or distribute it,
2765+# with or without modifications, as long as this notice is preserved.
2766+
2767+# AM_PROG_INSTALL_SH
2768+# ------------------
2769+# Define $install_sh.
2770+AC_DEFUN([AM_PROG_INSTALL_SH],
2771+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2772+if test x"${install_sh}" != xset; then
2773+ case $am_aux_dir in
2774+ *\ * | *\ *)
2775+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2776+ *)
2777+ install_sh="\${SHELL} $am_aux_dir/install-sh"
2778+ esac
2779+fi
2780+AC_SUBST(install_sh)])
2781+
2782+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
2783+#
2784+# This file is free software; the Free Software Foundation
2785+# gives unlimited permission to copy and/or distribute it,
2786+# with or without modifications, as long as this notice is preserved.
2787+
2788+# serial 2
2789+
2790+# Check whether the underlying file-system supports filenames
2791+# with a leading dot. For instance MS-DOS doesn't.
2792+AC_DEFUN([AM_SET_LEADING_DOT],
2793+[rm -rf .tst 2>/dev/null
2794+mkdir .tst 2>/dev/null
2795+if test -d .tst; then
2796+ am__leading_dot=.
2797+else
2798+ am__leading_dot=_
2799+fi
2800+rmdir .tst 2>/dev/null
2801+AC_SUBST([am__leading_dot])])
2802+
2803+# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
2804+# From Jim Meyering
2805+
2806+# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
2807+# Free Software Foundation, Inc.
2808+#
2809+# This file is free software; the Free Software Foundation
2810+# gives unlimited permission to copy and/or distribute it,
2811+# with or without modifications, as long as this notice is preserved.
2812+
2813+# serial 5
2814+
2815+# AM_MAINTAINER_MODE([DEFAULT-MODE])
2816+# ----------------------------------
2817+# Control maintainer-specific portions of Makefiles.
2818+# Default is to disable them, unless `enable' is passed literally.
2819+# For symmetry, `disable' may be passed as well. Anyway, the user
2820+# can override the default with the --enable/--disable switch.
2821+AC_DEFUN([AM_MAINTAINER_MODE],
2822+[m4_case(m4_default([$1], [disable]),
2823+ [enable], [m4_define([am_maintainer_other], [disable])],
2824+ [disable], [m4_define([am_maintainer_other], [enable])],
2825+ [m4_define([am_maintainer_other], [enable])
2826+ m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
2827+AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
2828+ dnl maintainer-mode's default is 'disable' unless 'enable' is passed
2829+ AC_ARG_ENABLE([maintainer-mode],
2830+[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
2831+ (and sometimes confusing) to the casual installer],
2832+ [USE_MAINTAINER_MODE=$enableval],
2833+ [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
2834+ AC_MSG_RESULT([$USE_MAINTAINER_MODE])
2835+ AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
2836+ MAINT=$MAINTAINER_MODE_TRUE
2837+ AC_SUBST([MAINT])dnl
2838+]
2839+)
2840+
2841+AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
2842+
2843+# Check to see how 'make' treats includes. -*- Autoconf -*-
2844+
2845+# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
2846+#
2847+# This file is free software; the Free Software Foundation
2848+# gives unlimited permission to copy and/or distribute it,
2849+# with or without modifications, as long as this notice is preserved.
2850+
2851+# serial 4
2852+
2853+# AM_MAKE_INCLUDE()
2854+# -----------------
2855+# Check to see how make treats includes.
2856+AC_DEFUN([AM_MAKE_INCLUDE],
2857+[am_make=${MAKE-make}
2858+cat > confinc << 'END'
2859+am__doit:
2860+ @echo this is the am__doit target
2861+.PHONY: am__doit
2862+END
2863+# If we don't find an include directive, just comment out the code.
2864+AC_MSG_CHECKING([for style of include used by $am_make])
2865+am__include="#"
2866+am__quote=
2867+_am_result=none
2868+# First try GNU make style include.
2869+echo "include confinc" > confmf
2870+# Ignore all kinds of additional output from `make'.
2871+case `$am_make -s -f confmf 2> /dev/null` in #(
2872+*the\ am__doit\ target*)
2873+ am__include=include
2874+ am__quote=
2875+ _am_result=GNU
2876+ ;;
2877+esac
2878+# Now try BSD make style include.
2879+if test "$am__include" = "#"; then
2880+ echo '.include "confinc"' > confmf
2881+ case `$am_make -s -f confmf 2> /dev/null` in #(
2882+ *the\ am__doit\ target*)
2883+ am__include=.include
2884+ am__quote="\""
2885+ _am_result=BSD
2886+ ;;
2887+ esac
2888+fi
2889+AC_SUBST([am__include])
2890+AC_SUBST([am__quote])
2891+AC_MSG_RESULT([$_am_result])
2892+rm -f confinc confmf
2893+])
2894+
2895+# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
2896+# Free Software Foundation, Inc.
2897+#
2898+# This file is free software; the Free Software Foundation
2899+# gives unlimited permission to copy and/or distribute it,
2900+# with or without modifications, as long as this notice is preserved.
2901+
2902+# serial 6
2903+
2904+# AM_PROG_CC_C_O
2905+# --------------
2906+# Like AC_PROG_CC_C_O, but changed for automake.
2907+AC_DEFUN([AM_PROG_CC_C_O],
2908+[AC_REQUIRE([AC_PROG_CC_C_O])dnl
2909+AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2910+AC_REQUIRE_AUX_FILE([compile])dnl
2911+# FIXME: we rely on the cache variable name because
2912+# there is no other way.
2913+set dummy $CC
2914+am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
2915+eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
2916+if test "$am_t" != yes; then
2917+ # Losing compiler, so override with the script.
2918+ # FIXME: It is wrong to rewrite CC.
2919+ # But if we don't then we get into trouble of one sort or another.
2920+ # A longer-term fix would be to have automake use am__CC in this case,
2921+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2922+ CC="$am_aux_dir/compile $CC"
2923+fi
2924+dnl Make sure AC_PROG_CC is never called again, or it will override our
2925+dnl setting of CC.
2926+m4_define([AC_PROG_CC],
2927+ [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
2928+])
2929+
2930+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
2931+
2932+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
2933+# Free Software Foundation, Inc.
2934+#
2935+# This file is free software; the Free Software Foundation
2936+# gives unlimited permission to copy and/or distribute it,
2937+# with or without modifications, as long as this notice is preserved.
2938+
2939+# serial 6
2940+
2941+# AM_MISSING_PROG(NAME, PROGRAM)
2942+# ------------------------------
2943+AC_DEFUN([AM_MISSING_PROG],
2944+[AC_REQUIRE([AM_MISSING_HAS_RUN])
2945+$1=${$1-"${am_missing_run}$2"}
2946+AC_SUBST($1)])
2947+
2948+
2949+# AM_MISSING_HAS_RUN
2950+# ------------------
2951+# Define MISSING if not defined so far and test if it supports --run.
2952+# If it does, set am_missing_run to use it, otherwise, to nothing.
2953+AC_DEFUN([AM_MISSING_HAS_RUN],
2954+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2955+AC_REQUIRE_AUX_FILE([missing])dnl
2956+if test x"${MISSING+set}" != xset; then
2957+ case $am_aux_dir in
2958+ *\ * | *\ *)
2959+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2960+ *)
2961+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
2962+ esac
2963+fi
2964+# Use eval to expand $SHELL
2965+if eval "$MISSING --run true"; then
2966+ am_missing_run="$MISSING --run "
2967+else
2968+ am_missing_run=
2969+ AC_MSG_WARN([`missing' script is too old or missing])
2970+fi
2971+])
2972+
2973+# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2974+#
2975+# This file is free software; the Free Software Foundation
2976+# gives unlimited permission to copy and/or distribute it,
2977+# with or without modifications, as long as this notice is preserved.
2978+
2979+# AM_PROG_MKDIR_P
2980+# ---------------
2981+# Check for `mkdir -p'.
2982+AC_DEFUN([AM_PROG_MKDIR_P],
2983+[AC_PREREQ([2.60])dnl
2984+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
2985+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
2986+dnl while keeping a definition of mkdir_p for backward compatibility.
2987+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
2988+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
2989+dnl Makefile.ins that do not define MKDIR_P, so we do our own
2990+dnl adjustment using top_builddir (which is defined more often than
2991+dnl MKDIR_P).
2992+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
2993+case $mkdir_p in
2994+ [[\\/$]]* | ?:[[\\/]]*) ;;
2995+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2996+esac
2997+])
2998+
2999+# Helper functions for option handling. -*- Autoconf -*-
3000+
3001+# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
3002+#
3003+# This file is free software; the Free Software Foundation
3004+# gives unlimited permission to copy and/or distribute it,
3005+# with or without modifications, as long as this notice is preserved.
3006+
3007+# serial 4
3008+
3009+# _AM_MANGLE_OPTION(NAME)
3010+# -----------------------
3011+AC_DEFUN([_AM_MANGLE_OPTION],
3012+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
3013+
3014+# _AM_SET_OPTION(NAME)
3015+# ------------------------------
3016+# Set option NAME. Presently that only means defining a flag for this option.
3017+AC_DEFUN([_AM_SET_OPTION],
3018+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
3019+
3020+# _AM_SET_OPTIONS(OPTIONS)
3021+# ----------------------------------
3022+# OPTIONS is a space-separated list of Automake options.
3023+AC_DEFUN([_AM_SET_OPTIONS],
3024+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
3025+
3026+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
3027+# -------------------------------------------
3028+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3029+AC_DEFUN([_AM_IF_OPTION],
3030+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
3031+
3032+# Check to make sure that the build environment is sane. -*- Autoconf -*-
3033+
3034+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
3035+# Free Software Foundation, Inc.
3036+#
3037+# This file is free software; the Free Software Foundation
3038+# gives unlimited permission to copy and/or distribute it,
3039+# with or without modifications, as long as this notice is preserved.
3040+
3041+# serial 5
3042+
3043+# AM_SANITY_CHECK
3044+# ---------------
3045+AC_DEFUN([AM_SANITY_CHECK],
3046+[AC_MSG_CHECKING([whether build environment is sane])
3047+# Just in case
3048+sleep 1
3049+echo timestamp > conftest.file
3050+# Reject unsafe characters in $srcdir or the absolute working directory
3051+# name. Accept space and tab only in the latter.
3052+am_lf='
3053+'
3054+case `pwd` in
3055+ *[[\\\"\#\$\&\'\`$am_lf]]*)
3056+ AC_MSG_ERROR([unsafe absolute working directory name]);;
3057+esac
3058+case $srcdir in
3059+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
3060+ AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
3061+esac
3062+
3063+# Do `set' in a subshell so we don't clobber the current shell's
3064+# arguments. Must try -L first in case configure is actually a
3065+# symlink; some systems play weird games with the mod time of symlinks
3066+# (eg FreeBSD returns the mod time of the symlink's containing
3067+# directory).
3068+if (
3069+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3070+ if test "$[*]" = "X"; then
3071+ # -L didn't work.
3072+ set X `ls -t "$srcdir/configure" conftest.file`
3073+ fi
3074+ rm -f conftest.file
3075+ if test "$[*]" != "X $srcdir/configure conftest.file" \
3076+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
3077+
3078+ # If neither matched, then we have a broken ls. This can happen
3079+ # if, for instance, CONFIG_SHELL is bash and it inherits a
3080+ # broken ls alias from the environment. This has actually
3081+ # happened. Such a system could not be considered "sane".
3082+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
3083+alias in your environment])
3084+ fi
3085+
3086+ test "$[2]" = conftest.file
3087+ )
3088+then
3089+ # Ok.
3090+ :
3091+else
3092+ AC_MSG_ERROR([newly created file is older than distributed files!
3093+Check your system clock])
3094+fi
3095+AC_MSG_RESULT(yes)])
3096+
3097+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
3098+#
3099+# This file is free software; the Free Software Foundation
3100+# gives unlimited permission to copy and/or distribute it,
3101+# with or without modifications, as long as this notice is preserved.
3102+
3103+# AM_PROG_INSTALL_STRIP
3104+# ---------------------
3105+# One issue with vendor `install' (even GNU) is that you can't
3106+# specify the program used to strip binaries. This is especially
3107+# annoying in cross-compiling environments, where the build's strip
3108+# is unlikely to handle the host's binaries.
3109+# Fortunately install-sh will honor a STRIPPROG variable, so we
3110+# always use install-sh in `make install-strip', and initialize
3111+# STRIPPROG with the value of the STRIP variable (set by the user).
3112+AC_DEFUN([AM_PROG_INSTALL_STRIP],
3113+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
3114+# Installed binaries are usually stripped using `strip' when the user
3115+# run `make install-strip'. However `strip' might not be the right
3116+# tool to use in cross-compilation environments, therefore Automake
3117+# will honor the `STRIP' environment variable to overrule this program.
3118+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
3119+if test "$cross_compiling" != no; then
3120+ AC_CHECK_TOOL([STRIP], [strip], :)
3121+fi
3122+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3123+AC_SUBST([INSTALL_STRIP_PROGRAM])])
3124+
3125+# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
3126+#
3127+# This file is free software; the Free Software Foundation
3128+# gives unlimited permission to copy and/or distribute it,
3129+# with or without modifications, as long as this notice is preserved.
3130+
3131+# serial 2
3132+
3133+# _AM_SUBST_NOTMAKE(VARIABLE)
3134+# ---------------------------
3135+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
3136+# This macro is traced by Automake.
3137+AC_DEFUN([_AM_SUBST_NOTMAKE])
3138+
3139+# AM_SUBST_NOTMAKE(VARIABLE)
3140+# ---------------------------
3141+# Public sister of _AM_SUBST_NOTMAKE.
3142+AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
3143+
3144+# Check how to create a tarball. -*- Autoconf -*-
3145+
3146+# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
3147+#
3148+# This file is free software; the Free Software Foundation
3149+# gives unlimited permission to copy and/or distribute it,
3150+# with or without modifications, as long as this notice is preserved.
3151+
3152+# serial 2
3153+
3154+# _AM_PROG_TAR(FORMAT)
3155+# --------------------
3156+# Check how to create a tarball in format FORMAT.
3157+# FORMAT should be one of `v7', `ustar', or `pax'.
3158+#
3159+# Substitute a variable $(am__tar) that is a command
3160+# writing to stdout a FORMAT-tarball containing the directory
3161+# $tardir.
3162+# tardir=directory && $(am__tar) > result.tar
3163+#
3164+# Substitute a variable $(am__untar) that extract such
3165+# a tarball read from stdin.
3166+# $(am__untar) < result.tar
3167+AC_DEFUN([_AM_PROG_TAR],
3168+[# Always define AMTAR for backward compatibility.
3169+AM_MISSING_PROG([AMTAR], [tar])
3170+m4_if([$1], [v7],
3171+ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
3172+ [m4_case([$1], [ustar],, [pax],,
3173+ [m4_fatal([Unknown tar format])])
3174+AC_MSG_CHECKING([how to create a $1 tar archive])
3175+# Loop over all known methods to create a tar archive until one works.
3176+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
3177+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
3178+# Do not fold the above two line into one, because Tru64 sh and
3179+# Solaris sh will not grok spaces in the rhs of `-'.
3180+for _am_tool in $_am_tools
3181+do
3182+ case $_am_tool in
3183+ gnutar)
3184+ for _am_tar in tar gnutar gtar;
3185+ do
3186+ AM_RUN_LOG([$_am_tar --version]) && break
3187+ done
3188+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
3189+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
3190+ am__untar="$_am_tar -xf -"
3191+ ;;
3192+ plaintar)
3193+ # Must skip GNU tar: if it does not support --format= it doesn't create
3194+ # ustar tarball either.
3195+ (tar --version) >/dev/null 2>&1 && continue
3196+ am__tar='tar chf - "$$tardir"'
3197+ am__tar_='tar chf - "$tardir"'
3198+ am__untar='tar xf -'
3199+ ;;
3200+ pax)
3201+ am__tar='pax -L -x $1 -w "$$tardir"'
3202+ am__tar_='pax -L -x $1 -w "$tardir"'
3203+ am__untar='pax -r'
3204+ ;;
3205+ cpio)
3206+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
3207+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
3208+ am__untar='cpio -i -H $1 -d'
3209+ ;;
3210+ none)
3211+ am__tar=false
3212+ am__tar_=false
3213+ am__untar=false
3214+ ;;
3215+ esac
3216+
3217+ # If the value was cached, stop now. We just wanted to have am__tar
3218+ # and am__untar set.
3219+ test -n "${am_cv_prog_tar_$1}" && break
3220+
3221+ # tar/untar a dummy directory, and stop if the command works
3222+ rm -rf conftest.dir
3223+ mkdir conftest.dir
3224+ echo GrepMe > conftest.dir/file
3225+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
3226+ rm -rf conftest.dir
3227+ if test -s conftest.tar; then
3228+ AM_RUN_LOG([$am__untar <conftest.tar])
3229+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3230+ fi
3231+done
3232+rm -rf conftest.dir
3233+
3234+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
3235+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
3236+AC_SUBST([am__tar])
3237+AC_SUBST([am__untar])
3238+]) # _AM_PROG_TAR
3239+
3240+m4_include([libtool.m4])
3241+m4_include([ltoptions.m4])
3242+m4_include([ltsugar.m4])
3243+m4_include([ltversion.m4])
3244+m4_include([lt~obsolete.m4])
3245+m4_include([acinclude.m4])
3246
3247=== added directory 'libjte/bin'
3248=== added file 'libjte/bin/jigdo-gen-md5-list'
3249--- libjte/bin/jigdo-gen-md5-list 1970-01-01 00:00:00 +0000
3250+++ libjte/bin/jigdo-gen-md5-list 2011-05-27 18:21:17 +0000
3251@@ -0,0 +1,151 @@
3252+#!/bin/sh
3253+
3254+# Copyright (c) 2010, 2011 George Danchev <danchev@spnet.net>
3255+# Copyright (c) 2010, 2011 Thomas Schmitt <scdbackup@gmx.net>
3256+# This script is distributed according to the terms of the GNU GPL v2.
3257+# This should be better rewritten in C at some future point. Ref: pwd code.
3258+
3259+# Create a list of MD5sums encoded in hexidecimal format and print to standard output
3260+
3261+# Format Description
3262+# A line in the emerging file is to be composed as follows:
3263+#
3264+# The MD5 checksum of the file content must be encoded in 32 hex digits
3265+# [0-9afAF]
3266+#
3267+# Next come two blanks.
3268+#
3269+# The byte size of the file content must be encoded in 12 decimal digits
3270+# or blanks.
3271+#
3272+# Next come two blanks.
3273+#
3274+# The rest of the line up to the newline character is a semi-literal file
3275+# address. Its basename has to be the same as the basename of the data file
3276+# when it is used as one of the input files for the jigdo file generator.
3277+
3278+# The semi-literal address and the address mapping define what will be
3279+# listed as file address in the jigdo file.
3280+# The address may bear at its start a literal text that shall be recognized by
3281+# the address mapping (e.g. -jigdo-map) of the jigdo file generator.
3282+# The rest of the address must be usable as file address in both situations:
3283+# When the jigdo file gets generated, and when the jigdo file gets read
3284+# to inflate the template file into the original payload image.
3285+# The address mappings at both occasions can be used to adapt to a change
3286+# of the absolute location of the listed files.
3287+# Between both mappings, the parent directory is represented by a symbolic
3288+# text, like "Debian:".
3289+
3290+# A simple strategy to cope with this is to write absolute paths into the
3291+# .md5 file, and to use matching absolute paths in the -jigdo-map
3292+# directives. Keep in mind that mapping is purely literal. Symbolic links
3293+# are neither resolved nor can they confuse the mapping.
3294+
3295+set -e
3296+
3297+SELF=jigdo-gen-md5-list
3298+VER=0.1
3299+
3300+OPT_ABSOLUTE=1
3301+
3302+usage() {
3303+ cat << USAGE
3304+usage: $SELF [option] DIR FILE ...
3305+ -a, --make-absolute make absolute paths, avoiding any symlinks (default)
3306+ -l, --keep-literal leave paths untouched, literally as supplied
3307+ -v, --version print version
3308+ -h, --help print help
3309+ -e, --examples print examples
3310+USAGE
3311+}
3312+
3313+examples() {
3314+ cat << EXAMPLES
3315+examples:
3316+ $SELF datadir datafile
3317+ $SELF --keep-literal datadir datafile
3318+ find . -type f | xargs $SELF
3319+ find . -exec $SELF '{}' ';'
3320+EXAMPLES
3321+}
3322+
3323+md5list() {
3324+ item="$1"
3325+ if test $OPT_ABSOLUTE -eq 1; then
3326+ dn=`dirname "$item"` # dirname
3327+ fn=`basename "$item"` # filename
3328+ od=`pwd -P` # old dir
3329+ cd "$dn" || exit 1
3330+ item=`pwd -P`/"$fn" # absolute physical file path, avoiding all symlinks
3331+ cd "$od" || exit 1
3332+ fi
3333+ MD5=`md5sum "$item" | awk '{print $1}'`
3334+ SIZ=`/usr/bin/stat -c %s "$item"`
3335+ printf '%32s %12s %s\n' "$MD5" "$SIZ" "$item"
3336+}
3337+
3338+walkdir() {
3339+ DR="$1"
3340+ for item in `find "$DR" -type f`
3341+ do
3342+ md5list "$item"
3343+ done
3344+}
3345+
3346+
3347+# main()
3348+if test "$1" = "" ; then
3349+ usage
3350+ exit 1
3351+fi
3352+
3353+case "$1" in
3354+ --make-absolute|-a)
3355+ OPT_ABSOLUTE=1;
3356+ shift;
3357+ ;;
3358+ --keep-literal|-l)
3359+ OPT_ABSOLUTE=0;
3360+ shift;
3361+ ;;
3362+ --version|-v)
3363+ printf '%s %s\n' "$SELF" "$VER"
3364+ exit 0
3365+ ;;
3366+ --help|-h)
3367+ usage
3368+ exit 0
3369+ ;;
3370+ --examples|-e)
3371+ examples
3372+ exit 0
3373+# *)
3374+# usage
3375+# exit 1
3376+# ;;
3377+esac
3378+
3379+for i in "$@"
3380+do
3381+
3382+ if test -d "$i" ; then
3383+ DR="$i"
3384+ if test $OPT_ABSOLUTE -eq 1; then
3385+ od=`pwd -P` # old dir
3386+ cd "$DR" || exit 1
3387+ DR=`pwd -P` # absolute physical dir path, avoiding all symlinks
3388+ cd "$od" || exit 1
3389+ fi
3390+ walkdir "$DR"
3391+ elif test -f "$i" ; then
3392+ FL="$i"
3393+ md5list "$FL"
3394+ else
3395+ usage
3396+ exit 1
3397+ fi;
3398+
3399+done
3400+
3401+exit 0
3402+
3403
3404=== added file 'libjte/bootstrap'
3405--- libjte/bootstrap 1970-01-01 00:00:00 +0000
3406+++ libjte/bootstrap 2011-05-27 18:21:17 +0000
3407@@ -0,0 +1,6 @@
3408+#!/bin/sh -x
3409+
3410+aclocal -I .
3411+libtoolize --copy --force
3412+autoconf
3413+automake --foreign --add-missing --copy --include-deps
3414
3415=== added file 'libjte/checksum.c'
3416--- libjte/checksum.c 1970-01-01 00:00:00 +0000
3417+++ libjte/checksum.c 2011-05-27 18:21:17 +0000
3418@@ -0,0 +1,602 @@
3419+/*
3420+ * checksum.c
3421+ *
3422+ * Copyright (c) 2008- Steve McIntyre <steve@einval.com>
3423+ *
3424+ * Implementation of a generic checksum interface, used in JTE.
3425+ *
3426+ * GNU GPL v2+
3427+ */
3428+
3429+#ifdef HAVE_CONFIG_H
3430+#include "../config.h"
3431+#endif
3432+
3433+#include <sys/types.h>
3434+#include <regex.h>
3435+#include <stdlib.h>
3436+#include <string.h>
3437+#include <errno.h>
3438+
3439+#ifdef HAVE_STDINT_H
3440+#include <stdint.h>
3441+#else
3442+#ifdef HAVE_INTTYPES_H
3443+#include <inttypes.h>
3444+#endif
3445+#endif
3446+
3447+#include "md5.h"
3448+#include "sha1.h"
3449+#include "sha256.h"
3450+#include "sha512.h"
3451+#include "checksum.h"
3452+
3453+#ifdef THREADED_CHECKSUMS
3454+#include <pthread.h>
3455+#endif
3456+
3457+static void md5_init(void *context)
3458+{
3459+ mk_MD5Init(context);
3460+}
3461+static void md5_update(void *context, unsigned char const *buf, unsigned int len)
3462+{
3463+ mk_MD5Update(context, buf, len);
3464+}
3465+static void md5_final(unsigned char *digest, void *context)
3466+{
3467+ mk_MD5Final(digest, context);
3468+}
3469+
3470+static void sha1_init(void *context)
3471+{
3472+ sha1_init_ctx(context);
3473+}
3474+static void sha1_update(void *context, unsigned char const *buf, unsigned int len)
3475+{
3476+ sha1_write(context, buf, len);
3477+}
3478+static void sha1_final(unsigned char *digest, void *context)
3479+{
3480+ sha1_finish_ctx(context);
3481+ memcpy(digest, sha1_read(context), 20);
3482+}
3483+
3484+static void sha256_init(void *context)
3485+{
3486+ sha256_init_ctx(context);
3487+}
3488+static void sha256_update(void *context, unsigned char const *buf, unsigned int len)
3489+{
3490+ sha256_process_bytes(buf, len, context);
3491+}
3492+static void sha256_final(unsigned char *digest, void *context)
3493+{
3494+ sha256_finish_ctx(context, digest);
3495+}
3496+
3497+static void sha512_init(void *context)
3498+{
3499+ sha512_init_ctx(context);
3500+}
3501+static void sha512_update(void *context, unsigned char const *buf, unsigned int len)
3502+{
3503+ sha512_process_bytes(buf, len, context);
3504+}
3505+static void sha512_final(unsigned char *digest, void *context)
3506+{
3507+ sha512_finish_ctx(context, digest);
3508+}
3509+
3510+struct checksum_details
3511+{
3512+ char *name;
3513+ char *prog;
3514+ int digest_size;
3515+ int context_size;
3516+ void (*init)(void *context);
3517+ void (*update)(void *context, unsigned char const *buf, unsigned int len);
3518+ void (*final)(unsigned char *digest, void *context);
3519+ int check_used_value;
3520+};
3521+
3522+static const struct checksum_details algorithms[] =
3523+{
3524+ {
3525+ "MD5",
3526+ "md5sum",
3527+ 16,
3528+ sizeof(struct mk_MD5Context),
3529+ md5_init,
3530+ md5_update,
3531+ md5_final,
3532+ CHECK_MD5_USED
3533+ },
3534+ {
3535+ "SHA1",
3536+ "sha1sum",
3537+ 20,
3538+ sizeof(SHA1_CONTEXT),
3539+ sha1_init,
3540+ sha1_update,
3541+ sha1_final,
3542+ CHECK_SHA1_USED
3543+ },
3544+ {
3545+ "SHA256",
3546+ "sha256sum",
3547+ 32,
3548+ sizeof(struct sha256_ctx),
3549+ sha256_init,
3550+ sha256_update,
3551+ sha256_final,
3552+ CHECK_SHA256_USED
3553+ },
3554+ {
3555+ "SHA512",
3556+ "sha512sum",
3557+ 64,
3558+ sizeof(struct sha512_ctx),
3559+ sha512_init,
3560+ sha512_update,
3561+ sha512_final,
3562+ CHECK_SHA512_USED
3563+ }
3564+};
3565+
3566+struct algo_context
3567+{
3568+ void *context;
3569+ unsigned char *digest;
3570+ int enabled;
3571+ int finalised;
3572+ char *hexdump;
3573+#ifdef THREADED_CHECKSUMS
3574+ unsigned char const *buf;
3575+ unsigned int len;
3576+ int which;
3577+ pthread_t thread;
3578+ struct _checksum_context *parent;
3579+ pthread_mutex_t start_mutex;
3580+ pthread_cond_t start_cv;
3581+#endif
3582+};
3583+
3584+struct _checksum_context
3585+{
3586+#ifdef THREADED_CHECKSUMS
3587+ unsigned int index;
3588+ unsigned int threads_running;
3589+ unsigned int threads_desired;
3590+ pthread_mutex_t done_mutex;
3591+ pthread_cond_t done_cv;
3592+#endif
3593+ char *owner;
3594+ struct algo_context algo[NUM_CHECKSUMS];
3595+};
3596+
3597+struct checksum_info *checksum_information(enum checksum_types which)
3598+{
3599+ return (struct checksum_info *)&algorithms[which];
3600+}
3601+
3602+/* Dump a buffer in hex */
3603+static void hex_dump_to_buffer(char *output_buffer, unsigned char *buf, size_t buf_size)
3604+{
3605+ unsigned int i;
3606+ char *p = output_buffer;
3607+
3608+ memset(output_buffer, 0, 1 + (2*buf_size));
3609+ for (i = 0; i < buf_size ; i++)
3610+ p += sprintf(p, "%2.2x", buf[i]);
3611+}
3612+
3613+#ifdef THREADED_CHECKSUMS
3614+static void *checksum_thread(void *arg)
3615+{
3616+ struct algo_context *a = arg;
3617+ struct _checksum_context *c = a->parent;
3618+ int num_blocks_summed = 0;
3619+
3620+ while (1)
3621+ {
3622+ /* wait to be given some work to do */
3623+ pthread_mutex_lock(&a->start_mutex);
3624+ while (a->buf == NULL)
3625+ {
3626+ pthread_cond_wait(&a->start_cv, &a->start_mutex);
3627+ }
3628+ pthread_mutex_unlock(&a->start_mutex);
3629+
3630+ /* if we're given a zero-length buffer, then that means we're
3631+ * done */
3632+ if (a->len == 0)
3633+ break;
3634+
3635+ /* actually do the checksum on the supplied buffer */
3636+ algorithms[a->which].update(a->context, a->buf, a->len);
3637+ num_blocks_summed++;
3638+ a->buf = NULL;
3639+
3640+ /* and tell the main thread that we're done with that
3641+ * buffer */
3642+ pthread_mutex_lock(&c->done_mutex);
3643+ c->threads_running--;
3644+ if (c->threads_running == 0)
3645+ pthread_cond_signal(&c->done_cv);
3646+ pthread_mutex_unlock(&c->done_mutex);
3647+ }
3648+
3649+ pthread_exit(0);
3650+}
3651+#endif
3652+
3653+checksum_context_t *checksum_init_context(int checksums, const char *owner)
3654+{
3655+ int i = 0;
3656+#ifdef THREADED_CHECKSUMS
3657+ int ret = 0;
3658+#endif
3659+
3660+ struct _checksum_context *context = calloc(1, sizeof(struct _checksum_context));
3661+
3662+ if (!context)
3663+ return NULL;
3664+
3665+ context->owner = strdup(owner);
3666+ if (!context->owner)
3667+ {
3668+ free(context);
3669+ return NULL;
3670+ }
3671+
3672+#ifdef THREADED_CHECKSUMS
3673+ pthread_mutex_init(&context->done_mutex, NULL);
3674+ pthread_cond_init(&context->done_cv, NULL);
3675+ context->index = 0;
3676+ context->threads_running = 0;
3677+ context->threads_desired = 0;
3678+
3679+ for (i = 0; i < NUM_CHECKSUMS; i++)
3680+ if ( (1 << i) & checksums)
3681+ context->threads_desired++;
3682+#endif
3683+
3684+ for (i = 0; i < NUM_CHECKSUMS; i++)
3685+ {
3686+ struct algo_context *a = &context->algo[i];
3687+ if ( (1 << i) & checksums)
3688+ {
3689+ a->context = malloc(algorithms[i].context_size);
3690+ if (!a->context)
3691+ {
3692+ checksum_free_context(context);
3693+ return NULL;
3694+ }
3695+ a->digest = malloc(algorithms[i].digest_size);
3696+ if (!a->digest)
3697+ {
3698+ checksum_free_context(context);
3699+ return NULL;
3700+ }
3701+ a->hexdump = malloc(1 + (2*algorithms[i].digest_size));
3702+ if (!a->hexdump)
3703+ {
3704+ checksum_free_context(context);
3705+ return NULL;
3706+ }
3707+ algorithms[i].init(a->context);
3708+ a->enabled = 1;
3709+ a->finalised = 0;
3710+#ifdef THREADED_CHECKSUMS
3711+ a->which = i;
3712+ a->parent = context;
3713+ a->buf = NULL;
3714+ a->len = 0;
3715+ pthread_mutex_init(&a->start_mutex, NULL);
3716+ pthread_cond_init(&a->start_cv, NULL);
3717+ ret = pthread_create(&a->thread, NULL, checksum_thread, a);
3718+ if (ret != 0)
3719+ {
3720+ /* libjte issues an own message:
3721+ fprintf(stderr, "failed to create new thread: %d\n", ret);
3722+ */
3723+ checksum_free_context(context);
3724+ return NULL;
3725+ }
3726+#endif
3727+ }
3728+ else
3729+ a->enabled = 0;
3730+ }
3731+
3732+ return context;
3733+}
3734+
3735+void checksum_free_context(checksum_context_t *context)
3736+{
3737+ int i = 0;
3738+ struct _checksum_context *c = context;
3739+
3740+ for (i = 0; i < NUM_CHECKSUMS; i++)
3741+ {
3742+ struct algo_context *a = &c->algo[i];
3743+
3744+#ifdef THREADED_CHECKSUMS
3745+ if (a->thread)
3746+ {
3747+ void *ret;
3748+ pthread_cancel(a->thread);
3749+ pthread_join(a->thread, &ret);
3750+ a->thread = 0;
3751+ }
3752+#endif
3753+ free(a->context);
3754+ free(a->digest);
3755+ free(a->hexdump);
3756+ }
3757+ free(c->owner);
3758+ free(c);
3759+}
3760+
3761+#ifdef THREADED_CHECKSUMS
3762+void checksum_update(checksum_context_t *context,
3763+ unsigned char const *buf, unsigned int len)
3764+{
3765+ int i = 0;
3766+ struct _checksum_context *c = context;
3767+
3768+ /* >>> TODO : Find out for what purpose index shall serve.
3769+ It is defined here and incremented. Not more.
3770+ */
3771+ static int index = 0;
3772+
3773+ index++;
3774+
3775+ c->threads_running = c->threads_desired;
3776+ for (i = 0; i < NUM_CHECKSUMS; i++)
3777+ {
3778+ if (c->algo[i].enabled)
3779+ {
3780+ struct algo_context *a = &c->algo[i];
3781+ pthread_mutex_lock(&a->start_mutex);
3782+ a->len = len;
3783+ a->buf = buf;
3784+ pthread_cond_signal(&a->start_cv);
3785+ pthread_mutex_unlock(&a->start_mutex);
3786+ }
3787+ }
3788+
3789+ /* Should now all be running, wait on them all to return */
3790+ pthread_mutex_lock(&c->done_mutex);
3791+ while (c->threads_running > 0)
3792+ {
3793+ pthread_cond_wait(&c->done_cv, &c->done_mutex);
3794+ }
3795+ pthread_mutex_unlock(&c->done_mutex);
3796+}
3797+
3798+#else /* THREADED_CHECKSUMS */
3799+
3800+void checksum_update(checksum_context_t *context,
3801+ unsigned char const *buf, unsigned int len)
3802+{
3803+ int i = 0;
3804+ struct _checksum_context *c = context;
3805+
3806+ for (i = 0; i < NUM_CHECKSUMS; i++)
3807+ {
3808+ if (c->algo[i].enabled)
3809+ {
3810+ struct algo_context *a = &c->algo[i];
3811+ algorithms[i].update(a->context, buf, len);
3812+ }
3813+ }
3814+}
3815+
3816+#endif /* THREADED_CHECKSUMS */
3817+
3818+void checksum_final(checksum_context_t *context)
3819+{
3820+ int i = 0;
3821+ struct _checksum_context *c = context;
3822+
3823+#ifdef THREADED_CHECKSUMS
3824+ /* Clean up the threads */
3825+ c->threads_running = c->threads_desired;
3826+
3827+ for (i = 0; i < NUM_CHECKSUMS; i++)
3828+ {
3829+ if (c->algo[i].enabled)
3830+ {
3831+ void *ret = 0;
3832+ struct algo_context *a = &c->algo[i];
3833+
3834+ pthread_mutex_lock(&a->start_mutex);
3835+ a->len = 0;
3836+ a->buf = (unsigned char *)-1;
3837+ pthread_cond_signal(&a->start_cv);
3838+ pthread_mutex_unlock(&a->start_mutex);
3839+ pthread_join(a->thread, &ret);
3840+ a->thread = 0;
3841+ }
3842+ }
3843+#endif
3844+
3845+ for (i = 0; i < NUM_CHECKSUMS; i++)
3846+ {
3847+ struct algo_context *a = &c->algo[i];
3848+ if (a->enabled)
3849+ {
3850+ algorithms[i].final(a->digest, a->context);
3851+ hex_dump_to_buffer(a->hexdump, a->digest, algorithms[i].digest_size);
3852+ a->finalised = 1;
3853+ }
3854+ }
3855+}
3856+
3857+void checksum_copy(checksum_context_t *context,
3858+ enum checksum_types which,
3859+ unsigned char *digest)
3860+{
3861+ struct _checksum_context *c = context;
3862+
3863+ if (c->algo[which].enabled)
3864+ {
3865+ if (c->algo[which].finalised)
3866+ memcpy(digest, c->algo[which].digest, algorithms[which].digest_size);
3867+ else
3868+ memset(digest, 0, algorithms[which].digest_size);
3869+ }
3870+
3871+ else
3872+ /* >>> TODO : ??? Can this happen ? Why print and then go on ? */
3873+ fprintf(stderr, "Asked for %s checksum, not enabled!\n",
3874+ algorithms[which].name);
3875+}
3876+
3877+const char *checksum_hex(checksum_context_t *context,
3878+ enum checksum_types which)
3879+{
3880+ struct _checksum_context *c = context;
3881+
3882+ if (c->algo[which].enabled && c->algo[which].finalised)
3883+ return c->algo[which].hexdump;
3884+
3885+ /* else */
3886+ return NULL;
3887+}
3888+
3889+
3890+/* Parse the command line options for which checksums to use */
3891+int parse_checksum_algo(char *arg, int *algo)
3892+{
3893+ int i = 0;
3894+ char *start_ptr = arg;
3895+ int len = 0;
3896+
3897+ (*algo) |= CHECK_MD5_USED;
3898+
3899+ if (!strcasecmp(arg, "all"))
3900+ {
3901+ *algo = 0xFF;
3902+ return 0;
3903+ }
3904+
3905+ while (*start_ptr != 0)
3906+ {
3907+ int match = 0;
3908+ len = 0;
3909+
3910+ while (start_ptr[len] != ',' && start_ptr[len] != 0)
3911+ len++;
3912+
3913+ if (len)
3914+ {
3915+ for (i = 0; i < NUM_CHECKSUMS; i++)
3916+ {
3917+ if (len == strlen(algorithms[i].name) &&
3918+ !strncasecmp(start_ptr, algorithms[i].name, len))
3919+ {
3920+ match = 1;
3921+ *algo |= algorithms[i].check_used_value;
3922+ }
3923+ }
3924+
3925+ if (!match)
3926+ {
3927+ return EINVAL;
3928+ }
3929+ }
3930+
3931+ if (start_ptr[len] == 0)
3932+ break;
3933+
3934+ start_ptr += len + 1;
3935+ }
3936+
3937+ return 0;
3938+}
3939+
3940+#ifdef CHECKSUM_SELF_TEST
3941+#include <sys/types.h>
3942+#include <sys/stat.h>
3943+#include <fcntl.h>
3944+#include <unistd.h>
3945+#include <errno.h>
3946+#include <stdlib.h>
3947+
3948+int main(int argc, char **argv)
3949+{
3950+ char buf[1024];
3951+ int fd = -1;
3952+ char *filename;
3953+ int err = 0;
3954+ static checksum_context_t *test_context = NULL;
3955+ int i = 0;
3956+
3957+ if (argc != 2)
3958+ {
3959+ fprintf(stderr, "Need a filename to act on!\n");
3960+ return 1;
3961+ }
3962+
3963+ filename = argv[1];
3964+ fd = open(filename, O_RDONLY);
3965+ if (fd < 0)
3966+ {
3967+ fprintf(stderr, "Unable to open file %s, errno %d\n", filename, errno);
3968+ return 1;
3969+ }
3970+
3971+ test_context = checksum_init_context(CHECK_ALL_USED, "test");
3972+ if (!test_context)
3973+ {
3974+ fprintf(stderr, "Unable to initialise checksum context\n");
3975+ close(fd);
3976+ return 1;
3977+ }
3978+
3979+ while(1)
3980+ {
3981+ err = read(fd, buf, sizeof(buf));
3982+ if (err < 0)
3983+ {
3984+ fprintf(stderr, "Failed to read from file, errno %d\n", errno);
3985+ return 1;
3986+ }
3987+
3988+ if (err == 0)
3989+ break; /* EOF */
3990+
3991+ /* else */
3992+ checksum_update(test_context, buf, err);
3993+ }
3994+ close(fd);
3995+ checksum_final(test_context);
3996+
3997+ for (i = 0; i < NUM_CHECKSUMS; i++)
3998+ {
3999+ struct checksum_info *info;
4000+ unsigned char r[64];
4001+ int j = 0;
4002+
4003+ info = checksum_information(i);
4004+ memset(r, 0, sizeof(r));
4005+
4006+ checksum_copy(test_context, i, r);
4007+
4008+ printf("OUR %s:\n", info->name);
4009+ for (j = 0; j < info->digest_size; j++)
4010+ printf("%2.2x", r[j]);
4011+ printf(" %s\n", filename);
4012+ printf("system checksum program (%s):\n", info->prog);
4013+ sprintf(buf, "%s %s", info->prog, filename);
4014+ system(buf);
4015+ printf("\n");
4016+ }
4017+ return 0;
4018+}
4019+#endif /* CHECKSUM_SELF_TEST */
4020+
4021
4022=== added file 'libjte/checksum.h'
4023--- libjte/checksum.h 1970-01-01 00:00:00 +0000
4024+++ libjte/checksum.h 2011-05-27 18:21:17 +0000
4025@@ -0,0 +1,80 @@
4026+/*
4027+ * checksum.h
4028+ *
4029+ * Copyright (c) 2008- Steve McIntyre <steve@einval.com>
4030+ *
4031+ * Definitions and prototypes for a generic checksum interface, used
4032+ * in JTE. Inspired heavily by the interface to the MD5 code we're
4033+ * using already.
4034+ *
4035+ * GNU GPL v2
4036+ */
4037+
4038+#ifndef _JTE_CHECKSUM_H_
4039+#define _JTE_CHECKSUM_H_
4040+
4041+enum checksum_types
4042+{
4043+ CHECK_MD5 = 0,
4044+ CHECK_SHA1,
4045+ CHECK_SHA256,
4046+ CHECK_SHA512,
4047+ NUM_CHECKSUMS
4048+};
4049+
4050+#define CHECK_MD5_USED (1 << CHECK_MD5)
4051+#define CHECK_SHA1_USED (1 << CHECK_SHA1)
4052+#define CHECK_SHA256_USED (1 << CHECK_SHA256)
4053+#define CHECK_SHA512_USED (1 << CHECK_SHA512)
4054+#define CHECK_ALL_USED 0xFFFFFFFF
4055+
4056+typedef void checksum_context_t;
4057+
4058+struct checksum_info
4059+{
4060+ char *name;
4061+ char *prog;
4062+ int digest_size;
4063+};
4064+
4065+/* Ask the library for information about a particular checksum
4066+ * algorithm. Returns a pointer to internal memory - DO NOT
4067+ * MODIFY/FREE! */
4068+struct checksum_info *checksum_information(enum checksum_types which);
4069+
4070+/* Allocate / initialise a context for the chosen checksums. OR
4071+ * together the desired checksums as the parameter */
4072+checksum_context_t *checksum_init_context(int checksums, const char *owner);
4073+
4074+/* Cleanup and free a context when it's finished with */
4075+void checksum_free_context(checksum_context_t *context);
4076+
4077+/* Pass a new buffer full of data through the checksum code */
4078+void checksum_update(checksum_context_t *context,
4079+ unsigned char const *buf,
4080+ unsigned int len);
4081+
4082+/* Finish the current set of checksums */
4083+void checksum_final(checksum_context_t *context);
4084+
4085+/* Extract a particular algorithm's checksum once checksum_final() has
4086+ * been called. Use the details in checksum_information() above first
4087+ * to see how big the digest will be. Only valid once checksum_final()
4088+ * has been called, otherwise the digest returned will be all
4089+ * zeroes. */
4090+void checksum_copy(checksum_context_t *context,
4091+ enum checksum_types which,
4092+ unsigned char *digest);
4093+
4094+/* Helper function: return a pointer to a string containing the ASCII
4095+ * hexadecimal dump of a checksum. Only valid once checksum_final()
4096+ * has been called, otherwise will return NULL */
4097+const char * checksum_hex(checksum_context_t *context,
4098+ enum checksum_types which);
4099+
4100+
4101+extern int parse_checksum_algo(char *arg,
4102+ int *algo);
4103+
4104+#endif
4105+/* _JTE_CHECKSUM_H_ */
4106
4107=== added file 'libjte/compile'
4108--- libjte/compile 1970-01-01 00:00:00 +0000
4109+++ libjte/compile 2011-05-27 18:21:17 +0000
4110@@ -0,0 +1,143 @@
4111+#! /bin/sh
4112+# Wrapper for compilers which do not understand `-c -o'.
4113+
4114+scriptversion=2009-10-06.20; # UTC
4115+
4116+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
4117+# Foundation, Inc.
4118+# Written by Tom Tromey <tromey@cygnus.com>.
4119+#
4120+# This program is free software; you can redistribute it and/or modify
4121+# it under the terms of the GNU General Public License as published by
4122+# the Free Software Foundation; either version 2, or (at your option)
4123+# any later version.
4124+#
4125+# This program is distributed in the hope that it will be useful,
4126+# but WITHOUT ANY WARRANTY; without even the implied warranty of
4127+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4128+# GNU General Public License for more details.
4129+#
4130+# You should have received a copy of the GNU General Public License
4131+# along with this program. If not, see <http://www.gnu.org/licenses/>.
4132+
4133+# As a special exception to the GNU General Public License, if you
4134+# distribute this file as part of a program that contains a
4135+# configuration script generated by Autoconf, you may include it under
4136+# the same distribution terms that you use for the rest of that program.
4137+
4138+# This file is maintained in Automake, please report
4139+# bugs to <bug-automake@gnu.org> or send patches to
4140+# <automake-patches@gnu.org>.
4141+
4142+case $1 in
4143+ '')
4144+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
4145+ exit 1;
4146+ ;;
4147+ -h | --h*)
4148+ cat <<\EOF
4149+Usage: compile [--help] [--version] PROGRAM [ARGS]
4150+
4151+Wrapper for compilers which do not understand `-c -o'.
4152+Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
4153+arguments, and rename the output as expected.
4154+
4155+If you are trying to build a whole package this is not the
4156+right script to run: please start by reading the file `INSTALL'.
4157+
4158+Report bugs to <bug-automake@gnu.org>.
4159+EOF
4160+ exit $?
4161+ ;;
4162+ -v | --v*)
4163+ echo "compile $scriptversion"
4164+ exit $?
4165+ ;;
4166+esac
4167+
4168+ofile=
4169+cfile=
4170+eat=
4171+
4172+for arg
4173+do
4174+ if test -n "$eat"; then
4175+ eat=
4176+ else
4177+ case $1 in
4178+ -o)
4179+ # configure might choose to run compile as `compile cc -o foo foo.c'.
4180+ # So we strip `-o arg' only if arg is an object.
4181+ eat=1
4182+ case $2 in
4183+ *.o | *.obj)
4184+ ofile=$2
4185+ ;;
4186+ *)
4187+ set x "$@" -o "$2"
4188+ shift
4189+ ;;
4190+ esac
4191+ ;;
4192+ *.c)
4193+ cfile=$1
4194+ set x "$@" "$1"
4195+ shift
4196+ ;;
4197+ *)
4198+ set x "$@" "$1"
4199+ shift
4200+ ;;
4201+ esac
4202+ fi
4203+ shift
4204+done
4205+
4206+if test -z "$ofile" || test -z "$cfile"; then
4207+ # If no `-o' option was seen then we might have been invoked from a
4208+ # pattern rule where we don't need one. That is ok -- this is a
4209+ # normal compilation that the losing compiler can handle. If no
4210+ # `.c' file was seen then we are probably linking. That is also
4211+ # ok.
4212+ exec "$@"
4213+fi
4214+
4215+# Name of file we expect compiler to create.
4216+cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
4217+
4218+# Create the lock directory.
4219+# Note: use `[/\\:.-]' here to ensure that we don't use the same name
4220+# that we are using for the .o file. Also, base the name on the expected
4221+# object file name, since that is what matters with a parallel build.
4222+lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
4223+while true; do
4224+ if mkdir "$lockdir" >/dev/null 2>&1; then
4225+ break
4226+ fi
4227+ sleep 1
4228+done
4229+# FIXME: race condition here if user kills between mkdir and trap.
4230+trap "rmdir '$lockdir'; exit 1" 1 2 15
4231+
4232+# Run the compile.
4233+"$@"
4234+ret=$?
4235+
4236+if test -f "$cofile"; then
4237+ test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
4238+elif test -f "${cofile}bj"; then
4239+ test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
4240+fi
4241+
4242+rmdir "$lockdir"
4243+exit $ret
4244+
4245+# Local Variables:
4246+# mode: shell-script
4247+# sh-indentation: 2
4248+# eval: (add-hook 'write-file-hooks 'time-stamp)
4249+# time-stamp-start: "scriptversion="
4250+# time-stamp-format: "%:y-%02m-%02d.%02H"
4251+# time-stamp-time-zone: "UTC"
4252+# time-stamp-end: "; # UTC"
4253+# End:
4254
4255=== added file 'libjte/config.guess'
4256--- libjte/config.guess 1970-01-01 00:00:00 +0000
4257+++ libjte/config.guess 2011-05-27 18:21:17 +0000
4258@@ -0,0 +1,1502 @@
4259+#! /bin/sh
4260+# Attempt to guess a canonical system name.
4261+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4262+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4263+# Free Software Foundation, Inc.
4264+
4265+timestamp='2009-12-30'
4266+
4267+# This file is free software; you can redistribute it and/or modify it
4268+# under the terms of the GNU General Public License as published by
4269+# the Free Software Foundation; either version 2 of the License, or
4270+# (at your option) any later version.
4271+#
4272+# This program is distributed in the hope that it will be useful, but
4273+# WITHOUT ANY WARRANTY; without even the implied warranty of
4274+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4275+# General Public License for more details.
4276+#
4277+# You should have received a copy of the GNU General Public License
4278+# along with this program; if not, write to the Free Software
4279+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
4280+# 02110-1301, USA.
4281+#
4282+# As a special exception to the GNU General Public License, if you
4283+# distribute this file as part of a program that contains a
4284+# configuration script generated by Autoconf, you may include it under
4285+# the same distribution terms that you use for the rest of that program.
4286+
4287+
4288+# Originally written by Per Bothner. Please send patches (context
4289+# diff format) to <config-patches@gnu.org> and include a ChangeLog
4290+# entry.
4291+#
4292+# This script attempts to guess a canonical system name similar to
4293+# config.sub. If it succeeds, it prints the system name on stdout, and
4294+# exits with 0. Otherwise, it exits with 1.
4295+#
4296+# You can get the latest version of this script from:
4297+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
4298+
4299+me=`echo "$0" | sed -e 's,.*/,,'`
4300+
4301+usage="\
4302+Usage: $0 [OPTION]
4303+
4304+Output the configuration name of the system \`$me' is run on.
4305+
4306+Operation modes:
4307+ -h, --help print this help, then exit
4308+ -t, --time-stamp print date of last modification, then exit
4309+ -v, --version print version number, then exit
4310+
4311+Report bugs and patches to <config-patches@gnu.org>."
4312+
4313+version="\
4314+GNU config.guess ($timestamp)
4315+
4316+Originally written by Per Bothner.
4317+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
4318+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
4319+Software Foundation, Inc.
4320+
4321+This is free software; see the source for copying conditions. There is NO
4322+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4323+
4324+help="
4325+Try \`$me --help' for more information."
4326+
4327+# Parse command line
4328+while test $# -gt 0 ; do
4329+ case $1 in
4330+ --time-stamp | --time* | -t )
4331+ echo "$timestamp" ; exit ;;
4332+ --version | -v )
4333+ echo "$version" ; exit ;;
4334+ --help | --h* | -h )
4335+ echo "$usage"; exit ;;
4336+ -- ) # Stop option processing
4337+ shift; break ;;
4338+ - ) # Use stdin as input.
4339+ break ;;
4340+ -* )
4341+ echo "$me: invalid option $1$help" >&2
4342+ exit 1 ;;
4343+ * )
4344+ break ;;
4345+ esac
4346+done
4347+
4348+if test $# != 0; then
4349+ echo "$me: too many arguments$help" >&2
4350+ exit 1
4351+fi
4352+
4353+trap 'exit 1' 1 2 15
4354+
4355+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
4356+# compiler to aid in system detection is discouraged as it requires
4357+# temporary files to be created and, as you can see below, it is a
4358+# headache to deal with in a portable fashion.
4359+
4360+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
4361+# use `HOST_CC' if defined, but it is deprecated.
4362+
4363+# Portable tmp directory creation inspired by the Autoconf team.
4364+
4365+set_cc_for_build='
4366+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
4367+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
4368+: ${TMPDIR=/tmp} ;
4369+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
4370+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
4371+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
4372+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
4373+dummy=$tmp/dummy ;
4374+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
4375+case $CC_FOR_BUILD,$HOST_CC,$CC in
4376+ ,,) echo "int x;" > $dummy.c ;
4377+ for c in cc gcc c89 c99 ; do
4378+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
4379+ CC_FOR_BUILD="$c"; break ;
4380+ fi ;
4381+ done ;
4382+ if test x"$CC_FOR_BUILD" = x ; then
4383+ CC_FOR_BUILD=no_compiler_found ;
4384+ fi
4385+ ;;
4386+ ,,*) CC_FOR_BUILD=$CC ;;
4387+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
4388+esac ; set_cc_for_build= ;'
4389+
4390+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
4391+# (ghazi@noc.rutgers.edu 1994-08-24)
4392+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
4393+ PATH=$PATH:/.attbin ; export PATH
4394+fi
4395+
4396+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
4397+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
4398+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
4399+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
4400+
4401+# Note: order is significant - the case branches are not exclusive.
4402+
4403+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4404+ *:NetBSD:*:*)
4405+ # NetBSD (nbsd) targets should (where applicable) match one or
4406+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
4407+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
4408+ # switched to ELF, *-*-netbsd* would select the old
4409+ # object file format. This provides both forward
4410+ # compatibility and a consistent mechanism for selecting the
4411+ # object file format.
4412+ #
4413+ # Note: NetBSD doesn't particularly care about the vendor
4414+ # portion of the name. We always set it to "unknown".
4415+ sysctl="sysctl -n hw.machine_arch"
4416+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
4417+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
4418+ case "${UNAME_MACHINE_ARCH}" in
4419+ armeb) machine=armeb-unknown ;;
4420+ arm*) machine=arm-unknown ;;
4421+ sh3el) machine=shl-unknown ;;
4422+ sh3eb) machine=sh-unknown ;;
4423+ sh5el) machine=sh5le-unknown ;;
4424+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
4425+ esac
4426+ # The Operating System including object format, if it has switched
4427+ # to ELF recently, or will in the future.
4428+ case "${UNAME_MACHINE_ARCH}" in
4429+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
4430+ eval $set_cc_for_build
4431+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
4432+ | grep -q __ELF__
4433+ then
4434+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
4435+ # Return netbsd for either. FIX?
4436+ os=netbsd
4437+ else
4438+ os=netbsdelf
4439+ fi
4440+ ;;
4441+ *)
4442+ os=netbsd
4443+ ;;
4444+ esac
4445+ # The OS release
4446+ # Debian GNU/NetBSD machines have a different userland, and
4447+ # thus, need a distinct triplet. However, they do not need
4448+ # kernel version information, so it can be replaced with a
4449+ # suitable tag, in the style of linux-gnu.
4450+ case "${UNAME_VERSION}" in
4451+ Debian*)
4452+ release='-gnu'
4453+ ;;
4454+ *)
4455+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
4456+ ;;
4457+ esac
4458+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
4459+ # contains redundant information, the shorter form:
4460+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
4461+ echo "${machine}-${os}${release}"
4462+ exit ;;
4463+ *:OpenBSD:*:*)
4464+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
4465+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
4466+ exit ;;
4467+ *:ekkoBSD:*:*)
4468+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
4469+ exit ;;
4470+ *:SolidBSD:*:*)
4471+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
4472+ exit ;;
4473+ macppc:MirBSD:*:*)
4474+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
4475+ exit ;;
4476+ *:MirBSD:*:*)
4477+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
4478+ exit ;;
4479+ alpha:OSF1:*:*)
4480+ case $UNAME_RELEASE in
4481+ *4.0)
4482+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
4483+ ;;
4484+ *5.*)
4485+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
4486+ ;;
4487+ esac
4488+ # According to Compaq, /usr/sbin/psrinfo has been available on
4489+ # OSF/1 and Tru64 systems produced since 1995. I hope that
4490+ # covers most systems running today. This code pipes the CPU
4491+ # types through head -n 1, so we only detect the type of CPU 0.
4492+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
4493+ case "$ALPHA_CPU_TYPE" in
4494+ "EV4 (21064)")
4495+ UNAME_MACHINE="alpha" ;;
4496+ "EV4.5 (21064)")
4497+ UNAME_MACHINE="alpha" ;;
4498+ "LCA4 (21066/21068)")
4499+ UNAME_MACHINE="alpha" ;;
4500+ "EV5 (21164)")
4501+ UNAME_MACHINE="alphaev5" ;;
4502+ "EV5.6 (21164A)")
4503+ UNAME_MACHINE="alphaev56" ;;
4504+ "EV5.6 (21164PC)")
4505+ UNAME_MACHINE="alphapca56" ;;
4506+ "EV5.7 (21164PC)")
4507+ UNAME_MACHINE="alphapca57" ;;
4508+ "EV6 (21264)")
4509+ UNAME_MACHINE="alphaev6" ;;
4510+ "EV6.7 (21264A)")
4511+ UNAME_MACHINE="alphaev67" ;;
4512+ "EV6.8CB (21264C)")
4513+ UNAME_MACHINE="alphaev68" ;;
4514+ "EV6.8AL (21264B)")
4515+ UNAME_MACHINE="alphaev68" ;;
4516+ "EV6.8CX (21264D)")
4517+ UNAME_MACHINE="alphaev68" ;;
4518+ "EV6.9A (21264/EV69A)")
4519+ UNAME_MACHINE="alphaev69" ;;
4520+ "EV7 (21364)")
4521+ UNAME_MACHINE="alphaev7" ;;
4522+ "EV7.9 (21364A)")
4523+ UNAME_MACHINE="alphaev79" ;;
4524+ esac
4525+ # A Pn.n version is a patched version.
4526+ # A Vn.n version is a released version.
4527+ # A Tn.n version is a released field test version.
4528+ # A Xn.n version is an unreleased experimental baselevel.
4529+ # 1.2 uses "1.2" for uname -r.
4530+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4531+ exit ;;
4532+ Alpha\ *:Windows_NT*:*)
4533+ # How do we know it's Interix rather than the generic POSIX subsystem?
4534+ # Should we change UNAME_MACHINE based on the output of uname instead
4535+ # of the specific Alpha model?
4536+ echo alpha-pc-interix
4537+ exit ;;
4538+ 21064:Windows_NT:50:3)
4539+ echo alpha-dec-winnt3.5
4540+ exit ;;
4541+ Amiga*:UNIX_System_V:4.0:*)
4542+ echo m68k-unknown-sysv4
4543+ exit ;;
4544+ *:[Aa]miga[Oo][Ss]:*:*)
4545+ echo ${UNAME_MACHINE}-unknown-amigaos
4546+ exit ;;
4547+ *:[Mm]orph[Oo][Ss]:*:*)
4548+ echo ${UNAME_MACHINE}-unknown-morphos
4549+ exit ;;
4550+ *:OS/390:*:*)
4551+ echo i370-ibm-openedition
4552+ exit ;;
4553+ *:z/VM:*:*)
4554+ echo s390-ibm-zvmoe
4555+ exit ;;
4556+ *:OS400:*:*)
4557+ echo powerpc-ibm-os400
4558+ exit ;;
4559+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
4560+ echo arm-acorn-riscix${UNAME_RELEASE}
4561+ exit ;;
4562+ arm:riscos:*:*|arm:RISCOS:*:*)
4563+ echo arm-unknown-riscos
4564+ exit ;;
4565+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
4566+ echo hppa1.1-hitachi-hiuxmpp
4567+ exit ;;
4568+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
4569+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
4570+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
4571+ echo pyramid-pyramid-sysv3
4572+ else
4573+ echo pyramid-pyramid-bsd
4574+ fi
4575+ exit ;;
4576+ NILE*:*:*:dcosx)
4577+ echo pyramid-pyramid-svr4
4578+ exit ;;
4579+ DRS?6000:unix:4.0:6*)
4580+ echo sparc-icl-nx6
4581+ exit ;;
4582+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
4583+ case `/usr/bin/uname -p` in
4584+ sparc) echo sparc-icl-nx7; exit ;;
4585+ esac ;;
4586+ s390x:SunOS:*:*)
4587+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4588+ exit ;;
4589+ sun4H:SunOS:5.*:*)
4590+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4591+ exit ;;
4592+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
4593+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4594+ exit ;;
4595+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
4596+ echo i386-pc-auroraux${UNAME_RELEASE}
4597+ exit ;;
4598+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
4599+ eval $set_cc_for_build
4600+ SUN_ARCH="i386"
4601+ # If there is a compiler, see if it is configured for 64-bit objects.
4602+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
4603+ # This test works for both compilers.
4604+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
4605+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
4606+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
4607+ grep IS_64BIT_ARCH >/dev/null
4608+ then
4609+ SUN_ARCH="x86_64"
4610+ fi
4611+ fi
4612+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4613+ exit ;;
4614+ sun4*:SunOS:6*:*)
4615+ # According to config.sub, this is the proper way to canonicalize
4616+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
4617+ # it's likely to be more like Solaris than SunOS4.
4618+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4619+ exit ;;
4620+ sun4*:SunOS:*:*)
4621+ case "`/usr/bin/arch -k`" in
4622+ Series*|S4*)
4623+ UNAME_RELEASE=`uname -v`
4624+ ;;
4625+ esac
4626+ # Japanese Language versions have a version number like `4.1.3-JL'.
4627+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
4628+ exit ;;
4629+ sun3*:SunOS:*:*)
4630+ echo m68k-sun-sunos${UNAME_RELEASE}
4631+ exit ;;
4632+ sun*:*:4.2BSD:*)
4633+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
4634+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
4635+ case "`/bin/arch`" in
4636+ sun3)
4637+ echo m68k-sun-sunos${UNAME_RELEASE}
4638+ ;;
4639+ sun4)
4640+ echo sparc-sun-sunos${UNAME_RELEASE}
4641+ ;;
4642+ esac
4643+ exit ;;
4644+ aushp:SunOS:*:*)
4645+ echo sparc-auspex-sunos${UNAME_RELEASE}
4646+ exit ;;
4647+ # The situation for MiNT is a little confusing. The machine name
4648+ # can be virtually everything (everything which is not
4649+ # "atarist" or "atariste" at least should have a processor
4650+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
4651+ # to the lowercase version "mint" (or "freemint"). Finally
4652+ # the system name "TOS" denotes a system which is actually not
4653+ # MiNT. But MiNT is downward compatible to TOS, so this should
4654+ # be no problem.
4655+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
4656+ echo m68k-atari-mint${UNAME_RELEASE}
4657+ exit ;;
4658+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
4659+ echo m68k-atari-mint${UNAME_RELEASE}
4660+ exit ;;
4661+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
4662+ echo m68k-atari-mint${UNAME_RELEASE}
4663+ exit ;;
4664+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
4665+ echo m68k-milan-mint${UNAME_RELEASE}
4666+ exit ;;
4667+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
4668+ echo m68k-hades-mint${UNAME_RELEASE}
4669+ exit ;;
4670+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
4671+ echo m68k-unknown-mint${UNAME_RELEASE}
4672+ exit ;;
4673+ m68k:machten:*:*)
4674+ echo m68k-apple-machten${UNAME_RELEASE}
4675+ exit ;;
4676+ powerpc:machten:*:*)
4677+ echo powerpc-apple-machten${UNAME_RELEASE}
4678+ exit ;;
4679+ RISC*:Mach:*:*)
4680+ echo mips-dec-mach_bsd4.3
4681+ exit ;;
4682+ RISC*:ULTRIX:*:*)
4683+ echo mips-dec-ultrix${UNAME_RELEASE}
4684+ exit ;;
4685+ VAX*:ULTRIX*:*:*)
4686+ echo vax-dec-ultrix${UNAME_RELEASE}
4687+ exit ;;
4688+ 2020:CLIX:*:* | 2430:CLIX:*:*)
4689+ echo clipper-intergraph-clix${UNAME_RELEASE}
4690+ exit ;;
4691+ mips:*:*:UMIPS | mips:*:*:RISCos)
4692+ eval $set_cc_for_build
4693+ sed 's/^ //' << EOF >$dummy.c
4694+#ifdef __cplusplus
4695+#include <stdio.h> /* for printf() prototype */
4696+ int main (int argc, char *argv[]) {
4697+#else
4698+ int main (argc, argv) int argc; char *argv[]; {
4699+#endif
4700+ #if defined (host_mips) && defined (MIPSEB)
4701+ #if defined (SYSTYPE_SYSV)
4702+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
4703+ #endif
4704+ #if defined (SYSTYPE_SVR4)
4705+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
4706+ #endif
4707+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
4708+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
4709+ #endif
4710+ #endif
4711+ exit (-1);
4712+ }
4713+EOF
4714+ $CC_FOR_BUILD -o $dummy $dummy.c &&
4715+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
4716+ SYSTEM_NAME=`$dummy $dummyarg` &&
4717+ { echo "$SYSTEM_NAME"; exit; }
4718+ echo mips-mips-riscos${UNAME_RELEASE}
4719+ exit ;;
4720+ Motorola:PowerMAX_OS:*:*)
4721+ echo powerpc-motorola-powermax
4722+ exit ;;
4723+ Motorola:*:4.3:PL8-*)
4724+ echo powerpc-harris-powermax
4725+ exit ;;
4726+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
4727+ echo powerpc-harris-powermax
4728+ exit ;;
4729+ Night_Hawk:Power_UNIX:*:*)
4730+ echo powerpc-harris-powerunix
4731+ exit ;;
4732+ m88k:CX/UX:7*:*)
4733+ echo m88k-harris-cxux7
4734+ exit ;;
4735+ m88k:*:4*:R4*)
4736+ echo m88k-motorola-sysv4
4737+ exit ;;
4738+ m88k:*:3*:R3*)
4739+ echo m88k-motorola-sysv3
4740+ exit ;;
4741+ AViiON:dgux:*:*)
4742+ # DG/UX returns AViiON for all architectures
4743+ UNAME_PROCESSOR=`/usr/bin/uname -p`
4744+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
4745+ then
4746+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
4747+ [ ${TARGET_BINARY_INTERFACE}x = x ]
4748+ then
4749+ echo m88k-dg-dgux${UNAME_RELEASE}
4750+ else
4751+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
4752+ fi
4753+ else
4754+ echo i586-dg-dgux${UNAME_RELEASE}
4755+ fi
4756+ exit ;;
4757+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
4758+ echo m88k-dolphin-sysv3
4759+ exit ;;
4760+ M88*:*:R3*:*)
4761+ # Delta 88k system running SVR3
4762+ echo m88k-motorola-sysv3
4763+ exit ;;
4764+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
4765+ echo m88k-tektronix-sysv3
4766+ exit ;;
4767+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
4768+ echo m68k-tektronix-bsd
4769+ exit ;;
4770+ *:IRIX*:*:*)
4771+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
4772+ exit ;;
4773+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
4774+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
4775+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
4776+ i*86:AIX:*:*)
4777+ echo i386-ibm-aix
4778+ exit ;;
4779+ ia64:AIX:*:*)
4780+ if [ -x /usr/bin/oslevel ] ; then
4781+ IBM_REV=`/usr/bin/oslevel`
4782+ else
4783+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4784+ fi
4785+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
4786+ exit ;;
4787+ *:AIX:2:3)
4788+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
4789+ eval $set_cc_for_build
4790+ sed 's/^ //' << EOF >$dummy.c
4791+ #include <sys/systemcfg.h>
4792+
4793+ main()
4794+ {
4795+ if (!__power_pc())
4796+ exit(1);
4797+ puts("powerpc-ibm-aix3.2.5");
4798+ exit(0);
4799+ }
4800+EOF
4801+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
4802+ then
4803+ echo "$SYSTEM_NAME"
4804+ else
4805+ echo rs6000-ibm-aix3.2.5
4806+ fi
4807+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
4808+ echo rs6000-ibm-aix3.2.4
4809+ else
4810+ echo rs6000-ibm-aix3.2
4811+ fi
4812+ exit ;;
4813+ *:AIX:*:[456])
4814+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
4815+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
4816+ IBM_ARCH=rs6000
4817+ else
4818+ IBM_ARCH=powerpc
4819+ fi
4820+ if [ -x /usr/bin/oslevel ] ; then
4821+ IBM_REV=`/usr/bin/oslevel`
4822+ else
4823+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4824+ fi
4825+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
4826+ exit ;;
4827+ *:AIX:*:*)
4828+ echo rs6000-ibm-aix
4829+ exit ;;
4830+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
4831+ echo romp-ibm-bsd4.4
4832+ exit ;;
4833+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
4834+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
4835+ exit ;; # report: romp-ibm BSD 4.3
4836+ *:BOSX:*:*)
4837+ echo rs6000-bull-bosx
4838+ exit ;;
4839+ DPX/2?00:B.O.S.:*:*)
4840+ echo m68k-bull-sysv3
4841+ exit ;;
4842+ 9000/[34]??:4.3bsd:1.*:*)
4843+ echo m68k-hp-bsd
4844+ exit ;;
4845+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
4846+ echo m68k-hp-bsd4.4
4847+ exit ;;
4848+ 9000/[34678]??:HP-UX:*:*)
4849+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4850+ case "${UNAME_MACHINE}" in
4851+ 9000/31? ) HP_ARCH=m68000 ;;
4852+ 9000/[34]?? ) HP_ARCH=m68k ;;
4853+ 9000/[678][0-9][0-9])
4854+ if [ -x /usr/bin/getconf ]; then
4855+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
4856+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
4857+ case "${sc_cpu_version}" in
4858+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
4859+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
4860+ 532) # CPU_PA_RISC2_0
4861+ case "${sc_kernel_bits}" in
4862+ 32) HP_ARCH="hppa2.0n" ;;
4863+ 64) HP_ARCH="hppa2.0w" ;;
4864+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
4865+ esac ;;
4866+ esac
4867+ fi
4868+ if [ "${HP_ARCH}" = "" ]; then
4869+ eval $set_cc_for_build
4870+ sed 's/^ //' << EOF >$dummy.c
4871+
4872+ #define _HPUX_SOURCE
4873+ #include <stdlib.h>
4874+ #include <unistd.h>
4875+
4876+ int main ()
4877+ {
4878+ #if defined(_SC_KERNEL_BITS)
4879+ long bits = sysconf(_SC_KERNEL_BITS);
4880+ #endif
4881+ long cpu = sysconf (_SC_CPU_VERSION);
4882+
4883+ switch (cpu)
4884+ {
4885+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
4886+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
4887+ case CPU_PA_RISC2_0:
4888+ #if defined(_SC_KERNEL_BITS)
4889+ switch (bits)
4890+ {
4891+ case 64: puts ("hppa2.0w"); break;
4892+ case 32: puts ("hppa2.0n"); break;
4893+ default: puts ("hppa2.0"); break;
4894+ } break;
4895+ #else /* !defined(_SC_KERNEL_BITS) */
4896+ puts ("hppa2.0"); break;
4897+ #endif
4898+ default: puts ("hppa1.0"); break;
4899+ }
4900+ exit (0);
4901+ }
4902+EOF
4903+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
4904+ test -z "$HP_ARCH" && HP_ARCH=hppa
4905+ fi ;;
4906+ esac
4907+ if [ ${HP_ARCH} = "hppa2.0w" ]
4908+ then
4909+ eval $set_cc_for_build
4910+
4911+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
4912+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
4913+ # generating 64-bit code. GNU and HP use different nomenclature:
4914+ #
4915+ # $ CC_FOR_BUILD=cc ./config.guess
4916+ # => hppa2.0w-hp-hpux11.23
4917+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
4918+ # => hppa64-hp-hpux11.23
4919+
4920+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
4921+ grep -q __LP64__
4922+ then
4923+ HP_ARCH="hppa2.0w"
4924+ else
4925+ HP_ARCH="hppa64"
4926+ fi
4927+ fi
4928+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
4929+ exit ;;
4930+ ia64:HP-UX:*:*)
4931+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4932+ echo ia64-hp-hpux${HPUX_REV}
4933+ exit ;;
4934+ 3050*:HI-UX:*:*)
4935+ eval $set_cc_for_build
4936+ sed 's/^ //' << EOF >$dummy.c
4937+ #include <unistd.h>
4938+ int
4939+ main ()
4940+ {
4941+ long cpu = sysconf (_SC_CPU_VERSION);
4942+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
4943+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
4944+ results, however. */
4945+ if (CPU_IS_PA_RISC (cpu))
4946+ {
4947+ switch (cpu)
4948+ {
4949+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
4950+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
4951+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
4952+ default: puts ("hppa-hitachi-hiuxwe2"); break;
4953+ }
4954+ }
4955+ else if (CPU_IS_HP_MC68K (cpu))
4956+ puts ("m68k-hitachi-hiuxwe2");
4957+ else puts ("unknown-hitachi-hiuxwe2");
4958+ exit (0);
4959+ }
4960+EOF
4961+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
4962+ { echo "$SYSTEM_NAME"; exit; }
4963+ echo unknown-hitachi-hiuxwe2
4964+ exit ;;
4965+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
4966+ echo hppa1.1-hp-bsd
4967+ exit ;;
4968+ 9000/8??:4.3bsd:*:*)
4969+ echo hppa1.0-hp-bsd
4970+ exit ;;
4971+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
4972+ echo hppa1.0-hp-mpeix
4973+ exit ;;
4974+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
4975+ echo hppa1.1-hp-osf
4976+ exit ;;
4977+ hp8??:OSF1:*:*)
4978+ echo hppa1.0-hp-osf
4979+ exit ;;
4980+ i*86:OSF1:*:*)
4981+ if [ -x /usr/sbin/sysversion ] ; then
4982+ echo ${UNAME_MACHINE}-unknown-osf1mk
4983+ else
4984+ echo ${UNAME_MACHINE}-unknown-osf1
4985+ fi
4986+ exit ;;
4987+ parisc*:Lites*:*:*)
4988+ echo hppa1.1-hp-lites
4989+ exit ;;
4990+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
4991+ echo c1-convex-bsd
4992+ exit ;;
4993+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
4994+ if getsysinfo -f scalar_acc
4995+ then echo c32-convex-bsd
4996+ else echo c2-convex-bsd
4997+ fi
4998+ exit ;;
4999+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
5000+ echo c34-convex-bsd
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: