2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
10 # This software is governed by the CeCILL-B license under French law and
11 # abiding by the rules of distribution of free software. You can use,
12 # modify and/ or redistribute the software under the terms of the CeCILL-B
13 # license as circulated by CEA, CNRS and INRIA at the following URL
14 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15 # or in the file LICENSE.txt.
17 # As a counterpart to the access to the source code and rights to copy,
18 # modify and redistribute granted by the license, users are provided only
19 # with a limited warranty and the software's author, the holder of the
20 # economic rights, and the successive licensors have only limited
23 # The fact that you are presently reading this means that you have had
24 # knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------ */
28 /*=========================================================================
31 Module: $RCSfile: bbtkConfigure.h.in,v $
33 Date: $Date: 2012/11/16 08:49:22 $
34 Version: $Revision: 1.5 $
36 =========================================================================*/
38 #ifndef __bbtkConfigure_h
39 #define __bbtkConfigure_h
41 /* This header is configured by BBTK's build process. */
43 /*--------------------------------------------------------------------------*/
44 /* Platform Features */
47 #cmakedefine BBTK_WORDS_BIGENDIAN
49 /* Allow access to UINT32_MAX , cf bbtkCommon.h */
50 #ifndef __STDC_LIMIT_MACROS
51 #define __STDC_LIMIT_MACROS
54 /* Hardcode the path to BBTK_DATA_ROOT */
55 #ifndef BBTK_DATA_ROOT
56 #define BBTK_DATA_ROOT "@BBTK_DATA_ROOT@"
59 /* Usefull in particular for loadshared where the full path
60 * to the lib is needed */
61 #define BBTK_EXECUTABLE_OUTPUT_PATH "@EXECUTABLE_OUTPUT_PATH@"
62 #define BBTK_LIBRARY_OUTPUT_PATH "@LIBRARY_OUTPUT_PATH@"
63 #define BBTK_DATA_PATH "@BBTK_DATA_ROOT@"
65 /* For older gcc / broken plateform */
66 #cmakedefine BBTK_NO_ANSI_STRING_STREAM
68 /* I guess something important */
69 #cmakedefine CMAKE_HAVE_STDINT_H
70 #cmakedefine CMAKE_HAVE_INTTYPES_H
71 #cmakedefine CMAKE_HAVE_TERMIOS_H
73 /* This variable allows you to have helpful debug statement */
74 /* That are in between #ifdef / endif in the bbtk code */
75 /* That means if BBTK_DEBUG is OFF there shouldn't be any 'cout' at all ! */
76 /* only cerr, for instance 'invalid file' will be allowed */
77 #cmakedefine BBTK_DEBUG
79 /* Whether we are building shared libraries. */
80 /* This was important as long as BBTK is LGPL */
81 #cmakedefine BUILD_SHARED_LIBS
83 /* BBTK uses __FUNCTION__ which is not ANSI C, but C99 */
84 #cmakedefine BBTK_COMPILER_HAS_FUNCTION
86 #define BBTK_SIZEOF_LONG @BBTK_SIZEOF_LONG@
88 /* Special time structure support */
89 #cmakedefine CMAKE_HAVE_SYS_TIMES_H
90 #cmakedefine CMAKE_HAVE_SYS_TIMEB_H
92 /* GetMacAddress require a lot of include file to access low level API */
93 #cmakedefine CMAKE_HAVE_UNISTD_H
94 #cmakedefine CMAKE_HAVE_STDLIB_H
95 #cmakedefine CMAKE_HAVE_SYS_IOCTL_H
96 #cmakedefine CMAKE_HAVE_SYS_SOCKET_H
97 #cmakedefine CMAKE_HAVE_SYS_SOCKIO_H
98 #cmakedefine CMAKE_HAVE_NET_IF_H
99 #cmakedefine CMAKE_HAVE_NETINET_IN_H
100 #cmakedefine CMAKE_HAVE_NET_IF_DL_H
101 #cmakedefine CMAKE_HAVE_NET_IF_ARP_H
102 #cmakedefine HAVE_SA_LEN
104 /*--------------------------------------------------------------------------*/
105 /* BBTK Versioning */
107 /* Version number. */
109 #define BBTK_MAJOR_VERSION @BBTK_MAJOR_VERSION@
110 #define BBTK_MINOR_VERSION @BBTK_MINOR_VERSION@
111 #define BBTK_BUILD_VERSION @BBTK_BUILD_VERSION@
112 #define BBTK_VERSION @BBTK_VERSION@
113 #define BBTK_VERSION_STRING "@BBTK_VERSION@"