blob: d5f266681ef996e498f7e585475c974f5b180d02 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From ffee6b5f6204a0210f717968ec6ce514d70acca1 Mon Sep 17 00:00:00 2001
2From: Haiqing Bai <Haiqing.Bai@windriver.com>
3Date: Fri, 9 Dec 2016 15:23:17 +0800
4Subject: [PATCH] nettle: check header files of openssl only if
5 'enable_openssl=yes'.
6
7The original configure script checks openssl header files to generate
8config.h even if 'enable_openssl' is not set to yes, this made inconsistent
9building for nettle.
10
11Upstream-Status: Pending
12Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
13
14refactored for 3.4. pending not in as of 3.4
15
16Signed-off-by: Armin Kuster <akuster@mvista.com>
17
18Index: nettle-3.4/configure.ac
19===================================================================
20--- nettle-3.4.orig/configure.ac
21+++ nettle-3.4/configure.ac
22@@ -185,9 +185,11 @@ AC_HEADER_TIME
23 AC_CHECK_SIZEOF(long)
24 AC_CHECK_SIZEOF(size_t)
25
26-AC_CHECK_HEADERS([openssl/evp.h openssl/ecdsa.h],,
27-[enable_openssl=no
28- break])
29+if test "x$enable_openssl" = "xyes"; then
30+ AC_CHECK_HEADERS([openssl/evp.h openssl/ecdsa.h],,
31+ [enable_openssl=no
32+ break])
33+fi
34
35 # For use by the testsuite
36 AC_CHECK_HEADERS([valgrind/memcheck.h])