diff options
Diffstat (limited to 'lib/make/aclocal.m4')
-rw-r--r-- | lib/make/aclocal.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/make/aclocal.m4 b/lib/make/aclocal.m4 index 56a6aecf..03f79e7a 100644 --- a/lib/make/aclocal.m4 +++ b/lib/make/aclocal.m4 @@ -1031,3 +1031,20 @@ case $cctk_cv_cxx_func in AC_DEFINE_UNQUOTED(HAVE_CCTK_CXX_$cctk_tr_func, 1) ;; esac ]) + + + +AC_DEFUN(CCTK_CHECK_C99, +[AC_CACHE_CHECK([for C99 features], cctk_cv_have_c99, +[cctk_cv_have_c99=no +AC_TRY_COMPILE(, +// Test C99 comments +// Test variable declarations in the middle of blocks +0; +int x; +, cctk_cv_have_c99=yes, cctk_cv_have_c99=no) +]) +if test "$cctk_cv_have_c99" = "yes" ; then + AC_DEFINE(HAVE_CCTK_C99) +fi +]) |