This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: fix locale configure checks

>>>>> "Tom" == Tom Tromey <> writes:

Tom> Today while exploring the charset code I happened to notice that gdb
Tom> never calls setlocale.

Tom> The code is there, but configure never does the checks that might

Tom> This patch fixes the problem.  I just copied what GCC does here.

I've updated this patch to account for recent changes to

I am re-regtesting it, but I don't anticipate any problems.
Ok if it passes?


2008-11-25  Tom Tromey  <>

	*, configure: Rebuild.
	* Check for locale.h, setlocale.  Call
	* acinclude.m4: Include lcmessage.m4.

diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4
index 4e8f590..2a951e2 100644
--- a/gdb/acinclude.m4
+++ b/gdb/acinclude.m4
@@ -26,6 +26,9 @@ sinclude(../config/tcl.m4)
 dnl For dependency tracking macros.
 # Sometimes the native compiler is a bogus stub for gcc or /usr/ucb/cc. This
 # makes configure think it's cross compiling. If --target wasn't used, then
diff --git a/gdb/ b/gdb/
index 8725aa6..4e0cf7d 100644
--- a/gdb/
+++ b/gdb/
@@ -696,7 +696,7 @@ AC_CHECK_HEADERS([nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
 		  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
 		  sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
 		  sys/types.h sys/wait.h wait.h termios.h termio.h \
-		  sgtty.h unistd.h elf_hp.h ctype.h time.h])
+		  sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h])
 AC_CHECK_HEADERS(link.h, [], [],
 # include <sys/types.h>
@@ -740,6 +740,7 @@ AC_CHECK_HEADERS(term.h, [], [],
 AC_CHECK_DECLS([free, malloc, realloc, strerror, strstr, getopt,
                 snprintf, vsnprintf])
 # ----------------------- #
 # Checks for structures.  #
@@ -775,7 +776,7 @@ AC_FUNC_VFORK
 AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid \
                 getgid poll pread64 sbrk setpgid setpgrp setsid \
 		sigaction sigprocmask sigsetmask socketpair syscall \
-		ttrace wborder])
+		ttrace wborder setlocale])
 # Check the return and argument types of ptrace.  No canned test for
 # this, so roll our own.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]