From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.bugs Subject: Re: [Patch] --with-threads on MinGW Date: Thu, 14 Dec 2006 10:29:22 +1100 Message-ID: <87d56nnzn1.fsf@zip.com.au> References: <457316BF.6090003@web.de> <87veks33jf.fsf@zip.com.au> <457490A5.80601@web.de> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1166052724 7640 80.91.229.10 (13 Dec 2006 23:32:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2006 23:32:04 +0000 (UTC) Cc: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Dec 14 00:32:02 2006 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GudZs-0001ZE-Fy for guile-bugs@m.gmane.org; Thu, 14 Dec 2006 00:31:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GudZs-0004VN-1b for guile-bugs@m.gmane.org; Wed, 13 Dec 2006 18:31:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GudZp-0004UU-Ic for bug-guile@gnu.org; Wed, 13 Dec 2006 18:31:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GudZn-0004Sv-2w for bug-guile@gnu.org; Wed, 13 Dec 2006 18:31:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GudZm-0004Sj-VT for bug-guile@gnu.org; Wed, 13 Dec 2006 18:31:51 -0500 Original-Received: from [61.8.2.215] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GudZm-0007PD-02 for bug-guile@gnu.org; Wed, 13 Dec 2006 18:31:50 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id E9B675BFF7E; Thu, 14 Dec 2006 10:29:25 +1100 (EST) Original-Received: from localhost (ppp245A.dyn.pacific.net.au [61.8.36.90]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 2CF908C10; Thu, 14 Dec 2006 10:29:25 +1100 (EST) Original-Received: from gg by localhost with local (Exim 4.63) (envelope-from ) id 1GudXP-0005hW-9s; Thu, 14 Dec 2006 10:29:23 +1100 Original-To: Nils Durner In-Reply-To: <457490A5.80601@web.de> (Nils Durner's message of "Mon, 04 Dec 2006 22:18:29 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3425 Archived-At: --=-=-= Nils Durner writes: > > The only timespec declaration on Win32 is the one in pthread.h, (Taking bits one at a time so I don't get confused.) I checked in the change below to hopefully detect. My debian mingw cross doesn't have pthread.h at all, so I can't actually test it. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=configure.in.pthread-timespec.diff --- configure.in.~1.268.2.23.~ 2006-12-03 10:19:27.000000000 +1100 +++ configure.in 2006-12-14 10:10:18.000000000 +1100 @@ -622,10 +622,12 @@ # Reasons for testing: # netdb.h - not in mingw # sys/param.h - not in mingw +# pthread.h - only available with pthreads. ACX_PTHREAD doesn't +# check this specifically, we need it for the timespec test below. # sethostname - the function itself check because it's not in mingw, # the DECL is checked because Solaris 10 doens't have in any header # -AC_CHECK_HEADERS(crypt.h netdb.h sys/param.h sys/resource.h sys/file.h) +AC_CHECK_HEADERS(crypt.h netdb.h pthread.h sys/param.h sys/resource.h sys/file.h) AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname) AC_CHECK_DECLS([sethostname]) @@ -1034,17 +1036,22 @@ fi +# On mingw, struct timespec is in . +# AC_MSG_CHECKING(for struct timespec) AC_CACHE_VAL(scm_cv_struct_timespec, AC_TRY_COMPILE([ -#include ], +#include +#if HAVE_PTHREAD_H +#include +#endif], [struct timespec t; t.tv_nsec = 100], scm_cv_struct_timespec="yes", scm_cv_struct_timespec="no")) AC_MSG_RESULT($scm_cv_struct_timespec) if test $scm_cv_struct_timespec = yes; then AC_DEFINE(HAVE_STRUCT_TIMESPEC, 1, - [Define this if your system defines struct timespec via .]) + [Define this if your system defines struct timespec via either or .]) fi #-------------------------------------------------------------------- --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile --=-=-=--