Changeset 398

Show
Ignore:
Timestamp:
06/26/2005 10:37:46 AM (3 years ago)
Author:
jan
Message:

fixed detection of broken sendfile() (fixes #135)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r300 r398  
    317317                  writev sigaction sendfile64 send_file kqueue port_create localtime_r]) 
    318318 
     319AC_SYS_LARGEFILE 
     320 
     321if test x$ac_cv_sys_file_offset_bits \!= x; then 
     322  CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 
     323fi 
     324 
    319325if test "x$ac_cv_func_sendfile" = xyes; then 
    320326        # check if sendfile works 
     
    322328        if test "x$cross_compiling" = xno; then 
    323329        AC_TRY_RUN([ 
     330                    #ifdef HAVE_SYS_SENDFILE_H 
     331                    #include <sys/sendfile.h> 
     332                    #endif /* HAVE_SYS_SENDFILE_H */ 
    324333                    #include <errno.h> 
    325334                    int main() { 
     
    360369 
    361370 
    362 AC_SYS_LARGEFILE 
    363  
    364 if test x$ac_cv_sys_file_offset_bits \!= x; then 
    365   CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 
    366 fi 
    367  
    368371AC_CHECK_SIZEOF(long) 
    369372AC_CHECK_SIZEOF(off_t)