OSDN Git Service

2004-07-23 Matthias Klose <doko@debian.org>
authordoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Jul 2004 06:59:35 +0000 (06:59 +0000)
committerdoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Jul 2004 06:59:35 +0000 (06:59 +0000)
        intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
        configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
        config.h: Regenerate.
        configure: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85072 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/intl.c

index 7e08c39..f039bce 100644 (file)
@@ -1,3 +1,10 @@
+2004-07-23  Matthias Klose  <doko@debian.org> 
+       intl.c (gcc_init_libintl): Use PACKAGE for the text domain. 
+       configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE. 
+       config.h: Regenerate.
+       configure: Likewise. 
+
 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
 
        * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
index 2b213a2..387e708 100644 (file)
 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
 #undef NO_MINUS_C_MINUS_O
 
+/* The name of this program for internationalization purposes. */
+#undef PACKAGE
+
 /* Define to the address where bug reports for this package should be sent. */
 #undef PACKAGE_BUGREPORT
 
index d30e786..f32b8af 100755 (executable)
@@ -9387,6 +9387,11 @@ EOF
 PACKAGE=gcc
 VERSION="$gcc_version"
 
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
+_ACEOF
+
+
 
 
 # If we haven't got the data from the intl directory,
index d37db09..bb6f7bf 100644 (file)
@@ -1392,6 +1392,8 @@ changequote([,])dnl
 # Internationalization
 PACKAGE=gcc
 VERSION="$gcc_version"
+AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
+  [The name of this program for internationalization purposes.])
 AC_SUBST(PACKAGE)
 AC_SUBST(VERSION)
 
index e5aa941..2b2a9f0 100644 (file)
@@ -51,8 +51,8 @@ gcc_init_libintl (void)
   setlocale (LC_ALL, "");
 #endif
 
-  (void) bindtextdomain ("gcc", LOCALEDIR);
-  (void) textdomain ("gcc");
+  (void) bindtextdomain (PACKAGE, LOCALEDIR);
+  (void) textdomain (PACKAGE);
 
   /* Opening quotation mark.  */
   open_quote = _("`");