From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: stefan Newsgroups: gmane.lisp.guile.devel Subject: Re: native Win32 guile 1.7.0 Date: Fri, 30 May 2003 05:23:15 +0200 (CEST) Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <87of1lny7w.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1054265085 20466 80.91.224.249 (30 May 2003 03:24:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 May 2003 03:24:45 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri May 30 05:24:42 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19LaVV-0005Jh-00 for ; Fri, 30 May 2003 05:24:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LaX9-0003ET-8b for guile-devel@m.gmane.org; Thu, 29 May 2003 23:26:23 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19LaWy-0003Bm-0F for guile-devel@gnu.org; Thu, 29 May 2003 23:26:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19LaWw-0003Bb-ME for guile-devel@gnu.org; Thu, 29 May 2003 23:26:11 -0400 Original-Received: from obh.snafu.de ([213.73.92.34]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LaWi-00036F-OS for guile-devel@gnu.org; Thu, 29 May 2003 23:25:56 -0400 Original-Received: from p-164-211.zrz.tu-berlin.de ([130.149.164.211] helo=bono) by obh.snafu.de with asmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.36 #1) id 19LaWd-000AS1-00; Fri, 30 May 2003 05:25:54 +0200 Original-Received: from localhost ([127.0.0.1] ident=ela) by bono with esmtp (Exim 3.36 #1) id 19LaU8-0000Nd-00; Fri, 30 May 2003 05:23:16 +0200 X-X-Sender: stefan@bono.reversers.net Original-To: Kevin Ryde In-Reply-To: <87of1lny7w.fsf@zip.com.au> X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2455 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2455 On Fri, 30 May 2003, Kevin Ryde wrote: > stefan writes: > > > > * posix.c (s_scm_putenv): Disable use of unsetenv() for the > > mingw32 build. > > > > #ifndef __MINGW32__ > > It'd be good autoconf style to test unsetenv with AC_CHECK_FUNCS if > it's not always available. In particular that way it gets used if > added to mingw in the future. > > Perhaps environ could be munged directly if unsetenv doesn't exist. > Might end up being a memory leak. Probably not ideal to silently do > nothing. I can remember that on Win32 an environment variable can be unset via putenv somehow... I'll investigate that. > > * mkstemp.c: Provide prototype to avoid compiler warning. > > It's usually best to just omit prototypes if they're not in a standard > header, and the return value is only an int. It's all too easy to end > up with a conflict on some obscure system. AC_CHECK_DECLS is the way > to go if you really want a declaration. In fact there is no mkstemp() on Win32. Basically the mkstemp.o gets added to the list of objects when there is no in the libc. That is why I think the prototype can be written there (same as with inet_aton). > > * configure.in: Removed -lm check > > > > if test $MINGW32 = no; then > > AC_CHECK_LIB(m, main) > > fi > > Doesn't it simply find -lm doesn't exist and continue? If there has > to be a hard system dependency, autoconf deprecates $MINGW32 in favour > of "case $host in *-*-mingw*)" etc. > > Libtool has an AC_CHECK_LIBM which knows about a few systems. We use > it in gmp, not actually documented though. The -lm is found but not used for anything. When -lm is on the linker line libtool would fail to create a dll, that is why I removed it for mingw32. Cheers, stefan@lkcc.org _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel