Main Page   Reference Manual   Compound List   File List  

Configuration Options And Macros
[Configuration, Installation And Getting Started]

Collaboration diagram for Configuration Options And Macros:

Modules

 --enable-debug (ECC_DEBUG)
 --enable-debug-output (ECC_DEBUGOUTPUT)

Detailed Description

Libecc uses autoconf; configuration is done with the usual configure script.  You can list all options of configure by issuing configure --help .

This section describes the configure options specific to libecc.  The name of the macros that are related to the respective features are given between parenthesis after the option.  You can not define these macros yourself, you may only use them in an #if ... #endif test.  The macros are always defined; when a configure option was used then the macro is defined to 1, otherwise it is defined to 0.  This makes it possible for the compiler to warn you when you made a typo in the name of a macro.

Example:

 #include <libecc/config.h>

 // Use '#if' not '#ifdef'.
 #if ECC_DEBUG
   assert( i == 1 ); 
 #endif
Copyright © 2002-2008 Carlo Wood.  All rights reserved.