scummvm random work
[patches.git] / elf2flt-libintl_dgettext.patch
CommitLineData
5e993f12 1Index: configure
2===================================================================
3RCS file: /var/cvs/elf2flt/configure,v
4retrieving revision 1.12
5diff -u -p -r1.12 configure
6--- configure 3 Jan 2007 03:53:51 -0000 1.12
7+++ configure 11 Oct 2007 03:20:29 -0000
8@@ -3667,7 +3667,7 @@ done
9
10
11
12-for ac_func in dcgettext
13+for ac_func in dcgettext libintl_dgettext
14 do
15 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16 echo "$as_me:$LINENO: checking for $ac_func" >&5
17Index: configure.in
18===================================================================
19RCS file: /var/cvs/elf2flt/configure.in,v
20retrieving revision 1.10
21diff -u -p -r1.10 configure.in
22--- configure.in 3 Jan 2007 03:49:47 -0000 1.10
23+++ configure.in 11 Oct 2007 03:20:29 -0000
24@@ -116,7 +116,7 @@ AC_C_CONST
25 dnl Checks for library functions.
26 AC_FUNC_VPRINTF
27
28-AC_CHECK_FUNCS(dcgettext)
29+AC_CHECK_FUNCS(dcgettext libintl_dgettext)
30
31 dnl Subsitute values
32 AC_SUBST(target)
33Index: stubs.c
34===================================================================
35RCS file: /var/cvs/elf2flt/stubs.c,v
36retrieving revision 1.1
37diff -u -p -r1.1 stubs.c
38--- stubs.c 21 Sep 2003 23:19:08 -0000 1.1
39+++ stubs.c 11 Oct 2007 03:20:29 -0000
40@@ -4,3 +4,10 @@ const char *dcgettext (const char *domai
41 return msg;
42 }
43 #endif /* !HAVE_DCGETTEXT */
44+
45+#ifndef HAVE_LIBINTL_DGETTEXT
46+const char *libintl_dgettext (const char *domain, const char *msg)
47+{
48+ return msg;
49+}
50+#endif /* !HAVE_LIBINTL_DGETTEXT */