diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-22 14:29:32 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-22 14:29:32 +0200 |
commit | f09763f6b6e1e84ea9968457e6cc3e7af5360671 (patch) | |
tree | 39c0539d963d3553e4103bead25f22bd8a367f31 /configure.ac | |
parent | 97d84293615048b936d35250c89b21259acdb18f (diff) | |
download | wydawca-f09763f6b6e1e84ea9968457e6cc3e7af5360671.tar.gz wydawca-f09763f6b6e1e84ea9968457e6cc3e7af5360671.tar.bz2 |
Remove sendfile support
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/configure.ac b/configure.ac index 50ed38a..ee58f84 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,7 @@ AC_PROG_RANLIB # Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h sys/sendfile.h]) +AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST @@ -52,26 +52,6 @@ AC_FUNC_STAT AC_FUNC_VPRINTF AC_CHECK_FUNCS([memset strchr strdup strerror strrchr setegid setregid setresgid seteuid setreuid vsyslog sysconf getdtablesize]) -# *********************************** -# Sendfile -# *********************************** -AC_ARG_ENABLE([sendfile], - [AC_HELP_STRING([--enable-sendfile], - [Attempt to use sendfile(2) when possible])], - [case $enableval in - yes) USE_SENDFILE=1;; - no) USE_SENDFILE=0;; - *) AC_MSG_FAILURE([Invalid argument for --enable-sendfile]) - esac], - [USE_SENDFILE=0]) - -if test "$USE_SENDFILE" = 1; then - case $host in - *-linux-*) AC_DEFINE_UNQUOTED([USE_SENDFILE], 1, - [Define to 1 to use sendfile(2) on GNU/Linux]);; - esac -fi - # ********************** # Mailutils # ********************** |