qs_config.h

Go to the documentation of this file.
00001 /* Taken from EGlib 10-09-26 */
00002 /* EGlib "Efficient General Library" provides some basic structures and
00003  * algorithms commons in many optimization algorithms.
00004  *
00005  * Copyright (C) 2005 Daniel Espinoza and Marcos Goycoolea.
00006  * 
00007  * This library is free software; you can redistribute it and/or modify it
00008  * under the terms of the GNU Lesser General Public License as published by the
00009  * Free Software Foundation; either version 2.1 of the License, or (at your
00010  * option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful, but 
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
00014  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
00015  * License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public License
00018  * along with this library; if not, write to the Free Software Foundation,
00019  * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
00020  * */
00021 /* ========================================================================= */
00022 /** Main Configuration for the library, as debug levels and so on
00023  * 
00024  * @par History:
00025  * - 2010-09-26
00026  *            - Addapted for QSopt_ex
00027  * - 2010-08-13
00028  *            - Add suport for autoconf and configure for header and feature
00029  *            selection
00030  * - 2006-01-27
00031  *          - Handle some problems with stdint.h in SUN
00032  * - 2005-08-17
00033  *          - Set memory aligment to 8 bits
00034  * - 2003-06-02
00035  *          - First Implementation
00036  * @version 1.1.1 
00037  * */
00038 /* ========================================================================= */
00039 #ifndef __QS_CONFIG_H__
00040 #define __QS_CONFIG_H__
00041 #include "config.h"
00042 #ifdef HAVE_STDIO_H
00043 # include <stdio.h>
00044 #endif
00045 #ifdef HAVE_SYS_SOCKET_H
00046 # include <sys/socket.h>
00047 #endif
00048 #ifdef HAVE_SYS_TYPES_H
00049 # include <sys/types.h>
00050 #endif
00051 #ifdef HAVE_SYS_STAT_H
00052 # include <sys/stat.h>
00053 #endif
00054 #ifdef STDC_HEADERS
00055 # include <stdlib.h>
00056 # include <stddef.h>
00057 #else
00058 # ifdef HAVE_STDLIB_H
00059 # include <stdlib.h>
00060 # endif
00061 #endif
00062 #ifdef HAVE_STRING_H
00063 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
00064 # include <memory.h>
00065 # endif
00066 # include <string.h>
00067 #endif
00068 #ifdef HAVE_STRINGS_H
00069 # include <strings.h>
00070 #endif
00071 #ifdef HAVE_INTTYPES_H
00072 # include <inttypes.h>
00073 #endif
00074 #ifdef HAVE_STDINT_H
00075 # include <stdint.h>
00076 #endif
00077 #ifdef HAVE_UNISTD_H
00078 # include <unistd.h>
00079 #endif
00080 #ifdef HAVE_ERRNO_H
00081 # include <errno.h>
00082 #endif
00083 #ifdef HAVE_LIMITS_H
00084 # include <limits.h>
00085 #endif
00086 #ifdef HAVE_MATH_H
00087 # include <math.h>
00088 #endif
00089 #ifdef HAVE_FLOAT_H
00090 # include <float.h>
00091 #endif
00092 #ifdef HAVE_GETOPT_H
00093 # include <getopt.h>
00094 #endif
00095 #ifdef HAVE_NETINET_IN_H
00096 # include <netinet/in.h>
00097 #endif
00098 #ifdef HAVE_NETINET_TCP_H
00099 # include <netinet/tcp.h>
00100 #endif
00101 #ifdef HAVE_NETDB_H
00102 # include <netdb.h>
00103 #endif
00104 #ifdef HAVE_FCNTL_H
00105 # include <fcntl.h>
00106 #endif
00107 #ifdef HAVE_SYS_RESOURCE_H
00108 # include <sys/resource.h>
00109 #endif
00110 #ifdef HAVE_SYS_PARAM_H
00111 # include <sys/param.h>
00112 #endif
00113 #ifdef TIME_WITH_SYS_TIME
00114 # include <sys/time.h>
00115 # include <time.h>
00116 #else
00117 # ifdef HAVE_SYS_TIME_H
00118 # include <sys/time.h>
00119 # else
00120 # include <time.h>
00121 # endif
00122 #endif
00123 #ifdef HAVE_SYS_TIMES_H
00124 # include <sys/times.h>
00125 #endif
00126 #ifdef HAVE_STDARG_H
00127 # include <stdarg.h>
00128 #endif
00129 #ifdef HAVE_SYS_UTSNAME_H
00130 # include <sys/utsname.h>
00131 #endif
00132 #ifdef HAVE_SIGNAL_H
00133 # include <signal.h>
00134 #endif
00135 #ifdef HAVE_SETJMP_H
00136 # include <setjmp.h>
00137 #endif
00138 /* ========================================================================= */
00139 /** @brief if no gmp support, we do not include gmp.h, if on the otherhand, we
00140  * have libgmp, we MUST have gmp.h */
00141 #ifdef HAVE_LIBGMP
00142 # if HAVE_LIBGMP
00143 #  ifdef HAVE_GMP_H
00144 #   include <gmp.h>
00145 #  else
00146 #   error Must have gmp.h for compiling QSopt_ex
00147 #  endif
00148 # else
00149 #  error Must have gmp.h for compiling QSopt_ex
00150 # endif
00151 # else
00152 #  error Must have gmp.h for compiling QSopt_ex
00153 #endif
00154 /* ========================================================================= */
00155 /** @brief assert Debug options definitions, by defoult set on */
00156 #ifndef DEBUG
00157 #warning you should define DEBUG, assuming it to be 1
00158 #define DEBUG 1
00159 #endif
00160 
00161 /* ========================================================================= */
00162 /** @brief assert Verbose options definition, by default set on */
00163 #ifndef VERBOSE_LEVEL
00164 #warning you should define VERBOSE_LEVEL, assuming it to be 1
00165 #define VERBOSE_LEVEL 1
00166 #endif
00167 /* ========================================================================= */
00168 #ifdef HAVE_EGLIB_H
00169 # if HAVE_EGLIB_H
00170 #  include "EGlib.h"
00171 # else
00172 #  error You must have EGlib.h for compilation
00173 # endif
00174 #else
00175 #  error You must have EGlib.h for compilation
00176 #endif
00177 /* ========================================================================= */
00178 /** @brief define version function name */
00179 void QSopt_ex_version(void);
00180 #endif

Generated on Thu Mar 29 09:32:32 2012 for QSopt_ex by  doxygen 1.4.7