From nobody Tue Feb 10 04:15:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558712027; cv=none; d=zoho.com; s=zohoarc; b=dpKYIQlo3jd9EXamJ/U9135ESjZlycKuoKBrErQoWF85unLD6742HMvYR+gDjKt/SKFB+k26Y1fFs/wsQzIOoFJDwatGRY533VvnX1XmWGZNatfuPrd8U7w4YsSampekZbOe1Axg5VjgOqL7PAQGu+yEPq26TEpzt7M3q0IJht8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558712027; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=58Z/JrkdvzTXEwmaPV/pqnyrYt2L7IJSNWwWi4qVZpQ=; b=aDKcNqAk5qThk/02NL53H3k2QbSeMVKXJrm1n8e3aN++xf7drj3nTaQBMC8kbSc+/wY+od5ytzhHgpPjoHHmCeXP7I8pStSR9ZYLxk9qWEgXiH2InqRpsmND611sQtVRp9+V6LM4RYx2nMOsPzRcC8PISGTuYNVvnXj5BJUajAg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558712027278697.9305146608951; Fri, 24 May 2019 08:33:47 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B79379FDDD; Fri, 24 May 2019 15:33:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5619663B88; Fri, 24 May 2019 15:33:39 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 131905B424; Fri, 24 May 2019 15:33:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4OFWJwr022542 for ; Fri, 24 May 2019 11:32:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2F62D7BE8F; Fri, 24 May 2019 15:32:19 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 833CE7BE8B; Fri, 24 May 2019 15:32:18 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Fri, 24 May 2019 17:32:11 +0200 Message-Id: <20190524153212.17213-2-fidencio@redhat.com> In-Reply-To: <20190524153212.17213-1-fidencio@redhat.com> References: <20190524153212.17213-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [glib PATCH 1/2] autogen.sh: Simplify autogen.sh X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 24 May 2019 15:33:46 +0000 (UTC) Let's use an autogen.sh based on libosinfo's one, which is cleaner and matches the current GNOME guidelines. Signed-off-by: Fabiano Fid=C3=AAncio --- .gitignore | 3 +++ autogen.sh | 70 +++++++++++++++++++----------------------------------- 2 files changed, 28 insertions(+), 45 deletions(-) diff --git a/.gitignore b/.gitignore index de89c4d..4b9467e 100644 --- a/.gitignore +++ b/.gitignore @@ -19,11 +19,14 @@ Makefile.in *.la *~ *.orig +m4/gtk-doc.m4 +m4/introspection.m4 m4/ltsugar.m4 m4/lt~obsolete.m4 m4/libtool.m4 m4/ltversion.m4 m4/ltoptions.m4 +m4/pkg.m4 autom4te.cache config.* COPYING diff --git a/autogen.sh b/autogen.sh index 3b593ce..c679131 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,57 +1,37 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. +test -n "$srcdir" || srcdir=3D$(dirname "$0") +test -n "$srcdir" || srcdir=3D. =20 -set -e -srcdir=3D`dirname $0` -test -z "$srcdir" && srcdir=3D. +olddir=3D$(pwd) =20 -THEDIR=3D`pwd` -cd $srcdir +cd "$srcdir" =20 -DIE=3D0 - -for prog in autoreconf automake autoconf libtoolize -do - ($prog --version) < /dev/null > /dev/null 2>&1 || { - echo - echo "You must have $prog installed to compile libvirt-glib." - DIE=3D1 - } -done - -if test "$DIE" -eq 1; then - exit 1 -fi - -if test -z "$*"; then - echo "I am going to run ./configure with no args - if you " - echo "wish to pass any extra arguments to it, please specify them = on " - echo "the $0 command line." -fi +(test -f libvirt-glib/libvirt-glib-main.c) || { + echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" + echo " top-level libvirt-glib directory" + exit 1 +} =20 # Real ChangeLog/AUTHORS is auto-generated from GIT logs at # make dist time, but automake requires that it # exists at all times :-( touch ChangeLog AUTHORS =20 -mkdir -p build-aux -autoreconf -if - -cd $THEDIR - -if test "x$1" =3D "x--system"; then - shift - prefix=3D/usr - libdir=3D$prefix/lib - sysconfdir=3D/etc - localstatedir=3D/var - if [ -d /usr/lib64 ]; then - libdir=3D$prefix/lib64 - fi - EXTRA_ARGS=3D"--prefix=3D$prefix --sysconfdir=3D$sysconfdir --localsta= tedir=3D$localstatedir --libdir=3D$libdir" -fi +aclocal --install || exit 1 +gtkdocize --copy || exit 1 +autoreconf --verbose --force --install || exit 1 =20 -$srcdir/configure $EXTRA_ARGS "$@" && { - echo - echo "Now type 'make' to compile libvirt-glib." -} +cd "$olddir" + +if [ "$NOCONFIGURE" =3D "" ]; then + $srcdir/configure "$@" || exit 1 + + if [ "$1" =3D "--help" ]; then + exit 0 + else + echo "Now type 'make' to compile $PKG_NAME" || exit 1 + fi +else + echo "Skipping configure process." +fi --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list