[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Public header files
From: |
Ralf Wildenhues |
Subject: |
Re: Public header files |
Date: |
Tue, 2 Mar 2010 22:17:01 +0100 |
User-agent: |
Mutt/1.5.20 (2009-10-28) |
* Jef Driesen wrote on Tue, Mar 02, 2010 at 10:03:35PM CET:
> On 01/03/10 19:35, Ralf Wildenhues wrote:
> >* Jef Driesen wrote on Mon, Mar 01, 2010 at 01:33:46PM CET:
> >>Since a config.h header files is not supposed to be public, that's
> >>not an option. But how can I do this correctly?
> >
> >Use a second config header. Its input template will not be generated by
> >autoheader; you write it yourself. That way you can be sure to only put
> >safe stuff in there.
>
> Can you give me some info to guide me into the right direction. I
> don't know where or what I should be looking for.
Hmm, put
AC_CONFIG_HEADERS([config.h foo-api.h])
...
AC_DEFINE([ticks_t], [...], [...])
in configure.ac, create foo-api.h.in with contents
/* Public API header of package Foo */
...
#undef ticks_t
and add foo-api.h to include_HEADERS in Makefile.am. Untested,
be sure to test distcheck.
Cheers,
Ralf
- Public header files, Jef Driesen, 2010/03/01
- Re: Public header files, NightStrike, 2010/03/01
- Re: Public header files, Ralf Wildenhues, 2010/03/01
- Re: Public header files, Jef Driesen, 2010/03/02
- Re: Public header files,
Ralf Wildenhues <=
- Re: Public header files, Jef Driesen, 2010/03/08
- Re: Public header files, Ralf Wildenhues, 2010/03/13
- Re: Public header files, Jef Driesen, 2010/03/13
- Re: Public header files, Ralf Wildenhues, 2010/03/15
- Re: Public header files, Jef Driesen, 2010/03/16
- Re: Public header files, Peter Johansson, 2010/03/16
- Re: Public header files, Jef Driesen, 2010/03/17
- Re: Public header files, Peter Johansson, 2010/03/21
- revision control info in generated files (was: Public header files), Ralf Wildenhues, 2010/03/30
- Re: revision control info in generated files, Jef Driesen, 2010/03/31