2a43bd305a
These files are shamelessly ripped from dune-common/m4 (e28ca3)
18 lines
488 B
Plaintext
18 lines
488 B
Plaintext
AC_DEFUN([NULLPTR_CHECK],[
|
|
AC_CACHE_CHECK([whether nullptr is supported], dune_cv_nullptr_support, [
|
|
AC_REQUIRE([AC_PROG_CXX])
|
|
AC_REQUIRE([GXX0X])
|
|
AC_LANG_PUSH([C++])
|
|
AC_TRY_COMPILE([],[
|
|
char* ch = nullptr;
|
|
if(ch!=nullptr) { ; }
|
|
],
|
|
dune_cv_nullptr_support=yes,
|
|
dune_cv_nullptr_support=no)
|
|
AC_LANG_POP
|
|
])
|
|
if test "x$dune_cv_nullptr_support" = xyes; then
|
|
AC_DEFINE(HAVE_NULLPTR, 1, [Define to 1 if nullptr is supported])
|
|
fi
|
|
])
|