fix, PEBKAC, hand in both the lzma context and the ute context to ute_compress() with no LZMA support

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, provide ute_encode() in libuterus

The first call also sets up a static lzma context (if lzma support is configured) that
will be reused throughout successive calls to ute_encode().
To clear up everything call ute_encode() with a NULL input buffer.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, rewrite -c|--compress in ute-fsck in terms of ute_encode() API function

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/lzma' into next

* feat/lzma:
  minor, rewrite -c|--compress in ute-fsck in terms of ute_encode() API function
  minor, provide ute_encode() in libuterus
  fix, PEBKAC, hand in both the lzma context and the ute context to ute_compress() with no LZMA support
chore, fix, support gcc's idea of a static initialiser (i.e. without literal compound cast)

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, provide ute_decode() in libuterus

The first call also sets up a static lzma context (if lzma support is configured) that
will be reused throughout successive calls to ute_decode().
To clear up everything call ute_decode() with a NULL input buffer.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, transparently decompress seek pages in ute-fsck, via ute_decode()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/lzma' into next

* feat/lzma:
  minor, transparently decompress seek pages in ute-fsck, via ute_decode()
  minor, provide ute_decode() in libuterus
  chore, fix, support gcc's idea of a static initialiser (i.e. without literal compound cast)
fix, consider links not mmap'able (revert logic in mmapable() in hdf5 printer

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, provide a global implementation of mmapable() in mem.h

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, rename mmapable() -> mmapablep()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'cmd/mux-hdf5' into next

* cmd/mux-hdf5:
  minor, rename mmapable() -> mmapablep()
  minor, provide a global implementation of mmapable() in mem.h
  fix, consider links not mmap'able (revert logic in mmapable() in hdf5 printer
minor, don't just hand everything over to the decompressor, check sizes first

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, only call decompress_seek() or recompress_seek() when lzma support is available

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/lzma' into next

* feat/lzma:
  minor, only call decompress_seek() or recompress_seek() when lzma support is available
  minor, don't just hand everything over to the decompressor, check sizes first
Merge branch 'next'

* next:
  minor, only call decompress_seek() or recompress_seek() when lzma support is available
  minor, don't just hand everything over to the decompressor, check sizes first
  minor, rename mmapable() -> mmapablep()
  minor, provide a global implementation of mmapable() in mem.h
  fix, consider links not mmap'able (revert logic in mmapable() in hdf5 printer
  minor, transparently decompress seek pages in ute-fsck, via ute_decode()
  minor, provide ute_decode() in libuterus
  chore, fix, support gcc's idea of a static initialiser (i.e. without literal compound cast)
  minor, rewrite -c|--compress in ute-fsck in terms of ute_encode() API function
  minor, provide ute_encode() in libuterus
  fix, PEBKAC, hand in both the lzma context and the ute context to ute_compress() with no LZMA support
  Revert "chore, link libuterus.la dynamically to all binaries"