Re: Portability of `?' in sed

2000-03-10 Thread Akim Demaille
> "Greg" == Greg A Woods <[EMAIL PROTECTED]> writes: Greg> [ On , March 9, 2000 at 19:33:12 (+0100), Akim Demaille wrote: ] >> Subject: Re: Portability of `?' in sed >> >> I think the answer from Nicolas Joly demonstrate it is not. >> Thanks! Greg> Indeed the '?' meta-char is not portable i

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Akim Demaille
The Autoconf test suite is filter in two different places: once to avoid testing all the macros, since some of them are already run by other tests etc., and once to check that the configure scripts do stay within their name space (it does think by saving the env, and comparing it later, filteri

Re: PACKAGE and VERSION

2000-03-10 Thread Akim Demaille
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: >> I'd like to avoid the Automake third arg trick to disable >> AC_DEFINE, there are probably more esthetic means to achieve this. Alexandre> How about simply not defining it at all? People can always Alexandre> AC_DEFINE or AC_SU

Re: PACKAGE and VERSION

2000-03-10 Thread Alexandre Oliva
On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: >> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: Alexandre> How about simply not defining it at all? People can always Alexandre> AC_DEFINE or AC_SUBST them on their own. > Hm, right, but it is so common, that providing

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Alexandre Oliva
On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: > and it turns out that his sed (the very same bloody sed which makes > writing config.status a real challenge) doesn't seem to support the > alternation at all Yup, that's right. Alternation is not portable for sed. > Of course too, we

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Akim Demaille
| On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: | > and it turns out that his sed (the very same bloody sed which makes | > writing config.status a real challenge) doesn't seem to support the | > alternation at all | | Yup, that's right. Alternation is not portable for sed. | | > O

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Alexandre Oliva
On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: > | How about writing a shell snippet in configure.in that outputs the > | egrep regexp? > Indeed, but I bet anchors cannot portably be embedded in > alternations. Does this apply to egrep too? If it does, we can always use two egreps,

Re: PACKAGE and VERSION

2000-03-10 Thread Akim Demaille
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: >> Hm, right, but it is so common, that providing a means to shorten >> the configure.in would be welcome. Alexandre> As long as there's a way to avoid having them defined, I'm Alexandre> all for it. OK. >> AC_SUBST is cost les

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Akim Demaille
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> Indeed, but I bet anchors cannot portably be embedded in Akim> alternations. I was probably too pessimistic, > echo "toto" | egrep -e 'bar|^toto$' toto > uname -a IRIX pulsar 6.3 12161207 IP32 bash$ echo "toto" | egrep -e 'bar|^t

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Akim Demaille
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: >> Indeed, but I bet anchors cannot portably be embedded in >> alternations. Alexandre> Does this apply to egrep too? In fact I've thought all the RE engines were the same, so a failing sed would be a failing egrep. But actually

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Felix Lee
Akim Demaille <[EMAIL PROTECTED]>: > In fact I've thought all the RE engines were the same, so a failing > sed would be a failing egrep. But actually the problem we faced was > an anchor inside a paren group, which I had generalized a bit too fast > to all the `complex' structures. Maybe alterna

Autoconf, Emacs and C-x 4 a

2000-03-10 Thread Akim Demaille
This might be useful for some: better support of Autoconf in C-x 4 a: --- /tmp/zshb9hLGx Fri Mar 10 13:21:59 2000 +++ add-log.el Wed Mar 1 18:16:05 2000 @@ -649,6 +649,10 @@ (if (re-search-backward "^sub[ \t]+\\([^ \t\n]+\\)" nil t) (buffer-substring

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Akim Demaille
> "Felix" == Felix Lee <[EMAIL PROTECTED]> writes: Felix> yes, afaik it's only sed /\(^foo$\)/ that isn't portable. Felix> egrep '(^foo$)' and '^foo|bar$' should be fine. Good news, thanks. Hey, I have an obscure idea :-] There is one regexp engine I know very well, and will always be the

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Alexandre Oliva
On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: > Hey, I have an obscure idea :-] ^ :-) > How about using m4 to filter out those guys :) Yep, I had thought of that. But if we can make egrep work, m4 is overkill. -- Alexandre Oliva http://www.ic.u

patch wrapper

2000-03-10 Thread Akim Demaille
Would someone have already written a small wrapper around patch which would take care of guessing the -p, and the special case of ChangeLogs? Something which would update the date, and insert the entry at the top of ChangeLog, instead of letting patch try to find the place thanks to context (whi

Re: Autoconf, Emacs and C-x 4 a

2000-03-10 Thread Lars J. Aas
On Fri, Mar 10, 2000 at 01:23:09PM +0100, Akim Demaille wrote: : This might be useful for some: better support of Autoconf in C-x 4 a: Do you have something for us vi-enthusiasts too? ;) Lars J

Re: Autoconf, Emacs and C-x 4 a

2000-03-10 Thread Alexandre Oliva
On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: > This might be useful for some: better support of Autoconf in C-x 4 a: Great! Make sure you send this to the maintainers of GNU Emacs and XEmacs. -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy GuaranĂ¡ Cygnus Solutio

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Akim Demaille
| On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: | > Hey, I have an obscure idea :-] | ^ :-) | | > How about using m4 to filter out those guys :) | | Yep, I had thought of that. But if we can make egrep work, m4 is | overkill. Nah, you still don't ha

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Akim Demaille
Nicolas, how about the following patch? Akim Index: tests/Makefile.am === RCS file: /cvs/autoconf/tests/Makefile.am,v retrieving revision 1.16 diff -u -r1.16 Makefile.am --- tests/Makefile.am 2000/03/08 16:12:10 1.16 +++ tes

Re: Autoconf, Emacs and C-x 4 a

2000-03-10 Thread Akim Demaille
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: Alexandre> On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: >> This might be useful for some: better support of Autoconf in C-x 4 >> a: Alexandre> Great! Make sure you send this to the maintainers of GNU Alexandre> Emacs

Re: patch wrapper

2000-03-10 Thread Alexandre Oliva
On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: > Would someone have already written a small wrapper around patch which > would take care of guessing the -p, and the special case of > ChangeLogs? Something which would update the date, and insert the > entry at the top of ChangeLog, ins

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Akim Demaille
Arg, sorry, I sent an incomplete patch, forget it. Akim Index: tests/Makefile.am === RCS file: /cvs/autoconf/tests/Makefile.am,v retrieving revision 1.16 diff -u -r1.16 Makefile.am --- tests/Makefile.am 2000/03/08 16:12:10 1

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Alexandre Oliva
On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: > Nah, you still don't have the m4 spirit. In fact, RMS did a big > mistake with elisp, m4 is a fine kitchen sink ;) :-) > I just noticed that Automake replaces all the \-continuation lines > with a single space, so I can to this for ha

Re: problem with multiple -e flags for egrep

2000-03-10 Thread Nicolas Joly
On Fri, Mar 10, 2000 at 02:38:41PM +0100, Akim Demaille wrote: > Arg, sorry, I sent an incomplete patch, forget it. The second one is great, all tests are successful. Thanks, Nicolas. -- Nicolas Joly Informatique Scientifique Institut Pasteur, Paris.

Re: patch wrapper

2000-03-10 Thread Akim Demaille
Great, Alexandre. Thanks!

Re: Autoconf, Emacs and C-x 4 a

2000-03-10 Thread Jim Meyering
"Lars J. Aas" <[EMAIL PROTECTED]> writes: | On Fri, Mar 10, 2000 at 01:23:09PM +0100, Akim Demaille wrote: | : This might be useful for some: better support of Autoconf in C-x 4 a: | | Do you have something for us vi-enthusiasts too? ;) Actually, yes. Use emacs' vi-emulation (viper) mode. It pr

configuring libraries

2000-03-10 Thread K. Richard Pixley
I'm trying to use autoconf to configure a libc sort of library and having some trouble. AC_PROG_CC tries to link an executable in order to determine whether the C compiler is functional. But, of course, at this point in my toolchain development, I haven't yet built a crt0.o as it's in *this* dir

More shell variables that change: LINENO and RANDOM

2000-03-10 Thread John David Anglin
The following patch adds LINENO and RANDOM to shell variables that change in actest.m4. -- J. David Anglin [EMAIL PROTECTED] National Research Council of Canada (613) 990-0752 (FAX: 952-6605) --- actest.m4.orig Fri Mar 10 10:22:14 2000 +++ acte

Standard macro for OpenGL check?

2000-03-10 Thread Braden N. McDaniel
Might there be any interest in having a standard macro to check for OpenGL packaged with autoconf? There's already such a thing for X; so I wonder, how about OpenGL? In the absence of any such standard macro, I find that when I use more than one library that depends on OpenGL, each library tends