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

132
configure vendored
View file

@ -1,8 +1,8 @@
#!/bin/sh
# From configure.in Revision: 1.5
# From configure.in Revision: 1.6
#!/bin/sh
# 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.
# This configure script is free software; you can redistribute it and/or
@ -121,7 +121,7 @@ do
exec_prefix="$ac_optarg" ;;
-gas | --gas | --ga | --g)
with_gas=1 ;; # Obsolete; use --with-gas.
with_gas=yes ;; # Obsolete; use --with-gas.
-help | --help | --hel | --he)
cat << EOF
@ -199,7 +199,7 @@ EOF
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
echo "configure generated by autoconf version 1.8"
echo "configure generated by autoconf version 1.11"
exit 0 ;;
-with-* | --with-*)
@ -224,7 +224,7 @@ EOF
ac_package=`echo $ac_package| sed 's/-/_/g'`
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-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
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
fi
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
fi
fi
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'
# Don't suppress compiler output when --verbose is specified
test -n "$verbose" &&
ac_compile=`echo "$ac_compile" | sed "s|>/dev/null 2>&1||"`
@ -1044,6 +1045,69 @@ fi
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
ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -ldl"
@ -1852,7 +1916,7 @@ fi
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
#include "confdefs.h"
@ -2069,15 +2133,20 @@ fi
# generate output files
# Set default prefixes.
# The preferred way to propogate these variables is regular @ substitutions.
if test -n "$prefix"; then
test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
else
prefix=/usr/local
fi
if test -n "$exec_prefix"; then
ac_prsub="$ac_prsub
s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
else
exec_prefix='${prefix}' # Let make expand it.
fi
# Any assignment to VPATH causes Sun make to only execute
# 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.
@ -2114,7 +2183,7 @@ do
echo running \${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)
echo "config.status generated by autoconf version 1.8"
echo "config.status generated by autoconf version 1.11"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
@ -2129,6 +2198,11 @@ AR='$AR'
INSTALL='$INSTALL'
OPT='$OPT'
CPP='$CPP'
MACHDEP='$MACHDEP'
SO='$SO'
LDSHARED='$LDSHARED'
CCSHARED='$CCSHARED'
LINKFORSHARED='$LINKFORSHARED'
DLINCLDIR='$DLINCLDIR'
LIBOBJS='$LIBOBJS'
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
# Remove last slash and all that follows it. Not all systems have dirname.
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.
test ! -d "$ac_dir" && mkdir "$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.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
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" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
@ -2185,6 +2261,11 @@ s%@AR@%$AR%g
s%@INSTALL@%$INSTALL%g
s%@OPT@%$OPT%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%@LIBOBJS@%$LIBOBJS%g
s%@LIBM@%$LIBM%g
@ -2240,8 +2321,8 @@ do
ac_lines=`grep -c . conftest.sh`
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
rm -f conftest.s1 conftest.s2
sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -20.
sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +21.
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 +10.
# Write a limited-size here document to append to conftest.sed.
echo 'cat >> conftest.sed <<CONFEOF' >> 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
cp $ac_given_srcdir/$ac_file.in conftest.h1
cp conftest.sed conftest.stm
while :
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
rm -f conftest.s1 conftest.s2 conftest.h2
sed ${ac_max_sed_lines}q conftest.sed > conftest.s1 # Like head -20.
sed 1,${ac_max_sed_lines}d conftest.sed > conftest.s2 # Like tail +21.
sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
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.s2 conftest.sed
mv conftest.s2 conftest.stm
done
rm -f conftest.sed conftest.h
rm -f conftest.stm conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.h1 >> conftest.h
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
fi
fi; done
rm -f conftest.sed
exit 0
EOF
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