* aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Provide comment template when defining
authorKen Raeburn <raeburn@mit.edu>
Fri, 13 May 2005 06:32:50 +0000 (06:32 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 13 May 2005 06:32:50 +0000 (06:32 +0000)
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

src/ChangeLog
src/aclocal.m4

index d0573ef075d80efbf1901741f12bd5fdf9f0ce71..a1f138fb2686dec7c005c29fec92cb68b720a6ed 100644 (file)
@@ -1,3 +1,11 @@
+2005-05-13  Ken Raeburn  <raeburn@mit.edu>
+
+       * 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  <raeburn@mit.edu>
 
        * aclocal.m4 (fileexists, K5_TOPDIR): New macros.
index f0cedca41d31eb27d5293b0865bb341f9363a853..cc31641b8fb8ea995c0c3aa8d00dd05165c0fcb1 100644 (file)
@@ -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