diff options
author | Matthias Klose <doko@debian.org> | 2004-07-23 06:59:35 +0000 |
---|---|---|
committer | Matthias Klose <doko@gcc.gnu.org> | 2004-07-23 06:59:35 +0000 |
commit | c2c36d38e2c7374f79da7008a88854c9608edb73 (patch) | |
tree | 733ffa5c5ebd113d4b7cdda28aee3ebf76af1d0b | |
parent | 11abc112af6e70657bf78e83436f3891195abdce (diff) | |
download | gcc-c2c36d38e2c7374f79da7008a88854c9608edb73.tar.gz |
intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
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.
From-SVN: r85072
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config.in | 3 | ||||
-rwxr-xr-x | gcc/configure | 5 | ||||
-rw-r--r-- | gcc/configure.ac | 2 | ||||
-rw-r--r-- | gcc/intl.c | 4 |
5 files changed, 19 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e08c3947d3..f039bce7d64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config.in b/gcc/config.in index 2b213a2fdff..387e70899dc 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -516,6 +516,9 @@ /* 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 diff --git a/gcc/configure b/gcc/configure index d30e786d9a1..f32b8af211f 100755 --- a/gcc/configure +++ b/gcc/configure @@ -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, diff --git a/gcc/configure.ac b/gcc/configure.ac index d37db09edfc..bb6f7bf8513 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -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) diff --git a/gcc/intl.c b/gcc/intl.c index e5aa941021f..2b2a9f09732 100644 --- a/gcc/intl.c +++ b/gcc/intl.c @@ -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 = _("`"); |