----- Original Nachricht ---- Von: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> An: giorgio.nicole@xxxxxxxx Datum: 12.11.2014 13:01 Betreff: Re: [PATCH 1/1] autotools conversion fixups > On Sun, Nov 09, 2014 at 09:26:12PM +0100, giorgio.nicole@xxxxxxxx wrote: > > From: root <root@lord_casco.spaceball> > > > > Add some missing Makefile.am's under the include directory. > > > > Now it is possible to build 'nftables' from a separate build directory > > and produce a release tar archive with a 'make distcheck'. > > Thanks. I have merged this update to nftables/autotools branch: > > git.netfilter.org/nftables/commit/?h=autotools&id=85035b6c6a1618e7ba726fe630 > 6c804fc1b6c4e8 > > > diff --git a/autogen.sh b/autogen.sh > > index a62e737..4b6b92d 100755 > > --- a/autogen.sh > > +++ b/autogen.sh > > @@ -1,4 +1,11 @@ > > #!/bin/bash > > > > -autoreconf -fi; > > +srcdir=`dirname $0` > > +test -z "$srcdir" && srcdir=. > > + > > +ORIGDIR=`pwd` > > +cd $srcdir > > + > > +autoreconf -vfi || exit 1 > > rm -Rf autom4te*.cache config.h.in~ > > +cd $ORIGDIR || exit $? > > The need for this chunk was not justified, I kept this back. > Hi, the use of this slightly more complex 'autogen.sh' is to be able to call it even from a different directory, typically an empty build directory, as in the following shell session: # git clone /sources/git/nftables.git -b autotools /tmp/nftables # mkdir /tmp/build # cd /tmp/build # /tmp/nftables/autogen.sh # /tmp/nftables/configure --prefix=/tmp/nft_inst # make -j ... The implementation of the script was taken from the 'libX11.git' (see the repo. git://anongit.freedesktop.org/xorg/lib/libX11.git). giorgio -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html