Mercurial > hg > xmms-sid
comparison bootstrap.sh @ 438:4cad402fea71
Fixes
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 01 Jan 2007 08:50:03 +0000 |
parents | 06f944263d9a |
children | f707bee41d0e |
comparison
equal
deleted
inserted
replaced
437:06f944263d9a | 438:4cad402fea71 |
---|---|
16 { | 16 { |
17 PRG1=`which "$1-$WANT_AM_VERSION"` | 17 PRG1=`which "$1-$WANT_AM_VERSION"` |
18 PRG2=`which $1` | 18 PRG2=`which $1` |
19 if test -n "$PRG1" && test -x "$PRG1"; then | 19 if test -n "$PRG1" && test -x "$PRG1"; then |
20 echo "* $1-$WANT_AM_VERSION $2" | 20 echo "* $1-$WANT_AM_VERSION $2" |
21 eval `$1-$WANT_AM_VERSION $2` | 21 eval $1-$WANT_AM_VERSION $2 |
22 else | 22 else |
23 if test -n "$PRG2" && test -x "$PRG2"; then | 23 if test -n "$PRG2" && test -x "$PRG2"; then |
24 echo "* Warning! Could not find $1-$WANT_AM_VERSION!" | 24 echo "* Warning! Could not find $1-$WANT_AM_VERSION!" |
25 echo " Trying '$1', which may fail due to incompabilities." | 25 echo " Trying '$1', which may fail due to incompabilities." |
26 echo "* $1 $2" | 26 echo "* $1 $2" |
27 eval `$1 $2` | 27 eval $1 $2 |
28 else | 28 else |
29 ftest_msg "'$1-$WANT_AM_VERSION' or '$1'" | 29 ftest_msg "'$1-$WANT_AM_VERSION' or '$1'" |
30 exit 1 | 30 exit 1 |
31 fi | 31 fi |
32 fi | 32 fi |
35 ftest_ac_package() | 35 ftest_ac_package() |
36 { | 36 { |
37 PRG1=`which $1` | 37 PRG1=`which $1` |
38 if test -n "$PRG1" && test -x "$PRG1"; then | 38 if test -n "$PRG1" && test -x "$PRG1"; then |
39 echo "* $1 $2" | 39 echo "* $1 $2" |
40 eval `$1 $2` | 40 eval $1 $2 |
41 else | 41 else |
42 ftest_msg "'$1'" | 42 ftest_msg "'$1'" |
43 exit 1 | 43 exit 1 |
44 fi | 44 fi |
45 } | 45 } |
47 ftest_package() | 47 ftest_package() |
48 { | 48 { |
49 PRG1=`which $1` | 49 PRG1=`which $1` |
50 if test -n "$PRG1" && test -x "$PRG1"; then | 50 if test -n "$PRG1" && test -x "$PRG1"; then |
51 echo "* $1 $2" | 51 echo "* $1 $2" |
52 eval `$1 $2` | 52 eval $1 $2 |
53 else | 53 else |
54 echo "Could not find runnable '$1', perhaps $3 package is not installed" | 54 echo "Could not find runnable '$1', perhaps $3 package is not installed" |
55 echo "or it is not in the PATH. Please install $4." | 55 echo "or it is not in the PATH. Please install $4." |
56 exit 1 | 56 exit 1 |
57 fi | 57 fi |