Re: fun with autoconf on Tru64

From: Date: Fri, 07 Mar 2003 14:56:00 +0000
Subject: Re: fun with autoconf on Tru64
References: 1 2 3 4 5  Groups: php.dev 
Request: Send a blank email to php-dev+get-94891@lists.php.net to get a copy of this message
> > # flex-2.5.27/flex -V -v --version 2>/dev/null > > flex 2.5.27 > > This should be parsed correctly. What kind of OS and /bin/sh OS == Tru65, shell is /bin/sh > do you have? > > What does > > ver1="2.5.27" > ver2="2 5 27" > set $ver2; echo $3 27 > IFS=.; set $ver1; echo $3 27 The test in php4/configure.in (and php5/configure.in) is set `echo "" | $LEX -V -v --version 2>/dev/null | grep 'version' | cut -d ' ' -f 3 | sed -e 's/\./ /g' | sed -e 's/[^0-9 ]//g'` if test "${1}" != "2" -o "${2}" != "5" -o "${3}" -lt "4"; then In the newer flex output it does not have the work 'version' in it, and the version is the second not the third arg which is why this test fails. changing that to set `echo "" | $LEX -V -v --version 2>/dev/null | sed -e 's/^.* //' -e 's/\./ /g' works for me in both cases. It also handles this case: # flex-2.5.4/flex -v -V --version 2>&1 flex-2.5.4/flex version 2.5.4 which has a double version number. Dave

« previous php.dev (#94891) next »