[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoreconf stops with "non-POSIX variable name"

From: Eric Blake
Subject: Re: Autoreconf stops with "non-POSIX variable name"
Date: Mon, 01 Apr 2013 17:19:05 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

On 04/01/2013 05:07 PM, Borchert, Oliver wrote:
> Eric and Russ,
> thanks for the reply. After long testing back and forth I decided to use 
> My solution might not be the cleanest but it works for me.

It may work for you, but it alienates all users that were previously
able to build your package with non-GNU make.  (Are there any?)

> In I added the following line
> In the I changed my previous line into
> address@hidden@(shell cat $(SRC_DIR)/$(MY_REVISION_FILE))

If you care about non-GNU make users, then you can't use $(shell).  And
as long as you are going to mandate that your package be built with GNU
make, then you might as well go all the way and document that fact in
your README file, as well as:

>>> This is actually an Automake question, but the short answer is that
>>> you probably have fatal warnings enabled and you need to add
>>> -Wno-portability to the Automake flags (in AM_INIT_AUTOMAKE, for
>> example).

...tell automake that you don't care about the non-portability aspect by
adding -Wno-portability to your AM_INIT_AUTOMAKE, at which point you'd
no longer need your @DOLLAR_SIGN@ hack.

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]