Fix building with glusterfs VFS module on RHEL.
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 29 Oct 2013 16:55:08 +0000 (17:55 +0100)
committerAndreas Schneider <asn@redhat.com>
Tue, 29 Oct 2013 17:12:21 +0000 (18:12 +0100)
related: #1020329

samba.spec

index 4584f8d905caa9c915056a02e8eeae329335b4f7..e05ead422512f1b2c1cc00f8f2bc47dc0b3a00f0 100644 (file)
 
 %global with_profiling 1
 %global with_vfs_glusterfs 1
+%if 0%{?rhel}
+%global with_vfs_glusterfs 0
+# Only enable on x86_64
+%ifarch x86_64
+%global with_vfs_glusterfs 1
+%endif
+%endif
 
 %global with_mitkrb5 1
 %global with_dc 0
@@ -534,6 +541,9 @@ LDFLAGS="-Wl,-z,relro,-z,now" \
 %if ! %with_dc
         --without-ad-dc \
 %endif
+%if ! %with_vfs_glusterfs
+        --disable-glusterfs \
+%endif
 %if %with_clustering_support
         --with-cluster-support \
         --enable-old-ctdb \