The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

15 lines
454 B

# MODERN_CXX
# ----------
# Check whether the C++ compiler supports enough of C++11.
AC_DEFUN([MODERN_CXX],
[AC_CACHE_CHECK([whether enough of C++11 is supported],
[ac_cv_have_modern_cxx],
[AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
class Myclass { explicit operator bool() const { return true; } };
int main() {
void *p = nullptr;
}]])], [ac_cv_have_modern_cxx=yes], [ac_cv_have_modern_cxx=no])
AC_LANG_POP([C++])])dnl
])# MODERN_CXX