1 # csharpcomp.m4 serial 4 (gettext-0.14.2)
2 dnl Copyright (C) 2003-2005 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 # Prerequisites of csharpcomp.sh.
8 # Sets HAVE_CSHARPCOMP to nonempty if csharpcomp.sh will work.
10 AC_DEFUN([gt_CSHARPCOMP],
12 AC_REQUIRE([gt_CSHARP_CHOICE])
13 AC_MSG_CHECKING([for C[#] compiler])
15 pushdef([AC_MSG_CHECKING],[:])dnl
16 pushdef([AC_CHECKING],[:])dnl
17 pushdef([AC_MSG_RESULT],[:])dnl
18 AC_CHECK_PROG(HAVE_CSCC_IN_PATH, cscc, yes)
19 AC_CHECK_PROG(HAVE_MCS_IN_PATH, mcs, yes)
20 AC_CHECK_PROG(HAVE_CSC_IN_PATH, csc, yes)
21 popdef([AC_MSG_RESULT])dnl
22 popdef([AC_CHECKING])dnl
23 popdef([AC_MSG_CHECKING])dnl
24 for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
27 if test -n "$HAVE_CSCC_IN_PATH" \
28 && cscc --version >/dev/null 2>/dev/null; then
35 if test -n "$HAVE_MCS_IN_PATH" \
36 && mcs --version >/dev/null 2>/dev/null; then
43 if test -n "$HAVE_CSC_IN_PATH" \
44 && csc -help >/dev/null 2>/dev/null \
45 && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
58 AC_MSG_RESULT([$ac_result])