diff options
| author | Paul Eggert | 2017-08-02 19:46:41 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-08-02 19:49:43 -0700 |
| commit | a8a81df8da1adad2d4feb22b1fd6aac0f7ca98d2 (patch) | |
| tree | 765664da2f91c54802c663e1cb8c9ba81c4ebb5c /src | |
| parent | 2d2c12fc5f45ff73387efd6241447f3d9cbadf09 (diff) | |
| download | emacs-a8a81df8da1adad2d4feb22b1fd6aac0f7ca98d2.tar.gz emacs-a8a81df8da1adad2d4feb22b1fd6aac0f7ca98d2.zip | |
Simplify configuration of HAVE_GNUTLS3 etc.
There's only one GnuTLS, so configuring these symbols at
'configure' time is overkill. Simplify things by moving their
configuration to src/gnutls.h (Bug#27708).
* configure.ac (HAVE_GNUTLS3, HAVE_GNUTLS3_HMAC, HAVE_GNUTLS3_AEAD)
(HAVE_GNUTLS3_CIPHER, HAVE_GNUTLS3_DIGEST): Move these definitions
from here ...
* src/gnutls.h: ... to here, and simplify.
Diffstat (limited to 'src')
| -rw-r--r-- | src/gnutls.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gnutls.h b/src/gnutls.h index 3ec86a8892d..19c16867d7a 100644 --- a/src/gnutls.h +++ b/src/gnutls.h | |||
| @@ -23,8 +23,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | #include <gnutls/gnutls.h> | 23 | #include <gnutls/gnutls.h> |
| 24 | #include <gnutls/x509.h> | 24 | #include <gnutls/x509.h> |
| 25 | 25 | ||
| 26 | #ifdef HAVE_GNUTLS3 | 26 | #if 0x030000 <= GNUTLS_VERSION_NUMBER |
| 27 | #include <gnutls/crypto.h> | 27 | # define HAVE_GNUTLS3 |
| 28 | # include <gnutls/crypto.h> | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #if 0x030400 <= GNUTLS_VERSION_NUMBER | ||
| 32 | # define HAVE_GNUTLS3_AEAD | ||
| 33 | # define HAVE_GNUTLS3_CIPHER | ||
| 34 | # define HAVE_GNUTLS3_DIGEST | ||
| 35 | # define HAVE_GNUTLS3_HMAC | ||
| 28 | #endif | 36 | #endif |
| 29 | 37 | ||
| 30 | #include "lisp.h" | 38 | #include "lisp.h" |