aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-12 15:53:26 +0000
committerGravatar nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-12 15:53:26 +0000
commitf3e39c0b1737f008499196d2c73b7e56ba5c0069 (patch)
tree63c7fe18fe83d6b23b4163a4e61022a934fb5850 /configure
parent11dadc53c9393c91627081faf4c305878c556dc7 (diff)
Checking for gawk
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4109 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 22 insertions, 2 deletions
diff --git a/configure b/configure
index c14b1f669e..6f17a7f221 100755
--- a/configure
+++ b/configure
@@ -238,7 +238,6 @@ for ac_option do
esac
done
-
# Determine our OS name and CPU architecture
if test -z "$_target" ; then
# OS name
@@ -626,7 +625,6 @@ _binutils=no
$_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes
echores "$_binutils"
-
if x86 ; then
extcheck() {
if test "$1" = yes ; then
@@ -1009,6 +1007,28 @@ if x86 && linux ; then
fi
fi
+#checking for gawk
+if test "$_vidix" = yes ; then
+_gawk_ver=`echo '' | gawk --version 2>&1 | sed -n 's/^.*wk \([^A-Za-z ]*[0-9.]*\).*$/\1/p'`
+ case $_gawk_ver in
+ '')
+ _gawk_ver="v. ?.??, bad"
+ _gawk_verc_fail=yes
+ ;;
+ 3.[0-9]|3.[0-9].[0-9])
+ _gawk_ver="$_gawk_ver, ok"
+ ;;
+ *)
+ _gawk_ver="$_gawk_ver, bad"
+ _gawk_verc_fail=yes
+ ;;
+ esac
+echo Checking for gawk ... $_gawk_ver
+if test "$_gawk_verc_fail" ; then
+echo Gawk was not found or has wrong version. gawk-3.0.x is required
+exit
+fi
+fi
######################