From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Koeppe Newsgroups: gmane.lisp.guile.devel Subject: Re: Problem building CVS Guile with automake 1.6.1 Date: Fri, 26 Apr 2002 16:37:29 +0200 Sender: guile-devel-admin@gnu.org Message-ID: References: <2002-04-26-13-33-13+29271+duret_g@epita.fr> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1019831964 9708 127.0.0.1 (26 Apr 2002 14:39:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2002 14:39:24 +0000 (UTC) Cc: guile-devel@gnu.org, automake@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 1716se-0002WT-00 for ; Fri, 26 Apr 2002 16:39:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1716sO-0001ZR-00; Fri, 26 Apr 2002 10:39:08 -0400 Original-Received: from saturn.math.uni-magdeburg.de ([141.44.75.38]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1716qr-0001TE-00; Fri, 26 Apr 2002 10:37:33 -0400 Original-Received: from lambda.math.uni-magdeburg.de (lambda [141.44.75.79]) by saturn.math.uni-magdeburg.de (8.11.6/8.11.6) with ESMTP id g3QEbUJ11245; Fri, 26 Apr 2002 16:37:30 +0200 (MET DST) Original-Received: (from mkoeppe@localhost) by lambda.math.uni-magdeburg.de (8.10.2+Sun/8.10.2) id g3QEbTH18813; Fri, 26 Apr 2002 16:37:29 +0200 (MEST) X-Authentication-Warning: lambda.math.uni-magdeburg.de: mkoeppe set sender to mkoeppe@mail.math.uni-magdeburg.de using -f Original-To: Alexandre Duret-Lutz In-Reply-To: <2002-04-26-13-33-13+29271+duret_g@epita.fr> (Alexandre Duret-Lutz's message of "Fri, 26 Apr 2002 13:33:12 +0200") Original-Lines: 88 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.80 (sparc-sun-solaris2.7) Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:530 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:530 Alexandre Duret-Lutz writes: >>>> "Matthias" =3D=3D Matthias Koeppe writes: > > Matthias> Guile's `guile-aclocal.sh' script fails with automake > Matthias> 1.6.1. Here is the relevant part: > > >> # copy all installed aclocal files into $temp > >> cp `aclocal --print-ac-dir`/*.m4 $temp > >>=20 > >> # remove the .m4 files installed by Guile from $temp, so they don't > >> # cause conflicts > >> rm -f ${temp}/guile.m4 ${temp}/qthreads.m4 > >>=20 > >> aclocal --acdir=3D$temp -I . > > This is a work-around makes sense up to Automake 1.4. > It still works with 1.5. > It breaks with recent versions. > > aclocal from Automake 1.4 chokes when a -I supplied macro > override a /usr/share/aclocal/ macro, hence your script. > > Starting with Automake 1.5, a macro supplied with -I will > override any macro installed in /usr/share/aclocal/, so > you simply have to run > > aclocal -I . > > (no cp, rm, or --acdir) > > [...] Alexandre, thank you very much for the detailed explanation.=20=20 Dear Guile maintainers: I have prepared the patch below, which checks for Automake 1.4, for which the work-around is still used; for newer automake, aclocal is called directly. (Alternatively, one could require Automake 1.5 for hacking Guile and get rid of the work-around altogether.) -- Matthias --- guile-aclocal.sh.~1.1~ Thu Jun 1 17:10:50 2000 +++ guile-aclocal.sh Fri Apr 26 14:46:04 2002 @@ -1,19 +1,25 @@ -#!/bin/sh +#!/bin/sh -x =20 -temp=3D/tmp/guile-aclocal.$$ -trap "rm -rf $temp" 0 1 2 15 +if aclocal --version | head -1 | grep '1\.4' > /dev/null ; then + ## Workaround for Automake < 1.5: + temp=3D/tmp/guile-aclocal.$$ + trap "rm -rf $temp" 0 1 2 15 =20 -mkdir $temp -[ -d $temp ] || { - echo "guile-aclocal.sh: cannot create temp directory" - exit 1 -} + mkdir $temp + [ -d $temp ] || { + echo "guile-aclocal.sh: cannot create temp directory" + exit 1 + } =20 -# copy all installed aclocal files into $temp -cp `aclocal --print-ac-dir`/*.m4 $temp + # copy all installed aclocal files into $temp + cp `aclocal --print-ac-dir`/*.m4 $temp =20 -# remove the .m4 files installed by Guile from $temp, so they don't -# cause conflicts -rm -f ${temp}/guile.m4 ${temp}/qthreads.m4 + # remove the .m4 files installed by Guile from $temp, so they don't + # cause conflicts + rm -f ${temp}/guile.m4 ${temp}/qthreads.m4 =20 -aclocal --acdir=3D$temp -I . + aclocal --acdir=3D$temp -I . +else + ## Automake >=3D 1.5 works + aclocal -I . +fi --=20 Matthias K=F6ppe -- http://www.math.uni-magdeburg.de/~mkoeppe _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel