GNU libc includes an integrated libintl, so there is no need to
separately install libintl on a GNU/Linux system.
+ * zlib (http://www.zlib.net/).
+
The following packages are required to enable PSPP's graphing
features. If you cannot arrange to install them, you must run
`configure' with --without-cairo (in which case you will get no graphing
Installing the following packages will allow your PSPP program to read
Gnumeric files.
- * zlib (http://www.zlib.net/).
-
* libxml2 (http://xmlsoft.org/).
Installing the following packages will allow your PSPP program to write
way. To fix the problem, read the system file with this version of
PSPP and then save a new copy of it.)
+ * Build changes:
+
+ - zlib is now a required dependency. (Previously it was optional.)
+
Changes from 0.8.0 to 0.8.1:
* New commands:
PSPP_OPTIONAL_PREREQ([libxml2])])
dnl Check for zlib.
-AC_SEARCH_LIBS(
- [gzopen], [z],
- [HAVE_ZLIB=yes],
- [HAVE_ZLIB=no
- PSPP_OPTIONAL_PREREQ([zlib])])
-AC_CHECK_HEADERS(
- [zlib.h],
- [],
- [HAVE_ZLIB=no
- PSPP_OPTIONAL_PREREQ([zlib])])
+AC_SEARCH_LIBS([gzopen], [z], [], [PSPP_REQUIRED_PREREQ([zlib])])
+AC_CHECK_HEADERS([zlib.h], [], [PSPP_REQUIRED_PREREQ([zlib])])
dnl Avoid interference between zlib's crc32() function and gnulib's
dnl crc32() function, which have different signatures. PSPP calls
[Avoid making zlib call gnulib's crc32() instead of its own.])
dnl Gnumeric and OpenDocument (read) support requires libxml2 and zlib.
-if test $HAVE_LIBXML2 = yes && test $HAVE_ZLIB = yes; then
+if test $HAVE_LIBXML2 = yes; then
GNM_READ_SUPPORT=yes
ODF_READ_SUPPORT=yes
AC_DEFINE(
/* PSPP - a program for statistical analysis.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011, 2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "inflate.h"
-#if HAVE_ZLIB_H
-
#include <xalloc.h>
#include <zlib.h>
#include <stdio.h>
return -1;
}
-
-#endif
/* PSPP - a program for statistical analysis.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011, 2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
static struct decompressor decompressors[n_COMPRESSION] =
{
{stored_init, stored_read, stored_finish},
-#if HAVE_ZLIB_H
{inflate_init, inflate_read, inflate_finish}
-#endif
};
static enum compression
case 0:
which = COMPRESSION_STORED;
break;
-#if HAVE_ZLIB_H
case 8:
which = COMPRESSION_INFLATE;
break;
-#endif
default:
ds_put_format (zm->errs, _("Unsupported compression type (%d)"), c);
which = n_COMPRESSION;
/* PSPP - a program for statistical analysis.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011, 2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
enum compression
{
COMPRESSION_STORED = 0,
-#if HAVE_ZLIB_H
COMPRESSION_INFLATE,
-#endif
n_COMPRESSION
};