allow 'cat' as log compression method
julien at trigofacile.com
Sat Jun 5 08:38:33 UTC 2010
> I wonder if there's anybody else who'd prefer to *not* compress his logs
> in any way (and rather not keep it for too long to save space)?
Thanks for the idea.
> This is --with-log-compress=cat (I didn't bother to go hunting for cat
> as it's part of coreutils - should we do that?):
I added the check so that LOG_COMPRESS is properly set.
It seems fine in my config.log if I configure INN to use "cat":
-dnl compress instead and others may want to use bzip2. INN also needs to
-dnl locate gzip regardless, since it's used for compressed rnews batches, and
-dnl needs to know how to uncompress .Z files.
+dnl compress instead, and others may want to use bzip2, or even not compress
+dnl at all their logs. INN also needs to locate gzip regardless, since it's
+dnl used for compressed rnews batches, and needs to know how to uncompress .Z
+AC_ARG_VAR([CAT], [Location of cat program])
+AC_PATH_PROG([CAT], [cat], [cat])
+ if test x"$CAT" = xcat ; then
+ AC_MSG_ERROR([cat not found but specified for log compression])
« Si le peuple est content des jeux, je te donnerai des sesterces.
S'il n'est pas content, je te donnerai aux lions ! » (Astérix)
More information about the inn-workers