Logo AND Algorithmique Numérique Distribuée

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