From ffb0dde05c45bfc1965a469ad60d1cd0789b3829 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 9 Jun 2020 04:01:24 +0200 Subject: Apply changes towards a project wide common "autogen.sh" file --- autogen.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/autogen.sh b/autogen.sh index 8bdd622..1247057 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,9 +1,20 @@ #!/bin/sh -aclocal -autoheader -automake --add-missing -autoconf + +olddir=`pwd` +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +( + cd "$srcdir" + + aclocal + autoheader + automake --add-missing + autoconf + + cd "$olddir" +) if [ -z "$NOCONFIGURE" ]; then - ./configure "$@" + $srcdir/configure "$@" fi -- cgit v1.1-32-gdbae