]> git.sesse.net Git - vlc/commitdiff
configure.ac: hopefully, that's gnutls sorted for good
authorDamien Fouilleul <damienf@videolan.org>
Wed, 25 Jul 2007 21:19:10 +0000 (21:19 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Wed, 25 Jul 2007 21:19:10 +0000 (21:19 +0000)
configure.ac

index 2f82ba03cd3d412d8de68dfc40b061a17ec1680b..c8ce83dd054acaf0ab9aaf24030390a0f9ed053a 100644 (file)
@@ -5462,16 +5462,24 @@ AS_IF([test "${enable_gnutls}" != "no"], [
   AS_IF([test "${have_gnutls}" = "yes"], [
     VLC_ADD_PLUGINS([gnutls])
     VLC_ADD_CFLAGS([gnutls], [$GNUTLS_CFLAGS])
+    AS_IF([test "${SYS}" = "mingw32"], [
+      dnl pkg-config --libs gnutls ignores these
+      VLC_ADD_LDFLAGS([gnutls], [-lz])
+      AS_IF([test "${enable_libtool}" != "no"], [
+        VLC_ADD_LDFLAGS([gnutls], [${LTLIBINTL}])
+      ], [
+        VLC_ADD_LDFLAGS([gnutls], [${LIBINTL}])
+      ])
+    ])
+    AC_CHECK_LIB([gcrypt], [gcry_control], [
+      VLC_ADD_LDFLAGS([gnutls], [-lgcrypt -lgpg-error])
+    ], [], [-lgpg-error])
     VLC_ADD_LDFLAGS([gnutls], [$GNUTLS_LIBS])
   ], [
     AS_IF([test "${enable_gnutls}" = "yes"], [
       AC_MSG_ERROR([gnutls not present or too old (version 1.2.9 required)])
     ])
   ])
-  VLC_ADD_LDFLAGS([gnutls], [-lintl -lz])
-  AC_CHECK_LIB([gcrypt], [gcry_control], [
-    VLC_ADD_LDFLAGS([gnutls], [-lgcrypt -lgpg-error])
-  ], [], [-lgpg-error])
 ])
 
 dnl