From: Ken Raeburn Date: Tue, 21 Jun 2005 02:21:31 +0000 (+0000) Subject: * aclocal.m4 (WITH_CC): Don't use -pedantic on Linux. X-Git-Tag: ms-bug-test-20060525~226 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84c522fd76cc04c01e37962e2d0d25cfcdff078f;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17262 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index 38cc092ab..ca201e63d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,10 +1,12 @@ 2005-06-20 Ken Raeburn + * 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 * configure.in: Check for endian.h. diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 2ff8567f1..53423564a 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -79,6 +79,7 @@ KRB5_AC_PRAGMA_WEAK_REF 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 @@ -129,6 +130,14 @@ if test "$use_linker_fini_option" = yes; then 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], @@ -980,6 +989,7 @@ dnl AC_KRB5_TCL_TRYOLD 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 @@ -987,8 +997,6 @@ if test "$with_tcl" != yes -a "$with_tcl" != no; then 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"