[MPlayer-dev-eng] latest CVS
Fredrik Kuivinen
freku045 at student.liu.se
Tue Jan 15 16:34:40 CET 2002
On Tue, Jan 15, 2002 at 03:43:45PM +0100, Felix Buenemann wrote:
> On Monday, 14. January 2002 22:13, you wrote:
> > > IMHO we should check in configure for mawk, then gawk, then nawk and then
> > > awk...
> >
> > That seems to be a good idea.
> ok, done. my -f/dev/stdin trick is not too portable, but I'm lazy :)
>
All the awks I have access to (solaris awk, nawk, gawk and mawk) accept awk
programs at the command line so the attached (untested) patch probably makes
the awk test a little more portable.
/ Fredrik Kuivinen
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.371
diff -u -3 -p -r1.371 configure
--- configure 15 Jan 2002 14:49:35 -0000 1.371
+++ configure 15 Jan 2002 15:42:12 -0000
@@ -1012,7 +1012,7 @@ _awk=
if test "$_vidix" = yes ; then
_awk_works=no
for _awk in mawk gawk nawk awk; do
- if echo 'BEGIN{testme();}function testme(){print"test";}'|$_awk -f/dev/stdin 2>&1 >/dev/null; then
+ if $_awk 'BEGIN{testme();}function testme(){print"test";}' 2>&1 >/dev/null; then
_awk_works=yes
break
fi
More information about the MPlayer-dev-eng
mailing list