]> git.wh0rd.org - dump.git/blobdiff - configure.in
Another compress patch (compress while waiting for previous slave to write)
[dump.git] / configure.in
index 802f31a560cad4e276078aac381179f0ff171812..768a92e20d1d927c2abb7fceb373dd6ea82b4720 100644 (file)
@@ -122,6 +122,19 @@ fi
 echo "Using new style F script"
 )
 
+dnl
+dnl Handle --enable-largefile
+dnl
+AC_ARG_ENABLE([largefile],
+[  --enable-largefile         enable Large File System support (your glibc needs to support it)],
+if test "$enableval" = "yes"
+then
+       AC_DEFINE(_FILE_OFFSET_BITS,64)
+fi
+,
+echo "Not enabling Large File System support"
+)
+
 dnl
 dnl set $(CC) from --with-cc=value
 dnl
@@ -281,6 +294,19 @@ if test "$readline_h" = no -o "$readline_lib" = no; then
        fi
 fi
 
+dnl
+dnl Check for zlib headers and libraries
+dnl
+AC_CHECK_HEADER(zlib.h, [zlib_h=yes], [zlib_h=no])
+AC_CHECK_LIB(z, compress2, [zlib_lib=yes], [zlib_lib=no])
+if test "$zlib_h" = yes -a "$zlib_lib" = yes; then
+       ZLIB="-lz"
+       AC_DEFINE(HAVE_ZLIB)
+else
+       ZLIB=""
+fi
+AC_SUBST(ZLIB)
+
 dnl
 dnl Check for library functions
 dnl
@@ -303,22 +329,6 @@ if test "$ac_cv_func_glob" = "yes"; then
        fi
 fi
 
-dnl
-dnl Check if sigaction structure has a sa_sigaction field
-dnl
-AC_MSG_CHECKING(whether struct sigaction has a sa_sigaction field)
-AC_CACHE_VAL(dump_cv_struct_sa_sigaction,
-AC_TRY_COMPILE(
-[#include <stdio.h>
-#include <signal.h>],
-[struct sigaction action; action.sa_sigaction = NULL;],
-[dump_cv_struct_sa_sigaction=yes],
-[dump_cv_struct_sa_sigaction=no]))
-AC_MSG_RESULT($dump_cv_struct_sa_sigaction)
-if test "$dump_cv_struct_sa_sigaction" = yes; then
-  AC_DEFINE(HAVE_SIGACTION_SA_SIGACTION)
-fi
-
 dnl
 dnl Check for types
 dnl