Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / m4 / csharpcomp.m4
blobfc6edcc57522a0731365c4bd0a4ed67ccae66e6e
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])
14   HAVE_CSHARPCOMP=1
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
25     case "$impl" in
26       pnet)
27         if test -n "$HAVE_CSCC_IN_PATH" \
28            && cscc --version >/dev/null 2>/dev/null; then
29           HAVE_CSCC=1
30           ac_result="cscc"
31           break
32         fi
33         ;;
34       mono)
35         if test -n "$HAVE_MCS_IN_PATH" \
36            && mcs --version >/dev/null 2>/dev/null; then
37           HAVE_MCS=1
38           ac_result="mcs"
39           break
40         fi
41         ;;
42       sscli)
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
46           HAVE_CSC=1
47           ac_result="csc"
48           break
49         fi
50         ;;
51       no)
52         HAVE_CSHARPCOMP=
53         ac_result="no"
54         break
55         ;;
56     esac
57   done
58   AC_MSG_RESULT([$ac_result])
59   AC_SUBST(HAVE_CSCC)
60   AC_SUBST(HAVE_MCS)
61   AC_SUBST(HAVE_CSC)