incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duft Markus" <Markus.D...@salomon.at>
Subject AW: problem with config.h
Date Fri, 15 Sep 2006 05:58:54 GMT
I think it would be enough to simply enhance the current behaviour a little (at least on windows).
Now the config.h is placed in a directory named like the configuration. I don't think that
too many packages have adirectory 15d or alike. If one could include 15/config.h this would
be sufficiant i think (like i'm doing now, and this seems to work for a lot of packages).
Of course this can be done anyway with the _RWSTD_CONFIG (which is really a little better
than my solution).

Cheers, Markus 

-----Urspr√ľngliche Nachricht-----
Von: Martin Sebor [mailto:sebor@roguewave.com] 
Gesendet: Donnerstag, 14. September 2006 18:53
An: stdcxx-dev@incubator.apache.org
Betreff: Re: problem with config.h

Duft Markus wrote:
> hey there!
>  
> i have following problem: i'm writing a compiler wrapper 
> (interix-wgcc, on sourceforge) for which i want to use stdcxx as the 
> default STL implementation. the only problem is, that the config.h 
> will conflict with every single config.h generated by autotools 
> managed packages. so i for now did the following:
>  
> i changed rw/_config.h to be
[...]
> the script is needed anyway, so for now this is not a too big problem, 
> but it would be really cool if config.h would be something else, like 
> rwstd_config.h or so...

Yes, the name is far from ideal. I've been thinking about making it configurable, perhaps
by replacing the _RWSTD_USE_CONFIG macro with _RWSTD_CONFIG=<config-header-pathname>.
The patch below has all the source changes necessary to make it work (the rest of the changes
need to go in the makefiles and VisualStudio scripts).
I suggest you create an enhancement request in Jira for this to help us remember to get it
done.

Martin

Index: /build/sebor/stdcxx/include/rw/_config.h
===================================================================
--- /build/sebor/stdcxx/include/rw/_config.h    (revision 436919)
+++ /build/sebor/stdcxx/include/rw/_config.h    (working copy)
@@ -31,7 +31,9 @@
  #ifndef _RWSTD_RW_CONFIG_H_INCLUDED
  #define _RWSTD_RW_CONFIG_H_INCLUDED

-#ifdef _RWSTD_USE_CONFIG
+#ifdef _RWSTD_CONFIG
+#  include _RWSTD_CONFIG
+#elif defined (_RWSTD_USE_CONFIG)
  #  include <config.h>
  #else
  #  include <rw/config/rwconfig_std.h>

Mime
View raw message