jartool.c (list_jar): Fall back on
the method used for non-seekable files when
reading the central-header-end section does
not work, i.e. in archives with a zipfile
comment at the end.

Patch taken from fastjar.sourceforge.net
patch repository.


Makefile.am (fastjar_CPPFLAGS): Removed.
(grepjar_SOURCES) Added shift.c and shift.h.

compress.c (seekable, end_of_entries): Removed.
(write_data) Removed __attribute__((unused)).
Removed WITH_SHIFT_DOWN.

configure.ac (AM_PROG_CC_C_O): Removed.

jartool.c (end_of_entries): Moved field to ...

shift.c (end_of_entries): ... here. New field.
(shift_up, shift_down) Removed declarations of
end_of_entries.

shift.h (end_of_entries): Added field to
exported header as it is used in jartool.c.

Makefile.in, aclocal.m4, config.h.in,
configure: Regenerated.


jartool.h (__attribute__): Remove define.


compress.c (init_compression, end_compression,
init_inflation): Added missing 'void' parameter type.

jargrep.c (version): Added missing 'void' parameter
type.


jartool.c (main): Replaced unreachable exit call
after version call with a break statement.


jartool.c (list_jar, extract_jar, init_args,
get_next_arg): Added const qualifier to char **
parameter and return types.
(main) Added const qualifier to type of new_argv.
Modified malloc cast accordingly. Fixed cast of
const char * to char *.
(args_g) Added const qualifier to type.


jartool.c (list_jar, extract_jar, init_args,
get_next_arg): Added const qualifier to char **
parameter and return types.
(main) Added const qualifier to type of new_argv.
Modified malloc cast accordingly. Fixed cast of
const char * to char *.
(args_g) Added const qualifier to type.


dostime.c (unix2dostime): Renamed parameter to
unix_time.


compress.h
Added #ifndef __FASTJAR_COMPRESS_H__.


dostime.h:
Added #ifndef __FASTJAR_DOSTIME_H__.


jargrep.h:
Added #ifndef __FASTJAR_JARGREP_H__.


pushback.h:
Added #ifndef __FASTJAR_PUSHBACK_H__.


zipfile.h:
Added #ifndef __FASTJAR_ZIPFILE_H__.


compress.h: Updated copyright information.


shift.c, jartool.h, jargrep.c, compress.c:
Updated copyright information.


compress.c, dostime.c, jargrep.c, jartool.c
(HAVE_CONFIG_H): Added guards for include.


dostime.c: Updated copyright information.


compress.c (init_compression, write_data,
compress_file, end_compression, init_inflation,
inflate_file, report_str_error, ez_inflate_str,
hrd_inflate_str): Use EXIT_FAILURE.

jargrep.c (create_regexp, read_string,
extract_line, check_crc, fnd_match, main,
version): Use EXIT_FAILURE and EXIT_SUCCESS.

jartool.c (main, make_manifest, add_to_jar,
add_file_to_jar, extract_jar, list_jar,
consume, version, help, add_array_to_jar,
get_index_entry): Use EXIT_FAILURE and EXIT_SUCCESS.


TODO: New file.


Makefile.am (AM_CFLAGS): Shuffled upwards in the file.
(fastjar_SOURCES, grepjar_SOURCES) Removed dostime.c,
compress.c, pushback.c, shift.c, jartool.h, zipfile.h,
dostime.h, compress.h, pushback.h and shift.h.
(fastjar_LDADD, grepjar_LDADD) Added libfastjar.la.
(lib_LTLIBRARIES, libfastjar_la_SOURCES) New primitives.
(libtool) New target.

configure.ac (AC_DISABLE_STATIC, AC_LIBTOOL_WIN32_DLL,
AC_PROG_LIBTOOL, AC_SUBST(LIBTOOL_DEPS)): Added support
for native libraries for libfastjar.

Makefile.in, aclocal.m4, config.h.in, configure:
Regenerated.

config.guess, config.sub, ltmain.sh: New files,
generated by autogen.sh.