xref: /netbsd-src/external/gpl3/gcc/dist/libphobos/m4/gdc.m4 (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
1#
2# GDC feature checking and sanity check macros
3#
4
5
6# GDC_CHECK_COMPILE
7# -----------------
8# Check if compiler can compile D code
9AC_DEFUN([GDC_CHECK_COMPILE],
10[
11  AC_LANG_PUSH(D)
12    AC_MSG_CHECKING([[If $GDC can compile D sources]])
13    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[return 0;]])],
14      [AC_MSG_RESULT([[yes]])],
15      [AC_MSG_RESULT([[no]])
16       AC_MSG_ERROR([[can't compile D sources!]])])
17  AC_LANG_POP(D)
18])
19