diff options
author | Chris Zheng <chriszheng99@gmail.com> | 2015-04-11 18:06:52 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2015-04-11 18:06:52 +0300 |
commit | dc79845aac339db1cdcbbfc48d8f1569ed9a5aa2 (patch) | |
tree | 142c234eb4510a8658080e1cda418024e17f68b0 /lisp/term | |
parent | 279558f472246dd19864f4175cb1d6061bc1ed92 (diff) |
Support GnuTLS v3.4 and later on MS-Windows
* src/gnutls.c (syms_of_gnutls) <libgnutls-version>: New DEFSYM.
* lisp/term/w32-win.el (dynamic-library-alist): Determine which
GnuTLS DLL to load according to value of libgnutls-version.
Fixes: bug#20294
Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/term')
-rw-r--r-- | lisp/term/w32-win.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index b5e6ff3474..b0667e6c4f 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el @@ -214,6 +214,8 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") (defvar libgif-version) (defvar libjpeg-version) +(defvar libgnutls-version) ; gnutls.c + ;;; Set default known names for external libraries (setq dynamic-library-alist (list @@ -266,7 +268,9 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") '(gdk-pixbuf "libgdk_pixbuf-2.0-0.dll") '(glib "libglib-2.0-0.dll") '(gobject "libgobject-2.0-0.dll") - '(gnutls "libgnutls-28.dll" "libgnutls-26.dll") + (if (>= libgnutls-version 30400) + '(gnutls "libgnutls-30.dll") + '(gnutls "libgnutls-28.dll" "libgnutls-26.dll")) '(libxml2 "libxml2-2.dll" "libxml2.dll") '(zlib "zlib1.dll" "libz-1.dll"))) |