summaryrefslogtreecommitdiffstats
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorpthomas <pthomas@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-09 08:12:35 +0000
committerpthomas <pthomas@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-09 08:12:35 +0000
commit6a58831b8467c6ef902852f090ae9e41430659f6 (patch)
tree6c0c20dbbc0af83d77ca8899161273dff1ca0ebb /gcc/aclocal.m4
parent1248466248ffd4f4c977b527523c77f52565f1cb (diff)
downloadppe42-gcc-6a58831b8467c6ef902852f090ae9e41430659f6.tar.gz
ppe42-gcc-6a58831b8467c6ef902852f090ae9e41430659f6.zip
2000-10-08 Philipp Thomas <pthomas@suse.de>
* aclocal.m4 (AM_WITH_NLS): When not using included gettext, disable catalog building if no suitable program was found. Move warning message from here (AM_GNU_GETTEXT): To here. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36800 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m410
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index 0f0865aace0..c6c48916065 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -1,4 +1,4 @@
-dnl See whether we can include both string.h and strings.h.
+Fdnl See whether we can include both string.h and strings.h.
AC_DEFUN(gcc_AC_HEADER_STRING,
[AC_CACHE_CHECK([whether string.h and strings.h may both be included],
gcc_cv_header_string,
@@ -404,6 +404,8 @@ AC_DEFUN(AM_WITH_NLS,
[CATOBJEXT=.mo
DATADIRNAME=lib])
INSTOBJEXT=.mo
+ else
+ create_catalogs="no"
fi
fi
])
@@ -428,7 +430,6 @@ AC_DEFUN(AM_WITH_NLS,
GCC_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
if test "$GMSGFMT" = "msgfmt"; then
- AC_MSG_WARN(No program for catalog building found, so disabling building them)
create_catalogs="no"
fi
fi
@@ -463,7 +464,6 @@ AC_DEFUN(AM_WITH_NLS,
dnl If we didn't find either msgfmt or gmsgfmt, don't try to
dnl create a catalog.
if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
- AC_MSG_WARN(Neither msgfmt nor gmsgfmt found. No catalogs will be built)
create_catalogs="no"
fi
GCC_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
@@ -565,6 +565,10 @@ strdup __argz_count __argz_stringify __argz_next])
AM_LC_MESSAGES
AM_WITH_NLS
+ if test "x$create_catalogs" == "xno"; then
+ AC_MSG_WARN([No program for building catalogs found -> building disabled])
+ fi
+
if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
if test "x$ALL_LINGUAS" = "x"; then
LINGUAS=
OpenPOWER on IntegriCloud