s3/smbd: sticky write time offset miscalculation causes broken timestamps
[garming/samba-autobuild/.git] / packaging / RHEL-CTDB / configure.rpm
1 #!/bin/sh
2
3 case `uname -m` in
4         x86_64)
5                 _libarch="/lib64"
6                 ;;
7         *)
8                 _libarch="/lib"
9                 ;;
10 esac
11
12 _libarchdir=/usr${_libarch}
13
14 _prefix=/usr
15 _sysconfdir=/etc
16 _mandir=/usr/man
17 _datadir=/usr/share
18
19 # check for ccache
20 ccache -h 2>&1 > /dev/null
21 if [ $? -eq 0 ]; then
22         CC="ccache gcc"
23 else
24         CC="gcc"
25 fi
26
27 shared_modules="idmap_rid,idmap_ad,idmap_tdb2,idmap_rfc2307"
28
29 if test "x$BUILD_GPFS" != "xno"; then
30         shared_modules="${shared_modules},vfs_gpfs,vfs_tsmsm"
31 fi
32
33 ./autogen.sh
34
35 CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE -O3" ./configure -C \
36         --prefix=${_prefix} \
37         --localstatedir=/var \
38         --with-configdir=${_sysconfdir}/samba \
39         --libdir=${_libarchdir} \
40         --with-modulesdir=${_libarchdir}/samba \
41         --with-pammodulesdir=${_libarch}/security \
42         --with-lockdir=/var/lib/samba \
43         --with-logfilebase=/var/log/samba \
44         --mandir=${_mandir} \
45         --with-piddir=/var/run \
46         --with-privatedir=${_sysconfdir}/samba \
47         --disable-cups \
48         --with-acl-support \
49         --with-ads \
50         --with-automount \
51         --enable-fhs \
52         --with-libsmbclient \
53         --without-smbwrapper \
54         --with-pam \
55         --with-quotas \
56         --with-shared-modules=${shared_modules} \
57         --with-syslog \
58         --with-utmp \
59         --with-cluster-support \
60         --with-ctdb=/usr/include \
61         --without-ldb \
62         --without-dnsupdate \
63         --disable-external-libtalloc \
64         --disable-external-libtdb \
65         $*
66
67 make showlayout
68