]> Creatis software - crea.git/blob - src/creaConfigure.h.in
no message
[crea.git] / src / creaConfigure.h.in
1 /*=========================================================================
2                                                                                 
3   Program:   crea
4   Module:    $RCSfile: creaConfigure.h.in,v $
5   Language:  C++
6   Date:      $Date: 2008/10/10 09:53:57 $
7   Version:   $Revision: 1.2 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #ifndef __creaConfigure_h
20 #define __creaConfigure_h
21
22 /* This header is configured by CREA's build process.  */
23
24 /*--------------------------------------------------------------------------*/
25 /* Platform Features                                                        */
26
27 /* Byte order.  */
28 #cmakedefine CREA_WORDS_BIGENDIAN
29
30 /* Allow access to UINT32_MAX , cf creaCommon.h */
31 #ifndef __STDC_LIMIT_MACROS
32 #define __STDC_LIMIT_MACROS
33 #endif
34
35 /* Hardcode the path to CREA_DATA_ROOT */
36 #ifndef CREA_DATA_ROOT
37 #define CREA_DATA_ROOT "@CREA_DATA_ROOT@"
38 #endif 
39
40 /* Usefull in particular for loadshared where the full path
41  * to the lib is needed */
42 #define CREA_EXECUTABLE_OUTPUT_PATH "@EXECUTABLE_OUTPUT_PATH@"
43 #define CREA_LIBRARY_OUTPUT_PATH    "@LIBRARY_OUTPUT_PATH@"
44 #define CREA_DATA_PATH    "@CREA_DATA_ROOT@"
45
46 /* For older gcc / broken plateform */
47 #cmakedefine CREA_NO_ANSI_STRING_STREAM
48
49 /* I guess something important */
50 #cmakedefine CMAKE_HAVE_STDINT_H
51 #cmakedefine CMAKE_HAVE_INTTYPES_H
52 #cmakedefine CMAKE_HAVE_TERMIOS_H
53  
54 /* This variable allows you to have helpful debug statement */
55 /* That are in between #ifdef / endif in the crea code */
56 /* That means if CREA_DEBUG is OFF there shouldn't be any 'cout' at all ! */
57 /* only cerr, for instance 'invalid file' will be allowed */
58 #cmakedefine CREA_DEBUG
59
60 /* Whether we are building shared libraries.  */
61 /* This was important as long as CREA is LGPL */
62 #cmakedefine BUILD_SHARED_LIBS
63
64 /* CREA uses __FUNCTION__ which is not ANSI C, but C99 */
65 #cmakedefine CREA_COMPILER_HAS_FUNCTION
66
67 #define CREA_SIZEOF_LONG @CREA_SIZEOF_LONG@
68
69 /* Special time structure support */
70 #cmakedefine CMAKE_HAVE_SYS_TIMES_H
71 #cmakedefine CMAKE_HAVE_SYS_TIMEB_H
72
73 /* GetMacAddress require a lot of include file to access low level API */
74 #cmakedefine CMAKE_HAVE_UNISTD_H
75 #cmakedefine CMAKE_HAVE_STDLIB_H
76 #cmakedefine CMAKE_HAVE_SYS_IOCTL_H
77 #cmakedefine CMAKE_HAVE_SYS_SOCKET_H
78 #cmakedefine CMAKE_HAVE_SYS_SOCKIO_H
79 #cmakedefine CMAKE_HAVE_NET_IF_H
80 #cmakedefine CMAKE_HAVE_NETINET_IN_H
81 #cmakedefine CMAKE_HAVE_NET_IF_DL_H
82 #cmakedefine CMAKE_HAVE_NET_IF_ARP_H
83 #cmakedefine HAVE_SA_LEN
84
85 /*--------------------------------------------------------------------------*/
86 /* CREA Versioning                                                          */
87
88 /* Version number.  */
89 #ifndef CREA_VERSION
90 #define CREA_MAJOR_VERSION @CREA_MAJOR_VERSION@
91 #define CREA_MINOR_VERSION @CREA_MINOR_VERSION@
92 #define CREA_BUILD_VERSION @CREA_BUILD_VERSION@
93 #define CREA_VERSION "@CREA_VERSION@"
94 #endif
95
96 #endif