]> Creatis software - crea.git/blob - src/creaConfigure.h.in
0a7df60f9fc36e78adf741457c878357bf853e03
[crea.git] / src / creaConfigure.h.in
1 /*
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
5 #                        pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 #
8 #  This software is governed by the CeCILL-B license under French law and 
9 #  abiding by the rules of distribution of free software. You can  use, 
10 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
11 #  license as circulated by CEA, CNRS and INRIA at the following URL 
12 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
13 #  or in the file LICENSE.txt.
14 #
15 #  As a counterpart to the access to the source code and  rights to copy,
16 #  modify and redistribute granted by the license, users are provided only
17 #  with a limited warranty  and the software's author,  the holder of the
18 #  economic rights,  and the successive licensors  have only  limited
19 #  liability. 
20 #
21 #  The fact that you are presently reading this means that you have had
22 #  knowledge of the CeCILL-B license and that you accept its terms.
23 # ------------------------------------------------------------------------ */ 
24
25 /*=========================================================================
26                                                                                 
27   Program:   crea
28   Module:    $RCSfile: creaConfigure.h.in,v $
29   Language:  C++
30   Date:      $Date: 2012/11/15 09:07:31 $
31   Version:   $Revision: 1.3 $
32                                                                                 
33                                                                                 
34      This software is distributed WITHOUT ANY WARRANTY; without even
35      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
36      PURPOSE.  See the above copyright notices for more information.
37                                                                                 
38 =========================================================================*/
39
40 #ifndef __creaConfigure_h
41 #define __creaConfigure_h
42
43 /* This header is configured by CREA's build process.  */
44
45 /*--------------------------------------------------------------------------*/
46 /* Platform Features                                                        */
47
48 /* Byte order.  */
49 #cmakedefine CREA_WORDS_BIGENDIAN
50
51 /* Allow access to UINT32_MAX , cf creaCommon.h */
52 #ifndef __STDC_LIMIT_MACROS
53 #define __STDC_LIMIT_MACROS
54 #endif
55
56 /* Hardcode the path to CREA_DATA_ROOT */
57 #ifndef CREA_DATA_ROOT
58 #define CREA_DATA_ROOT "@CREA_DATA_ROOT@"
59 #endif 
60
61 /* Usefull in particular for loadshared where the full path
62  * to the lib is needed */
63 #define CREA_EXECUTABLE_OUTPUT_PATH "@EXECUTABLE_OUTPUT_PATH@"
64 #define CREA_LIBRARY_OUTPUT_PATH    "@LIBRARY_OUTPUT_PATH@"
65 #define CREA_DATA_PATH    "@CREA_DATA_ROOT@"
66
67 /* For older gcc / broken plateform */
68 #cmakedefine CREA_NO_ANSI_STRING_STREAM
69
70 /* I guess something important */
71 #cmakedefine CMAKE_HAVE_STDINT_H
72 #cmakedefine CMAKE_HAVE_INTTYPES_H
73 #cmakedefine CMAKE_HAVE_TERMIOS_H
74  
75 /* This variable allows you to have helpful debug statement */
76 /* That are in between #ifdef / endif in the crea code */
77 /* That means if CREA_DEBUG is OFF there shouldn't be any 'cout' at all ! */
78 /* only cerr, for instance 'invalid file' will be allowed */
79 #cmakedefine CREA_DEBUG
80
81 /* Whether we are building shared libraries.  */
82 /* This was important as long as CREA is LGPL */
83 #cmakedefine BUILD_SHARED_LIBS
84
85 /* CREA uses __FUNCTION__ which is not ANSI C, but C99 */
86 #cmakedefine CREA_COMPILER_HAS_FUNCTION
87
88 #define CREA_SIZEOF_LONG @CREA_SIZEOF_LONG@
89
90 /* Special time structure support */
91 #cmakedefine CMAKE_HAVE_SYS_TIMES_H
92 #cmakedefine CMAKE_HAVE_SYS_TIMEB_H
93
94 /* GetMacAddress require a lot of include file to access low level API */
95 #cmakedefine CMAKE_HAVE_UNISTD_H
96 #cmakedefine CMAKE_HAVE_STDLIB_H
97 #cmakedefine CMAKE_HAVE_SYS_IOCTL_H
98 #cmakedefine CMAKE_HAVE_SYS_SOCKET_H
99 #cmakedefine CMAKE_HAVE_SYS_SOCKIO_H
100 #cmakedefine CMAKE_HAVE_NET_IF_H
101 #cmakedefine CMAKE_HAVE_NETINET_IN_H
102 #cmakedefine CMAKE_HAVE_NET_IF_DL_H
103 #cmakedefine CMAKE_HAVE_NET_IF_ARP_H
104 #cmakedefine HAVE_SA_LEN
105
106 /*--------------------------------------------------------------------------*/
107 /* CREA Versioning                                                          */
108
109 /* Version number.  */
110 #ifndef CREA_VERSION
111 #define CREA_MAJOR_VERSION @CREA_MAJOR_VERSION@
112 #define CREA_MINOR_VERSION @CREA_MINOR_VERSION@
113 #define CREA_BUILD_VERSION @CREA_BUILD_VERSION@
114 #define CREA_VERSION "@CREA_VERSION@"
115 #endif
116
117 #endif