Fix some merge omissions for GPFS
[jra/samba/.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 ./autogen.sh
28
29 CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE" ./configure -C \
30         --prefix=${_prefix} \
31         --localstatedir=/var \
32         --with-configdir=${_sysconfdir}/samba \
33         --with-libdir=${_libarchdir}/samba \
34         --with-pammodulesdir=/${_libarch}/security \
35         --with-lockdir=/var/lib/samba \
36         --with-logfilebase=/var/log/samba \
37         --with-mandir=${_mandir} \
38         --with-piddir=/var/run \
39         --with-privatedir=${_sysconfdir}/samba \
40         --with-sambabook=${_datadir}/swat/using_samba \
41         --with-swatdir=${_datadir}/swat \
42         --disable-cups \
43         --with-acl-support \
44         --with-ads \
45         --with-automount \
46         --with-fhs \
47         --with-pam_smbpass \
48         --with-libsmbclient \
49         --with-libsmbsharemodes \
50         --without-smbwrapper \
51         --with-pam \
52         --with-quotas \
53         --with-shared-modules=idmap_rid,idmap_ad,idmap_tdb2,vfs_gpfs \
54         --with-syslog \
55         --with-utmp \
56         --with-cluster-support \
57         --with-ctdb=/usr/include \
58         --without-ldb \
59         --without-dnsupdate \
60         --with-aio-support \
61         $*
62
63 make showlayout