r11184: Remove test that checks whether ftruncate() needs root, because I can't
authorJelmer Vernooij <jelmer@samba.org>
Wed, 19 Oct 2005 14:35:25 +0000 (14:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:44:57 +0000 (13:44 -0500)
find the file it tries to use (build/tests/ftruncroot.c) and the value
it defines is not used anywhere.

source/build/m4/rewrite.m4

index 57ccd9f6ed0936399ef94437e0c92c6f5c4e51da..bd643faa53e636d5b8c37cddd097dd9a2bb7c068 100644 (file)
@@ -448,13 +448,6 @@ if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
     AC_DEFINE(HAVE_MMAP,1,[Whether mmap works])
 fi
 
-AC_CACHE_CHECK([for ftruncate needs root],samba_cv_FTRUNCATE_NEEDS_ROOT,[
-AC_TRY_RUN([#include "${srcdir-.}/build/tests/ftruncroot.c"],
-           samba_cv_FTRUNCATE_NEEDS_ROOT=yes,samba_cv_FTRUNCATE_NEEDS_ROOT=no,samba_cv_FTRUNCATE_NEEDS_ROOT=cross)])
-if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
-    AC_DEFINE(FTRUNCATE_NEEDS_ROOT,1,[Whether ftruncate() needs root])
-fi
-
 AC_CACHE_CHECK([for st_blocks in struct stat],samba_cv_HAVE_STAT_ST_BLOCKS,[
 AC_TRY_COMPILE([#include <sys/types.h>
 #include <sys/stat.h>