-dnl Here is the check for libintl etc.
-
-AC_ARG_ENABLE(nls,
- [ --disable-nls do not use Native Language Support],
- ok_nls=no, ok_nls=yes)
-
-if test "$ok_nls" != "no"; then
- AC_MSG_RESULT(Checking for per-thread NLS support...)
- AC_TRY_RUN([
- #define _GNU_SOURCE
- #include <libintl.h>
- #include <locale.h>
- #include <time.h>
- main() {
- char *foo = NULL;
- char baz[32];
- struct tm *tm;
- uselocale(LC_GLOBAL_LOCALE);
- foo = gettext("bar");
- if (0) {
- strftime_l(baz, sizeof baz, "%c", tm, LC_GLOBAL_LOCALE);
- }
- exit(0);
- }
- ],
- ok_uselocale=yes,
- ok_uselocale=no
- )
- ok_nls=$ok_uselocale
-fi
+dnl dnl Here is the check for libintl etc.
+dnl
+dnl AC_DEFINE([ENABLE_NLS],
+dnl [ --disable-nls do not use Native Language Support],
+dnl ok_nls=no, ok_nls=yes)
+dnl
+dnl if test "$ok_nls" != "no"; then
+dnl AC_MSG_RESULT(Checking for per-thread NLS support...)
+dnl AC_TRY_RUN([
+dnl #define _GNU_SOURCE
+dnl #include <libintl.h>
+dnl #include <locale.h>
+dnl #include <time.h>
+dnl main() {
+dnl char *foo = NULL;
+dnl char baz[32];
+dnl struct tm *tm;
+dnl uselocale(LC_GLOBAL_LOCALE);
+dnl foo = gettext("bar");
+dnl if (0) {
+dnl strftime_l(baz, sizeof baz, "%c", tm, LC_GLOBAL_LOCALE);
+dnl }
+dnl exit(0);
+dnl }
+dnl ],
+dnl ok_uselocale=yes,
+dnl ok_uselocale=no
+dnl )
+dnl ok_nls=$ok_uselocale
+dnl fi
+dnl
+dnl if test "$ok_nls" != "no"; then
+dnl AC_CHECK_PROG(ok_xgettext, xgettext, yes, no)
+dnl ok_nls=$ok_xgettext
+dnl fi
+dnl
+dnl if test "$ok_nls" != "no"; then
+dnl AC_CHECK_PROG(ok_msgmerge, msgmerge, yes, no)
+dnl ok_nls=$ok_msgmerge
+dnl fi
+dnl
+dnl if test "$ok_nls" != "no"; then
+dnl AC_CHECK_PROG(ok_msgfmt, msgfmt, yes, no)
+dnl ok_nls=$ok_msgfmt
+dnl fi
+dnl
+dnl if test "$ok_nls" != "no"; then
+dnl AC_MSG_RESULT(WebCit will be built with national language support.)
+dnl AC_DEFINE(ENABLE_NLS)
+dnl CFLAGS="$CFLAGS -I\$(top_srcdir)/po"
+dnl PROG_SUBDIRS="$PROG_SUBDIRS po"
+dnl AC_CHECK_LIB(intl, gettext)
+dnl else
+dnl AC_MSG_RESULT(WebCit will be built without national language support.)
+dnl fi
+dnl Checks for programs.
+AM_GNU_GETTEXT_VERSION([0.14.5])