| Revision 512,
1.0 KB
checked in by dcarter, 4 years ago
(diff) |
|
Merge 0.8 development branch
|
| Line | |
|---|
| 1 | # Copyright (C) 2005-2008 David Carter <arm4@arm4.org> |
|---|
| 2 | # |
|---|
| 3 | # This file is free software; as a special exception the author gives |
|---|
| 4 | # unlimited permission to copy and/or distribute it, with or without |
|---|
| 5 | # modifications, as long as this notice is preserved. |
|---|
| 6 | # |
|---|
| 7 | # This program is distributed in the hope that it will be useful, but |
|---|
| 8 | # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the |
|---|
| 9 | # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|---|
| 10 | |
|---|
| 11 | # Macros to ensure that java floating point values can be shoe horned into |
|---|
| 12 | # other metric fields. |
|---|
| 13 | |
|---|
| 14 | AC_DEFUN([ARM4_FLOAT_KLUDGE], |
|---|
| 15 | [ |
|---|
| 16 | no_kludge="" |
|---|
| 17 | AC_MSG_CHECKING(for float kludge) |
|---|
| 18 | |
|---|
| 19 | AC_RUN_IFELSE([ |
|---|
| 20 | #include "include/arm4.h" |
|---|
| 21 | |
|---|
| 22 | int main (void) |
|---|
| 23 | { |
|---|
| 24 | if (sizeof (float) <= sizeof (arm_metric_cntrdivr32_t)) |
|---|
| 25 | exit (0); |
|---|
| 26 | else |
|---|
| 27 | exit (1); |
|---|
| 28 | } |
|---|
| 29 | ],, no_kludge=yes,) |
|---|
| 30 | |
|---|
| 31 | if test "x$no_kludge" = x ; then |
|---|
| 32 | AC_MSG_RESULT(yes) |
|---|
| 33 | else |
|---|
| 34 | AC_MSG_RESULT(no) |
|---|
| 35 | AC_MSG_ERROR([floating point values can't be forced into arm_metric_cntrdivr32_t fields]) |
|---|
| 36 | fi |
|---|
| 37 | ]) |
|---|
| 38 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.