]> git.pld-linux.org Git - packages/vice.git/blob - vice-gettext.patch
- updated gettext BR
[packages/vice.git] / vice-gettext.patch
1 --- vice-1.21/configure.in~     2007-07-06 20:08:39.000000000 +0200
2 +++ vice-1.21/configure.in      2007-07-06 20:11:54.000000000 +0200
3 @@ -418,129 +418,10 @@
4  dnl Add new languages here
5  ALL_LINGUAS="de fr it sv pl nl hu"
6  
7 -dnl These rules are solely for the distribution goal.  While doing this
8 -dnl we only have to keep exactly one list of the available catalogs
9 -dnl in configure.in.
10 -for lang in $ALL_LINGUAS; do
11 -  GMOFILES="$GMOFILES $lang.gmo"
12 -  POFILES="$POFILES $lang.po"
13 -done
14 -AC_SUBST(GMOFILES)
15 -AC_SUBST(POFILES)
16 -
17 -if test x"$enable_nls" != "xno" -a x"$is_unix" = "xyes"; then
18 -  AC_CHECK_HEADER(libintl.h,
19 -    [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
20 -      [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
21 -        gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
22 -
23 -     AC_CACHE_CHECK([for gettext in libintl], gt_cv_func_gettext_libintl,
24 -      [save_libs="$LIBS"
25 -       LIBS="-lintl $LIBS"
26 -       AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
27 -        INTLLIBS=-lintl gt_cv_func_gettext_libintl=yes, gt_cv_func_gettext_libintl=no)
28 -       LIBS="$save_libs"])
29 -
30 -     if test "$gt_cv_func_gettext_libc" = "yes" \
31 -       || test "$gt_cv_func_gettext_libintl" = "yes"; then
32 -       AC_DEFINE(HAVE_GETTEXT,,[Define if gettext if available.])
33 -       AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
34 -         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
35 -       if test "$MSGFMT" != "no"; then
36 -         AC_CHECK_FUNCS(dcgettext)
37 -         AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
38 -         AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
39 -           [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
40 -         AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
41 -                        return _nl_msg_cat_cntr],
42 -           [CATOBJEXT=.gmo
43 -            DATADIRNAME=share],
44 -           [CATOBJEXT=.mo
45 -            DATADIRNAME=lib])
46 -         INSTOBJEXT=.mo
47 -       fi
48 -        USE_NLS=yes
49 -       AC_DEFINE(ENABLE_NLS,,[Define if NLS support is enabled.])
50 -       AC_DEFINE(HAVE_LIBINTL_H,,[use libintl for NLS.])
51 -       AC_DEFINE_UNQUOTED(DATADIRNAME, "$DATADIRNAME",[NLS datadirname.])
52 -       dnl this is prefixed with PREFIX
53 -       AC_DEFINE(NLS_LOCALEDIR, PREFIX"/"DATADIRNAME"/locale",[NLS local directory.])
54 -      else
55 -        AC_MSG_WARN([libintl.h not found, disabling NLS])
56 -        USE_NLS=no
57 -      fi
58 -  ])
59 -  dnl Test whether we really found GNU xgettext.
60 -  if test "$XGETTEXT" != ":"; then
61 -    dnl If it is no GNU xgettext we define it as : so that the
62 -    dnl Makefiles still can work.
63 -    if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
64 -      : ;
65 -    else
66 -      AC_MSG_RESULT(
67 -       [found xgettext program is not GNU xgettext; ignore it])
68 -      XGETTEXT=":"
69 -    fi
70 -  fi
71 -
72 -  dnl Test wether GMSGFMT is there. Should fix `make dist'.
73 -  if test "$GMSGFMT" = "" ; then
74 -    GMSGFMT=":"
75 -  fi
76 -
77 -  # We need to process the po/ directory.
78 -  POSUB=po
79 -  
80 -  AC_OUTPUT_COMMANDS(
81 -    [case "$CONFIG_FILES" in *po/Makefile.in*)
82 -      sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
83 -    esac])
84 -  
85 -  dnl Make all variables we use known to autoconf.
86 -  AC_SUBST(USE_INCLUDED_LIBINTL)
87 -  AC_SUBST(CATALOGS)
88 -  AC_SUBST(DATADIRNAME)
89 -  AC_SUBST(INSTOBJEXT)
90 -  AC_SUBST(INTLDEPS)
91 -  AC_SUBST(INTLLIBS)
92 -  AC_SUBST(INTLOBJS)
93 -  AC_SUBST(POSUB)
94 -  AC_SUBST(GENCAT)
95 -
96 -  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
97 -  dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
98 -  dnl Try to locate is.
99 -  MKINSTALLDIRS=
100 -  if test -n "$ac_aux_dir"; then
101 -    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
102 -  fi
103 -  if test -z "$MKINSTALLDIRS"; then
104 -    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
105 -  fi
106 -  AC_SUBST(MKINSTALLDIRS)
107 -
108 -  dnl currently no catgets support, can't check it.
109 -  GENCAT=
110 -  AC_SUBST(GENCAT)
111 -else
112 -  if test x"$is_unix" = "xyes"; then
113 -    AC_MSG_WARN([disabling NLS on user request])
114 -  fi
115 -  USE_NLS=no
116 -fi
117 -
118 -if test x"$USE_NLS" = "x" ; then
119 -  USE_NLS=no
120 -fi
121 -if test "$MSGFMT" = "no" ; then
122 -  dnl Fallback to shipped .gmo 
123 -  dnl Those should work on x86 linux systems.
124 -  AC_MSG_WARN([msgfmt not found, falling back to default catalogs (x86/Linux)])
125 -  CATOBJEXT=".gmo"
126 -fi
127 -AC_SUBST(CATOBJEXT)
128 -AC_SUBST(USE_NLS)
129 -AC_SUBST(NLS_LOCALEDIR)
130 +AM_GNU_GETTEXT
131 +AC_CHECK_HEADERS(libintl.h)
132 +AC_DEFINE_UNQUOTED(DATADIRNAME, "$DATADIRNAME",[NLS datadirname.])
133 +AC_DEFINE(NLS_LOCALEDIR, PREFIX"/"DATADIRNAME"/locale",[NLS local directory.])
134  
135  dnl Check for a perl interpreter.
136  AC_PATH_PROG(PERL, perl)
This page took 0.085835 seconds and 3 git commands to generate.