aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-04-05 08:43:41 +0000
committerNick Clifton <nickc@redhat.com>2012-04-05 08:43:41 +0000
commit443507505d3a8bac2b5dc2e8578af2006f68cc80 (patch)
tree23720063ed46adcf849f831e44f9048334bf7c46 /binutils
parent78a761e2471d7f4bfb6e4d58693bdd932b10409b (diff)
downloadgdb-443507505d3a8bac2b5dc2e8578af2006f68cc80.zip
gdb-443507505d3a8bac2b5dc2e8578af2006f68cc80.tar.gz
gdb-443507505d3a8bac2b5dc2e8578af2006f68cc80.tar.bz2
* configure.in (AC_CHECK_FUNCS): Add setlocale.
(AM_LC_MESSAGES): Add. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog8
-rw-r--r--binutils/aclocal.m41
-rw-r--r--binutils/config.in6
-rwxr-xr-xbinutils/configure36
-rw-r--r--binutils/configure.in4
5 files changed, 53 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 749378f..4b1321a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,11 @@
+2012-04-05 Nick Clifton <nickc@redhat.com>
+
+ * configure.in (AC_CHECK_FUNCS): Add setlocale.
+ (AM_LC_MESSAGES): Add.
+ * aclocal.m4: Regenerate.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+
2012-03-30 Nick Clifton <nickc@redhat.com>
PR binutils/13925
diff --git a/binutils/aclocal.m4 b/binutils/aclocal.m4
index ce11677..1ad8c31 100644
--- a/binutils/aclocal.m4
+++ b/binutils/aclocal.m4
@@ -995,6 +995,7 @@ m4_include([../config/depstand.m4])
m4_include([../config/gettext-sister.m4])
m4_include([../config/iconv.m4])
m4_include([../config/largefile.m4])
+m4_include([../config/lcmessage.m4])
m4_include([../config/lead-dot.m4])
m4_include([../config/lib-ld.m4])
m4_include([../config/lib-link.m4])
diff --git a/binutils/config.in b/binutils/config.in
index 62bdfa1..88e7b1b 100644
--- a/binutils/config.in
+++ b/binutils/config.in
@@ -85,6 +85,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
+/* Define if your <locale.h> file defines LC_MESSAGES. */
+#undef HAVE_LC_MESSAGES
+
/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
@@ -100,6 +103,9 @@
/* Define to 1 if you have the `sbrk' function. */
#undef HAVE_SBRK
+/* Define to 1 if you have the `setlocale' function. */
+#undef HAVE_SETLOCALE
+
/* Define to 1 if you have the `setmode' function. */
#undef HAVE_SETMODE
diff --git a/binutils/configure b/binutils/configure
index 8d324e4..a78e4ef 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -12681,7 +12681,7 @@ _ACEOF
fi
-for ac_func in sbrk utimes setmode getc_unlocked strcoll
+for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -12767,6 +12767,40 @@ if test "$ac_res" != no; then :
fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
+$as_echo_n "checking for LC_MESSAGES... " >&6; }
+if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <locale.h>
+int
+main ()
+{
+return LC_MESSAGES
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ am_cv_val_LC_MESSAGES=yes
+else
+ am_cv_val_LC_MESSAGES=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
+$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
+ if test $am_cv_val_LC_MESSAGES = yes; then
+
+$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
+
+ fi
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
$as_echo_n "checking for time_t in time.h... " >&6; }
if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
diff --git a/binutils/configure.in b/binutils/configure.in
index d0443cf..3941a0b 100644
--- a/binutils/configure.in
+++ b/binutils/configure.in
@@ -92,7 +92,7 @@ AC_SUBST(DEMANGLER_NAME)
AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h)
AC_HEADER_SYS_WAIT
AC_FUNC_ALLOCA
-AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll)
+AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale)
AC_CHECK_FUNC([mkstemp],
AC_DEFINE([HAVE_MKSTEMP], 1,
[Define to 1 if you have the `mkstemp' function.]))
@@ -103,6 +103,8 @@ AC_CHECK_FUNC([mkdtemp],
# Some systems have frexp only in -lm, not in -lc.
AC_SEARCH_LIBS(frexp, m)
+AM_LC_MESSAGES
+
AC_MSG_CHECKING(for time_t in time.h)
AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>], [time_t i;])],