Lines 22-44
AC_DEFUN([AX_C_FLOAT_WORDS_BIGENDIAN],
Link Here
|
22 |
# file, the target platform stores float words in big-endian order. If grep |
22 |
# file, the target platform stores float words in big-endian order. If grep |
23 |
# finds "seesnoon", float words are in little-endian order. If neither value |
23 |
# finds "seesnoon", float words are in little-endian order. If neither value |
24 |
# is found, the user is instructed to specify the ordering. |
24 |
# is found, the user is instructed to specify the ordering. |
25 |
|
25 |
|
26 |
ax_cv_c_float_words_bigendian=unknown |
26 |
ax_cv_c_float_words_bigendian=unknown |
27 |
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
27 |
AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
28 |
|
28 |
|
29 |
double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; |
29 |
double d __attribute__((used)) = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; |
|
|
30 |
int main() { return 0; } |
30 |
|
31 |
|
31 |
]])], [ |
32 |
]])], [ |
32 |
|
33 |
|
33 |
# allow users to override default 'strings' with 'llvm-strings' |
34 |
# allow users to override default 'strings' with 'llvm-strings' |
34 |
# or ${CHOST}-strings. |
35 |
# or ${CHOST}-strings. |
35 |
AC_CHECK_TOOL([STRINGS], [strings]) |
36 |
AC_CHECK_TOOL([STRINGS], [strings]) |
36 |
if $STRINGS - conftest.$ac_objext | grep noonsees >/dev/null ; then |
37 |
if $STRINGS - conftest | grep noonsees >/dev/null ; then |
37 |
ax_cv_c_float_words_bigendian=yes |
38 |
ax_cv_c_float_words_bigendian=yes |
38 |
fi |
39 |
fi |
39 |
if $STRINGS - conftest.$ac_objext | grep seesnoon >/dev/null ; then |
40 |
if $STRINGS - conftest | grep seesnoon >/dev/null ; then |
40 |
if test "$ax_cv_c_float_words_bigendian" = unknown; then |
41 |
if test "$ax_cv_c_float_words_bigendian" = unknown; then |
41 |
ax_cv_c_float_words_bigendian=no |
42 |
ax_cv_c_float_words_bigendian=no |
42 |
else |
43 |
else |
43 |
ax_cv_c_float_words_bigendian=unknown |
44 |
ax_cv_c_float_words_bigendian=unknown |
44 |
fi |
45 |
fi |