the intl subdir in binutils may redirect some funcs with libintl_* prefixes 
(like building for win32), so the attached patch adds a stub like the 
existing one for dcgettect() ... this fixes building of elf2flt for me for 
mingw targets
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Index: configure
===================================================================
RCS file: /var/cvs/elf2flt/configure,v
retrieving revision 1.12
diff -u -p -r1.12 configure
--- configure	3 Jan 2007 03:53:51 -0000	1.12
+++ configure	11 Oct 2007 03:20:29 -0000
@@ -3667,7 +3667,7 @@ done
 
 
 
-for ac_func in dcgettext
+for ac_func in dcgettext libintl_dgettext
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 echo "$as_me:$LINENO: checking for $ac_func" >&5
Index: configure.in
===================================================================
RCS file: /var/cvs/elf2flt/configure.in,v
retrieving revision 1.10
diff -u -p -r1.10 configure.in
--- configure.in	3 Jan 2007 03:49:47 -0000	1.10
+++ configure.in	11 Oct 2007 03:20:29 -0000
@@ -116,7 +116,7 @@ AC_C_CONST
 dnl Checks for library functions.
 AC_FUNC_VPRINTF
 
-AC_CHECK_FUNCS(dcgettext)
+AC_CHECK_FUNCS(dcgettext libintl_dgettext)
 
 dnl Subsitute values
 AC_SUBST(target)
Index: stubs.c
===================================================================
RCS file: /var/cvs/elf2flt/stubs.c,v
retrieving revision 1.1
diff -u -p -r1.1 stubs.c
--- stubs.c	21 Sep 2003 23:19:08 -0000	1.1
+++ stubs.c	11 Oct 2007 03:20:29 -0000
@@ -4,3 +4,10 @@ const char *dcgettext (const char *domai
   return msg;
 }
 #endif /* !HAVE_DCGETTEXT */
+
+#ifndef HAVE_LIBINTL_DGETTEXT
+const char *libintl_dgettext (const char *domain, const char *msg)
+{
+  return msg;
+}
+#endif /* !HAVE_LIBINTL_DGETTEXT */
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to