소스 검색

Fix testing for need for std=c++11 for simgrid

Samuel Thibault 8 년 전
부모
커밋
6ecce4424d
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      configure.ac

+ 4 - 0
configure.ac

@@ -1100,8 +1100,12 @@ if test x$enable_simgrid = xyes ; then
 	# Simgrid 3.12 & 3.13 need -std=c++11 to be able to build anything in C++...
 	AC_LANG_PUSH([C++])
 	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+			  #ifdef HAVE_SIMGRID_MSG_H
 			  #include <simgrid/msg.h>
 			  #include <simgrid/host.h>
+			  #else
+			  #include <msg/msg.h>
+			  #endif
 			  ]]),],,
 			  CXXFLAGS="-std=c++11 $CXXFLAGS"
 			  NVCCFLAGS="-std=c++11 $NVCCFLAGS")