From ebe00d640b9f57411d41fea038bf6b9fc55795d0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 28 Jul 2008 20:35:53 +0200 Subject: modernize build system --- autogen.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 6ba0c75..3b30052 100755 --- a/autogen.sh +++ b/autogen.sh @@ -25,12 +25,12 @@ run_versioned() { local V 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" + if [ -e "`which $1-$2 2> /dev/null`" ] ; then + P="$1-$2" else P="$1" fi @@ -45,22 +45,23 @@ 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 mkdir -p common - run_versioned "$LIBTOOLIZE" 1.5 -c --force + "$LIBTOOLIZE" -c --force run_versioned aclocal "$VERSION" -I common run_versioned autoconf 2.59 -Wall run_versioned autoheader 2.59 run_versioned automake "$VERSION" -a -c --foreign if test "x$NOCONFIGURE" = "x"; then - ./configure "$@" + CFLAGS="-g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@" make clean fi fi -- cgit