X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/40538f98176832207ec50cc7b9413363bb4f4963..bb52ef5fabdd283019a32fb5d812b5e40127bea5:/tools/cmake/src/internal_config.h.in diff --git a/tools/cmake/src/internal_config.h.in b/tools/cmake/src/internal_config.h.in index 4cff92476e..e55e2aacf7 100644 --- a/tools/cmake/src/internal_config.h.in +++ b/tools/cmake/src/internal_config.h.in @@ -3,202 +3,71 @@ /* Warning: The file internal_config.h is AUTOMATICALLY GENERATED by Cmake. * Edit the template instead: tools/cmake/src/internal_config.h.in */ -/* Copyright (c) 2004-2016. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2004-2016. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -/* Set somes variables for Windows compilation */ - -#ifdef _XBT_DLL_EXPORT - #ifndef DLL_EXPORT - #define DLL_EXPORT - #endif -#else - #ifndef DLL_IMPORT - #define DLL_IMPORT - #endif -#endif - -/* If __thread is available */ -#cmakedefine HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@ - -#ifndef __STRICT_ANSI__ - #cmakedefine __STRICT_ANSI__ @__STRICT_ANSI__@ -#endif -#ifndef _MSC_VER - #cmakedefine _MSC_VER @_MSC_VER@ -#endif -#ifndef _M_IX86 - #cmakedefine _M_IX86 @_M_IX86@ -#endif -#cmakedefine _XBT_WIN32 @_XBT_WIN32@ // this variable is set if it is a windows platform -#cmakedefine _WIN32 @_WIN32@ // this variable is set if it is a 32 bits windows platform -#cmakedefine _WIN64 @_WIN64@ // this variable is set if it is a 64 bits windows platform -#cmakedefine APPLE @APPLE@ -/* Set to true if enable_model-checking is true */ -#cmakedefine MMALLOC_WANT_OVERRIDE_LEGACY @MMALLOC_WANT_OVERRIDE_LEGACY@ -#cmakedefine HAVE_MC @HAVE_MC@ - -/* If have linux_futex.h */ -#cmakedefine HAVE_FUTEX_H @HAVE_FUTEX_H@ - -/* Some variable for graphviz */ -#cmakedefine HAVE_GRAPHVIZ @HAVE_GRAPHVIZ@ -#cmakedefine HAVE_GRAPH_H @GRAPH_H@ -#cmakedefine HAVE_CGRAPH_H @CGRAPH_H@ -#cmakedefine HAVE_AGRAPH_H @AGRAPH_H@ - -/* Path to the addr2line tool */ -#cmakedefine ADDR2LINE "@ADDR2LINE@" - -/* Define if xbt contexts are based on our threads implementation or not */ -#cmakedefine HAVE_THREAD_CONTEXTS @HAVE_THREAD_CONTEXTS@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_UCONTEXT_H @HAVE_UCONTEXT_H@ - -/* Define if xbt contexts are based on ucontext or not */ -#cmakedefine HAVE_UCONTEXT_CONTEXTS @HAVE_UCONTEXT_CONTEXTS@ - -/* Used to select the flavor of assembly that we need today */ -#cmakedefine PROCESSOR_i686 @PROCESSOR_i686@ -#cmakedefine PROCESSOR_x86_64 @PROCESSOR_x86_64@ -#cmakedefine CMAKE_SYSTEM_PROCESSOR @CMAKE_SYSTEM_PROCESSOR@ -#cmakedefine HAVE_RAW_CONTEXTS @HAVE_RAW_CONTEXTS@ -#cmakedefine HAVE_BOOST_CONTEXTS @HAVE_BOOST_CONTEXTS@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_ERRNO_H @HAVE_ERRNO_H@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_EXECINFO_H @HAVE_EXECINFO_H@ - -/* Define to 1 if mmalloc is compiled in. */ -#cmakedefine HAVE_MMALLOC @HAVE_MMALLOC@ - -/* Define to 1 if mmap is available */ -#cmakedefine HAVE_MMAP @HAVE_MMAP@ - -/* Define to 1 if process_vm_readv is available */ -#cmakedefine HAVE_PROCESS_VM_READV @HAVE_PROCESS_VM_READV@ - -/* Define to 1 if you have the `getdtablesize' function. */ -#cmakedefine HAVE_GETDTABLESIZE @HAVE_GETDTABLESIZE@ - -/* Define to 1 if you have the `gettimeofday' function. */ -#cmakedefine HAVE_GETTIMEOFDAY @HAVE_GETTIMEOFDAY@ - -/* Define to 1 if you have the `clock_gettime' function. */ -#cmakedefine HAVE_POSIX_GETTIME @HAVE_POSIX_GETTIME@ - -/* Indicates that we have SMPI support */ -#cmakedefine HAVE_SMPI @HAVE_SMPI@ - -/* Indicates that we have SMPI FORTRAN support */ -#cmakedefine SMPI_FORTRAN @SMPI_FORTRAN@ - -/* We have mmap and objdump to handle privatization */ -#cmakedefine HAVE_PRIVATIZATION @HAVE_PRIVATIZATION@ - -/* Indicates that we have NS3 support */ -#cmakedefine HAVE_NS3 @HAVE_NS3@ - -/* defines whether Lua bindings must be compiled or not */ -#cmakedefine HAVE_LUA @HAVE_LUA@ - -/* Define to 1 if you have the `makecontext' function. */ -#cmakedefine HAVE_MAKECONTEXT @HAVE_MAKECONTEXT@ - -/* Define if pthread_mutex_timedlock() is avaible or not (part of XPG6 - standard only?) */ -#cmakedefine HAVE_MUTEX_TIMEDLOCK @HAVE_MUTEX_TIMEDLOCK@ - -/* Define to 1 if you have the `popen' function. */ -#cmakedefine HAVE_POPEN @HAVE_POPEN@ - -/* Define to 1 if threads are usable . */ -#cmakedefine HAVE_PTHREAD @HAVE_PTHREAD@ - -/* Define if sem_init() is avaible or not (part of XPG6 standard only) */ -#cmakedefine HAVE_SEM_INIT @HAVE_SEM_INIT@ - -/* Define if sem_timedwait() is avaible or not (part of XPG6 standard only) */ -#cmakedefine HAVE_SEM_TIMEDWAIT @HAVE_SEM_TIMEDWAIT@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SIGNAL_H @HAVE_SIGNAL_H@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@ - -/* Define to 1 if you have the `sysconf' function. */ -#cmakedefine HAVE_SYSCONF @HAVE_SYSCONF@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_PTRACE_H @HAVE_SYS_PTRACE_H@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_TIME_H @HAVE_SYS_TIME_H@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@ - -/* Define to 1 if you have the `nanosleep' function. */ -#cmakedefine HAVE_NANOSLEEP @HAVE_NANOSLEEP@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_VALGRIND_VALGRIND_H @HAVE_VALGRIND_VALGRIND_H@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_WINDOWS_H @HAVE_WINDOWS_H@ - -/* enable the asprintf replacement */ -#cmakedefine NEED_ASPRINTF @NEED_ASPRINTF@ - -/* enable the vasprintf replacement */ -#cmakedefine NEED_VASPRINTF @NEED_VASPRINTF@ - -/* Name of package */ -#cmakedefine PACKAGE @PACKAGE@ - -/* Define to the address where bug reports for this package should be sent. */ -#cmakedefine PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@ - -/* Define to the full name of this package. */ -#cmakedefine PACKAGE_NAME @PACKAGE_NAME@ - -/* Define to the full name and version of this package. */ -#cmakedefine PACKAGE_STRING @PACKAGE_STRING@ - -/* Define to the one symbol short name of this package. */ -#cmakedefine PACKAGE_TARNAME @PACKAGE_TARNAME@ - -/* Define to the home page for this package. */ -#cmakedefine PACKAGE_URL @PACKAGE_URL@ - -/* Define to the version of this package. */ -#cmakedefine PACKAGE_VERSION @PACKAGE_VERSION@ - -/* define for stack growth */ -#cmakedefine PTH_STACKGROWTH @PTH_STACKGROWTH@ - -/* Define to 1 if you have the ANSI C header files. */ -#cmakedefine STDC_HEADERS @STDC_HEADERS@ - -/* Tracking of latency bound */ -#cmakedefine HAVE_LATENCY_BOUND_TRACKING @HAVE_LATENCY_BOUND_TRACKING@ - -/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a - `char[]'. */ -#cmakedefine YYTEXT_POINTER - -/* Define to `unsigned int' if does not define. */ -#cmakedefine size_t @size_t@ +#include "simgrid_config.h" /* what was compiled in? */ + +/* Non-standard header files */ +#define HAVE_EXECINFO_H @HAVE_EXECINFO_H@ /* */ +#define HAVE_FUTEX_H @HAVE_FUTEX_H@ /* */ +#define HAVE_SIGNAL_H @HAVE_SIGNAL_H@ /* */ +#define HAVE_UNISTD_H @HAVE_UNISTD_H@ /* */ +#define HAVE_UCONTEXT_H @HAVE_UCONTEXT_H@ /* */ +#define HAVE_VALGRIND_H @HAVE_VALGRIND_H@ /* */ + +/* Time portability */ +#define HAVE_GETTIMEOFDAY @HAVE_GETTIMEOFDAY@ /* Function gettimeofday */ +#define HAVE_POSIX_GETTIME @HAVE_POSIX_GETTIME@ /* Function clock_gettime */ +#define HAVE_NANOSLEEP @HAVE_NANOSLEEP@ /* Function nanosleep */ + +/* The usable context factories */ +#define HAVE_BOOST_CONTEXTS @HAVE_BOOST_CONTEXTS@ +#define HAVE_RAW_CONTEXTS @HAVE_RAW_CONTEXTS@ +#define HAVE_THREAD_CONTEXTS @HAVE_THREAD_CONTEXTS@ +#define HAVE_UCONTEXT_CONTEXTS @HAVE_UCONTEXT_CONTEXTS@ + +/* Variables for the thread contexts (and parallel mode of raw contexts) */ +#define HAVE_PTHREAD @HAVE_PTHREAD@ /* Define to 1 if threads are usable . */ +#define HAVE_PTHREAD_SETAFFINITY @HAVE_PTHREAD_SETAFFINITY@ /* Does not seems defined on Mac nor Windows */ +#define HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@ /* If __thread is available */ + +/* Variables for the raw contexts (to select the right assembly code) */ +#define SIMGRID_PROCESSOR_i686 @PROCESSOR_i686@ +#define SIMGRID_PROCESSOR_x86_64 @PROCESSOR_x86_64@ + +/* Variables for the SysV contexts */ +@sg_makecontext_stack_addr@ +@sg_makecontext_stack_size@ + +/* Variable for SysV, raw and Boost contexts */ +#cmakedefine PTH_STACKGROWTH @PTH_STACKGROWTH@ /* Does the stack growth upward, or downward? */ + +/* MC variables */ +#define HAVE_GETDTABLESIZE @HAVE_GETDTABLESIZE@ /* getdtablesize: get descriptor table size */ +#define HAVE_MMALLOC @HAVE_MMALLOC@ /* Did we compile mmalloc in? */ +#define HAVE_PROCESS_VM_READV @HAVE_PROCESS_VM_READV@ /* process_vm_readv: transfer data between process address spaces */ +#define HAVE_MC @HAVE_MC@ /* Set to true if enable_model-checking is true and the dependencies available */ + +/* SMPI variables */ +#define HAVE_SMPI @HAVE_SMPI@ +#define SMPI_FORTRAN @SMPI_FORTRAN@ +#define HAVE_PRIVATIZATION @HAVE_PRIVATIZATION@ /* We have mmap and objdump to handle privatization */ + +/* Make PAPI available? */ +#define HAVE_PAPI @HAVE_PAPI@ + +/* Other function checks */ +#define HAVE_BACKTRACE @HAVE_BACKTRACE@ /* Function backtrace */ +#define HAVE_MMAP @HAVE_MMAP@ /* Function mmap */ +#define HAVE_SEM_INIT @HAVE_SEM_INIT@ /* Function sem_init (part of XPG6 standard only) */ +#define HAVE_POPEN @HAVE_POPEN@ /* Function popen */ +#define HAVE_SYSCONF @HAVE_SYSCONF@ /* Function sysconf */ +#define HAVE_VASPRINTF @HAVE_VASPRINTF@ /* Function vasprintf */ + +/* Other checks */ +#cmakedefine ADDR2LINE "@ADDR2LINE@" /* Path to the addr2line tool */ +#define HAVE_GRAPHVIZ @HAVE_GRAPHVIZ@ /* The graphviz library */ +#define HAVE_LIBUNWIND @HAVE_LIBUNWIND@ /* The lib unwind library (for MC and backtrace display) */ \ No newline at end of file