* configure.in: Define SCM_SINGLES whenever a float can fit in a

long, not only when a float is the same size as a long.  This gets
us SCM_SINGLES defined on alphas.  (Thanks to Clark McGrew.)
* configure: Regenerated.
This commit is contained in:
Jim Blandy 1998-10-14 21:25:17 +00:00
commit 3a17131185
2 changed files with 72 additions and 41 deletions

View file

@ -246,10 +246,22 @@ AC_TRY_RUN(aux (l) unsigned long l;
main () { int q; aux((unsigned long)&q); },
AC_DEFINE(SCM_STACK_GROWS_UP),,AC_MSG_WARN(Guessing that stack grows down -- see scmconfig.h.in))
AC_CACHE_CHECK([whether floats fit in longs], guile_cv_type_float_fits_long,
[AC_TRY_RUN([main () { exit (sizeof(float) > sizeof(long)); }],
[guile_cv_type_float_fits_long=yes],
[guile_cv_type_float_fits_long=no],
[guile_cv_type_float_fits_long=guess-yes])])
case $guile_cv_type_float_fits_long in
"yes" )
AC_DEFINE(SCM_SINGLES)
;;
"guess-yes" )
AC_DEFINE(SCM_SINGLES)
AC_MSG_WARN([guessing that sizeof(long) == sizeof(float)])
AC_MSG_WARN([see SCM_SINGLES in scmconfig.h.in])
;;
esac
AC_TRY_RUN(main () { exit (sizeof(float) != sizeof(long)); },
AC_DEFINE(SCM_SINGLES),,AC_DEFINE(SCM_SINGLES)
AC_MSG_WARN(Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in))
AC_MSG_CHECKING(for struct linger)
AC_CACHE_VAL(scm_cv_struct_linger,