File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- which autoconf
3
+ command -v autoconf
4
4
if ! test $? -eq 0
5
5
then
6
6
echo " error, install autoconf"
7
7
exit 1
8
8
fi
9
9
10
- which automake
10
+ command -v automake
11
11
if ! test $? -eq 0
12
12
then
13
13
echo " error, install automake"
14
14
exit 1
15
15
fi
16
16
17
- which libtool || which libtoolize
17
+ command -v libtool || command -v libtoolize
18
18
if ! test $? -eq 0
19
19
then
20
20
echo " error, install libtool"
21
21
exit 1
22
22
fi
23
23
24
- which pkg-config
24
+ command -v pkg-config
25
25
if ! test $? -eq 0
26
26
then
27
27
echo " error, install pkg-config"
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ XORG_ARGS="$@"
43
43
44
44
45
45
# If the X server has setuid bit, make a local copy
46
- XORG_FULL=` which $XORG `
46
+ XORG_FULL=` command -v $XORG `
47
47
if test -u $XORG_FULL ; then
48
48
XORG=` pwd` /Xorg.no-setuid
49
49
echo " $XORG_FULL has setuid bit set, will use $XORG "
You can’t perform that action at this time.
0 commit comments