From MAILER-DAEMON Tue Apr 01 00:40:17 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190EVN-0000zt-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 00:40:17 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190EVL-0000zV-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 00:40:15 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190EVJ-0000zF-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 00:40:14 -0500 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190EVI-0000wt-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 00:40:13 -0500 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h315dvx16608 Tue, 1 Apr 2003 07:39:58 +0200 (MEST) Received: from localhost ([127.0.0.1] helo=lrde.epita.fr ident=www-data) by kualalumpur.lrde.epita.fr with smtp (Exim 3.35 #1 (Debian)) id 190EQv-0000PS-00; Tue, 01 Apr 2003 07:35:41 +0200 Received: from 81.56.197.145 (SquirrelMail authenticated user akim) by www.lrde.epita.fr with HTTP; Tue, 1 Apr 2003 07:35:41 +0200 (CEST) Message-ID: <1941.81.56.197.145.1049175341.squirrel@www.lrde.epita.fr> In-Reply-To: References: <85smt37o7h.fsf@pi.meyering.net> Date: Tue, 1 Apr 2003 07:35:41 +0200 (CEST) From: "Akim Demaille" To: "Paul Eggert" X-Mailer: SquirrelMail (version 1.3.2) MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal cc: autoconf-patches@gnu.org cc: Jim Meyering Subject: Re: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 05:40:15 -0000 Paul Eggert said: > Jim Meyering writes: > >> Comments/suggestions? > > Looks good, thanks. However, could you please check for "__restrict" > before "__restrict__"? GCC supports either spelling, but "__restrict" > is shorter and older DEC Alpha C compilers support only "__restrict". > The handwritten "configure" script for MPlayer > checks for "__restrict" first, so this > should be reliable. > > Also, please check for "_Restrict" as well. That is the only spelling > supported by Sun WorkShop 6 update 2 C. Wow... There is already that many different names... > Jim Meyering writes: > >> I don't like the name very much, since it implies C-only support, >> while the macro is useful/necessary also with C++ compilers. > > Aren't the other AC_C_ macros in that camp too? Yes, indeed. That's why I would like to suggest another framework, which I think Autoconf should have followed anyway: config.h should encode the result of the system audit only, and not the actions. In the present case, I would much prefer if the macro could AC_DEFINE HAVE_C_RESTRICT or HAVE_C___RESTRICT, or maybe AC_DEFINE C_RESTRICT as undefined, "restrict", "__restrict" etc. and then, let system.h make the #define. Similarly, I don't think it was wise to have config.h #define the missing types. Of course this is introducing a brand new interface in Autoconf. But I think it is a good one as: - it is cleaner for other languages (remember the complaints of Fortran people who see such results in their config.h) - it is cleaner for C vs. C++ etc. (C_RESTRICT and CXX_RESTRICT are different, it is up to the user to use them correctly). From MAILER-DAEMON Tue Apr 01 01:11:31 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190EzW-0008Ai-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 01:11:26 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190Ez6-0007JP-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 01:11:00 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190Eyy-0006v9-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 01:10:54 -0500 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190Eyw-0006kq-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 01:10:50 -0500 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h3166Tx18652 Tue, 1 Apr 2003 08:06:29 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 190EvS-0000mc-00; Tue, 01 Apr 2003 08:07:14 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 190EvS-0006MS-00; Tue, 01 Apr 2003 08:07:14 +0200 To: Derek Robert Price From: Akim Demaille Date: Tue, 01 Apr 2003 08:07:14 +0200 In-Reply-To: <3E88A6F8.7070005@ximbiot.com> (Derek Robert Price's message of "Mon, 31 Mar 2003 15:37:12 -0500") Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <20030327040536.23785.qmail@mail.ximbiot.com> <3E83C923.4010804@ximbiot.com> <3E84C588.6000607@ximbiot.com> <3E88A530.4060802@ximbiot.com> <3E88A6F8.7070005@ximbiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: 04script-wrapable-autotests X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 06:11:24 -0000 Derek> Derek Robert Price wrote: >> Incidentally, I think you broke torture.at with either revision 1.40 >> or 1.41. I'm running a make check using 1.40 now, but I'm getting >> shell syntax errors running testsuite with version 1.41 of >> torture.at and both 1.38 and 1.39 pass without changing the rest of >> the code. Nasty me :( Derek> Got it. You forgot to close the single quote around the new argument Derek> to grep. Can I just commit typo fixes like this or do I need to ask? _Obvious_ typos or mistakes can be fixed without pre approval, but the patch applied should be sent here with FYI: prepended to the subject. Thanks Derek! From MAILER-DAEMON Tue Apr 01 01:43:27 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190FUQ-0007XX-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 01:43:22 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190FT8-0006KM-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 01:42:02 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190FT5-0006EB-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 01:41:59 -0500 Received: from anice-201-1-1-11.abo.wanadoo.fr ([80.13.35.11] helo=elf.meyering.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190FT1-0005zR-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 01:41:55 -0500 Received: by elf.meyering.net (Postfix, from userid 1002) id B3184438E; Tue, 1 Apr 2003 08:41:54 +0200 (CEST) To: "Akim Demaille" In-Reply-To: <1941.81.56.197.145.1049175341.squirrel@www.lrde.epita.fr> ("Akim Demaille"'s message of "Tue, 1 Apr 2003 07:35:41 +0200 (CEST)") References: <85smt37o7h.fsf@pi.meyering.net> <1941.81.56.197.145.1049175341.squirrel@www.lrde.epita.fr> From: Jim Meyering Date: Tue, 01 Apr 2003 08:41:54 +0200 Message-ID: <85el4m4t3h.fsf@pi.meyering.net> Lines: 52 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: Paul Eggert cc: autoconf-patches@gnu.org Subject: Re: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 06:43:20 -0000 "Akim Demaille" wrote: > Paul Eggert said: > >> Jim Meyering writes: >> >>> Comments/suggestions? >> >> Looks good, thanks. However, could you please check for "__restrict" >> before "__restrict__"? GCC supports either spelling, but "__restrict" >> is shorter and older DEC Alpha C compilers support only "__restrict". >> The handwritten "configure" script for MPlayer >> checks for "__restrict" first, so this >> should be reliable. >> >> Also, please check for "_Restrict" as well. That is the only spelling >> supported by Sun WorkShop 6 update 2 C. > > Wow... There is already that many different names... > >> Jim Meyering writes: >> >>> I don't like the name very much, since it implies C-only support, >>> while the macro is useful/necessary also with C++ compilers. >> >> Aren't the other AC_C_ macros in that camp too? > > Yes, indeed. That's why I would like to suggest another framework, > which I think Autoconf should have followed anyway: config.h should > encode the result of the system audit only, and not the actions. > In the present case, I would much prefer if the macro could AC_DEFINE > HAVE_C_RESTRICT or HAVE_C___RESTRICT, or maybe AC_DEFINE > C_RESTRICT as undefined, "restrict", "__restrict" etc. and then, let > system.h make the #define. Similarly, I don't think it was wise > to have config.h #define the missing types. Hi Akim! I see your point and like the idea of separating them. However, a big advantage with the current, all-in-config.h, approach is that it works even from lib/*.[ch] files. In coreutils, all src/*.c files include system.h, but many of those in lib/ come from glibc, and having them include "system.h" would not be appropriate. > Of course this is introducing a brand new interface in Autoconf. > But I think it is a good one as: > - it is cleaner for other languages > (remember the complaints of Fortran people who see such results > in their config.h) > - it is cleaner for C vs. C++ etc. > (C_RESTRICT and CXX_RESTRICT are different, it is up to the user > to use them correctly). From MAILER-DAEMON Tue Apr 01 02:37:39 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190GIc-0002rd-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 02:35:14 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190GGU-0000hF-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 02:33:02 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190GFy-0000Hk-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 02:32:42 -0500 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190GBZ-0006gg-00; Tue, 01 Apr 2003 02:27:58 -0500 Received: from kualalumpur.lrde.epita.fr (kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h317Rlx27313 Tue, 1 Apr 2003 09:27:47 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 190GC6-0001WV-00; Tue, 01 Apr 2003 09:28:30 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 190GC5-0001a8-00; Tue, 01 Apr 2003 09:28:29 +0200 To: Paul Eggert From: Akim Demaille Date: Tue, 01 Apr 2003 09:28:28 +0200 In-Reply-To: (Paul Eggert's message of "31 Mar 2003 12:55:43 -0800") Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <200303230948.h2N9mV228668@sic.twinsun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: APatche cc: bug-autoconf@gnu.org Subject: Re: suggestion: put AC_ at the front of AC_ items in the index X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 07:35:02 -0000 Paul> Akim Demaille writes: >> How about trying to keep the printed manual nice, and have the Info >> index be AC_'d? Paul> That would be OK with me, since I never use the printed manual. Paul> Another possibility is to index both AC_FOO and FOO. I tried to have a framework that would make it easier to change our mind. But Texinfo proved to be quite resistant to changes :( Index: ChangeLog from Akim Demaille * doc/autoconf.texi (ac, at, ms): Rename these indexes as... (AC, AT, MS): these. (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex): New. Use them. * doc/Makefile.am (CLEANFILES): Adjust. (TEXI2DVI): Make it --batch. Index: doc/Makefile.am =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/Makefile.am,v retrieving revision 1.27 diff -u -u -r1.27 Makefile.am --- doc/Makefile.am 4 Sep 2002 16:03:13 -0000 1.27 +++ doc/Makefile.am 1 Apr 2003 07:27:35 -0000 @@ -1,7 +1,7 @@ ## Process this file with automake to create Makefile.in. ## Makefile for Autoconf. -## Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. +## Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -19,6 +19,7 @@ ## 02111-1307, USA. AM_MAKEINFOFLAGS = --no-split +TEXI2DVI = texi2dvi --batch TEXI2HTML = texi2html TEXI2HTML_FLAGS = -split_chapter @@ -28,8 +29,8 @@ # Files from texi2dvi that should be removed, but which Automake does # not know. -CLEANFILES = autoconf.acs autoconf.cvs autoconf.mss autoconf.prs \ - autoconf.ats autoconf.evs autoconf.fns autoconf.ovs \ +CLEANFILES = autoconf.ACs autoconf.cvs autoconf.MSs autoconf.prs \ + autoconf.ATs autoconf.evs autoconf.fns autoconf.ovs \ autoconf.tmp \ autoconf*.html standards*.html Index: doc/Makefile.in =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/Makefile.in,v retrieving revision 1.131 diff -u -u -r1.131 Makefile.in --- doc/Makefile.in 1 Apr 2003 07:24:38 -0000 1.131 +++ doc/Makefile.in 1 Apr 2003 07:27:35 -0000 @@ -105,8 +105,8 @@ # Files from texi2dvi that should be removed, but which Automake does # not know. -CLEANFILES = autoconf.acs autoconf.cvs autoconf.mss autoconf.prs \ - autoconf.ats autoconf.evs autoconf.fns autoconf.ovs \ +CLEANFILES = autoconf.ACs autoconf.cvs autoconf.MSs autoconf.prs \ + autoconf.ATs autoconf.evs autoconf.fns autoconf.ovs \ autoconf.tmp \ autoconf*.html standards*.html @@ -226,10 +226,10 @@ done mostlyclean-aminfo: - -rm -f autoconf.AC autoconf.ACs autoconf.atx autoconf.atxs autoconf.aux \ - autoconf.cp autoconf.cps autoconf.cv autoconf.cvs autoconf.ev \ - autoconf.evs autoconf.fn autoconf.fns autoconf.ky \ - autoconf.kys autoconf.log autoconf.msx autoconf.msxs \ + -rm -f autoconf.AC autoconf.ACs autoconf.AT autoconf.ATs autoconf.MS \ + autoconf.MSs autoconf.aux autoconf.cp autoconf.cps \ + autoconf.cv autoconf.cvs autoconf.ev autoconf.evs autoconf.fn \ + autoconf.fns autoconf.ky autoconf.kys autoconf.log \ autoconf.ov autoconf.ovs autoconf.pg autoconf.pgs autoconf.pr \ autoconf.prs autoconf.tmp autoconf.toc autoconf.tp \ autoconf.tps autoconf.vr autoconf.vrs autoconf.dvi \ Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.726 diff -u -u -r1.726 autoconf.texi --- doc/autoconf.texi 28 Mar 2003 14:51:31 -0000 1.726 +++ doc/autoconf.texi 1 Apr 2003 07:27:40 -0000 @@ -8,17 +8,26 @@ @setcontentsaftertitlepage @finalout -@c A simple macro for optional variables. +@c @ovar(ARG, DEFAULT) +@c ------------------- +@c The ARG is an optional argument. To be used for macro arguments in +@c their documentation (@defmac). @macro ovar{varname} @r{[}@var{\varname\}@r{]} @end macro -@c A simple macro for optional variables with a default value. +@c @dvar(ARG, DEFAULT) +@c ------------------- +@c The ARG is an optional argument, defaulting to DEFAULT. To be used +@c for macro arguments in their documentation (@defmac). @macro dvar{varname, default} @r{[}@var{\varname\} = @samp{\default\}@r{]} @end macro -@c I don't like the way URL are displayed in TeX with @uref. +@c @href(URL, TITLE) +@c ----------------- +@c A replacement for @uref that puts the URL in the footnotes when +@c not in HTML. @ifhtml @macro href{url, title} @uref{\url\, \title\} @@ -30,6 +39,26 @@ @end macro @end ifnothtml +@c Handling the indexes with Texinfo yields several different problems. +@c +@c Because we want to drop out the AC_ part of the macro names in the +@c printed manual, but not in the other outputs, we need a layer above +@c the usual @acindex etc. That's why we first define indexes such as +@c acx meant to become the macro @acindex. First of all, using ``ac_'' +@c does not work with makeinfo, and using ``ac1'' doesn't work with TeX. +@c So use something more regular ``acx''. Then you finish with a printed +@c index saying ``index is not existent''. Of course: you ought to use +@c two letters :( So you use capitals. +@c +@c Second, when defining a macro in the TeX world, following spaces are +@c eaten. But then, since we embed @acxindex commands that use the end +@c of line as an end marker, the whole things wrecks itself. So make +@c sure you do *force* an additional end of line, add a ``@c''. +@c +@c Finally, you might want to get rid of TeX expansion, using --expand +@c with texi2dvi. But then you wake up an old problem: we use macros +@c in @defmac etc. where TeX does perform the expansion, but not makeinfo. + @c Define an environment variable index. @defcodeindex ev @c Define an output variable index. @@ -37,15 +66,91 @@ @c Define a CPP variable index. @defcodeindex cv @c Define an Autoconf macro index that @defmac doesn't write to. -@defcodeindex ac +@defcodeindex AC @c Define an Autotest macro index that @defmac doesn't write to. -@defcodeindex at +@defcodeindex AT @c Define an M4sugar macro index that @defmac doesn't write to. -@defcodeindex ms +@defcodeindex MS @c Define an index for *foreign* programs: `mv' etc. Used for the @c portability sections and so on. @defindex pr +@c shortindexflag +@c -------------- +@c Shall we factor AC_ out of the Autoconf macro index etc.? +@iftex +@set shortindexflag +@end iftex + +@c @acindex{MACRO} +@c --------------- +@c Registering an AC_\MACRO\. +@ifset shortindexflag +@macro acindex{macro} +@ACindex \macro\ +@c +@end macro +@end ifset +@ifclear shortindexflag +@macro acindex{macro} +@ACindex AC_\macro\ +@end macro +@end ifclear + +@c @ahindex{MACRO} +@c --------------- +@c Registering an AH_\MACRO\. +@macro ahindex{macro} +@ACindex AH_\macro\ +@c +@end macro + +@c @asindex{MACRO} +@c --------------- +@c Registering an AS_\MACRO\. +@ifset shortindexflag +@macro asindex{macro} +@MSindex \macro\ +@c +@end macro +@end ifset +@ifclear shortindexflag +@macro asindex{macro} +@MSindex AS_\macro\ +@end macro +@end ifclear + +@c @atindex{MACRO} +@c --------------- +@c Registering an AT_\MACRO\. +@ifset shortindexflag +@macro atindex{macro} +@ATindex \macro\ +@c +@end macro +@end ifset +@ifclear shortindexflag +@macro atindex{macro} +@ATindex AT_\macro\ +@end macro +@end ifclear + +@c @msindex{MACRO} +@c --------------- +@c Registering an m4_\MACRO\. +@ifset shortindexflag +@macro msindex{macro} +@MSindex \macro\ +@c +@end macro +@end ifset +@ifclear shortindexflag +@macro msindex{macro} +@MSindex m4_\macro\ +@end macro +@end ifclear + + @c Define an index for functions: `alloca' etc. Used for the @c portability sections and so on. We can't use `fn' (aka `fnindex), @c since `@defmac' goes into it => we'd get all the macros too. @@ -454,6 +559,7 @@ Copying This Manual +* GNU Free Documentation License:: License for copying this manual Indices @@ -1470,7 +1576,7 @@ (@pxref{Output}). @defmac AC_INIT (@var{package}, @var{version}, @ovar{bug-report}, @ovar{tarname}) -@acindex INIT +@acindex{INIT} Process any command-line arguments and perform various initializations and verifications. @@ -1494,31 +1600,31 @@ @table @asis @item @code{AC_PACKAGE_NAME}, @code{PACKAGE_NAME} -@acindex PACKAGE_NAME +@acindex{PACKAGE_NAME} @ovindex PACKAGE_NAME @cvindex PACKAGE_NAME Exactly @var{package}. @item @code{AC_PACKAGE_TARNAME}, @code{PACKAGE_TARNAME} -@acindex PACKAGE_TARNAME +@acindex{PACKAGE_TARNAME} @ovindex PACKAGE_TARNAME @cvindex PACKAGE_TARNAME Exactly @var{tarname}. @item @code{AC_PACKAGE_VERSION}, @code{PACKAGE_VERSION} -@acindex PACKAGE_VERSION +@acindex{PACKAGE_VERSION} @ovindex PACKAGE_VERSION @cvindex PACKAGE_VERSION Exactly @var{version}. @item @code{AC_PACKAGE_STRING}, @code{PACKAGE_STRING} -@acindex PACKAGE_STRING +@acindex{PACKAGE_STRING} @ovindex PACKAGE_STRING @cvindex PACKAGE_STRING Exactly @samp{@var{package} @var{version}}. @item @code{AC_PACKAGE_BUGREPORT}, @code{PACKAGE_BUGREPORT} -@acindex PACKAGE_BUGREPORT +@acindex{PACKAGE_BUGREPORT} @ovindex PACKAGE_BUGREPORT @cvindex PACKAGE_BUGREPORT Exactly @var{bug-report}. @@ -1534,7 +1640,7 @@ @c FIXME: AC_PREREQ should not be here @defmac AC_PREREQ (@var{version}) -@acindex PREREQ +@acindex{PREREQ} @cindex Version Ensure that a recent enough version of Autoconf is being used. If the version of Autoconf being used to create @command{configure} is earlier @@ -1550,7 +1656,7 @@ @end defmac @defmac AC_COPYRIGHT (@var{copyright-notice}) -@acindex COPYRIGHT +@acindex{COPYRIGHT} @cindex Copyright Notice State that, in addition to the Free Software Foundation's copyright on the Autoconf macros, parts of your @command{configure} are covered by the @@ -1562,7 +1668,7 @@ @defmac AC_REVISION (@var{revision-info}) -@acindex REVISION +@acindex{REVISION} @cindex Revision Copy revision stamp @var{revision-info} into the @command{configure} script, with any dollar signs or double-quotes removed. This macro lets @@ -1593,7 +1699,7 @@ @defmac AC_CONFIG_SRCDIR (@var{unique-file-in-source-dir}) -@acindex CONFIG_SRCDIR +@acindex{CONFIG_SRCDIR} @var{unique-file-in-source-dir} is some file that is in the package's source directory; @command{configure} checks for this file's existence to make sure that the directory that it is told contains the source code in @@ -1611,7 +1717,7 @@ @c told which files to load, and in which order. @c @c @defmac AC_INCLUDE (@var{file}@dots{}) -@c @acindex INCLUDE +@c @acindex{INCLUDE} @c @c FIXME: There is no longer shell globbing. @c Read the macro definitions that appear in the listed files. A list of @c space-separated filenames or shell globbing patterns is expected. The @@ -1633,7 +1739,7 @@ it looks are correct for most cases. @defmac AC_CONFIG_AUX_DIR (@var{dir}) -@acindex CONFIG_AUX_DIR +@acindex{CONFIG_AUX_DIR} Use the auxiliary build tools (e.g., @file{install-sh}, @file{config.sub}, @file{config.guess}, Cygnus @command{configure}, Automake and Libtool scripts etc.) that are in directory @var{dir}. @@ -1659,7 +1765,7 @@ macro besides @code{AC_INIT} (@pxref{Input}). @defmac AC_OUTPUT -@acindex OUTPUT +@acindex{OUTPUT} @cindex Instantiation Generate @file{config.status} and launch it. Call this macro once, at the end of @file{configure.ac}. @@ -1688,7 +1794,7 @@ following macro allows you to use it even with those versions. @defmac AC_PROG_MAKE_SET -@acindex PROG_MAKE_SET +@acindex{PROG_MAKE_SET} @ovindex SET_MAKE If @command{make} predefines the Make variable @code{MAKE}, define output variable @code{SET_MAKE} to be empty. Otherwise, define @@ -1852,7 +1958,7 @@ Be sure to read the previous section, @ref{Configuration Actions}. @defmac AC_CONFIG_FILES (@var{file}@dots{}, @ovar{cmds}, @ovar{init-cmds}) -@acindex CONFIG_FILES +@acindex{CONFIG_FILES} Make @code{AC_OUTPUT} create each @file{@var{file}} by copying an input file (by default @file{@var{file}.in}), substituting the output variable values. @@ -2410,7 +2516,7 @@ directory. @defmac AC_CONFIG_HEADERS (@var{header} @dots{}, @ovar{cmds}, @ovar{init-cmds}) -@acindex CONFIG_HEADERS +@acindex{CONFIG_HEADERS} @cvindex HAVE_CONFIG_H This macro is one of the instantiating macros; see @ref{Configuration Actions}. Make @code{AC_OUTPUT} create the file(s) in the @@ -2615,8 +2721,7 @@ @ref{Defining Symbols}. You may also use one of the following macros. @defmac AH_VERBATIM (@var{key}, @var{template}) -@acindex AH_VERBATIM -@acindex VERBATIM +@ahindex{VERBATIM} Tell @command{autoheader} to include the @var{template} as-is in the header template file. This @var{template} is associated with the @var{key}, which is used to sort all the different templates and guarantee their @@ -2635,8 +2740,7 @@ @defmac AH_TEMPLATE (@var{key}, @var{description}) -@acindex AH_TEMPLATE -@acindex TEMPLATE +@ahindex{TEMPLATE} Tell @command{autoheader} to generate a template for @var{key}. This macro generates standard templates just like @code{AC_DEFINE} when a @var{description} is given. @@ -2665,15 +2769,13 @@ @defmac AH_TOP (@var{text}) -@acindex AH_TOP -@acindex TOP +@ahindex{TOP} Include @var{text} at the top of the header template file. @end defmac @defmac AH_BOTTOM (@var{text}) -@acindex AH_BOTTOM -@acindex BOTTOM +@ahindex{BOTTOM} Include @var{text} at the bottom of the header template file. @end defmac @@ -2688,7 +2790,7 @@ @code{AC_OUTPUT_COMMANDS}; see @ref{Obsolete Macros}, for details. @defmac AC_CONFIG_COMMANDS (@var{tag}@dots{}, @ovar{cmds}, @ovar{init-cmds}) -@acindex CONFIG_COMMANDS +@acindex{CONFIG_COMMANDS} Specify additional shell commands to run at the end of @file{config.status}, and shell commands to initialize any variables from @command{configure}. Associate the commands with @var{tag}. Since @@ -2711,12 +2813,12 @@ @end defmac @defmac AC_CONFIG_COMMANDS_PRE (@var{cmds}) -@acindex OUTPUT_COMMANDS_PRE +@acindex{OUTPUT_COMMANDS_PRE} Execute the @var{cmds} right before creating @file{config.status}. @end defmac @defmac AC_CONFIG_COMMANDS_POST (@var{cmds}) -@acindex OUTPUT_COMMANDS_POST +@acindex{OUTPUT_COMMANDS_POST} Execute the @var{cmds} right after creating @file{config.status}. @end defmac @@ -2732,7 +2834,7 @@ built in a directory different from the source directory. @defmac AC_CONFIG_LINKS (@var{dest}:@var{source}@dots{}, @ovar{cmds}, @ovar{init-cmds}) -@acindex CONFIG_LINKS +@acindex{CONFIG_LINKS} @cindex Links Make @code{AC_OUTPUT} link each of the existing files @var{source} to the corresponding link name @var{dest}. Makes a symbolic link if @@ -2776,7 +2878,7 @@ packages in subdirectories. @defmac AC_CONFIG_SUBDIRS (@var{dir} @dots{}) -@acindex CONFIG_SUBDIRS +@acindex{CONFIG_SUBDIRS} @ovindex subdirs Make @code{AC_OUTPUT} run @command{configure} in each subdirectory @var{dir} in the given whitespace-separated list. Each @var{dir} should @@ -2856,7 +2958,7 @@ @code{AC_PREFIX_DEFAULT} macro. @defmac AC_PREFIX_DEFAULT (@var{prefix}) -@acindex PREFIX_DEFAULT +@acindex{PREFIX_DEFAULT} Set the default installation prefix to @var{prefix} instead of @file{/usr/local}. @end defmac @@ -2867,7 +2969,7 @@ @code{AC_PREFIX_PROGRAM}. @defmac AC_PREFIX_PROGRAM (@var{program}) -@acindex PREFIX_PROGRAM +@acindex{PREFIX_PROGRAM} If the user did not specify an installation prefix (using the @option{--prefix} option), guess a value for it by looking for @var{program} in @code{PATH}, the way the shell does. If @var{program} @@ -3053,7 +3155,7 @@ in some cases whether they support certain features. @defmac AC_PROG_AWK -@acindex PROG_AWK +@acindex{PROG_AWK} @ovindex AWK Check for @code{gawk}, @code{mawk}, @code{nawk}, and @code{awk}, in that order, and set output variable @code{AWK} to the first one that is found. @@ -3062,21 +3164,21 @@ @end defmac @defmac AC_PROG_EGREP -@acindex PROG_EGREP +@acindex{PROG_EGREP} @ovindex EGREP Check for @code{grep -E} and @code{egrep}, in that order, and set output variable @code{EGREP} to the first one that is found. @end defmac @defmac AC_PROG_FGREP -@acindex PROG_FGREP +@acindex{PROG_FGREP} @ovindex FGREP Check for @code{grep -F} and @code{fgrep}, in that order, and set output variable @code{FGREP} to the first one that is found. @end defmac @defmac AC_PROG_INSTALL -@acindex PROG_INSTALL +@acindex{PROG_INSTALL} @ovindex INSTALL @ovindex INSTALL_PROGRAM @ovindex INSTALL_DATA @@ -3111,7 +3213,7 @@ @end defmac @defmac AC_PROG_LEX -@acindex PROG_LEX +@acindex{PROG_LEX} @ovindex LEX @ovindex LEXLIB @cvindex YYTEXT_POINTER @@ -3156,7 +3258,7 @@ @end defmac @defmac AC_PROG_LN_S -@acindex PROG_LN_S +@acindex{PROG_LN_S} @ovindex LN_S If @samp{ln -s} works on the current file system (the operating system and file system support symbolic links), set the output variable @@ -3182,14 +3284,14 @@ @end defmac @defmac AC_PROG_RANLIB -@acindex PROG_RANLIB +@acindex{PROG_RANLIB} @ovindex RANLIB Set output variable @code{RANLIB} to @samp{ranlib} if @code{ranlib} is found, and otherwise to @samp{:} (do nothing). @end defmac @defmac AC_PROG_YACC -@acindex PROG_YACC +@acindex{PROG_YACC} @ovindex YACC If @code{bison} is found, set output variable @code{YACC} to @samp{bison -y}. Otherwise, if @code{byacc} is found, set @code{YACC} to @@ -3217,7 +3319,7 @@ @code{AC_ARG_VAR}, for more details. @defmac AC_CHECK_PROG (@var{variable}, @var{prog-to-check-for}, @var{value-if-found}, @ovar{value-if-not-found}, @ovar{path}, @ovar{reject}) -@acindex CHECK_PROG +@acindex{CHECK_PROG} Check whether program @var{prog-to-check-for} exists in @code{PATH}. If it is found, set @var{variable} to @var{value-if-found}, otherwise to @var{value-if-not-found}, if given. Always pass over @var{reject} (an @@ -3229,7 +3331,7 @@ @end defmac @defmac AC_CHECK_PROGS (@var{variable}, @var{progs-to-check-for}, @ovar{value-if-not-found}, @ovar{path}) -@acindex CHECK_PROGS +@acindex{CHECK_PROGS} Check for each program in the whitespace-separated list @var{progs-to-check-for} existing in the @code{PATH}. If one is found, set @var{variable} to the name of that program. Otherwise, continue @@ -3240,7 +3342,7 @@ @end defmac @defmac AC_CHECK_TOOL (@var{variable}, @var{prog-to-check-for}, @ovar{value-if-not-found}, @ovar{path}) -@acindex CHECK_TOOL +@acindex{CHECK_TOOL} Like @code{AC_CHECK_PROG}, but first looks for @var{prog-to-check-for} with a prefix of the host type as determined by @code{AC_CANONICAL_HOST}, followed by a dash (@pxref{Canonicalizing}). @@ -3256,7 +3358,7 @@ @end defmac @defmac AC_CHECK_TOOLS (@var{variable}, @var{progs-to-check-for}, @ovar{value-if-not-found}, @ovar{path}) -@acindex CHECK_TOOLS +@acindex{CHECK_TOOLS} Like @code{AC_CHECK_TOOL}, each of the tools in the list @var{progs-to-check-for} are checked with a prefix of the host type as determined by @code{AC_CANONICAL_HOST}, followed by a dash @@ -3269,20 +3371,20 @@ @end defmac @defmac AC_PATH_PROG (@var{variable}, @var{prog-to-check-for}, @ovar{value-if-not-found}, @ovar{path}) -@acindex PATH_PROG +@acindex{PATH_PROG} Like @code{AC_CHECK_PROG}, but set @var{variable} to the entire path of @var{prog-to-check-for} if found. @end defmac @defmac AC_PATH_PROGS (@var{variable}, @var{progs-to-check-for}, @ovar{value-if-not-found}, @ovar{path}) -@acindex PATH_PROGS +@acindex{PATH_PROGS} Like @code{AC_CHECK_PROGS}, but if any of @var{progs-to-check-for} are found, set @var{variable} to the entire path of the program found. @end defmac @defmac AC_PATH_TOOL (@var{variable}, @var{prog-to-check-for}, @ovar{value-if-not-found}, @ovar{path}) -@acindex PATH_TOOL +@acindex{PATH_TOOL} Like @code{AC_CHECK_TOOL}, but set @var{variable} to the entire path of the program if it is found. @end defmac @@ -3298,14 +3400,14 @@ of the host machine, and therefore, they die when cross-compiling. @defmac AC_CHECK_FILE (@var{file}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex CHECK_FILE +@acindex{CHECK_FILE} Check whether file @var{file} exists on the native system. If it is found, execute @var{action-if-found}, otherwise do @var{action-if-not-found}, if given. @end defmac @defmac AC_CHECK_FILES (@var{files}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex CHECK_FILES +@acindex{CHECK_FILES} Executes @code{AC_CHECK_FILE} once for each file listed in @var{files}. Additionally, defines @samp{HAVE_@var{file}} (@pxref{Standard Symbols}) for each file found. @@ -3320,7 +3422,7 @@ 77 library archive files. @defmac AC_CHECK_LIB (@var{library}, @var{function}, @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{other-libraries}) -@acindex CHECK_LIB +@acindex{CHECK_LIB} Depending on the current language(@pxref{Language Choice}), try to ensure that the C, C++, or Fortran 77 function @var{function} is available by checking whether a test program can be linked with the @@ -3352,7 +3454,7 @@ @defmac AC_SEARCH_LIBS (@var{function}, @var{search-libs}, @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{other-libraries}) -@acindex SEARCH_LIBS +@acindex{SEARCH_LIBS} Search for a library defining @var{function} if it's not already available. This equates to calling @samp{AC_LINK_IFELSE([AC_LANG_CALL([], [@var{function}])])} first with @@ -3505,7 +3607,7 @@ in some cases how they respond when given certain arguments. @defmac AC_FUNC_ALLOCA -@acindex FUNC_ALLOCA +@acindex{FUNC_ALLOCA} @cvindex C_ALLOCA @cvindex HAVE_ALLOCA_H @ovindex ALLOCA @@ -3560,7 +3662,7 @@ @end defmac @defmac AC_FUNC_CHOWN -@acindex FUNC_CHOWN +@acindex{FUNC_CHOWN} @c @fuindex chown @prindex @code{chown} If the @code{chown} function is available and works (in particular, it @@ -3570,7 +3672,7 @@ @defmac AC_FUNC_CLOSEDIR_VOID -@acindex FUNC_CLOSEDIR_VOID +@acindex{FUNC_CLOSEDIR_VOID} @cvindex CLOSEDIR_VOID @c @fuindex closedir @prindex @code{closedir} @@ -3580,7 +3682,7 @@ @end defmac @defmac AC_FUNC_ERROR_AT_LINE -@acindex FUNC_ERROR_AT_LINE +@acindex{FUNC_ERROR_AT_LINE} @c @fuindex error_at_line @prindex @code{error_at_line} If the @code{error_at_line} function is not found, require an @@ -3588,7 +3690,7 @@ @end defmac @defmac AC_FUNC_FNMATCH -@acindex FUNC_FNMATCH +@acindex{FUNC_FNMATCH} @c @fuindex fnmatch @prindex @code{fnmatch} If the @code{fnmatch} function conforms to @acronym{POSIX}, define @@ -3601,7 +3703,7 @@ @end defmac @defmac AC_FUNC_FNMATCH_GNU -@acindex FUNC_FNMATCH_GNU +@acindex{FUNC_FNMATCH_GNU} @c @fuindex fnmatch @prindex @code{fnmatch} Behave like @code{AC_REPLACE_FNMATCH} (@emph{replace}) but also test @@ -3611,7 +3713,7 @@ @end defmac @defmac AC_FUNC_FORK -@acindex FUNC_FORK +@acindex{FUNC_FORK} @cvindex HAVE_VFORK_H @cvindex HAVE_WORKING_FORK @cvindex HAVE_WORKING_VFORK @@ -3647,7 +3749,7 @@ @end defmac @defmac AC_FUNC_FSEEKO -@acindex FUNC_FSEEKO +@acindex{FUNC_FSEEKO} @cvindex _LARGEFILE_SOURCE @c @fuindex fseeko @prindex @code{fseeko} @@ -3656,7 +3758,7 @@ @end defmac @defmac AC_FUNC_GETGROUPS -@acindex FUNC_GETGROUPS +@acindex{FUNC_GETGROUPS} @ovindex GETGROUPS_LIBS @c @fuindex getgroups @prindex @code{getgroups} @@ -3667,7 +3769,7 @@ @end defmac @defmac AC_FUNC_GETLOADAVG -@acindex FUNC_GETLOADAVG +@acindex{FUNC_GETLOADAVG} @cvindex SVR4 @cvindex DGUX @cvindex UMAX @@ -3723,7 +3825,7 @@ @end defmac @defmac AC_FUNC_GETMNTENT -@acindex FUNC_GETMNTENT +@acindex{FUNC_GETMNTENT} @cvindex HAVE_GETMNTENT @c @fuindex getmntent @prindex @code{getmntent} @@ -3733,7 +3835,7 @@ @end defmac @defmac AC_FUNC_GETPGRP -@acindex FUNC_GETPGRP +@acindex{FUNC_GETPGRP} @cvindex GETPGRP_VOID @c @fuindex getpgid @c @fuindex getpgrp @@ -3758,7 +3860,7 @@ @end defmac @defmac AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK -@acindex FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK +@acindex{FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK} @cvindex LSTAT_FOLLOWS_SLASHED_SYMLINK @c @fuindex lstat @prindex @code{lstat} @@ -3776,7 +3878,7 @@ @end defmac @defmac AC_FUNC_MALLOC -@acindex FUNC_MALLOC +@acindex{FUNC_MALLOC} @cvindex HAVE_MALLOC @cvindex malloc @c @fuindex malloc @@ -3815,7 +3917,7 @@ @end defmac @defmac AC_FUNC_MEMCMP -@acindex FUNC_MEMCMP +@acindex{FUNC_MEMCMP} @ovindex LIBOBJS @c @fuindex memcmp @prindex @code{memcmp} @@ -3827,7 +3929,7 @@ @end defmac @defmac AC_FUNC_MBRTOWC -@acindex FUNC_MBRTOWC +@acindex{FUNC_MBRTOWC} @cvindex HAVE_MBRTOWC @c @fuindex mbrtowc @prindex @code{mbrtowc} @@ -3836,7 +3938,7 @@ @end defmac @defmac AC_FUNC_MKTIME -@acindex FUNC_MKTIME +@acindex{FUNC_MKTIME} @ovindex LIBOBJS @c @fuindex mktime @prindex @code{mktime} @@ -3845,7 +3947,7 @@ @end defmac @defmac AC_FUNC_MMAP -@acindex FUNC_MMAP +@acindex{FUNC_MMAP} @cvindex HAVE_MMAP @c @fuindex mmap @prindex @code{mmap} @@ -3855,7 +3957,7 @@ @end defmac @defmac AC_FUNC_OBSTACK -@acindex FUNC_OBSTACK +@acindex{FUNC_OBSTACK} @cvindex HAVE_OBSTACK @cindex obstack If the obstacks are found, define @code{HAVE_OBSTACK}, else require an @@ -3863,7 +3965,7 @@ @end defmac @defmac AC_FUNC_REALLOC -@acindex FUNC_REALLOC +@acindex{FUNC_REALLOC} @cvindex HAVE_REALLOC @cvindex realloc @c @fuindex realloc @@ -3878,7 +3980,7 @@ @end defmac @defmac AC_FUNC_SELECT_ARGTYPES -@acindex FUNC_SELECT_ARGTYPES +@acindex{FUNC_SELECT_ARGTYPES} @cvindex SELECT_TYPE_ARG1 @cvindex SELECT_TYPE_ARG234 @cvindex SELECT_TYPE_ARG5 @@ -3893,7 +3995,7 @@ @end defmac @defmac AC_FUNC_SETPGRP -@acindex FUNC_SETPGRP +@acindex{FUNC_SETPGRP} @cvindex SETPGRP_VOID @c @fuindex setpgrp @prindex @code{setpgrp} @@ -3906,8 +4008,8 @@ @defmac AC_FUNC_STAT @defmacx AC_FUNC_LSTAT -@acindex FUNC_STAT -@acindex FUNC_LSTAT +@acindex{FUNC_STAT} +@acindex{FUNC_LSTAT} @cvindex HAVE_STAT_EMPTY_STRING_BUG @cvindex HAVE_LSTAT_EMPTY_STRING_BUG @c @fuindex stat @@ -3925,7 +4027,7 @@ @end defmac @defmac AC_FUNC_SETVBUF_REVERSED -@acindex FUNC_SETVBUF_REVERSED +@acindex{FUNC_SETVBUF_REVERSED} @cvindex SETVBUF_REVERSED @c @fuindex setvbuf @prindex @code{setvbuf} @@ -3935,7 +4037,7 @@ @end defmac @defmac AC_FUNC_STRCOLL -@acindex FUNC_STRCOLL +@acindex{FUNC_STRCOLL} @cvindex HAVE_STRCOLL @c @fuindex strcoll @prindex @code{strcoll} @@ -3946,7 +4048,7 @@ @end defmac @defmac AC_FUNC_STRTOD -@acindex FUNC_STRTOD +@acindex{FUNC_STRTOD} @ovindex POW_LIB @c @fuindex strtod @prindex @code{strtod} @@ -3957,7 +4059,7 @@ @end defmac @defmac AC_FUNC_STRERROR_R -@acindex FUNC_STRERROR_R +@acindex{FUNC_STRERROR_R} @cvindex HAVE_STRERROR_R @cvindex HAVE_DECL_STRERROR_R @cvindex STRERROR_R_CHAR_P @@ -3974,7 +4076,7 @@ @end defmac @defmac AC_FUNC_STRFTIME -@acindex FUNC_STRFTIME +@acindex{FUNC_STRFTIME} @cvindex HAVE_STRFTIME @c @fuindex strftime @prindex @code{strftime} @@ -3983,7 +4085,7 @@ @end defmac @defmac AC_FUNC_STRNLEN -@acindex FUNC_STRNLEN +@acindex{FUNC_STRNLEN} @cvindex HAVE_STRNLEN @c @fuindex strnlen @prindex @code{strnlen} @@ -3992,7 +4094,7 @@ @end defmac @defmac AC_FUNC_UTIME_NULL -@acindex FUNC_UTIME_NULL +@acindex{FUNC_UTIME_NULL} @cvindex HAVE_UTIME_NULL @c @fuindex utime @prindex @code{utime} @@ -4001,7 +4103,7 @@ @end defmac @defmac AC_FUNC_VPRINTF -@acindex FUNC_VPRINTF +@acindex{FUNC_VPRINTF} @cvindex HAVE_VPRINTF @cvindex HAVE_DOPRNT @c @fuindex vprintf @@ -4013,7 +4115,7 @@ @end defmac @defmac AC_REPLACE_FNMATCH -@acindex REPLACE_FNMATCH +@acindex{REPLACE_FNMATCH} @c @fuindex fnmatch @prindex @code{fnmatch} If the @code{fnmatch} function does not conform to @acronym{POSIX} (see @@ -4040,7 +4142,7 @@ it (@pxref{Writing Tests}). @defmac AC_CHECK_FUNC (@var{function}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex CHECK_FUNC +@acindex{CHECK_FUNC} If C function @var{function} is available, run shell commands @var{action-if-found}, otherwise @var{action-if-not-found}. If you just want to define a symbol if the function is available, consider using @@ -4051,7 +4153,7 @@ @end defmac @defmac AC_CHECK_FUNCS (@var{function}@dots{}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex CHECK_FUNCS +@acindex{CHECK_FUNCS} @cvindex HAVE_@var{function} For each @var{function} in the whitespace-separated argument list, define @code{HAVE_@var{function}} (in all capitals) if it is available. @@ -4071,7 +4173,7 @@ package must be ready to replace them. @defmac AC_LIBOBJ (@var{function}) -@acindex LIBOBJ +@acindex{LIBOBJ} @ovindex LIBOBJS Specify that @samp{@var{function}.c} must be included in the executables to replace a missing or broken implementation of @var{function}. @@ -4083,7 +4185,7 @@ @end defmac @defmac AC_LIBSOURCE (@var{file}) -@acindex LIBSOURCE +@acindex{LIBSOURCE} Specify that @var{file} might be needed to compile the project. If you need to know what files might be needed by a @file{configure.ac}, you should trace @code{AC_LIBSOURCE}. @var{file} must be a literal. @@ -4112,7 +4214,7 @@ @end defmac @defmac AC_LIBSOURCES (@var{files}) -@acindex LIBSOURCES +@acindex{LIBSOURCES} Like @code{AC_LIBSOURCE}, but accepts one or more @var{files} in a comma-separated M4 list. Thus, the above example might be rewritten: @@ -4123,7 +4225,7 @@ @end defmac @defmac AC_CONFIG_LIBOBJ_DIR (@var{directory}) -@acindex CONFIG_LIBOBJ_DIR +@acindex{CONFIG_LIBOBJ_DIR} Specify that @code{AC_LIBOBJ} replacement files are to be found in @var{directory}, a relative path starting from the top level of the source tree. The replacement directory defaults to @file{.}, the top @@ -4143,7 +4245,7 @@ a convenient shorthand. @defmac AC_REPLACE_FUNCS (@var{function}@dots{}) -@acindex REPLACE_FUNCS +@acindex{REPLACE_FUNCS} @ovindex LIBOBJS Like @code{AC_CHECK_FUNCS}, but uses @samp{AC_LIBOBJ(@var{function})} as @var{action-if-not-found}. You can declare your replacement function by @@ -4194,7 +4296,7 @@ exist, and in some cases whether they declare certain symbols. @defmac AC_HEADER_DIRENT -@acindex HEADER_DIRENT +@acindex{HEADER_DIRENT} @cvindex HAVE_DIRENT_H @cvindex HAVE_NDIR_H @cvindex HAVE_SYS_DIR_H @@ -4242,7 +4344,7 @@ @end defmac @defmac AC_HEADER_MAJOR -@acindex HEADER_MAJOR +@acindex{HEADER_MAJOR} @cvindex MAJOR_IN_MKDEV @cvindex MAJOR_IN_SYSMACROS If @file{sys/types.h} does not define @code{major}, @code{minor}, and @@ -4253,8 +4355,8 @@ @defmac AC_HEADER_STAT -@acindex HEADER_STAT -@acindex STAT_MACROS_BROKEN +@acindex{HEADER_STAT} +@acindex{STAT_MACROS_BROKEN} If the macros @code{S_ISDIR}, @code{S_ISREG}, etc.@: defined in @file{sys/stat.h} do not work properly (returning false positives), define @code{STAT_MACROS_BROKEN}. This is the case on Tektronix UTekV, @@ -4262,7 +4364,7 @@ @end defmac @defmac AC_HEADER_STDBOOL -@acindex HEADER_STDBOOL +@acindex{HEADER_STDBOOL} @cvindex HAVE_STDBOOL_H @cvindex HAVE__BOOL If @file{stdbool.h} exists and is conformant to C99, define @@ -4291,7 +4393,7 @@ @defmac AC_HEADER_STDC -@acindex HEADER_STDC +@acindex{HEADER_STDC} @cvindex STDC_HEADERS Define @code{STDC_HEADERS} if the system has @acronym{ANSI} C header files. Specifically, this macro checks for @file{stdlib.h}, @file{stdarg.h}, @@ -4358,7 +4460,7 @@ @end defmac @defmac AC_HEADER_SYS_WAIT -@acindex HEADER_SYS_WAIT +@acindex{HEADER_SYS_WAIT} @cvindex HAVE_SYS_WAIT_H If @file{sys/wait.h} exists and is compatible with @acronym{POSIX}, define @code{HAVE_SYS_WAIT_H}. Incompatibility can occur if @file{sys/wait.h} @@ -4406,7 +4508,7 @@ @end example @defmac AC_HEADER_TIME -@acindex HEADER_TIME +@acindex{HEADER_TIME} @cvindex TIME_WITH_SYS_TIME If a program may include both @file{time.h} and @file{sys/time.h}, define @code{TIME_WITH_SYS_TIME}. On some older systems, @@ -4436,7 +4538,7 @@ @defmac AC_HEADER_TIOCGWINSZ -@acindex HEADER_TIOCGWINSZ +@acindex{HEADER_TIOCGWINSZ} @cvindex GWINSZ_IN_SYS_IOCTL @c FIXME: I need clarifications from Jim. If the use of @code{TIOCGWINSZ} requires @file{}, then @@ -4467,7 +4569,7 @@ test for it (@pxref{Writing Tests}). @defmac AC_CHECK_HEADER (@var{header-file}, @ovar{action-if-found}, @ovar{action-if-not-found}, @dvar{includes, default-includes}) -@acindex CHECK_HEADER +@acindex{CHECK_HEADER} If the system header file @var{header-file} is compilable, execute shell commands @var{action-if-found}, otherwise execute @var{action-if-not-found}. If you just want to define a symbol if the @@ -4479,7 +4581,7 @@ @end defmac @defmac AC_CHECK_HEADERS (@var{header-file}@dots{}, @ovar{action-if-found}, @ovar{action-if-not-found}, @dvar{includes, default-includes}) -@acindex CHECK_HEADERS +@acindex{CHECK_HEADERS} @cvindex HAVE_@var{header} For each given system header file @var{header-file} in the whitespace-separated argument list that exists, define @@ -4544,7 +4646,7 @@ test macros. @defmac AC_CHECK_DECL (@var{symbol}, @ovar{action-if-found}, @ovar{action-if-not-found}, @dvar{includes, default-includes}) -@acindex CHECK_DECL +@acindex{CHECK_DECL} If @var{symbol} (a function or a variable) is not declared in @var{includes} and a declaration is needed, run the shell commands @var{action-if-not-found}, otherwise @var{action-if-found}. If no @@ -4557,7 +4659,7 @@ @end defmac @defmac AC_CHECK_DECLS (@var{symbols}, @ovar{action-if-found}, @ovar{action-if-not-found}, @dvar{includes, default-includes}) -@acindex CHECK_DECLS +@acindex{CHECK_DECLS} @cvindex HAVE_DECL_@var{symbol} For each of the @var{symbols} (@emph{comma}-separated list), define @code{HAVE_DECL_@var{symbol}} (in all capitals) to @samp{1} if @@ -4624,7 +4726,7 @@ The following macros check for certain structures or structure members. @defmac AC_STRUCT_ST_BLKSIZE -@acindex STRUCT_ST_BLKSIZE +@acindex{STRUCT_ST_BLKSIZE} @cvindex HAVE_STRUCT_STAT_ST_BLKSIZE @cvindex HAVE_ST_BLKSIZE If @code{struct stat} contains an @code{st_blksize} member, define @@ -4638,7 +4740,7 @@ @end defmac @defmac AC_STRUCT_ST_BLOCKS -@acindex STRUCT_ST_BLOCKS +@acindex{STRUCT_ST_BLOCKS} @cvindex HAVE_STRUCT_STAT_ST_BLOCKS @cvindex HAVE_ST_BLOCKS @ovindex LIBOBJS @@ -4650,7 +4752,7 @@ @end defmac @defmac AC_STRUCT_ST_RDEV -@acindex STRUCT_ST_RDEV +@acindex{STRUCT_ST_RDEV} @cvindex HAVE_ST_RDEV @cvindex HAVE_STRUCT_STAT_ST_RDEV If @code{struct stat} contains an @code{st_rdev} member, define @@ -4664,7 +4766,7 @@ @end defmac @defmac AC_STRUCT_TM -@acindex STRUCT_TM +@acindex{STRUCT_TM} @cvindex TM_IN_SYS_TIME If @file{time.h} does not define @code{struct tm}, define @code{TM_IN_SYS_TIME}, which means that including @file{sys/time.h} @@ -4672,7 +4774,7 @@ @end defmac @defmac AC_STRUCT_TIMEZONE -@acindex STRUCT_TIMEZONE +@acindex{STRUCT_TIMEZONE} @cvindex HAVE_TM_ZONE @cvindex HAVE_TZNAME Figure out how to get the current timezone. If @code{struct tm} has a @@ -4688,7 +4790,7 @@ ``particular'' test macros. @defmac AC_CHECK_MEMBER (@var{aggregate}.@var{member}, @ovar{action-if-found}, @ovar{action-if-not-found}, @dvar{includes, default-includes}) -@acindex CHECK_MEMBER +@acindex{CHECK_MEMBER} Check whether @var{member} is a member of the aggregate @var{aggregate}. If no @var{includes} are specified, the default includes are used (@pxref{Default Includes}). @@ -4707,7 +4809,7 @@ @end defmac @defmac AC_CHECK_MEMBERS (@var{members}, @ovar{action-if-found}, @ovar{action-if-not-found}, @dvar{includes, default-includes}) -@acindex CHECK_MEMBERS +@acindex{CHECK_MEMBERS} Check for the existence of each @samp{@var{aggregate}.@var{member}} of @var{members} using the previous macro. When @var{member} belongs to @var{aggregate}, define @code{HAVE_@var{aggregate}_@var{member}} (in all @@ -4740,14 +4842,14 @@ @file{stdlib.h} and others, if they exist. @defmac AC_TYPE_GETGROUPS -@acindex TYPE_GETGROUPS +@acindex{TYPE_GETGROUPS} @cvindex GETGROUPS_T Define @code{GETGROUPS_T} to be whichever of @code{gid_t} or @code{int} is the base type of the array argument to @code{getgroups}. @end defmac @defmac AC_TYPE_MBSTATE_T -@acindex TYPE_MBSTATE_T +@acindex{TYPE_MBSTATE_T} @cvindex mbstate_t Define @code{HAVE_MBSTATE_T} if @code{} declares the @code{mbstate_t} type. Also, define @code{mbstate_t} to be a type if @@ -4755,25 +4857,25 @@ @end defmac @defmac AC_TYPE_MODE_T -@acindex TYPE_MODE_T +@acindex{TYPE_MODE_T} @cvindex mode_t Equivalent to @samp{AC_CHECK_TYPE(mode_t, int)}. @end defmac @defmac AC_TYPE_OFF_T -@acindex TYPE_OFF_T +@acindex{TYPE_OFF_T} @cvindex off_t Equivalent to @samp{AC_CHECK_TYPE(off_t, long)}. @end defmac @defmac AC_TYPE_PID_T -@acindex TYPE_PID_T +@acindex{TYPE_PID_T} @cvindex pid_t Equivalent to @samp{AC_CHECK_TYPE(pid_t, int)}. @end defmac @defmac AC_TYPE_SIGNAL -@acindex TYPE_SIGNAL +@acindex{TYPE_SIGNAL} @cvindex RETSIGTYPE If @file{signal.h} declares @code{signal} as returning a pointer to a function returning @code{void}, define @code{RETSIGTYPE} to be @@ -4793,13 +4895,13 @@ @end defmac @defmac AC_TYPE_SIZE_T -@acindex TYPE_SIZE_T +@acindex{TYPE_SIZE_T} @cvindex size_t Equivalent to @samp{AC_CHECK_TYPE(size_t, unsigned)}. @end defmac @defmac AC_TYPE_UID_T -@acindex TYPE_UID_T +@acindex{TYPE_UID_T} @cvindex uid_t @cvindex gid_t If @code{uid_t} is not defined, define @code{uid_t} to be @code{int} and @@ -4813,14 +4915,14 @@ test macros. @defmac AC_CHECK_TYPE (@var{type}, @ovar{action-if-found}, @ovar{action-if-not-found}, @dvar{includes, default-includes}) -@acindex CHECK_TYPE +@acindex{CHECK_TYPE} Check whether @var{type} is defined. It may be a compiler builtin type or defined by the @var{includes} (@pxref{Default Includes}). @end defmac @defmac AC_CHECK_TYPES (@var{types}, @ovar{action-if-found}, @ovar{action-if-not-found}, @dvar{includes, default-includes}) -@acindex CHECK_TYPES +@acindex{CHECK_TYPES} For each @var{type} of the @var{types} that is defined, define @code{HAVE_@var{type}} (in all capitals). If no @var{includes} are specified, the default includes are used (@pxref{Default Includes}). If @@ -4911,7 +5013,7 @@ @subsection Generic Compiler Characteristics @defmac AC_CHECK_SIZEOF (@var{type}, @ovar{unused}, @dvar{includes, default-includes}) -@acindex CHECK_SIZEOF +@acindex{CHECK_SIZEOF} Define @code{SIZEOF_@var{type}} (@pxref{Standard Symbols}) to be the size in bytes of @var{type}. If @samp{type} is unknown, it gets a size of 0. If no @var{includes} are specified, the default includes are used @@ -4995,7 +5097,7 @@ @end table @defmac AC_PROG_CC (@ovar{compiler-search-list}) -@acindex PROG_CC +@acindex{PROG_CC} @ovindex CC @ovindex CFLAGS Determine a C compiler to use. If @code{CC} is not already set in the @@ -5034,7 +5136,7 @@ @end defmac @defmac AC_PROG_CC_C_O -@acindex PROG_CC_C_O +@acindex{PROG_CC_C_O} @cvindex NO_MINUS_C_MINUS_O If the C compiler does not accept the @option{-c} and @option{-o} options simultaneously, define @code{NO_MINUS_C_MINUS_O}. This macro actually @@ -5046,7 +5148,7 @@ @defmac AC_PROG_CPP -@acindex PROG_CPP +@acindex{PROG_CPP} @ovindex CPP Set output variable @code{CPP} to a command that runs the C preprocessor. If @samp{$CC -E} doesn't work, @file{/lib/cpp} is used. @@ -5066,13 +5168,13 @@ @code{AC_RUN_IFELSE} (@pxref{Run Time}). @defmac AC_C_BACKSLASH_A -@acindex HAVE_C_BACKSLASH_A +@acindex{HAVE_C_BACKSLASH_A} Define @samp{HAVE_C_BACKSLASH_A} to 1 if the C compiler understands @samp{\a}. @end defmac @defmac AC_C_BIGENDIAN (@ovar{action-if-true}, @ovar{action-if-false}, @ovar{action-if-unknown}) -@acindex C_BIGENDIAN +@acindex{C_BIGENDIAN} @cvindex WORDS_BIGENDIAN @cindex Endianness If words are stored with the most significant byte first (like Motorola @@ -5093,7 +5195,7 @@ @end defmac @defmac AC_C_CONST -@acindex C_CONST +@acindex{C_CONST} @cvindex const If the C compiler does not fully support the @acronym{ANSI} C qualifier @code{const}, define @code{const} to be empty. Some C compilers that do @@ -5123,7 +5225,7 @@ @end defmac @defmac AC_C_VOLATILE -@acindex C_VOLATILE +@acindex{C_VOLATILE} @cvindex volatile If the C compiler does not understand the keyword @code{volatile}, define @code{volatile} to be empty. Programs can simply use @@ -5144,7 +5246,7 @@ @end defmac @defmac AC_C_INLINE -@acindex C_INLINE +@acindex{C_INLINE} @cvindex inline If the C compiler supports the keyword @code{inline}, do nothing. Otherwise define @code{inline} to @code{__inline__} or @code{__inline} @@ -5152,14 +5254,14 @@ @end defmac @defmac AC_C_CHAR_UNSIGNED -@acindex C_CHAR_UNSIGNED +@acindex{C_CHAR_UNSIGNED} @cvindex __CHAR_UNSIGNED__ If the C type @code{char} is unsigned, define @code{__CHAR_UNSIGNED__}, unless the C compiler predefines it. @end defmac @defmac AC_C_LONG_DOUBLE -@acindex C_LONG_DOUBLE +@acindex{C_LONG_DOUBLE} @cvindex HAVE_LONG_DOUBLE If the C compiler supports a working @code{long double} type with more range or precision than the @code{double} type, define @@ -5167,7 +5269,7 @@ @end defmac @defmac AC_C_STRINGIZE -@acindex C_STRINGIZE +@acindex{C_STRINGIZE} @cvindex HAVE_STRINGIZE If the C preprocessor supports the stringizing operator, define @code{HAVE_STRINGIZE}. The stringizing operator is @samp{#} and is @@ -5179,7 +5281,7 @@ @end defmac @defmac AC_C_PROTOTYPES -@acindex C_PROTOTYPES +@acindex{C_PROTOTYPES} @cvindex PROTOTYPES @cvindex __PROTOTYPES @cvindex PARAMS @@ -5212,7 +5314,7 @@ header files that cannot use macros that infringe on user name space. @defmac AC_PROG_GCC_TRADITIONAL -@acindex PROG_GCC_TRADITIONAL +@acindex{PROG_GCC_TRADITIONAL} @ovindex CC Add @option{-traditional} to output variable @code{CC} if using the @acronym{GNU} C compiler and @code{ioctl} does not work properly without @@ -5228,7 +5330,7 @@ @defmac AC_PROG_CXX (@ovar{compiler-search-list}) -@acindex PROG_CXX +@acindex{PROG_CXX} @ovindex CXX @ovindex CXXFLAGS Determine a C++ compiler to use. Check if the environment variable @@ -5259,7 +5361,7 @@ @end defmac @defmac AC_PROG_CXXCPP -@acindex PROG_CXXCPP +@acindex{PROG_CXXCPP} @ovindex CXXCPP Set output variable @code{CXXCPP} to a command that runs the C++ preprocessor. If @samp{$CXX -E} doesn't work, @file{/lib/cpp} is used. @@ -5279,7 +5381,7 @@ @subsection Fortran 77 Compiler Characteristics @defmac AC_PROG_F77 (@ovar{compiler-search-list}) -@acindex PROG_FORTRAN +@acindex{PROG_FORTRAN} @ovindex F77 @ovindex FFLAGS Determine a Fortran 77 compiler to use. If @code{F77} is not already @@ -5307,7 +5409,7 @@ @end defmac @defmac AC_PROG_F77_C_O -@acindex PROG_F77_C_O +@acindex{PROG_F77_C_O} @cvindex F77_NO_MINUS_C_MINUS_O Test if the Fortran 77 compiler accepts the options @option{-c} and @option{-o} simultaneously, and define @code{F77_NO_MINUS_C_MINUS_O} if it @@ -5323,7 +5425,7 @@ @defmac AC_F77_LIBRARY_LDFLAGS -@acindex F77_LIBRARY_LDFLAGS +@acindex{F77_LIBRARY_LDFLAGS} @ovindex FLIBS Determine the linker flags (e.g., @option{-L} and @option{-l}) for the @dfn{Fortran 77 intrinsic and run-time libraries} that are required to @@ -5353,7 +5455,7 @@ @defmac AC_F77_DUMMY_MAIN (@ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex F77_DUMMY_MAIN +@acindex{F77_DUMMY_MAIN} @cvindex F77_DUMMY_MAIN With many compilers, the Fortran libraries detected by @code{AC_F77_LIBRARY_LDFLAGS} provide their own @code{main} entry @@ -5394,7 +5496,7 @@ @end defmac @defmac AC_F77_MAIN -@acindex F77_MAIN +@acindex{F77_MAIN} @cvindex F77_MAIN As discussed above for @code{AC_F77_DUMMY_MAIN}, many Fortran libraries allow you to provide an entry point called (say) @code{MAIN__} instead of @@ -5411,7 +5513,7 @@ @end defmac @defmac AC_F77_WRAPPERS -@acindex F77_WRAPPERS +@acindex{F77_WRAPPERS} @cvindex F77_FUNC @cvindex F77_FUNC_ Defines C macros @code{F77_FUNC(name,NAME)} and @@ -5475,7 +5577,7 @@ @end defmac @defmac AC_F77_FUNC (@var{name}, @ovar{shellvar}) -@acindex F77_FUNC +@acindex{F77_FUNC} Given an identifier @var{name}, set the shell variable @var{shellvar} to hold the mangled version @var{name} according to the rules of the Fortran 77 linker (see also @code{AC_F77_WRAPPERS}). @var{shellvar} is @@ -5492,7 +5594,7 @@ The following macros check for operating system services or capabilities. @defmac AC_PATH_X -@acindex PATH_X +@acindex{PATH_X} Try to locate the X Window System include files and libraries. If the user gave the command line options @option{--x-includes=@var{dir}} and @option{--x-libraries=@var{dir}}, use those directories. If either or @@ -5510,7 +5612,7 @@ @end defmac @defmac AC_PATH_XTRA -@acindex PATH_XTRA +@acindex{PATH_XTRA} @ovindex X_CFLAGS @ovindex X_LIBS @ovindex X_EXTRA_LIBS @@ -5534,7 +5636,7 @@ @end defmac @defmac AC_SYS_INTERPRETER -@acindex SYS_INTERPRETER +@acindex{SYS_INTERPRETER} Check whether the system supports starting scripts with a line of the form @samp{#! /bin/csh} to select the interpreter to use for the script. After running this macro, shell code in @file{configure.ac} can check @@ -5543,7 +5645,7 @@ @end defmac @defmac AC_SYS_LARGEFILE -@acindex SYS_LARGEFILE +@acindex{SYS_LARGEFILE} @cvindex _FILE_OFFSET_BITS @cvindex _LARGE_FILES @ovindex CC @@ -5565,14 +5667,14 @@ @end defmac @defmac AC_SYS_LONG_FILE_NAMES -@acindex SYS_LONG_FILE_NAMES +@acindex{SYS_LONG_FILE_NAMES} @cvindex HAVE_LONG_FILE_NAMES If the system supports file names longer than 14 characters, define @code{HAVE_LONG_FILE_NAMES}. @end defmac @defmac AC_SYS_POSIX_TERMIOS -@acindex SYS_POSIX_TERMIOS +@acindex{SYS_POSIX_TERMIOS} @cindex POSIX termios headers @cindex termios POSIX headers Check to see if the POSIX termios headers and functions are available on the @@ -5590,14 +5692,14 @@ available or the environments they provide. @defmac AC_AIX -@acindex AIX +@acindex{AIX} @cvindex _ALL_SOURCE If on @acronym{AIX}, define @code{_ALL_SOURCE}. Allows the use of some @acronym{BSD} functions. Should be called before any macros that run the C compiler. @end defmac @defmac AC_GNU_SOURCE -@acindex GNU_SOURCE +@acindex{GNU_SOURCE} @cvindex _GNU_SOURCE If using the @acronym{GNU} C library, define @code{_GNU_SOURCE}. Allows the use of some @acronym{GNU} functions. Should be called @@ -5605,7 +5707,7 @@ @end defmac @defmac AC_ISC_POSIX -@acindex ISC_POSIX +@acindex{ISC_POSIX} @ovindex LIBS For @sc{interactive unix} (@acronym{ISC}), add @option{-lcposix} to output variable @code{LIBS} if necessary for @acronym{POSIX} facilities. Call this @@ -5616,7 +5718,7 @@ @end defmac @defmac AC_MINIX -@acindex MINIX +@acindex{MINIX} @cvindex _MINIX @cvindex _POSIX_SOURCE @cvindex _POSIX_1_SOURCE @@ -5702,14 +5804,14 @@ @end defmac @defmac AC_LANG_PUSH (@var{language}) -@acindex LANG_PUSH +@acindex{LANG_PUSH} Remember the current language (as set by @code{AC_LANG}) on a stack, and then select the @var{language}. Use this macro and @code{AC_LANG_POP} in macros that need to temporarily switch to a particular language. @end defmac @defmac AC_LANG_POP (@ovar{language}) -@acindex LANG_POP +@acindex{LANG_POP} Select the language that is saved on the top of the stack, as set by @code{AC_LANG_PUSH}, and remove it from the stack. @@ -5726,7 +5828,7 @@ @end defmac @defmac AC_REQUIRE_CPP -@acindex REQUIRE_CPP +@acindex{REQUIRE_CPP} Ensure that whichever preprocessor would currently be used for tests has been found. Calls @code{AC_REQUIRE} (@pxref{Prerequisite Macros}) with an argument of either @code{AC_PROG_CPP} or @code{AC_PROG_CXXCPP}, @@ -5848,7 +5950,7 @@ @defmac AC_LANG_CONFTEST (@var{source}) -@acindex LANG_CONFTEST +@acindex{LANG_CONFTEST} Save the @var{source} text in the current test source file: @file{conftest.@var{extension}} where the @var{extension} depends on the current language. @@ -5859,7 +5961,7 @@ @end defmac @defmac AC_LANG_SOURCE (@var{source}) -@acindex LANG_SOURCE +@acindex{LANG_SOURCE} Expands into the @var{source}, with the definition of all the @code{AC_DEFINE} performed so far. @end defmac @@ -5895,7 +5997,7 @@ @end example @defmac AC_LANG_PROGRAM (@var{prologue}, @var{body}) -@acindex LANG_PROGRAM +@acindex{LANG_PROGRAM} Expands into a source file which consists of the @var{prologue}, and then @var{body} as body of the main function (e.g., @code{main} in C). Since it uses @code{AC_LANG_SOURCE}, the feature of the latter are @@ -5942,7 +6044,7 @@ @defmac AC_LANG_CALL (@var{prologue}, @var{function}) -@acindex LANG_CALL +@acindex{LANG_CALL} Expands into a source file which consists of the @var{prologue}, and then a call to the @var{function} as body of the main function (e.g., @code{main} in C). Since it uses @code{AC_LANG_PROGRAMS}, the feature @@ -5955,7 +6057,7 @@ @defmac AC_LANG_FUNC_LINK_TRY (@var{function}) -@acindex LANG_FUNC_LINK_TRY +@acindex{LANG_FUNC_LINK_TRY} Expands into a source file which consists of a pseudo use of the @var{function} as body of the main function (e.g., @code{main} in C): a simple (function pointer) assignment. Since it uses @@ -5980,7 +6082,7 @@ @code{AC_PREPROC_IFELSE}. @defmac AC_PREPROC_IFELSE (@var{input}, @ovar{action-if-true}, @ovar{action-if-false}) -@acindex PREPROC_IFELSE +@acindex{PREPROC_IFELSE} Run the preprocessor of the current language (@pxref{Language Choice}) on the @var{input}, run the shell commands @var{action-if-true} on success, @var{action-if-false} otherwise. The @var{input} can be made @@ -6033,7 +6135,7 @@ to run the @emph{preprocessor} and not the compiler? @defmac AC_EGREP_HEADER (@var{pattern}, @var{header-file}, @var{action-if-found}, @ovar{action-if-not-found}) -@acindex EGREP_HEADER +@acindex{EGREP_HEADER} If the output of running the preprocessor on the system header file @var{header-file} matches the extended regular expression @var{pattern}, execute shell commands @var{action-if-found}, otherwise @@ -6041,7 +6143,7 @@ @end defmac @defmac AC_EGREP_CPP (@var{pattern}, @var{program}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex EGREP_CPP +@acindex{EGREP_CPP} @var{program} is the text of a C or C++ program, on which shell variable, back quote, and backslash substitutions are performed. If the output of running the preprocessor on @var{program} matches the @@ -6061,7 +6163,7 @@ @defmac AC_COMPILE_IFELSE (@var{input}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex COMPILE_IFELSE +@acindex{COMPILE_IFELSE} Run the compiler of the current language (@pxref{Language Choice}) on the @var{input}, run the shell commands @var{action-if-true} on success, @var{action-if-false} otherwise. The @var{input} can be made by @@ -6101,7 +6203,7 @@ @defmac AC_LINK_IFELSE (@var{input}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex LINK_IFELSE +@acindex{LINK_IFELSE} Run the compiler and the linker of the current language (@pxref{Language Choice}) on the @var{input}, run the shell commands @var{action-if-true} on success, @var{action-if-false} otherwise. The @var{input} can be made @@ -6135,7 +6237,7 @@ cross-compiling. @defmac AC_RUN_IFELSE (@var{input}, @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{action-if-cross-compiling}) -@acindex RUN_IFELSE +@acindex{RUN_IFELSE} If @var{program} compiles and links successfully and returns an exit status of 0 when executed, run shell commands @var{action-if-true}. Otherwise, run shell commands @var{action-if-false}. @@ -6320,7 +6422,7 @@ @defmac AC_DEFINE (@var{variable}, @var{value}, @ovar{description}) @defmacx AC_DEFINE (@var{variable}) -@acindex DEFINE +@acindex{DEFINE} Define the C preprocessor variable @var{variable} to @var{value} (verbatim). @var{value} should not contain literal newlines, and if you are not using @code{AC_CONFIG_HEADERS} it should not contain any @samp{#} @@ -6345,7 +6447,7 @@ @defmac AC_DEFINE_UNQUOTED (@var{variable}, @var{value}, @ovar{description}) @defmacx AC_DEFINE_UNQUOTED (@var{variable}) -@acindex DEFINE_UNQUOTED +@acindex{DEFINE_UNQUOTED} Like @code{AC_DEFINE}, but three shell expansions are performed---once---on @var{variable} and @var{value}: variable expansion (@samp{$}), command substitution (@samp{`}), and backslash escaping @@ -6396,7 +6498,7 @@ variables that are always available. @defmac AC_SUBST (@var{variable}, @ovar{value}) -@acindex SUBST +@acindex{SUBST} Create an output variable from a shell variable. Make @code{AC_OUTPUT} substitute the variable @var{variable} into output files (typically one or more @file{Makefile}s). This means that @code{AC_OUTPUT} will @@ -6409,7 +6511,7 @@ @end defmac @defmac AC_SUBST_FILE (@var{variable}) -@acindex SUBST_FILE +@acindex{SUBST_FILE} Another way to create an output variable from a shell variable. Make @code{AC_OUTPUT} insert (without substitutions) the contents of the file named by shell variable @var{variable} into output files. This means @@ -6454,7 +6556,7 @@ by @code{AC_ARG_VAR}. @defmac AC_ARG_VAR (@var{variable}, @var{description}) -@acindex ARG_VAR +@acindex{ARG_VAR} Declare @var{variable} is a precious variable, and include its @var{description} in the variable section of @samp{./configure --help}. @@ -6524,7 +6626,7 @@ perform all of the checks every time. @defmac AC_CACHE_VAL (@var{cache-id}, @var{commands-to-set-it}) -@acindex CACHE_VAL +@acindex{CACHE_VAL} Ensure that the results of the check identified by @var{cache-id} are available. If the results of the check were in the cache file that was read, and @command{configure} was not given the @option{--quiet} or @@ -6540,7 +6642,7 @@ @end defmac @defmac AC_CACHE_CHECK (@var{message}, @var{cache-id}, @var{commands-to-set-it}) -@acindex CACHE_CHECK +@acindex{CACHE_CHECK} A wrapper for @code{AC_CACHE_VAL} that takes care of printing the messages. This macro provides a convenient shorthand for the most common way to use these macros. It calls @code{AC_MSG_CHECKING} for @@ -6698,13 +6800,13 @@ @c FIXME: Do we really want to document this guy? @defmac AC_CACHE_LOAD -@acindex CACHE_LOAD +@acindex{CACHE_LOAD} Loads values from existing cache file, or creates a new cache file if a cache file is not found. Called automatically from @code{AC_INIT}. @end defmac @defmac AC_CACHE_SAVE -@acindex CACHE_SAVE +@acindex{CACHE_SAVE} Flushes all cached values to the cache file. Called automatically from @code{AC_OUTPUT}, but it can be quite useful to call @code{AC_CACHE_SAVE} at key points in @file{configure.ac}. @@ -6759,7 +6861,7 @@ @ref{Reporting Messages}. @defmac AC_MSG_CHECKING (@var{feature-description}) -@acindex MSG_CHECKING +@acindex{MSG_CHECKING} Notify the user that @command{configure} is checking for a particular feature. This macro prints a message that starts with @samp{checking } and ends with @samp{...} and no newline. It must be followed by a call @@ -6773,7 +6875,7 @@ @end defmac @defmac AC_MSG_RESULT (@var{result-description}) -@acindex MSG_RESULT +@acindex{MSG_RESULT} Notify the user of the results of a check. @var{result-description} is almost always the value of the cache variable for the check, typically @samp{yes}, @samp{no}, or a file name. This macro should follow a call @@ -6786,7 +6888,7 @@ @end defmac @defmac AC_MSG_NOTICE (@var{message}) -@acindex MSG_NOTICE +@acindex{MSG_NOTICE} Deliver the @var{message} to the user. It is useful mainly to print a general description of the overall purpose of a group of feature checks, e.g., @@ -6800,7 +6902,7 @@ @end defmac @defmac AC_MSG_ERROR (@var{error-description}, @ovar{exit-status}) -@acindex MSG_ERROR +@acindex{MSG_ERROR} Notify the user of an error that prevents @command{configure} from completing. This macro prints an error message to the standard error output and exits @command{configure} with @var{exit-status} (1 by default). @@ -6812,7 +6914,7 @@ @end defmac @defmac AC_MSG_FAILURE (@var{error-description}, @ovar{exit-status}) -@acindex MSG_FAILURE +@acindex{MSG_FAILURE} This @code{AC_MSG_ERROR} wrapper notifies the user of an error that prevents @command{configure} from completing @emph{and} that additional details are provided in @file{config.log}. This is typically used when @@ -6820,7 +6922,7 @@ @end defmac @defmac AC_MSG_WARN (@var{problem-description}) -@acindex MSG_WARN +@acindex{MSG_WARN} Notify the @command{configure} user of a possible problem. This macro prints the message to the standard error output; @command{configure} continues running afterward, so macros that call @code{AC_MSG_WARN} should @@ -7771,30 +7873,30 @@ native equivalent. @defmac dnl -@msindex dnl +@msindex{dnl} This macro kept its original name: no @code{m4_dnl} is defined. @end defmac @defmac m4_defn (@var{macro}) -@msindex defn +@msindex{defn} Contrary to the M4 builtin, this macro fails if @var{macro} is not defined. See @code{m4_undefine}. @end defmac @defmac m4_exit (@var{exit-status}) -@msindex m4_exit +@msindex{exit} This macro corresponds to @code{m4exit}. @end defmac @defmac m4_if (@var{comment}) @defmacx m4_if (@var{string-1}, @var{string-2}, @var{equal}, @ovar{not-equal}) @defmacx m4_if (@var{string-1}, @var{string-2}, @var{equal}, @dots{}) -@msindex m4_if +@msindex{if} This macro corresponds to @code{ifelse}. @end defmac @defmac m4_undefine (@var{macro}) -@msindex undefine +@msindex{undefine} Contrary to the M4 builtin, this macro fails if @var{macro} is not defined. Use @@ -7807,27 +7909,27 @@ @end defmac @defmac m4_bpatsubst (@var{string}, @var{regexp}, @ovar{replacement}) -@msindex bpatsubst +@msindex{bpatsubst} This macro corresponds to @code{patsubst}. The name @code{m4_patsubst} is kept for future versions of M4sh, on top of @acronym{GNU} M4 which will provide extended regular expression syntax via @code{epatsubst}. @end defmac @defmac m4_popdef (@var{macro}) -@msindex defn +@msindex{popdef} Contrary to the M4 builtin, this macro fails if @var{macro} is not defined. See @code{m4_undefine}. @end defmac @defmac m4_bregexp (@var{string}, @var{regexp}, @ovar{replacement}) -@msindex bregexp +@msindex{bregexp} This macro corresponds to @code{regexp}. The name @code{m4_regexp} is kept for future versions of M4sh, on top of @acronym{GNU} M4 which will provide extended regular expression syntax via @code{eregexp}. @end defmac @defmac m4_wrap (@var{text}) -@msindex m4_wrap +@msindex{wrap} This macro corresponds to @code{m4wrap}. You are encouraged to end @var{text} with @samp{[]}, so that there are @@ -7852,12 +7954,12 @@ programmers. @defmac m4_dquote (@var{arg1}, @dots{}) -@msindex dquote +@msindex{dquote} Return the arguments as a quoted list of quoted arguments. @end defmac @defmac m4_quote (@var{arg1}, @dots{}) -@msindex quote +@msindex{quote} Return the arguments as a single entity, i.e., wrap them into a pair of quotes. @end defmac @@ -7894,7 +7996,7 @@ M4sugar forbids all the tokens matching @samp{^m4_} and @samp{^dnl$}. @defmac m4_pattern_forbid (@var{pattern}) -@msindex pattern_forbid +@msindex{pattern_forbid} Declare that no token matching @var{pattern} must be found in the output. Comments are not checked; this can be a problem if, for instance, you have some macro left unexpanded after an @samp{#include}. No consensus @@ -7908,7 +8010,7 @@ instance you might have to refer to @samp{$m4_flags}. @defmac m4_pattern_allow (@var{pattern}) -@msindex pattern_allow +@msindex{pattern_allow} Any token matching @var{pattern} is allowed, including if it matches an @code{m4_pattern_forbid} pattern. @end defmac @@ -7947,7 +8049,7 @@ that unfortunately are not portable in practice. @defmac AS_DIRNAME (@var{pathname}) -@msindex DIRNAME +@asindex{DIRNAME} Return the directory portion of @var{pathname}, using the algorithm required by @acronym{POSIX}. @xref{Limitations of Usual Tools}, for more details about what this returns and why it is more portable than the @@ -7955,7 +8057,7 @@ @end defmac @defmac AS_MKDIR_P (@var{filename}) -@msindex MKDIR_P +@asindex{MKDIR_P} Make the directory @var{filename}, including intervening directories as necessary. This is equivalent to @samp{mkdir -p @var{filename}}, except that it is portable to older versions of @command{mkdir} that @@ -7983,7 +8085,7 @@ @node Macro Definitions @section Macro Definitions -@acindex DEFUN +@acindex{DEFUN} Autoconf macros are defined using the @code{AC_DEFUN} macro, which is similar to the M4 builtin @code{m4_define} macro. In addition to defining a macro, @code{AC_DEFUN} adds to it some code that is used to @@ -8105,7 +8207,7 @@ when @command{configure} is run, see @ref{Printing Messages}. @defmac AC_DIAGNOSE (@var{category}, @var{message}) -@acindex DIAGNOSE +@acindex{DIAGNOSE} Report @var{message} as a warning (or as an error if requested by the user) if warnings of the @var{category} are turned on. You are encouraged to use standard categories, which currently include: @@ -8127,13 +8229,13 @@ @end defmac @defmac AC_WARNING (@var{message}) -@acindex WARNING +@acindex{WARNING} Equivalent to @samp{AC_DIAGNOSE([syntax], @var{message})}, but you are strongly encouraged to use a finer grained category. @end defmac @defmac AC_FATAL (@var{message}) -@acindex FATAL +@acindex{FATAL} Report a severe error @var{message}, and have @command{autoconf} die. @end defmac @@ -8169,7 +8271,7 @@ called if it is needed, and only called once. @defmac AC_REQUIRE (@var{macro-name}) -@acindex REQUIRE +@acindex{REQUIRE} If the M4 macro @var{macro-name} has not already been called, call it (without any arguments). Make sure to quote @var{macro-name} with square brackets. @var{macro-name} must have been defined using @@ -8281,7 +8383,7 @@ when @code{AC_PROG_CC} is called. @defmac AC_BEFORE (@var{this-macro-name}, @var{called-macro-name}) -@acindex BEFORE +@acindex{BEFORE} Make M4 print a warning message to the standard error output if @var{called-macro-name} has already been called. @var{this-macro-name} should be the name of the macro that is calling @code{AC_BEFORE}. The @@ -8305,8 +8407,8 @@ Autoconf provides a simple means to obsolete a macro. @defmac AU_DEFUN (@var{old-macro}, @var{implementation}, @ovar{message}) -@acindex DEFUN -@acindex AU_DEFUN +@acindex{DEFUN} +@acindex{AU_DEFUN} Define @var{old-macro} as @var{implementation}. The only difference with @code{AC_DEFUN} is that the user will be warned that @var{old-macro} is now obsolete. @@ -11525,7 +11627,7 @@ @defmac AC_CANONICAL_BUILD -@acindex CANONICAL_BUILD +@acindex{CANONICAL_BUILD} @ovindex build @ovindex build_cpu @ovindex build_vendor @@ -11540,7 +11642,7 @@ @end defmac @defmac AC_CANONICAL_HOST -@acindex CANONICAL_HOST +@acindex{CANONICAL_HOST} @ovindex host @ovindex host_cpu @ovindex host_vendor @@ -11555,7 +11657,7 @@ @end defmac @defmac AC_CANONICAL_TARGET -@acindex CANONICAL_TARGET +@acindex{CANONICAL_TARGET} @ovindex target @ovindex target_cpu @ovindex target_vendor @@ -11691,7 +11793,7 @@ and which arguments are valid, is up to you. @defmac AC_ARG_WITH (@var{package}, @var{help-string}, @ovar{action-if-given}, @ovar{action-if-not-given}) -@acindex ARG_WITH +@acindex{ARG_WITH} If the user gave @command{configure} the option @option{--with-@var{package}} or @option{--without-@var{package}}, run shell commands @var{action-if-given}. If neither option was given, run shell commands @@ -11723,7 +11825,7 @@ @end defmac @defmac AC_WITH (@var{package}, @var{action-if-given}, @ovar{action-if-not-given}) -@acindex WITH +@acindex{WITH} This is an obsolete version of @code{AC_ARG_WITH} that does not support providing a help string. @end defmac @@ -11770,7 +11872,7 @@ which arguments are valid, is up to you. @defmac AC_ARG_ENABLE (@var{feature}, @var{help-string}, @ovar{action-if-given}, @ovar{action-if-not-given}) -@acindex ARG_ENABLE +@acindex{ARG_ENABLE} If the user gave @command{configure} the option @option{--enable-@var{feature}} or @option{--disable-@var{feature}}, run shell commands @var{action-if-given}. If neither option was given, run @@ -11791,7 +11893,7 @@ @end defmac @defmac AC_ENABLE (@var{feature}, @var{action-if-given}, @ovar{action-if-not-given}) -@acindex ENABLE +@acindex{ENABLE} This is an obsolete version of @code{AC_ARG_ENABLE} that does not support providing a help string. @end defmac @@ -11808,7 +11910,7 @@ strings} do. This is the purpose of the @code{AC_HELP_STRING} macro. @defmac AC_HELP_STRING (@var{left-hand-side}, @var{right-hand-side}) -@acindex HELP_STRING +@acindex{HELP_STRING} Expands into an help string that looks pretty when the user executes @samp{configure --help}. It is typically used in @code{AC_ARG_WITH} @@ -11877,7 +11979,7 @@ macro @code{AC_ARG_PROGRAM}. @defmac AC_ARG_PROGRAM -@acindex ARG_PROGRAM +@acindex{ARG_PROGRAM} @ovindex program_transform_name Place in output variable @code{program_transform_name} a sequence of @code{sed} commands for changing the names of installed programs. @@ -12425,22 +12527,22 @@ description. @defmac AC_ALLOCA -@acindex ALLOCA +@acindex{ALLOCA} @code{AC_FUNC_ALLOCA} @end defmac @defmac AC_ARG_ARRAY -@acindex ARG_ARRAY +@acindex{ARG_ARRAY} removed because of limited usefulness @end defmac @defmac AC_C_CROSS -@acindex C_CROSS +@acindex{C_CROSS} This macro is obsolete; it does nothing. @end defmac @defmac AC_CANONICAL_SYSTEM -@acindex CANONICAL_SYSTEM +@acindex{CANONICAL_SYSTEM} Determine the system type and set output variables to the names of the canonical system types. @xref{Canonicalizing}, for details about the variables this macro sets. @@ -12452,12 +12554,12 @@ @end defmac @defmac AC_CHAR_UNSIGNED -@acindex CHAR_UNSIGNED +@acindex{CHAR_UNSIGNED} @code{AC_C_CHAR_UNSIGNED} @end defmac @defmac AC_CHECK_TYPE (@var{type}, @var{default}) -@acindex CHECK_TYPE +@acindex{CHECK_TYPE} Autoconf, up to 2.13, used to provide this version of @code{AC_CHECK_TYPE}, deprecated because of its flaws. Firstly, although it is a member of the @code{CHECK} clan, singular sub-family, it does @@ -12516,12 +12618,12 @@ @c end of AC_CHECK_TYPE @defmac AC_CHECKING (@var{feature-description}) -@acindex CHECKING +@acindex{CHECKING} Same as @samp{AC_MSG_NOTICE([checking @var{feature-description}@dots{}]}. @end defmac @defmac AC_COMPILE_CHECK (@var{echo-text}, @var{includes}, @var{function-body}, @var{action-if-found}, @ovar{action-if-not-found}) -@acindex COMPILE_CHECK +@acindex{COMPILE_CHECK} This is an obsolete version of @code{AC_TRY_COMPILE} itself replaced by @code{AC_COMPILE_IFELSE} (@pxref{Running the Compiler}), with the addition that it prints @samp{checking for @var{echo-text}} to the @@ -12531,18 +12633,18 @@ @end defmac @defmac AC_CONST -@acindex CONST +@acindex{CONST} @code{AC_C_CONST} @end defmac @defmac AC_CROSS_CHECK -@acindex CROSS_CHECK +@acindex{CROSS_CHECK} Same as @code{AC_C_CROSS}, which is obsolete too, and does nothing @code{:-)}. @end defmac @defmac AC_CYGWIN -@acindex CYGWIN +@acindex{CYGWIN} Check for the Cygwin environment in which case the shell variable @code{CYGWIN} is set to @samp{yes}. Don't use this macro, the dignified means to check the nature of the host is using @@ -12562,18 +12664,18 @@ @end defmac @defmac AC_DECL_SYS_SIGLIST -@acindex DECL_SYS_SIGLIST +@acindex{DECL_SYS_SIGLIST} @cvindex SYS_SIGLIST_DECLARED Same as @samp{AC_CHECK_DECLS([sys_siglist])}. @end defmac @defmac AC_DECL_YYTEXT -@acindex DECL_YYTEXT +@acindex{DECL_YYTEXT} Does nothing, now integrated in @code{AC_PROG_LEX}. @end defmac @defmac AC_DIR_HEADER -@acindex DIR_HEADER +@acindex{DIR_HEADER} @cvindex DIRENT @cvindex SYSNDIR @cvindex SYSDIR @@ -12592,7 +12694,7 @@ @end defmac @defmac AC_DYNIX_SEQ -@acindex DYNIX_SEQ +@acindex{DYNIX_SEQ} If on DYNIX/ptx, add @option{-lseq} to output variable @code{LIBS}. This macro used to be defined as @@ -12605,7 +12707,7 @@ @end defmac @defmac AC_EXEEXT -@acindex EXEEXT +@acindex{EXEEXT} @ovindex EXEEXT Defined the output variable @code{EXEEXT} based on the output of the compiler, which is now done automatically. Typically set to empty @@ -12613,33 +12715,33 @@ @end defmac @defmac AC_EMXOS2 -@acindex EMXOS2 +@acindex{EMXOS2} Similar to @code{AC_CYGWIN} but checks for the EMX environment on OS/2 and sets @code{EMXOS2}. @end defmac @defmac AC_ERROR -@acindex ERROR +@acindex{ERROR} @code{AC_MSG_ERROR} @end defmac @defmac AC_FIND_X -@acindex FIND_X +@acindex{FIND_X} @code{AC_PATH_X} @end defmac @defmac AC_FIND_XTRA -@acindex FIND_XTRA +@acindex{FIND_XTRA} @code{AC_PATH_XTRA} @end defmac @defmac AC_FUNC_CHECK -@acindex FUNC_CHECK +@acindex{FUNC_CHECK} @code{AC_CHECK_FUNC} @end defmac @defmac AC_FUNC_WAIT3 -@acindex FUNC_WAIT3 +@acindex{FUNC_WAIT3} @cvindex HAVE_WAIT3 If @code{wait3} is found and fills in the contents of its third argument (a @samp{struct rusage *}), which HP-UX does not do, define @@ -12651,32 +12753,32 @@ @end defmac @defmac AC_GCC_TRADITIONAL -@acindex GCC_TRADITIONAL +@acindex{GCC_TRADITIONAL} @code{AC_PROG_GCC_TRADITIONAL} @end defmac @defmac AC_GETGROUPS_T -@acindex GETGROUPS_T +@acindex{GETGROUPS_T} @code{AC_TYPE_GETGROUPS} @end defmac @defmac AC_GETLOADAVG -@acindex GETLOADAVG +@acindex{GETLOADAVG} @code{AC_FUNC_GETLOADAVG} @end defmac @defmac AC_HAVE_FUNCS -@acindex HAVE_FUNCS +@acindex{HAVE_FUNCS} @code{AC_CHECK_FUNCS} @end defmac @defmac AC_HAVE_HEADERS -@acindex HAVE_HEADERS +@acindex{HAVE_HEADERS} @code{AC_CHECK_HEADERS} @end defmac @defmac AC_HAVE_LIBRARY (@var{library}, @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{other-libraries}) -@acindex HAVE_LIBRARY +@acindex{HAVE_LIBRARY} This macro is equivalent to calling @code{AC_CHECK_LIB} with a @var{function} argument of @code{main}. In addition, @var{library} can be written as any of @samp{foo}, @option{-lfoo}, or @samp{libfoo.a}. In @@ -12685,22 +12787,22 @@ @end defmac @defmac AC_HAVE_POUNDBANG -@acindex HAVE_POUNDBANG +@acindex{HAVE_POUNDBANG} @code{AC_SYS_INTERPRETER} (different calling convention) @end defmac @defmac AC_HEADER_CHECK -@acindex HEADER_CHECK +@acindex{HEADER_CHECK} @code{AC_CHECK_HEADER} @end defmac @defmac AC_HEADER_EGREP -@acindex HEADER_EGREP +@acindex{HEADER_EGREP} @code{AC_EGREP_HEADER} @end defmac @defmac AC_INIT (@var{unique-file-in-source-dir}) -@acindex INIT +@acindex{INIT} Formerly @code{AC_INIT} used to have a single argument, and was equivalent to: @@ -12711,19 +12813,19 @@ @end defmac @defmac AC_INLINE -@acindex INLINE +@acindex{INLINE} @code{AC_C_INLINE} @end defmac @defmac AC_INT_16_BITS -@acindex INT_16_BITS +@acindex{INT_16_BITS} @cvindex INT_16_BITS If the C type @code{int} is 16 bits wide, define @code{INT_16_BITS}. Use @samp{AC_CHECK_SIZEOF(int)} instead. @end defmac @defmac AC_IRIX_SUN -@acindex IRIX_SUN +@acindex{IRIX_SUN} If on @sc{irix} (Silicon Graphics @sc{unix}), add @option{-lsun} to output @code{LIBS}. If you were using it to get @code{getmntent}, use @code{AC_FUNC_GETMNTENT} instead. If you used it for the NIS versions @@ -12744,35 +12846,35 @@ @end defmac @defmac AC_LANG_C -@acindex LANG_C +@acindex{LANG_C} Same as @samp{AC_LANG(C)}. @end defmac @defmac AC_LANG_CPLUSPLUS -@acindex LANG_CPLUSPLUS +@acindex{LANG_CPLUSPLUS} Same as @samp{AC_LANG(C++)}. @end defmac @defmac AC_LANG_FORTRAN77 -@acindex LANG_FORTRAN77 +@acindex{LANG_FORTRAN77} Same as @samp{AC_LANG(Fortran 77)}. @end defmac @defmac AC_LANG_RESTORE -@acindex LANG_RESTORE +@acindex{LANG_RESTORE} Select the @var{language} that is saved on the top of the stack, as set by @code{AC_LANG_SAVE}, remove it from the stack, and call @code{AC_LANG(@var{language})}. @end defmac @defmac AC_LANG_SAVE -@acindex LANG_SAVE +@acindex{LANG_SAVE} Remember the current language (as set by @code{AC_LANG}) on a stack. The current language does not change. @code{AC_LANG_PUSH} is preferred. @end defmac @defmac AC_LINK_FILES (@var{source}@dots{}, @var{dest}@dots{}) -@acindex LINK_FILES +@acindex{LINK_FILES} This is an obsolete version of @code{AC_CONFIG_LINKS}. An updated version of: @@ -12791,34 +12893,34 @@ @end defmac @defmac AC_LN_S -@acindex LN_S +@acindex{LN_S} @code{AC_PROG_LN_S} @end defmac @defmac AC_LONG_64_BITS -@acindex LONG_64_BITS +@acindex{LONG_64_BITS} @cvindex LONG_64_BITS Define @code{LONG_64_BITS} if the C type @code{long int} is 64 bits wide. Use the generic macro @samp{AC_CHECK_SIZEOF([long int])} instead. @end defmac @defmac AC_LONG_DOUBLE -@acindex LONG_DOUBLE +@acindex{LONG_DOUBLE} @code{AC_C_LONG_DOUBLE} @end defmac @defmac AC_LONG_FILE_NAMES -@acindex LONG_FILE_NAMES +@acindex{LONG_FILE_NAMES} @code{AC_SYS_LONG_FILE_NAMES} @end defmac @defmac AC_MAJOR_HEADER -@acindex MAJOR_HEADER +@acindex{MAJOR_HEADER} @code{AC_HEADER_MAJOR} @end defmac @defmac AC_MEMORY_H -@acindex MEMORY_H +@acindex{MEMORY_H} @cvindex NEED_MEMORY_H Used to define @code{NEED_MEMORY_H} if the @code{mem} functions were defined in @file{memory.h}. Today it is equivalent to @@ -12828,28 +12930,28 @@ @end defmac @defmac AC_MINGW32 -@acindex MINGW32 +@acindex{MINGW32} Similar to @code{AC_CYGWIN} but checks for the MingW32 compiler environment and sets @code{MINGW32}. @end defmac @defmac AC_MINUS_C_MINUS_O -@acindex MINUS_C_MINUS_O +@acindex{MINUS_C_MINUS_O} @code{AC_PROG_CC_C_O} @end defmac @defmac AC_MMAP -@acindex MMAP +@acindex{MMAP} @code{AC_FUNC_MMAP} @end defmac @defmac AC_MODE_T -@acindex MODE_T +@acindex{MODE_T} @code{AC_TYPE_MODE_T} @end defmac @defmac AC_OBJEXT -@acindex OBJEXT +@acindex{OBJEXT} @ovindex OBJEXT Defined the output variable @code{OBJEXT} based on the output of the compiler, after .c files have been excluded. Typically set to @samp{o} @@ -12858,7 +12960,7 @@ @end defmac @defmac AC_OBSOLETE (@var{this-macro-name}, @ovar{suggestion}) -@acindex OBSOLETE +@acindex{OBSOLETE} Make M4 print a message to the standard error output warning that @var{this-macro-name} is obsolete, and giving the file and line number where it was called. @var{this-macro-name} should be the name of the @@ -12877,12 +12979,12 @@ @end defmac @defmac AC_OFF_T -@acindex OFF_T +@acindex{OFF_T} @code{AC_TYPE_OFF_T} @end defmac @defmac AC_OUTPUT (@ovar{file}@dots{}, @ovar{extra-cmds}, @ovar{init-cmds}) -@acindex OUTPUT +@acindex{OUTPUT} The use of @code{AC_OUTPUT} with argument is deprecated. This obsoleted interface is equivalent to: @@ -12897,7 +12999,7 @@ @end defmac @defmac AC_OUTPUT_COMMANDS (@var{extra-cmds}, @ovar{init-cmds}) -@acindex OUTPUT_COMMANDS +@acindex{OUTPUT_COMMANDS} Specify additional shell commands to run at the end of @file{config.status}, and shell commands to initialize any variables from @command{configure}. This macro may be called multiple times. It is @@ -12937,67 +13039,67 @@ @end defmac @defmac AC_PID_T -@acindex PID_T +@acindex{PID_T} @code{AC_TYPE_PID_T} @end defmac @defmac AC_PREFIX -@acindex PREFIX +@acindex{PREFIX} @code{AC_PREFIX_PROGRAM} @end defmac @defmac AC_PROG_CC_STDC -@acindex PROG_CC_STDC +@acindex{PROG_CC_STDC} This macro has been integrated into @code{AC_PROG_CC}. @end defmac @defmac AC_PROGRAMS_CHECK -@acindex PROGRAMS_CHECK +@acindex{PROGRAMS_CHECK} @code{AC_CHECK_PROGS} @end defmac @defmac AC_PROGRAMS_PATH -@acindex PROGRAMS_PATH +@acindex{PROGRAMS_PATH} @code{AC_PATH_PROGS} @end defmac @defmac AC_PROGRAM_CHECK -@acindex PROGRAM_CHECK +@acindex{PROGRAM_CHECK} @code{AC_CHECK_PROG} @end defmac @defmac AC_PROGRAM_EGREP -@acindex PROGRAM_EGREP +@acindex{PROGRAM_EGREP} @code{AC_EGREP_CPP} @end defmac @defmac AC_PROGRAM_PATH -@acindex PROGRAM_PATH +@acindex{PROGRAM_PATH} @code{AC_PATH_PROG} @end defmac @defmac AC_REMOTE_TAPE -@acindex REMOTE_TAPE +@acindex{REMOTE_TAPE} removed because of limited usefulness @end defmac @defmac AC_RESTARTABLE_SYSCALLS -@acindex RESTARTABLE_SYSCALLS +@acindex{RESTARTABLE_SYSCALLS} @code{AC_SYS_RESTARTABLE_SYSCALLS} @end defmac @defmac AC_RETSIGTYPE -@acindex RETSIGTYPE +@acindex{RETSIGTYPE} @code{AC_TYPE_SIGNAL} @end defmac @defmac AC_RSH -@acindex RSH +@acindex{RSH} removed because of limited usefulness @end defmac @defmac AC_SCO_INTL -@acindex SCO_INTL +@acindex{SCO_INTL} @ovindex LIBS If on SCO UNIX, add @option{-lintl} to output variable @code{LIBS}. This macro used to @@ -13011,57 +13113,57 @@ @end defmac @defmac AC_SETVBUF_REVERSED -@acindex SETVBUF_REVERSED +@acindex{SETVBUF_REVERSED} @code{AC_FUNC_SETVBUF_REVERSED} @end defmac @defmac AC_SET_MAKE -@acindex SET_MAKE +@acindex{SET_MAKE} @code{AC_PROG_MAKE_SET} @end defmac @defmac AC_SIZEOF_TYPE -@acindex SIZEOF_TYPE +@acindex{SIZEOF_TYPE} @code{AC_CHECK_SIZEOF} @end defmac @defmac AC_SIZE_T -@acindex SIZE_T +@acindex{SIZE_T} @code{AC_TYPE_SIZE_T} @end defmac @defmac AC_STAT_MACROS_BROKEN -@acindex STAT_MACROS_BROKEN +@acindex{STAT_MACROS_BROKEN} @code{AC_HEADER_STAT} @end defmac @defmac AC_STDC_HEADERS -@acindex STDC_HEADERS +@acindex{STDC_HEADERS} @code{AC_HEADER_STDC} @end defmac @defmac AC_STRCOLL -@acindex STRCOLL +@acindex{STRCOLL} @code{AC_FUNC_STRCOLL} @end defmac @defmac AC_ST_BLKSIZE -@acindex ST_BLKSIZE +@acindex{ST_BLKSIZE} @code{AC_CHECK_MEMBERS} @end defmac @defmac AC_ST_BLOCKS -@acindex ST_BLOCKS +@acindex{ST_BLOCKS} @code{AC_STRUCT_ST_BLOCKS} @end defmac @defmac AC_ST_RDEV -@acindex ST_RDEV +@acindex{ST_RDEV} @code{AC_CHECK_MEMBERS} @end defmac @defmac AC_SYS_RESTARTABLE_SYSCALLS -@acindex SYS_RESTARTABLE_SYSCALLS +@acindex{SYS_RESTARTABLE_SYSCALLS} @cvindex HAVE_RESTARTABLE_SYSCALLS If the system automatically restarts a system call that is interrupted by a signal, define @code{HAVE_RESTARTABLE_SYSCALLS}. This macro does @@ -13078,32 +13180,32 @@ @end defmac @defmac AC_SYS_SIGLIST_DECLARED -@acindex SYS_SIGLIST_DECLARED +@acindex{SYS_SIGLIST_DECLARED} @code{AC_DECL_SYS_SIGLIST} @end defmac @defmac AC_TEST_CPP -@acindex TEST_CPP +@acindex{TEST_CPP} @code{AC_TRY_CPP}, replaced with @code{AC_PREPROC_IFELSE}. @end defmac @defmac AC_TEST_PROGRAM -@acindex TEST_PROGRAM +@acindex{TEST_PROGRAM} @code{AC_TRY_RUN}, replaced with @code{AC_RUN_IFELSE}. @end defmac @defmac AC_TIMEZONE -@acindex TIMEZONE +@acindex{TIMEZONE} @code{AC_STRUCT_TIMEZONE} @end defmac @defmac AC_TIME_WITH_SYS_TIME -@acindex TIME_WITH_SYS_TIME +@acindex{TIME_WITH_SYS_TIME} @code{AC_HEADER_TIME} @end defmac @defmac AC_TRY_COMPILE (@var{includes}, @var{function-body}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex TRY_COMPILE +@acindex{TRY_COMPILE} Same as @samp{AC_COMPILE_IFELSE([AC_LANG_SOURCE([[@var{includes}]], [[@var{function-body}]])], [@var{action-if-true}], [@var{action-if-false}])} (@pxref{Running the Compiler}). @@ -13120,7 +13222,7 @@ @end defmac @defmac AC_TRY_CPP (@var{input}, @ovar{action-if-true}, @ovar{action-if-false}) -@acindex TRY_CPP +@acindex{TRY_CPP} Same as @samp{AC_PREPROC_IFELSE([AC_LANG_SOURCE([[@var{input}]])], [@var{action-if-true}], [@var{action-if-false}])} (@pxref{Running the Preprocessor}). @@ -13129,7 +13231,7 @@ @end defmac @defmac AC_TRY_LINK (@var{includes}, @var{function-body}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex TRY_LINK +@acindex{TRY_LINK} Same as @samp{AC_LINK_IFELSE([AC_LANG_SOURCE([[@var{includes}]], [[@var{function-body}]])], [@var{action-if-true}], [@var{action-if-false}])} (@pxref{Running the Compiler}). @@ -13155,7 +13257,7 @@ @end defmac @defmac AC_TRY_LINK_FUNC (@var{function}, @ovar{action-if-found}, @ovar{action-if-not-found}) -@acindex TRY_LINK_FUNC +@acindex{TRY_LINK_FUNC} This macro is equivalent to @samp{AC_LINK_IFELSE([AC_LANG_CALL([[@var{includes}]], [[@var{function-body}]])], [@var{action-if-true}], @@ -13163,7 +13265,7 @@ @end defmac @defmac AC_TRY_RUN (@var{program}, @ovar{action-if-true}, @ovar{action-if-false}, @ovar{action-if-cross-compiling}) -@acindex TRY_RUN +@acindex{TRY_RUN} Same as @samp{AC_RUN_IFELSE([AC_LANG_SOURCE([[@var{program}]], [@var{action-if-true}], [@var{action-if-false}], [@var{action-if-cross-compiling}])} (@pxref{Run Time}). @@ -13171,17 +13273,17 @@ @defmac AC_UID_T -@acindex UID_T +@acindex{UID_T} @code{AC_TYPE_UID_T} @end defmac @defmac AC_UNISTD_H -@acindex UNISTD_H +@acindex{UNISTD_H} Same as @samp{AC_CHECK_HEADERS(unistd.h)}. @end defmac @defmac AC_USG -@acindex USG +@acindex{USG} @cvindex USG Define @code{USG} if the @acronym{BSD} string functions are defined in @file{strings.h}. You should no longer depend upon @code{USG}, but on @@ -13189,49 +13291,49 @@ @end defmac @defmac AC_UTIME_NULL -@acindex UTIME_NULL +@acindex{UTIME_NULL} @code{AC_FUNC_UTIME_NULL} @end defmac @defmac AC_VALIDATE_CACHED_SYSTEM_TUPLE (@ovar{cmd}) -@acindex VALIDATE_CACHED_SYSTEM_TUPLE +@acindex{VALIDATE_CACHED_SYSTEM_TUPLE} If the cache file is inconsistent with the current host, target and build system types, it used to execute @var{cmd} or print a default error message. This is now handled by default. @end defmac @defmac AC_VERBOSE (@var{result-description}) -@acindex VERBOSE +@acindex{VERBOSE} @code{AC_MSG_RESULT}. @end defmac @defmac AC_VFORK -@acindex VFORK +@acindex{VFORK} @code{AC_FUNC_VFORK} @end defmac @defmac AC_VPRINTF -@acindex VPRINTF +@acindex{VPRINTF} @code{AC_FUNC_VPRINTF} @end defmac @defmac AC_WAIT3 -@acindex WAIT3 +@acindex{WAIT3} @code{AC_FUNC_WAIT3} @end defmac @defmac AC_WARN -@acindex WARN +@acindex{WARN} @code{AC_MSG_WARN} @end defmac @defmac AC_WORDS_BIGENDIAN -@acindex WORDS_BIGENDIAN +@acindex{WORDS_BIGENDIAN} @code{AC_C_BIGENDIAN} @end defmac @defmac AC_XENIX_DIR -@acindex XENIX_DIR +@acindex{XENIX_DIR} @ovindex LIBS This macro used to add @option{-lx} to output variable @code{LIBS} if on Xenix. Also, if @file{dirent.h} is being checked for, added @@ -13251,7 +13353,7 @@ @end defmac @defmac AC_YYTEXT_POINTER -@acindex YYTEXT_POINTER +@acindex{YYTEXT_POINTER} @code{AC_DECL_YYTEXT} @end defmac @@ -14301,7 +14403,7 @@ Invoke @code{AC_CONFIG_TESTDIR}. @defmac AC_CONFIG_TESTDIR (@var{directory}, @dvar{test-path, @var{directory}}) -@acindex CONFIG_TESTDIR +@acindex{CONFIG_TESTDIR} An Autotest test suite is to be configured in @var{directory}. This macro requires the instantiation of @file{@var{directory}/atconfig} from @file{@var{directory}/atconfig.in}, and sets the default @@ -15013,27 +15115,35 @@ @node Autoconf Macro Index @appendixsec Autoconf Macro Index -This is an alphabetical list of the Autoconf macros. To make the list -easier to use, the macros are listed without their preceding @samp{AC_}. +This is an alphabetical list of the Autoconf macros. +@ifset shortindexflag +To make the list easier to use, the macros are listed without their +preceding @samp{AC_}. +@end ifset -@printindex ac +@printindex AC @node M4 Macro Index @appendixsec M4 Macro Index -This is an alphabetical list of the M4, M4sugar, and M4sh macros. To -make the list easier to use, the macros are listed without their +This is an alphabetical list of the M4, M4sugar, and M4sh macros. +@ifset shortindexflag +To make the list easier to use, the macros are listed without their preceding @samp{m4_} or @samp{AS_}. +@end ifset -@printindex ms +@printindex MS @node Autotest Macro Index @appendixsec Autotest Macro Index -This is an alphabetical list of the Autotest macros. To make the list -easier to use, the macros are listed without their preceding @samp{AT_}. +This is an alphabetical list of the Autotest macros. +@ifset shortindexflag +To make the list easier to use, the macros are listed without their +preceding @samp{AT_}. +@end ifset -@printindex at +@printindex AT @node Program & Function Index @appendixsec Program and Function Index From MAILER-DAEMON Tue Apr 01 11:09:11 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190OJy-0006iF-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:09:10 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190OJw-0006gW-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:09:08 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190OJu-0006f9-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:09:07 -0500 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190OJs-0006Yz-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:09:05 -0500 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h31G8hx22657 Tue, 1 Apr 2003 18:08:43 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 190OKV-0000GR-00; Tue, 01 Apr 2003 18:09:43 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 190OKV-0001dA-00; Tue, 01 Apr 2003 18:09:43 +0200 To: Jim Meyering From: Akim Demaille Date: Tue, 01 Apr 2003 18:09:43 +0200 In-Reply-To: <85el4m4t3h.fsf@pi.meyering.net> (Jim Meyering's message of "Tue, 01 Apr 2003 08:41:54 +0200") Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <85smt37o7h.fsf@pi.meyering.net> <1941.81.56.197.145.1049175341.squirrel@www.lrde.epita.fr> <85el4m4t3h.fsf@pi.meyering.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: Paul Eggert cc: autoconf-patches@gnu.org Subject: Re: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 16:09:09 -0000 | Hi Akim! Salut ! | I see your point and like the idea of separating them. However, | a big advantage with the current, all-in-config.h, approach is that | it works even from lib/*.[ch] files. In coreutils, all src/*.c | files include system.h, but many of those in lib/ come from glibc, | and having them include "system.h" would not be appropriate. Yep, I know this. But I think that this trend is only due to history. I don't know if we should stick to this. I'm not saying we have to make that move now, I'm mostly asking for other opinions. From MAILER-DAEMON Tue Apr 01 11:20:34 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190OTH-0002De-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:18:47 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190OSt-0001bI-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:18:23 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190OSh-000134-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:18:15 -0500 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190OSa-0000ah-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:18:05 -0500 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h31GDQx23403 Tue, 1 Apr 2003 18:13:26 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 190OP5-0000RL-00; Tue, 01 Apr 2003 18:14:27 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 190OP4-0001dP-00; Tue, 01 Apr 2003 18:14:26 +0200 To: derek@ximbiot.com From: Akim Demaille Date: Tue, 01 Apr 2003 18:14:26 +0200 In-Reply-To: <20030328212752.25134.qmail@mail.ximbiot.com> (derek@ximbiot.com's message of "Fri, 28 Mar 2003 21:27:52 +0000") Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <20030328212752.25134.qmail@mail.ximbiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: 06AS_HELP_STRING-robust-to-commas.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 16:18:45 -0000 | This is on top of my 02 patch, but it fixes a problem that was present in | AC_HELP_STRING - the macro would break when the LHS contained a comma. This | patch makes the LHS argument robust to commas, like the RHS argument. The | PREFIX argument is still not robust. | | There were problems with the quoting of FIRST-PREFIX in m4_wrap_text that | had top be repaired as well in order to fix AS_HELP_STRING. | | Incidentally, what might cause spaces following a comma to disappear iin m4 | while leaving the rest of the string? Spaces before the comma remained. | | -Derek | | Index: ChangeLog | 2003-03-28 Derek Price | | * lib/autoconf/general.m4 (AU::AC_HELP_STRING): Quote arguments | properly. | * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Quote LHS argument to make it | robust to commas. | * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Quote FIRST-PREFIX argument to | make it robust to commas. m4_text_wrap is an horror to write, as are all the text crunching macros, since they cannot be evaluated lazily: strict evaluation is needed, what breaks most safe use of m4. | Index: lib/autoconf/general.m4 | =================================================================== | RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v | retrieving revision 1.813 | diff -u -r1.813 general.m4 | --- lib/autoconf/general.m4 27 Mar 2003 13:18:34 -0000 1.813 | +++ lib/autoconf/general.m4 28 Mar 2003 21:19:03 -0000 | @@ -217,7 +217,7 @@ | # AU::AC_HELP_STRING(LHS, RHS, [COLUMN]) | # ---------------------------------- | AU_DEFUN([AC_HELP_STRING], | -[AS_HELP_STRING([$@])dnl | +[AS_HELP_STRING([$1],[$2],[$3])dnl | ]) | | This is noop, so please, remove it. | Index: lib/m4sugar/m4sh.m4 | =================================================================== | RCS file: /cvsroot/autoconf/autoconf/lib/m4sugar/m4sh.m4,v | retrieving revision 1.94 | diff -u -r1.94 m4sh.m4 | --- lib/m4sugar/m4sh.m4 27 Mar 2003 13:18:34 -0000 1.94 | +++ lib/m4sugar/m4sh.m4 28 Mar 2003 21:19:03 -0000 | @@ -897,7 +897,8 @@ | [m4_pushdef([AS_Prefix], m4_default([$3], [ ]))dnl | m4_pushdef([AS_Prefix_Format], | [ %-]m4_eval(m4_len(AS_Prefix) - 3)[s ])dnl [ %-23s ] | -m4_text_wrap([$2], AS_Prefix, m4_format(AS_Prefix_Format, [$1]))dnl | +m4_text_wrap([$2], AS_Prefix, | + [m4_format(AS_Prefix_Format, [$1])])dnl | m4_popdef([AS_Prefix_Format])dnl | m4_popdef([AS_Prefix])dnl | ]) I think this is wrong. I'm surprised that it works actually. Have you tried passing a macro? Rather, try to m4_dquote the whole m4_format. | Index: lib/m4sugar/m4sugar.m4 | =================================================================== | RCS file: /cvsroot/autoconf/autoconf/lib/m4sugar/m4sugar.m4,v | retrieving revision 2.68 | diff -u -r2.68 m4sugar.m4 | --- lib/m4sugar/m4sugar.m4 29 Sep 2002 08:14:32 -0000 2.68 | +++ lib/m4sugar/m4sugar.m4 28 Mar 2003 21:19:04 -0000 | @@ -1624,9 +1624,9 @@ | # first word, and then ` ' (single space) for all the others. | m4_define([m4_text_wrap], | [m4_pushdef([m4_Prefix], m4_default([$2], []))dnl | -m4_pushdef([m4_Prefix1], m4_default([$3], [m4_Prefix]))dnl | +m4_pushdef([m4_Prefix1], [m4_default([$3], [m4_Prefix])])dnl | m4_pushdef([m4_Width], m4_default([$4], 79))dnl | -m4_pushdef([m4_Cursor], m4_len(m4_Prefix1))dnl | +m4_pushdef([m4_Cursor], m4_len(m4_quote(m4_Prefix1)))dnl | m4_pushdef([m4_Separator], [])dnl | m4_Prefix1[]dnl | m4_if(m4_eval(m4_Cursor > m4_len(m4_Prefix)), | @@ -1638,8 +1638,8 @@ | dnl of the words. | m4_if(m4_eval(m4_Cursor > m4_Width), | 1, [m4_define([m4_Cursor], | - m4_eval(m4_len(m4_Prefix) + m4_len(m4_defn([m4_Word])) + 1))] | -m4_Prefix, | + m4_eval(m4_len(m4_Prefix) + m4_len(m4_defn([m4_Word])))) | +m4_Prefix][], | [m4_Separator])[]dnl | m4_defn([m4_Word])[]dnl | m4_define([m4_Separator], [ ])])dnl The same applies here. Be extremely cautious with these guys. And to be honest, I do believe they are robust to comas, as there are often comas in AC_DEFINE's 3rd arg. Could you exhibit a test case? From MAILER-DAEMON Tue Apr 01 11:54:43 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190P0u-00018w-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:53:32 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190P0p-0000zU-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:53:27 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190P0I-0000HG-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:52:55 -0500 Received: from smtp-out.comcast.net ([24.153.64.115] helo=smtp.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190P05-0000Dg-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:52:41 -0500 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout09.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HCO00264C6EMZ@mtaout09.icomcast.net> for autoconf-patches@gnu.org; Tue, 01 Apr 2003 11:51:51 -0500 (EST) Received: (qmail 4813 invoked from network); Tue, 01 Apr 2003 16:51:50 +0000 Received: from localhost (HELO ximbiot.com) (?azFC4d+qNMsoktFebBsSvSWOWW5eXoZX?@127.0.0.1) by localhost with SMTP; Tue, 01 Apr 2003 16:51:50 +0000 Date: Tue, 01 Apr 2003 11:51:50 -0500 From: Derek Robert Price To: Akim Demaille Message-id: <3E89C3A6.9090905@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <20030328212752.25134.qmail@mail.ximbiot.com> cc: autoconf-patches@gnu.org Subject: Re: 06AS_HELP_STRING-robust-to-commas.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 16:53:31 -0000 Akim Demaille wrote: >| Index: lib/autoconf/general.m4 >| =================================================================== >| RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v >| retrieving revision 1.813 >| diff -u -r1.813 general.m4 >| --- lib/autoconf/general.m4 27 Mar 2003 13:18:34 -0000 1.813 >| +++ lib/autoconf/general.m4 28 Mar 2003 21:19:03 -0000 >| @@ -217,7 +217,7 @@ >| # AU::AC_HELP_STRING(LHS, RHS, [COLUMN]) >| # ---------------------------------- >| AU_DEFUN([AC_HELP_STRING], >| -[AS_HELP_STRING([$@])dnl >| +[AS_HELP_STRING([$1],[$2],[$3])dnl >| ]) >| >| > >This is noop, so please, remove it. > > Sorry, I thought I was waiting for another response from you on this one. Was that the final word? Help strings are not a general enough idiom to be useful in Autoshell? Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- 160. I'm not a complete idiot - several parts are missing. From MAILER-DAEMON Tue Apr 01 12:38:59 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190Pfx-0002Hm-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:35:57 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190Pd6-0000QU-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:33:00 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190PZU-0007rU-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:29:18 -0500 Received: from smtp-out.comcast.net ([24.153.64.115] helo=smtp.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190PUe-0005tF-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:24:16 -0500 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout09.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HCO00288DGQSY@mtaout09.icomcast.net> for autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:19:39 -0500 (EST) Received: (qmail 23342 invoked from network); Tue, 01 Apr 2003 17:19:38 +0000 Received: from localhost (HELO ximbiot.com) (?7dl1VTVQLukwfPHjVFKztDcgwy5KUTo5?@127.0.0.1) by localhost with SMTP; Tue, 01 Apr 2003 17:19:38 +0000 Date: Tue, 01 Apr 2003 12:19:37 -0500 From: Derek Robert Price To: Akim Demaille Message-id: <3E89CA29.1020509@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <20030328212752.25134.qmail@mail.ximbiot.com> <3E89C3A6.9090905@ximbiot.com> cc: autoconf-patches@gnu.org Subject: Re: 06AS_HELP_STRING-robust-to-commas.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 17:35:56 -0000 Derek Robert Price wrote: > Akim Demaille wrote: > >> | Index: lib/autoconf/general.m4 >> | =================================================================== >> | RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v >> | retrieving revision 1.813 >> | diff -u -r1.813 general.m4 >> | --- lib/autoconf/general.m4 27 Mar 2003 13:18:34 -0000 1.813 >> | +++ lib/autoconf/general.m4 28 Mar 2003 21:19:03 -0000 >> | @@ -217,7 +217,7 @@ >> | # AU::AC_HELP_STRING(LHS, RHS, [COLUMN]) >> | # ---------------------------------- >> | AU_DEFUN([AC_HELP_STRING], >> | -[AS_HELP_STRING([$@])dnl >> | +[AS_HELP_STRING([$1],[$2],[$3])dnl >> | ]) >> | | >> This is noop, so please, remove it. >> >> > > Sorry, I thought I was waiting for another response from you on this > one. Was that the final word? Help strings are not a general enough > idiom to be useful in Autoshell? Ah, I see what you mean. That's what I thought, but I managed to get it to break in the one case and not another. I'll try and recreate the error. Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- ... one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs. - Robert Firth From MAILER-DAEMON Tue Apr 01 12:49:38 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190PpN-0001MJ-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:45:41 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190Pmn-0007Vz-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:43:01 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190PmE-0006rU-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:42:27 -0500 Received: from smtp-out.comcast.net ([24.153.64.110] helo=smtp.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190Pkd-0005Eq-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:40:48 -0500 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout10.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with SMTP id <0HCO003R3E3N5Z@mtaout10.icomcast.net> for autoconf-patches@gnu.org; Tue, 01 Apr 2003 12:33:23 -0500 (EST) Received: (qmail 26998 invoked by uid 500); Tue, 01 Apr 2003 17:33:23 +0000 Date: Tue, 01 Apr 2003 17:33:23 +0000 From: derek@ximbiot.com To: autoconf-patches@gnu.org Message-id: <20030401173323.26997.qmail@mail.ximbiot.com> Content-transfer-encoding: 7BIT Subject: FYI: 08torture-tests-syntax-fix.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 17:45:41 -0000 Index: ChangeLog 2003-04-01 Derek Price * tests/torture.at (Configuring subdirectories): Add missing close-quote for Akim's change from 3-28. Index: tests/torture.at =================================================================== RCS file: /cvsroot/autoconf/autoconf/tests/torture.at,v retrieving revision 1.41 diff -u -r1.41 torture.at --- tests/torture.at 28 Mar 2003 17:14:17 -0000 1.41 +++ tests/torture.at 1 Apr 2003 17:26:31 -0000 @@ -561,7 +561,7 @@ # We use aclocal (via autoreconf). AT_CHECK([aclocal --version || exit 77], [], [stdout], [ignore]) # It should understand configure.ac. -AT_CHECK([[grep '1.[01234] stdout && exit 77]], [1], [ignore]) +AT_CHECK([[grep '1.[01234]' stdout && exit 77]], [1], [ignore]) # The contents of `inner/', and `inner/innermost/'. AS_MKDIR_P([inner/innermost]) From MAILER-DAEMON Tue Apr 01 13:37:06 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190Qar-00075U-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 13:34:45 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190Qaj-0006w7-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 13:34:37 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190Qaf-0006rk-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 13:34:34 -0500 Received: from smtp-out.comcast.net ([24.153.64.109] helo=smtp.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190QXD-0005Ot-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 13:30:59 -0500 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout11.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with SMTP id <0HCO00827GHTWM@mtaout11.icomcast.net> for autoconf-patches@gnu.org; Tue, 01 Apr 2003 13:25:06 -0500 (EST) Received: (qmail 463 invoked by uid 500); Tue, 01 Apr 2003 18:25:05 +0000 Date: Tue, 01 Apr 2003 18:25:05 +0000 From: derek@ximbiot.com To: autoconf-patches@gnu.org Message-id: <20030401182505.462.qmail@mail.ximbiot.com> Content-transfer-encoding: 7BIT Subject: 09test-AC_HELP_STRING.diff (was Re: 06AS_HELP_STRING-robust-to-commas.diff) X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 18:34:43 -0000 Here you go, Akim. This test will fail with the CVS version of Autoconf and pass with 06AS_HELP_STRING-robust-to-commas.diff applied, with or without the noop change you pointed out, as you surmised. I'm still looking into m4_dquote()ing the m4_format() call, as you suggested, but straight replacement really messes things up. Off the top of my head, the results look like an m4_append() with a comma (`,') as a seperator. I will have to analyze the problem deeper to figure out why. Index: ChangeLog 2003-04-01 Derek Price * tests/base.at (AC_HELP_STRING): New test. Index: tests/base.at =================================================================== RCS file: /cvsroot/autoconf/autoconf/tests/base.at,v retrieving revision 1.30 diff -u -r1.30 base.at --- tests/base.at 8 Oct 2001 08:21:00 -0000 1.30 +++ tests/base.at 1 Apr 2003 18:06:45 -0000 @@ -230,3 +230,17 @@ AT_CHECK_CONFIGURE([-q]) AT_CLEANUP + +AT_SETUP([AC_HELP_STRING]) + +AT_DATA([configure.ac], +[[AC_INIT +echo "AC_HELP_STRING([-r, --remote], +[This is a dummy option that will hopefully wrap at approximately +80 characters.], [ ])" +]]) + +AT_CHECK_AUTOCONF +AT_CHECK_CONFIGURE + +AT_CLEANUP From MAILER-DAEMON Tue Apr 01 13:50:04 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190Qpf-0007Hv-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 13:50:03 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190Qpc-0007G8-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 13:50:00 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190QpZ-0007DX-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 13:49:58 -0500 Received: from mailman.cs.ucla.edu ([131.179.128.30]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190QpY-0007CY-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 13:49:56 -0500 Received: from whale.cs.ucla.edu (whale [131.179.128.40])h31IntF03557 for ; Tue, 1 Apr 2003 10:49:55 -0800 (PST) Received: (from eggert@localhost) by whale.cs.ucla.edu (8.11.6+Sun/8.11.6/UCLACS-5.2) id h31Intq09233; Tue, 1 Apr 2003 10:49:55 -0800 (PST) To: autoconf-patches@gnu.org References: <85smt37o7h.fsf@pi.meyering.net> <1941.81.56.197.145.1049175341.squirrel@www.lrde.epita.fr> From: Paul Eggert Date: 01 Apr 2003 10:49:55 -0800 In-Reply-To: <1941.81.56.197.145.1049175341.squirrel@www.lrde.epita.fr> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 18:50:02 -0000 > > [ __restrict __restrict__ _Restrict ] > > Wow... There is already that many different names... These names were all introduced before the C99 standard made "restrict" official, so I don't expect many more aliases to crop up. > config.h should encode the result of the system audit only, and not > the actions. We could split things up in a backward-compatible way, by having config.h include (or bodily incorporate) a new file "config-have.h", which defines only the HAVE_* symbols. Then people who want the newer, cleaner semantics could include "config-have.h". From MAILER-DAEMON Tue Apr 01 15:48:54 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190Sg3-0005TX-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 15:48:15 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190Sfg-0005Hp-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 15:47:52 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190Sf3-0003VS-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 15:47:16 -0500 Received: from cmailg1.svr.pol.co.uk ([195.92.195.171]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190Sej-0002fA-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 15:46:53 -0500 Received: from modem-117.nitrogen.dialup.pol.co.uk ([62.136.6.117] helo=phekda.freeserve.co.uk) by cmailg1.svr.pol.co.uk with esmtp (Exim 4.14) id 190Seg-0000ZJ-LZ; Tue, 01 Apr 2003 21:46:51 +0100 Received: from iolanthe.int.phekda.freeserve.co.uk ([192.168.1.1] helo=phekda.freeserve.co.uk ident=rich) by phekda.freeserve.co.uk with esmtp (Exim 3.22 #1) id 190Sef-0000LL-00; Tue, 01 Apr 2003 21:46:49 +0100 Sender: rich@phekda.freeserve.co.uk Message-ID: <3E89FAB8.A8408C09@phekda.freeserve.co.uk> Date: Tue, 01 Apr 2003 21:46:48 +0100 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: derek@ximbiot.com References: <20030401173323.26997.qmail@mail.ximbiot.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: autoconf-patches@gnu.org Subject: Re: FYI: 08torture-tests-syntax-fix.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 20:48:14 -0000 Hello. derek@ximbiot.com wrote: > > Index: ChangeLog > 2003-04-01 Derek Price > > * tests/torture.at (Configuring subdirectories): Add missing > close-quote for Akim's change from 3-28. [snip] Please write the date in some internationally recognised format. E.g.: 2003-03-28. Thanks, regards, -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ] From MAILER-DAEMON Tue Apr 01 16:34:54 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190TL1-00030K-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:30:35 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190TJL-00016T-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:28:51 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190TIN-0000Vz-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:28:23 -0500 Received: from smtp-out.comcast.net ([24.153.64.116] helo=smtp.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190TI2-0000J4-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:27:30 -0500 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout08.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HCO00JHVOXBIU@mtaout08.icomcast.net> for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:27:11 -0500 (EST) Received: (qmail 26534 invoked by uid 500); Tue, 01 Apr 2003 21:27:10 +0000 Date: Tue, 01 Apr 2003 21:27:10 +0000 From: derek@ximbiot.com To: autoconf-patches@gnu.org Message-id: <20030401212710.26533.qmail@mail.ximbiot.com> Content-transfer-encoding: 7BIT Subject: FYI: 10skip-OS2-install-syntax-correction.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 21:30:33 -0000 Index: ChangeLog 2003-04-01 Derek Price * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error from Akim's checkin of 3-29. Index: lib/autoconf/programs.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/programs.m4,v retrieving revision 1.15 diff -u -r1.15 programs.m4 --- lib/autoconf/programs.m4 29 Mar 2003 10:04:26 -0000 1.15 +++ lib/autoconf/programs.m4 1 Apr 2003 21:26:14 -0000 @@ -317,7 +317,7 @@ case $as_dir/ in ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - |?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. From MAILER-DAEMON Tue Apr 01 16:46:40 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190Ta1-0003KR-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:46:05 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190TZW-00037y-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:45:34 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190TYF-0001nD-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:44:47 -0500 Received: from anice-201-1-1-11.abo.wanadoo.fr ([80.13.35.11] helo=elf.meyering.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190TQ6-0006D4-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:35:50 -0500 Received: by elf.meyering.net (Postfix, from userid 1002) id 94002437A; Tue, 1 Apr 2003 23:35:48 +0200 (CEST) To: Paul Eggert In-Reply-To: (Paul Eggert's message of "31 Mar 2003 17:20:14 -0800") References: <85smt37o7h.fsf@pi.meyering.net> From: Jim Meyering Date: Tue, 01 Apr 2003 23:35:48 +0200 Message-ID: <85smt12957.fsf@pi.meyering.net> Lines: 105 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: autoconf-patches@gnu.org Subject: Re: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 21:46:03 -0000 Paul Eggert wrote: > Looks good, thanks. However, could you please check for "__restrict" > before "__restrict__"? GCC supports either spelling, but "__restrict" > is shorter and older DEC Alpha C compilers support only "__restrict". > The handwritten "configure" script for MPlayer > checks for "__restrict" first, so this > should be reliable. > > Also, please check for "_Restrict" as well. That is the only spelling > supported by Sun WorkShop 6 update 2 C. Hi Paul, Thanks for those suggestions. Here's a new patch. * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro. * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT. Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.726 diff -u -p -u -p -r1.726 autoconf.texi --- doc/autoconf.texi 28 Mar 2003 14:51:31 -0000 1.726 +++ doc/autoconf.texi 1 Apr 2003 21:34:43 -0000 @@ -5122,6 +5122,23 @@ installers who run into trouble in this like GCC to compile their C code. @end defmac +@defmac AC_C_RESTRICT +@acindex C_RESTRICT +@cvindex volatile +If the C compiler recognizes the @code{restrict} keyword, don't do anything. +If it recognizes only a variant spelling (@code{__restrict}, +@code{__restrict__}, or @code{_Restrict}), then define +@code{restrict} to that. +Otherwise, define @code{restrict} to be empty. +Thus, programs may simply use @code{restrict} as if every C compiler +supported it; for those that do not, the @file{Makefile} +or configuration header defines it away. + +Although support in C++ for the @code{restrict} keyword is not +required, several C++ compilers do accept the keyword. +This macro works for them, too. +@end defmac + @defmac AC_C_VOLATILE @acindex C_VOLATILE @cvindex volatile Index: lib/autoconf/c.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/c.m4,v retrieving revision 1.175 diff -u -p -u -p -r1.175 c.m4 --- lib/autoconf/c.m4 6 Mar 2003 20:35:23 -0000 1.175 +++ lib/autoconf/c.m4 1 Apr 2003 21:34:44 -0000 @@ -1,6 +1,6 @@ # This file is part of Autoconf. -*- Autoconf -*- # Programming languages support. -# Copyright (C) 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1075,6 +1075,40 @@ if test $ac_cv_c_const = no; then [Define to empty if `const' does not conform to ANSI C.]) fi ])# AC_C_CONST + + +# AC_C_RESTRICT +# ------------- +# based on acx_restrict.m4, from the GNU Autoconf Macro Archive at: +# http://www.gnu.org/software/ac-archive/htmldoc/acx_restrict.html +# +# Determine whether the C/C++ compiler supports the "restrict" keyword +# introduced in ANSI C99, or an equivalent. Do nothing if the compiler +# accepts it. Otherwise, if the compiler supports an equivalent, +# define "restrict" to be that. Here are some variants: +# - GCC supports both __restrict and __restrict__ +# - older DEC Alpha C compilers support only __restrict +# - _Restrict is the only spelling accepted by Sun WorkShop 6 update 2 C +# Otherwise, define "restrict" to be empty. +AC_DEFUN([AC_C_RESTRICT], +[AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, + [ac_cv_c_restrict=no + # Try the official restrict keyword, then gcc's __restrict__, and + # the less common variants. + for ac_kw in restrict __restrict __restrict__ _Restrict; do + AC_COMPILE_IFELSE([AC_LANG_SOURCE( + [float * $ac_kw x;])], + [ac_cv_c_restrict=$ac_kw; break]) + done + ]) + case $ac_cv_c_restrict in + restrict) ;; + no) AC_DEFINE(restrict,, + [Define to equivalent of C99 restrict keyword, or to nothing if this + is not supported. Do not define if restrict is supported directly.]) ;; + *) AC_DEFINE_UNQUOTED(restrict, $ac_cv_c_restrict) ;; + esac +])# AC_C_RESTRICT # AC_C_VOLATILE From MAILER-DAEMON Tue Apr 01 16:48:28 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190TcG-00054a-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:48:24 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190Tbj-0004pJ-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:47:51 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190TX7-0000uZ-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:43:23 -0500 Received: from pop.gmx.net ([213.165.65.60] helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.10.13) id 190TVx-00006V-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 16:41:53 -0500 Received: (qmail 25485 invoked by uid 65534); 1 Apr 2003 21:41:51 -0000 Received: from p3E9E70AB.dip0.t-ipconnect.de (EHLO p3E9E70AB.dip0.t-ipconnect.de) (62.158.112.171) by mail.gmx.net (mp010-rz3) with SMTP; 01 Apr 2003 23:41:51 +0200 Date: Tue, 1 Apr 2003 23:42:54 +0200 (CEST) From: Peter Eisentraut X-X-Sender: peter@peter.localdomain To: Akim Demaille In-Reply-To: <1941.81.56.197.145.1049175341.squirrel@www.lrde.epita.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Jim Meyering cc: Paul Eggert cc: autoconf-patches@gnu.org Subject: Re: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 21:48:23 -0000 Akim Demaille writes: > config.h should encode the result of the system audit only, and not the > actions. I would actually prefer if config.h contains all of the actions as well. That way I simply run autoheader and my code is set up. My preferred solution to conflicts between languages would be to have a separate config.h for each language. -- Peter Eisentraut peter_e@gmx.net From MAILER-DAEMON Tue Apr 01 18:09:39 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 190UsF-0002nE-00 for mharc-autoconf-patches@gnu.org; Tue, 01 Apr 2003 18:08:59 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190Us4-0002R9-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 18:08:48 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190UrG-00012q-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 18:08:01 -0500 Received: from smtp-out.comcast.net ([24.153.64.110] helo=smtp.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190UrF-00010k-00 for autoconf-patches@gnu.org; Tue, 01 Apr 2003 18:07:57 -0500 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout10.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with SMTP id <0HCO007RKTHI6X@mtaout10.icomcast.net> for autoconf-patches@gnu.org; Tue, 01 Apr 2003 18:05:42 -0500 (EST) Received: (qmail 11414 invoked by uid 500); Tue, 01 Apr 2003 23:05:41 +0000 Date: Tue, 01 Apr 2003 23:05:41 +0000 From: derek@ximbiot.com To: autoconf-patches@gnu.org Message-id: <20030401230541.11413.qmail@mail.ximbiot.com> Content-transfer-encoding: 7BIT Subject: 11AT_KEYWORDS-without-commas.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 01 Apr 2003 23:08:57 -0000 This is a fix for a bug in AT_KEYWORDS that was preventing a second call from working. The problem was that the comma being used as a field seperator ended up wreaking havoc somewhere in m4_append_uniq on the second call to AT_KEYWORDS. I decided not to try and mess with the quoting in m4_append_uniq and m4_append. I just changed the field seperator AT_KEYWORDS passes to those functions to a space instead. The AT_KEYWORDS change below addresses the above. The second part maybe should have been a second patch, but it allows multiple invocations of --keywords= to a testsuite and restricts keyword matches to whole keywords unless maybe if the user passes a regexp to --keywords=. Index: ChangeLog 2003-04-01 Derek Price * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the seperator with m4_append_uniq(). It doesn't work. (AT_CLEANUP): Add `;' to end of at_help_all. (AT_INIT): Allow --keyword to be specified more than once. When grepping $at_help_all for keywords, use the field and keyword seperators to ensure a complete keyword match. --- autoconf-AT_ARG_OPTION/lib/autotest/general.m4 2003-04-01 17:47:23.000000000 -0500 +++ autoconf/lib/autotest/general.m4 2003-04-01 11:08:14.000000000 -0500 @@ -310,7 +310,7 @@ at_prev=--keywords ;; --keywords=* ) - at_keywords=$at_optarg + at_keywords="$at_keywords,$at_optarg" ;; m4_divert_pop([PARSE_ARGS])dnl dnl Process *=* last to allow for user specified --option=* type arguments. @@ -342,7 +342,7 @@ do # It is on purpose that we match the test group titles too. at_groups_selected=`echo "$at_groups_selected" | - grep -i "^[[^;]]*;[[^;]]*;.*$at_keyword"` + grep -i "^[[^;]]*;[[^;]]*;.*[[; ]]$at_keyword[[ ;]]"` done at_groups_selected=`echo "$at_groups_selected" | sed 's/;.*//'` # Smash the end of lines. @@ -936,7 +936,7 @@ # --------------------- # Declare a list of keywords associated to the current test group. m4_define([AT_KEYWORDS], -[m4_append_uniq([AT_keywords], [$1], [,])]) +[m4_append_uniq([AT_keywords], [$1], [ ])]) # AT_CLEANUP @@ -944,7 +944,7 @@ # Complete a group of related tests. m4_define([AT_CLEANUP], [m4_append([AT_help], -at_help_all=$at_help_all'm4_defn([AT_ordinal]);m4_defn([AT_line]);m4_defn([AT_description]);m4_ifdef([AT_keywords], [m4_defn([AT_keywords])]) +at_help_all=$at_help_all'm4_defn([AT_ordinal]);m4_defn([AT_line]);m4_defn([AT_description]);m4_ifdef([AT_keywords], [m4_defn([AT_keywords])]); ' )dnl $at_times_skip || times >$at_times_file From MAILER-DAEMON Fri Apr 04 11:18:09 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 191TtE-0000Tv-00 for mharc-autoconf-patches@gnu.org; Fri, 04 Apr 2003 11:18:04 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 191Tsp-00007S-00 for autoconf-patches@gnu.org; Fri, 04 Apr 2003 11:17:39 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 191Tsl-0008U9-00 for autoconf-patches@gnu.org; Fri, 04 Apr 2003 11:17:36 -0500 Received: from mta07-svc.ntlworld.com ([62.253.162.47]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 191Ts1-0008Ad-00 for autoconf-patches@gnu.org; Fri, 04 Apr 2003 11:16:49 -0500 Received: from chopin ([62.253.130.209]) by mta07-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030404161647.ZBHN25105.mta07-svc.ntlworld.com@chopin> for ; Fri, 4 Apr 2003 17:16:47 +0100 Received: from jeremy by chopin with local (Exim 3.36 #1 (Debian)) id 191TqW-00011r-00 for ; Fri, 04 Apr 2003 17:15:16 +0100 Date: Fri, 4 Apr 2003 17:15:16 +0100 To: autoconf-patches@gnu.org Message-ID: <20030404161516.GA3942@jdyallop.freeserve.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i From: Jeremy Yallop Subject: ifnames comment patch X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Fri, 04 Apr 2003 16:18:02 -0000 ifnames doesn't understand C++-style comments: $ cat macro.c #if 0 // foo bar #endif $ /usr/bin/ifnames macro.c bar macro.c foo macro.c Index: ifnames.in =================================================================== RCS file: /cvsroot/autoconf/autoconf/bin/ifnames.in,v retrieving revision 1.28 diff -u -r1.28 ifnames.in --- ifnames.in 28 Feb 2003 10:11:11 -0000 1.28 +++ ifnames.in 4 Apr 2003 16:15:45 -0000 @@ -107,6 +107,7 @@ # Remove comments. Not perfect, but close enough. s(/\*.*?\*/)(); s(/\*.*)(); + s(//.*)(); foreach my $word (split (/\W+/)) { next From MAILER-DAEMON Tue Apr 08 03:12:48 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 192nHk-0007GZ-00 for mharc-autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:12:48 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192nEz-00069H-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:09:57 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192nEh-0005Bv-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:09:44 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192nEW-0004s2-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:09:29 -0400 Received: from kualalumpur.lrde.epita.fr (kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h3879Ra12110 for EPITA Paris France Tue, 8 Apr 2003 09:09:27 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 192nEh-0006FN-00 for ; Tue, 08 Apr 2003 09:09:39 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 192nEf-00053E-00 for ; Tue, 08 Apr 2003 09:09:37 +0200 To: APatche From: Akim Demaille Date: Tue, 08 Apr 2003 09:09:37 +0200 Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille Subject: FYI: net/if.h X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 08 Apr 2003 07:12:47 -0000 Index: ChangeLog from Akim Demaille * doc/autoconf.texi (Particular Headers): Some about sys/socket.h, net/if.h, stdlib.h. Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.727 diff -u -u -r1.727 autoconf.texi --- doc/autoconf.texi 1 Apr 2003 07:28:08 -0000 1.727 +++ doc/autoconf.texi 8 Apr 2003 07:08:59 -0000 @@ -4286,6 +4286,34 @@ know of any implementation that has @file{stdint.h} but not @file{inttypes.h}. Nor do I know of any free software that includes @file{stdint.h}; @file{stdint.h} seems to be a creation of the committee. + +@item @file{net/if.h} +On Darwin, this file requires that @file{sys/socket.h} be included +beforehand. One should run: + +@example +AC_CHECK_HEADERS([sys/socket.h]) +AC_CHECK_HEADERS([net/if.h], [], [], +[#include +#if STDC_HEADERS +# include +# include +#else +# if HAVE_STDLIB_H +# include +# endif +#endif +#if HAVE_SYS_SOCKET_H +# include +#endif +]) +@end example + +@item @file{stdlib.h} +On many systems (e.g., Darwin), @file{stdio.h} is a prerequisite. + +@item @file{sys/socket.h} +On Darwin, @file{stdlib.h} is a prerequisite. @end table @@ -14853,6 +14881,9 @@ checking for number.h... yes checking for pi.h... yes @end example + +See @ref{Particular Headers}, for a list of headers with their +prerequisite. @c ===================================================== History of Autoconf. From MAILER-DAEMON Tue Apr 08 03:41:48 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 192njo-0000vc-00 for mharc-autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:41:48 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192njm-0000um-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:41:46 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192njk-0000tl-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:41:45 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192njj-0000qh-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:41:44 -0400 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h387fHa15805 Tue, 8 Apr 2003 09:41:21 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 192njZ-0006P8-00; Tue, 08 Apr 2003 09:41:33 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 192njZ-0005MI-00; Tue, 08 Apr 2003 09:41:33 +0200 To: Ilya Zakharevich From: Akim Demaille Date: Tue, 08 Apr 2003 09:41:33 +0200 In-Reply-To: <20030328204807.GB1939@math.berkeley.edu> (Ilya Zakharevich's message of "Fri, 28 Mar 2003 12:48:07 -0800") Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <20030130231707.GA24508@math.berkeley.edu> <20030328204807.GB1939@math.berkeley.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: [PATCH CVS] OS/2 Gnumakefile X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 08 Apr 2003 07:41:47 -0000 >> Please, install. Ilya> Sorry, I do not follow what you are saying. Install what? It meant, please, record this in CVS Autoconf. I just did: Index: ChangeLog from Akim Demaille * GNUmakefile (SHELL): Don't assume sh is in /bin/. From Ilya Zakharevich. Index: GNUmakefile =================================================================== RCS file: /cvsroot/autoconf/autoconf/GNUmakefile,v retrieving revision 1.2 diff -u -u -r1.2 GNUmakefile --- GNUmakefile 12 Aug 2001 13:05:11 -0000 1.2 +++ GNUmakefile 8 Apr 2003 07:41:09 -0000 @@ -22,7 +22,13 @@ # Systems where /bin/sh is not the default shell need this. The $(shell) # command below won't work with e.g. stock DOS/Windows shells. +ifeq ($(wildcard /bin/s[h]),/bin/sh) SHELL = /bin/sh +else +# will be used only with the next shell-test line, then overwritten +# by a configured-in value +SHELL = sh +endif have-Makefile := $(shell test -f Makefile && echo yes) From MAILER-DAEMON Tue Apr 08 03:44:45 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 192nmf-0002eT-00 for mharc-autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:44:45 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192nmd-0002ct-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:44:43 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192nmb-0002Zm-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:44:42 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192nmb-0002Zh-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 03:44:41 -0400 Received: from kualalumpur.lrde.epita.fr (kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h387iXa16228 Tue, 8 Apr 2003 09:44:37 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 192nmf-0006Qc-00; Tue, 08 Apr 2003 09:44:45 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 192nmf-0005Mk-00; Tue, 08 Apr 2003 09:44:45 +0200 To: Derek Robert Price From: Akim Demaille Date: Tue, 08 Apr 2003 09:44:45 +0200 In-Reply-To: <3E8868C7.1000502@ximbiot.com> (Derek Robert Price's message of "Mon, 31 Mar 2003 11:11:51 -0500") Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <20030327184106.18184.qmail@mail.ximbiot.com> <3E84C6E0.20904@ximbiot.com> <3E8868C7.1000502@ximbiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: 05no-escape-on-AT_CHECK-strings X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 08 Apr 2003 07:44:44 -0000 | Akim Demaille wrote: | > Derek> Akim Demaille wrote: | > >> I am absolutely against this patch. Revert it. | > >> >> If you want something like this, you will first need to | > explain it. | > >> Derek> Again, CVS's current test suite often compares program | > output against | > Derek> shell variables defined earlier in the script. | > | >Then save these values in an expout file, and use [expout] as STDOUT | >value. | > | | The CVS test suite uses this almost every test. I could implement | this as an m4 macro in the CVS test suite, but had thought it had some | more general usefulness. How would you feel about an extra macro, | perhaps AT_CHECK_NOESCAPE or the like which ran AT_CHECK to expout | then allowed shell expansion on the args before comparison? This, why not. | I also wanted to implement an AT_CHECK_EXPR (now AT_CHECK_EXPR & | AT_CHECK_EXPR_NOESCAPE?) which used expr rather than diff to compare | the strings. expr suffers from severe limitations, including portability issues. | One example of where this is useful with CVS is in that | CVS's includes dates in much of its output. Since these dates change | depending on when the test is run, CVS's test suite often uses | ${DATE}, which expands to a regexp which will match the date format | though no particular date, to match dates in tests where the date is | not the central issue being tested. This is where I suggest a wrapper that smashes these differences. From MAILER-DAEMON Tue Apr 08 04:50:32 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 192onf-0007BX-00 for mharc-autoconf-patches@gnu.org; Tue, 08 Apr 2003 04:49:51 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192onM-0006l3-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 04:49:32 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192okx-000518-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 04:47:04 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192ojG-00047D-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 04:45:18 -0400 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h388jAa26640 Tue, 8 Apr 2003 10:45:11 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 192ojP-0006rA-00; Tue, 08 Apr 2003 10:45:27 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 192ojP-0006L2-00; Tue, 08 Apr 2003 10:45:27 +0200 To: Jeremy Yallop From: Akim Demaille Date: Tue, 08 Apr 2003 10:45:27 +0200 In-Reply-To: <20030404161516.GA3942@jdyallop.freeserve.co.uk> (Jeremy Yallop's message of "Fri, 4 Apr 2003 17:15:16 +0100") Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <20030404161516.GA3942@jdyallop.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: ifnames comment patch X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 08 Apr 2003 08:49:50 -0000 Thanks, installed. From MAILER-DAEMON Tue Apr 08 11:03:47 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 192udM-0003NP-00 for mharc-autoconf-patches@gnu.org; Tue, 08 Apr 2003 11:03:36 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192ubH-0000mT-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 11:01:27 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192ub9-0000j3-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 11:01:19 -0400 Received: from smtp-out.comcast.net ([24.153.64.115]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192uaq-0000OM-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 11:01:00 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout09.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HD100C4V5O2X8@mtaout09.icomcast.net> for autoconf-patches@gnu.org; Tue, 08 Apr 2003 11:00:03 -0400 (EDT) Received: (qmail 8171 invoked from network); Tue, 08 Apr 2003 15:00:02 +0000 Received: from localhost (HELO ximbiot.com) (?6HQkbHtkrV3T+GyqZ0se5OL9m7l7pEx7?@127.0.0.1) by localhost with SMTP; Tue, 08 Apr 2003 15:00:02 +0000 Date: Tue, 08 Apr 2003 11:00:01 -0400 From: Derek Robert Price To: Akim Demaille Message-id: <3E92E3F1.8020405@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <20030327184106.18184.qmail@mail.ximbiot.com> <3E84C6E0.20904@ximbiot.com> <3E8868C7.1000502@ximbiot.com> cc: autoconf-patches@gnu.org Subject: Re: 05no-escape-on-AT_CHECK-strings X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 08 Apr 2003 15:03:34 -0000 Akim Demaille wrote: >| Akim Demaille wrote: >| > Derek> Akim Demaille wrote: >| > >> I am absolutely against this patch. Revert it. >| > >> >> If you want something like this, you will first need to >| > explain it. >| > >> Derek> Again, CVS's current test suite often compares program >| > output against >| > Derek> shell variables defined earlier in the script. >| > >| >Then save these values in an expout file, and use [expout] as STDOUT >| >value. >| > >| >| The CVS test suite uses this almost every test. I could implement >| this as an m4 macro in the CVS test suite, but had thought it had some >| more general usefulness. How would you feel about an extra macro, >| perhaps AT_CHECK_NOESCAPE or the like which ran AT_CHECK to expout >| then allowed shell expansion on the args before comparison? > >This, why not. > Ok. Patch will follow. >| I also wanted to implement an AT_CHECK_EXPR (now AT_CHECK_EXPR & >| AT_CHECK_EXPR_NOESCAPE?) which used expr rather than diff to compare >| the strings. > >expr suffers from severe limitations, including portability issues. > Hrm, yeah. I was thinking the CVS test suite dealt with expr fine, but I just looked and realized that part of the way it deals is by gracefully detecting the problem with expr and telling the user that the test suite isn't going to run until they replace expr. There are a few cases where CVS substs env vars with values for literal `+', `?', end of line anchor, and a variant of `.*' which will match a newline across platforms, and it does search the path until it finds an expr which looks like GNU expr if it finds a broken expr, but it just gives up on some platforms when it finds a broken expr and no GNU expr. >| One example of where this is useful with CVS is in that >| CVS's includes dates in much of its output. Since these dates change >| depending on when the test is run, CVS's test suite often uses >| ${DATE}, which expands to a regexp which will match the date format >| though no particular date, to match dates in tests where the date is >| not the central issue being tested. > >This is where I suggest a wrapper that smashes these differences. > > Hrm. What sort of wrapper are you suggesting? sed'ing the differences into an empty string or some literal? Did you have something else in mind? You probably have a better idea of what will be portable than I do. Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- If thou dost marry, I'll give thee this plague for thy dowry: be thou as chaste as ice, as pure as snow, thou shalt not escape calumny. Get thee to a nunnery. Go, farewell. Or if thou wilt needs marry, marry a fool. For wise men know well enough what monsters you make of them. To a nunnery, go, and quickly, too. Fare- well. - Hamlet, Act III, Scene 1, Lines 135-141 From MAILER-DAEMON Tue Apr 08 16:14:39 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 192zTf-0005kI-00 for mharc-autoconf-patches@gnu.org; Tue, 08 Apr 2003 16:13:55 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192zTO-0005Xq-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 16:13:38 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192zTB-0005MD-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 16:13:27 -0400 Received: from mail.telepres.com ([209.226.75.17]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192zRV-00047K-00 for autoconf-patches@gnu.org; Tue, 08 Apr 2003 16:11:41 -0400 Received: from localhost by mail.telepres.com (Smail-3.2.0.111 2000-Feb-17 #1; 2000-Feb-24) /P:stdio/R:bind_hosts/T:inet_zone_bind_smtp id (sender ) for autoconf-patches@gnu.org; Tue, 8 Apr 2003 16:11:40 -0400 (EDT) Date: Tue, 8 Apr 2003 16:11:40 -0400 From: Eric Siegerman To: autoconf-patches@gnu.org Message-ID: <20030408161140.B2447@telepres.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="dc+cDN39EJAMEtIO" Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Telepresence Systems Inc. Subject: Some files don't get rebuilt after a configure X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 08 Apr 2003 20:13:52 -0000 --dc+cDN39EJAMEtIO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline A bug in Autoconf 2.57: lib/autom4te.cfg should get rebuilt after a "configure", but in fact you need to "make clean" first. 2003-04-08 Eric Siegerman * lib/Makefile.am (autom4te.cfg): Make it depend on Makefile. -- | | /\ |-_|/ > Eric Siegerman, Toronto, Ont. erics@telepres.com | | / My Wine works. However it crashes about half the time on startup. Apparently their simulation of windoze API is getting too accurate. :) - Kyle Sallee --dc+cDN39EJAMEtIO Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="autoconf.pat" --- autoconf-2.57/lib/Makefile.am Tue Feb 5 03:24:06 2002 +++ autoconf-2.57-eks/lib/Makefile.am Tue Apr 8 15:48:45 2003 @@ -39,7 +39,7 @@ # when the Autoconf version changes. Unfortunately, suffix rules # cannot have additional dependencies, so we have to use explicit rules. CLEANFILES = autom4te.cfg -autom4te.cfg: $(top_srcdir)/configure.ac $(srcdir)/autom4te.in +autom4te.cfg: $(top_srcdir)/configure.ac $(srcdir)/autom4te.in Makefile rm -f autom4te.cfg autom4te.tmp $(edit) $(srcdir)/autom4te.in >autom4te.tmp mv autom4te.tmp autom4te.cfg --dc+cDN39EJAMEtIO-- From MAILER-DAEMON Thu Apr 10 19:49:09 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 193lke-000108-00 for mharc-autoconf-patches@gnu.org; Thu, 10 Apr 2003 19:46:40 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 193lkG-0000cU-00 for autoconf-patches@gnu.org; Thu, 10 Apr 2003 19:46:16 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 193lk8-0000Q3-00 for autoconf-patches@gnu.org; Thu, 10 Apr 2003 19:46:08 -0400 Received: from gnuftp.gnu.org ([199.232.41.6]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193ljp-00008T-00 for autoconf-patches@gnu.org; Thu, 10 Apr 2003 19:45:49 -0400 Received: from [213.170.135.140] (helo=generic02) by gnuftp.gnu.org with esmtp (Exim 4.10.13) id 193ljo-0007Rx-00 for autoconf-patches@gnu.org; Thu, 10 Apr 2003 19:45:48 -0400 From: "Conference News" To: autoconf-patches@gnu.org X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Date: Fri, 11 Apr 2003 00:46:05 -0000 Mime-Version: 1.0 Content-Type: text/html; charset=us-ascii Message-Id: Subject: Conference Newsletter X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list Reply-To: newsletter@chinaconferenceguide.com List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Thu, 10 Apr 2003 23:46:31 -0000 China Conference Guide 2003

       ChinaConferenceGuide.com
China Conference Guide 2003 Welcomes You!
Edinburgh July 2003
China Conference Guide welcomes people from the commercial and educational sector involved in E-Learning, Distance Learning, Training, HR, IT Training, Localisation, ICT or Knowledge Management, to this world first international event. China represents the biggest target market for these sectors ever and is still largely untapped.

Entering the Chinese market place is a complex move. This conference provides a forum on exchange of market information not only on product and service requirements, but on specialist market entrance requirements. If you are working in any of these sectors you should seriously consider entering this event in your diary. The conference will be patronised by professionals from, China, the USA, Europe and Australia and represents the largest collective gathering of these specialists centred around the Chinese market ever!

Goto the website for more information:

www.chinaconferenceguide.com


Register within 48 hours to qualify for your promotional delegate discount!


Market Sectors:
 
  • E-Learning
  • Distance Learning
  • Training
  • HR Development
  • IT Training
  • Localisation
  • Learning Resources
  • Management Training
  • Blended Learning
  • Learning Services
  • ICT
  • Knowledge Management
  • Flexible Learning
  • We do really respect your privacy and work within a strict code of ethical standards relating to your data protection rights. If you no longer wish to receive future mailings from China Conference Guide please compose a new email message addressed to unsubscribe@chinaconferenceguide.com ensuring that the word UNSUBSCRIBE appears in the subject line, or simply click here and we will remove you from the list automatically.

    From MAILER-DAEMON Sat Apr 12 00:33:07 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 194ChO-0005gi-00 for mharc-autoconf-patches@gnu.org; Sat, 12 Apr 2003 00:33:06 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 194ChM-0005bq-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 00:33:04 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 194ChI-0005Tr-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 00:33:02 -0400 Received: from mail532.nifty.com ([202.248.37.221]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194ChH-0005NW-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 00:32:59 -0400 Received: from pc3 (fb168180.ot.FreeBit.NE.JP [61.203.168.180])by mail532.nifty.com with SMTP id h3C4WjOe029706 for ; Sat, 12 Apr 2003 13:32:46 +0900 Date: Sat, 12 Apr 2003 13:32:45 +0900 Message-Id: <200304120432.h3C4WjOe029706@mail532.nifty.com> From: =?ISO-2022-JP?B?GyRCTDVOQSVXJWwlPCVzJUgbKEI=?= To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit Subject: =?iso-2022-jp?b?GyRCTCQ+NUJ6OS05cCIoTDVOQSVXJWwlPCVzJUgbKEI=?= X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Sat, 12 Apr 2003 04:33:05 -0000 $B!c;v6HMM$K%W%l%<%s%H!*1~JgJ}K!$O$3$A$i$+$i$I$&$>(B http://homepage3.nifty.com/gurozawa/ From MAILER-DAEMON Sat Apr 12 03:30:10 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 194FRQ-00037L-00 for mharc-autoconf-patches@gnu.org; Sat, 12 Apr 2003 03:28:48 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 194FRC-0002sJ-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 03:28:34 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 194FQ9-00011i-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 03:27:31 -0400 Received: from anice-201-1-1-11.abo.wanadoo.fr ([80.13.35.11] helo=elf.meyering.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194FPj-0000SW-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 03:27:04 -0400 Received: by elf.meyering.net (Postfix, from userid 1002) id 5BC0C3FD7; Sat, 12 Apr 2003 09:27:01 +0200 (CEST) To: autoconf-patches@gnu.org From: Jim Meyering Date: Sat, 12 Apr 2003 09:27:01 +0200 Message-ID: <858yugdvlm.fsf@pi.meyering.net> Lines: 93 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: FYI: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Sat, 12 Apr 2003 07:28:46 -0000 Although we all admit that there is a better way to deal with this in the long run, I'm checking this in for now: * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro. * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT. Index: lib/autoconf/c.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/c.m4,v retrieving revision 1.175 diff -u -p -r1.175 c.m4 --- lib/autoconf/c.m4 6 Mar 2003 20:35:23 -0000 1.175 +++ lib/autoconf/c.m4 12 Apr 2003 06:37:30 -0000 @@ -1,6 +1,6 @@ # This file is part of Autoconf. -*- Autoconf -*- # Programming languages support. -# Copyright (C) 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1075,6 +1075,40 @@ if test $ac_cv_c_const = no; then [Define to empty if `const' does not conform to ANSI C.]) fi ])# AC_C_CONST + + +# AC_C_RESTRICT +# ------------- +# based on acx_restrict.m4, from the GNU Autoconf Macro Archive at: +# http://www.gnu.org/software/ac-archive/htmldoc/acx_restrict.html +# +# Determine whether the C/C++ compiler supports the "restrict" keyword +# introduced in ANSI C99, or an equivalent. Do nothing if the compiler +# accepts it. Otherwise, if the compiler supports an equivalent, +# define "restrict" to be that. Here are some variants: +# - GCC supports both __restrict and __restrict__ +# - older DEC Alpha C compilers support only __restrict +# - _Restrict is the only spelling accepted by Sun WorkShop 6 update 2 C +# Otherwise, define "restrict" to be empty. +AC_DEFUN([AC_C_RESTRICT], +[AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, + [ac_cv_c_restrict=no + # Try the official restrict keyword, then gcc's __restrict__, and + # the less common variants. + for ac_kw in restrict __restrict __restrict__ _Restrict; do + AC_COMPILE_IFELSE([AC_LANG_SOURCE( + [float * $ac_kw x;])], + [ac_cv_c_restrict=$ac_kw; break]) + done + ]) + case $ac_cv_c_restrict in + restrict) ;; + no) AC_DEFINE(restrict,, + [Define to equivalent of C99 restrict keyword, or to nothing if this + is not supported. Do not define if restrict is supported directly.]) ;; + *) AC_DEFINE_UNQUOTED(restrict, $ac_cv_c_restrict) ;; + esac +])# AC_C_RESTRICT # AC_C_VOLATILE Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.728 diff -u -p -r1.728 autoconf.texi --- doc/autoconf.texi 8 Apr 2003 07:18:15 -0000 1.728 +++ doc/autoconf.texi 12 Apr 2003 06:37:39 -0000 @@ -5252,6 +5252,23 @@ installers who run into trouble in this like GCC to compile their C code. @end defmac +@defmac AC_C_RESTRICT +@acindex C_RESTRICT +@cvindex volatile +If the C compiler recognizes the @code{restrict} keyword, don't do anything. +If it recognizes only a variant spelling (@code{__restrict}, +@code{__restrict__}, or @code{_Restrict}), then define +@code{restrict} to that. +Otherwise, define @code{restrict} to be empty. +Thus, programs may simply use @code{restrict} as if every C compiler +supported it; for those that do not, the @file{Makefile} +or configuration header defines it away. + +Although support in C++ for the @code{restrict} keyword is not +required, several C++ compilers do accept the keyword. +This macro works for them, too. +@end defmac + @defmac AC_C_VOLATILE @acindex{C_VOLATILE} @cvindex volatile From MAILER-DAEMON Sat Apr 12 07:13:30 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 194IvZ-0000YC-00 for mharc-autoconf-patches@gnu.org; Sat, 12 Apr 2003 07:12:09 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 194Iu6-0000HS-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 07:10:38 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 194Ina-0007dE-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 07:03:55 -0400 Received: from smtp-105-friday.nerim.net ([62.4.16.105] helo=kraid.nerim.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194Ijt-0007H4-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 07:00:06 -0400 Received: from localhost (gadl.net1.nerim.net [80.65.225.113]) by kraid.nerim.net (Postfix) with ESMTP id 70D4640EF2; Sat, 12 Apr 2003 13:00:02 +0200 (CEST) Received: from adl by localhost with local (Exim 3.36 #1 (Debian)) id 194IjF-0004Fd-00; Sat, 12 Apr 2003 12:59:25 +0200 To: Jim Meyering From: Alexandre Duret-Lutz X-Home-Page: http://gadl.free.fr/ X-GPG-Keyserver: http://pgp.mit.edu/ X-GPG-Fingerprint: FCA0 8615 0211 941A 2AB9 FA66 3859 C03B 2E23 6E47 X-Face: "Oky^obn}f(.QOV"RB7#1O@U^~rO6%5z5OrIm#nt{Fa4=cNRK@@e9rR$asU][QE[)7Pge8( kMx|^?!6wA~)0f1OmxROafMwBt9eDt(h[7F&qrs|Otp\ChrfJPH9A'&k$0@tl)1Lx Date: Sat, 12 Apr 2003 12:59:24 +0200 In-Reply-To: <858yugdvlm.fsf@pi.meyering.net> (Jim Meyering's message of "Sat, 12 Apr 2003 09:27:01 +0200") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <858yugdvlm.fsf@pi.meyering.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <2003-04-12-12-59-24+16347+duret_g@lrde.epita.fr> X-Attribution: adl Sender: Alexandre Duret-Lutz cc: autoconf-patches@gnu.org Subject: Re: FYI: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Sat, 12 Apr 2003 11:12:07 -0000 Hi Jim, I've noticed a small copy&paste error in your patch: Jim> +@defmac AC_C_RESTRICT Jim> +@acindex C_RESTRICT Jim> +@cvindex volatile ^^^^^^^^^^^^^^^^^^ This obviously comes the next entry in the manual :) Also I think you should mention this new macro in NEWS. -- Alexandre Duret-Lutz From MAILER-DAEMON Sat Apr 12 13:37:50 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 194Owl-0002HW-00 for mharc-autoconf-patches@gnu.org; Sat, 12 Apr 2003 13:37:47 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 194OwZ-0001kN-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 13:37:35 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 194OwV-0001W5-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 13:37:32 -0400 Received: from anice-201-1-1-11.abo.wanadoo.fr ([80.13.35.11] helo=elf.meyering.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194OwS-0001Sa-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 13:37:28 -0400 Received: by elf.meyering.net (Postfix, from userid 1002) id CE87A3FD8; Sat, 12 Apr 2003 19:37:26 +0200 (CEST) To: Alexandre Duret-Lutz In-Reply-To: <2003-04-12-12-59-24+16347+duret_g@lrde.epita.fr> (Alexandre Duret-Lutz's message of "Sat, 12 Apr 2003 12:59:24 +0200") References: <858yugdvlm.fsf@pi.meyering.net> <2003-04-12-12-59-24+16347+duret_g@lrde.epita.fr> From: Jim Meyering Date: Sat, 12 Apr 2003 19:37:26 +0200 Message-ID: <85wuhzd3c9.fsf@pi.meyering.net> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: autoconf-patches@gnu.org Subject: Re: FYI: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Sat, 12 Apr 2003 17:37:45 -0000 Hi Alexandre! you wrote: > I've noticed a small copy&paste error in your patch: > > Jim> +@defmac AC_C_RESTRICT > Jim> +@acindex C_RESTRICT > Jim> +@cvindex volatile > ^^^^^^^^^^^^^^^^^^ > > This obviously comes the next entry in the manual :) Thank you! > Also I think you should mention this new macro in NEWS. I will. New patch coming soon. From MAILER-DAEMON Sat Apr 12 16:04:40 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 194REm-0006rh-00 for mharc-autoconf-patches@gnu.org; Sat, 12 Apr 2003 16:04:32 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 194REZ-0006Hy-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 16:04:19 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 194REP-0005c3-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 16:04:14 -0400 Received: from anice-201-1-1-11.abo.wanadoo.fr ([80.13.35.11] helo=elf.meyering.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194REA-0004Z7-00 for autoconf-patches@gnu.org; Sat, 12 Apr 2003 16:03:54 -0400 Received: by elf.meyering.net (Postfix, from userid 1002) id 7171B3FD9; Sat, 12 Apr 2003 22:03:52 +0200 (CEST) To: autoconf-patches@gnu.org In-Reply-To: <2003-04-12-12-59-24+16347+duret_g@lrde.epita.fr> (Alexandre Duret-Lutz's message of "Sat, 12 Apr 2003 12:59:24 +0200") References: <858yugdvlm.fsf@pi.meyering.net> <2003-04-12-12-59-24+16347+duret_g@lrde.epita.fr> From: Jim Meyering Date: Sat, 12 Apr 2003 22:03:52 +0200 Message-ID: <85of3bcwk7.fsf@pi.meyering.net> Lines: 185 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: FYI: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Sat, 12 Apr 2003 20:04:29 -0000 Here's a more complete patch: 2003-04-12 Jim Meyering * NEWS: Mention the new macro. * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro. * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT. * tests/c.at: Test AC_C_RESTRICT. * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT. Index: NEWS =================================================================== RCS file: /cvsroot/autoconf/autoconf/NEWS,v retrieving revision 1.290 diff -u -p -r1.290 NEWS --- NEWS 28 Feb 2003 10:46:20 -0000 1.290 +++ NEWS 12 Apr 2003 19:57:11 -0000 @@ -1,5 +1,8 @@ * Major changes in Autoconf 2.57a -*- outline -*- +* New macros + AC_C_RESTRICT + * Improve DJGPP portability The Autoconf tools and configure behave better under DJGPP. @@ -9,8 +12,7 @@ configure: WARNING: pi.h: present but cannot be compiled configure: WARNING: pi.h: check for missing prerequisite headers? configure: WARNING: pi.h: proceeding with the preprocessor's result - - messages. + messages. * Major changes in Autoconf 2.57 Index: lib/autoconf/c.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/c.m4,v retrieving revision 1.175 diff -u -p -r1.175 c.m4 --- lib/autoconf/c.m4 6 Mar 2003 20:35:23 -0000 1.175 +++ lib/autoconf/c.m4 12 Apr 2003 19:57:12 -0000 @@ -1,6 +1,6 @@ # This file is part of Autoconf. -*- Autoconf -*- # Programming languages support. -# Copyright (C) 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1075,6 +1075,41 @@ if test $ac_cv_c_const = no; then [Define to empty if `const' does not conform to ANSI C.]) fi ])# AC_C_CONST + + +# AC_C_RESTRICT +# ------------- +# based on acx_restrict.m4, from the GNU Autoconf Macro Archive at: +# http://www.gnu.org/software/ac-archive/htmldoc/acx_restrict.html +# +# Determine whether the C/C++ compiler supports the "restrict" keyword +# introduced in ANSI C99, or an equivalent. Do nothing if the compiler +# accepts it. Otherwise, if the compiler supports an equivalent, +# define "restrict" to be that. Here are some variants: +# - GCC supports both __restrict and __restrict__ +# - older DEC Alpha C compilers support only __restrict +# - _Restrict is the only spelling accepted by Sun WorkShop 6 update 2 C +# Otherwise, define "restrict" to be empty. +AN_IDENTIFIER([restrict], [AC_C_RESTRICT]) +AC_DEFUN([AC_C_RESTRICT], +[AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, + [ac_cv_c_restrict=no + # Try the official restrict keyword, then gcc's __restrict__, and + # the less common variants. + for ac_kw in restrict __restrict __restrict__ _Restrict; do + AC_COMPILE_IFELSE([AC_LANG_SOURCE( + [float * $ac_kw x;])], + [ac_cv_c_restrict=$ac_kw; break]) + done + ]) + case $ac_cv_c_restrict in + restrict) ;; + no) AC_DEFINE(restrict,, + [Define to equivalent of C99 restrict keyword, or to nothing if this + is not supported. Do not define if restrict is supported directly.]) ;; + *) AC_DEFINE_UNQUOTED(restrict, $ac_cv_c_restrict) ;; + esac +])# AC_C_RESTRICT # AC_C_VOLATILE Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.728 diff -u -p -r1.728 autoconf.texi --- doc/autoconf.texi 8 Apr 2003 07:18:15 -0000 1.728 +++ doc/autoconf.texi 12 Apr 2003 19:57:21 -0000 @@ -5252,6 +5252,23 @@ installers who run into trouble in this like GCC to compile their C code. @end defmac +@defmac AC_C_RESTRICT +@acindex C_RESTRICT +@cvindex restrict +If the C compiler recognizes the @code{restrict} keyword, don't do anything. +If it recognizes only a variant spelling (@code{__restrict}, +@code{__restrict__}, or @code{_Restrict}), then define +@code{restrict} to that. +Otherwise, define @code{restrict} to be empty. +Thus, programs may simply use @code{restrict} as if every C compiler +supported it; for those that do not, the @file{Makefile} +or configuration header defines it away. + +Although support in C++ for the @code{restrict} keyword is not +required, several C++ compilers do accept the keyword. +This macro works for them, too. +@end defmac + @defmac AC_C_VOLATILE @acindex{C_VOLATILE} @cvindex volatile Index: tests/c.at =================================================================== RCS file: /cvsroot/autoconf/autoconf/tests/c.at,v retrieving revision 1.2 diff -u -p -r1.2 c.at --- tests/c.at 19 Apr 2002 19:07:49 -0000 1.2 +++ tests/c.at 12 Apr 2003 19:57:21 -0000 @@ -2,7 +2,7 @@ AT_BANNER([C low level compiling/preprocessing macros.]) -# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -74,15 +74,16 @@ AT_CLEANUP ## C keywords. ## ## ------------ ## -# GCC supports `const', `volatile', and `inline'. +# GCC supports `const', `inline', `restrict', and `volatile'. AT_CHECK_MACRO([C keywords], [[AC_PROG_CC AC_C_CONST AC_C_INLINE +AC_C_RESTRICT AC_C_VOLATILE -case $GCC,$ac_cv_c_const,$ac_cv_c_inline,$ac_cv_c_volatile in +case $GCC,$ac_cv_c_const,$ac_cv_c_inline,$ac_cv_c_restrict,$ac_cv_c_volatile in yes,*no*) - AC_MSG_ERROR([failed to detect `const', `inline' or `volatile' support]);; + AC_MSG_ERROR([failed to detect `const', `inline', `restrict', or `volatile' support]);; esac ]]) Index: tests/mktests.sh =================================================================== RCS file: /cvsroot/autoconf/autoconf/tests/mktests.sh,v retrieving revision 1.29 diff -u -p -r1.29 mktests.sh --- tests/mktests.sh 2 Sep 2002 06:44:27 -0000 1.29 +++ tests/mktests.sh 12 Apr 2003 19:57:21 -0000 @@ -1,7 +1,7 @@ #! /bin/sh # Build some of the Autoconf test files. -# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -144,7 +144,7 @@ ac_exclude_list='^AC_ARG_VAR$ ^(AC_TRY.*|AC_RUN_LOG)$ ^AC_.*_IFELSE$ ^AC_FD_CC$ -^(AC_(PROG_CC|C_CONST|C_INLINE|C_VOLATILE))$ +^(AC_(PROG_CC|C_CONST|C_INLINE|C_RESTRICT|C_VOLATILE))$ ^AC_(CYGWIN|CYGWIN32|EMXOS2|MING32|EXEEXT|OBJEXT)$ ^AC_PATH_XTRA$ ^AC_SYS_RESTARTABLE_SYSCALLS$ From MAILER-DAEMON Sun Apr 13 23:48:37 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 194uxR-0008GZ-00 for mharc-autoconf-patches@gnu.org; Sun, 13 Apr 2003 23:48:37 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 194uxN-00085p-00 for autoconf-patches@gnu.org; Sun, 13 Apr 2003 23:48:33 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 194uxI-0007oS-00 for autoconf-patches@gnu.org; Sun, 13 Apr 2003 23:48:29 -0400 Received: from kiwi.cs.ucla.edu ([131.179.128.19]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194uxH-0007jI-00 for autoconf-patches@gnu.org; Sun, 13 Apr 2003 23:48:27 -0400 Received: (from eggert@localhost) by kiwi.cs.ucla.edu (8.11.7+Sun/8.11.6/UCLACS-5.2) id h3E3mMP24642; Sun, 13 Apr 2003 20:48:22 -0700 (PDT) To: Jim Meyering References: <858yugdvlm.fsf@pi.meyering.net> <2003-04-12-12-59-24+16347+duret_g@lrde.epita.fr> <85of3bcwk7.fsf@pi.meyering.net> From: Paul Eggert Date: 13 Apr 2003 20:48:22 -0700 In-Reply-To: <85of3bcwk7.fsf@pi.meyering.net> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: autoconf-patches@gnu.org Subject: Re: FYI: new macro: AC_C_RESTRICT X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Mon, 14 Apr 2003 03:48:35 -0000 Thanks for doing that. I installed the following further minor patch to make a comment match the code. --- c.m4.~1.176.~ 2003-04-13 20:44:22.000000000 -0700 +++ c.m4 2003-04-13 20:44:54.616044000 -0700 @@ -1094,7 +1094,7 @@ AN_IDENTIFIER([restrict], [AC_C_RESTRICT AC_DEFUN([AC_C_RESTRICT], [AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, [ac_cv_c_restrict=no - # Try the official restrict keyword, then gcc's __restrict__, and + # Try the official restrict keyword, then gcc's __restrict, and # the less common variants. for ac_kw in restrict __restrict __restrict__ _Restrict; do AC_COMPILE_IFELSE([AC_LANG_SOURCE( From MAILER-DAEMON Tue Apr 15 08:48:50 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 195Pqt-0007Q1-00 for mharc-autoconf-patches@gnu.org; Tue, 15 Apr 2003 08:47:55 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 195Pqe-0006pn-00 for autoconf-patches@gnu.org; Tue, 15 Apr 2003 08:47:40 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 195Pq1-0005xE-00 for autoconf-patches@gnu.org; Tue, 15 Apr 2003 08:47:04 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195Ppv-0005fP-00 for autoconf-patches@gnu.org; Tue, 15 Apr 2003 08:46:55 -0400 Received: by mail.lysator.liu.se (Postfix, from userid 1646) id 3012E6B5B8; Tue, 15 Apr 2003 14:46:53 +0200 (MEST) Received: from fafner.lysator.liu.se (fafner.lysator.liu.se [130.236.254.31]) by mail.lysator.liu.se (Postfix) with ESMTP id 6D2156B5BB; Tue, 15 Apr 2003 14:46:51 +0200 (MEST) Received: (from nisse@localhost) by fafner.lysator.liu.se (8.12.8/8.12.8) id h3FCkolU012221; Tue, 15 Apr 2003 14:46:50 +0200 (MEST) X-Authentication-Warning: fafner.lysator.liu.se: nisse set sender to nisse@lysator.liu.se using -f Sender: nisse@lysator.liu.se To: autoconf-patches@gnu.org Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8bit From: nisse@lysator.liu.se (Niels =?iso-8859-1?q?M=F6ller?=) Date: 15 Apr 2003 14:46:49 +0200 Message-ID: Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 cc: pike-devel@lists.lysator.liu.se Subject: --localdir backwards compatibility X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 15 Apr 2003 12:47:53 -0000 The renaming of --localdir to --prepend-include is annoying when trying to keep a configure.in compatible between 2.13 and more modern versions. To make it less painful, I patched in some backwards compatibility to my local version of autoconf-2.57. Seems to work fine for me. --- autoconf.in-original Tue Nov 5 08:16:59 2002 +++ autoconf.in Tue Apr 15 14:23:43 2003 @@ -194,7 +194,9 @@ --prepend-include=* | -B?* | \ --warnings=* | -W?* ) AUTOM4TE="$AUTOM4TE $1"; shift ;; - + --localdir=* ) + AUTOM4TE="$AUTOM4TE --prepend-include=${1:11}" ; shift ;; + # Options with separated arg passed as is to autom4te. --include | -I | \ --prepend-include | -B | \ @@ -202,7 +204,11 @@ test $# = 1 && eval "$exit_missing_arg" AUTOM4TE="$AUTOM4TE $option $2" shift 2 ;; - + --localdir ) + test $# = 1 && eval "$exit_missing_arg" + AUTOM4TE="$AUTOM4TE --prepend-include $2" + shift 2 ;; + --trace=* | -t?* ) traces="$traces --trace='"`echo "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'" shift ;; Regards, /Niels From MAILER-DAEMON Thu Apr 17 08:49:57 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 1968pw-0001Ws-00 for mharc-autoconf-patches@gnu.org; Thu, 17 Apr 2003 08:49:56 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1968pu-0001VC-00 for autoconf-patches@gnu.org; Thu, 17 Apr 2003 08:49:54 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1968ps-0001PD-00 for autoconf-patches@gnu.org; Thu, 17 Apr 2003 08:49:53 -0400 Received: from [218.49.28.148] (helo=newsysm) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1968pl-0000s9-00 for autoconf-patches@gnu.org; Thu, 17 Apr 2003 08:49:51 -0400 From: postmaster@newsys.co.kr To: autoconf-patches@gnu.org Date: Thu, 17 Apr 2003 21:38:15 +0900 MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="9B095B5ADSN=_01C304D66FDD0EF000002093newsysm" Message-ID: Subject: Delivery Status Notification (Failure) X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Thu, 17 Apr 2003 12:49:54 -0000 This is a MIME-formatted message. Portions of this message may be unreadable without a MIME-capable mail program. --9B095B5ADSN=_01C304D66FDD0EF000002093newsysm Content-Type: text/plain; charset=unicode-1-1-utf-7 This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. az333@unitel.co.kr --9B095B5ADSN=_01C304D66FDD0EF000002093newsysm Content-Type: message/delivery-status Reporting-MTA: dns;newsysm Received-From-MTA: dns;218.49.28.148 Arrival-Date: Thu, 17 Apr 2003 21:27:12 +0900 Final-Recipient: rfc822;az333@unitel.co.kr Action: failed Status: 5.1.1 Diagnostic-Code: smtp;550 5.1.1 ... User unknown --9B095B5ADSN=_01C304D66FDD0EF000002093newsysm Content-Type: message/rfc822 Received: from 218.49.28.148 ([61.101.58.75]) by newsysm with Microsoft SMTPSVC(5.0.2195.5329); Thu, 17 Apr 2003 21:27:12 +0900 from: ¾Æ½Ã¹Ù¸® Subject: È¥ÀÚ¼­µÎ ÀßÇØ¿ä! Content-Type: text/html Content-Transfer-Encoding: 7bit Bcc: Return-Path: autoconf-patches@gnu.org Message-ID: X-OriginalArrivalTime: 17 Apr 2003 12:27:12.0158 (UTC) FILETIME=[AC012BE0:01C304DC] Date: 17 Apr 2003 21:27:12 +0900 Á¦¸ñ ¾øÀ½
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    ¿À´ÃÀÇ ¾÷µ¥ÀÌÆ® -[ ´Ù¿î·Îµå¸¦ Ŭ¸¯Çϼ¼¿ä ]
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    --9B095B5ADSN=_01C304D66FDD0EF000002093newsysm-- From MAILER-DAEMON Thu Apr 17 09:16:52 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 1969Ff-0002PO-00 for mharc-autoconf-patches@gnu.org; Thu, 17 Apr 2003 09:16:31 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1969Fc-0002Kq-00 for autoconf-patches@gnu.org; Thu, 17 Apr 2003 09:16:28 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1969Cp-0001Vq-00 for autoconf-patches@gnu.org; Thu, 17 Apr 2003 09:13:38 -0400 Received: from [218.49.28.148] (helo=newsysm) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19699q-0000sH-00 for autoconf-patches@gnu.org; Thu, 17 Apr 2003 09:10:30 -0400 From: postmaster@newsys.co.kr To: autoconf-patches@gnu.org Date: Thu, 17 Apr 2003 21:57:54 +0900 MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="9B095B5ADSN=_01C304D66FDD0EF000002B19newsysm" Message-ID: Subject: Delivery Status Notification (Failure) X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Thu, 17 Apr 2003 13:16:30 -0000 This is a MIME-formatted message. Portions of this message may be unreadable without a MIME-capable mail program. --9B095B5ADSN=_01C304D66FDD0EF000002B19newsysm Content-Type: text/plain; charset=unicode-1-1-utf-7 This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. automan7@chollian.dacom.co.kr --9B095B5ADSN=_01C304D66FDD0EF000002B19newsysm Content-Type: message/delivery-status Reporting-MTA: dns;newsysm Received-From-MTA: dns;218.49.28.148 Arrival-Date: Thu, 17 Apr 2003 21:27:12 +0900 Final-Recipient: rfc822;automan7@chollian.dacom.co.kr Action: failed Status: 5.1.2 Diagnostic-Code: smtp; 550 5.1.2 You(ip:218.49.28.148) are NOT allowed to RELAY (receiver:automan7@chollian.dacom.co.kr). --9B095B5ADSN=_01C304D66FDD0EF000002B19newsysm Content-Type: message/rfc822 Received: from 218.49.28.148 ([61.101.58.75]) by newsysm with Microsoft SMTPSVC(5.0.2195.5329); Thu, 17 Apr 2003 21:27:12 +0900 from: ¾Æ½Ã¹Ù¸® Subject: È¥ÀÚ¼­µÎ ÀßÇØ¿ä! Content-Type: text/html Content-Transfer-Encoding: 7bit Bcc: Return-Path: autoconf-patches@gnu.org Message-ID: X-OriginalArrivalTime: 17 Apr 2003 12:27:12.0158 (UTC) FILETIME=[AC012BE0:01C304DC] Date: 17 Apr 2003 21:27:12 +0900 Á¦¸ñ ¾øÀ½
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    ¿À´ÃÀÇ ¾÷µ¥ÀÌÆ® -[ ´Ù¿î·Îµå¸¦ Ŭ¸¯Çϼ¼¿ä ]
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
     
    [´Ù¿î·Îµå] [½Ç½Ã°£°¨»ó]
    --9B095B5ADSN=_01C304D66FDD0EF000002B19newsysm-- From MAILER-DAEMON Tue Apr 22 19:53:55 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 1987Zz-0002N9-00 for mharc-autoconf-patches@gnu.org; Tue, 22 Apr 2003 19:53:39 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1987Ze-000203-00 for autoconf-patches@gnu.org; Tue, 22 Apr 2003 19:53:18 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1987ZT-0001mE-00 for autoconf-patches@gnu.org; Tue, 22 Apr 2003 19:53:07 -0400 Received: from mta5.snfc21.pbi.net ([206.13.28.241]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1987Ym-0001Ef-00 for autoconf-patches@gnu.org; Tue, 22 Apr 2003 19:52:25 -0400 Received: from modrick ([66.124.225.63]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with SMTP id <0HDR00367RNBAZ@mta5.snfc21.pbi.net> for autoconf-patches@gnu.org; Tue, 22 Apr 2003 16:52:23 -0700 (PDT) Date: Tue, 22 Apr 2003 16:55:06 -0700 From: Mo DeJong To: autoconf-patches@gnu.org Message-id: <20030422165506.75f19889.mdejong@uncounted.org> MIME-version: 1.0 X-Mailer: Sylpheed version 0.8.1 (GTK+ 1.2.7; i686-pc-linux-gnu) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Patch to fix bug in VPATH in generated Makefile X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 22 Apr 2003 23:53:38 -0000 This patch fixes the following problem that I ran into in a misc package: % make make: *** No rule to make target `threadCmd.o', needed by `libthread2.5g.so'. Stop. I found that this was being caused by the following in the generated Makefile: @@ -258 +258 @@ -VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win +VPATH = /generic:$(srcdir)/unix:$(srcdir)/win The bug is in autoconf 2.57, it hosed up the VPATH of a perfectly good Makefile.in. I found that I could work around it by passing --srcdir=`pwd` or building outside the srcdir, but here is the real fix: P.S. It might be a good idea to not hose with the VPATH at all if it is know that GNU make is being used. 2003-04-22 Mo DeJong * lib/autoconf/status.m4 (AC_OUTPUT): When srcdir is "." and the VPATH in the Makefile is being modified, make sure the trailing / is removed since the current code will break perfectly good Makefiles. Also, make the subst global so that multiple srcdir values will get substituted. A Makefile.in line like: VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win Should produce a Makefile like: VPATH = generic:unix:win But the buggy code instead produced: VPATH = /generic:$(srcdir)/unix:$(srcdir)/win Index: lib/autoconf/status.m4 =================================================================== RCS file: /cvs/autoconf/lib/autoconf/status.m4,v retrieving revision 1.33 diff -u -r1.33 status.m4 --- lib/autoconf/status.m4 28 Feb 2003 10:11:12 -0000 1.33 +++ lib/autoconf/status.m4 22 Apr 2003 23:36:18 -0000 @@ -1218,9 +1218,9 @@ # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub=['/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; +s/:*\$(srcdir)\/:*/:/g; +s/:*\${srcdir}\/:*/:/g; +s/:*@srcdir@\/:*/:/g; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; From MAILER-DAEMON Wed Apr 23 03:47:32 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 198EyY-0005B6-00 for mharc-autoconf-patches@gnu.org; Wed, 23 Apr 2003 03:47:30 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 198Ey1-0004ZK-00 for autoconf-patches@gnu.org; Wed, 23 Apr 2003 03:46:57 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 198Exx-0004P5-00 for autoconf-patches@gnu.org; Wed, 23 Apr 2003 03:46:54 -0400 Received: from smtp-103-wednesday.nerim.net ([62.4.16.103] helo=kraid.nerim.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198Exx-0004Oe-00 for autoconf-patches@gnu.org; Wed, 23 Apr 2003 03:46:53 -0400 Received: from localhost (gadl.net1.nerim.net [80.65.225.113]) by kraid.nerim.net (Postfix) with ESMTP id C8F0D40FAB; Wed, 23 Apr 2003 09:46:50 +0200 (CEST) Received: from adl by localhost with local (Exim 3.36 #1 (Debian)) id 198EwU-0003pF-00; Wed, 23 Apr 2003 09:45:22 +0200 To: Mo DeJong From: Alexandre Duret-Lutz X-Home-Page: http://gadl.free.fr/ X-GPG-Keyserver: http://pgp.mit.edu/ X-GPG-Fingerprint: FCA0 8615 0211 941A 2AB9 FA66 3859 C03B 2E23 6E47 X-Face: "Oky^obn}f(.QOV"RB7#1O@U^~rO6%5z5OrIm#nt{Fa4=cNRK@@e9rR$asU][QE[)7Pge8( kMx|^?!6wA~)0f1OmxROafMwBt9eDt(h[7F&qrs|Otp\ChrfJPH9A'&k$0@tl)1Lx Date: Wed, 23 Apr 2003 09:45:19 +0200 In-Reply-To: <20030422165506.75f19889.mdejong@uncounted.org> (Mo DeJong's message of "Tue, 22 Apr 2003 16:55:06 -0700") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <20030422165506.75f19889.mdejong@uncounted.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <2003-04-23-09-45-19+14711+duret_g@lrde.epita.fr> X-Attribution: adl Sender: Alexandre Duret-Lutz cc: autoconf-patches@gnu.org Subject: Re: Patch to fix bug in VPATH in generated Makefile X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Wed, 23 Apr 2003 07:47:28 -0000 Hi Mo, >>> "Mo" == Mo DeJong writes: [...] Mo> 2003-04-22 Mo DeJong Mo> * lib/autoconf/status.m4 (AC_OUTPUT): When srcdir is "." Mo> and the VPATH in the Makefile is being modified, make Mo> sure the trailing / is removed since the current Mo> code will break perfectly good Makefiles. Also, Mo> make the subst global so that multiple srcdir Mo> values will get substituted. Mo> A Makefile.in line like: Mo> VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win Mo> Should produce a Makefile like: Mo> VPATH = generic:unix:win Mo> But the buggy code instead produced: Mo> VPATH = /generic:$(srcdir)/unix:$(srcdir)/win The comment in the code is probably confusing (and ought to be completed with your examples, IMHO) but the point is that ./configure should *entirely* remove lines like VPATH = $(srcdir) when srcdir=".". This is the most common VPATH setting in autoconfiscated projects. Is this behavior preserved by your patch? (I don't think so, but maybe I've overlooked something.) [...] -- Alexandre Duret-Lutz From MAILER-DAEMON Fri Apr 25 10:54:02 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 1994aQ-0006Ot-00 for mharc-autoconf-patches@gnu.org; Fri, 25 Apr 2003 10:54:02 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1994aN-0006O3-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 10:53:59 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1994aM-0006Np-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 10:53:59 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1994aM-0006Nl-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 10:53:58 -0400 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h3PErnZ14503 Fri, 25 Apr 2003 16:53:49 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 1994aH-0002Kq-00; Fri, 25 Apr 2003 16:53:53 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 1994aH-0002A6-00; Fri, 25 Apr 2003 16:53:53 +0200 To: nisse@lysator.liu.se (Niels =?iso-8859-1?q?M=F6ller?=) From: Akim Demaille Date: Fri, 25 Apr 2003 16:53:53 +0200 In-Reply-To: (Niels =?iso-8859-1?q?M=F6ller's?= message of "15 Apr 2003 14:46:49 +0200") Message-ID: User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: pike-devel@lists.lysator.liu.se cc: autoconf-patches@gnu.org Subject: Re: --localdir backwards compatibility X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Fri, 25 Apr 2003 14:54:00 -0000 |The renaming of --localdir to --prepend-include is annoying when |trying to keep a configure.in compatible between 2.13 and more modern |versions. To make it less painful, I patched in some backwards |compatibility to my local version of autoconf-2.57. Seems to work fine |for me. Please, drop 2.13, as it is too buggy, and trying to maintain compatibility with it is the worse that could happen to your scripts. | |--- autoconf.in-original Tue Nov 5 08:16:59 2002 |+++ autoconf.in Tue Apr 15 14:23:43 2003 |@@ -194,7 +194,9 @@ | --prepend-include=* | -B?* | \ | --warnings=* | -W?* ) | AUTOM4TE="$AUTOM4TE $1"; shift ;; |- |+ --localdir=* ) |+ AUTOM4TE="$AUTOM4TE --prepend-include=${1:11}" ; shift ;; I do not believe this would be portable anyway. From MAILER-DAEMON Fri Apr 25 11:25:01 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19953P-00034q-00 for mharc-autoconf-patches@gnu.org; Fri, 25 Apr 2003 11:23:59 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1994zk-0001hY-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 11:20:12 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1994y7-0000Ho-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 11:18:31 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1994xv-0000GU-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 11:18:19 -0400 Received: by mail.lysator.liu.se (Postfix, from userid 1646) id BC9AE6A080; Fri, 25 Apr 2003 17:18:17 +0200 (MEST) Received: from fafner.lysator.liu.se (fafner.lysator.liu.se [130.236.254.31]) by mail.lysator.liu.se (Postfix) with ESMTP id 9B0F269FE6; Fri, 25 Apr 2003 17:18:14 +0200 (MEST) Received: (from nisse@localhost) by fafner.lysator.liu.se (8.12.8/8.12.8) id h3PFIDZF001295; Fri, 25 Apr 2003 17:18:13 +0200 (MEST) X-Authentication-Warning: fafner.lysator.liu.se: nisse set sender to nisse@lysator.liu.se using -f Sender: nisse@lysator.liu.se To: Akim Demaille References: Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8bit From: nisse@lysator.liu.se (Niels =?iso-8859-1?q?M=F6ller?=) Date: 25 Apr 2003 17:18:13 +0200 In-Reply-To: Message-ID: Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 cc: pike-devel@lists.lysator.liu.se cc: autoconf-patches@gnu.org Subject: Re: --localdir backwards compatibility X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Fri, 25 Apr 2003 15:23:57 -0000 Akim Demaille writes: > Please, drop 2.13, as it is too buggy, and trying to maintain > compatibility with it is the worse that could happen to your scripts. Well, there's a lot of nifty stuff in the latest autoconf that I like, but there are also some more controversial things (like the perl/autom4te stuff, not using config.cache by default, and it seems to be an order of magnitude slower than autoconf-2.13). I use and require the latest autoconf for my own projects, but I don't think autoconf-2.13 is going to disappear soon. So for me, the problem is that I want to have 2.57 installed on my machine, and still be able to do development on projects, like pike, that prefer to use autoconf-2.13 or autoconf-2.52. And that *works*, I've noticed *no* problems with, except for the annoying renaming of --localdir. I'm actually considering getting the latest pre-autom4te version of autoconf (2.52?), and see if I can put it together with the m4 files of the latest autoconf release. ;-) Regards, /Niels From MAILER-DAEMON Fri Apr 25 12:17:43 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 1995qV-0006cl-00 for mharc-autoconf-patches@gnu.org; Fri, 25 Apr 2003 12:14:43 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1995pn-0006Pf-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 12:13:59 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1995mB-00040K-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 12:10:16 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1995d8-0002AO-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 12:00:54 -0400 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h3PG0OZ24912 Fri, 25 Apr 2003 18:00:24 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 1995cj-00031p-00; Fri, 25 Apr 2003 18:00:29 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 1995cj-0002ED-00; Fri, 25 Apr 2003 18:00:29 +0200 To: nisse@lysator.liu.se (Niels =?iso-8859-1?q?M=F6ller?=) From: Akim Demaille Date: Fri, 25 Apr 2003 18:00:29 +0200 In-Reply-To: (Niels =?iso-8859-1?q?M=F6ller's?= message of "25 Apr 2003 17:18:13 +0200") Message-ID: User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: pike-devel@lists.lysator.liu.se cc: autoconf-patches@gnu.org Subject: Re: --localdir backwards compatibility X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Fri, 25 Apr 2003 16:14:42 -0000 Niels> Akim Demaille writes: >> Please, drop 2.13, as it is too buggy, and trying to maintain >> compatibility with it is the worse that could happen to your scripts. Niels> Well, there's a lot of nifty stuff in the latest autoconf that I like, Niels> but there are also some more controversial things (like the Niels> perl/autom4te stuff, not using config.cache by default, and it seems Niels> to be an order of magnitude slower than autoconf-2.13). I use and Niels> require the latest autoconf for my own projects, but I don't think Niels> autoconf-2.13 is going to disappear soon. Slowness is relative: the more you run it, the less it is, precisely thanks to the cache. That's a dramatic speed up when using autoheader and/or automake. Still, 2.57 lets you disable the generation of that cache file. From MAILER-DAEMON Fri Apr 25 18:01:41 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 199BES-0006Ne-00 for mharc-autoconf-patches@gnu.org; Fri, 25 Apr 2003 17:59:48 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 199BED-0005x1-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 17:59:33 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 199BDs-0005BR-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 17:59:15 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199BAI-00037W-00 for autoconf-patches@gnu.org; Fri, 25 Apr 2003 17:55:30 -0400 Received: by mail.lysator.liu.se (Postfix, from userid 1646) id B60626C534; Fri, 25 Apr 2003 23:55:19 +0200 (MEST) Received: from fafner.lysator.liu.se (fafner.lysator.liu.se [130.236.254.31]) by mail.lysator.liu.se (Postfix) with ESMTP id EECC56AC9A; Fri, 25 Apr 2003 23:55:16 +0200 (MEST) Received: (from nisse@localhost) by fafner.lysator.liu.se (8.12.8/8.12.8) id h3PLtC49004761; Fri, 25 Apr 2003 23:55:12 +0200 (MEST) X-Authentication-Warning: fafner.lysator.liu.se: nisse set sender to nisse@lysator.liu.se using -f Sender: nisse@lysator.liu.se To: Akim Demaille References: Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8bit From: nisse@lysator.liu.se (Niels =?iso-8859-1?q?M=F6ller?=) Date: 25 Apr 2003 23:55:11 +0200 In-Reply-To: Message-ID: Lines: 90 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 cc: autoconf-patches@gnu.org Subject: Re: --localdir backwards compatibility X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Fri, 25 Apr 2003 21:59:46 -0000 Akim Demaille writes: > Slowness is relative: the more you run it, the less it is, precisely > thanks to the cache. That's a dramatic speed up when using autoheader > and/or automake. Not compared to autoconf-2.13. So let's leave the backwards compatibility question for now and talk a little about slowness. Compared to autoconf-2.13, current autoconf is really, really slow. Ok, on my 2 GHz PC at work it doesn't matter very much, but it's quite painful on my home machine (an old sparc station, 110 bogomips, which is adequate for most hacking I do). To get some numbers, I just downloaded the old autoconf-2.13. For a testcase, I use the configure script for adns-1.0, slightly hacked so that it works with both old and new autoconf. This is a fairly simple configure script of 150 lines. Some timings: First run with autoconf-2.57, no autom4te.cache: real 0m50.642s user 0m38.650s sys 0m9.710s Second run, using the autom4te.cache: real 0m17.839s user 0m7.540s sys 0m8.850s Third run, using the old autoconf-2.13: real 0m2.602s user 0m0.990s sys 0m1.370s About half of this difference (2.13 vs 2.57 with cache) is probably startup time, $ time autoconf --version autoconf (GNU Autoconf) 2.57 Written by David J. MacKenzie and Akim Demaille. [...] real 0m7.012s user 0m0.510s sys 0m6.270s $ time automake --version automake (GNU automake) 1.7.3 Written by Tom Tromey . [...] real 0m9.529s user 0m7.090s sys 0m0.730s $ time /usr/local/traditional/bin/autoconf --version Autoconf version 2.13 real 0m0.672s user 0m0.140s sys 0m0.390s So even with the cache, the modern autoconf is about an order of magnitude slower. Note that I can run the old autoconf (or autoheader, assuming it takes about the same cpu cycles) *20 times* during the time it takes to create autom4te.cache. I don't run autoconf and autoheader that many times between configure.in changes, so it seems the time spent building the cache doesn't pay off. When I installed autoconf-2.57 running make took about 20-30 *hours*. That's about the same time it takes to build gcc from scratch, including the C++ and java libraries (the bootstrap C compiler proper takes just an hour or two, iirc). I like the modern autoconf, but the slowdown *is* painful enough that I have no problem understanding that people hesitate before upgrading to autoconf-2.57. To me, autom4te.cache looks a lot like a mistake. On fast machines, it doesn't matter very much, and on slower machines like mine, the time spent building the cache appearantly doesn't pay off at all. And then you also get additional complexity, and the perl dependency (which matters to some people, most of which probably uses only autoconf, not automake). Best regards, /Niels From MAILER-DAEMON Mon Apr 28 02:26:41 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19A25t-00032E-00 for mharc-autoconf-patches@gnu.org; Mon, 28 Apr 2003 02:26:29 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19A24w-0002Xh-00 for autoconf-patches@gnu.org; Mon, 28 Apr 2003 02:25:30 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19A24k-00028S-00 for autoconf-patches@gnu.org; Mon, 28 Apr 2003 02:25:24 -0400 Received: from kiwi.cs.ucla.edu ([131.179.128.19]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19A24P-0001UJ-00 for autoconf-patches@gnu.org; Mon, 28 Apr 2003 02:24:57 -0400 Received: (from eggert@localhost) by kiwi.cs.ucla.edu (8.11.7+Sun/8.11.6/UCLACS-5.2) id h3S6Otd27914; Sun, 27 Apr 2003 23:24:55 -0700 (PDT) To: karl@freefriends.org (Karl Berry) References: <200304271400.h3RE0km31873@f7.net> From: Paul Eggert Date: 27 Apr 2003 23:24:55 -0700 In-Reply-To: <200304271400.h3RE0km31873@f7.net> Message-ID: Lines: 6 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: autoconf-patches@gnu.org Subject: Re: autoconf manual @direntries X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Mon, 28 Apr 2003 06:26:27 -0000 karl@freefriends.org (Karl Berry) writes: > These changes are to make the dir entries in the autoconf manual align > better with others. Thanks; installed. From MAILER-DAEMON Mon Apr 28 14:52:40 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19ADiI-0005Qw-00 for mharc-autoconf-patches@gnu.org; Mon, 28 Apr 2003 14:50:54 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19ADhm-0005G5-00 for autoconf-patches@gnu.org; Mon, 28 Apr 2003 14:50:22 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19ADhI-0004Il-00 for autoconf-patches@gnu.org; Mon, 28 Apr 2003 14:49:57 -0400 Received: from smtp-out.comcast.net ([24.153.64.116]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ADgE-0003dV-00 for autoconf-patches@gnu.org; Mon, 28 Apr 2003 14:48:46 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout01.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with SMTP id <0HE2006TBHBKMP@mtaout01.icomcast.net> for autoconf-patches@gnu.org; Mon, 28 Apr 2003 14:42:57 -0400 (EDT) Received: (qmail 20294 invoked from network); Mon, 28 Apr 2003 18:42:56 +0000 Received: from localhost (HELO ximbiot.com) (?lewED0+EMlkc3+amhfQI2KN/zM429dnp?@127.0.0.1) by localhost with SMTP; Mon, 28 Apr 2003 18:42:56 +0000 Date: Mon, 28 Apr 2003 14:42:56 -0400 From: Derek Robert Price To: autoconf-patches@gnu.org Message-id: <3EAD7630.7030405@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 Subject: Add autogenerated test suite files to tests/.cvsignore? X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Mon, 28 Apr 2003 18:50:52 -0000 Anyone mind if I add the following autogenerated test suite files to tests/.cvsignore: autoheader.at autoupdate.at bash2.dir functions.at general.at headers.at lang.at libs.at programs.at specific.at status.at types.at ? Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- Unix _IS_ user friendly - it's just selective about who its friends are! From MAILER-DAEMON Tue Apr 29 06:07:54 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19AS1Q-0001Mp-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:07:36 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AS1I-00019Y-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:07:28 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AS0L-0000JS-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:06:30 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ARzA-00084Z-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:05:16 -0400 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h3TA58M01111 Tue, 29 Apr 2003 12:05:08 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 19ARzB-00047X-00; Tue, 29 Apr 2003 12:05:17 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 19ARzB-0000Jz-00; Tue, 29 Apr 2003 12:05:17 +0200 To: derek@ximbiot.com From: Akim Demaille Date: Tue, 29 Apr 2003 12:05:16 +0200 In-Reply-To: <20030329005719.9063.qmail@mail.ximbiot.com> (derek@ximbiot.com's message of "Sat, 29 Mar 2003 00:57:19 +0000") Message-ID: User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) References: <20030329005719.9063.qmail@mail.ximbiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: 07AT_ARG_OPTION.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 10:07:35 -0000 Index: ChangeLog 2003-03-28 Derek Price * lib/autotest/general.m4: Comment various HELP_* diversions. (PARSE_ARGS_BEGIN): New section for option parsing related initialization. (AT_INIT): Reformat default help to delineate standard Autotest options from package specific ones. Alter at_prev handling for arguments with options. (AT_ARG_OPTION,AT_ARG_OPTION_ARG): New macros to define package specific options and associated help. Derek, could you comment your proposal please? What is the purpose? What kind of application do you have in mind? From MAILER-DAEMON Tue Apr 29 06:17:14 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19ASAg-0005tX-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:17:10 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19ASAJ-0005Yn-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:16:47 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AS7q-0004aI-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:14:15 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AS5n-0003ZQ-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:12:08 -0400 Received: from kualalumpur.lrde.epita.fr (kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h3TAC0M02185 Tue, 29 Apr 2003 12:12:00 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 19AS5k-0004B1-00; Tue, 29 Apr 2003 12:12:04 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 19AS5k-0000R8-00; Tue, 29 Apr 2003 12:12:04 +0200 To: derek@ximbiot.com From: Akim Demaille Date: Tue, 29 Apr 2003 12:12:04 +0200 In-Reply-To: <20030401182505.462.qmail@mail.ximbiot.com> (derek@ximbiot.com's message of "Tue, 01 Apr 2003 18:25:05 +0000") Message-ID: User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) References: <20030401182505.462.qmail@mail.ximbiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: 09test-AC_HELP_STRING.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 10:17:08 -0000 Derek> I'm still looking into m4_dquote()ing the m4_format() call, as Derek> you suggested, but straight replacement really messes things Derek> up. Off the top of my head, the results look like an Derek> m4_append() with a comma (`,') as a seperator. I will have to Derek> analyze the problem deeper to figure out why. Hi Derek, The main problem is to keep the semantics of Autoconf active here. Each (quoted) argument ought to be evaluated once, to perform macro expansion once. Your proposal break this rule. For instance m4_define([FOO], [Foo Foo Foo Foo Foo Foo Foo Foo]) AC_INIT echo "AC_HELP_STRING([FOO], [FOO], [FOO])" Ought to work. But technically, this is nearly impossible in all the cases (such as the one you mention) without changing M4. Once someone has time... From MAILER-DAEMON Tue Apr 29 06:22:09 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19ASEu-0006op-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:21:32 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19ASCJ-0006Xu-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:18:51 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19ASBe-0006PG-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:18:10 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ASB9-0006BJ-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:17:40 -0400 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h3TAHXM03096 Tue, 29 Apr 2003 12:17:33 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 19ASBC-0004DV-00; Tue, 29 Apr 2003 12:17:42 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 19ASBB-0000RQ-00; Tue, 29 Apr 2003 12:17:41 +0200 To: derek@ximbiot.com From: Akim Demaille Date: Tue, 29 Apr 2003 12:17:41 +0200 In-Reply-To: <20030401230541.11413.qmail@mail.ximbiot.com> (derek@ximbiot.com's message of "Tue, 01 Apr 2003 23:05:41 +0000") Message-ID: User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) References: <20030401230541.11413.qmail@mail.ximbiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: 11AT_KEYWORDS-without-commas.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 10:21:31 -0000 | This is a fix for a bug in AT_KEYWORDS that was preventing a second | call from working. The problem was that the comma being used as a | field seperator ended up wreaking havoc somewhere in m4_append_uniq | on the second call to AT_KEYWORDS. | | I decided not to try and mess with the quoting in m4_append_uniq and | m4_append. I just changed the field seperator AT_KEYWORDS passes to those | functions to a space instead. OK. We should keep this in mind though. | The AT_KEYWORDS change below addresses the above. The second part maybe | should have been a second patch, but it allows multiple invocations of | --keywords= to a testsuite and restricts keyword matches to whole keywords | unless maybe if the user passes a regexp to --keywords=. | | Index: ChangeLog | 2003-04-01 Derek Price | | * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the | seperator with m4_append_uniq(). It doesn't work. | (AT_CLEANUP): Add `;' to end of at_help_all. | (AT_INIT): Allow --keyword to be specified more than once. When | grepping $at_help_all for keywords, use the field and keyword | seperators to ensure a complete keyword match. Please, install. From MAILER-DAEMON Tue Apr 29 06:49:27 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19ASew-0003La-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:48:26 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19ASNY-0000U7-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:30:28 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19ASIH-0007sD-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:25:01 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ASC6-0006TZ-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:18:39 -0400 Received: from kualalumpur.lrde.epita.fr (kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h3TAIUM03251 Tue, 29 Apr 2003 12:18:30 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 19ASC2-0004EF-00; Tue, 29 Apr 2003 12:18:34 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 19ASC2-0000Rd-00; Tue, 29 Apr 2003 12:18:34 +0200 To: Derek Robert Price From: Akim Demaille Date: Tue, 29 Apr 2003 12:18:34 +0200 In-Reply-To: <3E92E3F1.8020405@ximbiot.com> (Derek Robert Price's message of "Tue, 08 Apr 2003 11:00:01 -0400") Message-ID: User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) References: <20030327184106.18184.qmail@mail.ximbiot.com> <3E84C6E0.20904@ximbiot.com> <3E8868C7.1000502@ximbiot.com> <3E92E3F1.8020405@ximbiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: 05no-escape-on-AT_CHECK-strings X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 10:48:25 -0000 Derek> Hrm. What sort of wrapper are you suggesting? sed'ing the Derek> differences into an empty string or some literal? Did you have Derek> something else in mind? You probably have a better idea of what will Derek> be portable than I do. This has been clarified since then, right? I was referring to wrappers such as in the GNU M4, Bison and Autoconf test suites. From MAILER-DAEMON Tue Apr 29 07:35:10 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19ATEU-0008JG-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 07:25:10 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AT4L-0005us-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 07:14:41 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19ASUW-0001sI-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:37:41 -0400 Received: from hermes.epita.fr ([163.5.255.10] helo=epita.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ASDA-0006ai-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 06:19:45 -0400 Received: from kualalumpur.lrde.epita.fr (mail@kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id h3TAJdM03461 Tue, 29 Apr 2003 12:19:39 +0200 (MEST) Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 19ASDE-0004Eu-00; Tue, 29 Apr 2003 12:19:48 +0200 Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 19ASDE-0000Rk-00; Tue, 29 Apr 2003 12:19:48 +0200 To: Derek Robert Price From: Akim Demaille Date: Tue, 29 Apr 2003 12:19:48 +0200 In-Reply-To: <3EAD7630.7030405@ximbiot.com> (Derek Robert Price's message of "Mon, 28 Apr 2003 14:42:56 -0400") Message-ID: User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) References: <3EAD7630.7030405@ximbiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Akim Demaille cc: autoconf-patches@gnu.org Subject: Re: Add autogenerated test suite files to tests/.cvsignore? X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 11:25:08 -0000 | Anyone mind if I add the following autogenerated test suite files to | tests/.cvsignore: | | autoheader.at | autoupdate.at | bash2.dir | functions.at | general.at | headers.at | lang.at | libs.at | programs.at | specific.at | status.at | types.at | | | ? They are not generated. Actually, most of them don't even exist! So please, track down what goes wrong in your environment. From MAILER-DAEMON Tue Apr 29 13:16:59 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19AYgC-0004ud-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 13:14:08 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AYg4-0004qe-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 13:14:00 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AYb7-0002UC-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 13:08:56 -0400 Received: from smtp-out.comcast.net ([24.153.64.110]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AYZR-00024u-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 13:07:09 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout10.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HE4007S77JXMS@mtaout10.icomcast.net> for autoconf-patches@gnu.org; Tue, 29 Apr 2003 13:07:09 -0400 (EDT) Received: (qmail 12150 invoked from network); Tue, 29 Apr 2003 17:07:06 +0000 Received: from localhost (HELO ximbiot.com) (?hDmDu4+3zVMlm9EG47aco7EPZ085W2lc?@127.0.0.1) by localhost with SMTP; Tue, 29 Apr 2003 17:07:06 +0000 Date: Tue, 29 Apr 2003 13:07:06 -0400 From: Derek Robert Price To: Akim Demaille Message-id: <3EAEB13A.3000002@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <3EAD7630.7030405@ximbiot.com> cc: autoconf-patches@gnu.org Subject: Re: Add autogenerated test suite files to tests/.cvsignore? X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 17:14:06 -0000 Ah, maybe they were left over in my environment from some earlier incarnation? I can see now that mktests.sh seems to be autogenerating files of the same names but with an "ac" prefix and that those files are now checked into CVS. Thanks. Sorry to bother you about that. Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- I will not eat things for money. I will not eat things for money. I will not eat things for money... - Bart Simpson on chalkboard, _The Simpsons_ Akim Demaille wrote: >| Anyone mind if I add the following autogenerated test suite files to >| tests/.cvsignore: >| >| autoheader.at >| autoupdate.at >| bash2.dir >| functions.at >| general.at >| headers.at >| lang.at >| libs.at >| programs.at >| specific.at >| status.at >| types.at >| >| >| ? > >They are not generated. Actually, most of them don't even exist! So >please, track down what goes wrong in your environment. > > From MAILER-DAEMON Tue Apr 29 17:06:07 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19AcCq-0003gM-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:00:04 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AcBZ-0002ce-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 16:58:45 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AcBA-00022N-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 16:58:22 -0400 Received: from smtp-out.comcast.net ([24.153.64.109]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Ac9b-0000iE-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 16:56:43 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout11.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HE400FQZI1JL8@mtaout11.icomcast.net> for autoconf-patches@gnu.org; Tue, 29 Apr 2003 16:53:43 -0400 (EDT) Received: (qmail 7187 invoked by uid 500); Tue, 29 Apr 2003 20:53:43 +0000 Date: Tue, 29 Apr 2003 20:53:43 +0000 From: derek@ximbiot.com To: autoconf-patches@gnu.org Message-id: <20030429205343.7186.qmail@mail.ximbiot.com> Content-transfer-encoding: 7BIT Subject: FYI: 13AT_KEYWORDS-without-commas.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 21:00:02 -0000 This is almost the same as the 11AT_KEYWORDS-without-commas.diff that Akim already approved, except that I needed to update the at_prev handling which was dependent on my 07AT_ARG_OPTION.diff and I caught an error in my grep which was excluding matches to the description field. Index: ChangeLog 2003-04-29 Derek Price * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the seperator with m4_append_uniq(). It doesn't work. (AT_CLEANUP): Add `;' to end of at_help_all. (AT_INIT): Allow --keywords to be specified more than once. When grepping $at_help_all for keywords, use the field and keyword seperators to ensure a complete keyword match. Alter at_prev handling to support the new --keywords behavior. Index: lib/autotest/general.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autotest/general.m4,v retrieving revision 1.141 diff -u -r1.141 general.m4 --- lib/autotest/general.m4 31 Mar 2003 20:25:52 -0000 1.141 +++ lib/autotest/general.m4 29 Apr 2003 20:47:37 -0000 @@ -214,9 +214,8 @@ do # If the previous option needs an argument, assign it. if test -n "$at_prev"; then - eval "$at_prev=\$at_option" + at_option=$at_prev=$at_option at_prev= - continue fi at_optarg=`expr "x$at_option" : 'x[[^=]]*=\(.*\)'` @@ -295,10 +294,10 @@ # Keywords. --keywords | -k ) - at_prev=at_keywords + at_prev=--keywords ;; --keywords=* ) - at_keywords=$at_optarg + at_keywords="$at_keywords,$at_optarg" ;; m4_divert_pop([PARSE_ARGS])dnl dnl Process *=* last to allow for user specified --option=* type arguments. @@ -330,7 +329,7 @@ do # It is on purpose that we match the test group titles too. at_groups_selected=`echo "$at_groups_selected" | - grep -i "^[[^;]]*;[[^;]]*;.*$at_keyword"` + grep -i "^[[^;]]*;[[^;]]*.*[[; ]]$at_keyword[[ ;]]"` done at_groups_selected=`echo "$at_groups_selected" | sed 's/;.*//'` # Smash the end of lines. @@ -802,7 +801,7 @@ # --------------------- # Declare a list of keywords associated to the current test group. m4_define([AT_KEYWORDS], -[m4_append_uniq([AT_keywords], [$1], [,])]) +[m4_append_uniq([AT_keywords], [$1], [ ])]) # AT_CLEANUP @@ -810,7 +809,7 @@ # Complete a group of related tests. m4_define([AT_CLEANUP], [m4_append([AT_help], -at_help_all=$at_help_all'm4_defn([AT_ordinal]);m4_defn([AT_line]);m4_defn([AT_description]);m4_ifdef([AT_keywords], [m4_defn([AT_keywords])]) +at_help_all=$at_help_all'm4_defn([AT_ordinal]);m4_defn([AT_line]);m4_defn([AT_description]);m4_ifdef([AT_keywords], [m4_defn([AT_keywords])]); ' )dnl $at_times_skip || times >$at_times_file From MAILER-DAEMON Tue Apr 29 17:08:24 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19AcJQ-0006EH-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:06:52 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AcIi-0005bn-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:06:08 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AcHo-0005HK-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:05:16 -0400 Received: from smtp-out.comcast.net ([24.153.64.110]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AcDh-0003zy-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:00:57 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout10.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HE400BJAI8UTZ@mtaout10.icomcast.net> for autoconf-patches@gnu.org; Tue, 29 Apr 2003 16:58:07 -0400 (EDT) Received: (qmail 7239 invoked from network); Tue, 29 Apr 2003 20:58:06 +0000 Received: from localhost (HELO ximbiot.com) (?IWx1gvej22a7WiKy2iPJtlGw+rZUtW9I?@127.0.0.1) by localhost with SMTP; Tue, 29 Apr 2003 20:58:06 +0000 Date: Tue, 29 Apr 2003 16:58:06 -0400 From: Derek Robert Price To: Akim Demaille Message-id: <3EAEE75E.50400@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <20030401230541.11413.qmail@mail.ximbiot.com> cc: autoconf-patches@gnu.org Subject: Re: 11AT_KEYWORDS-without-commas.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 21:06:51 -0000 Akim Demaille wrote: >| The AT_KEYWORDS change below addresses the above. The second part maybe >| should have been a second patch, but it allows multiple invocations of >| --keywords= to a testsuite and restricts keyword matches to whole keywords >| unless maybe if the user passes a regexp to --keywords=. >| >| Index: ChangeLog >| 2003-04-01 Derek Price >| >| * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the >| seperator with m4_append_uniq(). It doesn't work. >| (AT_CLEANUP): Add `;' to end of at_help_all. >| (AT_INIT): Allow --keyword to be specified more than once. When >| grepping $at_help_all for keywords, use the field and keyword >| seperators to ensure a complete keyword match. > >Please, install. > > Done. I had to make a few minor changes due to dependencies on a previous patch and a minor re error I caught. I sent the whole new patch to autoconf-patches with notes on the changes as "FYI: 13AT_KEYWORDS-without-commas.diff" Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- I heard a lot of stories in my time. They went along with the sound of the tinny piano playing in the parlor downstairs. - Humphrey Bogart as Rick, _Casablanca_ From MAILER-DAEMON Tue Apr 29 17:25:57 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19Acbs-00055R-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:25:56 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19Acbo-000520-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:25:52 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Acbl-0004zC-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:25:51 -0400 Received: from smtp-out.comcast.net ([24.153.64.110]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AcYF-0004DB-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:22:11 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout10.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HE400BNEJ6UTZ@mtaout10.icomcast.net> for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:18:31 -0400 (EDT) Received: (qmail 7521 invoked from network); Tue, 29 Apr 2003 21:18:30 +0000 Received: from localhost (HELO ximbiot.com) (?ppMHF7AiWnUncAEF3V2GqfEeYzDWrQ2F?@127.0.0.1) by localhost with SMTP; Tue, 29 Apr 2003 21:18:30 +0000 Date: Tue, 29 Apr 2003 17:18:30 -0400 From: Derek Robert Price To: Akim Demaille Message-id: <3EAEEC26.7000108@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <20030329005719.9063.qmail@mail.ximbiot.com> cc: autoconf-patches@gnu.org Subject: Re: 07AT_ARG_OPTION.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 21:25:56 -0000 Akim Demaille wrote: >Index: ChangeLog >2003-03-28 Derek Price > > * lib/autotest/general.m4: Comment various HELP_* diversions. > (PARSE_ARGS_BEGIN): New section for option parsing related > initialization. > (AT_INIT): Reformat default help to delineate standard Autotest > options from package specific ones. Alter at_prev handling for > arguments with options. > (AT_ARG_OPTION,AT_ARG_OPTION_ARG): New macros to define package > specific options and associated help. > >Derek, could you comment your proposal please? What is the purpose? >What kind of application do you have in mind? > > This was all to define the AT_ARG_OPTION & AT_ARG_OPTION_ARG macros. Basically, this allows a generated testsuite to accept arbitrary options on the command line. My purpose was to allow the CVS test suite I am creating to accept some of the same options the old test suite did, for instance, -r to only run the remote tests and -s to specify the name of an alternate server executable to test against the client. I have duplicated the -r behavior using keywords, though it doesn't hurt to maintain the old options for backwards compatibility, but I hadn't come up with an easier way to implement -s yet, which allows for testing a CVS client against an older (or newer) server executable instead of against itself. Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- Predeterminism was doomed from the start. From MAILER-DAEMON Tue Apr 29 17:36:26 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19Ackm-0006yl-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:35:08 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AckS-0006Qo-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:34:48 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Acja-0004nh-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:33:54 -0400 Received: from smtp-out.comcast.net ([24.153.64.110]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Achr-0003PH-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:32:07 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout10.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HE400CG4JRO4Y@mtaout10.icomcast.net> for autoconf-patches@gnu.org; Tue, 29 Apr 2003 17:31:00 -0400 (EDT) Received: (qmail 7700 invoked from network); Tue, 29 Apr 2003 21:31:00 +0000 Received: from localhost (HELO ximbiot.com) (?C0IbgA2Q3yjfu1lmNo2tWGk9dzmBF/HB?@127.0.0.1) by localhost with SMTP; Tue, 29 Apr 2003 21:31:00 +0000 Date: Tue, 29 Apr 2003 17:30:59 -0400 From: Derek Robert Price To: Akim Demaille Message-id: <3EAEEF13.10201@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <20030327184106.18184.qmail@mail.ximbiot.com> <3E84C6E0.20904@ximbiot.com> <3E8868C7.1000502@ximbiot.com> <3E92E3F1.8020405@ximbiot.com> cc: autoconf-patches@gnu.org Subject: Re: 05no-escape-on-AT_CHECK-strings X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 21:35:06 -0000 Akim Demaille wrote: > Derek> Hrm. What sort of wrapper are you suggesting? sed'ing the > Derek> differences into an empty string or some literal? Did you have > Derek> something else in mind? You probably have a better idea of what will > Derek> be portable than I do. > >This has been clarified since then, right? I was referring to >wrappers such as in the GNU M4, Bison and Autoconf test suites. > > Yes, I think I understand what you meant here, now. Thanks. Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- I will not charge admission to the bathroom. I will not charge admission to the bathroom. I will not charge admission to the bathroom... - Bart Simpson on chalkboard, _The Simpsons_ From MAILER-DAEMON Tue Apr 29 18:22:02 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19AdU9-0001D9-00 for mharc-autoconf-patches@gnu.org; Tue, 29 Apr 2003 18:22:01 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AdU5-00017e-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 18:21:57 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AdU3-00013e-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 18:21:55 -0400 Received: from smtp-out.comcast.net ([24.153.64.109]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AdU2-00013X-00 for autoconf-patches@gnu.org; Tue, 29 Apr 2003 18:21:54 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout11.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HE400GQUM45DI@mtaout11.icomcast.net> for autoconf-patches@gnu.org; Tue, 29 Apr 2003 18:21:42 -0400 (EDT) Received: (qmail 8233 invoked from network); Tue, 29 Apr 2003 22:21:41 +0000 Received: from localhost (HELO ximbiot.com) (?E4CrN1rb7Hp+1M6iK0UIVMIoqf9TIUJy?@127.0.0.1) by localhost with SMTP; Tue, 29 Apr 2003 22:21:41 +0000 Date: Tue, 29 Apr 2003 18:21:41 -0400 From: Derek Robert Price To: Akim Demaille Message-id: <3EAEFAF5.3030108@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <20030401182505.462.qmail@mail.ximbiot.com> cc: autoconf-patches@gnu.org Subject: Re: 09test-AC_HELP_STRING.diff X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Tue, 29 Apr 2003 22:21:59 -0000 Akim Demaille wrote: > Derek> I'm still looking into m4_dquote()ing the m4_format() call, as > Derek> you suggested, but straight replacement really messes things > Derek> up. Off the top of my head, the results look like an > Derek> m4_append() with a comma (`,') as a seperator. I will have to > Derek> analyze the problem deeper to figure out why. > >Hi Derek, > >The main problem is to keep the semantics of Autoconf active here. >Each (quoted) argument ought to be evaluated once, to perform macro >expansion once. Your proposal break this rule. > >For instance > >m4_define([FOO], [Foo Foo Foo Foo Foo Foo Foo Foo]) >AC_INIT >echo "AC_HELP_STRING([FOO], [FOO], [FOO])" > >Ought to work. But technically, this is nearly impossible in all the >cases (such as the one you mention) without changing M4. Once someone >has time... > > So you are suggesting I drop this one completely? You have more M4 experience than I do, so if you tell me I'm wasting my time trying to fix this in AC, I'll probably trust you. I've already spent quite a few hours trying to get this one right. I could use an "|" in my help text in place of ",". It won't be consistent with the other options, but for now I could view that as minor. Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- My karma ran over my dogma. From MAILER-DAEMON Wed Apr 30 09:17:09 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19ArQG-0007eQ-00 for mharc-autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:14:56 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19ArOb-0006ah-00 for autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:13:13 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19ArMp-0004x3-00 for autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:11:24 -0400 Received: from smtp-out.comcast.net ([24.153.64.109]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ArKW-0003t7-00 for autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:09:00 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout11.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HE50040RR523S@mtaout11.icomcast.net> for autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:07:50 -0400 (EDT) Received: (qmail 1471 invoked from network); Wed, 30 Apr 2003 13:07:49 +0000 Received: from localhost (HELO ximbiot.com) (?oFF4mfidfOUEWbCrHUsxdWg5u3dgFLFo?@127.0.0.1) by localhost with SMTP; Wed, 30 Apr 2003 13:07:49 +0000 Date: Wed, 30 Apr 2003 09:07:49 -0400 From: Derek Robert Price To: autoconf-patches@gnu.org Message-id: <3EAFCAA5.90108@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <3EAD7630.7030405@ximbiot.com> <3EAEB13A.3000002@ximbiot.com> Subject: Another file for .cvsignore? X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Wed, 30 Apr 2003 13:14:54 -0000 How about lib/emacs/elc-stamp? That seems to be a built every time I compile the dev Autoconf and CVS keeps warning me about it. Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- I am for encouraging the progress of science in all its branches, and not for raising a hue and cry against the sacred name of philosophy; for awing the human mind by stories of raw-head and bloody bones to a distrust of its own vision, and to repose implicitly on that of others; to go backwards instead of forwards to look for improvement; to believe that government, religion, morality and every other science were in the highest perfection in the ages of the darkest ignorance, and that nothing can ever be decided more perfect than what was established by our forefathers. - Thomas Jefferson to Elbridge Gerry, 1799 From MAILER-DAEMON Wed Apr 30 09:34:22 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.10.13) id 19Argy-0005AC-00 for mharc-autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:32:12 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19ArWY-0002Ia-00 for autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:21:26 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19ArQ1-0007Oz-00 for autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:14:44 -0400 Received: from smtp-out.comcast.net ([24.153.64.113]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ArPg-0007BK-00 for autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:14:20 -0400 Received: from mail.ximbiot.com (pcp01464431pcs.lpaxtn01.pa.comcast.net [68.82.83.152]) by mtaout03.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HE500GSJR9J36@mtaout03.icomcast.net> for autoconf-patches@gnu.org; Wed, 30 Apr 2003 09:10:31 -0400 (EDT) Received: (qmail 1539 invoked from network); Wed, 30 Apr 2003 13:10:31 +0000 Received: from localhost (HELO ximbiot.com) (?d1OvJzKmWXZm++6f15dybpaDq4Ofhok6?@127.0.0.1) by localhost with SMTP; Wed, 30 Apr 2003 13:10:31 +0000 Date: Wed, 30 Apr 2003 09:10:30 -0400 From: Derek Robert Price To: Akim Demaille Message-id: <3EAFCB46.4020003@ximbiot.com> Organization: Ximbiot MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <20030327184106.18184.qmail@mail.ximbiot.com> <3E84C6E0.20904@ximbiot.com> <3E8868C7.1000502@ximbiot.com> <3E92E3F1.8020405@ximbiot.com> <3EAEEF13.10201@ximbiot.com> cc: autoconf-patches@gnu.org Subject: Re: 05no-escape-on-AT_CHECK-strings X-BeenThere: autoconf-patches@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Patches for autoconf, the GNU build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , X-List-Received-Date: Wed, 30 Apr 2003 13:32:10 -0000 Derek Robert Price wrote: > Akim Demaille wrote: > >> Derek> Hrm. What sort of wrapper are you suggesting? sed'ing the >> Derek> differences into an empty string or some literal? Did you have >> Derek> something else in mind? You probably have a better idea of >> what will >> Derek> be portable than I do. >> >> This has been clarified since then, right? I was referring to >> wrappers such as in the GNU M4, Bison and Autoconf test suites. > > Yes, I think I understand what you meant here, now. Thanks. Okay, I have a question left: Are you suggesting a general wrapper that smashes the differences for all `expr' for autoshell, for instance AS_EXPR, or more likely AS_RE, or something designed for my particular scenario that I check into the CVS CVS as part of the CVS test suite? Derek -- *8^) Email: derek@ximbiot.com Get CVS support at ! -- Round up the usual suspects. - Claude Rains as Captain Louis Renault, _Casablanca_