]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Protect against misinstalled gcj.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Apr 2002 13:07:40 +0000 (13:07 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:07:52 +0000 (12:07 +0200)
m4/ChangeLog
m4/javacomp.m4

index 151f7a198e08f7e2b35a87ad165902a1721a0f7e..a4ee0c5782374bf1d8b789125b8f327bc92a50bb 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-08  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
 
        * gettext-0.11.1 released.
index 1b91fa71a13206f69cb5272862c5c9e7f539d1a3..fd49b63fe0eed4f59df282ff67d12b52c39045f9 100644 (file)
@@ -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 <<EOF
+public class conftest {
+  public static void main (String[] args) {
+  }
+}
+EOF
+        gcj -C -d . conftest.java 2>/dev/null
+        error=$?
+        rm -f conftest.java conftest.class
+        exit $error
+       ); then
       HAVE_GCJ=1
       ac_result="gcj -C"
     else