Mercurial > mplayer.hg
comparison configure @ 4172:8c17f26ec41a
*awk detection
author | atmos4 |
---|---|
date | Tue, 15 Jan 2002 14:49:36 +0000 |
parents | 32ad3c2833cf |
children | 116abdd0aed1 |
comparison
equal
deleted
inserted
replaced
4171:585f0c77d8f5 | 4172:8c17f26ec41a |
---|---|
1005 else | 1005 else |
1006 echores "$kernel_version, ok" | 1006 echores "$kernel_version, ok" |
1007 fi | 1007 fi |
1008 fi | 1008 fi |
1009 | 1009 |
1010 #checking for gawk | 1010 # checking for a working awk, I'm using mawk first, because it's fastest - atmos |
1011 _awk= | |
1011 if test "$_vidix" = yes ; then | 1012 if test "$_vidix" = yes ; then |
1012 _gawk_ver=`echo '' | awk -W version 2>&1 | sed -n 's/^.*wk \([^A-Za-z ]*[0-9.]*\).*$/\1/p'` | 1013 _awk_works=no |
1013 case $_gawk_ver in | 1014 for _awk in mawk gawk nawk awk; do |
1014 '') | 1015 if echo 'BEGIN{testme();}function testme(){print"test";}'|$_awk -f/dev/stdin 2>&1 >/dev/null; then |
1015 _gawk_ver="v. ?.??, bad" | 1016 _awk_works=yes |
1016 _gawk_verc_fail=yes | 1017 break |
1017 ;; | 1018 fi |
1018 *) | 1019 done |
1019 _gawk_ver="$_gawk_ver, ok" | 1020 test "$_awk_works" = no && _awk=no |
1020 ;; | 1021 echo Checking for awk ... $_awk |
1021 esac | 1022 if test "$_awk_works" = no; then |
1022 echo Checking for awk ... $_gawk_ver | 1023 echo "VIDIX needs Awk, but there was no working implementation found!" |
1023 if test "$_gawk_verc_fail" ; then | 1024 echo "Try the GNU implementation, which can be downloaded from:" |
1024 echo "Awk was not found or has wrong version." | |
1025 echo "If you have no such one, then the GNU implementation can be downloaded from:" | |
1026 echo "ftp://ftp.gnu.org/gnu/gawk/" | 1025 echo "ftp://ftp.gnu.org/gnu/gawk/" |
1027 echo "Also check - maybe you already have gawk, mawk or nawk." | 1026 echo "If you don't need vidix, you can use configure --disable-vidix instead." |
1028 echo "If test is successful then make awk symlink. Example: ln -sf gawk awk" | |
1029 echo "Or rerun configure with --disable-vidix option." | |
1030 exit | 1027 exit |
1031 fi | 1028 fi |
1032 fi | 1029 fi |
1033 | 1030 |
1034 | 1031 |
2772 prefix = $_prefix | 2769 prefix = $_prefix |
2773 DATADIR = $_datadir | 2770 DATADIR = $_datadir |
2774 CONFDIR = $_confdir | 2771 CONFDIR = $_confdir |
2775 AR = ar | 2772 AR = ar |
2776 CC = $_cc | 2773 CC = $_cc |
2774 AWK = $_awk | |
2777 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu -pipe -fomit-frame-pointer -ffast-math | 2775 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu -pipe -fomit-frame-pointer -ffast-math |
2778 OPTFLAGS = $CFLAGS | 2776 OPTFLAGS = $CFLAGS |
2779 EXTRA_INC = $_inc_extra $_inc_gtk | 2777 EXTRA_INC = $_inc_extra $_inc_gtk |
2780 WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\" | 2778 WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\" |
2781 | 2779 |