|
From: <cli...@li...> - 2005-06-02 03:12:57
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp/src ChangeLog,1.4655,1.4656 (Bruno Haible) 2. clisp/src/autoconf aclocal.m4,1.149,1.150 (Bruno Haible) 3. clisp/src/m4 poll.m4,1.1,1.2 (Bruno Haible) 4. clisp/src configure,1.123,1.124 (Bruno Haible) 5. clisp/src ChangeLog,1.4656,1.4657 (Bruno Haible) 6. clisp/src spvw_language.d,1.31,1.32 ChangeLog,1.4657,1.4658 (Bruno Haible) --__--__-- Message: 1 From: Bruno Haible <ha...@us...> To: cli...@li... Subject: clisp/src ChangeLog,1.4655,1.4656 Date: Wed, 01 Jun 2005 11:29:36 +0000 Reply-To: cli...@li... Update of /cvsroot/clisp/clisp/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31878 Modified Files: ChangeLog Log Message: Check against MacOS X 10.4.0 poll() bug. Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.4655 retrieving revision 1.4656 diff -u -d -r1.4655 -r1.4656 --- ChangeLog 31 May 2005 15:18:07 -0000 1.4655 +++ ChangeLog 1 Jun 2005 11:29:21 -0000 1.4656 @@ -1,3 +1,7 @@ +2005-06-01 Bruno Haible <br...@cl...> + + * m4/poll.m4 (CL_POLL): Check against MacOS X 10.4.0 poll() bug. + 2005-05-30 Bruno Haible <br...@cl...> * hashtabl.d (SXHASH): Fix compilation error on platforms where --__--__-- Message: 2 From: Bruno Haible <ha...@us...> To: cli...@li... Subject: clisp/src/autoconf aclocal.m4,1.149,1.150 Date: Wed, 01 Jun 2005 11:30:51 +0000 Reply-To: cli...@li... Update of /cvsroot/clisp/clisp/src/autoconf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32584/src/autoconf Modified Files: aclocal.m4 Log Message: Regenerated. Index: aclocal.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/src/autoconf/aclocal.m4,v retrieving revision 1.149 retrieving revision 1.150 diff -u -d -r1.149 -r1.150 --- aclocal.m4 23 May 2005 19:21:44 -0000 1.149 +++ aclocal.m4 1 Jun 2005 11:30:47 -0000 1.150 @@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.9.2 -*- Autoconf -*- +# generated automatically by aclocal 1.9.5 -*- Autoconf -*- -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 -# Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,39 +11,6 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. -# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40) -dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -# Test for the GNU C Library, version 2.1 or newer. -# From Bruno Haible. - -AC_DEFUN([jm_GLIBC21], - [ - AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, - ac_cv_gnu_library_2_1, - [AC_EGREP_CPP([Lucky GNU user], - [ -#include <features.h> -#ifdef __GNU_LIBRARY__ - #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) - Lucky GNU user - #endif -#endif - ], - ac_cv_gnu_library_2_1=yes, - ac_cv_gnu_library_2_1=no) - ] - ) - AC_SUBST(GLIBC21) - GLIBC21="$ac_cv_gnu_library_2_1" - ] -) - dnl -*- Autoconf -*- dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU @@ -11128,7 +11095,7 @@ ]) dnl -*- Autoconf -*- -dnl Copyright (C) 2004 Free Software Foundation, Inc. +dnl Copyright (C) 2004-2005 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -11141,8 +11108,46 @@ AC_DEFUN([CL_POLL], [AC_REQUIRE([CL_OPENFLAGS])dnl -AC_CHECK_FUNCS(poll) -if test $ac_cv_func_poll = yes; then +AC_CHECK_FUNC(poll, + [# Check whether poll() works on special files (like /dev/null) and + # and ttys (like /dev/tty). On MacOS X 10.4.0, it doesn't. + AC_TRY_RUN([ +#include <fcntl.h> +#include <poll.h> + int main() + { + struct pollfd ufd; + /* Try /dev/null for reading. */ + ufd.fd = open ("/dev/null", O_RDONLY); + if (ufd.fd < 0) /* If /dev/null does not exist, it's not MacOS X. */ + return 0; + ufd.events = POLLIN; + ufd.revents = 0; + if (!(poll (&ufd, 1, 0) == 1 && ufd.revents == POLLIN)) + return 1; + /* Try /dev/null for writing. */ + ufd.fd = open ("/dev/null", O_WRONLY); + if (ufd.fd < 0) /* If /dev/null does not exist, it's not MacOS X. */ + return 0; + ufd.events = POLLOUT; + ufd.revents = 0; + if (!(poll (&ufd, 1, 0) == 1 && ufd.revents == POLLOUT)) + return 1; + /* Trying /dev/tty may be too environment dependent. */ + return 0; + }], + [cl_cv_func_poll=yes], + [cl_cv_func_poll=no], + [# When cross-compiling, assume that poll() works everywhere except on + # MacOS X, regardless of its version. + AC_EGREP_CPP([MacOSX], [ +#if defined(__APPLE__) && defined(__MACH__) +This is MacOSX +#endif +], [cl_cv_func_poll=no], [cl_cv_func_poll=yes])])]) +if test $cl_cv_func_poll = yes; then + AC_DEFINE([HAVE_POLL], 1, + [Define to 1 if you have the 'poll' function and it works.]) # Now check whether poll() works reliably on regular files, i.e. signals # immediate readability and writability, both before EOF and at EOF. # On FreeBSD 4.0, it doesn't. --__--__-- Message: 3 From: Bruno Haible <ha...@us...> To: cli...@li... Subject: clisp/src/m4 poll.m4,1.1,1.2 Date: Wed, 01 Jun 2005 11:29:23 +0000 Reply-To: cli...@li... Update of /cvsroot/clisp/clisp/src/m4 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31878/m4 Modified Files: poll.m4 Log Message: Check against MacOS X 10.4.0 poll() bug. Index: poll.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/src/m4/poll.m4,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- poll.m4 1 Nov 2004 11:20:39 -0000 1.1 +++ poll.m4 1 Jun 2005 11:29:20 -0000 1.2 @@ -1,5 +1,5 @@ dnl -*- Autoconf -*- -dnl Copyright (C) 2004 Free Software Foundation, Inc. +dnl Copyright (C) 2004-2005 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -12,8 +12,46 @@ AC_DEFUN([CL_POLL], [AC_REQUIRE([CL_OPENFLAGS])dnl -AC_CHECK_FUNCS(poll) -if test $ac_cv_func_poll = yes; then +AC_CHECK_FUNC(poll, + [# Check whether poll() works on special files (like /dev/null) and + # and ttys (like /dev/tty). On MacOS X 10.4.0, it doesn't. + AC_TRY_RUN([ +#include <fcntl.h> +#include <poll.h> + int main() + { + struct pollfd ufd; + /* Try /dev/null for reading. */ + ufd.fd = open ("/dev/null", O_RDONLY); + if (ufd.fd < 0) /* If /dev/null does not exist, it's not MacOS X. */ + return 0; + ufd.events = POLLIN; + ufd.revents = 0; + if (!(poll (&ufd, 1, 0) == 1 && ufd.revents == POLLIN)) + return 1; + /* Try /dev/null for writing. */ + ufd.fd = open ("/dev/null", O_WRONLY); + if (ufd.fd < 0) /* If /dev/null does not exist, it's not MacOS X. */ + return 0; + ufd.events = POLLOUT; + ufd.revents = 0; + if (!(poll (&ufd, 1, 0) == 1 && ufd.revents == POLLOUT)) + return 1; + /* Trying /dev/tty may be too environment dependent. */ + return 0; + }], + [cl_cv_func_poll=yes], + [cl_cv_func_poll=no], + [# When cross-compiling, assume that poll() works everywhere except on + # MacOS X, regardless of its version. + AC_EGREP_CPP([MacOSX], [ +#if defined(__APPLE__) && defined(__MACH__) +This is MacOSX +#endif +], [cl_cv_func_poll=no], [cl_cv_func_poll=yes])])]) +if test $cl_cv_func_poll = yes; then + AC_DEFINE([HAVE_POLL], 1, + [Define to 1 if you have the 'poll' function and it works.]) # Now check whether poll() works reliably on regular files, i.e. signals # immediate readability and writability, both before EOF and at EOF. # On FreeBSD 4.0, it doesn't. --__--__-- Message: 4 From: Bruno Haible <ha...@us...> To: cli...@li... Subject: clisp/src configure,1.123,1.124 Date: Wed, 01 Jun 2005 11:31:15 +0000 Reply-To: cli...@li... Update of /cvsroot/clisp/clisp/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv454/src Modified Files: configure Log Message: Regenerated. Index: configure =================================================================== RCS file: /cvsroot/clisp/clisp/src/configure,v retrieving revision 1.123 retrieving revision 1.124 diff -u -d -r1.123 -r1.124 --- configure 18 May 2005 21:35:43 -0000 1.123 +++ configure 1 Jun 2005 11:31:10 -0000 1.124 @@ -18274,13 +18274,9 @@ fi fi - -for ac_func in poll -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then +echo "$as_me:$LINENO: checking for poll" >&5 +echo $ECHO_N "checking for poll... $ECHO_C" >&6 +if test "${ac_cv_func_poll+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18289,12 +18285,12 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. +/* Define poll to an innocuous variant, in case <limits.h> declares poll. For example, HP-UX 11i <limits.h> declares gettimeofday. */ -#define $ac_func innocuous_$ac_func +#define poll innocuous_poll /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. + which can conflict with char poll (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ @@ -18304,7 +18300,7 @@ # include <assert.h> #endif -#undef $ac_func +#undef poll /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus @@ -18313,14 +18309,14 @@ #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char $ac_func (); +char poll (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +#if defined (__stub_poll) || defined (__stub___poll) choke me #else -char (*f) () = $ac_func; +char (*f) () = poll; #endif #ifdef __cplusplus } @@ -18329,7 +18325,7 @@ int main () { -return f != $ac_func; +return f != poll; ; return 0; } @@ -18356,27 +18352,107 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_cv_func_poll=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +ac_cv_func_poll=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 +echo "${ECHO_T}$ac_cv_func_poll" >&6 +if test $ac_cv_func_poll = yes; then + # Check whether poll() works on special files (like /dev/null) and + # and ttys (like /dev/tty). On MacOS X 10.4.0, it doesn't. + if test "$cross_compiling" = yes; then + # When cross-compiling, assume that poll() works everywhere except on + # MacOS X, regardless of its version. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#if defined(__APPLE__) && defined(__MACH__) +This is MacOSX +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "MacOSX" >/dev/null 2>&1; then + cl_cv_func_poll=no +else + cl_cv_func_poll=yes fi -done +rm -f conftest* + +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include <fcntl.h> +#include <poll.h> + int main() + { + struct pollfd ufd; + /* Try /dev/null for reading. */ + ufd.fd = open ("/dev/null", O_RDONLY); + if (ufd.fd < 0) /* If /dev/null does not exist, it's not MacOS X. */ + return 0; + ufd.events = POLLIN; + ufd.revents = 0; + if (!(poll (&ufd, 1, 0) == 1 && ufd.revents == POLLIN)) + return 1; + /* Try /dev/null for writing. */ + ufd.fd = open ("/dev/null", O_WRONLY); + if (ufd.fd < 0) /* If /dev/null does not exist, it's not MacOS X. */ + return 0; + ufd.events = POLLOUT; + ufd.revents = 0; + if (!(poll (&ufd, 1, 0) == 1 && ufd.revents == POLLOUT)) + return 1; + /* Trying /dev/tty may be too environment dependent. */ + return 0; + } +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cl_cv_func_poll=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +cl_cv_func_poll=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi + +if test $cl_cv_func_poll = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_POLL 1 +_ACEOF -if test $ac_cv_func_poll = yes; then # Now check whether poll() works reliably on regular files, i.e. signals # immediate readability and writability, both before EOF and at EOF. # On FreeBSD 4.0, it doesn't. --__--__-- Message: 5 From: Bruno Haible <ha...@us...> To: cli...@li... Subject: clisp/src ChangeLog,1.4656,1.4657 Date: Wed, 01 Jun 2005 12:31:08 +0000 Reply-To: cli...@li... Update of /cvsroot/clisp/clisp/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2024 Modified Files: ChangeLog Log Message: Oops, fix truncation. Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.4656 retrieving revision 1.4657 diff -u -d -r1.4656 -r1.4657 --- ChangeLog 1 Jun 2005 11:29:21 -0000 1.4656 +++ ChangeLog 1 Jun 2005 12:30:52 -0000 1.4657 @@ -29105,85004 +29105,9122 @@ 2000-05-21 Bruno Haible <ha...@cl...> - * init.lisp (LOAD): Add :external-format argument and conditi - - - - - - - [...92328 lines suppressed...] + * hashtabl.d (tuple_half_1, tuple_half_2): Use `const'. + * intmal.d (mulu_2loop_down, mulu_2bigloop_down, fakul_table): Use + `const'. + * intprint.d (table, UDS_to_DIGITS): Use `const'. + * io.d (orig_syntax_table, orig_readtable, SET-READTABLE-CASE) + (attribute_table, char_reader, pr_character, pr_stream): Use `const'. + * lisparit.d (pi_mantisse, ln2_mantisse, ln10_mantisse): Use `const'. + * lispbibl.d (fsubr_tab): Use `const'. + * predtype.d (init_hs_locals_rest): Use `const'. + * realrand.d (multiplier): Use `const'. + * sequence.d (test_start_end, test_start_end_1): Use `const'. + * spvw.d (pname_table, package_index_table, init_symbol_tab_2) + (fsubr_data_tab, object_initstring_tab, features_initstring) + (init_object_tab, banner, banner2, banner3, main) + (loadmem_aktualisiere, copyright_notice): Use `const'. +1997-09-27 Bruno Haible <br...@li...> + * acspecific.m4 (AC_FUNC_VFORK): Fix so that it works right when + cross-compiling. --__--__-- Message: 6 From: Bruno Haible <ha...@us...> To: cli...@li... Subject: clisp/src spvw_language.d,1.31,1.32 ChangeLog,1.4657,1.4658 Date: Wed, 01 Jun 2005 12:54:39 +0000 Reply-To: cli...@li... Update of /cvsroot/clisp/clisp/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15122 Modified Files: spvw_language.d ChangeLog Log Message: Oops, fix syntax error in last patch. Index: spvw_language.d =================================================================== RCS file: /cvsroot/clisp/clisp/src/spvw_language.d,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- spvw_language.d 30 May 2005 13:09:13 -0000 1.31 +++ spvw_language.d 1 Jun 2005 12:54:33 -0000 1.32 @@ -180,7 +180,7 @@ textdomain(textdomain(NULL)); } #endif - chosen2: + chosen2: ; # At this point we have chosen the language based upon an # environment variable GNU gettext knows about. #ifdef GNU_GETTEXT Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.4657 retrieving revision 1.4658 diff -u -d -r1.4657 -r1.4658 --- ChangeLog 1 Jun 2005 12:30:52 -0000 1.4657 +++ ChangeLog 1 Jun 2005 12:54:33 -0000 1.4658 @@ -1,5 +1,9 @@ 2005-06-01 Bruno Haible <br...@cl...> + * spvw_language.d (init_language): Fix syntax error in last patch. + +2005-06-01 Bruno Haible <br...@cl...> + * m4/poll.m4 (CL_POLL): Check against MacOS X 10.4.0 poll() bug. 2005-05-30 Bruno Haible <br...@cl...> --__--__-- _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest |