[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clarification request: AC_PREFIX_DEFAULT([.]) and AC_CONFIG_SUBDIRS
From: |
Eric Blake |
Subject: |
Re: Clarification request: AC_PREFIX_DEFAULT([.]) and AC_CONFIG_SUBDIRS collide. |
Date: |
Wed, 03 Dec 2014 06:14:50 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 12/03/2014 04:24 AM, Václav Zeman wrote:
> On 3 December 2014 at 11:32, Thomas Jahns wrote:
>> Hello,
>>
>> I noticed having a default prefix of . causes AC_CONFIG_SUBDIRS to fail.
>>
>> Is this a bug in AC_PREFIX_DEFAULT (or its documentation) or in
>> AC_CONFIG_SUBDIRS?
>> configure: error: expected an absolute directory name for --prefix: .
>> configure: error: ./configure failed for directory_sub
>>
>
> I do not know the internals but this does look like a deliberate foot
> shooting preventive measure rather than bug.
install.texi (and therefore INSTALL) documents that --prefix MUST be
absolute. Using AC_PREFIX_DEFAULT with a non-absolute location is
therefore unwise. That said, we either need a doc patch to mention this
about AC_PREFIX_DEFAULT, or it may be possible to refactor
AC_PREFIX_DEFAULT to canonicalize the default to be absolute to match
that --prefix must be absolute. Would you care to write the patch?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature