Odpowiedź w sprawie glibconfig.h (Re: question ..) (fwd)

Tomasz Kłoczko kloczek w rudy.mif.pg.gda.pl
Czw, 8 Kwi 1999, 21:22:50 CEST



---------- Forwarded message ----------
Date: 08 Apr 1999 14:00:29 -0500
From: Raja R Harinath <harinath w cs.umn.edu>
Reply-To: gtk-devel-list w redhat.com
To: gtk-devel-list w redhat.com
Subject: Re: question ..
Resent-Date: 8 Apr 1999 19:20:53 -0000
Resent-From: gtk-devel-list w redhat.com
Resent-cc: recipient list not shown: ;

Tomasz Kłoczko <kloczek w rudy.mif.pg.gda.pl> writes:
> On Thu, 8 Apr 1999, Jeff Garzik wrote:
> > On Thu, 8 Apr 1999, [ISO-8859-2] Tomasz Kłoczko wrote:
> > > Why glibconfig.h is placed in $(prefix)/lib/glib/include .. why not
> > > in $(prefix)/include ?
> > 
> > It is very platform-specific.
> 
> Hmm .. and this is cause placing this deep in some subdirectory ?

It is reason enough to place it in $(exec_prefix).

> Many files are platform specific but is not placed in glib-sheme.
> 
> IMHO it is very weak argument for placing this file in this place
> .. in separated directory :_)


`glib' attempts to follow the GNU filesystem standards (GFSS).
However the GFSS doesn't have a standard location for platform
specific headers --  $(prefix)/include is meant for
platform independent headers.  Each package that needs platform
specific headers takes a different approach: 

  - some punt the issue

  - GNU libio installs _G_config.h in

        $(exec_prefix)/$(host_alias)/include

  - GCC installs its platform specific headers in

        $(libdir)/gcc-lib/$(host_alias)/$(gcc-version)/include

GLIB takes an approach based on these.

As a counterpoint, GLIBC installs its platform-specific headers in
/usr/include.  This is OK since the FHS specifies /usr/include as
platform-specific.

So, for the special case of

        $prefix == $exec_prefix == /usr

you *can* install glibconfig.h in /usr/include.

Right now, we don't do that, but I'm sure we'll accept a patch that
installs glibconfig.h in /usr/include iff $prefix==$exec_prefix==/usr,
and also takes care of fixing glib-config &c. to handle this.
However, this still doesn't mean that you should install glibconfig.h
in $prefix/include.

- Hari
-- 
Raja R Harinath ------------------------------ harinath w cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash


-- 
         To unsubscribe: mail gtk-devel-list-request w redhat.com with 
                       "unsubscribe" as the Subject.



Więcej informacji o liście dyskusyjnej pld-devel-pl