---- gnutls-2.8.5/lib/m4/lib-link.m4.orig 2009-11-02 11:34:50.000000000 +0100
-+++ gnutls-2.8.5/lib/m4/lib-link.m4 2010-01-31 19:56:56.126778128 +0100
+--- gnutls-3.5.6/m4/lib-link.m4.orig 2008-05-17 07:44:04.000000000 +0200
++++ gnutls-3.5.6/m4/lib-link.m4 2011-04-02 11:29:18.159546509 +0200
@@ -322,7 +322,11 @@
fi
if test "X$found_dir" != "X"; then
if test "X$found_so" != "X"; then
dnl Linking with a shared library. We attempt to hardcode its
dnl directory into the executable's runpath, unless it's the
---- gnutls-2.12.0/m4/lib-link.m4.orig 2008-05-17 07:44:04.000000000 +0200
-+++ gnutls-2.12.0/m4/lib-link.m4 2011-04-02 11:29:18.159546509 +0200
-@@ -322,7 +322,11 @@
- fi
- if test "X$found_dir" != "X"; then
- dnl Found the library.
-+ if test "X$found_dir" = "X/usr/$acl_libdirstem"; then
-+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
-+ else
- LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
-+ fi
- if test "X$found_so" != "X"; then
- dnl Linking with a shared library. We attempt to hardcode its
- dnl directory into the executable's runpath, unless it's the
---- gnutls-2.12.0/libextra/gl/m4/lib-link.m4.orig 2011-03-02 18:39:14.000000000 +0100
-+++ gnutls-2.12.0/libextra/gl/m4/lib-link.m4 2011-04-02 11:29:43.620681483 +0200
-@@ -370,7 +370,11 @@
- fi
- if test "X$found_dir" != "X"; then
- dnl Found the library.
-+ if test "X$found_dir" = "X/usr/$acl_libdirstem"; then
-+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
-+ else
- LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
-+ fi
- if test "X$found_so" != "X"; then
- dnl Linking with a shared library. We attempt to hardcode its
- dnl directory into the executable's runpath, unless it's the