aboutsummaryrefslogtreecommitdiff
path: root/libphobos/m4/gdc.m4
blob: 1ba8834975a721159aefe57bdc58206635d4a58c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# GDC feature checking and sanity check macros
#


# GDC_CHECK_COMPILE
# -----------------
# Check if compiler can compile D code
AC_DEFUN([GDC_CHECK_COMPILE],
[
  AC_LANG_PUSH(D)
    AC_MSG_CHECKING([[If $GDC can compile D sources]])
    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[return 0;]])],
      [AC_MSG_RESULT([[yes]])],
      [AC_MSG_RESULT([[no]])
       AC_MSG_ERROR([[can't compile D sources!]])])
  AC_LANG_POP(D)
])