aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure.ac
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2007-01-29 18:46:34 +0000
committerTom Tromey <tromey@gcc.gnu.org>2007-01-29 18:46:34 +0000
commitacd724f62a7599bec3e40cdc5a02f961f64358d3 (patch)
tree812c5f5af659cd3f7b8ac6c143e0c2b2efb55b14 /libjava/configure.ac
parent263e3c330eff8e23c4722f634894fab7123508bb (diff)
downloadgcc-acd724f62a7599bec3e40cdc5a02f961f64358d3.zip
gcc-acd724f62a7599bec3e40cdc5a02f961f64358d3.tar.gz
gcc-acd724f62a7599bec3e40cdc5a02f961f64358d3.tar.bz2
configure, [...]: Rebuilt.
* configure, Makefile.in: Rebuilt. * Makefile.am (bin_SCRIPTS): Never install scripts/jar. * configure.ac (BASH_JAR): Removed conditional. (JAR): Prefer the jar found by AC_CHECK_PROGS. From-SVN: r121301
Diffstat (limited to 'libjava/configure.ac')
-rw-r--r--libjava/configure.ac12
1 files changed, 6 insertions, 6 deletions
diff --git a/libjava/configure.ac b/libjava/configure.ac
index 773814d..a62805c 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -117,14 +117,14 @@ AC_PROG_AWK
AC_CHECK_PROGS([JAR], [jar fastjar gjar], no)
AC_PATH_PROG([ZIP], [zip], no)
AC_PATH_PROG([UNZIP], [unzip], unzip)
-AM_CONDITIONAL(BASH_JAR, test "$JAR" = no)
-if test "$ZIP" = no; then
- if test "$JAR" = no; then
+# Prefer the jar we found, but fall back to our jar script.
+if test "$JAR" = no; then
+ if test "$ZIP" = no; then
AC_MSG_ERROR([cannot find neither zip nor jar, cannot continue])
+ else
+ # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
+ JAR=`pwd`/scripts/jar
fi
-else
- # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
- JAR=`pwd`/scripts/jar
fi
AC_PROG_INSTALL