]> git.pld-linux.org Git - packages/mutt.git/blob - mutt-forcedotlock.patch
always compile with dotlocking enabled
[packages/mutt.git] / mutt-forcedotlock.patch
1 diff -urN mutt-1.3.17.org/configure.in mutt-1.3.17/configure.in
2 --- mutt-1.3.17.org/configure.in        Wed Apr  4 23:31:32 2001
3 +++ mutt-1.3.17/configure.in    Wed Apr  4 23:33:55 2001
4 @@ -321,41 +321,8 @@
5         fi
6         AC_DEFINE_UNQUOTED(MAILPATH, "$mutt_cv_mailpath")
7  
8 -       AC_CACHE_CHECK(if $mutt_cv_mailpath is world writable, mutt_cv_worldwrite, [AC_TRY_RUN([#include <sys/types.h>
9 -#include <sys/stat.h>
10 -
11 -int main (int argc, char **argv)
12 -{
13 -       struct stat s;
14 -
15 -       stat ("$mutt_cv_mailpath", &s);
16 -       if (s.st_mode & S_IWOTH) exit (0);
17 -       exit (1);
18 -}], mutt_cv_worldwrite=yes, mutt_cv_worldwrite=no, mutt_cv_worldwrite=no)])
19 -
20 -       mutt_cv_setgid=no
21 -       if test $mutt_cv_worldwrite = yes; then
22 -               AC_DEFINE(USE_DOTLOCK)
23 -       else
24 -
25 -               AC_CACHE_CHECK(if $mutt_cv_mailpath is group writable, mutt_cv_groupwrite, [AC_TRY_RUN([#include <sys/types.h>
26 -#include <sys/stat.h>
27 -
28 -int main (int argc, char **argv)
29 -{
30 -       struct stat s;
31 -
32 -       stat ("$mutt_cv_mailpath", &s);
33 -       if (s.st_mode & S_IWGRP) exit (0);
34 -       exit (1);
35 -}], mutt_cv_groupwrite=yes, mutt_cv_groupwrite=no, mutt_cv_groupwrite=no)])
36 -
37 -               if test $mutt_cv_groupwrite = yes; then
38 -                       AC_DEFINE(USE_DOTLOCK)
39 -                       AC_DEFINE(USE_SETGID)
40 -                       mutt_cv_setgid=yes
41 -               fi
42 -       fi
43 +       AC_DEFINE(USE_DOTLOCK)
44 +       AC_DEFINE(USE_SETGID)
45  fi
46  
47  AC_ARG_ENABLE(external_dotlock, [  --enable-external-dotlock  Force use of an external dotlock program],
This page took 0.048404 seconds and 4 git commands to generate.