From: Bruno Haible Date: Tue, 9 Apr 2002 13:07:40 +0000 (+0000) Subject: Protect against misinstalled gcj. X-Git-Tag: 0.11.2-branchpoint~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ad18dbf547e9e4d03450206ee4ed792d06e3e1;p=thirdparty%2Fgettext.git Protect against misinstalled gcj. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index 151f7a198..a4ee0c578 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2002-04-08 Bruno Haible + + * javacomp.m4 (gt_JAVACOMP): Test whether "gcj -C" really works, to + protect against systems where libgcj.jar is missing or misinstalled. + 2002-03-12 Bruno Haible * gettext-0.11.1 released. diff --git a/m4/javacomp.m4 b/m4/javacomp.m4 index 1b91fa71a..fd49b63fe 100644 --- a/m4/javacomp.m4 +++ b/m4/javacomp.m4 @@ -1,4 +1,4 @@ -# javacomp.m4 serial 2 (gettext-0.11.1) +# javacomp.m4 serial 3 (gettext-0.11.2) dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -32,7 +32,20 @@ AC_DEFUN([gt_JAVACOMP], popdef([AC_MSG_CHECKING])dnl changequote(,)dnl if test -n "$HAVE_GCJ_IN_PATH" \ - && gcj --version 2>/dev/null | grep '^[3-9]' >/dev/null; then + && gcj --version 2>/dev/null | grep '^[3-9]' >/dev/null \ + && ( + # See if libgcj.jar is well installed. + cat > conftest.java </dev/null + error=$? + rm -f conftest.java conftest.class + exit $error + ); then HAVE_GCJ=1 ac_result="gcj -C" else