mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-08 03:45:49 +01:00
acinclude.m4 removed the --disable-nls option. You can't disable Native
2002-01-16 Sven Neumann <sven@gimp.org> * acinclude.m4 * m4macros/glib-gettext.m4: removed the --disable-nls option. You can't disable Native Language Support since we rely on it. * configure.in: nicer --help output.
This commit is contained in:
parent
a1f5b005fa
commit
a1ebb7048f
@ -1,3 +1,11 @@
|
|||||||
|
2002-01-16 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* acinclude.m4
|
||||||
|
* m4macros/glib-gettext.m4: removed the --disable-nls option. You
|
||||||
|
can't disable Native Language Support since we rely on it.
|
||||||
|
|
||||||
|
* configure.in: nicer --help output.
|
||||||
|
|
||||||
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2002-01-16 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* acinclude.m4
|
||||||
|
* m4macros/glib-gettext.m4: removed the --disable-nls option. You
|
||||||
|
can't disable Native Language Support since we rely on it.
|
||||||
|
|
||||||
|
* configure.in: nicer --help output.
|
||||||
|
|
||||||
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2002-01-16 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* acinclude.m4
|
||||||
|
* m4macros/glib-gettext.m4: removed the --disable-nls option. You
|
||||||
|
can't disable Native Language Support since we rely on it.
|
||||||
|
|
||||||
|
* configure.in: nicer --help output.
|
||||||
|
|
||||||
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2002-01-16 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* acinclude.m4
|
||||||
|
* m4macros/glib-gettext.m4: removed the --disable-nls option. You
|
||||||
|
can't disable Native Language Support since we rely on it.
|
||||||
|
|
||||||
|
* configure.in: nicer --help output.
|
||||||
|
|
||||||
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2002-01-16 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* acinclude.m4
|
||||||
|
* m4macros/glib-gettext.m4: removed the --disable-nls option. You
|
||||||
|
can't disable Native Language Support since we rely on it.
|
||||||
|
|
||||||
|
* configure.in: nicer --help output.
|
||||||
|
|
||||||
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2002-01-16 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* acinclude.m4
|
||||||
|
* m4macros/glib-gettext.m4: removed the --disable-nls option. You
|
||||||
|
can't disable Native Language Support since we rely on it.
|
||||||
|
|
||||||
|
* configure.in: nicer --help output.
|
||||||
|
|
||||||
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2002-01-16 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* acinclude.m4
|
||||||
|
* m4macros/glib-gettext.m4: removed the --disable-nls option. You
|
||||||
|
can't disable Native Language Support since we rely on it.
|
||||||
|
|
||||||
|
* configure.in: nicer --help output.
|
||||||
|
|
||||||
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2002-01-16 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* acinclude.m4
|
||||||
|
* m4macros/glib-gettext.m4: removed the --disable-nls option. You
|
||||||
|
can't disable Native Language Support since we rely on it.
|
||||||
|
|
||||||
|
* configure.in: nicer --help output.
|
||||||
|
|
||||||
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Jan 8 11:33:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
|
||||||
|
173
acinclude.m4
173
acinclude.m4
@ -20,111 +20,102 @@
|
|||||||
# serial 5
|
# serial 5
|
||||||
|
|
||||||
AC_DEFUN(AM_GLIB_WITH_NLS,
|
AC_DEFUN(AM_GLIB_WITH_NLS,
|
||||||
[AC_MSG_CHECKING([whether NLS is requested])
|
dnl NLS is obligatory
|
||||||
dnl Default is enabled NLS
|
[USE_NLS=yes
|
||||||
AC_ARG_ENABLE(nls,
|
|
||||||
[ --disable-nls do not use Native Language Support],
|
|
||||||
USE_NLS=$enableval, USE_NLS=yes)
|
|
||||||
AC_MSG_RESULT($USE_NLS)
|
|
||||||
AC_SUBST(USE_NLS)
|
AC_SUBST(USE_NLS)
|
||||||
|
|
||||||
USE_INCLUDED_LIBINTL=no
|
dnl Figure out what method
|
||||||
|
nls_cv_force_use_gnu_gettext="no"
|
||||||
|
|
||||||
dnl If we use NLS figure out what method
|
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
||||||
if test "$USE_NLS" = "yes"; then
|
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
||||||
nls_cv_force_use_gnu_gettext="no"
|
dnl User does not insist on using GNU NLS library. Figure out what
|
||||||
|
dnl to use. If gettext or catgets are available (in this order) we
|
||||||
|
dnl use this. Else we have to fall back to GNU NLS library.
|
||||||
|
dnl catgets is only used if permitted by option --with-catgets.
|
||||||
|
nls_cv_header_intl=
|
||||||
|
nls_cv_header_libgt=
|
||||||
|
CATOBJEXT=NONE
|
||||||
|
|
||||||
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
AC_CHECK_HEADER(libintl.h,
|
||||||
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
[AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
|
||||||
dnl User does not insist on using GNU NLS library. Figure out what
|
[AC_TRY_LINK([#include <libintl.h>], [return (int) dgettext ("","")],
|
||||||
dnl to use. If gettext or catgets are available (in this order) we
|
gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no)])
|
||||||
dnl use this. Else we have to fall back to GNU NLS library.
|
|
||||||
dnl catgets is only used if permitted by option --with-catgets.
|
|
||||||
nls_cv_header_intl=
|
|
||||||
nls_cv_header_libgt=
|
|
||||||
CATOBJEXT=NONE
|
|
||||||
|
|
||||||
AC_CHECK_HEADER(libintl.h,
|
if test "$gt_cv_func_dgettext_libc" != "yes"; then
|
||||||
[AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
|
AC_CHECK_LIB(intl, bindtextdomain,
|
||||||
[AC_TRY_LINK([#include <libintl.h>], [return (int) dgettext ("","")],
|
[AC_CACHE_CHECK([for dgettext in libintl],
|
||||||
gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no)])
|
gt_cv_func_dgettext_libintl,
|
||||||
|
[AC_CHECK_LIB(intl, dgettext,
|
||||||
if test "$gt_cv_func_dgettext_libc" != "yes"; then
|
|
||||||
AC_CHECK_LIB(intl, bindtextdomain,
|
|
||||||
[AC_CACHE_CHECK([for dgettext in libintl],
|
|
||||||
gt_cv_func_dgettext_libintl,
|
|
||||||
[AC_CHECK_LIB(intl, dgettext,
|
|
||||||
gt_cv_func_dgettext_libintl=yes,
|
gt_cv_func_dgettext_libintl=yes,
|
||||||
gt_cv_func_dgettext_libintl=no)],
|
gt_cv_func_dgettext_libintl=no)],
|
||||||
gt_cv_func_dgettext_libintl=no)])
|
gt_cv_func_dgettext_libintl=no)])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
||||||
LIBS="$LIBS -lintl";
|
LIBS="$LIBS -lintl";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$gt_cv_func_dgettext_libc" = "yes" \
|
if test "$gt_cv_func_dgettext_libc" = "yes" \
|
||||||
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
||||||
AC_DEFINE(HAVE_GETTEXT)
|
AC_DEFINE(HAVE_GETTEXT)
|
||||||
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
||||||
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
|
||||||
if test "$MSGFMT" != "no"; then
|
if test "$MSGFMT" != "no"; then
|
||||||
AC_CHECK_FUNCS(dcgettext)
|
AC_CHECK_FUNCS(dcgettext)
|
||||||
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
||||||
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
||||||
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
||||||
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
|
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
|
||||||
return _nl_msg_cat_cntr],
|
return _nl_msg_cat_cntr],
|
||||||
[CATOBJEXT=.gmo
|
[CATOBJEXT=.gmo
|
||||||
DATADIRNAME=share],
|
DATADIRNAME=share],
|
||||||
[CATOBJEXT=.mo
|
[CATOBJEXT=.mo
|
||||||
DATADIRNAME=lib])
|
DATADIRNAME=lib])
|
||||||
INSTOBJEXT=.mo
|
INSTOBJEXT=.mo
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Added by Martin Baulig 12/15/98 for libc5 systems
|
# Added by Martin Baulig 12/15/98 for libc5 systems
|
||||||
if test "$gt_cv_func_dgettext_libc" != "yes" \
|
if test "$gt_cv_func_dgettext_libc" != "yes" \
|
||||||
&& test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
&& test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
||||||
INTLLIBS=-lintl
|
INTLLIBS=-lintl
|
||||||
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
if test "$CATOBJEXT" = "NONE"; then
|
if test "$CATOBJEXT" = "NONE"; then
|
||||||
dnl Neither gettext nor catgets in included in the C library.
|
dnl Neither gettext nor catgets in included in the C library.
|
||||||
dnl Fall back on GNU gettext library.
|
dnl Fall back on GNU gettext library.
|
||||||
nls_cv_use_gnu_gettext=yes
|
nls_cv_use_gnu_gettext=yes
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$nls_cv_use_gnu_gettext" != "yes"; then
|
|
||||||
AC_DEFINE(ENABLE_NLS)
|
|
||||||
else
|
|
||||||
dnl Unset this variable since we use the non-zero value as a flag.
|
|
||||||
CATOBJEXT=
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Test whether we really found GNU xgettext.
|
|
||||||
if test "$XGETTEXT" != ":"; then
|
|
||||||
dnl If it is no GNU xgettext we define it as : so that the
|
|
||||||
dnl Makefiles still can work.
|
|
||||||
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|
||||||
: ;
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(
|
|
||||||
[found xgettext program is not GNU xgettext; ignore it])
|
|
||||||
XGETTEXT=":"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We need to process the po/ directory.
|
|
||||||
POSUB=po
|
|
||||||
else
|
|
||||||
DATADIRNAME=share
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$nls_cv_use_gnu_gettext" != "yes"; then
|
||||||
|
AC_DEFINE(ENABLE_NLS)
|
||||||
|
else
|
||||||
|
dnl Unset this variable since we use the non-zero value as a flag.
|
||||||
|
CATOBJEXT=
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl Test whether we really found GNU xgettext.
|
||||||
|
if test "$XGETTEXT" != ":"; then
|
||||||
|
dnl If it is no GNU xgettext we define it as : so that the
|
||||||
|
dnl Makefiles still can work.
|
||||||
|
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
||||||
|
: ;
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(
|
||||||
|
[found xgettext program is not GNU xgettext; ignore it])
|
||||||
|
XGETTEXT=":"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# We need to process the po/ directory.
|
||||||
|
POSUB=po
|
||||||
|
|
||||||
AC_OUTPUT_COMMANDS(
|
AC_OUTPUT_COMMANDS(
|
||||||
[case "$CONFIG_FILES" in *po/Makefile.in*)
|
[case "$CONFIG_FILES" in *po/Makefile.in*)
|
||||||
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
|
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
|
||||||
esac])
|
esac])
|
||||||
|
|
||||||
@ -137,7 +128,6 @@ AC_DEFUN(AM_GLIB_WITH_NLS,
|
|||||||
done
|
done
|
||||||
|
|
||||||
dnl Make all variables we use known to autoconf.
|
dnl Make all variables we use known to autoconf.
|
||||||
AC_SUBST(USE_INCLUDED_LIBINTL)
|
|
||||||
AC_SUBST(CATALOGS)
|
AC_SUBST(CATALOGS)
|
||||||
AC_SUBST(CATOBJEXT)
|
AC_SUBST(CATOBJEXT)
|
||||||
AC_SUBST(DATADIRNAME)
|
AC_SUBST(DATADIRNAME)
|
||||||
@ -235,6 +225,7 @@ strdup __argz_count __argz_stringify __argz_next])
|
|||||||
< $srcdir/po/POTFILES.in > po/POTFILES
|
< $srcdir/po/POTFILES.in > po/POTFILES
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl @synopsis AC_FUNC_VSNPRINTF_C99
|
dnl @synopsis AC_FUNC_VSNPRINTF_C99
|
||||||
dnl
|
dnl
|
||||||
dnl Check whether there is a vsnprintf() function with C99 semantics installed.
|
dnl Check whether there is a vsnprintf() function with C99 semantics installed.
|
||||||
|
@ -1512,7 +1512,7 @@ dnl ***********************
|
|||||||
dnl *** Tests for iconv ***
|
dnl *** Tests for iconv ***
|
||||||
dnl ***********************
|
dnl ***********************
|
||||||
|
|
||||||
AC_ARG_WITH(libiconv, [ --with-libiconv Use the libiconv library ],,with_libiconv=maybe)
|
AC_ARG_WITH(libiconv, [ --with-libiconv use the libiconv library ],,with_libiconv=maybe)
|
||||||
|
|
||||||
found_iconv=no
|
found_iconv=no
|
||||||
|
|
||||||
|
@ -20,111 +20,102 @@
|
|||||||
# serial 5
|
# serial 5
|
||||||
|
|
||||||
AC_DEFUN(AM_GLIB_WITH_NLS,
|
AC_DEFUN(AM_GLIB_WITH_NLS,
|
||||||
[AC_MSG_CHECKING([whether NLS is requested])
|
dnl NLS is obligatory
|
||||||
dnl Default is enabled NLS
|
[USE_NLS=yes
|
||||||
AC_ARG_ENABLE(nls,
|
|
||||||
[ --disable-nls do not use Native Language Support],
|
|
||||||
USE_NLS=$enableval, USE_NLS=yes)
|
|
||||||
AC_MSG_RESULT($USE_NLS)
|
|
||||||
AC_SUBST(USE_NLS)
|
AC_SUBST(USE_NLS)
|
||||||
|
|
||||||
USE_INCLUDED_LIBINTL=no
|
dnl Figure out what method
|
||||||
|
nls_cv_force_use_gnu_gettext="no"
|
||||||
|
|
||||||
dnl If we use NLS figure out what method
|
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
||||||
if test "$USE_NLS" = "yes"; then
|
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
||||||
nls_cv_force_use_gnu_gettext="no"
|
dnl User does not insist on using GNU NLS library. Figure out what
|
||||||
|
dnl to use. If gettext or catgets are available (in this order) we
|
||||||
|
dnl use this. Else we have to fall back to GNU NLS library.
|
||||||
|
dnl catgets is only used if permitted by option --with-catgets.
|
||||||
|
nls_cv_header_intl=
|
||||||
|
nls_cv_header_libgt=
|
||||||
|
CATOBJEXT=NONE
|
||||||
|
|
||||||
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
AC_CHECK_HEADER(libintl.h,
|
||||||
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
[AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
|
||||||
dnl User does not insist on using GNU NLS library. Figure out what
|
[AC_TRY_LINK([#include <libintl.h>], [return (int) dgettext ("","")],
|
||||||
dnl to use. If gettext or catgets are available (in this order) we
|
gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no)])
|
||||||
dnl use this. Else we have to fall back to GNU NLS library.
|
|
||||||
dnl catgets is only used if permitted by option --with-catgets.
|
|
||||||
nls_cv_header_intl=
|
|
||||||
nls_cv_header_libgt=
|
|
||||||
CATOBJEXT=NONE
|
|
||||||
|
|
||||||
AC_CHECK_HEADER(libintl.h,
|
if test "$gt_cv_func_dgettext_libc" != "yes"; then
|
||||||
[AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
|
AC_CHECK_LIB(intl, bindtextdomain,
|
||||||
[AC_TRY_LINK([#include <libintl.h>], [return (int) dgettext ("","")],
|
[AC_CACHE_CHECK([for dgettext in libintl],
|
||||||
gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no)])
|
gt_cv_func_dgettext_libintl,
|
||||||
|
[AC_CHECK_LIB(intl, dgettext,
|
||||||
if test "$gt_cv_func_dgettext_libc" != "yes"; then
|
|
||||||
AC_CHECK_LIB(intl, bindtextdomain,
|
|
||||||
[AC_CACHE_CHECK([for dgettext in libintl],
|
|
||||||
gt_cv_func_dgettext_libintl,
|
|
||||||
[AC_CHECK_LIB(intl, dgettext,
|
|
||||||
gt_cv_func_dgettext_libintl=yes,
|
gt_cv_func_dgettext_libintl=yes,
|
||||||
gt_cv_func_dgettext_libintl=no)],
|
gt_cv_func_dgettext_libintl=no)],
|
||||||
gt_cv_func_dgettext_libintl=no)])
|
gt_cv_func_dgettext_libintl=no)])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
||||||
LIBS="$LIBS -lintl";
|
LIBS="$LIBS -lintl";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$gt_cv_func_dgettext_libc" = "yes" \
|
if test "$gt_cv_func_dgettext_libc" = "yes" \
|
||||||
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
||||||
AC_DEFINE(HAVE_GETTEXT)
|
AC_DEFINE(HAVE_GETTEXT)
|
||||||
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
||||||
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
|
||||||
if test "$MSGFMT" != "no"; then
|
if test "$MSGFMT" != "no"; then
|
||||||
AC_CHECK_FUNCS(dcgettext)
|
AC_CHECK_FUNCS(dcgettext)
|
||||||
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
||||||
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
||||||
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
||||||
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
|
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
|
||||||
return _nl_msg_cat_cntr],
|
return _nl_msg_cat_cntr],
|
||||||
[CATOBJEXT=.gmo
|
[CATOBJEXT=.gmo
|
||||||
DATADIRNAME=share],
|
DATADIRNAME=share],
|
||||||
[CATOBJEXT=.mo
|
[CATOBJEXT=.mo
|
||||||
DATADIRNAME=lib])
|
DATADIRNAME=lib])
|
||||||
INSTOBJEXT=.mo
|
INSTOBJEXT=.mo
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Added by Martin Baulig 12/15/98 for libc5 systems
|
# Added by Martin Baulig 12/15/98 for libc5 systems
|
||||||
if test "$gt_cv_func_dgettext_libc" != "yes" \
|
if test "$gt_cv_func_dgettext_libc" != "yes" \
|
||||||
&& test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
&& test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
||||||
INTLLIBS=-lintl
|
INTLLIBS=-lintl
|
||||||
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
if test "$CATOBJEXT" = "NONE"; then
|
if test "$CATOBJEXT" = "NONE"; then
|
||||||
dnl Neither gettext nor catgets in included in the C library.
|
dnl Neither gettext nor catgets in included in the C library.
|
||||||
dnl Fall back on GNU gettext library.
|
dnl Fall back on GNU gettext library.
|
||||||
nls_cv_use_gnu_gettext=yes
|
nls_cv_use_gnu_gettext=yes
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$nls_cv_use_gnu_gettext" != "yes"; then
|
|
||||||
AC_DEFINE(ENABLE_NLS)
|
|
||||||
else
|
|
||||||
dnl Unset this variable since we use the non-zero value as a flag.
|
|
||||||
CATOBJEXT=
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Test whether we really found GNU xgettext.
|
|
||||||
if test "$XGETTEXT" != ":"; then
|
|
||||||
dnl If it is no GNU xgettext we define it as : so that the
|
|
||||||
dnl Makefiles still can work.
|
|
||||||
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|
||||||
: ;
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(
|
|
||||||
[found xgettext program is not GNU xgettext; ignore it])
|
|
||||||
XGETTEXT=":"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We need to process the po/ directory.
|
|
||||||
POSUB=po
|
|
||||||
else
|
|
||||||
DATADIRNAME=share
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$nls_cv_use_gnu_gettext" != "yes"; then
|
||||||
|
AC_DEFINE(ENABLE_NLS)
|
||||||
|
else
|
||||||
|
dnl Unset this variable since we use the non-zero value as a flag.
|
||||||
|
CATOBJEXT=
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl Test whether we really found GNU xgettext.
|
||||||
|
if test "$XGETTEXT" != ":"; then
|
||||||
|
dnl If it is no GNU xgettext we define it as : so that the
|
||||||
|
dnl Makefiles still can work.
|
||||||
|
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
||||||
|
: ;
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(
|
||||||
|
[found xgettext program is not GNU xgettext; ignore it])
|
||||||
|
XGETTEXT=":"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# We need to process the po/ directory.
|
||||||
|
POSUB=po
|
||||||
|
|
||||||
AC_OUTPUT_COMMANDS(
|
AC_OUTPUT_COMMANDS(
|
||||||
[case "$CONFIG_FILES" in *po/Makefile.in*)
|
[case "$CONFIG_FILES" in *po/Makefile.in*)
|
||||||
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
|
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
|
||||||
esac])
|
esac])
|
||||||
|
|
||||||
@ -137,7 +128,6 @@ AC_DEFUN(AM_GLIB_WITH_NLS,
|
|||||||
done
|
done
|
||||||
|
|
||||||
dnl Make all variables we use known to autoconf.
|
dnl Make all variables we use known to autoconf.
|
||||||
AC_SUBST(USE_INCLUDED_LIBINTL)
|
|
||||||
AC_SUBST(CATALOGS)
|
AC_SUBST(CATALOGS)
|
||||||
AC_SUBST(CATOBJEXT)
|
AC_SUBST(CATOBJEXT)
|
||||||
AC_SUBST(DATADIRNAME)
|
AC_SUBST(DATADIRNAME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user