3 dnl Copyright (C) 1996-2005, 2006, 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
8 dnl This file is part of CACAO.
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.
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.
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
25 dnl $Id: configure.ac 7228 2007-01-19 01:13:48Z edwin $
28 dnl check if softfloat should be used
30 AC_DEFUN([AC_CHECK_SOFTFLOAT],[
31 AC_MSG_CHECKING(whether softfloat should be used)
32 AC_ARG_ENABLE([softfloat],
33 [AS_HELP_STRING(--enable-softfloat,use softfloat [[default=no]])],
34 [case "${enableval}" in
42 [ENABLE_SOFTFLOAT=no])
43 AC_MSG_RESULT(${ENABLE_SOFTFLOAT})
45 if test x"${ENABLE_SOFTFLOAT}" = "xyes"; then
46 AC_DEFINE([ENABLE_SOFTFLOAT], 1, [enable softfloat])
51 dnl check if soft float compare should be used
53 AC_DEFUN([AC_CHECK_SOFT_FLOAT_CMP],[
54 AC_MSG_CHECKING(whether soft float cmp should be used)
55 AC_ARG_ENABLE([soft-float-cmp],
56 [AS_HELP_STRING(--enable-soft-float-cmp,use soft float cmp [[default=no]])],
57 [case "${enableval}" in
59 ENABLE_SOFT_FLOAT_CMP=yes
62 ENABLE_SOFT_FLOAT_CMP=no
65 [ENABLE_SOFT_FLOAT_CMP=no])
66 AC_MSG_RESULT(${ENABLE_SOFT_FLOAT_CMP})
68 if test x"${ENABLE_SOFT_FLOAT_CMP}" = "xyes"; then
69 AC_DEFINE([ENABLE_SOFT_FLOAT_CMP], 1, [enable soft float cmp])
74 dnl check if soft double compare should be used
76 AC_DEFUN([AC_CHECK_SOFT_DOUBLE_CMP],[
77 AC_MSG_CHECKING(whether soft double cmp should be used)
78 AC_ARG_ENABLE([soft-double-cmp],
79 [AS_HELP_STRING(--enable-soft-double-cmp,use soft double cmp [[default=no]])],
80 [case "${enableval}" in
82 ENABLE_SOFT_DOUBLE_CMP=yes
85 ENABLE_SOFT_DOUBLE_CMP=no
88 [ENABLE_SOFT_DOUBLE_CMP=no])
89 AC_MSG_RESULT(${ENABLE_SOFT_DOUBLE_CMP})
91 if test x"${ENABLE_SOFT_DOUBLE_CMP}" = "xyes"; then
92 AC_DEFINE([ENABLE_SOFT_DOUBLE_CMP], 1, [enable soft double cmp])