update bootstrap.sh a bit
This commit is contained in:
parent
a32b21a417
commit
0ed4f32432
21
bootstrap.sh
21
bootstrap.sh
|
@ -24,14 +24,14 @@ run_versioned() {
|
||||||
|
|
||||||
V=$(echo "$2" | sed -e 's,\.,,g')
|
V=$(echo "$2" | sed -e 's,\.,,g')
|
||||||
|
|
||||||
if [ -e "`which $1$V`" ] ; then
|
if [ -e "`which $1$V 2> /dev/null`" ] ; then
|
||||||
P="$1$V"
|
P="$1$V"
|
||||||
else
|
else
|
||||||
if [ -e "`which $1-$2`" ] ; then
|
if [ -e "`which $1-$2 2> /dev/null`" ] ; then
|
||||||
P="$1-$2"
|
P="$1-$2"
|
||||||
else
|
else
|
||||||
P="$1"
|
P="$1"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
shift 2
|
shift 2
|
||||||
|
@ -52,7 +52,8 @@ else
|
||||||
run_versioned autoheader 2.59
|
run_versioned autoheader 2.59
|
||||||
run_versioned automake "$VERSION" -a -c --foreign
|
run_versioned automake "$VERSION" -a -c --foreign
|
||||||
|
|
||||||
CFLAGS="-g -O0" ./configure --sysconfdir=/etc "$@"
|
if test "x$NOCONFIGURE" = "x"; then
|
||||||
|
CFLAGS="-g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@"
|
||||||
make clean
|
make clean
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue