You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.7 KiB
100 lines
2.7 KiB
From 7508bb15de94b38402152757f75ff3e2094fdd86 Mon Sep 17 00:00:00 2001
|
|
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
|
|
Date: Sun, 9 Mar 2014 13:27:03 +0100
|
|
Subject: [PATCH 4/5] Added-auto-generated-nettle-config.h
|
|
|
|
---
|
|
Makefile.in | 4 ++--
|
|
bignum.h | 1 +
|
|
configure.ac | 1 +
|
|
examples/ecc-benchmark.c | 1 +
|
|
nettle-config.h.in | 6 ++++++
|
|
testsuite/testutils.h | 1 +
|
|
7 files changed, 13 insertions(+), 2 deletions(-)
|
|
create mode 100644 nettle-config.h.in
|
|
|
|
diff --git a/Makefile.in b/Makefile.in
|
|
index 42be3a9..280dd30 100644
|
|
--- a/Makefile.in
|
|
+++ b/Makefile.in
|
|
@@ -151,7 +151,7 @@ HEADERS = aes.h arcfour.h arctwo.h asn1.h bignum.h blowfish.h \
|
|
des.h des-compat.h dsa.h ecc-curve.h ecc.h ecdsa.h \
|
|
gcm.h gosthash94.h hmac.h \
|
|
knuth-lfib.h \
|
|
- macros.h \
|
|
+ macros.h nettle-config.h \
|
|
md2.h md4.h \
|
|
md5.h md5-compat.h \
|
|
memxor.h \
|
|
@@ -174,7 +174,7 @@ DISTFILES = $(SOURCES) $(HEADERS) getopt.h .bootstrap run-tests \
|
|
config.guess config.sub install-sh texinfo.tex \
|
|
config.h.in config.m4.in config.make.in Makefile.in \
|
|
README AUTHORS COPYING.LIB INSTALL NEWS TODO ChangeLog \
|
|
- nettle.pc.in hogweed.pc.in \
|
|
+ nettle.pc.in hogweed.pc.in nettle-config.h.in \
|
|
memxor.c $(des_headers) descore.README \
|
|
aes-internal.h camellia-internal.h serpent-internal.h \
|
|
cast128_sboxes.h desinfo.h desCode.h \
|
|
diff --git a/bignum.h b/bignum.h
|
|
index 1f2ff07..c31ccaa 100644
|
|
--- a/bignum.h
|
|
+++ b/bignum.h
|
|
@@ -26,6 +26,7 @@
|
|
#ifndef NETTLE_BIGNUM_H_INCLUDED
|
|
#define NETTLE_BIGNUM_H_INCLUDED
|
|
|
|
+#include "nettle-config.h"
|
|
#include "nettle-meta.h"
|
|
|
|
#ifdef USE_MINI_GMP
|
|
diff --git a/configure.ac b/configure.ac
|
|
index c24f954..cb65bcd 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -10,6 +10,7 @@ AC_CONFIG_AUX_DIR([.])
|
|
AC_CONFIG_MACRO_DIR([.])
|
|
|
|
AC_CONFIG_HEADER([config.h])
|
|
+AC_CONFIG_HEADER([nettle-config.h])
|
|
|
|
LIBNETTLE_MAJOR=4
|
|
LIBNETTLE_MINOR=7
|
|
diff --git a/examples/ecc-benchmark.c b/examples/ecc-benchmark.c
|
|
index 16a1fd6..eaaf3a5 100644
|
|
--- a/examples/ecc-benchmark.c
|
|
+++ b/examples/ecc-benchmark.c
|
|
@@ -38,6 +38,7 @@
|
|
#include "timing.h"
|
|
|
|
#undef USE_MINI_GMP
|
|
+#define NETTLE_CONFIG_H_INCLUDED
|
|
#include <gmp.h>
|
|
#include "../ecc.h"
|
|
#include "../ecc-internal.h"
|
|
diff --git a/nettle-config.h.in b/nettle-config.h.in
|
|
new file mode 100644
|
|
index 0000000..11330ff
|
|
--- /dev/null
|
|
+++ b/nettle-config.h.in
|
|
@@ -0,0 +1,6 @@
|
|
+#ifndef NETTLE_CONFIG_H_INCLUDED
|
|
+#define NETTLE_CONFIG_H_INCLUDED
|
|
+
|
|
+#undef USE_MINI_GMP
|
|
+
|
|
+#endif
|
|
diff --git a/testsuite/testutils.h b/testsuite/testutils.h
|
|
index a677a2a..6e9b30c 100644
|
|
--- a/testsuite/testutils.h
|
|
+++ b/testsuite/testutils.h
|
|
@@ -15,6 +15,7 @@
|
|
|
|
#if WITH_HOGWEED
|
|
# include <gmp.h>
|
|
+# define NETTLE_CONFIG_H_INCLUDED
|
|
# undef USE_MINI_GMP
|
|
# include "rsa.h"
|
|
# include "dsa.h"
|
|
--
|
|
1.9.2
|
|
|
|
|