[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PACKAGE_NAME, PACKAGE_VERSION etc
From: |
Bruce Korb |
Subject: |
Re: PACKAGE_NAME, PACKAGE_VERSION etc |
Date: |
Wed, 18 Feb 2004 09:07:31 -0800 |
Bob Friesenhahn wrote:
>
> On Wed, 18 Feb 2004, Bruce Korb wrote:
> >
> > Why not just incorporate some variation on the "prefix" macro
> > that modifies the names of all the #define-d macros?
> >
> > my-config.h : config.h
> > sed 's/^#define /#define MY_/' config.h > $@
> >
> > Install "my-config.h". Simple. Effective. Auto-somethingorother
> > ought to be configurable to insert the prefix on its own, but this
> > isn't exactly rocket science, either.
>
> There is more involved since it seems that the source code (at least
> the headers) needs to be updated to understand the MY_ variant of the
> defines.
Yes, of course.
> Additional Makefile rules would need to be added to ensure
> that my-config.h is created before any compilation takes place.
I think all the compile dependency stuff is already handled.
"my-config.h" would need to be listed in the BUILT_SOURCES macro
though (in automake-speak).
- PACKAGE_NAME, PACKAGE_VERSION etc, Balint Joo, 2004/02/17
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Daniel Reed, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Bob Friesenhahn, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Bruce Korb, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Bob Friesenhahn, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc,
Bruce Korb <=
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Ralf Wildenhues, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, RĂ¼diger Kuhlmann, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Daniel Reed, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Bob Friesenhahn, 2004/02/18