+2002-09-24 Ezra Peisach <epeisach@bu.edu>
+
+ * Makefile.in (krb5-config): Add argument to invocation of
+ config.status to only generate krb5-config and not any other
+ Makefiles.
+
+ * configure.in (krb5-config): Use AC_CONFIG_FILES to better
+ generate and chmod krb5-config file.
+
+ * aclocal.m4 (V5_AC_OUTPUT_MAKEFILE): Rewrite to use AC_CONFIG_FILES.
+ krb5_append_frags is now a define instead of a shell variable.
+
2002-09-23 Ezra Peisach <epeisach@bu.edu>
* aclocal.m4 (V5_SET_TOPDIR): When determining the location of the
ac_config_fragdir=$ac_reltopdir/config
krb5_pre_in=$ac_config_fragdir/pre.in
krb5_post_in=$ac_config_fragdir/post.in
-krb5_prepend_frags=$krb5_pre_in
-krb5_append_frags=$krb5_post_in
+define([krb5_append_frags],[$krb5_post_in])
+echo "Looking for $srcdir/$ac_config_fragdir"
if test -d "$srcdir/$ac_config_fragdir"; then
AC_CONFIG_AUX_DIR($ac_config_fragdir)
else
dnl V5_AC_OUTPUT_MAKEFILE
dnl
define(V5_AC_OUTPUT_MAKEFILE,
-[ifelse($1, , ac_v5_makefile_dirs=., ac_v5_makefile_dirs="$1")
-ifelse($2, , filelist="", filelist="$2")
-for x in $ac_v5_makefile_dirs; do
- filelist="$filelist $x/Makefile:$krb5_prepend_frags:$x/Makefile.in:$krb5_append_frags"
-done
-AC_OUTPUT($filelist)])dnl
+[ifelse($1, , [_V5_AC_OUTPUT_MAKEFILE(.,$2)],[_V5_AC_OUTPUT_MAKEFILE($1,$2)])])
+dnl
+define(_V5_AC_OUTPUT_MAKEFILE,
+[ifelse($2, , ,AC_CONFIG_FILES($2))
+AC_FOREACH([DIR], [$1],dnl
+ [AC_CONFIG_FILES(DIR[/Makefile:$krb5_pre_in:]DIR[/Makefile.in:]krb5_append_frags)])
+K5_AC_OUTPUT])dnl
dnl
dnl
dnl KRB5_SOCKADDR_SA_LEN: define HAVE_SA_LEN if sockaddr contains the sa_len
AC_REQUIRE([AC_PROG_RANLIB])
AC_CHECK_PROG(AR, ar, ar, false)
# add frag for building libraries
-krb5_append_frags=$ac_config_fragdir/lib.in:$krb5_append_frags
+define([krb5_append_frags],[$ac_config_fragdir/lib.in:]krb5_append_frags)
# null out SHLIB_EXPFLAGS because we lack any dependencies
SHLIB_EXPFLAGS=
AC_SUBST(LIBLIST)
AC_REQUIRE([AC_PROG_RANLIB])
AC_CHECK_PROG(AR, ar, ar, false)
# add frag for building libraries
-krb5_append_frags=$ac_config_fragdir/lib.in:$krb5_append_frags
+define([krb5_append_frags],[$ac_config_fragdir/lib.in:]krb5_append_frags)
AC_SUBST(LIBLIST)
AC_SUBST(LIBLINKS)
AC_SUBST(LDCOMBINE)
AC_DEFUN(KRB5_BUILD_LIBOBJS,
[AC_REQUIRE([KRB5_LIB_AUX])
# add frag for building library objects
-krb5_append_frags=$ac_config_fragdir/libobj.in:$krb5_append_frags
+define([krb5_append_frags],[$ac_config_fragdir/libobj.in:]krb5_append_frags)
AC_SUBST(OBJLISTS)
AC_SUBST(STOBJEXT)
AC_SUBST(SHOBJEXT)
-AC_INIT(aclocal.m4)
+AC_INIT
+AC_CONFIG_SRCDIR([aclocal.m4])
dnl
dnl autoconf 2.49 defaults to a /dev/null cache file, which is what we
dnl do not want for performance reasons.
AC_CONFIG_SUBDIRS(krb524)
fi
AC_CONFIG_SUBDIRS(kdc kadmin slave clients appl tests)
-AC_OUTPUT_COMMANDS([chmod +x krb5-config])
-AC_OUTPUT_COMMANDS([echo timestamp > krb5-stamp-h])
-K5_GEN_FILE(krb5-config)
+AC_CONFIG_FILES(krb5-config, [chmod +x krb5-config])
K5_GEN_MAKEFILE(.)
K5_GEN_MAKEFILE(util)
K5_GEN_MAKEFILE(util/send-pr)