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

  1. From 7508bb15de94b38402152757f75ff3e2094fdd86 Mon Sep 17 00:00:00 2001
  2. From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
  3. Date: Sun, 9 Mar 2014 13:27:03 +0100
  4. Subject: [PATCH 4/5] Added-auto-generated-nettle-config.h
  5. ---
  6. Makefile.in | 4 ++--
  7. bignum.h | 1 +
  8. configure.ac | 1 +
  9. examples/ecc-benchmark.c | 1 +
  10. nettle-config.h.in | 6 ++++++
  11. testsuite/testutils.h | 1 +
  12. 7 files changed, 13 insertions(+), 2 deletions(-)
  13. create mode 100644 nettle-config.h.in
  14. diff --git a/Makefile.in b/Makefile.in
  15. index 42be3a9..280dd30 100644
  16. --- a/Makefile.in
  17. +++ b/Makefile.in
  18. @@ -151,7 +151,7 @@ HEADERS = aes.h arcfour.h arctwo.h asn1.h bignum.h blowfish.h \
  19. des.h des-compat.h dsa.h ecc-curve.h ecc.h ecdsa.h \
  20. gcm.h gosthash94.h hmac.h \
  21. knuth-lfib.h \
  22. - macros.h \
  23. + macros.h nettle-config.h \
  24. md2.h md4.h \
  25. md5.h md5-compat.h \
  26. memxor.h \
  27. @@ -174,7 +174,7 @@ DISTFILES = $(SOURCES) $(HEADERS) getopt.h .bootstrap run-tests \
  28. config.guess config.sub install-sh texinfo.tex \
  29. config.h.in config.m4.in config.make.in Makefile.in \
  30. README AUTHORS COPYING.LIB INSTALL NEWS TODO ChangeLog \
  31. - nettle.pc.in hogweed.pc.in \
  32. + nettle.pc.in hogweed.pc.in nettle-config.h.in \
  33. memxor.c $(des_headers) descore.README \
  34. aes-internal.h camellia-internal.h serpent-internal.h \
  35. cast128_sboxes.h desinfo.h desCode.h \
  36. diff --git a/bignum.h b/bignum.h
  37. index 1f2ff07..c31ccaa 100644
  38. --- a/bignum.h
  39. +++ b/bignum.h
  40. @@ -26,6 +26,7 @@
  41. #ifndef NETTLE_BIGNUM_H_INCLUDED
  42. #define NETTLE_BIGNUM_H_INCLUDED
  43. +#include "nettle-config.h"
  44. #include "nettle-meta.h"
  45. #ifdef USE_MINI_GMP
  46. diff --git a/configure.ac b/configure.ac
  47. index c24f954..cb65bcd 100644
  48. --- a/configure.ac
  49. +++ b/configure.ac
  50. @@ -10,6 +10,7 @@ AC_CONFIG_AUX_DIR([.])
  51. AC_CONFIG_MACRO_DIR([.])
  52. AC_CONFIG_HEADER([config.h])
  53. +AC_CONFIG_HEADER([nettle-config.h])
  54. LIBNETTLE_MAJOR=4
  55. LIBNETTLE_MINOR=7
  56. diff --git a/examples/ecc-benchmark.c b/examples/ecc-benchmark.c
  57. index 16a1fd6..eaaf3a5 100644
  58. --- a/examples/ecc-benchmark.c
  59. +++ b/examples/ecc-benchmark.c
  60. @@ -38,6 +38,7 @@
  61. #include "timing.h"
  62. #undef USE_MINI_GMP
  63. +#define NETTLE_CONFIG_H_INCLUDED
  64. #include <gmp.h>
  65. #include "../ecc.h"
  66. #include "../ecc-internal.h"
  67. diff --git a/nettle-config.h.in b/nettle-config.h.in
  68. new file mode 100644
  69. index 0000000..11330ff
  70. --- /dev/null
  71. +++ b/nettle-config.h.in
  72. @@ -0,0 +1,6 @@
  73. +#ifndef NETTLE_CONFIG_H_INCLUDED
  74. +#define NETTLE_CONFIG_H_INCLUDED
  75. +
  76. +#undef USE_MINI_GMP
  77. +
  78. +#endif
  79. diff --git a/testsuite/testutils.h b/testsuite/testutils.h
  80. index a677a2a..6e9b30c 100644
  81. --- a/testsuite/testutils.h
  82. +++ b/testsuite/testutils.h
  83. @@ -15,6 +15,7 @@
  84. #if WITH_HOGWEED
  85. # include <gmp.h>
  86. +# define NETTLE_CONFIG_H_INCLUDED
  87. # undef USE_MINI_GMP
  88. # include "rsa.h"
  89. # include "dsa.h"
  90. --
  91. 1.9.2