From: David McCullough Date: Thu, 11 Oct 2007 03:50:51 +0000 (+0000) Subject: the intl subdir in binutils may redirect some funcs with libintl_* prefixes X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=360ad0425eaf8db5358367d8f1003857f0ae810e;p=elf2flt.git 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 Frysinger --- diff --git a/configure b/configure index d672662..8d08e53 100755 --- a/configure +++ b/configure @@ -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 diff --git a/configure.in b/configure.in index 73443c6..d43b500 100644 --- a/configure.in +++ b/configure.in @@ -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) diff --git a/stubs.c b/stubs.c index fb14d63..59760a3 100644 --- a/stubs.c +++ b/stubs.c @@ -4,3 +4,10 @@ const char *dcgettext (const char *domain, const char *msg, int category) 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 */