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