From 8893c514806a3e9cba3842de0e342b0c69b1e5d5 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 2 Sep 2023 14:01:58 +0200 Subject: [PATCH] autogen.sh: Support out-of-tree builds This allows to do the following: ~/src/shadow/shadow/master$ mkdir .tmp/ && cd .tmp/ ~/src/shadow/shadow/master/.tmp$ ../autogen.sh Link: Reviewed-by: Sam James Signed-off-by: Alejandro Colomar --- autogen.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index b39ffec4..881e9770 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,8 +1,8 @@ #! /bin/sh -autoreconf -v -f --install || exit 1 +autoreconf -v -f --install "$(dirname "$0")" || exit 1 -./configure \ +"$(dirname "$0")"/configure \ CFLAGS="-O2 -Wall" \ --enable-lastlog \ --enable-man \