From 447feb0aa08e20cc5eeb8b3a6f881de261a2c9a2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 17 Mar 2021 19:51:13 +0900 Subject: Improved autogen.sh * update in the source directory * make symbolic links instead of copies * forward the arguments to autoreconf as-is --- autogen.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 7c148da2d2..68f8996a3e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,3 +1,9 @@ #!/bin/sh -${AUTORECONF:-autoreconf} --install $* +PWD= +case "$0" in +*/*) srcdir="${0%/*}/";; +*) srcdir="";; +esac + +exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"} -- cgit v1.2.3