From 21c7debd3fc2613e10d7ee81543dbd65b2b897fa Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Thu, 5 Nov 2015 20:08:33 +0530 Subject: build: fix ecdh.h and dh.h deps openssl/ecdh.h and openssl/dh.h are not available on all platforms, especially rhel-5. This patch adds check to autoconf and updates relevant source files. Added conditional to test for SSL_OP_NO_TICKET and SSL_OP_NO_COMPRESSION presence before setting the SSL context options. Macros UTIME_OMIT and UTIME_NOW picked up from Fedora 22 /usr/include/bits/stat.h to help rhel-5 build. Change-Id: I2bdee4fe643f9c1f5fe77cf89bd30946cd6b591a Reviewed-on: http://review.gluster.org/#/c/12517/ BUG: 1258594 Signed-off-by: Milind Changire Reviewed-on: http://review.gluster.org/12518 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY Reviewed-by: Niels de Vos --- glusterfs.spec.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index c843fbe82b9..a74bf7f6fed 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -594,6 +594,10 @@ This package provides the translators needed on any GlusterFS client. # For whatever reason, install-sh is sometimes missing. When this gets fixed, # there is no need to run ./autogen or have a BuildRequires for automake. [ -e 'install-sh' -o -e 'install.sh' ] || ./autogen.sh +%if ( 0%{?rhel} && 0%{?rhel} < 6 ) +CFLAGS=-DUSE_INSECURE_OPENSSL +export CFLAGS +%endif %configure \ ./autogen.sh && %configure \ %{?_with_cmocka} \ -- cgit