Index: ossp-pkg/pth/ChangeLog RCS File: /v/ossp/cvs/ossp-pkg/pth/ChangeLog,v rcsdiff -q -kk '-r1.561' '-r1.562' -u '/v/ossp/cvs/ossp-pkg/pth/ChangeLog,v' 2>/dev/null --- ChangeLog 2002/04/27 11:18:57 1.561 +++ ChangeLog 2002/07/01 12:54:54 1.562 @@ -19,6 +19,10 @@ | |_ ___) | __|_(_)____/____________________________________________________________ + *) Upgraded to Autoconf 2.53 environment and cleaned up internal + Autoconf macro usage. + [Ralf S. Engelschall] + *) Fixed lots of English errors in the manual page. [Felix Berger ] Index: ossp-pkg/pth/PORTING RCS File: /v/ossp/cvs/ossp-pkg/pth/PORTING,v rcsdiff -q -kk '-r1.186' '-r1.187' -u '/v/ossp/cvs/ossp-pkg/pth/PORTING,v' 2>/dev/null --- PORTING 2002/01/27 16:39:22 1.186 +++ PORTING 2002/07/01 12:54:54 1.187 @@ -38,6 +38,7 @@ i686-pc-freebsd4.3 | sjlj/ssjlj/sas | down | 1.4a4 i686-pc-freebsd4.2 | sjlj/ssjlj/sas | down | 1.3.7 i586-pc-freebsd5.0 | sjlj/ssjlj/sas | down | 1.3.4 + i386-unknown-freebsd4.6 | sjlj/ssjlj/sas | down | 1.5b1 alpha-unknown-freebsd4.0 | sjlj/ssjlj/sas | down | 1.3.0 alpha-unknown-freebsd5.0 | sjlj/ssjlj/sas | down | 1.3.5 powerpc-unknown-netbsd | sjlj/ssjlj/sas | down | 1.3.2 Index: ossp-pkg/pth/acconfig.h RCS File: /v/ossp/cvs/ossp-pkg/pth/Attic/acconfig.h,v co -q -kk -p'1.29' '/v/ossp/cvs/ossp-pkg/pth/Attic/acconfig.h,v' | diff -u - /dev/null -L'ossp-pkg/pth/acconfig.h' 2>/dev/null --- ossp-pkg/pth/acconfig.h +++ /dev/null 2024-05-16 10:15:34.000000000 +0200 @@ -1,60 +0,0 @@ -/* -** GNU Pth - The GNU Portable Threads -** Copyright (c) 1999-2002 Ralf S. Engelschall -** -** This file is part of GNU Pth, a non-preemptive thread scheduling -** library which can be found at http://www.gnu.org/software/pth/. -** -** This library is free software; you can redistribute it and/or -** modify it under the terms of the GNU Lesser General Public -** License as published by the Free Software Foundation; either -** version 2.1 of the License, or (at your option) any later version. -** -** This library is distributed in the hope that it will be useful, -** but WITHOUT ANY WARRANTY; without even the implied warranty of -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -** Lesser General Public License for more details. -** -** You should have received a copy of the GNU Lesser General Public -** License along with this library; if not, write to the Free Software -** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -** USA, or contact Ralf S. Engelschall . -** -** pth_acdef.h Autoconf defines -*/ - -#ifndef _PTH_ACDEF_H_ -#define _PTH_ACDEF_H_ - -@TOP@ - -/* the custom Autoconf defines */ -#undef HAVE_SIG_ATOMIC_T -#undef HAVE_PID_T -#undef HAVE_STACK_T -#undef HAVE_SIZE_T -#undef HAVE_SSIZE_T -#undef HAVE_SOCKLEN_T -#undef HAVE_NFDS_T -#undef HAVE_OFF_T -#undef HAVE_GETTIMEOFDAY_ARGS1 -#undef HAVE_STRUCT_TIMESPEC -#undef HAVE_SYS_READ -#undef HAVE_POLLIN -#undef HAVE_SS_SP -#undef HAVE_SS_BASE -#undef HAVE_LONGLONG -#undef HAVE_LONGDOUBLE -#undef PTH_DEBUG -#undef PTH_NSIG -#undef PTH_MCTX_MTH_use -#undef PTH_MCTX_DSP_use -#undef PTH_MCTX_STK_use -#undef PTH_STACKGROWTH -#undef PTH_DMALLOC -#undef PTH_EX - -@BOTTOM@ - -#endif /* _PTH_ACDEF_H_ */ - Index: ossp-pkg/pth/acheader.m4 RCS File: /v/ossp/cvs/ossp-pkg/pth/Attic/acheader.m4,v co -q -kk -p'1.7' '/v/ossp/cvs/ossp-pkg/pth/Attic/acheader.m4,v' | diff -u - /dev/null -L'ossp-pkg/pth/acheader.m4' 2>/dev/null --- ossp-pkg/pth/acheader.m4 +++ /dev/null 2024-05-16 10:15:34.000000000 +0200 @@ -1,47 +0,0 @@ -dnl ## -dnl ## GNU Pth - The GNU Portable Threads -dnl ## Copyright (c) 1999-2002 Ralf S. Engelschall -dnl ## -dnl ## This file is part of GNU Pth, a non-preemptive thread scheduling -dnl ## library which can be found at http://www.gnu.org/software/pth/. -dnl ## -dnl ## This library is free software; you can redistribute it and/or -dnl ## modify it under the terms of the GNU Lesser General Public -dnl ## License as published by the Free Software Foundation; either -dnl ## version 2.1 of the License, or (at your option) any later version. -dnl ## -dnl ## This library is distributed in the hope that it will be useful, -dnl ## but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl ## Lesser General Public License for more details. -dnl ## -dnl ## You should have received a copy of the GNU Lesser General Public -dnl ## License along with this library; if not, write to the Free Software -dnl ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -dnl ## USA, or contact Ralf S. Engelschall . -dnl ## -dnl ## acheader.m4: Pth Autoheader macros -dnl ## - -dnl # These macros are replacement macros for use with `autoheader' only !! - -define([AC_CHECK_FUNCTION], [# -@@@funcs="$funcs $1"@@@ -ifelse([$2], , , [ -# If it was found, we do: -$2 -# If it was not found, we do: -$3 -]) -]) - -define([AC_CHECK_FUNCTIONS], [# -@@@funcs="$funcs $1"@@@ -ifelse([$2], , , [ -# If it was found, we do: -$2 -# If it was not found, we do: -$3 -]) -]) - Index: ossp-pkg/pth/aclocal.m4 RCS File: /v/ossp/cvs/ossp-pkg/pth/aclocal.m4,v rcsdiff -q -kk '-r1.94' '-r1.95' -u '/v/ossp/cvs/ossp-pkg/pth/aclocal.m4,v' 2>/dev/null --- aclocal.m4 2002/01/30 13:06:09 1.94 +++ aclocal.m4 2002/07/01 12:54:54 1.95 @@ -140,7 +140,6 @@ dnl ## AC_DEFUN(AC_HEADLINE,[dnl -AC_DIVERT_PUSH(NOTICE)dnl # configuration header if test ".`echo dummy [$]@ | grep enable-subdir`" != .; then enable_subdir=yes @@ -177,7 +176,6 @@ $3_HEX="`$ac_shtool version -lc -dhex $ac_srcdir/$4`" AC_SUBST($3_HEX) fi -AC_DIVERT_POP() ])dnl dnl ## @@ -341,7 +339,7 @@ ])dnl AC_MSG_RESULT([$ac_cv_type_longlong]) if test ".$ac_cv_type_longlong" = .yes; then - AC_DEFINE(HAVE_LONGLONG) + AC_DEFINE(HAVE_LONGLONG, 1, [define if "long long" type exists]) fi ])dnl @@ -360,7 +358,7 @@ ])dnl AC_MSG_RESULT([$ac_cv_type_longdouble]) if test ".$ac_cv_type_longdouble" = .yes; then - AC_DEFINE(HAVE_LONGDOUBLE) + AC_DEFINE(HAVE_LONGDOUBLE, 1, [define if "long double" type exists]) fi ])dnl @@ -388,7 +386,6 @@ *-pipe* ) ;; * ) AC_COMPILER_OPTION(pipe, -pipe, -pipe, CFLAGS="$CFLAGS -pipe") ;; esac - AC_COMPILER_OPTION(ggdb3, -ggdb3, -ggdb3, CFLAGS="$CFLAGS -ggdb3") case $PLATFORM in *-*-freebsd*|*-*-solaris* ) CFLAGS="$CFLAGS -pedantic" ;; esac @@ -404,7 +401,7 @@ esac fi msg="enabled" -AC_DEFINE(PTH_DEBUG) +AC_DEFINE(PTH_DEBUG, 1, [define to enable Pth debugging]) ],[ if test ".$ac_cv_prog_gcc" = ".yes"; then case "$CFLAGS" in @@ -572,7 +569,8 @@ ], ac_cv_define_$1=yes, ac_cv_define_$1=no)])dnl AC_MSG_RESULT($ac_cv_define_$1) if test $ac_cv_define_$1 = yes; then - AC_DEFINE(HAVE_[]translit($1, [a-z], [A-Z])) + AC_DEFINE(HAVE_[]translit($1, [a-z], [A-Z]), 1, + [define if pre-processor define $1 exists in header $2]) fi ]) @@ -597,7 +595,8 @@ ], ac_cv_typedef_$1=yes, ac_cv_typedef_$1=no)])dnl AC_MSG_RESULT($ac_cv_typedef_$1) if test $ac_cv_typedef_$1 = yes; then - AC_DEFINE(HAVE_[]translit($1, [a-z], [A-Z])) + AC_DEFINE(HAVE_[]translit($1, [a-z], [A-Z]), 1, + [define if typedef $1 exists in header $2]) fi ]) @@ -614,7 +613,6 @@ AC_REQUIRE([AC_HEADER_STDC])dnl AC_MSG_CHECKING(for attribute $1 in struct $2 from $3) AC_CACHE_VAL(ac_cv_structattr_$1,[dnl - AC_TRY_LINK([ #include #include <$3> @@ -625,7 +623,8 @@ ], ac_cv_structattr_$1=yes, ac_cv_structattr_$1=no)])dnl AC_MSG_RESULT($ac_cv_structattr_$1) if test $ac_cv_structattr_$1 = yes; then - AC_DEFINE(HAVE_[]translit($1, [a-z], [A-Z])) + AC_DEFINE(HAVE_[]translit($1, [a-z], [A-Z]), 1, + [define if attribute $1 exists in struct $2 from header $3]) fi ]) @@ -942,7 +941,7 @@ else val="+1" fi -AC_DEFINE_UNQUOTED($1, $val) +AC_DEFINE_UNQUOTED($1, $val, [define for stack growth]) ]) dnl ## @@ -1160,7 +1159,7 @@ nsig=32 ) AC_MSG_RESULT([$nsig]) -AC_DEFINE_UNQUOTED($1, $nsig) +AC_DEFINE_UNQUOTED($1, $nsig, [define for number of signals]) ]) dnl ## @@ -1182,7 +1181,7 @@ AC_DEFUN(AC_CHECK_EXTLIB,[dnl AC_ARG_WITH($2,[dnl -[ --with-]m4_substr([$2[[=DIR]] ], 0, 19)[build against $1 library (default=no)]], +[ --with-]m4_substr([$2[[=DIR]] ], 0, 19)[build against $1 library (default=no)]],[dnl if test ".$with_$2" = .yes; then # via config script $2_version=`($2-config --version) 2>/dev/null` @@ -1247,7 +1246,7 @@ fi fi fi - AC_HAVE_HEADERS($4) + AC_CHECK_HEADER($4) AC_CHECK_LIB($2, $3) AC_IFALLYES(header:$4 lib:$2_$3, with_$2=yes, with_$2=no) if test ".$with_$2" = .no; then @@ -1257,7 +1256,7 @@ if test ".$with_$2" = .; then with_$2=no fi -)dnl +])dnl AC_MSG_CHECKING(whether to build against $1 library) if test ".$with_$2" = .yes; then ifelse([$5], , :, [$5]) Index: ossp-pkg/pth/configure.ac RCS File: /v/ossp/cvs/ossp-pkg/pth/configure.ac,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/pth/configure.ac,v' 2>/dev/null --- configure.ac 2002/01/30 13:15:50 1.2 +++ configure.ac 2002/07/01 12:54:54 1.3 @@ -268,7 +268,7 @@ *-*-isc* ) msg="no" ;; # on ISC the compiler test doesn't work esac if test ".$msg" = .yes; then - AC_DEFINE(HAVE_GETTIMEOFDAY_ARGS1) + AC_DEFINE(HAVE_GETTIMEOFDAY_ARGS1, 1, [define if gettimeofday(2) wants a single-argument only]) fi AC_MSG_RESULT([$msg]) @@ -286,7 +286,7 @@ msg="no" ) if test ".$msg" = .yes; then - AC_DEFINE(HAVE_STRUCT_TIMESPEC) + AC_DEFINE(HAVE_STRUCT_TIMESPEC, 1, [define if exists "struct timespec"]) fi AC_MSG_RESULT([$msg]) @@ -323,7 +323,7 @@ dnl # dnl # check for MCSC method -AC_CHECK_HEADERS(ucontext.h) +AC_CHECK_HEADER(ucontext.h,,, [#include ]) AC_CHECK_FUNCS(makecontext swapcontext getcontext setcontext) AC_CHECK_MCSC(mcsc=yes, mcsc=no) @@ -440,9 +440,9 @@ dnl # 5. export the results dnl # -AC_DEFINE_UNQUOTED(PTH_MCTX_MTH_use, [PTH_MCTX_MTH_$mctx_mth]) -AC_DEFINE_UNQUOTED(PTH_MCTX_DSP_use, [PTH_MCTX_DSP_$mctx_dsp]) -AC_DEFINE_UNQUOTED(PTH_MCTX_STK_use, [PTH_MCTX_STK_$mctx_stk]) +AC_DEFINE_UNQUOTED(PTH_MCTX_MTH_use, [PTH_MCTX_MTH_$mctx_mth], [define for machine context method]) +AC_DEFINE_UNQUOTED(PTH_MCTX_DSP_use, [PTH_MCTX_DSP_$mctx_dsp], [define for machine context dispatching]) +AC_DEFINE_UNQUOTED(PTH_MCTX_STK_use, [PTH_MCTX_STK_$mctx_stk], [define for machine context stack]) PTH_MCTX_ID="$mctx_mth/$mctx_dsp/$mctx_stk" AC_MSG_RESULT([decision on mctx implementation... ${TB}${PTH_MCTX_ID}${TN}]) @@ -575,7 +575,8 @@ AC_SUBST(TEST_PTHREAD) dnl # whether to build against OSSP ex library -AC_CHECK_EXTLIB(OSSP ex, ex, __ex_ctx, ex.h, AC_DEFINE(PTH_EX)) +AC_CHECK_EXTLIB(OSSP ex, ex, __ex_ctx, ex.h, + AC_DEFINE(PTH_EX, 1, [define if using OSSP ex in GNU pth])) dnl # whether to build against Sfio library PTH_EXT_SFIO=0 @@ -583,7 +584,8 @@ AC_SUBST(PTH_EXT_SFIO) dnl # whether to build against Dmalloc library -AC_CHECK_EXTLIB(Dmalloc, dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(PTH_DMALLOC)) +AC_CHECK_EXTLIB(Dmalloc, dmalloc, dmalloc_debug, dmalloc.h, + AC_DEFINE(PTH_DMALLOC, 1, [define if using Dmalloc in GNU pth])) dnl ## dnl ## OUTPUT SUBSTITUTION Index: ossp-pkg/pth/devtool.conf RCS File: /v/ossp/cvs/ossp-pkg/pth/devtool.conf,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/pth/devtool.conf,v' 2>/dev/null --- devtool.conf 2002/01/30 13:15:33 1.2 +++ devtool.conf 2002/07/01 12:54:54 1.3 @@ -3,10 +3,9 @@ ## %autogen - @autogen shtool 1.5.4 "1.5.*" echo version scpp mkdir install fixperm tarball + @autogen shtool 1.6.0 "1.6.*" echo version scpp mkdir install fixperm tarball @autogen libtool 1.4.2 "1.4*" - @autogen autoconf 2.52 "2.5.*" - cat acheader.m4 configure.ac | autoheader - >pth_acdef.h.in + @autogen autoconf 2.53 "2.5.*" %autoclean @autoclean shtool @@ -20,7 +19,10 @@ else param=devel fi - ./configure --with-param=$param "$@" + ./configure \ + --cache-file=config.cache \ + --with-param=$param \ + "$@" %version ./shtool version -lc -n 'GNU Pth' -p pth_internal_ -e pth_vers.c @@ -40,16 +42,16 @@ -e 'CVS,\.cvsignore,\.[ao],^\.,devtool*' -c 'gzip --best' . %striptease - perl striptease.pl + perl striptease.pl %depend - cp Makefile.in Makefile.in.bak - sed -ne '1,/^# DO NOT REMOVE/p' Makefile.in >Makefile.new - gcc -MM -I. *.c |\ - perl -e 'my $d = ""; $d .= $_ while (); $_ = $d; \ - s/^(pth_.*)\.o:/$1.lo:/mg; \ - s|\\\n\s*| |sg; s|\b?\S*/\S*\b?||g; s|\s{2,}| |g; \ - print $_;' >> Makefile.new - cp Makefile.new Makefile.in - rm -f Makefile.new + cp Makefile.in Makefile.in.bak + sed -ne '1,/^# DO NOT REMOVE/p' Makefile.in >Makefile.new + gcc -MM -I. *.c |\ + perl -e 'my $d = ""; $d .= $_ while (); $_ = $d; \ + s/^(pth_.*)\.o:/$1.lo:/mg; \ + s|\\\n\s*| |sg; s|\b?\S*/\S*\b?||g; s|\s{2,}| |g; \ + print $_;' >> Makefile.new + cp Makefile.new Makefile.in + rm -f Makefile.new Index: ossp-pkg/pth/devtool.func RCS File: /v/ossp/cvs/ossp-pkg/pth/devtool.func,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/pth/devtool.func,v' 2>/dev/null --- devtool.func 2002/01/30 12:54:22 1.1 +++ devtool.func 2002/07/01 12:54:54 1.2 @@ -1,6 +1,6 @@ ## ## devtool.func -- Development Tool Functions -## Copyright (c) 2001 Ralf S. Engelschall +## Copyright (c) 2001-2002 Ralf S. Engelschall ## devtool_require () { @@ -33,6 +33,7 @@ echo "generating (GNU Autoconf $autoconf_version): configure config.h.in" autoconf autoheader 2>&1 | grep -v "is unchanged" + rm -rf autom4te.cache >/dev/null 2>&1 ;; libtool ) libtoolize_version=`devtool_require libtoolize --version 4 "$1" "$2"`