/build/buildd/coinor-ipopt-3.10.1/Ipopt/src/Common/IpoptConfig.h
Go to the documentation of this file.
00001 /* Copyright (C) 2011
00002  * All Rights Reserved.
00003  * This code is published under the Eclipse Public License.
00004  *
00005  * $Id: IpoptConfig.h 2005 2011-06-06 12:55:16Z stefan $
00006  *
00007  * Include file for the configuration of Ipopt.
00008  *
00009  * On systems where the code is configured with the configure script
00010  * (i.e., compilation is always done with HAVE_CONFIG_H defined), this
00011  * header file includes the automatically generated header file, and
00012  * undefines macros that might configure with other Config.h files.
00013  *
00014  * On systems that are compiled in other ways (e.g., with the
00015  * Developer Studio), a header files is included to define those
00016  * macros that depend on the operating system and the compiler.  The
00017  * macros that define the configuration of the particular user setting
00018  * (e.g., presence of other COIN-OR packages or third party code) are set
00019  * by the files config_*default.h. The project maintainer needs to remember
00020  * to update these file and choose reasonable defines.
00021  * A user can modify the default setting by editing the config_*default.h files.
00022  *
00023  */
00024 
00025 #ifndef __IPOPTCONFIG_H__
00026 #define __IPOPTCONFIG_H__
00027 
00028 #ifdef HAVE_CONFIG_H
00029 
00030 #ifdef IPOPT_BUILD
00031 #include "config.h"
00032 #else
00033 #include "config_ipopt.h"
00034 #endif
00035 
00036 #else /* HAVE_CONFIG_H */
00037 
00038 #ifdef IPOPT_BUILD
00039 #include "config_default.h"
00040 #else
00041 #include "config_ipopt_default.h"
00042 #endif
00043 
00044 #endif /* HAVE_CONFIG_H */
00045 
00046 #endif /*__IPOPTCONFIG_H__*/