comparison configure @ 4182:e9d5b1b5827b

nicer awk check (logging) etc.
author atmos4
date Tue, 15 Jan 2002 22:30:56 +0000
parents 116abdd0aed1
children 6db978580a7f
comparison
equal deleted inserted replaced
4181:159b3d0f517d 4182:e9d5b1b5827b
1008 fi 1008 fi
1009 1009
1010 # checking for a working awk, I'm using mawk first, because it's fastest - atmos 1010 # checking for a working awk, I'm using mawk first, because it's fastest - atmos
1011 _awk= 1011 _awk=
1012 if test "$_vidix" = yes ; then 1012 if test "$_vidix" = yes ; then
1013 _awk_works=no 1013 _awk_verc_fail=yes
1014 echocheck "awk"
1014 for _awk in mawk gawk nawk awk; do 1015 for _awk in mawk gawk nawk awk; do
1015 if echo 'BEGIN{testme();}function testme(){print"test";}'|$_awk -f/dev/stdin 2>&1 >/dev/null; then 1016 if ( echo 'BEGIN{testme();}function testme(){print"";}'|$_awk -f/dev/stdin ) >> "$TMPLOG" 2>&1; then
1016 _awk_works=yes 1017 _awk_verc_fail=no
1017 break 1018 break
1018 fi 1019 fi
1019 done 1020 done
1020 test "$_awk_works" = no && _awk=no 1021 test "$_awk_verc_fail" = yes && _awk=no
1021 echo Checking for awk ... $_awk 1022 echores "$_awk"
1022 if test "$_awk_works" = no; then 1023 if test "$_awk_verc_fail" = yes; then
1023 echo "VIDIX needs Awk, but there was no working implementation found!" 1024 echo "VIDIX needs Awk, but there was no working implementation found!"
1024 echo "Try the GNU implementation, which can be downloaded from:" 1025 echo "Try the GNU implementation, which can be downloaded from:"
1025 echo "ftp://ftp.gnu.org/gnu/gawk/" 1026 echo "ftp://ftp.gnu.org/gnu/gawk/"
1026 echo "If you don't need vidix, you can use configure --disable-vidix instead." 1027 echo "If you don't need vidix, you can use configure --disable-vidix instead."
1027 exit 1028 exit