[ovs-discuss] Enabling user defined preprocessing definitions during compilation of OVS 1.2.2

Ben Pfaff blp at nicira.com
Fri Nov 11 16:59:37 UTC 2011


On Fri, Nov 11, 2011 at 03:35:00PM +0530, Ramana Reddy wrote:
> I modified some code in OVS-1.2.2 both in user space and kernel
> space with my own preprocessing directives some thing like:
> #ifdef Ramana
> /* my code is here */
> #endif.
> 
> Now I want to enable my code during the compilation of OVS-1.2.2.
> This can be done by defining #define ramana in the header file and
> adding this header file in the respective places can solve the problem.
> But some how I do not like to add this header file in all the places.
> How can we enable this preprocessor directive with out adding a header file.
> Can we pass this one as a parameter to gcc like gcc -Dramana during
> compilation.
> if yes, where I should modify in the configuration file or some other file.

Add AC_DEFINE([Ramana], [1], [Enable Ramana's extensions.])
to configure.ac.



More information about the discuss mailing list