Patch fixes linking of Trf library at build time. It is taken from
http://sourceforge.net/tracker/index.php?func=detail&aid=680667&group_id=60766&atid=495205

--- a/generic/zlib.c
+++ b/generic/zlib.c
@@ -44,11 +44,11 @@
   0,
   deflate,
   deflateEnd,
-  deflateInit_,
+  deflateInit2_,
   deflateReset,
   inflate,
   inflateEnd,
-  inflateInit_,
+  inflateInit2_,
   inflateReset,
   adler32,
   crc32,
--- a/trf.m4
+++ b/trf.m4
@@ -155,15 +155,15 @@
 
 AC_ARG_ENABLE(static-zlib,
 	[  --enable-static-zlib         link 'zlib' statically],
-	[STATIC_ZLIB=$enableval], [STATIC_ZLIB=no])
+	[ZLIB_STATIC=$enableval], [ZLIB_STATIC=no])
 
 AC_ARG_ENABLE(static-bzlib,
 	[  --enable-static-bzlib         link 'bzlib' statically],
-	[STATIC_BZLIB=$enableval], [STATIC_BZLIB=no])
+	[BZLIB_STATIC=$enableval], [BZLIB_STATIC=no])
 
 AC_ARG_ENABLE(static-md5,
 	[  --enable-static-md5           link 'md5' statically],
-	[STATIC_MD5=$enableval], [STATIC_MD5=no])
+	[MD5_STATIC=$enableval], [MD5_STATIC=no])
 
 AC_ARG_ENABLE(trf_debug,
 	[  --enable-trf-debug             enable debugging output],
--- a/configure
+++ b/configure
@@ -13087,25 +13087,25 @@
 
 # Check whether --enable-static-zlib was given.
 if test "${enable_static_zlib+set}" = set; then
-  enableval=$enable_static_zlib; STATIC_ZLIB=$enableval
+  enableval=$enable_static_zlib; ZLIB_STATIC=$enableval
 else
-  STATIC_ZLIB=no
+  ZLIB_STATIC=no
 fi
 
 
 # Check whether --enable-static-bzlib was given.
 if test "${enable_static_bzlib+set}" = set; then
-  enableval=$enable_static_bzlib; STATIC_BZLIB=$enableval
+  enableval=$enable_static_bzlib; BZLIB_STATIC=$enableval
 else
-  STATIC_BZLIB=no
+  BZLIB_STATIC=no
 fi
 
 
 # Check whether --enable-static-md5 was given.
 if test "${enable_static_md5+set}" = set; then
-  enableval=$enable_static_md5; STATIC_MD5=$enableval
+  enableval=$enable_static_md5; MD5_STATIC=$enableval
 else
-  STATIC_MD5=no
+  MD5_STATIC=no
 fi
 
 
