2
dnl Copyright 1999-2004 The Apache Software Foundation
4
dnl Licensed under the Apache License, Version 2.0 (the "License");
5
dnl you may not use this file except in compliance with the License.
6
dnl You may obtain a copy of the License at
8
dnl http://www.apache.org/licenses/LICENSE-2.0
10
dnl Unless required by applicable law or agreed to in writing, software
11
dnl distributed under the License is distributed on an "AS IS" BASIS,
12
dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
dnl See the License for the specific language governing permissions and
14
dnl limitations under the License.
17
dnl --------------------------------------------------------------------------
18
dnl Author Andy Armstrong <andy@tagish.com>
19
dnl Shamelessly cribbed from Henri Gomez <hgomez@apache.org>
21
dnl He was inspired by Pier works on webapp m4 macros :)
23
dnl Version $Id: jk_dominohome.m4 299412 2004-04-29 17:03:31Z andya $
24
dnl --------------------------------------------------------------------------
26
dnl --------------------------------------------------------------------------
28
dnl Set the Domino Home directory.
30
dnl $2 => Domino VarName
31
dnl $3 => File which should be present
32
dnl --------------------------------------------------------------------------
38
AC_MSG_CHECKING([for $1 location])
41
[ --with-$1=DIR Location of $1 ],
44
""|"yes"|"YES"|"true"|"TRUE")
46
"no"|"NO"|"false"|"FALSE")
47
AC_MSG_ERROR(valid $1 location required)
52
if ${TEST} ! -d ${tempval} ; then
53
AC_MSG_ERROR(Not a directory: ${tempval})
56
if ${TEST} ! -f ${tempval}/$3; then
57
AC_MSG_ERROR(can't locate ${tempval}/$3)
63
if ${TEST} -z "$tempval" ; then
64
AC_MSG_RESULT(not provided)
67
AC_MSG_RESULT(${[$2]})
73
dnl vi:set sts=2 sw=2 autoindent: