[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison-1.29c 'configure' problems on Solaris 8.
From: |
Akim Demaille |
Subject: |
Re: bison-1.29c 'configure' problems on Solaris 8. |
Date: |
03 Oct 2001 10:41:49 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
Thanks Paul!
(More answers later, I don't have much time presently)
| Solaris 8 'awk' is old awk, which doesn't have the sub() function.
| And even if it did, you can't put spaces between 'sub' and '(', as old
| awk requires there to be no space between a function identifier and
| the '('.
Wow... I really thought only GNU AWk was like this, and only with
user defined functions.
| I'll let you handle this one.
Here is my proposal:
Index: lib/m4sugar/m4sh.m4
===================================================================
RCS file: /cvs/autoconf/lib/m4sugar/m4sh.m4,v
retrieving revision 1.53
diff -u -u -r1.53 m4sh.m4
--- lib/m4sugar/m4sh.m4 2001/10/02 23:14:30 1.53
+++ lib/m4sugar/m4sh.m4 2001/10/03 08:28:09
@@ -143,12 +143,12 @@
!= x$as_me.lineno; then
# Be sure to write the pattern so that it doesn't replace itself:
# it must not match itself.
- awk '{
- if ($[0] ~ /[[$]]LINENO/)
- while (sub (/[[$]]LINENO/, NR))
- continue
- print
- }' <$as_myself >$as_me.lineno
+ awk <$as_myself '
+ /[[$]]LINENO/ { printf "%d:", NR + 1 }
+ { print }
+ ' |
+ sed ['/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/'] \
+ >$as_me.lineno
chmod +x $as_me.lineno
fi
Appended here are samples, so that you may check it easily:
lineno.as
Description: Text document
lineno
Description: Bourne shell script
To recreate lineno:
$ autom4te -l m4sh lineno.as -o lineno -I $ace/lib
where $ace is your CVS Autoconf.
- bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/02
- Re: bison-1.29c 'configure' problems on Solaris 8., akim, 2001/10/02
- Re: bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/02
- Re: bison-1.29c 'configure' problems on Solaris 8.,
Akim Demaille <=
- Re: bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/03
- Re: bison-1.29c 'configure' problems on Solaris 8., Russ Allbery, 2001/10/03
- Re: bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/03
- Re: bison-1.29c 'configure' problems on Solaris 8., Russ Allbery, 2001/10/03
- Re: bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Akim Demaille, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Akim Demaille, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Akim Demaille, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Akim Demaille, 2001/10/05