2005-06-20 Ken Raeburn <raeburn@mit.edu>
+ * aclocal.m4 (WITH_CC): Don't use -pedantic on Linux.
+ (KRB5_AC_FIND_DLOPEN): New macro. Set DL_LIB.
+ (CONFIG_RULES, AC_KRB5_TCL_TRYOLD): Use it.
+
Novell merge.
* aclocal.m4:
- * aclocal.m4 (WITH_CC): Don't use -pedantic on Linux.
-
2005-06-14 Ken Raeburn <raeburn@mit.edu>
* configure.in: Check for endian.h.
KRB5_LIB_PARAMS
KRB5_AC_INITFINI
KRB5_AC_ENABLE_THREADS
+KRB5_AC_FIND_DLOPEN
])dnl
dnl Maintainer mode, akin to what automake provides, 'cept we don't
fi
])
+dnl find dlopen
+AC_DEFUN([KRB5_AC_FIND_DLOPEN],[
+AC_CHECK_LIB(dl, dlopen, DL_LIB=-ldl)
+AC_CHECK_LIB(ld, main, DL_LIB=-lld)
+AC_SUBST(DL_LIB)
+])
+
+
dnl Hack for now.
AC_DEFUN([KRB5_AC_ENABLE_THREADS],[
AC_ARG_ENABLE([thread-support],
dnl attempt to use old search algorithm for locating tcl
dnl
AC_DEFUN(AC_KRB5_TCL_TRYOLD, [
+AC_REQUIRE([KRB5_AC_FIND_DLOPEN])
AC_MSG_WARN([trying old tcl search code])
if test "$with_tcl" != yes -a "$with_tcl" != no; then
TCL_INCLUDES=-I$with_tcl/include
TCL_RPATH=:$with_tcl/lib
fi
if test "$with_tcl" != no ; then
- AC_CHECK_LIB(dl, dlopen, DL_LIB=-ldl)
- AC_CHECK_LIB(ld, main, DL_LIB=-lld)
krb5_save_CPPFLAGS="$CPPFLAGS"
krb5_save_LDFLAGS="$LDFLAGS"
CPPFLAGS="$CPPFLAGS $TCL_INCLUDES"