1dnl Example for use of GNU gettext.
2dnl Copyright (C) 2003, 2005 Free Software Foundation, Inc.
3dnl This file is in the public domain.
4dnl
5dnl Configuration file - processed by autoconf.
6
7AC_INIT
8AC_CONFIG_SRCDIR(hello.cs)
9AM_INIT_AUTOMAKE(hello-csharp, 0)
10
11dnl Check whether we can build C# programs at all.
12gt_CSHARPCOMP
13if test -n "$HAVE_CSHARPCOMP"; then
14  BUILDCSHARP=yes
15else
16  BUILDCSHARP=no
17fi
18AC_SUBST(BUILDCSHARP)
19
20dnl Check whether we can execute C# programs.
21gt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4])
22if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
23  TESTCSHARP=yes
24else
25  TESTCSHARP=no
26fi
27AC_SUBST(TESTCSHARP)
28
29dnl Checks for needed libraries.
30AM_PATH_PROG_WITH_TEST([GETTEXT_WITH_GNU_GETTEXT_DLL], [gettext],
31  [{ basedir=`echo "$ac_dir" | sed -e 's,/bin$,,'`; test -r "$basedir"/lib/GNU.Gettext.dll; }])
32if test -z "$GETTEXT_WITH_GNU_GETTEXT_DLL"; then
33  echo "Required library GNU.Gettext.dll not found." 1>&2
34  exit 1
35fi
36changequote(,)dnl
37basedir=`echo "$GETTEXT_WITH_GNU_GETTEXT_DLL" | sed -e 's,/[^/]*$,,' | sed -e 's,/bin$,,'`
38changequote([, ])dnl
39GNU_GETTEXT_DLL="$basedir"/lib/GNU.Gettext.dll
40GNU_GETTEXT_LDADD="-L $basedir/lib"
41GNU_GETTEXT_LIBS="-l GNU.Gettext"
42AC_SUBST([GNU_GETTEXT_LDADD])
43AC_SUBST([GNU_GETTEXT_LIBS])
44
45dnl Support for the po directory.
46AM_PO_SUBDIRS
47
48AC_CONFIG_FILES([Makefile])
49AC_CONFIG_FILES([csharpcomp.sh])
50AC_CONFIG_FILES([csharpexec.sh])
51AC_CONFIG_FILES([m4/Makefile])
52AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
53AC_OUTPUT
54