From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hugh Sasse Newsgroups: gmane.lisp.guile.user Subject: Re: Gmp now working, but number.c:147 isinf declared implicitly. Date: Fri, 19 Jan 2007 10:02:05 +0000 (WET) Message-ID: References: <87fyafvol7.fsf@zip.com.au> <87fyacuj4h.fsf@zip.com.au> <877ivjam2c.fsf@zip.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1169201053 12449 80.91.229.12 (19 Jan 2007 10:04:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 10:04:13 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 19 11:04:09 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H7qbK-0005xj-AX for guile-user@m.gmane.org; Fri, 19 Jan 2007 11:04:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7qbI-0002Uf-TB for guile-user@m.gmane.org; Fri, 19 Jan 2007 05:04:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7qaI-000227-WE for guile-user@gnu.org; Fri, 19 Jan 2007 05:02:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7qaC-0001xv-S0 for guile-user@gnu.org; Fri, 19 Jan 2007 05:02:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7qaC-0001xo-Ke for guile-user@gnu.org; Fri, 19 Jan 2007 05:02:52 -0500 Original-Received: from [146.227.160.29] (helo=mail2.dmu.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7qaB-0006qS-Uc for guile-user@gnu.org; Fri, 19 Jan 2007 05:02:52 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail2.dmu.ac.uk (Postfix) with ESMTP id 697467DC9F7; Fri, 19 Jan 2007 10:02:50 +0000 (GMT) Original-Received: from europa.cse.dmu.ac.uk (europa.cse.dmu.ac.uk [146.227.57.47]) by mail2.dmu.ac.uk (Postfix) with ESMTP id 10DDB7DC90E; Fri, 19 Jan 2007 10:02:21 +0000 (GMT) Original-Received: from brains ([146.227.22.1]) by europa.cse.dmu.ac.uk (8.13.6/8.13.6) with ESMTP id l0JA261C027517; Fri, 19 Jan 2007 10:02:07 GMT Original-Received: from brains.eng.cse.dmu.ac.uk ([146.227.22.1] helo=brains) by brains with esmtp (Exim 4.44) id 1H7qZS-0003yi-7Q; Fri, 19 Jan 2007 10:02:06 +0000 X-X-Sender: hgs@brains.eng.cse.dmu.ac.uk Original-To: Kevin Ryde In-Reply-To: <877ivjam2c.fsf@zip.com.au> X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5801 Archived-At: On Fri, 19 Jan 2007, Kevin Ryde wrote: > Hugh Sasse writes: > > > > ./.libs/libguile.so: undefined reference to `isinf' > > > > At which point I am now stuck. After all, configure found isinf. > > You might be able to stick something in to save the conftest.c used. Possibly. I'm not familiar enough with autoconf to be confident about that. Indeed, I'm a bit stuck as to how to get into understanding that whole area. There used to be just autoconf, now there's automake, autotools and I'm really unsure where to start afresh to learn this, despite googling, blundering around gnu.org in search of something, etc.... > Or maybe it's no more than > > #include > int main () { return (isinf(0.0) != 0); } bash-2.05$ cat isinf.c #include #include int main(void); int main (void) { printf ("isinf(0.0) gives %d\n",isinf(0.0)); printf ("(isinf(0.0) != 0) gives %d\n",(isinf(0.0) != 0)); return (0); } bash-2.05$ gcc -o isinf isinf.c bash-2.05$ ./isinf isinf(0.0) gives 0 (isinf(0.0) != 0) gives 0 bash-2.05$ > > In any case if you want to advise what should or shouldn't be tested > or done ... > > > autoreconf -if > > (with autoconf 2.61) I get a vastly different configure script > > with spurious "-n"s sprinkled throughout: > > > > bash-2.05$ gdiff -u configure{.orig,} | head -20 > > --- configure.orig 2006-10-07 04:54:24.000000000 +0100 > > +++ configure 2007-01-16 14:41:07.226209000 +0000 > > @@ -1,6 +1,8 @@ > > #! /bin/sh > > # Guess values for system-dependent variables and create Makefiles. > > -# Generated by GNU Autoconf 2.60a for guile 1.8.1. > > +# Generated by GNU Autoconf 2.61 for -n guile > > + -n 1.8.1 > > +. > > Ahh, thanks. "echo -n" used in configure.in is not portable :(. In No. I've seen all sorts of tests in config files to figure this out. I think it is even mentioned in Perls (non-autoconf) configure dialogue. > the AC_INIT you should be able to replace the m4_esyscmd with some > hard coded numbers. I'll try to do something that strips the newline > using m4. I'll see if it makes any sense to me, but I expect you'll get there first. > Hugh _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user