update configure.rpm
[samba.git] / packaging / RHEL-CTDB / configure.rpm
old mode 100644 (file)
new mode 100755 (executable)
index e1a58dd..afff117
@@ -1,29 +1,37 @@
 
+case `uname -m` in
+     x86_64)
+       libdir=/usr/lib64/samba
+       ;;
+     *)
+       libdir=/usr/lib/samba
+       ;;
+esac
+
 CFLAGS="-Wall -g -D_GNU_SOURCE" ./configure \
-       --prefix=/usr \
-       --localstatedir=/var \
-       --with-configdir=/etc/samba \
-       --with-libdir=/usr/lib/samba \
-       --with-lockdir=/var/lib/samba \
-       --with-logfilebase=/var/log/samba \
-       --with-mandir=/usr/man \
-       --with-piddir=/var/run \
-       --with-privatedir=/etc/samba \
-       --with-sambabook=/usr/share/swat/using_samba \
-       --with-swatdir=/usr/share/swat \
-       --enable-cups \
-       --with-acl-support \
+        --prefix=/usr \
+        --localstatedir=/var \
+        --with-configdir=/etc/samba \
+        --with-libdir=$libdir \
+        --with-lockdir=/var/lib/samba \
+        --with-logfilebase=/var/log/samba \
+        --with-mandir=/usr/man \
+        --with-piddir=/var/run \
+        --with-privatedir=/etc/samba \
+        --with-sambabook=/usr/share/swat/using_samba \
+        --with-swatdir=/usr/share/swat \
+       --disable-cups \
+        --with-acl-support \
        --with-ads \
-       --with-automount \
-       --with-fhs \
+        --with-automount \
+        --with-fhs \
        --with-pam_smbpass \
        --with-libsmbclient \
        --with-libsmbsharemodes \
-       --without-smbwrapper \
+        --without-smbwrapper \
        --with-pam \
        --with-quotas \
-       --with-shared-modules=idmap_rid,idmap_ad \
-       --with-smbmount \
+       --with-shared-modules=idmap_rid,idmap_ad,idmap_tdb2 \
        --with-syslog \
        --with-utmp \
        --with-cluster-support \