This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Reduce Stub Cruft
- From: Jeff Bailey <jbailey at nisa dot net>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 18 Oct 2002 12:07:37 -0700
- Subject: Reduce Stub Cruft
Calling AS_INIT brings in alot of machinery into the stubs that wasn't
there before. Roland indicated to me before that you guys wanted that
kept down as much as possible. Note that by defining HEADER-COMMENT
you have also made it so that missing AC_PROVIDES are hidden from
casual glances. This patch also makes it a comment again so that you
can easily tell when you might need to add another one.
Specifically all of this:
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
# Be Bourne compatible
(etc..., etc...) isn't needed for the stubs.
2002-10-17 Jeff Bailey <jbailey@outpost.dnsalias.org>
* aclocal.m4: Use just the bits AS_INIT that are needed for the
GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
that it's obvious when extra autoconf machinery is being dragged
in.
--- aclocal.m4 Thu Oct 17 22:39:39 2002
+++ aclocal.new Thu Oct 17 22:44:15 2002
@@ -13,9 +13,11 @@
AC_PROVIDE([AC_PROG_CPP])dnl
define([AS_MESSAGE_LOG_FD],5)dnl
define([AS_MESSAGE_FD],6)dnl
-AS_INIT()dnl
-m4_divert_text([HEADER-COMMENT],
-[@%:@ This file is generated from configure.in by Autoconf. DO NOT EDIT!])
+dnl Ripped out of AS_INIT
+m4_wrap([m4_divert_pop([BODY])[]])
+m4_divert_push([BODY])[]dnl
+dnl /Ripped out of AS_INIT
+# This file is generated from configure.in by Autoconf. DO NOT EDIT!
define([_AC_LANG], [C])dnl
])dnl
dnl
--
learning from failures is nice in theory...
but in practice, it sucks :)
- Wolfgang Jaehrling