diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-06-05 22:16:42 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-06-05 22:16:42 +0000 |
commit | f81be32374c617f6fcb1c8692f1290e7d14ae254 (patch) | |
tree | 9795246d4281520d63f1b6a2aebea02a42729038 /bootstrap.sh | |
parent | 4d2ba5dd19c08e2a7c9728302e24605d9ad9e0bb (diff) |
rework build system do support different backends properly
git-svn-id: file:///home/lennart/svn/public/libcanberra/trunk@48 01b60673-d06a-42c0-afdd-89cb8e0f78ac
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 4eb0f67..187121b 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -27,12 +27,12 @@ run_versioned() { local V V=$(echo "$2" | sed -e 's,\.,,g') - + if [ -e "`which $1$V 2> /dev/null`" ] ; then - P="$1$V" + P="$1$V" else if [ -e "`which $1-$2 2> /dev/null`" ] ; then - P="$1-$2" + P="$1-$2" else P="$1" fi @@ -47,21 +47,21 @@ set -ex if [ "x$1" = "xam" ] ; then run_versioned automake "$VERSION" -a -c --foreign ./config.status -else +else rm -rf autom4te.cache rm -f config.cache touch config.rpath test "x$LIBTOOLIZE" = "x" && LIBTOOLIZE=libtoolize - "$LIBTOOLIZE" -c --force + "$LIBTOOLIZE" -c --force --ltdl run_versioned aclocal "$VERSION" run_versioned autoconf 2.59 -Wall run_versioned autoheader 2.59 run_versioned automake "$VERSION" --copy --foreign --add-missing if test "x$NOCONFIGURE" = "x"; then - CFLAGS="-g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@" + CFLAGS="-g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@" make clean fi fi |