]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/patches/17-multiarch-kerberos-paths.patch
debian/patches/17-multiarch-kerberos-paths.patch (Closes: #642797).
[nfs-utils.git] / debian / patches / 17-multiarch-kerberos-paths.patch
1 +--- trunk.orig/aclocal/kerberos5.m4
2 ++++ trunk/aclocal/kerberos5.m4
3 +@@ -29,6 +29,7 @@
4 +     elif test -f "/usr/lib/mit/bin/krb5-config"; then
5 +       K5CONFIG="/usr/lib/mit/bin/krb5-config"
6 +     fi
7 ++    MULTIARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || true`
8 +     if test "$K5CONFIG" != ""; then
9 +       KRBCFLAGS=`$K5CONFIG --cflags`
10 +       KRBLIBS=`$K5CONFIG --libs gssapi`
11 +@@ -38,6 +39,7 @@
12 +                 \( -f $dir/lib/libgssapi_krb5.a -o \
13 +                    -f $dir/lib64/libgssapi_krb5.a -o \
14 +                    -f $dir/lib64/libgssapi_krb5.so -o \
15 ++                   -f $dir/lib/$MULTIARCH/libgssapi_krb5.so -o \
16 +                    -f $dir/lib/libgssapi_krb5.so \) ; then
17 +          AC_DEFINE(HAVE_KRB5, 1, [Define this if you have MIT Kerberos libraries])
18 +          KRBDIR="$dir"