The usual junk

This commit is contained in:
Guido van Rossum 1994-09-12 10:58:40 +00:00
parent ac405f6c4e
commit 0a516c99dd
4 changed files with 192 additions and 34 deletions

View File

@ -1,3 +1,72 @@
Mon Sep 12 12:53:07 1994 Guido van Rossum (guido@voorn.cwi.nl)
* Lib/urlparse.py: URL parser according to the latest Internet
draft
* README: added note about HP-UX
Sun Sep 11 12:12:28 1994 Guido van Rossum (guido@voorn.cwi.nl)
* Misc/indent.pro: Steen's approximation of my C style as a GNU
indent profile
* Modules/{Setup.in,termios.c}: add Steen's termios; also
Lib/[pt]ty.py, Demo/scripts/script.py, Lib/irix5/TERMIOS.py
* Demo/scripts/h2py.py: merged in Steen Lumholt's changes to
handle #include. Now also handles one-argument macros.
* configure.in: use uname to decide how to create / link shared
libraries and to set $(MACHDEP) (machine dependent subdirectory of
Lib)
* Makefile.in: shared library support; added targer sharedinstall
which move shared libraries into Lib/$(MACHDEP)
* Modules/{Makefile.pre.in,Setup.in,makesetup}: support shared
libraries. Had to re-engineer rule production in makesetup
because sed was dumping core on the script fed to it -- now the
rules are always appended to the end of the Makefile.
Fri Sep 9 11:35:28 1994 Guido van Rossum (guido@voorn.cwi.nl)
* Lib/uu.py: new module, does uuencode/uudecode (thanks to Lance)
* Grammar/Grammar: fewer #diagram:break hacks needed; removed
history from file
Thu Sep 8 10:24:41 1994 Guido van Rossum (guido@voorn.cwi.nl)
* Parser/grammar1.c (finddfa): massive speed up by using direct
addressing instead of searching
Wed Sep 7 08:49:37 1994 Guido van Rossum (guido@voorn.cwi.nl)
* Include/rename1.h: added PyArg_GetInt
* pythonrun.h: added Py_AtExit
* Doc/libsocket.tex, Modules/socketmodule.c: added Tommy
Burnette's setblocking() method
* Modules/signalmodule.c: adapted to new module style (Lance);
added {BGN,END}_SAVE around pause() call
* Objects/object.c (DELREF): must zap type pointer *before*
calling free() (or other destructor)
Sat Sep 3 14:12:38 1994 Guido van Rossum (guido@voorn.cwi.nl)
* Modules/{Setup.in,tkintermodule.c,tkappinit.c}: moved tkinter
into the main Modules directory, and its Lib and Demo
subdirectories into the main Lib and Demo directories. Moved
definition of STDWIN component and TK component of PYTHONPATH to
their respective sections so it's easier to remember to enable
them.
* Python/pythonrun.c (cleanup), Include/pythonrun.h: added
Py_AtExit() -- register cleanup functions for C modules
Tue Aug 30 10:53:50 1994 Guido van Rossum (guido@voorn.cwi.nl) Tue Aug 30 10:53:50 1994 Guido van Rossum (guido@voorn.cwi.nl)
* Python/getmtime.c: Remove mac specifics (Mac subdirectory has * Python/getmtime.c: Remove mac specifics (Mac subdirectory has

3
README
View File

@ -51,6 +51,9 @@ pass to the configure script.
AIX users: read the file Misc/AIX-NOTES before trying to build. AIX users: read the file Misc/AIX-NOTES before trying to build.
HP-UX users: read the file Misc/HPUX-NOTES if you want to be able to
use shared libraries for dynamically loaded modules.
Minix users: when using ack, use "CC=cc AR=aal RANLIB=: ./configure"! Minix users: when using ack, use "CC=cc AR=aal RANLIB=: ./configure"!
You can configure the interpreter to contain fewer or more built-in You can configure the interpreter to contain fewer or more built-in

22
TODO
View File

@ -1,14 +1,16 @@
(-) try out Kees Blom's railroad diagram generator
(-) redesign error handling (cf. Donald's mail) (-) redesign error handling (cf. Donald's mail)
(-) do MPW and THINK still not support sys_errlist? (*) do MPW and THINK still not support sys_errlist? Indeed not (neither).
(-) does MPW 3.2 need the MPW_881_BUG defined in Parser/acceler.c (-) does MPW 3.2 need the MPW_881_BUG defined in Parser/acceler.c
(-) rename MPW_3_1 define (which really means 3.x) (-) rename MPW_3_1 define (which really means 3.x)
(-) incorporate urlparse.py, uu.py (*) incorporate urlparse.py, uu.py
(-) rewrite instance __getattr__ etc. to store ptr in class instead of (*) rewrite instance __getattr__ etc. to store ptr in class instead of
instance -- also have separate __delattr__ instance -- also have separate __delattr__
(-) add warning to docs about sys.exc_traceback and sys.last_traceback. (-) add warning to docs about sys.exc_traceback and sys.last_traceback.
@ -23,7 +25,7 @@ instance -- also have separate __delattr__
(-) there's no way to show the text caret after a multi-line paste? (-) there's no way to show the text caret after a multi-line paste?
(-) termios module (*) termios module
(*) put signal patches out separately (*) put signal patches out separately
@ -31,7 +33,7 @@ instance -- also have separate __delattr__
(*) More MPW and Mac changes (*) More MPW and Mac changes
(() Sjoerd's compileall script (*) Sjoerd's compileall script
(-) systematically create /usr/local/lib/python/<machine>-<os>/ (-) systematically create /usr/local/lib/python/<machine>-<os>/
subdirectories, with a lib/ subdirectory containing the lib*.a subdirectories, with a lib/ subdirectory containing the lib*.a
@ -39,12 +41,12 @@ instance -- also have separate __delattr__
(-) need newer DOS binary (16 bit version doesn't do default args) (-) need newer DOS binary (16 bit version doesn't do default args)
(-) support for dynamically loadable libraries in makesetup and Extensions. (*) support for dynamically loadable libraries in makesetup and Extensions.
e.g. add a make rule to build .so files (unfortunately need to figure e.g. add a make rule to build .so files (unfortunately need to figure
out what ld option is needed) (more appropriate for makesetup out what ld option is needed) (more appropriate for makesetup
script?) script?)
(-) Move tkinter into the standard Modules directory; Tkinter c.s. to (*) Move tkinter into the standard Modules directory; Tkinter c.s. to
Lib/tkinter etc. (???) Lib/tkinter etc. (???)
(-) document Tk (-) document Tk
@ -53,13 +55,13 @@ instance -- also have separate __delattr__
(-) interactive Python GUI (a la NT thingie) (-) interactive Python GUI (a la NT thingie)
(-) speedup finddfa (and classify?) (*) speedup finddfa (and classify?)
(-) more stuff under CVS (demo, extensions) (-) more stuff under CVS (demo, extensions)
(-) Mac port of 1.1 (*) Mac port of 1.1
(-) Mac port of STDWIN 0.9.9 to THINK C 6.0 (*) Mac port of STDWIN 0.9.9 to THINK C 6.0
(-) use const for char * parameters (and many more) where possible (-) use const for char * parameters (and many more) where possible

132
configure vendored
View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# From configure.in Revision: 1.5 # From configure.in Revision: 1.6
#!/bin/sh #!/bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 1.8 # Generated automatically using autoconf version 1.11
# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
# This configure script is free software; you can redistribute it and/or # This configure script is free software; you can redistribute it and/or
@ -121,7 +121,7 @@ do
exec_prefix="$ac_optarg" ;; exec_prefix="$ac_optarg" ;;
-gas | --gas | --ga | --g) -gas | --gas | --ga | --g)
with_gas=1 ;; # Obsolete; use --with-gas. with_gas=yes ;; # Obsolete; use --with-gas.
-help | --help | --hel | --he) -help | --help | --hel | --he)
cat << EOF cat << EOF
@ -199,7 +199,7 @@ EOF
verbose=yes ;; verbose=yes ;;
-version | --version | --versio | --versi | --vers) -version | --version | --versio | --versi | --vers)
echo "configure generated by autoconf version 1.8" echo "configure generated by autoconf version 1.11"
exit 0 ;; exit 0 ;;
-with-* | --with-*) -with-* | --with-*)
@ -224,7 +224,7 @@ EOF
ac_package=`echo $ac_package| sed 's/-/_/g'` ac_package=`echo $ac_package| sed 's/-/_/g'`
eval "with_${ac_package}=no" ;; eval "with_${ac_package}=no" ;;
--x) with_x=1 ;; # Obsolete; use --with-x. --x) with_x=yes ;; # Obsolete; use --with-x.
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i) | --x-incl | --x-inc | --x-in | --x-i)
@ -244,10 +244,10 @@ EOF
;; ;;
*) *)
if test -n "`echo $ac_option| sed 's/[-a-z0-9]//g'`"; then if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" >&2 echo "configure: warning: $ac_option: invalid host type" >&2
fi fi
if test "x$nonopt" -ne xNONE; then if test "x$nonopt" != xNONE; then
echo "configure: can only configure for one host and one target at a time" >&2; exit 1 echo "configure: can only configure for one host and one target at a time" >&2; exit 1
fi fi
nonopt="$ac_option" nonopt="$ac_option"
@ -311,11 +311,12 @@ if test ! -r $srcdir/$ac_unique_file; then
echo "configure: can not find sources in ${srcdir}" >&2; exit 1 echo "configure: can not find sources in ${srcdir}" >&2; exit 1
fi fi
fi fi
ac_ext=c ac_ext=c
ac_cpp='${CPP} $CFLAGS' # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CPP}'
ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1' ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
# Don't suppress compiler output when --verbose is specified # Don't suppress compiler output when --verbose is specified
test -n "$verbose" && test -n "$verbose" &&
ac_compile=`echo "$ac_compile" | sed "s|>/dev/null 2>&1||"` ac_compile=`echo "$ac_compile" | sed "s|>/dev/null 2>&1||"`
@ -1044,6 +1045,69 @@ fi
rm -f conftest* rm -f conftest*
# Set name for machine-dependent library files
if test -z "$MACHDEP"
then
ac_system=`uname -s | tr '[A-Z]' '[a-z]'`
ac_release=`uname -r | sed 's/\..*//'`
MACHDEP="$ac_system$ac_release"
case MACHDEP in
'') MACHDEP=unknown;;
esac
test -n "$verbose" && echo " setting MACHDEP to '$MACHDEP'"
fi
# Set info about shared libraries.
# XXX This should try things out instead of testing uname!
ac_system=`uname -s`
ac_release=`uname -r`
# SO is the extension of shared libraries `(including the dot!)
# -- usually .so, .sl on HP-UX
if test -z "$SO"
then
case $ac_system in
hp*|HP*) SO=.sl;;
*) SO=.so;;
esac
test -n "$verbose" && echo " setting SO to '$SO'"
fi
# LDSHARED is the ld *command* used to create shared library
# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
if test -z "$LDSHARED"
then
case $ac_system/$ac_release in
IRIX*) LDSHARED="ld -shared";;
SunOS/4*) LDSHARED="ld";;
SunOS/5*) LDSHARED="ld -G";;
hp*|HP*) LDSHARED="ld -b";;
*) LDSHARED="ld";;
esac
test -n "$verbose" && echo " setting LDSHARED= to '$LDSHARED'"
fi
# CCSHARED are the C *flags* used to create objects to go into a shared
# library -- this is only needed for HP-UX
if test -z "$CCSHARED"
then
case $ac_system in
hp*|HP*) CCSHARED="+z";;
esac
test -n "$verbose" && echo " setting CCSHARED= to '$CCSHARED'"
fi
# LINKFORSHARED are the flags passed to the $(CC) command that links
# the python executable -- this is only needed for HP-UX
if test -z "$LINKFORSHARED"
then
case $ac_system in
hp*|HP*) LINKFORSHARED="-Wl,-E";;
esac
test -n "$verbose" && echo " setting LINKFORSHARED to '$LINKFORSHARED'"
fi
# checks for libraries # checks for libraries
ac_save_LIBS="${LIBS}" ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -ldl" LIBS="${LIBS} -ldl"
@ -1852,7 +1916,7 @@ fi
rm -f conftest* rm -f conftest*
test -n "$silent" || echo "checking for wheter we have signed char" test -n "$silent" || echo "checking for signed char"
cat > conftest.${ac_ext} <<EOF cat > conftest.${ac_ext} <<EOF
#include "confdefs.h" #include "confdefs.h"
@ -2069,15 +2133,20 @@ fi
# generate output files # generate output files
# Set default prefixes.
# The preferred way to propogate these variables is regular @ substitutions.
if test -n "$prefix"; then if test -n "$prefix"; then
test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%" ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
else
prefix=/usr/local
fi fi
if test -n "$exec_prefix"; then if test -n "$exec_prefix"; then
ac_prsub="$ac_prsub ac_prsub="$ac_prsub
s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%" s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
else
exec_prefix='${prefix}' # Let make expand it.
fi fi
# Any assignment to VPATH causes Sun make to only execute # Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed. # the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it. # If there is a colon in the path, we need to keep it.
@ -2114,7 +2183,7 @@ do
echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;; exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "config.status generated by autoconf version 1.8" echo "config.status generated by autoconf version 1.11"
exit 0 ;; exit 0 ;;
-help | --help | --hel | --he | --h) -help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;; echo "\$ac_cs_usage"; exit 0 ;;
@ -2129,6 +2198,11 @@ AR='$AR'
INSTALL='$INSTALL' INSTALL='$INSTALL'
OPT='$OPT' OPT='$OPT'
CPP='$CPP' CPP='$CPP'
MACHDEP='$MACHDEP'
SO='$SO'
LDSHARED='$LDSHARED'
CCSHARED='$CCSHARED'
LINKFORSHARED='$LINKFORSHARED'
DLINCLDIR='$DLINCLDIR' DLINCLDIR='$DLINCLDIR'
LIBOBJS='$LIBOBJS' LIBOBJS='$LIBOBJS'
LIBM='$LIBM' LIBM='$LIBM'
@ -2150,7 +2224,7 @@ CONFIG_FILES=${CONFIG_FILES-"Makefile Objects/Makefile Parser/Makefile Python/Ma
for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
# Remove last slash and all that follows it. Not all systems have dirname. # Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file"; then if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory. # The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir" test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/$ac_dir" ac_dir_suffix="/$ac_dir"
@ -2161,7 +2235,9 @@ for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
# A "../" for each directory in $ac_dir_suffix. # A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
case "$ac_given_srcdir" in case "$ac_given_srcdir" in
.) srcdir=.; top_srcdir="$ac_dots." ;; .) srcdir=.
if test -z "$ac_dir_suffix"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path. *) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
@ -2185,6 +2261,11 @@ s%@AR@%$AR%g
s%@INSTALL@%$INSTALL%g s%@INSTALL@%$INSTALL%g
s%@OPT@%$OPT%g s%@OPT@%$OPT%g
s%@CPP@%$CPP%g s%@CPP@%$CPP%g
s%@MACHDEP@%$MACHDEP%g
s%@SO@%$SO%g
s%@LDSHARED@%$LDSHARED%g
s%@CCSHARED@%$CCSHARED%g
s%@LINKFORSHARED@%$LINKFORSHARED%g
s%@DLINCLDIR@%$DLINCLDIR%g s%@DLINCLDIR@%$DLINCLDIR%g
s%@LIBOBJS@%$LIBOBJS%g s%@LIBOBJS@%$LIBOBJS%g
s%@LIBM@%$LIBM%g s%@LIBM@%$LIBM%g
@ -2240,8 +2321,8 @@ do
ac_lines=`grep -c . conftest.sh` ac_lines=`grep -c . conftest.sh`
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
rm -f conftest.s1 conftest.s2 rm -f conftest.s1 conftest.s2
sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -20. sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +21. sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
# Write a limited-size here document to append to conftest.sed. # Write a limited-size here document to append to conftest.sed.
echo 'cat >> conftest.sed <<CONFEOF' >> config.status echo 'cat >> conftest.sed <<CONFEOF' >> config.status
cat conftest.s1 >> config.status cat conftest.s1 >> config.status
@ -2269,19 +2350,20 @@ for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
echo creating $ac_file echo creating $ac_file
cp $ac_given_srcdir/$ac_file.in conftest.h1 cp $ac_given_srcdir/$ac_file.in conftest.h1
cp conftest.sed conftest.stm
while : while :
do do
ac_lines=`grep -c . conftest.sed` ac_lines=`grep -c . conftest.stm`
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
rm -f conftest.s1 conftest.s2 conftest.h2 rm -f conftest.s1 conftest.s2 conftest.h2
sed ${ac_max_sed_lines}q conftest.sed > conftest.s1 # Like head -20. sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
sed 1,${ac_max_sed_lines}d conftest.sed > conftest.s2 # Like tail +21. sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
sed -f conftest.s1 < conftest.h1 > conftest.h2 sed -f conftest.s1 < conftest.h1 > conftest.h2
rm -f conftest.s1 conftest.h1 conftest.sed rm -f conftest.s1 conftest.h1 conftest.stm
mv conftest.h2 conftest.h1 mv conftest.h2 conftest.h1
mv conftest.s2 conftest.sed mv conftest.s2 conftest.stm
done done
rm -f conftest.sed conftest.h rm -f conftest.stm conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.h1 >> conftest.h cat conftest.h1 >> conftest.h
rm -f conftest.h1 rm -f conftest.h1
@ -2294,11 +2376,13 @@ for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
mv conftest.h $ac_file mv conftest.h $ac_file
fi fi
fi; done fi; done
rm -f conftest.sed
exit 0 exit 0
EOF EOF
chmod +x config.status chmod +x config.status
test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status # Some shells look in PATH for config.status without the "./".
test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status