$Log$
+Revision 400.10 2002/09/15 02:50:55 ajc
+* Duh. I don't need to twiddle CFLAGS when autoconf provides -DHAVE_ZLIB_H
+
Revision 400.9 2002/09/14 21:33:31 ajc
* Backed out compression of inlines -- not all browsers appear to handle it
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
if test "x$ok_zlib" != xno ; then
LIBS="-lz $LIBS"
- CFLAGS="-DWITH_ZLIB $CFLAGS"
AC_DEFINE(HAVE_ZLIB)
fi
if test "x$ok_libical" != xno ; then
LIBS="-lical $LIBS"
- CFLAGS="-DWITH_LIBICAL $CFLAGS"
AC_DEFINE(HAVE_LIBICAL)
fi
struct wcsession *TheSession, *sptr;
int gzip = 0;
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
int i;
char enc[SIZ];
char encodings[SIZ];
got_cookie = 1;
}
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
if (!strncasecmp(buf, "Accept-encoding: ", 17)) {
extract_token(encodings, &buf[17], 0, ';');
for (i=0; i<num_tokens(encodings, ','); ++i) {
}
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
ssize_t http_write(int fd, void *buf, size_t count) {
int suppress_check = 0;
char httpnow[SIZ];
static int pageseq = 0;
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
gzFile temp_gzfd = NULL;
#endif
httpdate(httpnow, time(NULL));
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
if (WC->gzcompressed) {
temp_gzfd = gzdopen(WC->http_sock, "wb9");
}
"Pragma: no-cache\n"
"Cache-Control: no-store\n"
);
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
if (temp_gzfd != NULL) {
wprintf("Content-Encoding: gzip\n");
}
if (print_standard_html_head > 0) {
wprintf("\n");
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
if (temp_gzfd != NULL) {
WC->gzfd = temp_gzfd;
}
WC->is_wap = 0;
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
if (gzip) {
WC->gzcompressed = 1;
}
WC->upload_length = 0;
}
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
if (WC->gzfd) {
gzclose(WC->gzfd);
WC->gzfd = NULL;
/* $Id$ */
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
#include <zlib.h>
#endif
char this_page[SIZ]; /* address of current page */
char http_host[SIZ]; /* HTTP Host: header */
char *preferences;
-#ifdef WITH_ZLIB
+#ifdef HAVE_ZLIB_H
int gzcompressed; /* nonzero if compressed output */
gzFile gzfd; /* stream to send compressed */
#endif