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
26 dnl check if softfloat should be used
28 AC_DEFUN([AC_CHECK_SOFTFLOAT],[
29 AC_MSG_CHECKING(whether softfloat should be used)
30 AC_ARG_ENABLE([softfloat],
31 [AS_HELP_STRING(--enable-softfloat,use softfloat [[default=no]])],
32 [case "${enableval}" in
40 [ENABLE_SOFTFLOAT=no])
41 AC_MSG_RESULT(${ENABLE_SOFTFLOAT})
43 if test x"${ENABLE_SOFTFLOAT}" = "xyes"; then
44 AC_DEFINE([ENABLE_SOFTFLOAT], 1, [enable softfloat])
49 dnl check if soft float compare should be used
51 AC_DEFUN([AC_CHECK_SOFT_FLOAT_CMP],[
52 AC_MSG_CHECKING(whether soft float cmp should be used)
53 AC_ARG_ENABLE([soft-float-cmp],
54 [AS_HELP_STRING(--enable-soft-float-cmp,use soft float cmp [[default=no]])],
55 [case "${enableval}" in
57 ENABLE_SOFT_FLOAT_CMP=yes
60 ENABLE_SOFT_FLOAT_CMP=no
63 [ENABLE_SOFT_FLOAT_CMP=no])
64 AC_MSG_RESULT(${ENABLE_SOFT_FLOAT_CMP})
66 if test x"${ENABLE_SOFT_FLOAT_CMP}" = "xyes"; then
67 AC_DEFINE([ENABLE_SOFT_FLOAT_CMP], 1, [enable soft float cmp])
72 dnl check if soft double compare should be used
74 AC_DEFUN([AC_CHECK_SOFT_DOUBLE_CMP],[
75 AC_MSG_CHECKING(whether soft double cmp should be used)
76 AC_ARG_ENABLE([soft-double-cmp],
77 [AS_HELP_STRING(--enable-soft-double-cmp,use soft double cmp [[default=no]])],
78 [case "${enableval}" in
80 ENABLE_SOFT_DOUBLE_CMP=yes
83 ENABLE_SOFT_DOUBLE_CMP=no
86 [ENABLE_SOFT_DOUBLE_CMP=no])
87 AC_MSG_RESULT(${ENABLE_SOFT_DOUBLE_CMP})
89 if test x"${ENABLE_SOFT_DOUBLE_CMP}" = "xyes"; then
90 AC_DEFINE([ENABLE_SOFT_DOUBLE_CMP], 1, [enable soft double cmp])