[Spice-devel] [PATCH] build: Add autogen.sh convenience script
Christophe Fergeau
cfergeau at redhat.com
Thu Mar 1 15:42:51 UTC 2018
Hey,
I sent
https://lists.freedesktop.org/archives/spice-devel/2018-March/042479.html
(which is based on spice-gtk's autogen.sh) which should address the
issues below.
Christophe
On Fri, Feb 16, 2018 at 03:28:41PM +0000, Daniel P. Berrangé wrote:
> On Fri, Feb 16, 2018 at 04:18:19PM +0100, Christophe de Dinechin wrote:
> > From: Christophe de Dinechin <dinechin at redhat.com>
> >
> > Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
> > ---
> > autogen.sh | 9 +++++++++
> > 1 file changed, 9 insertions(+)
> > create mode 100755 autogen.sh
> >
> > diff --git a/autogen.sh b/autogen.sh
> > new file mode 100755
> > index 0000000..afa3e39
> > --- /dev/null
> > +++ b/autogen.sh
>
> This assumes you're running autogen.sh from the source tree. Many folks
> prefer todo a vpath builds, so it might be invoked from outside the
> source tree like
>
> mkdir build
> cd build
> ../autogen.sh
>
> > @@ -0,0 +1,9 @@
> > +#!/bin/sh
> > +
> > +set -e # exit on errors
>
> srcdir=`dirname $0`
> test -z "$srcdir" && srcdir=.
>
> THEDIR=`pwd`
> cd $srcdir
>
> > +
> > +autoreconf --verbose --force --install
>
> cd $THEDIR
>
> > +
> > +if [ -z "$NOCONFIGURE" ]; then
> > + ./configure ${1+"$@"}
>
> $srcdir/configure ....
>
> > +fi
>
> would make it cope with VPATH builds.
>
> Regards,
> Daniel
> --
> |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
> |: https://libvirt.org -o- https://fstop138.berrange.com :|
> |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180301/63168853/attachment.sig>
More information about the Spice-devel
mailing list