summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorBrian Jones <cbj@gnu.org>2000-12-15 04:58:55 +0000
committerBrian Jones <cbj@gnu.org>2000-12-15 04:58:55 +0000
commit7bd2e922dec1a769fe416f362241aa913a9ffa2e (patch)
treecd712e75cebc9bc3933477608e38a53ef637da2d /acinclude.m4
parent90823461a8693d8333ea2dd487502dea83cc4267 (diff)
downloadclasspath-7bd2e922dec1a769fe416f362241aa913a9ffa2e.tar.gz
* acinclude.m4 : CLASSPATH_INTERNAL_CHECK_JAPHAR takes an optional
argument such that specifying the prefix to Japhar now works, allowing the user to have multiple installations of Japhar and yet configure for a specific installation.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index be1f3412a..d3c9dfdd4 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -23,7 +23,11 @@ esac
dnl CLASSPATH_INTERNAL_CHECK_JAPHAR
AC_DEFUN(CLASSPATH_INTERNAL_CHECK_JAPHAR,
[
- AC_PATH_PROG(JAPHAR_CONFIG, japhar-config, "", $PATH:/usr/local/japhar/bin:/usr/japhar/bin)
+ if test "$1" = ""; then
+ AC_PATH_PROG(JAPHAR_CONFIG, japhar-config, "", $PATH:/usr/local/japhar/bin:/usr/japhar/bin)
+ else
+ AC_PATH_PROG(JAPHAR_CONFIG, japhar-config, "", $1/bin:$PATH)
+ fi
if test "$JAPHAR_CONFIG" = ""; then
echo "configure: cannot find japhar-config: is Japhar installed?" 1>&2
exit 1
@@ -165,6 +169,8 @@ AC_DEFUN(CLASSPATH_CHECK_JAPHAR,
[
if test ${withval} = "yes" || test ${withval} = ""; then
CLASSPATH_INTERNAL_CHECK_JAPHAR
+ elif test ${withval} != "no" || test ${withval} != "false"; then
+ CLASSPATH_INTERNAL_CHECK_JAPHAR(${withval})
fi
],
[