2 dnl Licensed to the Apache Software Foundation (ASF) under one or more
3 dnl contributor license agreements. See the NOTICE file distributed with
4 dnl this work for additional information regarding copyright ownership.
5 dnl The ASF licenses this file to You under the Apache License, Version 2.0
6 dnl (the "License"); you may not use this file except in compliance with
7 dnl the License. You may obtain a copy of the License at
9 dnl http://www.apache.org/licenses/LICENSE-2.0
11 dnl Unless required by applicable law or agreed to in writing, software
12 dnl distributed under the License is distributed on an "AS IS" BASIS,
13 dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 dnl See the License for the specific language governing permissions and
15 dnl limitations under the License.
18 dnl --------------------------------------------------------------------------
19 dnl Author Andy Armstrong <andy@tagish.com>
20 dnl Shamelessly cribbed from Henri Gomez <hgomez@apache.org>
22 dnl He was inspired by Pier works on webapp m4 macros :)
24 dnl Version $Id: jk_dominohome.m4 466585 2006-10-21 22:16:34Z markt $
25 dnl --------------------------------------------------------------------------
27 dnl --------------------------------------------------------------------------
29 dnl Set the Domino Home directory.
31 dnl $2 => Domino VarName
32 dnl $3 => File which should be present
33 dnl --------------------------------------------------------------------------
39 AC_MSG_CHECKING([for $1 location])
42 [ --with-$1=DIR Location of $1 ],
45 ""|"yes"|"YES"|"true"|"TRUE")
47 "no"|"NO"|"false"|"FALSE")
48 AC_MSG_ERROR(valid $1 location required)
53 if ${TEST} ! -d ${tempval} ; then
54 AC_MSG_ERROR(Not a directory: ${tempval})
57 if ${TEST} ! -f ${tempval}/$3; then
58 AC_MSG_ERROR(can't locate ${tempval}/$3)
64 if ${TEST} -z "$tempval" ; then
65 AC_MSG_RESULT(not provided)
68 AC_MSG_RESULT(${[$2]})
74 dnl vi:set sts=2 sw=2 autoindent: