Skip to content

Commit aa903e3

Browse files
committed
Making the c++11 chrono usage more robust and making c++11 default
1 parent 0272527 commit aa903e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/configure.ac

+2-3
Original file line numberDiff line numberDiff line change
@@ -777,14 +777,13 @@ then
777777
fi
778778

779779

780-
if test "x${enable_cpp11}" @= "xno"
780+
if test "x${enable_cpp11}" != "xno"
781781
then
782782
CPPFLAGS="${CPPFLAGS} -std=c++11"
783783
NVFLAGS="${NVFLAGS} -std=c++11"
784784
fi
785785

786-
AC_CHECK_HEADERS([chrono],[],[AC_MSG_ERROR([chrono header isn't working])])
787-
AC_DEFINE([USE_STEADY_CLOCK], [1], [Using chrono's steady_clock])
786+
AC_CHECK_HEADERS([chrono],[AC_DEFINE([USE_STEADY_CLOCK], [1], [Using chrono's steady_clock])],[])
788787

789788

790789
if test "x${CONF_CPPFLAGS}" == "x"

0 commit comments

Comments
 (0)