aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-15 22:30:56 +0000
committerGravatar atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-15 22:30:56 +0000
commit49c43f8c016e15e66c47c3a074639f78a02173f8 (patch)
tree207bebe1361a97729c36df02381db60bce3dfdaa
parentd255ad6cb62d9e8802bc4c2c645ebfe1520c284a (diff)
nicer awk check (logging) etc.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4183 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure13
1 files changed, 7 insertions, 6 deletions
diff --git a/configure b/configure
index 4fa5cb7196..583d0f86fc 100755
--- a/configure
+++ b/configure
@@ -1010,16 +1010,17 @@ fi
# checking for a working awk, I'm using mawk first, because it's fastest - atmos
_awk=
if test "$_vidix" = yes ; then
-_awk_works=no
+_awk_verc_fail=yes
+echocheck "awk"
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
- _awk_works=yes
+ if ( echo 'BEGIN{testme();}function testme(){print"";}'|$_awk -f/dev/stdin ) >> "$TMPLOG" 2>&1; then
+ _awk_verc_fail=no
break
fi
done
-test "$_awk_works" = no && _awk=no
-echo Checking for awk ... $_awk
-if test "$_awk_works" = no; then
+test "$_awk_verc_fail" = yes && _awk=no
+echores "$_awk"
+if test "$_awk_verc_fail" = yes; then
echo "VIDIX needs Awk, but there was no working implementation found!"
echo "Try the GNU implementation, which can be downloaded from:"
echo "ftp://ftp.gnu.org/gnu/gawk/"