1 Fixup gssapi and db detection.
3 --- configure.orig 2020-03-11 16:46:53 UTC
5 @@ -17437,27 +17437,9 @@ done
6 # problems start to show up.
10 - "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
11 - "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
13 - "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
14 - "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
15 - "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
16 - "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
18 + "$($KRB5CONFIG gssapi --libs)"; \
20 - # Note that this does not include $saved_libs, because
21 - # on FreeBSD machines this configure script has added
22 - # -L/usr/local/lib to LIBS, which can make the
23 - # -lgssapi_krb5 test succeed with shared libraries even
24 - # when you are trying to build with KTH in /usr/lib.
25 - if test "/usr" = "$use_gssapi"
27 - LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
29 - LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
32 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
33 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
34 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35 @@ -17500,47 +17482,7 @@ $as_echo "no" >&6; } ;;
36 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
40 - # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
41 - # but MIT in /usr/local/lib and trying to build with KTH.
42 - # /usr/local/lib can end up earlier on the link lines.
43 - # Like most kludges, this one is not only inelegant it
44 - # is also likely to be the wrong thing to do at least as
45 - # many times as it is the right thing. Something better
48 - if test "/usr" = "$use_gssapi" -a \
49 - -f /usr/local/lib/libkrb5.a; then
53 - case "$FIX_KTH_VS_MIT" in
55 - case "$enable_static_linking" in
56 - yes) gssapi_lib_suffix=".a" ;;
57 - *) gssapi_lib_suffix=".so" ;;
60 - for lib in $LIBS; do
65 - new_lib=`echo $lib |
66 - sed -e s%^-l%$use_gssapi/lib/lib% \
67 - -e s%$%$gssapi_lib_suffix%`
68 - NEW_LIBS="$NEW_LIBS $new_lib"
71 - as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
79 - DST_GSSAPI_INC="-I$use_gssapi/include"
80 + DST_GSSAPI_INC="$($KRB5CONFIG gssapi --cflags)"
81 DNS_GSSAPI_LIBS="$LIBS"
83 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
84 @@ -23049,7 +22991,7 @@ $as_echo "" >&6; }
85 # Check other locations for includes.
86 # Order is important (sigh).
88 - bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
89 + bdb_incdirs="/db6 /db5 /db48"
90 # include a blank element first
91 for d in "" $bdb_incdirs