summaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-08-05 19:31:51 +0200
committerLennart Poettering <lennart@poettering.net>2008-08-05 19:31:51 +0200
commit2bc9078b1cdd2db127fc2567952447d899321f63 (patch)
tree552120cd6655b340060d03a68451abb52deb5466 /bootstrap.sh
parent25f1a350495de8d5b3c7c08647837fbfa15abca1 (diff)
modernize bootstrap.sh
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh21
1 files changed, 11 insertions, 10 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index a6538ce..62ce1b9 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -26,14 +26,14 @@ run_versioned() {
V=$(echo "$2" | sed -e 's,\.,,g')
- if [ -e "`which $1$V`" ] ; then
- P="$1$V"
+ if [ -e "`which $1$V 2> /dev/null`" ] ; then
+ P="$1$V"
else
- if [ -e "`which $1-$2`" ] ; then
- P="$1-$2"
- else
- P="$1"
- fi
+ if [ -e "`which $1-$2 2> /dev/null`" ] ; then
+ P="$1-$2"
+ else
+ P="$1"
+ fi
fi
shift 2
@@ -61,7 +61,8 @@ else
run_versioned autoheader 2.59
run_versioned automake "$VERSION" -a -c --foreign
- CFLAGS="-g -O0" ./configure --sysconfdir=/etc "$@"
-
- make clean
+ if test "x$NOCONFIGURE" = "x"; then
+ CFLAGS="-g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@"
+ make clean
+ fi
fi