]> git.pld-linux.org Git - packages/amanda.git/blob - amanda-no-static-krb5.patch
a1fbda3bfde7789c75590e25b3a59eed6adc37fd
[packages/amanda.git] / amanda-no-static-krb5.patch
1 --- amanda-2.5.2p1/configure.in~        2007-06-22 15:34:50.000000000 +0200
2 +++ amanda-2.5.2p1/configure.in 2007-06-22 15:38:46.000000000 +0200
3 @@ -851,7 +851,7 @@
4  AC_MSG_CHECKING(for Kerberos and Amanda kerberos4 bits)
5  if test "x${KRB4_SECURITY}" = xyes -a -f  ${srcdir-.}/common-src/krb4-security.c ; then
6      for dir in $KRB4_SPOTS; do
7 -       if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
8 +       if test -f ${dir}/lib/libkrb.so -a -f ${dir}/lib/libdes.so ; then
9             #
10             # This is the original Kerberos 4.
11             #
12 @@ -868,13 +868,13 @@
13             fi
14             KRB4LDFLAGS=-L$dir/lib
15             KRB4LIBS="-lkrb -ldes"
16 -           if test -f ${dir}/lib/libcom_err.a; then
17 +           if test -f ${dir}/lib/libcom_err.so; then
18                 KRB4LIBS="$KRB4LIBS -lcom_err"
19             fi
20             break
21 -       elif test -f ${dir}/lib/libkrb4.a &&
22 -            test -f ${dir}/lib/libcrypto.a &&
23 -            test -f ${dir}/lib/libdes425.a ; then
24 +       elif test -f ${dir}/lib/libkrb4.so &&
25 +            test -f ${dir}/lib/libcrypto.so &&
26 +            test -f ${dir}/lib/libdes425.so ; then
27             #
28             # This is Kerberos 5 with Kerberos 4 back-support.
29             #
30 @@ -883,8 +883,8 @@
31             AC_DEFINE(KRB4_SECURITY, 1, [Enable Kerberos security. ])
32             KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
33             KRB4LDFLAGS=-L$dir/lib
34 -           if test -f ${dir}/lib/libkrb5.a &&
35 -               test -f ${dir}/lib/libcom_err.a; then
36 +           if test -f ${dir}/lib/libkrb5.so &&
37 +               test -f ${dir}/lib/libcom_err.so; then
38                 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
39             else
40                 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
41 @@ -1135,15 +1135,15 @@
42  for dir in $KRB5_SPOTS; do
43    for lib in lib lib64; do
44      k5libdir=${dir}/${lib}
45 -    if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
46 -       if test -f ${k5libdir}/libk5crypto.a; then
47 +    if test -f ${k5libdir}/libkrb5.so -a -f ${k5libdir}/libgssapi_krb5.so -a -f ${k5libdir}/libcom_err.so; then
48 +       if test -f ${k5libdir}/libk5crypto.so; then
49             K5CRYPTO=-lk5crypto
50 -       elif test -f ${k5libdir}/libcrypto.a; then
51 +       elif test -f ${k5libdir}/libcrypto.so; then
52             K5CRYPTO=-lcrypto
53         else
54             K5CRYPTO=""
55         fi
56 -       if test -f ${k5libdir}/libkrb5support.a; then
57 +       if test -f ${k5libdir}/libkrb5support.so; then
58             K5SUPPORT=-lkrb5support
59         else
60             K5SUPPORT=""
61 @@ -1152,9 +1152,9 @@
62         KRB5LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err"
63         KRB5CFLAGS=""
64         break
65 -    elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
66 +    elif test -f ${k5libdir}/libkrb5.so -a -f ${k5libdir}/libasn1.so -a -f ${k5libdir}/libgssapi.so; then
67         KRB5_DIR_FOUND=$dir
68 -       KRB5LIBS="-lgssapi.a -lkrb5.a -lasn1.a"
69 +       KRB5LIBS="-lgssapi -lkrb5 -lasn1"
70         KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
71         break
72      fi
This page took 0.092336 seconds and 2 git commands to generate.