diff options
author | Ken Raeburn <raeburn@mit.edu> | 2005-05-13 06:32:50 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2005-05-13 06:32:50 +0000 |
commit | 9f3883140a01ad61045c4801969de49ba3cdf8ff (patch) | |
tree | e0d4431224e9a2965ce51d91aa3b84d7c3c6f541 /src/aclocal.m4 | |
parent | 79452875c8695428e923e98e90739ab9ca993c3a (diff) | |
download | krb5-9f3883140a01ad61045c4801969de49ba3cdf8ff.zip krb5-9f3883140a01ad61045c4801969de49ba3cdf8ff.tar.gz krb5-9f3883140a01ad61045c4801969de49ba3cdf8ff.tar.bz2 |
* 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
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r-- | src/aclocal.m4 | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4 index f0cedca..cc31641 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 |