Actions

icon Post
text/html Subscribe
text/html Unsubscribe

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

Re: [vsipl++] [patch] Check config at app build time


  • To: Jules Bergmann <jules@xxxxxxxxxxxxxxxx>
  • Subject: Re: [vsipl++] [patch] Check config at app build time
  • From: Stefan Seefeld <stefan@xxxxxxxxxxxxxxxx>
  • Date: Wed, 30 Jan 2008 10:31:54 -0500

Jules Bergmann wrote:
This patch adds a app_config() function that returns a string for the library's configuration at application build time. It is identical in format to library_config(), which is the library's configuration at library build time.

By comparing the output of these two functions, you can check whether you're using the same configuration as when the library was originally built. This should be useful for folks using eclipse to make sure they've correctly cut-and-pasted the phalanx of options from the pkg-config file into eclipse.

I think this is a great idea. Why don't you make the content of check_config_body.hpp into a function-like macro (passing the output stream as an argument) ? Then you could treat this as an ordinary header and just 'call' this 'function' at the appropriate place instead.
(In that case you presumably wouldn't need the new check_config_body.hpp
header at all.)

Thanks,
		Stefan

--
Stefan Seefeld
CodeSourcery
stefan@xxxxxxxxxxxxxxxx
(650) 331-3385 x718