summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2007-10-16 14:06:22 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2007-10-16 14:06:22 +0000
commit30881e7bf036f4a1cd649ddb3b06184f8a7dad91 (patch)
treecca7879f84cbd375d8a523f67f6abca2c34048aa /m4
parent45ac0ed7c7221ff79714d671f8fb7ac38947fd30 (diff)
downloadclasspath-30881e7bf036f4a1cd649ddb3b06184f8a7dad91.tar.gz
2007-10-16 Andrew John Hughes <gnu_andrew@member.fsf.org>
* m4/acinclude.m4: Add -sourcepath so that some proprietary JDKs don't try to compile the whole of Classpath when testing the compiler.
Diffstat (limited to 'm4')
-rw-r--r--m4/acinclude.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/acinclude.m4 b/m4/acinclude.m4
index 88a7faa32..b1cad98b3 100644
--- a/m4/acinclude.m4
+++ b/m4/acinclude.m4
@@ -463,7 +463,7 @@ public static void main(String[] args) {
java.util.List<String> l;
}}
EOF
- $JAVAC conftest.java
+ $JAVAC -sourcepath '' conftest.java
javac_result=$?
if test "x$javac_result" = "x0"; then
AC_MSG_RESULT([yes])
@@ -471,7 +471,7 @@ EOF
AC_MSG_WARN([1.5 capable javac required])
fi
AC_MSG_CHECKING([whether javac supports -J])
- $JAVAC -J-Xmx512M conftest.java
+ $JAVAC -J-Xmx512M -sourcepath '' conftest.java
javac_result=$?
if test "x$javac_result" = "x0"; then
AC_MSG_RESULT([yes])