From: Ken Raeburn Date: Fri, 13 May 2005 06:32:50 +0000 (+0000) Subject: * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Provide comment template when defining X-Git-Tag: ms-bug-test-20060525~256 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f3883140a01ad61045c4801969de49ba3cdf8ff;p=krb5.git * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Provide comment template when defining C macros. (KRB5_GETPEERNAME_ARGS): Likewise. (KRB5_GETSOCKNAME_ARGS): Likewise. Only define the macros in one place. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17216 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index d0573ef07..a1f138fb2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2005-05-13 Ken Raeburn + + * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Provide comment template + when defining C macros. + (KRB5_GETPEERNAME_ARGS): Likewise. + (KRB5_GETSOCKNAME_ARGS): Likewise. Only define the macros in one + place. + 2005-04-19 Ken Raeburn * aclocal.m4 (fileexists, K5_TOPDIR): New macros. diff --git a/src/aclocal.m4 b/src/aclocal.m4 index f0cedca41..cc31641b8 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -957,9 +957,9 @@ if test -n "$tcl_ok_conf" ; then TCL_MAYBE_RPATH= fi CPPFLAGS="$old_CPPFLAGS $TCL_INCLUDES" - AC_CHECK_HEADER(tcl.h,AC_DEFINE(HAVE_TCL_H) tcl_header=yes) + AC_CHECK_HEADER(tcl.h,AC_DEFINE(HAVE_TCL_H,1,[Define if tcl.h is available]) tcl_header=yes) if test $tcl_header=no; then - AC_CHECK_HEADER(tcl/tcl.h,AC_DEFINE(HAVE_TCL_TCL_H) tcl_header=yes) + AC_CHECK_HEADER(tcl/tcl.h,AC_DEFINE(HAVE_TCL_TCL_H,1,[Define if tcl/tcl.h is available]) tcl_header=yes) fi CPPFLAGS="$old_CPPFLAGS" tcl_lib=yes @@ -1472,8 +1472,8 @@ dnl ============================================================= dnl Internal function for testing for getpeername prototype dnl AC_DEFUN([KRB5_GETPEERNAME_ARGS],[ -AC_DEFINE([GETPEERNAME_ARG2_TYPE],GETSOCKNAME_ARG2_TYPE) -AC_DEFINE([GETPEERNAME_ARG3_TYPE],GETSOCKNAME_ARG3_TYPE) +AC_DEFINE([GETPEERNAME_ARG2_TYPE],GETSOCKNAME_ARG2_TYPE,[Type of getpeername second argument.]) +AC_DEFINE([GETPEERNAME_ARG3_TYPE],GETSOCKNAME_ARG3_TYPE,[Type of getpeername second argument.]) ]) dnl dnl ============================================================= @@ -1491,11 +1491,7 @@ extern int getsockname(int, $1, $2); eval "krb5_cv_getsockname_proto_$krb5_lib_var=no")]) if eval "test \"`echo '$krb5_cv_getsockname_proto_'$krb5_lib_var`\" = yes"; then AC_MSG_RESULT(yes) - sock_set=yes - res1=`echo "$1" | tr -d '*' | sed -e 's/ *$//'` - res2=`echo "$2" | tr -d '*' | sed -e 's/ *$//'` - AC_DEFINE_UNQUOTED([GETSOCKNAME_ARG2_TYPE],$res1) - AC_DEFINE_UNQUOTED([GETSOCKNAME_ARG3_TYPE],$res2) + sock_set=yes; res1="$1"; res2="$2" else AC_MSG_RESULT(no) fi @@ -1516,11 +1512,13 @@ do done if test "$sock_set" = no; then AC_MSG_NOTICE(assuming struct sockaddr and socklen_t for getsockname args) - res1=`echo "struct sockaddr *" | tr -d '*' | sed -e 's/ *$//'` - AC_DEFINE_UNQUOTED([GETSOCKNAME_ARG2_TYPE],$res1) - res2=`echo "socklen_t *" | tr -d '*' | sed -e 's/ *$//'` - AC_DEFINE_UNQUOTED([GETSOCKNAME_ARG3_TYPE],$res2) + res1="struct sockaddr *" + res2="socklen_t *" fi +res1=`echo "$res1" | tr -d '*' | sed -e 's/ *$//'` +res2=`echo "$res2" | tr -d '*' | sed -e 's/ *$//'` +AC_DEFINE_UNQUOTED([GETSOCKNAME_ARG2_TYPE],$res1,[Type of pointer target for argument 2 to getsockname]) +AC_DEFINE_UNQUOTED([GETSOCKNAME_ARG3_TYPE],$res2,[Type of pointer target for argument 3 to getsockname]) ]) dnl dnl