1
diff -uNr afs-krb5.orig/src/configure.in afs-krb5/src/configure.in
2
--- afs-krb5.orig/src/configure.in 2005-04-14 16:06:15.597138000 -0400
3
+++ afs-krb5/src/configure.in 2005-04-14 16:06:44.201789856 -0400
6
if test "x$afs_cv_func_getDirPath" = "xyes"; then
7
AC_MSG_RESULT([Setting compilation parameters for AFS 3.5 and later])
8
- AKLOG_EXTRA_OBJ=adderrtable.o
9
+ AC_MSG_CHECKING([for add_to_error_table])
11
+dnl We may be using libcom_err from Kerberos (shared libraries), and
12
+dnl already have add_to_error_table
14
+ AC_TRY_LINK_FUNC(add_to_error_table, have_adderr=yes, have_adderr=no)
15
+ if test $have_adderr != yes; then
16
+ AC_MSG_RESULT([no, adding adderrtable.o])
17
+ AKLOG_EXTRA_OBJ=adderrtable.o
19
+ AC_MSG_RESULT([yes])
23
AC_MSG_RESULT([Setting compilation parameters for pre-AFS 3.5])