From unknown Sat Jun 21 03:06:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8599 <8599@debbugs.gnu.org> To: bug#8599 <8599@debbugs.gnu.org> Subject: Status: upc (Unified Parallel C) support in automake (was: Re: AM_PROG_UPC) Reply-To: bug#8599 <8599@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:06:26 +0000 retitle 8599 upc (Unified Parallel C) support in automake (was: Re: AM_PROG= _UPC) reassign 8599 automake submitter 8599 Stefano Lattarini severity 8599 minor tag 8599 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 30 16:11:01 2011 Received: (at submit) by debbugs.gnu.org; 30 Apr 2011 20:11:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QGGVJ-0003W3-AG for submit@debbugs.gnu.org; Sat, 30 Apr 2011 16:11:01 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QGGVF-0003Vl-U6 for submit@debbugs.gnu.org; Sat, 30 Apr 2011 16:10:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGGV9-0004pb-9r for submit@debbugs.gnu.org; Sat, 30 Apr 2011 16:10:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:35714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGGV9-0004pX-8M for submit@debbugs.gnu.org; Sat, 30 Apr 2011 16:10:51 -0400 Received: from eggs.gnu.org ([140.186.70.92]:60227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGGV7-0004VQ-Mz for bug-automake@gnu.org; Sat, 30 Apr 2011 16:10:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGGV6-0004ot-7K for bug-automake@gnu.org; Sat, 30 Apr 2011 16:10:49 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:36304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGGV6-0004oa-25; Sat, 30 Apr 2011 16:10:48 -0400 Received: by wyf19 with SMTP id 19so4291789wyf.0 for ; Sat, 30 Apr 2011 13:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=9TG/0+KGMBCr+E/G7ty3xBRGYYV4mk8fauE90UMLjMo=; b=BEeq6w99K0C4NhDIxabTCQweJw0BZCAXGwHtguN4IXY+qU9lAhDGA3P1PKPXYxpVjp /AAJTkIaYlfGeptLhs/qPnE1bMIYl3iHmr/QvtyAK+Q3LTOcr3V7cogeRbzuhkA2u2b/ wIwymuM5/vkaE2uJEnm/sl4R7tcAOyTD2JQ+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=fhWrGOOHtUk+I6qU5AkzyYlq5xPB+JVnO/SNVJqLshR7tfjifrDPMjQP/JaI4YEoUd +P/64LrWx580too794UadiK8FBKpoJ7+pVEZmzC9QgJwL3Tx4bejwu7BecZlrywn7saq Na3tKIye2xzYlHivHGbksa7vzp9f9Hm1dcHw0= Received: by 10.216.134.207 with SMTP id s57mr1257710wei.25.1304194246324; Sat, 30 Apr 2011 13:10:46 -0700 (PDT) Received: from bigio.localnet (host80-30-dynamic.56-82-r.retail.telecomitalia.it [82.56.30.80]) by mx.google.com with ESMTPS id t72sm1939087wei.44.2011.04.30.13.10.43 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Apr 2011 13:10:44 -0700 (PDT) From: Stefano Lattarini To: bug-automake@gnu.org Subject: upc (Unified Parallel C) support in automake (was: Re: AM_PROG_UPC) Date: Sat, 30 Apr 2011 22:10:34 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201104302210.35351.stefano.lattarini@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: submit Cc: "Too, Justin A." , autoconf@gnu.org, Ralf Corsepius , automake@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) [adding automake and bug-automake lists] [follow-ups might drop autoconf list IMHO] [Reference: ] Hello Justin and Ralf, and sorry for the delay. On Saturday 30 April 2011, Justin wrote: > On 4/29/11 8:57 PM, "Ralf Corsepius" wrote: >=20 > >On 04/30/2011 01:16 AM, Too, Justin A. wrote: > >> Hi all, > >> > >> In my configure.ac I simply invoke: AC_PROG_UPC > >> > >> =C5=A0 > >> $ aclocal =C5=A0 > >> aclocal:configure.ac:12: warning: macro `AM_PROG_UPC' not found in > >>library > >> =C5=A0 > >> $ autoconf > >> Configure.ac:12: error: possibly undefined macro: AM_PROG_UPC > >> If this token and others are legitimate, please use m4patternallow. > >> See the Autoconf documentation. > >> > >> Is this a non-standard macro? > >Yes. > > No, it's not (well, it shouldn't be). It is defined in the file `upc.m4' provided by automake. Thus the failure above, if not due to some misconfiguration or user error, is an automake bug. Justin, could you please provide more details about the failure you encountered? What system are you on? Which automake version are you using? What is the content of your configure.ac and Makefile.am files? And everything else you think might be useful. > >[Apart of this, AM_PROG_UPC violates auto*tools naming conventions; > >AM_*/AM_* prefixed macros are reserved for autoconf rsp. automake.] > > > >> Then, how can I add UPC support to my Autotools project? > >Non-standard macros need to be supplied by either the package itself or > >by other packages. > > > >There are several ways to do so, so answering your question would > >require knowing more details about the package you are trying to build. >=20 > Currently, I'm setting my upc file extensions to .c so that they will > compile without complaint from Automake, however it's obviously more clear > if they had a .upc extension: >=20 > foo_la_SOURCES =3D \ > main.c > test.c >=20 > I want: >=20 > foo_la_SOURCES =3D \ > main.upc > test.upc >=20 > Well, this should be supported out of the box with Automake (there is even a testcase about this in the automake testsuite)... Have you really tried it? Does it fail for you? If yes, what is the error? >=20 > I found this documentation: >=20 > 18.2 Handling new file extensions > =20 > https://idlebox.net/2009/apidocs/automake-1.11.zip/automake_18.html#SEC148 >=20 > So I'm assuming I can do this: > > .upc.o: > upcc -c -o $@ $< >=20 >=20 > But this would have to be in every Makefile.am where I'd want to compile > UPC. Also, I would have to do a lot of configure checking and setting up > myself so that I can use $(UPC) as the compiler in my rule, check that > upc/upcc is available, etc. The AM_PROG_UPC macro seemed like the most > convenient method. >=20 > You might take a look at this documentation instead: Admittedly, it is sketchy and suboptimal, and could benefit from some extensions and examples. I will probably write patch sooner or later if nobody beats me (but I hope somebody will do, since I know nothing about UPC and doesn't have it available for testing). Regards, Stefano From debbugs-submit-bounces@debbugs.gnu.org Mon May 02 16:08:25 2011 Received: (at submit) by debbugs.gnu.org; 2 May 2011 20:08:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QGzPs-0001pk-7I for submit@debbugs.gnu.org; Mon, 02 May 2011 16:08:25 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QGyds-0000l4-KE for submit@debbugs.gnu.org; Mon, 02 May 2011 15:18:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGydl-0003qp-7b for submit@debbugs.gnu.org; Mon, 02 May 2011 15:18:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:43223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGydl-0003ql-3l for submit@debbugs.gnu.org; Mon, 02 May 2011 15:18:41 -0400 Received: from eggs.gnu.org ([140.186.70.92]:42015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGydj-0006pW-P7 for bug-automake@gnu.org; Mon, 02 May 2011 15:18:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGydi-0003qM-B4 for bug-automake@gnu.org; Mon, 02 May 2011 15:18:39 -0400 Received: from nspiron-3.llnl.gov ([128.115.41.83]:1830 helo=smtp.llnl.gov) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGydi-0003qD-4b; Mon, 02 May 2011 15:18:38 -0400 X-Attachments: None Received: from nspexhub-2.llnl.gov (HELO nspexhub-2.the-lab.llnl.gov) ([128.115.54.114]) by smtp.llnl.gov with ESMTP; 02 May 2011 12:18:35 -0700 Received: from NSPEXMBX-C.the-lab.llnl.gov ([128.115.54.103]) by nspexhub-2.the-lab.llnl.gov ([172.16.54.114]) with mapi; Mon, 2 May 2011 12:18:35 -0700 From: "Too, Justin A." To: Stefano Lattarini , "bug-automake@gnu.org" Date: Mon, 2 May 2011 12:18:34 -0700 Subject: Re: upc (Unified Parallel C) support in automake (was: Re: AM_PROG_UPC) Thread-Topic: upc (Unified Parallel C) support in automake (was: Re: AM_PROG_UPC) Thread-Index: AcwI/bt08KfK87DXSyKNs+/06wxCWA== Message-ID: In-Reply-To: <201104302210.35351.stefano.lattarini@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.0.101115 acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 02 May 2011 16:08:23 -0400 Cc: "autoconf@gnu.org" , Ralf Corsepius , "automake@gnu.org" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Hi Stefano On 4/30/11 1:10 PM, "Stefano Lattarini" wrote: >[adding automake and bug-automake lists] >[follow-ups might drop autoconf list IMHO] >[Reference:=20 >] > >Hello Justin and Ralf, and sorry for the delay. > >On Saturday 30 April 2011, Justin wrote: >> On 4/29/11 8:57 PM, "Ralf Corsepius" wrote: >>=20 >> >On 04/30/2011 01:16 AM, Too, Justin A. wrote: >> >> Hi all, >> >> >> >> In my configure.ac I simply invoke: AC_PROG_UPC >> >> >> >> =A9 >> >> $ aclocal =A9 >> >> aclocal:configure.ac:12: warning: macro `AM_PROG_UPC' not found >>in >> >>library >> >> =A9 >> >> $ autoconf >> >> Configure.ac:12: error: possibly undefined macro: AM_PROG_UPC >> >> If this token and others are legitimate, please use m4patternallow. >> >> See the Autoconf documentation. >> >> >> >> Is this a non-standard macro? >> >Yes. >> > >No, it's not (well, it shouldn't be). It is defined in the file >`upc.m4' provided by automake. Thus the failure above, if not due >to some misconfiguration or user error, is an automake bug. Sorry, the problem was not critical. It turns out that my system installation of Automake is 1.9, but /usr/share/aclocal/upc.m4 did not exist. I've got 'upc.m4' in place now so it seems to make it pass 'aclocal' and 'automake' now. I've got another somewhat related issue, and that is: how can I conditionally use the macro AM_PROG_UPC? Most users won't have UPC in their path so I'd like to only check for UPC if the user configures explicitly with UPC. If I wrap the macro call like so: if test "xwith_upc" =3D "xyes" ; then AM_PROG_UPC fi I get "configure: error: conditional "am__fastdepUPC" was never defined. Usually this means the macro was only invoked conditionally.". In the configure script, it looks like UPC-related code is generated outside of my if..fi block in addition to inside of the block. Thanks for the advise, Justin > >Justin, could you please provide more details about the failure you >encountered? What system are you on? Which automake version are you >using? What is the content of your configure.ac and Makefile.am files? >And everything else you think might be useful. > >> >[Apart of this, AM_PROG_UPC violates auto*tools naming conventions; >> >AM_*/AM_* prefixed macros are reserved for autoconf rsp. automake.] >> > >> >> Then, how can I add UPC support to my Autotools project? >> >Non-standard macros need to be supplied by either the package itself or >> >by other packages. >> > >> >There are several ways to do so, so answering your question would >> >require knowing more details about the package you are trying to build. >>=20 >> Currently, I'm setting my upc file extensions to .c so that they will >> compile without complaint from Automake, however it's obviously more >>clear >> if they had a .upc extension: >>=20 >> foo_la_SOURCES =3D \ >> main.c >> test.c >>=20 >> I want: >>=20 >> foo_la_SOURCES =3D \ >> main.upc >> test.upc >>=20 >> >Well, this should be supported out of the box with Automake (there is >even a testcase about this in the automake testsuite)... Have you really >tried it? Does it fail for you? If yes, what is the error? > >>=20 >> I found this documentation: >>=20 >> 18.2 Handling new file extensions >> =20 >>=20 >>https://idlebox.net/2009/apidocs/automake-1.11.zip/automake_18.html#SEC14 >>8 >>=20 >> So I'm assuming I can do this: >> >> .upc.o: >> upcc -c -o $@ $< >>=20 >>=20 >> But this would have to be in every Makefile.am where I'd want to compile >> UPC. Also, I would have to do a lot of configure checking and setting >>up >> myself so that I can use $(UPC) as the compiler in my rule, check that >> upc/upcc is available, etc. The AM_PROG_UPC macro seemed like the most >> convenient method. >>=20 >> >You might take a look at this documentation instead: > >=20 >Support.html> > >Admittedly, it is sketchy and suboptimal, and could benefit from some >extensions and examples. I will probably write patch sooner or later >if nobody beats me (but I hope somebody will do, since I know nothing >about UPC and doesn't have it available for testing). > >Regards, > Stefano From debbugs-submit-bounces@debbugs.gnu.org Wed May 04 11:54:51 2011 Received: (at submit) by debbugs.gnu.org; 4 May 2011 15:54:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHePb-0007oI-2j for submit@debbugs.gnu.org; Wed, 04 May 2011 11:54:51 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHePY-0007o5-Jo for submit@debbugs.gnu.org; Wed, 04 May 2011 11:54:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHePS-0001JX-6i for submit@debbugs.gnu.org; Wed, 04 May 2011 11:54:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:37729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHePS-0001JS-57 for submit@debbugs.gnu.org; Wed, 04 May 2011 11:54:42 -0400 Received: from eggs.gnu.org ([140.186.70.92]:33723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHePQ-0003s9-T8 for bug-automake@gnu.org; Wed, 04 May 2011 11:54:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHePP-0001Iw-BE for bug-automake@gnu.org; Wed, 04 May 2011 11:54:40 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:49702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHePP-0001Ip-27; Wed, 04 May 2011 11:54:39 -0400 Received: by wyf19 with SMTP id 19so1187568wyf.0 for ; Wed, 04 May 2011 08:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=T/K3U3oMOjwTCHrxRbVQdyNZ+7LmtpHYzVScVoRKbno=; b=GhGVpymCDXycxITL6yvxnRg5jBAfDFv9ZKDJDNvDgWqYGBZG6LUHsiVWO9qDfcKYGc XqUsqrRibBsgaY+SAlEosgt1bISyS0NsGUbNyd8V7IksX5vtNjVtiqVRJbki+I8tKiZW Q4tK6ZvHcgrtx+zzq3CzY9Lh/Gi7UMgw2gWVI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=jwGajHjc3wicWuExcgwlIKVqfqS7Hkq1tl60mqyEQYBtUDPE/g/sJSaHecTnDUeVXi 7uqPZHh9nH0r6I5IKM4ugjFwdkmMKCr1zF3UOOvUvoMCUqVGWJykGdVdJoIIqoXyIg1i OPBUU97FwmhankXxUq6VCH83xHhcpqjJblJA4= Received: by 10.227.210.136 with SMTP id gk8mr353884wbb.79.1304524477789; Wed, 04 May 2011 08:54:37 -0700 (PDT) Received: from bigio.localnet (host91-31-dynamic.56-82-r.retail.telecomitalia.it [82.56.31.91]) by mx.google.com with ESMTPS id e13sm785708wbi.23.2011.05.04.08.54.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2011 08:54:36 -0700 (PDT) From: Stefano Lattarini To: bug-automake@gnu.org Subject: Re: bug#8599: upc (Unified Parallel C) support in automake (was: Re: AM_PROG_UPC) Date: Wed, 4 May 2011 17:54:20 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: <201104302210.35351.stefano.lattarini@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201105041754.21309.stefano.lattarini@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: "Too, Justin A." , "autoconf@gnu.org" , Ralf Corsepius , "automake@gnu.org" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) On Monday 02 May 2011, Justin wrote: > Hi Stefano >=20 Hi Justin, sorry for the delay. > On 4/30/11 1:10 PM, "Stefano Lattarini" > wrote: >=20 > >[adding automake and bug-automake lists] > >[follow-ups might drop autoconf list IMHO] > >[Reference:=20 > >] > > > >Hello Justin and Ralf, and sorry for the delay. > > > >On Saturday 30 April 2011, Justin wrote: > >> On 4/29/11 8:57 PM, "Ralf Corsepius" wrote: > >>=20 > >> >On 04/30/2011 01:16 AM, Too, Justin A. wrote: > >> >> Hi all, > >> >> > >> >> In my configure.ac I simply invoke: AC_PROG_UPC > >> >> > >> >> =C5=A0 > >> >> $ aclocal =C5=A0 > >> >> aclocal:configure.ac:12: warning: macro `AM_PROG_UPC' not found > >>in > >> >>library > >> >> =C5=A0 > >> >> $ autoconf > >> >> Configure.ac:12: error: possibly undefined macro: AM_PROG_UPC > >> >> If this token and others are legitimate, please use m4patternallow. > >> >> See the Autoconf documentation. > >> >> > >> >> Is this a non-standard macro? > >> >Yes. > >> > > >No, it's not (well, it shouldn't be). It is defined in the file > >`upc.m4' provided by automake. Thus the failure above, if not due > >to some misconfiguration or user error, is an automake bug. >=20 >=20 > Sorry, the problem was not critical. It turns out that my system > installation of Automake is 1.9, but /usr/share/aclocal/upc.m4 did not > exist. I've got 'upc.m4' in place now so it seems to make it pass > 'aclocal' and 'automake' now. >=20 > I've got another somewhat related issue, and that is: how can I > conditionally use the macro AM_PROG_UPC? > > Most users won't have UPC in > their path so I'd like to only check for UPC if the user configures > explicitly with UPC. If I wrap the macro call like so: >=20 > if test "xwith_upc" =3D "xyes" ; then > AM_PROG_UPC > fi >=20 > I get "configure: error: conditional "am__fastdepUPC" was never defined. > Usually this means the macro was only invoked conditionally.". In the > configure script, it looks like UPC-related code is generated outside of > my if..fi block in addition to inside of the block. > Yes, this is a known limitation. You can work around it using the autoconf-provided AS_IF macro instead of an hand-written if/else construct. For example: $ cat > configure.ac <<'END' AC_INIT([x],0) AS_IF([test "x$with_upc" =3D "xyes"], [AM_PROG_UPC]) END $ aclocal && autoconf $ ./configure; echo status =3D $? checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables...=20 checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU status =3D 0 $ ./configure with_upc=3Dyes; status =3D $? checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables...=20 checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking for upcc... no checking for upc... no configure: error: no Unified Parallel C compiler was found status =3D 77 You can find more details about AS_IF (and similar macros) here: > Thanks for the advise, > Justin >=20 =20 HTH, Stefano From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 09:41:54 2011 Received: (at control) by debbugs.gnu.org; 20 Oct 2011 13:41:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGssc-00037Y-8p for submit@debbugs.gnu.org; Thu, 20 Oct 2011 09:41:54 -0400 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGssZ-00037L-Jp for control@debbugs.gnu.org; Thu, 20 Oct 2011 09:41:52 -0400 Received: by wyh22 with SMTP id 22so2758173wyh.3 for ; Thu, 20 Oct 2011 06:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=qfn33bAsGU38fkS5hPS6OUrxz8Fco5UWZRJnkLXovpE=; b=TDUXNfFZ571OQu5zE9rIhYhS854kBdLEkFvwLAe+JrjQ/IeGnf6H0F7PvaTQMz+iQn o3KhXL6o096yC2JnCXciK5w7RsCjkctmXZy1/+Rr64lbA82+/k0md2PVTsYKyIOMIQiS 3kVPw9H03MvUC8DFuq3NBDvc/c3ASXPu0PdQs= Received: by 10.216.221.157 with SMTP id r29mr6872121wep.66.1319118037272; Thu, 20 Oct 2011 06:40:37 -0700 (PDT) Received: from bigio.localnet (host71-30-dynamic.56-82-r.retail.telecomitalia.it. [82.56.30.71]) by mx.google.com with ESMTPS id eu16sm15634691wbb.7.2011.10.20.06.40.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Oct 2011 06:40:34 -0700 (PDT) From: Stefano Lattarini To: control@debbugs.gnu.org Subject: am Date: Thu, 20 Oct 2011 15:40:25 +0200 User-Agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201110201540.25650.stefano.lattarini@gmail.com> X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) severity 9320 minor severity 8599 minor severity 8071 minor severity 7892 minor tags 8788 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 26 10:04:23 2013 Received: (at control) by debbugs.gnu.org; 26 Dec 2013 15:04:24 +0000 Received: from localhost ([127.0.0.1]:43935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwCU2-0000FP-ST for submit@debbugs.gnu.org; Thu, 26 Dec 2013 10:04:23 -0500 Received: from mail-ea0-f181.google.com ([209.85.215.181]:52633) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwCTy-0000FC-4y for control@debbugs.gnu.org; Thu, 26 Dec 2013 10:04:20 -0500 Received: by mail-ea0-f181.google.com with SMTP id m10so3695570eaj.26 for ; Thu, 26 Dec 2013 07:04:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=53P49P9y5lmFpAPE/SYqPQQfPs2qo3a1TPBgxXAZ5GY=; b=pFyOln8mD0Mt/3gKkVasWTSnW2kzWd+TUNY7F/tZDWbPDLpijwxP8iHdUFuX3ZmM+N +JgZwGbMcmVVmu7oHn6Xpz0YUj5cm2u2L37JPSLnLjuVEpE4oVWyigILWz827pObm/YB vgQAVSAS4RzKN98rtb5Ap61KWF2SxiHmZ3ok6C561U0IK9lAZ1P1tSz1cTfP2u+QYWYa RebTKGk0MymSLq4OMWt6dqPDCzBc84Js+T4Dur6xw9pCxGCtZV182l/ntkG40GqfD3Lq wo47Zdm1UTqMuRqT89chNB8WW1/T8405mNA6hEX+7FGexcIohlse1kTIQGJNATHIORBG uQaw== X-Received: by 10.14.9.131 with SMTP id 3mr37390882eet.45.1388070257167; Thu, 26 Dec 2013 07:04:17 -0800 (PST) Received: from [192.168.0.101] (host143-4-dynamic.5-87-r.retail.telecomitalia.it. [87.5.4.143]) by mx.google.com with ESMTPSA id g7sm73462228eet.12.2013.12.26.07.03.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Dec 2013 07:04:16 -0800 (PST) Message-ID: <52BC453F.8040208@gmail.com> Date: Thu, 26 Dec 2013 16:03:27 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: "Too, Justin A." Subject: Re: upc (Unified Parallel C) support in automake Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control Cc: 8599@debbug.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 8599 notabug close 8599 stop Reference: It seems that all the issues relevant to this report where either solved or offered viable and "blessed" workarounds, but I still forgot to close the bug. Doing it now to remove some old clutter from our bug tracker. Regards, Stefano From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 26 10:41:27 2013 Received: (at 8599) by debbugs.gnu.org; 26 Dec 2013 15:41:28 +0000 Received: from localhost ([127.0.0.1]:43978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwD3u-0002gz-RF for submit@debbugs.gnu.org; Thu, 26 Dec 2013 10:41:27 -0500 Received: from mail-ee0-f48.google.com ([74.125.83.48]:48664) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwD3t-0002gr-5D for 8599@debbugs.gnu.org; Thu, 26 Dec 2013 10:41:25 -0500 Received: by mail-ee0-f48.google.com with SMTP id e49so3691731eek.35 for <8599@debbugs.gnu.org>; Thu, 26 Dec 2013 07:41:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=53P49P9y5lmFpAPE/SYqPQQfPs2qo3a1TPBgxXAZ5GY=; b=kADIeKaomEYJ6/S9QFM973VfUVVU7PH6WuwfIC7Ge5M9vckhtwbA7FY56ePZeBlJ96 7y8ulcpCT6zafoeotB4lffmKM0L2SgVmpeImc3xUJ6Jm9kp0QjdvmGQT5z+T5dVr3l4Y r68pLpiJMpSJlL/a8EX1B+jvWBeljK/AR1Y5OiW0e/FXHlIAFTwyuET8KXPOEroFioEi 8whJoTGWUW0Fm40FoyXqEWmP5chQaGEy/3x6sPqkePJooE3U7PwsnFi//NU1paZdORb1 YVYLkC/Aj5/Miqev3fCnLsCHAOVHaHc9K7c26rIffA1TQtSvq7/R93hwsBfVchFWrOUA BVEw== X-Received: by 10.14.6.5 with SMTP id 5mr35180017eem.51.1388072484435; Thu, 26 Dec 2013 07:41:24 -0800 (PST) Received: from [192.168.0.101] (host143-4-dynamic.5-87-r.retail.telecomitalia.it. [87.5.4.143]) by mx.google.com with ESMTPSA id e43sm73769396eep.7.2013.12.26.07.41.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Dec 2013 07:41:23 -0800 (PST) Message-ID: <52BC4E20.6060004@gmail.com> Date: Thu, 26 Dec 2013 16:41:20 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: "Too, Justin A." Subject: Re: upc (Unified Parallel C) support in automake Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 8599 Cc: 8599@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 8599 notabug close 8599 stop Reference: It seems that all the issues relevant to this report where either solved or offered viable and "blessed" workarounds, but I still forgot to close the bug. Doing it now to remove some old clutter from our bug tracker. Regards, Stefano From unknown Sat Jun 21 03:06:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 24 Jan 2014 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator