diff --git a/Makefile b/Makefile
index 5fc2f10523e680559ddd755fbf53b5c4e7e527c8..79586ece5ee48d33f3828d25582bacf7311a7628 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.397 2005-09-21 19:58:33 geuzaine Exp $
+# $Id: Makefile,v 1.398 2005-09-25 15:52:17 geuzaine Exp $
 #
 # Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
 #
@@ -135,7 +135,10 @@ source-tree: purge
 	rm -rf gmsh-${GMSH_VERSION}
 	tar zcvf gmsh.tgz --exclude "*.o" --exclude "*.a" --exclude "gmsh"\
           --exclude "variables" --exclude "config.log" --exclude "config.status"\
-          --exclude "autom4*" --exclude "benchmarks" --exclude "zzz_*" *
+          --exclude "autom4*" --exclude "benchmarks" --exclude "Makefile.distrib"\
+          --exclude "zzz_*" --exclude "HTML"\
+          --exclude "*TAGS*" --exclude "GSYMS" --exclude "GPATH"\
+          *
 	mkdir gmsh-${GMSH_VERSION}
 	cd gmsh-${GMSH_VERSION} && tar zxvf ../gmsh.tgz
 	rm -f gmsh.tgz
diff --git a/configure b/configure
index a7c751233aec6003c1d4ae1dcf61ea394fade30c..d67bde66b165327b6e6907ac9913e34443046eff 100755
--- a/configure
+++ b/configure
@@ -853,7 +853,7 @@ Optional Features:
   --enable-cygwin         use the Cygwin library on Windows (default=yes)
   --enable-parallel       enable parallel version (default=no)
   --enable-jpeg           enable JPEG support (default=yes)
-  --enable-z              enable ZLIB support (default=yes)
+  --enable-zlib           enable ZLIB support (default=yes)
   --enable-png            enable PNG support (default=yes)
   --enable-contrib        enable contrib packages (default=yes)
   --enable-triangle       compile Triangle if available (default=yes)
@@ -872,7 +872,7 @@ Optional Packages:
                           installed
   --with-png-prefix=PFX   prefix where the PNG library and includes are
                           installed
-  --with-z-prefix=PFX     prefix where the ZLIB library and includes are
+  --with-zlib-prefix=PFX  prefix where the ZLIB library and includes are
                           installed
 
 Some influential environment variables:
@@ -1350,10 +1350,10 @@ if test "${with_png_prefix+set}" = set; then
   PNG_PREFIX=$withval
 fi;
 
-# Check whether --with-z-prefix or --without-z-prefix was given.
-if test "${with_z_prefix+set}" = set; then
-  withval="$with_z_prefix"
-  Z_PREFIX=$withval
+# Check whether --with-zlib-prefix or --without-zlib-prefix was given.
+if test "${with_zlib_prefix+set}" = set; then
+  withval="$with_zlib_prefix"
+  ZLIB_PREFIX=$withval
 fi;
 
 # Check whether --enable-gsl or --disable-gsl was given.
@@ -1381,9 +1381,9 @@ if test "${enable_jpeg+set}" = set; then
   enableval="$enable_jpeg"
 
 fi;
-# Check whether --enable-z or --disable-z was given.
-if test "${enable_z+set}" = set; then
-  enableval="$enable_z"
+# Check whether --enable-zlib or --disable-zlib was given.
+if test "${enable_zlib+set}" = set; then
+  enableval="$enable_zlib"
 
 fi;
 # Check whether --enable-png or --disable-png was given.
@@ -3580,10 +3580,10 @@ fi
     fi
   fi
 
-    Z=""
-  if test "x$enable_z" != "xno"; then
-    if test "x${Z_PREFIX}" != "x"; then
-      LDFLAGS="-L${Z_PREFIX} -L${Z_PREFIX}/lib ${LDFLAGS}"
+    ZLIB=""
+  if test "x$enable_zlib" != "xno"; then
+    if test "x${ZLIB_PREFIX}" != "x"; then
+      LDFLAGS="-L${ZLIB_PREFIX} -L${ZLIB_PREFIX}/lib ${LDFLAGS}"
     fi
     echo "$as_me:$LINENO: checking for main in -lz" >&5
 echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
@@ -3644,14 +3644,14 @@ fi
 echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
 echo "${ECHO_T}$ac_cv_lib_z_main" >&6
 if test $ac_cv_lib_z_main = yes; then
-  Z="yes"
+  ZLIB="yes"
 else
-  Z="no"
+  ZLIB="no"
 fi
 
   fi
 
-    if test "x$enable_png" != "xno" -a "x${Z}" = "xyes"; then
+    if test "x$enable_png" != "xno" -a "x${ZLIB}" = "xyes"; then
     if test "x${PNG_PREFIX}" != "x"; then
       LDFLAGS="-L${PNG_PREFIX} -L${PNG_PREFIX}/lib ${LDFLAGS}"
     fi
@@ -3730,13 +3730,13 @@ fi
     fi
   fi
 
-    if test "x${Z}" = "xyes"; then
+    if test "x${ZLIB}" = "xyes"; then
     FLAGS="-DHAVE_LIBZ ${FLAGS}"
-    if test "x${Z_PREFIX}" = "x"; then
+    if test "x${ZLIB_PREFIX}" = "x"; then
       GMSH_LIBS="${GMSH_LIBS} -lz"
     else
-            GMSH_LIBS="${GMSH_LIBS} -L${Z_PREFIX} -L${Z_PREFIX}/lib -lz"
-      INCLS="${INCLS} -I${Z_PREFIX} -I${Z_PREFIX}/include"
+            GMSH_LIBS="${GMSH_LIBS} -L${ZLIB_PREFIX} -L${ZLIB_PREFIX}/lib -lz"
+      INCLS="${INCLS} -I${ZLIB_PREFIX} -I${ZLIB_PREFIX}/include"
     fi
   fi
 
diff --git a/configure.in b/configure.in
index 99a64faf2e5de5d06f4f273273475c79602a8161..a50e3927804822d7ca8a0f414c59a950876a41cd 100644
--- a/configure.in
+++ b/configure.in
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.81 2005-09-23 21:10:30 geuzaine Exp $
+dnl $Id: configure.in,v 1.82 2005-09-25 15:52:17 geuzaine Exp $
 dnl
 dnl Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
 dnl
@@ -45,10 +45,10 @@ AC_ARG_WITH(png-prefix,
             AC_HELP_STRING([--with-png-prefix=PFX],
                            [prefix where the PNG library and includes are installed]),
             [PNG_PREFIX=$withval])
-AC_ARG_WITH(z-prefix,
-            AC_HELP_STRING([--with-z-prefix=PFX],
+AC_ARG_WITH(zlib-prefix,
+            AC_HELP_STRING([--with-zlib-prefix=PFX],
                            [prefix where the ZLIB library and includes are installed]),
-            [Z_PREFIX=$withval])
+            [ZLIB_PREFIX=$withval])
 
 dnl Parse '--enable' command line options
 AC_ARG_ENABLE(gsl,
@@ -66,8 +66,8 @@ AC_ARG_ENABLE(parallel,
 AC_ARG_ENABLE(jpeg,
               AC_HELP_STRING([--enable-jpeg],
                              [enable JPEG support (default=yes)]))
-AC_ARG_ENABLE(z,
-              AC_HELP_STRING([--enable-z],
+AC_ARG_ENABLE(zlib,
+              AC_HELP_STRING([--enable-zlib],
                              [enable ZLIB support (default=yes)]))
 AC_ARG_ENABLE(png,
               AC_HELP_STRING([--enable-png],
@@ -182,16 +182,16 @@ if test "x$enable_gui" != "xno"; then
   fi
 
   dnl Check for libz
-  Z=""
-  if test "x$enable_z" != "xno"; then
-    if test "x${Z_PREFIX}" != "x"; then
-      LDFLAGS="-L${Z_PREFIX} -L${Z_PREFIX}/lib ${LDFLAGS}"
+  ZLIB=""
+  if test "x$enable_zlib" != "xno"; then
+    if test "x${ZLIB_PREFIX}" != "x"; then
+      LDFLAGS="-L${ZLIB_PREFIX} -L${ZLIB_PREFIX}/lib ${LDFLAGS}"
     fi
-    AC_CHECK_LIB(z,main,Z="yes",Z="no")
+    AC_CHECK_LIB(z,main,ZLIB="yes",ZLIB="no")
   fi
 
   dnl Check for libpng (only if libz is available)
-  if test "x$enable_png" != "xno" -a "x${Z}" = "xyes"; then
+  if test "x$enable_png" != "xno" -a "x${ZLIB}" = "xyes"; then
     if test "x${PNG_PREFIX}" != "x"; then
       LDFLAGS="-L${PNG_PREFIX} -L${PNG_PREFIX}/lib ${LDFLAGS}"
     fi
@@ -209,14 +209,14 @@ if test "x$enable_gui" != "xno"; then
   fi
 
   dnl Complete zlib link line (zlib must be linked in after libpng)
-  if test "x${Z}" = "xyes"; then
+  if test "x${ZLIB}" = "xyes"; then
     FLAGS="-DHAVE_LIBZ ${FLAGS}"
-    if test "x${Z_PREFIX}" = "x"; then
+    if test "x${ZLIB_PREFIX}" = "x"; then
       GMSH_LIBS="${GMSH_LIBS} -lz"
     else
       dnl Find the libs/includes even if libjpeg is _not_ properly installed (ugly hack!)
-      GMSH_LIBS="${GMSH_LIBS} -L${Z_PREFIX} -L${Z_PREFIX}/lib -lz"
-      INCLS="${INCLS} -I${Z_PREFIX} -I${Z_PREFIX}/include"
+      GMSH_LIBS="${GMSH_LIBS} -L${ZLIB_PREFIX} -L${ZLIB_PREFIX}/lib -lz"
+      INCLS="${INCLS} -I${ZLIB_PREFIX} -I${ZLIB_PREFIX}/include"
     fi
   fi