summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorBrian Jones <cbj@gnu.org>2002-05-02 23:00:14 +0000
committerBrian Jones <cbj@gnu.org>2002-05-02 23:00:14 +0000
commit07227f64993e98187bec0649642d4fd1dfca6277 (patch)
tree3d42910f377e21d71fcd7e48c2fae136e413378a /acinclude.m4
parentfb21ce12a8be375d9f90cdeee3d62b3bbbf1688f (diff)
downloadclasspath-07227f64993e98187bec0649642d4fd1dfca6277.tar.gz
* configure.in: move check for ZIP to --with-zip
* acinclude.m4: define CLASSPATH_WITH_ZIP, allow user to specify --without-zip to avoid creating or installing glibj.zip * java/util/TreeMap.java (SubMap.values): return this.values instead of this.keys
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 057e1a283..4ce19fa41 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -536,3 +536,24 @@ AC_DEFUN(CLASSPATH_WITH_INCLUDEDIR,
fi
])
])
+
+dnl CLASSPATH_WITH_ZIP - allow user to specify without zip
+AC_DEFUN(CLASSPATH_WITH_ZIP,
+[
+ AC_ARG_WITH(zip,
+ [ --with-zip create glibj.zip [default=yes]],
+ [
+ if test "x${withval}" = xyes || test "x${withval}" = x; then
+ AC_PATH_PROG(ZIP, zip)
+ elif test "x${withval}" = xno || test "x${withval}" = xfalse; then
+ ZIP=
+ else
+ ZIP="${withval}"
+ fi
+ ],
+ [
+ AC_PATH_PROG(ZIP, zip)
+ ])
+ AC_SUBST(ZIP)
+ AM_CONDITIONAL(HAVE_ZIP, test "x${ZIP}" != x)
+])