Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
5b9912fee5adbe119e28ca23fff698bc1043aedf
[simgrid.git] / buildtools / Cmake / PrintArgs.cmake
1 if(enable_print_message)
2         message("")
3         message("________________________________________________________________________________")
4         message("________________________________________________________________________________ DEBUG")
5         message("CMAKE_HOME_DIRECTORY : ${CMAKE_HOME_DIRECTORY}")
6         message("")
7         message("SIZEOF_MAX :                   ${SIZEOF_MAX}")
8         message("PTH_STACKGROWTH                ${PTH_STACKGROWTH}")
9         message("need_getline                   ${need_getline}")
10         message("need_asprintf                  ${simgrid_need_asprintf}")
11         message("need_vasprintf                 ${simgrid_need_vasprintf}")
12         message("PREFER_PORTABLE_SNPRINTF       ${PREFER_PORTABLE_SNPRINTF}")
13         message("HAVE_VA_COPY                   ${HAVE_VA_COPY}")
14         message("GRAS_BIGENDIAN                 ${GRAS_BIGENDIAN}")
15         message("GRAS_ARCH val                  ${val_big}")
16         message("GRAS_ARCH_32_BITS              ${GRAS_ARCH_32_BITS}")
17         message("PRINTF_NULL_WORKING            ${PRINTF_NULL_WORKING}")
18         message("")
19         message("\#define pth_skaddr_makecontext(skaddr,sksize) (${makecontext_addr})")
20         message("\#define pth_sksize_makecontext(skaddr,sksize) (${makecontext_size})")
21         message("\#define __VA_COPY_USE         ${__VA_COPY_USE}")
22         message("mcsc                           ${mcsc}")
23         message("")
24         message("HAVE_PTHREAD_CREATE            ${pthread}")
25         message("HAVE_SEM_INIT                  ${HAVE_SEM_INIT_LIB}")
26         message("HAVE_SEM_TIMEDWAIT             ${HAVE_SEM_TIMEDWAIT_LIB}")
27         message("HAVE_MUTEX_TIMEDLOCK           ${HAVE_MUTEX_TIMEDLOCK_LIB}")
28         message("HAVE_POSIX_GETTIME             ${HAVE_POSIX_GETTIME}")
29         message("")
30         message("TIME_WITH_SYS_TIME             ${TIME_WITH_SYS_TIME}")
31         message("STDC_HEADERS                   ${STDC_HEADERS}")
32         message("HAVE_PTHREAD_H                 ${HAVE_PTHREAD_H}")
33         message("HAVE_VALGRIND_VALGRIND_H       ${HAVE_VALGRIND_VALGRIND_H}")
34         message("HAVE_SOCKET_H                  ${HAVE_SOCKET_H}")
35         message("HAVE_SYS_SOCKET_H              ${HAVE_SYS_SOCKET_H}")
36         message("HAVE_STAT_H                    ${HAVE_STAT_H}")
37         message("HAVE_SYS_STAT_H                ${HAVE_SYS_STAT_H}")
38         message("HAVE_WINDOWS_H                 ${HAVE_WINDOWS_H}")
39         message("HAVE_WINSOCK_H                     ${HAVE_WINSOCK_H}")
40         message("HAVE_WINSOCK2_H                ${HAVE_WINSOCK2_H}")
41         message("HAVE_ERRNO_H                   ${HAVE_ERRNO_H}")
42         message("HAVE_UNISTD_H                  ${HAVE_UNISTD_H}")
43         message("HAVE_EXECINFO_H                ${HAVE_EXECINFO_H}")
44         message("HAVE_SIGNAL_H                  ${HAVE_SIGNAL_H}")
45         message("HAVE_SYS_TIME_H                ${HAVE_SYS_TIME_H}")
46         message("HAVE_TIME_H                    ${HAVE_TIME_H}")
47         message("HAVE_DLFCN_H                   ${HAVE_DLFCN_H}")
48         message("HAVE_INTTYPES_H                        ${HAVE_INTTYPES_H}")
49         message("HAVE_MEMORY_H                  ${HAVE_MEMORY_H}")
50         message("HAVE_STDLIB_H                  ${HAVE_STDLIB_H}")
51         message("HAVE_STRINGS_H                 ${HAVE_STRINGS_H}")
52         message("HAVE_STRING_H                  ${HAVE_STRING_H}")
53         message("HAVE_STDIO_H           ${HAVE_STDIO_H}")
54
55         message("")
56         message("HAVE_GETTIMEOFDAY              ${HAVE_GETTIMEOFDAY}")
57         message("HAVE_USLEEP                    ${HAVE_USLEEP}")
58         message("HAVE_GETDTABLESIZE             ${HAVE_GETDTABLESIZE}")
59         message("HAVE_SYSCONF                   ${HAVE_SYSCONF}")
60         message("HAVE_READV                     ${HAVE_READV}")
61         message("HAVE_POPEN                     ${HAVE_POPEN}")
62         message("HAVE_SIGNAL                    ${HAVE_SIGNAL}")
63         message("HAVE_MAKECONTEXT               ${HAVE_MAKECONTEXT}")
64         message("HAVE_SNPRINTF                  ${HAVE_SNPRINTF}")
65         message("HAVE_VSNPRINTF                 ${HAVE_VSNPRINTF}")
66         message("HAVE_ASPRINTF                  ${HAVE_ASPRINTF}")
67         message("HAVE_VASPRINTF                 ${HAVE_VASPRINTF}")
68         message("HAVE_MMAP                      ${HAVE_MMAP}")
69         message("")
70         message("CONTEXT_THREADS                ${CONTEXT_THREADS}")
71         message("CONTEXT_UCONTEXT       ${CONTEXT_UCONTEXT}")
72         message("________________________________________________________________________________")
73         message("________________________________________________________________________________ DEBUG END")
74         message("")
75 endif(enable_print_message)
76
77 message("\nConfiguration of package `simgrid' on arch (=${GRAS_THISARCH}):")
78 message("            BUILDNAME :        ${BUILDNAME}")
79 message("            SITE      :        ${SITE}")
80 message("            Release   :        simgrid-${release_version}")
81 message("")
82 message("        Compiler: c++ :        ${CMAKE_CXX_COMPILER}")
83 message("               version:        ${COMPILER_CXX_VERSION}")
84 message("        Compiler: c   :        ${CMAKE_C_COMPILER}")
85 message("               version:        ${COMPILER_C_VERSION}")
86 message("")
87 message("              CFlags  :        ${CMAKE_C_FLAGS}")      
88 message("              CPPFlags:        ${CMAKE_CXX_FLAGS}")
89 message("")
90 if(NOT APPLE AND NOT WIN32)
91 message("       Compile Gtnets :        ${HAVE_GTNETS}")
92 message("       Compile NS-3   :        ${HAVE_NS3}")
93 message("       Gtnets path    :        ${gtnets_path}")
94 message("       NS-3 path      :        ${ns3_path}")
95 endif(NOT APPLE AND NOT WIN32)
96 message("       Compile Lua    :        ${HAVE_LUA}")
97 message("       Compile Smpi   :        ${enable_smpi}")
98 message("       Compile Static :        ${enable_lib_static}")
99 message("")
100 message("       Maintainer mode:        ${enable_maintainer_mode}")
101 message("       Supernovae mode:        ${enable_supernovae}")
102 message("       Model checking :        ${enable_model-checking}")
103 message("       Tracing mode   :        ${enable_tracing}")
104 message("       Jedule  mode   :        ${enable_jedule}")
105 message("       Latency bound  :        ${enable_latency_bound_tracking}")
106 message("        Graphviz mode  :        ${HAVE_GRAPHVIZ}")
107 message("")
108 message("       Simgrid dependencies:   ${SIMGRID_DEP}")
109 message("       Gras dependencies   :   ${GRAS_DEP}")
110 message("       Smpi dependencies   :   ${SMPI_DEP}")
111 message("")
112 message("       INSTALL_PREFIX:         ${CMAKE_INSTALL_PREFIX}")
113
114 exec_program("${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/Testing/Notes/" OUTPUT_VARIABLE OKIDOKI)
115 file(WRITE ${PROJECT_BINARY_DIR}/Testing/Notes/Build  "SVN version : ${SVN_VERSION}\n")
116 file(APPEND ${PROJECT_BINARY_DIR}/Testing/Notes/Build "Release     : simgrid-${release_version}\n")
117 file(APPEND ${PROJECT_BINARY_DIR}/Testing/Notes/Build "Pipol user  : $ENV{PIPOL_USER}\n")
118 file(APPEND ${PROJECT_BINARY_DIR}/Testing/Notes/Build "Pipol image : $ENV{PIPOL_IMAGE}\n")
119