108d139d0b7b7b79907f2a5a8cdc32d12d286196
[cacao.git] / m4 / jre-layout.m4
1 dnl m4/jre-layout.m4
2 dnl
3 dnl Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
4 dnl C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 dnl E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 dnl J. Wenninger, Institut f. Computersprachen - TU Wien
7 dnl 
8 dnl This file is part of CACAO.
9 dnl 
10 dnl This program is free software; you can redistribute it and/or
11 dnl modify it under the terms of the GNU General Public License as
12 dnl published by the Free Software Foundation; either version 2, or (at
13 dnl your option) any later version.
14 dnl 
15 dnl This program is distributed in the hope that it will be useful, but
16 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
17 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 dnl General Public License for more details.
19 dnl 
20 dnl You should have received a copy of the GNU General Public License
21 dnl along with this program; if not, write to the Free Software
22 dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 dnl 02110-1301, USA.
24 dnl 
25 dnl $Id: jre-layout.m4 8373 2007-08-20 22:43:09Z twisti $
26
27
28 dnl if we compile for a JRE-style directory layout
29
30 AC_DEFUN([AC_CHECK_WITH_JRE_LAYOUT],[
31 AC_MSG_CHECKING(if we compile for a JRE-style directory layout)
32 AC_ARG_WITH([jre-layout],
33             [AS_HELP_STRING(--with-jre-layout,compile for JRE-style directory layout [[default=no]])],
34             [case "${enableval}" in
35                 yes)
36                     WITH_JRE_LAYOUT=yes
37                     AC_DEFINE([WITH_JRE_LAYOUT], 1, [with JRE layout])
38                     ;;
39                 *)
40                     WITH_JRE_LAYOUT=no
41                     ;;
42              esac],
43             [WITH_JRE_LAYOUT=no])
44 AC_MSG_RESULT(${WITH_JRE_LAYOUT})
45 ])