summaryrefslogtreecommitdiff
path: root/packaging/RHEL-CTDB/configure.rpm
blob: 4387da10720b9bfeb868eab934ff51459a4bb631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/sh

case `uname -m` in
	x86_64)
		_libarch="/lib64"
		;;
	*)
		_libarch="/lib"
		;;
esac

_libarchdir=/usr${_libarch}

_prefix=/usr
_sysconfdir=/etc
_mandir=/usr/man
_datadir=/usr/share

# check for ccache
ccache -h 2>&1 > /dev/null
if [ $? -eq 0 ]; then
	CC="ccache gcc"
else
	CC="gcc"
fi

shared_modules="idmap_rid,idmap_ad,idmap_tdb2"

if test "x$BUILD_GPFS" != "xno"; then
	shared_modules="${shared_modules},vfs_gpfs,vfs_tsmsm"
fi

./autogen.sh

CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE -O3" ./configure -C \
	--prefix=${_prefix} \
	--localstatedir=/var \
	--with-configdir=${_sysconfdir}/samba \
	--libdir=${_libarchdir} \
	--with-modulesdir=${_libarchdir}/samba \
	--with-pammodulesdir=${_libarch}/security \
	--with-lockdir=/var/lib/samba \
	--with-logfilebase=/var/log/samba \
	--mandir=${_mandir} \
	--with-piddir=/var/run \
	--with-privatedir=${_sysconfdir}/samba \
	--with-sambabook=${_datadir}/swat/using_samba \
	--with-swatdir=${_datadir}/swat \
	--disable-cups \
	--with-acl-support \
	--with-ads \
	--with-automount \
	--enable-fhs \
	--with-pam_smbpass \
	--with-libsmbclient \
	--with-libsmbsharemodes \
	--without-smbwrapper \
	--with-pam \
	--with-quotas \
	--with-shared-modules=${shared_modules} \
	--with-syslog \
	--with-utmp \
	--with-cluster-support \
	--with-ctdb=/usr/include \
	--without-ldb \
	--without-dnsupdate \
	--with-aio-support \
	--disable-merged-build \
	--disable-smbtorture4 \
	--disable-external-libtalloc \
	--disable-external-libtdb \
	$*

make showlayout