* configure SCM_SINGLES
@ 2003-05-11 23:02 Kevin Ryde
2003-05-12 5:06 ` Rob Browning
2003-05-12 23:00 ` Kevin Ryde
0 siblings, 2 replies; 3+ messages in thread
From: Kevin Ryde @ 2003-05-11 23:02 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 418 bytes --]
I applied a change,
* configure.in (SCM_SINGLES): Use AC_CHECK_SIZEOF(float), to
eliminated guess-yes when cross compiling.
I left the test as sizeof(float)<=sizeof(long), because that's what
the AC_TRY_RUN did, though the template and warning message say "same
size".
Is SCM_SINGLES still used? It didn't show up in a grep, and
libguile/ChangeLog-2000 talks about removing conditionals using it.
[-- Attachment #2: configure.in.singles.diff --]
[-- Type: text/plain, Size: 1112 bytes --]
--- configure.in.~1.214.~ 2003-05-12 08:06:15.000000000 +1000
+++ configure.in 2003-05-12 08:50:01.000000000 +1000
@@ -792,25 +792,11 @@
[],
[AC_MSG_WARN(Guessing that stack grows down -- see scmconfig.h)])
-AH_TEMPLATE([SCM_SINGLES],
- [Define this if floats are the same size as longs.])
-
-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_CHECK_SIZEOF(float)
+if test "$ac_cv_sizeof_float" -le "$ac_cv_sizeof_long"; then
+ AC_DEFINE(SCM_SINGLES, 1,
+ [Define this if floats are the same size as longs.])
+fi
AC_MSG_CHECKING(for struct linger)
AC_CACHE_VAL(scm_cv_struct_linger,
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: configure SCM_SINGLES
2003-05-11 23:02 configure SCM_SINGLES Kevin Ryde
@ 2003-05-12 5:06 ` Rob Browning
2003-05-12 23:00 ` Kevin Ryde
1 sibling, 0 replies; 3+ messages in thread
From: Rob Browning @ 2003-05-12 5:06 UTC (permalink / raw)
Kevin Ryde <user42@zip.com.au> writes:
> I left the test as sizeof(float)<=sizeof(long), because that's what
> the AC_TRY_RUN did, though the template and warning message say "same
> size".
>
> Is SCM_SINGLES still used? It didn't show up in a grep, and
> libguile/ChangeLog-2000 talks about removing conditionals using it.
Good question. That's on my list of "things to ask about" too.
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: configure SCM_SINGLES
2003-05-11 23:02 configure SCM_SINGLES Kevin Ryde
2003-05-12 5:06 ` Rob Browning
@ 2003-05-12 23:00 ` Kevin Ryde
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Ryde @ 2003-05-12 23:00 UTC (permalink / raw)
I wrote:
>
> I applied a change,
>
> * configure.in (SCM_SINGLES): Use AC_CHECK_SIZEOF(float), to
> eliminated guess-yes when cross compiling.
Umm, err, I probably should have posted and given a chance for
objections on this, begin a bit more than a typo. Not that it can't
be easily reverted, but still ... :)
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-12 23:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-11 23:02 configure SCM_SINGLES Kevin Ryde
2003-05-12 5:06 ` Rob Browning
2003-05-12 23:00 ` Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).