idl: rebuild drsuapi.idl
[Samba/aatanasov.git] / packaging / RHEL-CTDB / configure.rpm
blobb9a1ee12c2beb6f05065f98916874cec72e1264e
1 #!/bin/sh
3 case `uname -m` in
4         x86_64)
5                 _libarch=lib64
6                 ;;
7         *)
8                 _libarch=lib
9                 ;;
10 esac
12 _libarchdir=/usr/${_libarch}
14 _prefix=/usr
15 _sysconfdir=/etc
16 _mandir=/usr/man
17 _datadir=/usr/share
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"
27 ./autogen.sh
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         $*
63 make showlayout