removing unused files
[bbaumbach/samba-autobuild/.git] / packaging / Debian / debian / patches / configure.patch
1 diff -uNr samba-3.0alpha21.orig/source/configure.in samba-3.0alpha21/source/configure.in
2 --- samba-3.0alpha21.orig/source/configure.in   2003-02-16 13:01:45.000000000 -0600
3 +++ samba-3.0alpha21/source/configure.in        2003-02-16 13:04:03.000000000 -0600
4 @@ -481,6 +481,28 @@
5  #endif
6  }
7  ], [LINUX_LFS_SUPPORT=yes], [LINUX_LFS_SUPPORT=no], [LINUX_LFS_SUPPORT=cross])
8 +       if test x$LINUX_LFS_SUPPORT = xyes ; then
9 +          AC_TRY_RUN([
10 +#include <unistd.h>
11 +#include <sys/types.h>
12 +#include <fcntl.h>
13 +main() {
14 +   unsigned int *padding;
15 +   struct flock foo_lock = {F_WRLCK, SEEK_SET, 0, 1, 0};
16 +   int fd = open("/dev/null", O_RDWR);
17 +
18 +   /* Yes, we're depending on the internals of the Linux flock structure
19 +      here -- but this test is explicitly Linux-specific to begin with. */
20 +   padding = (unsigned int *)&foo_lock;
21 +   padding[1] = 0xffffffff;
22 +   foo_lock.l_start = 0;
23 +   if (fcntl(fd, F_SETLK, &foo_lock) < 0)
24 +      exit(1);
25 +
26 +   exit(0);
27 +}
28 +], [LINUX_LFS_SUPPORT=yes], [LINUX_LFS_SUPPORT=no], [LINUX_LFS_SUPPORT=cross])
29 +       fi
30          CPPFLAGS="$old_CPPFLAGS"
31          if test x$LINUX_LFS_SUPPORT = xyes ; then
32            CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"