packaging/RHEL-CTDB: add "BUILD_GPFS=no configure.rpm" and "BUILD_GPFS=no makerpms.sh"
[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"
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         --with-sambabook=${_datadir}/swat/using_samba \
48         --with-swatdir=${_datadir}/swat \
49         --disable-cups \
50         --with-acl-support \
51         --with-ads \
52         --with-automount \
53         --enable-fhs \
54         --with-pam_smbpass \
55         --with-libsmbclient \
56         --with-libsmbsharemodes \
57         --without-smbwrapper \
58         --with-pam \
59         --with-quotas \
60         --with-shared-modules=${shared_modules} \
61         --with-syslog \
62         --with-utmp \
63         --with-cluster-support \
64         --with-ctdb=/usr/include \
65         --without-ldb \
66         --without-dnsupdate \
67         --with-aio-support \
68         --disable-merged-build \
69         --disable-smbtorture4 \
70         --disable-external-libtalloc \
71         --disable-external-libtdb \
72         $*
73
74 make showlayout
75