summaryrefslogtreecommitdiff
path: root/U
diff options
context:
space:
mode:
Diffstat (limited to 'U')
-rw-r--r--U/Extensions.U71
-rw-r--r--U/Guess.U153
-rw-r--r--U/Loc.U252
-rw-r--r--U/Oldconfig.U369
-rw-r--r--U/README.U15
-rw-r--r--U/alignbytes.U57
-rw-r--r--U/cc.U111
-rw-r--r--U/ccflags.U236
-rw-r--r--U/d_casti32.U77
-rw-r--r--U/d_htonl.U76
-rw-r--r--U/d_isascii.U50
-rw-r--r--U/d_readdir.U70
-rw-r--r--U/d_safebcpy.U81
-rw-r--r--U/d_safemcpy.U82
-rw-r--r--U/d_setlocale.U30
-rw-r--r--U/d_shmat.U54
-rw-r--r--U/d_strerror.U113
-rw-r--r--U/d_vfork.U56
-rw-r--r--U/dlsrc.U230
-rw-r--r--U/gidtype.U54
-rw-r--r--U/groupstype.U51
-rw-r--r--U/i_dlfcn.U27
-rw-r--r--U/i_net_errno.U50
-rw-r--r--U/i_pwd.U134
-rw-r--r--U/i_sdbm.U37
-rw-r--r--U/i_sgtty.U128
-rw-r--r--U/i_termio.U117
-rw-r--r--U/i_termios.U64
-rw-r--r--U/i_vfork.U34
-rw-r--r--U/libc.U288
-rw-r--r--U/libpth.U74
-rw-r--r--U/libs.U131
-rw-r--r--U/libyacc.U60
-rw-r--r--U/lns.U21
-rw-r--r--U/loc_sed.U10
-rw-r--r--U/mallocsrc.U108
-rw-r--r--U/prototype.U115
-rw-r--r--U/sig_name.U86
-rw-r--r--U/voidflags.U148
-rw-r--r--U/yacc.U81
40 files changed, 0 insertions, 4001 deletions
diff --git a/U/Extensions.U b/U/Extensions.U
deleted file mode 100644
index ec14205ac1..0000000000
--- a/U/Extensions.U
+++ /dev/null
@@ -1,71 +0,0 @@
-?RCS: $Id: Extensions.U,v$
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: Extensions.U,v $
-?RCS:
-?MAKE:extensions : find Myread i_dbm i_ndbm i_gdbm i_sdbm
-?MAKE: -pick add $@ %<
-?S:extensions:
-?S: This variable holds a list of extension files we want to
-?S: include in perl.
-?S:.
-?T:xxx
-?INIT:: List of extensions we want:
-?INIT:extensions=''
-?X:
-case "$extensions" in
-' '|'') echo "Looking for extensions..."
- case "$find" in
- *find*)
- cd ..
- extensions=`$find ext -type f -name \*.xs -print`
- set X $extensions
- shift
- extensions="$*"
- cd UU
- ;;
- *) extensions='ext/dbm/NDBM_File.xs ext/dbm/ODBM_File.xs ext/dbm/GDBM_File.xs ext/dbm/SDBM_File.xs ext/posix/POSIX.xs'
- ;;
- esac
- ;;
-none) extensions='' ;;
-*) ;;
-esac
-: Now see which are supported on this system.
-dflt=""
-for xxx in $extensions ; do
- case "$xxx" in
- *ODBM*) case "$i_dbm" in
- define) dflt="$dflt $xxx" ;;
- *) ;;
- esac
- ;;
- *NDBM*) case "$i_ndbm" in
- define) dflt="$dflt $xxx" ;;
- *) ;;
- esac
- ;;
- *GDBM*) case "$i_gdbm" in
- define) dflt="$dflt $xxx" ;;
- *) ;;
- esac
- ;;
- *SDBM*) case "$i_sdbm" in
- define) dflt="$dflt $xxx" ;;
- *) ;;
- esac
- ;;
- *) dflt="$dflt $xxx"
- ;;
- esac
-done
-
-rp="What extensions do you wish to include?"
-. ./myread
-extensions="$ans"
-
diff --git a/U/Guess.U b/U/Guess.U
deleted file mode 100644
index c7566db87b..0000000000
--- a/U/Guess.U
+++ /dev/null
@@ -1,153 +0,0 @@
-?RCS: $Id: Guess.U,v 3.0.1.3 1993/12/15 08:14:35 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: Guess.U,v $
-?RCS: Revision 3.0.1.3 1993/12/15 08:14:35 ram
-?RCS: patch15: variable d_bsd was not always set properly
-?RCS:
-?RCS: Revision 3.0.1.2 1993/08/30 08:57:14 ram
-?RCS: patch8: fixed comment which wrongly attributed the usrinc symbol
-?RCS: patch8: no more ugly messages when no /usr/include/ctype.h
-?RCS:
-?RCS: Revision 3.0.1.1 1993/08/27 14:37:37 ram
-?RCS: patch7: added support for OSF/1 machines
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:04:57 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?X:
-?X: This unit hazards some guesses as to what the general nature of the system
-?X: is. The information it collects here is used primarily to establish default
-?X: answers to other questions.
-?X:
-?MAKE:Guess d_eunice d_xenix: cat test echo n c contains rm Loc eunicefix
-?MAKE: -pick add $@ %<
-?S:d_eunice:
-?S: This variable conditionally defines the symbols EUNICE and VAX, which
-?S: alerts the C program that it must deal with ideosyncracies of VMS.
-?S:.
-?S:d_xenix:
-?S: This variable conditionally defines the symbol XENIX, which alerts
-?S: the C program that it runs under Xenix.
-?S:.
-?X:We don't use BSD in the source. It's too vague, and often defined
-?X:in header files anyway (e.g. NetBSD).
-?X:?S:d_bsd:
-?X:?S: This symbol conditionally defines the symbol BSD when running on a
-?X:?S: BSD system.
-?X:?S:.
-?C:EUNICE:
-?C: This symbol, if defined, indicates that the program is being compiled
-?C: under the EUNICE package under VMS. The program will need to handle
-?C: things like files that don't go away the first time you unlink them,
-?C: due to version numbering. It will also need to compensate for lack
-?C: of a respectable link() command.
-?C:.
-?C:VMS:
-?C: This symbol, if defined, indicates that the program is running under
-?C: VMS. It is currently only set in conjunction with the EUNICE symbol.
-?C:.
-?C:XENIX:
-?C: This symbol, if defined, indicates thet the program is running under
-?C: Xenix (at least 3.0 ?).
-?C:.
-?X:We don't use BSD in the source. It's too vague.
-?X:?C:BSD:
-?X:?C: This symbol, if defined, indicates that the program is running under
-?X:?C: a BSD system.
-?X:?C:.
-?H:#$d_eunice EUNICE /**/
-?H:#$d_eunice VMS /**/
-?H:#$d_xenix XENIX /**/
-?X:?H:#$d_bsd BSD /**/
-?H:.
-?T:xxx
-: make some quick guesses about what we are up against
-echo " "
-$echo $n "Hmm... $c"
-echo exit 1 >bsd
-echo exit 1 >usg
-echo exit 1 >v7
-echo exit 1 >osf1
-echo exit 1 >eunice
-echo exit 1 >xenix
-echo exit 1 >venix
-?X:
-?X: Do not use 'usrinc', or we get a circular dependency. because
-?X: usrinc is defined in usrinc.U, which relies on us...
-?X:
-$cat /usr/include/signal.h /usr/include/sys/signal.h >foo 2>/dev/null
-if test -f /osf_boot || $contains 'OSF/1' /usr/include/ctype.h >/dev/null 2>&1
-then
- echo "Looks kind of like an OSF/1 system, but we'll see..."
- echo exit 0 >osf1
-elif test `echo abc | tr a-z A-Z` = Abc ; then
- xxx=`./loc addbib blurfl $pth`
- if $test -f $xxx; then
- echo "Looks kind of like a USG system with BSD features, but we'll see..."
- echo exit 0 >bsd
- echo exit 0 >usg
- else
- if $contains SIGTSTP foo >/dev/null 2>&1 ; then
- echo "Looks kind of like an extended USG system, but we'll see..."
- else
- echo "Looks kind of like a USG system, but we'll see..."
- fi
- echo exit 0 >usg
- fi
-elif $contains SIGTSTP foo >/dev/null 2>&1 ; then
- echo "Looks kind of like a BSD system, but we'll see..."
- echo exit 0 >bsd
-else
- echo "Looks kind of like a Version 7 system, but we'll see..."
- echo exit 0 >v7
-fi
-case "$eunicefix" in
-*unixtovms*)
- $cat <<'EOI'
-There is, however, a strange, musty smell in the air that reminds me of
-something...hmm...yes...I've got it...there's a VMS nearby, or I'm a Blit.
-EOI
- echo exit 0 >eunice
- d_eunice="$define"
-: it so happens the Eunice I know will not run shell scripts in Unix format
- ;;
-*)
- echo " "
- echo "Congratulations. You aren't running Eunice."
- d_eunice="$undef"
- ;;
-esac
-if test -f /xenix; then
- echo "Actually, this looks more like a XENIX system..."
- echo exit 0 >xenix
- d_xenix="$define"
-else
- echo " "
- echo "It's not Xenix..."
- d_xenix="$undef"
-fi
-chmod +x xenix
-$eunicefix xenix
-if test -f /venix; then
- echo "Actually, this looks more like a VENIX system..."
- echo exit 0 >venix
-else
- echo " "
- if xenix; then
- : null
- else
- echo "Nor is it Venix..."
- fi
-fi
-chmod +x bsd usg v7 osf1 eunice xenix venix
-$eunicefix bsd usg v7 osf1 eunice xenix venix
-$rm -f foo
-
diff --git a/U/Loc.U b/U/Loc.U
deleted file mode 100644
index fcb7a64403..0000000000
--- a/U/Loc.U
+++ /dev/null
@@ -1,252 +0,0 @@
-?RCS: $Id: Loc.U,v 3.0.1.3 1994/01/24 14:01:44 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS: $Log: Loc.U,v $
-?RCS: Revision 3.0.1.3 1994/01/24 14:01:44 ram
-?RCS: patch16: added metalint hint on changed PATH variable
-?RCS:
-?RCS: Revision 3.0.1.2 1993/12/15 08:16:52 ram
-?RCS: patch15: now set _test variable when test is built-in
-?RCS: patch15: fixed rare cases where echo is not needed
-?RCS:
-?RCS: Revision 3.0.1.1 1993/09/13 15:47:13 ram
-?RCS: patch10: test program not always in /bin/test (WAD)
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:05:05 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?X:
-?X: This unit produces a shell script "loc" which can be used to find out
-?X: where in a list of directories something is. It then uses loc to
-?X: determine the location of commonly used programs. It leaves loc sitting
-?X: around for other Configure units to use, but arranges for its demise
-?X: at the end of Configure.
-?X:
-?X: To add a new program to find, add it both to the ?MAKE: line and to either
-?X: the loclist or trylist variable.
-?X:
-?X: I put startsh at the end of the dependency list, in order to avoid the
-?X: loading of the spitshell unit before the instructions.
-?X:
-?MAKE:Loc Mcc awk bash bison byacc cat chgrp chmod chown compress cp cpio \
- cpp csh date echo egrep emacs expr find flex gcc grep inews ksh \
- less line lint ln lp lpr ls mail mailx make mkdir more mv nroff \
- perl pg pmake pr rm rmail sed sendmail sh shar sleep smail sort \
- submit tail tar tbl test touch tr troff uname uniq uuname vi \
- zcat: eunicefix n c Instruct Myread startsh
-?MAKE: -pick weed $@ %<
-?LINT:describe Loc Mcc awk bash bison byacc cat chgrp chmod chown compress \
- cp cpio cpp csh date echo egrep emacs expr find flex gcc grep \
- inews ksh less line lint ln lp lpr ls mail mailx make mkdir more \
- mv nroff perl pg pmake pr rm rmail sed sendmail sh shar sleep \
- smail sort submit tail tar tbl test touch tr troff uname uniq \
- uuname vi zcat
-?V::pth loclist trylist
-?T:thing xxx dir file say _test
-?LINT:change PATH
-: find out where common programs are
-echo " "
-echo "Locating common programs..." >&4
-cat <<EOSC >loc
-$startsh
-case \$# in
-0) exit 1;;
-esac
-thing=\$1
-shift
-dflt=\$1
-shift
-for dir in \$*; do
- case "\$thing" in
- .)
- if test -d \$dir/\$thing; then
- echo \$dir
- exit 0
- fi
- ;;
- *)
- if test -f \$dir/\$thing; then
- echo \$dir/\$thing
- exit 0
- elif test -f \$dir/\$thing.exe; then
- : on Eunice apparently
- echo \$dir/\$thing
- exit 0
- fi
- ;;
- esac
-done
-echo \$dflt
-exit 1
-EOSC
-chmod +x loc
-$eunicefix loc
-loclist="
-?awk:awk
-?cat:cat
-?chgrp:chgrp
-?chmod:chmod
-?chown:chown
-?cp:cp
-?echo:echo
-?expr:expr
-?grep:grep
-?ln:ln
-?ls:ls
-?make:make
-?mkdir:mkdir
-?mv:mv
-?rm:rm
-?sed:sed
-?sleep:sleep
-?sort:sort
-?tail:tail
-?touch:touch
-?tr:tr
-?uniq:uniq
-"
-trylist="
-?Mcc:Mcc
-?bash:bash
-?bison:bison
-?byacc:byacc
-?compress:compress
-?cpio:cpio
-?cpp:cpp
-?csh:csh
-?date:date
-?egrep:egrep
-?emacs:emacs
-?find:find
-?flex:flex
-?gcc:gcc
-?inews:inews
-?ksh:ksh
-?less:less
-?line:line
-?lint:lint
-?lp:lp
-?lpr:lpr
-?mail:mail
-?mailx:mailx
-?more:more
-?nroff:nroff
-?perl:perl
-?pg:pg
-?pmake:pmake
-?pr:pr
-?rmail:rmail
-?sendmail:sendmail
-?sh:sh
-?shar:shar
-?smail:smail
-?submit:submit
-?tar:tar
-?tbl:tbl
-?test:test
-?troff:troff
-?uname:uname
-?uuname:uuname
-?vi:vi
-?zcat:zcat
-"
-?LINT:set Loc Mcc awk bash bison byacc cat chgrp chmod chown compress cp \
- cpio cpp csh date echo egrep emacs expr find flex gcc grep inews \
- ksh less line lint ln lp lpr ls mail mailx make mkdir more mv \
- nroff perl pg pmake pr rm rmail sed sendmail sh shar sleep \
- smail sort submit tail tar tbl test touch tr troff uname uniq \
- uuname vi zcat
-pth=`echo $PATH | sed -e 's/:/ /g'`
-pth="$pth /lib /usr/lib"
-for file in $loclist; do
- xxx=`./loc $file $file $pth`
- eval $file=$xxx
- eval _$file=$xxx
- case "$xxx" in
- /*)
- echo $file is in $xxx.
- ;;
- *)
- echo "I don't know where $file is. I hope it's in everyone's PATH."
- ;;
- esac
-done
-echo " "
-echo "Don't worry if any of the following aren't found..."
-say=offhand
-for file in $trylist; do
- xxx=`./loc $file $file $pth`
- eval $file=$xxx
- eval _$file=$xxx
- case "$xxx" in
- /*)
- echo $file is in $xxx.
- ;;
- *)
- echo "I don't see $file out there, $say."
- say=either
- ;;
- esac
-done
-case "$egrep" in
-egrep)
- echo "Substituting grep for egrep."
- egrep=$grep
- ;;
-esac
-case "$test" in
-test)
- echo "Hopefully test is built into your sh."
- ;;
-*)
- if sh -c "PATH= test true" >/dev/null 2>&1; then
- echo "Using the test built into your sh."
-?X:
-?X: We need to set both test and _test, since Oldconfig.U will use the _test
-?X: value to systematically restore computed paths, which may be wrong if
-?X: we choose to load an old config.sh generated on another platform.
-?X:
- test=test
- _test=test
- fi
- ;;
-esac
-?LINT:change n c
-case "$echo" in
-echo)
- echo "Hopefully echo is built into your sh."
- ;;
-?X: For those rare cases where we don't need $echo...
-'') ;;
-*)
- echo " "
-echo "Checking compatibility between $echo and builtin echo (if any)..." >&4
- $echo $n "hi there$c" >foo1
- echo $n "hi there$c" >foo2
- if cmp foo1 foo2 >/dev/null 2>&1; then
- echo "They are compatible. In fact, they may be identical."
- else
- case "$n" in
- '-n') n='' c='\c';;
- *) n='-n' c='';;
- esac
- cat <<FOO
-They are not compatible! You are probably running ksh on a non-USG system.
-I'll have to use $echo instead of the builtin, since Bourne shell doesn't
-have echo built in and we may have to run some Bourne shell scripts. That
-means I'll have to use '$n$c' to suppress newlines now. Life is ridiculous.
-
-FOO
- $echo $n "The star should be here-->$c"
- $echo "*"
- fi
- $rm -f foo1 foo2
- ;;
-esac
-
diff --git a/U/Oldconfig.U b/U/Oldconfig.U
deleted file mode 100644
index 2b6d3a0157..0000000000
--- a/U/Oldconfig.U
+++ /dev/null
@@ -1,369 +0,0 @@
-?RCS: $Id: Oldconfig.U,v 3.0.1.2 1994/01/24 14:05:02 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: Oldconfig.U,v $
-?RCS: Revision 3.0.1.2 1994/01/24 14:05:02 ram
-?RCS: patch16: added post-processing on myuname for Xenix targets
-?RCS: patch16: message proposing config.sh defaults made consistent
-?RCS:
-?RCS: Revision 3.0.1.1 1993/09/13 15:56:32 ram
-?RCS: patch10: force use of config.sh when -d option is used (WAD)
-?RCS: patch10: complain about non-existent hint files (WAD)
-?RCS: patch10: added Options dependency for fastread variable
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:05:12 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?X:
-?X: This unit tries to remember what we did last time we ran Configure, mostly
-?X: for the sake of setting defaults.
-?X:
-?MAKE:Oldconfig hint myuname osname osvers: Instruct Myread uname \
- sed test cat rm n c contains Loc Options
-?MAKE: -pick wipe $@ %<
-?S:myuname:
-?S: The output of 'uname -a' if available, otherwise the hostname. On Xenix,
-?S: pseudo variables assignments in the output are stripped, thank you. The
-?S: whole thing is then lower-cased.
-?S:.
-?S:hint:
-?S: Gives the type of hints used for previous answers. May be one of
-?S: "default", "recommended" or "previous".
-?S:.
-?S:osname:
-?S: This variable contains the operating system name (e.g. sunos,
-?S: solaris, hpux, etc.). It can be useful later on for setting
-?S: defaults. It is set to '' if we can't figure it out.
-?S:.
-?S:osvers:
-?S: This variable contains the operating system version (e.g.
-?S: 4.1.3, 5.2, etc.). It is primarily used for helping select
-?S: an appropriate hints file, but might be useful elsewhere for
-?S: setting defaults. It is set to '' if we can't figure it out.
-?S:.
-?T:tmp file oldmyuname hintfile tans _
-?LINT:change n c
-: Try to determine whether config.sh was made on this system
-case "$config_sh" in
-'')
-?X: indentation wrong on purpose--RAM
-?X: Leave a white space between first two '(' for ksh. The sub-shell is needed
-?X: on some machines to avoid the error message when uname is not found; e.g.
-?X: old SUN-OS 3.2 would not execute hostname in (uname -a || hostname). Sigh!
-myuname=`( ($uname -a) 2>/dev/null || hostname) 2>&1`
-?X: Special mention for Xenix, whose 'uname -a' gives us output like this:
-?X: sysname=XENIX
-?X: nodename=whatever
-?X: release=2.3.2 .. etc...
-?X: Therefore, we strip all this variable assignment junk and remove all the
-?X: new lines to keep the myuname variable sane... --RAM
-myuname=`echo $myuname | $sed -e 's/^[^=]*=//' | \
- tr '[A-Z]' '[a-z]' | tr '\012' ' '`
-dflt=n
-if test "$fastread" = yes; then
- dflt=y
-elif test -f ../config.sh; then
-?X: The value from config.sh will superseed the one we've just computed
-?X: ... but not if we choose to ignore config.sh, so eval oldmyuname here.
- oldmyuname=''
- if $contains myuname= ../config.sh >/dev/null 2>&1; then
- eval "old`grep myuname= ../config.sh`"
- fi
- if test "X$myuname" = "X$oldmyuname"; then
- dflt=y
- fi
-fi
-
-@if {test -d ../hints}
-: Get old answers from old config file if Configure was run on the
-: same system, otherwise use the hints.
-hint=default
-cd ..
-if test -f config.sh; then
- echo " "
- rp="I see a config.sh file. Shall I use it to set the defaults?"
- . UU/myread
- case "$ans" in
- n*|N*) echo "OK, I'll ignore it."; mv config.sh config.sh.old;;
- *) echo "Fetching default answers from your old config.sh file..." >&4
- tmp="$n"
- tans="$c"
- . ./config.sh
- cp config.sh UU
- n="$tmp"
- c="$tans"
- hint=previous
- ;;
- esac
-fi
-if test ! -f config.sh; then
- $cat <<EOM
-
-First time through, eh? I have some defaults handy for the following systems:
-
-EOM
- cd hints; ls -C *.sh | $sed 's/\.sh/ /g' >&4
- dflt=''
- : Half the following guesses are probably wrong... If you have better
- : tests or hints, please send them to <MAINTLOC>
- : The metaconfig authors would also appreciate a copy...
- $test -f /irix && osname=sgi
- $test -f /xenix && osname=sco_xenix
- $test -f /dynix && osname=dynix
- $test -f /dnix && osname=dnix
- $test -f /bin/mips && /bin/mips && osname=mips
- $test -d /NextApps && test -f /usr/adm/software_version && osname=next
- $test -d /usr/include/minix && osname=minix
-?X: If we have uname, we already computed a suitable uname -a output, correctly
-?X: formatted for Xenix, and it lies in $myuname.
- if $test -f $uname; then
- set X $myuname
- shift
-
- $test -f $5.sh && dflt="$dflt $5"
-
- case "$5" in
- fps*) osname=fps ;;
- mips*)
- case "$4" in
- umips) osname=umips ;;
- *) osname=mips ;;
- esac;;
- [23]100) osname=mips ;;
- next*) osname=next ;;
- news*) osname=news ;;
- i386*) if $test -f /etc/kconfig; then
- osname=isc
- if $contains _SYSV3 /usr/include/stdio.h > /dev/null 2>&1 ; then
- osvers=3.2.3
- elif $contains _POSIX_SOURCE /usr/include/stdio.h > /dev/null 2>&1 ; then
- osvers=3.2.2
- fi
- fi
- ;;
- esac
-
- case "$1" in
- aix) osname=aix_rs ;;
- sunos) osname=sunos
- case "$3" in
- [34]*) osvers=$3 ;;
- 5*) osname=solaris
- osvers=`echo $3 | $sed 's/^5/2/g'` ;;
- esac
- ;;
- solaris) osname=solaris
- case "$3" in
- 5*) osvers=`echo $3 | $sed 's/^5/2/g'` ;;
- esac
- ;;
- dnix) osname=dnix ;;
- dgux) osname=dgux ;;
- genix) osname=genix ;;
- hp*ux) osname=hpux ;;
- next) osname=next ;;
- irix) osname=sgi ;;
- ultrix) osname=ultrix
- case "$3" in
- 1*) osvers=1 ;;
- 2*) osvers=2 ;;
- 3*) osvers=3 ;;
- 4*) osvers=4 ;;
- esac
- ;;
- osf1) case "$5" in
- alpha) osname=dec_osf
- case "$3" in
- [vt]1\.*) osvers=1 ;;
- [vt]2\.*) osvers=2 ;;
- [vt]3\.*) osvers=3 ;;
- esac
- ;;
- hp*) osname=hp_osf1 ;; # TR
- mips) osname=mips_osf1 ;; # TR
- # TR = Technology Releases: (un^N)supported
- esac
- ;;
- uts) osname=uts ;;
- $2) case "$osname" in
- *isc*) ;;
- *) if test -f /etc/systemid; then
- osname=sco
- : Does anyone know if these next gyrations are needed
- set `echo $3 | $sed 's/\./ /g'` $4
- if $test -f sco_$1_$2_$3.sh; then
- osvers=$1.$2.$3
- elif $test -f sco_$1_$2.sh; then
- osvers=$1.$2
- elif $test -f sco_$1.sh; then
- osvers=$1
- fi
- fi
- ;;
- esac
- ;;
- esac
- else
-?X: Try to identify sony's NEWS-OS (BSD unix)
- if test -f /vmunix -a -f news_os.sh; then
- (what /vmunix | tr '[A-Z]' '[a-z]') > ../UU/kernel.what 2>&1
- if $contains news-os ../UU/kernel.what >/dev/null 2>&1; then
- osname=news_os
- fi
- $rm -f ../UU/kernel.what
- fi
- fi
-
- : Now look for a hint file osname_osvers
- file=`echo "${osname}_${osvers}" | sed -e 's@\.@_@g' -e 's@_$@@'`
- case "$file" in
- '') dflt=none ;;
- *) case "$osvers" in
- '') dflt=$file
- ;;
- *) if $test -f $file.sh ; then
- dflt=$file
- elif $test -f "${osname}.sh" ; then
- dflt="${osname}"
- else
- dflt=none
- fi
- ;;
- esac
- ;;
- esac
-
- $cat <<EOM
-
-You may give one or more space-separated answers, or "none" if appropriate.
-If your OS version has no hints, DO NOT give a wrong version -- say "none".
-
-EOM
- rp="Which of these apply, if any?"
- . ../UU/myread
- tans=$ans
- for file in $tans; do
- if $test -f $file.sh; then
- . ./$file.sh
- $cat $file.sh >> ../UU/config.sh
- elif $test X$tans = X -o X$tans = Xnone ; then
- : nothing
- else
- : Give one chance to correct a possible typo.
- echo "$file.sh does not exist"
- dflt=$file
- rp="hint to use instead?"
- . ../UU/myread
- for file in $ans; do
- if $test -f "$file.sh"; then
- . ./$file.sh
- $cat $file.sh >> ../UU/config.sh
- elif $test X$ans = X -o X$ans = Xnone ; then
- : nothing
- else
- echo "$file.sh does not exist -- ignored."
- fi
- done
- fi
- done
-
- hint=recommended
- : Remember our hint file for later.
- if $test -f "$file.sh" ; then
- hintfile="$file.sh"
- else
- hintfile=none
- fi
-
- cd ..
-fi
-cd UU
-@else
-: Get old answers, if there is a config file out there
-hint=default
-if test -f ../config.sh; then
- echo " "
- rp="I see a config.sh file. Shall I use it to set the defaults?"
- . ./myread
- case "$ans" in
- n*|N*) echo "OK, I'll ignore it.";;
- *) echo "Fetching default answers from your old config.sh file..." >&4
- tmp="$n"
- tans="$c"
- . ../config.sh
- cp ../config.sh .
- n="$tmp"
- c="$tans"
- hint=previous
- ;;
- esac
-fi
-@end
-?X: remember, indentation is wrong--RAM
-;;
-*)
- echo " "
- echo "Fetching default answers from $config_sh..." >&4
- tmp="$n"
- tans="$c"
- cd ..
-?X: preserve symbolic links, if any
- cp $config_sh config.sh 2>/dev/null
- . ./config.sh
- cd UU
- cp ../config.sh .
- n="$tmp"
- c="$tans"
- hint=previous
- ;;
-esac
-
-: Restore computed paths
-for file in $loclist $trylist; do
- eval $file="\$_$file"
-done
-
-cat << EOM
-Configure uses the operating system name and version to set some defaults.
-Say "none" to leave it blank.
-EOM
-
-case "$osname" in
- ''|' ')
- case "$hintfile" in
- none) dflt=none ;;
- *) dflt=`echo $hintfile | sed -e 's/\.sh$//' -e 's/_.*$//'` ;;
- esac
- ;;
- *) dflt="$osname" ;;
-esac
-rp="Operating system name?"
-. ./myread
-case "$ans" in
- none) osname='' ;;
- *) osname="$ans" ;;
-esac
-
-case "$osvers" in
- ''|' ')
- case "$hintfile" in
- none) dflt=none ;;
- *) dflt=`echo $hintfile | sed -e 's/\.sh$//' -e 's/^[^_]*//'`
- dflt=`echo $dflt | sed -e 's/^_//' -e 's/_/./g'` ;;
- esac
- ;;
- *) dflt="$osvers" ;;
-esac
-rp="Operating system version?"
-. ./myread
-case "$ans" in
- none) osvers='' ;;
- *) osvers="$ans" ;;
-esac
diff --git a/U/README.U b/U/README.U
deleted file mode 100644
index 4d4f9645a0..0000000000
--- a/U/README.U
+++ /dev/null
@@ -1,15 +0,0 @@
-?X: These units are based on the ones supplied with dist-3.0
-?X: patchlevel 22. They have been changed or enhanced to work with
-?X: perl5alpha. I would appreciate hearing about any changes,
-?X: corrections, or enhancements.
-?X: Andy Dougherty doughera@lafcol.lafayette.edu
-?X: Dept. of Physics
-?X: Lafayette College
-?X: Easton, PA 18042-1782
-?X: Sat Apr 2 15:45:17 EST 1994
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0, or in the perl distribution.
diff --git a/U/alignbytes.U b/U/alignbytes.U
deleted file mode 100644
index 38526465a0..0000000000
--- a/U/alignbytes.U
+++ /dev/null
@@ -1,57 +0,0 @@
-?RCS: $Id: alignbytes.U,v 3.0 1993/08/18 12:05:23 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: alignbytes.U,v $
-?RCS: Revision 3.0 1993/08/18 12:05:23 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:memalignbytes: Myread cat cc ccflags rm
-?MAKE: -pick add $@ %<
-?S:memalignbytes:
-?S: This variable holds the number of bytes required to align a
-?S: double. Usual values are 2, 4 and 8.
-?S:.
-?X: This used to be called ALIGNBYTES, but that conflicts with
-?X: <machines/param.h> in NetBSD.
-?C:MEM_ALIGNBYTES (ALIGNBYTES):
-?C: This symbol contains the number of bytes required to align a
-?C: double. Usual values are 2, 4 and 8.
-?C:.
-?H:#define MEM_ALIGNBYTES $memalignbytes /**/
-?H:.
-: check for alignment requirements
-echo " "
-case "$memalignbytes" in
-'') echo "Checking alignment constraints..." >&4
- $cat >try.c <<'EOCP'
-struct foobar {
- char foo;
- double bar;
-} try;
-main()
-{
- printf("%d\n", (char *)&try.bar - (char *)&try.foo);
-}
-EOCP
- if $cc $ccflags try.c -o try >/dev/null 2>&1; then
- dflt=`./try`
- else
- dflt='8'
- echo"(I can't seem to compile the test program...)"
- fi
- ;;
-*) dflt="$memalignbytes"
- ;;
-esac
-rp="Doubles must be aligned on a how-many-byte boundary?"
-. ./myread
-memalignbytes="$ans"
-$rm -f try.c try
-
diff --git a/U/cc.U b/U/cc.U
deleted file mode 100644
index 04950176c0..0000000000
--- a/U/cc.U
+++ /dev/null
@@ -1,111 +0,0 @@
-?RCS: $Id: cc.U,v 3.0 1993/08/18 12:05:30 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: cc.U,v $
-?RCS: Revision 3.0 1993/08/18 12:05:30 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:gccversion cc: cat contains sysman +large cpp rm test \
- Mcc Myread Guess Oldconfig Loc
-?MAKE: -pick add $@ %<
-?S:cc:
-?S: This variable holds the name of a command to execute a C compiler which
-?S: can resolve multiple global references that happen to have the same
-?S: name. Usual values are "cc", "Mcc", "cc -M", and "gcc".
-?S:.
-?S:gccversion:
-?S: If GNU cc (gcc) is used, this variable holds '1' or '2' to
-?S: indicate whether the compiler is version 1 or 2. This is used in
-?S: setting some of the default cflags.
-?S:.
-?D:cc='cc'
-?INIT:gccversion=''
-?LINT:change cpp
-: see if we need a special compiler
-echo " "
-if usg; then
- case "$cc" in
- '') case "$Mcc" in
- /*) dflt='Mcc';;
- *) case "$large" in
- -M*) dflt='cc';;
- *) if $contains '\-M' $sysman/cc.1 >/dev/null 2>&1 ; then
- if $contains '\-M' $sysman/cpp.1 >/dev/null 2>&1; then
- dflt='cc'
- else
- dflt='cc -M'
- fi
- else
- dflt='cc'
- fi;;
- esac;;
- esac;;
- *) dflt="$cc";;
- esac
- $cat <<'EOM'
-On some systems the default C compiler will not resolve multiple global
-references that happen to have the same name. On some such systems the "Mcc"
-command may be used to force these to be resolved. On other systems a "cc -M"
-command is required. (Note that the -M flag on other systems indicates a
-memory model to use!) If you have the Gnu C compiler, you might wish to use
-that instead.
-
-EOM
- rp="What command will force resolution on this system?"
- . ./myread
- cc="$ans"
-else
- case "$cc" in
- '') dflt=cc;;
- *) dflt="$cc";;
- esac
- rp="Use which C compiler?"
- . ./myread
- cc="$ans"
-fi
-case "$cc" in
-gcc*) echo "Checking out which version of gcc"
-$cat >gccvers.c <<EOM
-#include <stdio.h>
-int main()
-{
-char *v;
-v = "unknown";
-#ifdef __GNUC__
-# ifdef __VERSION__
- v = __VERSION__;
-# endif
-#endif
-switch((int) v[0])
- {
- case '1': printf("1\n"); break;
- case '2': printf("2\n"); break;
- case '3': printf("3\n"); break;
- default: break;
- }
-#ifdef __GNUC__
-return 0;
-#else
-return 1;
-#endif
-}
-EOM
- if $cc -o gccvers gccvers.c >/dev/null 2>&1; then
- gccversion=`./gccvers`
- echo "You appear to have version $gccversion."
- else
- echo "Doesn't appear to be GNU cc."
- fi
- $rm -f gccvers*
- if $test "$gccversion" = '1'; then
- cpp=`./loc gcc-cpp $cpp $pth`
- fi
- ;;
-esac
diff --git a/U/ccflags.U b/U/ccflags.U
deleted file mode 100644
index 1b9bf39829..0000000000
--- a/U/ccflags.U
+++ /dev/null
@@ -1,236 +0,0 @@
-?RCS: $Id: ccflags.U,v 3.0.1.3 1993/09/13 15:58:29 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: ccflags.U,v $
-?RCS: Revision 3.0.1.3 1993/09/13 15:58:29 ram
-?RCS: patch10: explicitely mention -DDEBUG just in case they need it (WAD)
-?RCS: patch10: removed all the "tans" variable usage (WAD)
-?RCS:
-?RCS: Revision 3.0.1.2 1993/08/27 14:39:38 ram
-?RCS: patch7: added support for OSF/1 machines
-?RCS:
-?RCS: Revision 3.0.1.1 1993/08/25 14:00:24 ram
-?RCS: patch6: added defaults for cppflags, ccflags and ldflags
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:05:31 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:ccflags ldflags lkflags cppflags optimize: test cat Myread Guess \
- Oldconfig cc gccversion mips_type +usrinc package contains
-?MAKE: -pick add $@ %<
-?S:ccflags:
-?S: This variable contains any additional C compiler flags desired by
-?S: the user. It is up to the Makefile to use this.
-?S:.
-?S:cppflags:
-?S: This variable holds the flags that will be passed to the C pre-
-?S: processor. It is up to the Makefile to use it.
-?S:.
-?S:optimize:
-?S: This variable contains any optimizer/debugger flag that should be used.
-?S: It is up to the Makefile to use it.
-?S:.
-?S:ldflags:
-?S: This variable contains any additional C loader flags desired by
-?S: the user. It is up to the Makefile to use this.
-?S:.
-?S:lkflags:
-?S: This variable contains any additional C partial linker flags desired by
-?S: the user. It is up to the Makefile to use this.
-?S:.
-?T:inctest thisincl xxx flag inclwanted
-?D:cppflags=''
-?D:ccflags=''
-?D:ldflags=''
-?INIT:: no include file wanted by default
-?INIT:inclwanted=''
-?INIT:
-: determine optimize, if desired, or use for debug flag also
-case "$optimize" in
-' ') dflt="none";;
-'') dflt="-g";;
-*) dflt="$optimize";;
-esac
-$cat <<EOH
-
-Some C compilers have problems with their optimizers, by default, $package
-compiles with the -O flag to use the optimizer. Alternately, you might want
-to use the symbolic debugger, which uses the -g flag (on traditional Unix
-systems). Either flag can be specified here. To use neither flag, specify
-the word "none".
-
-EOH
-rp="What optimizer/debugger flag should be used?"
-. ./myread
-optimize="$ans"
-case "$optimize" in
-'none') optimize=" ";;
-esac
-
-dflt=''
-case "$ccflags" in
-'') case "$cc" in
- *gcc*) if $test "$gccversion" = "1"; then
- dflt='-fpcc-struct-return'
- fi ;;
- esac
- case "$optimize" in
- *-g*) dflt="$dflt -DDEBUGGING";;
- esac
-?X: check for POSIXized ISC
- case "$cc" in
- *gcc*) if test -d /etc/conf/kconfig.d &&
- $contains _POSIX_VERSION $usrinc/sys/unistd.h >/dev/null 2>&1
- then
- dflt="$dflt -posix"
- fi
- ;;
- esac
- ;;
-esac
-
-?X: In USG mode, a MIPS system may need some BSD includes
-case "$mips_type" in
-*BSD*) ;;
-'') ;;
-*) inclwanted="$inclwanted $usrinc/bsd";;
-esac
-for thisincl in $inclwanted; do
- if $test -d $thisincl; then
- if $test x$thisincl != x$usrinc; then
- case "$dflt" in
- *$thisincl*);;
- *) dflt="$dflt -I$thisincl";;
- esac
- fi
- fi
-done
-
-?X: Include test function (header, symbol)
-inctest='if $contains $2 $usrinc/$1 >/dev/null 2>&1; then
- xxx=true;
-elif $contains $2 $usrinc/sys/$1 >/dev/null 2>&1; then
- xxx=true;
-else
- xxx=false;
-fi;
-if $xxx; then
- case "$dflt" in
- *$2*);;
- *) dflt="$dflt -D$2";;
- esac;
-fi'
-
-?X:
-?X: SCO unix uses NO_PROTOTYPE instead of _NO_PROTO
-?X: OSF/1 uses __LANGUAGE_C__ instead of LANGUAGE_C
-?X:
-if ./osf1; then
- set signal.h __LANGUAGE_C__; eval $inctest
-else
- set signal.h LANGUAGE_C; eval $inctest
-fi
-set signal.h NO_PROTOTYPE; eval $inctest
-set signal.h _NO_PROTO; eval $inctest
-
-case "$dflt" in
-'') dflt=none;;
-esac
-case "$ccflags" in
-'') ;;
-*) dflt="$ccflags";;
-esac
-$cat <<EOH
-
-Your C compiler may want other flags. For this question you should include
--I/whatever and -DWHATEVER flags and any other flags used by the C compiler,
-but you should NOT include libraries or ld flags like -lwhatever. If you
-want $package to honor its debug switch, you should include -DDEBUGGING here.
-To use no flags, specify the word "none".
-
-Your C compiler might also need additional flags, such as -DJMPCLOBBER,
--DHIDEMYMALLOC or -DCRIPPLED_CC.
-EOH
-?X: strip leading space
-set X $dflt
-shift
-dflt=${1+"$@"}
-rp="Any additional cc flags?"
-. ./myread
-case "$ans" in
-none) ccflags='';;
-*) ccflags="$ans";;
-esac
-
-: the following weeds options from ccflags that are of no interest to cpp
-cppflags="$ccflags"
-case "$cc" in
-*gcc*) case "$gccversion" in
- 1) cppflags="$cppflags -D__GNUC__" ;;
- esac
- ;;
-esac
-case "$mips_type" in
-'');;
-*BSD*) cppflags="$cppflags -DSYSTYPE_BSD43";;
-esac
-case "$cppflags" in
-'');;
-*) set X $cppflags
- cppflags=''
- for flag
- do
- case $flag in
- -D*|-I*|-traditional|-ansi|-nostdinc|-posix|-Xp) cppflags="$cppflags $flag";;
- esac
- done
- case "$cppflags" in
- *-*) echo "(C preprocessor flags: $cppflags)";;
- esac
- ;;
-esac
-
-: flags used in final linking phase
-case "$ldflags" in
-'') if venix; then
- dflt='-i -z'
- else
- dflt='none'
- fi
- ;;
-*) dflt="$ldflags";;
-esac
-echo " "
-rp="Any additional ld flags (NOT including libraries)?"
-. ./myread
-case "$ans" in
-none) ldflags='';;
-*) ldflags="$ans";;
-esac
-rmlist="$rmlist pdp11"
-
-@if lkflags
-: partial linking may need other flags
-case "$lkflags" in
-'') case "$ldflags" in
- '') dflt='none';;
- *) dflt="$ldflags";;
- esac;;
-*) dflt="$lkflags";;
-esac
-echo " "
-rp="Partial linking flags to be used (NOT including -r)?"
-. ./myread
-case "$ans" in
-none) lkflags='';;
-*) lkflags="$ans";;
-esac
-
-@end
diff --git a/U/d_casti32.U b/U/d_casti32.U
deleted file mode 100644
index f33b5f811f..0000000000
--- a/U/d_casti32.U
+++ /dev/null
@@ -1,77 +0,0 @@
-?RCS: $Id: d_casti32.U,v 3.0 1993/08/18 12:05:47 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_casti32.U,v $
-?RCS: Revision 3.0 1993/08/18 12:05:47 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?X:
-?X: Can the compiler cast large floats to 32-bit integers?
-?X:
-?MAKE:d_casti32: cat cc ccflags rm intsize Setvar test
-?MAKE: -pick add $@ %<
-?S:d_casti32:
-?S: This variable conditionally defines CASTI32, which indicates
-?S: wether the C compiler can cast large floats to 32-bit ints.
-?S:.
-?T:xxx yyy
-?C:CASTI32:
-?C: This symbol is defined if the C compiler can cast negative
-?C: or large floating point numbers to 32-bit ints.
-?C:.
-?H:#$d_casti32 CASTI32 /**/
-?H:.
-?LINT:set d_casti32
-: check for ability to cast large floats to 32-bit ints.
-echo " "
-echo 'Checking whether your C compiler can cast large floats to int32.' >&4
-if $test "$intsize" -eq 4; then
- xxx=int
-else
- xxx=long
-fi
-
-$cat >try.c <<EOCP
-#include <sys/types.h>
-#include <signal.h>
-blech() { exit(3); }
-main()
-{
- $xxx i32;
- double f;
- int result = 0;
- signal(SIGFPE, blech);
-
- f = (double) 0x7fffffff;
- f = 10 * f;
- i32 = ( $xxx )f;
-
- if (i32 != ( $xxx )f)
- result |= 1;
- exit(result);
-}
-EOCP
-if $cc -o try $ccflags try.c >/dev/null 2>&1; then
- ./try
- yyy=$?
-else
- yyy=1
-fi
-case "$yyy" in
-0) val="$define"
- echo "Yup, it can."
- ;;
-*) val="$undef"
- echo "Nope, it can't."
- ;;
-esac
-set d_casti32
-eval $setvar
-$rm -f try try.*
diff --git a/U/d_htonl.U b/U/d_htonl.U
deleted file mode 100644
index 0cb16479d4..0000000000
--- a/U/d_htonl.U
+++ /dev/null
@@ -1,76 +0,0 @@
-?RCS: $Id: d_htonl.U,v 3.0 1993/08/18 12:06:22 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_htonl.U,v $
-?RCS: Revision 3.0 1993/08/18 12:06:22 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:d_htonl: cc ccflags Inlibc i_niin i_sysin rm
-?MAKE: -pick add $@ %<
-?S:d_htonl:
-?S: This variable conditionally defines HAS_HTONL if htonl() and its
-?S: friends are available to do network order byte swapping.
-?S:.
-?C:HAS_HTONL (HTONL):
-?C: This symbol, if defined, indicates that the htonl() routine (and
-?C: friends htons() ntohl() ntohs()) are available to do network
-?C: order byte swapping.
-?C:.
-?C:HAS_HTONS (HTONS):
-?C: This symbol, if defined, indicates that the htons() routine (and
-?C: friends htonl() ntohl() ntohs()) are available to do network
-?C: order byte swapping.
-?C:.
-?C:HAS_NTOHL (NTOHL):
-?C: This symbol, if defined, indicates that the ntohl() routine (and
-?C: friends htonl() htons() ntohs()) are available to do network
-?C: order byte swapping.
-?C:.
-?C:HAS_NTOHS (NTOHS):
-?C: This symbol, if defined, indicates that the ntohs() routine (and
-?C: friends htonl() htons() ntohl()) are available to do network
-?C: order byte swapping.
-?C:.
-?H:#$d_htonl HAS_HTONL /**/
-?H:#$d_htonl HAS_HTONS /**/
-?H:#$d_htonl HAS_NTOHL /**/
-?H:#$d_htonl HAS_NTOHS /**/
-?H:.
-?LINT:set d_htonl
-: see if htonl --and friends-- exists
-set htonl d_htonl
-eval $inlibc
-: Maybe they are macros.
-case "$d_htonl" in
-'define') ;;
-*) cat > try.c <<EOM
-#include <stdio.h>
-#include <sys/types.h>
-#$i_niin I_NETINET_IN
-#$i_sysin I_SYS_IN
-#ifdef I_NETINET_IN
-# include <netinet/in.h>
-#endif
-#ifdef I_SYS_IN
-# include <sys/in.h>
-#endif
-int main()
-{
- int x;
- printf("x = ", htonl(7));
-}
-EOM
- if $cc $ccflags -c try.c >/dev/null 2>&1; then
- d_htonl="$define"
- echo "But it seems to be defined as a macro."
- fi
- $rm -f try.* try
- ;;
-esac
diff --git a/U/d_isascii.U b/U/d_isascii.U
deleted file mode 100644
index 70fba1998a..0000000000
--- a/U/d_isascii.U
+++ /dev/null
@@ -1,50 +0,0 @@
-?RCS: $Id: d_isascii.U,v 3.0 1993/08/18 12:06:44 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_isascii.U,v $
-?RCS: Revision 3.0 1993/08/18 12:06:44 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:d_isascii: cc cat cppflags rm Setvar Findhdr
-?MAKE: -pick add $@ %<
-?S:d_isascii:
-?S: This variable conditionally defines the HAS_ISASCII manifest constant,
-?S: which indicates to the C program that isascii() is available.
-?S:.
-?C:HAS_ISASCII (ISASCII):
-?C: This manifest constant lets the C program know that the
-?C: isascii is available.
-?C:.
-?H:#$d_isascii HAS_ISASCII /**/
-?H:.
-?LINT:set d_isascii
-: Look for isascii
-echo " "
-$cat >isascii.c <<'EOCP'
-#include <stdio.h>
-#include <ctype.h>
-main() {
- int c = 'A';
- if (isascii(c))
- exit(0);
- else
- exit(1);
-}
-EOCP
-if $cc $cppflags -o isascii isascii.c >/dev/null 2>&1 ; then
- echo "isascii() found."
- val="$define"
-else
- echo "isascii() NOT found."
- val="$undef"
-fi
-set d_isascii
-eval $setvar
-$rm -f isascii*
diff --git a/U/d_readdir.U b/U/d_readdir.U
deleted file mode 100644
index e9364b4121..0000000000
--- a/U/d_readdir.U
+++ /dev/null
@@ -1,70 +0,0 @@
-?RCS: $Id: d_readdir.U,v 3.0 1993/08/18 12:06:52 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_readdir.U,v $
-?RCS: Revision 3.0 1993/08/18 12:06:52 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?X: Force checking for <dirent.h> inclusion
-?X:INC: i_dirent
-?MAKE:d_readdir d_seekdir d_telldir d_rewinddir: Inlibc
-?MAKE: -pick add $@ %<
-?S:d_readdir:
-?S: This variable conditionally defines HAS_READDIR if readdir() is
-?S: available to read directory entries.
-?S:.
-?C:HAS_READDIR (READDIR):
-?C: This symbol, if defined, indicates that the readdir routine is
-?C: available to read directory entries. You may have to include
-?C: <dirent.h>. See I_DIRENT.
-?C:.
-?H:#$d_readdir HAS_READDIR /**/
-?H:.
-?S:d_seekdir:
-?S: This variable conditionally defines HAS_SEEKDIR if seekdir() is
-?S: available.
-?S:.
-?C:HAS_SEEKDIR:
-?C: This symbol, if defined, indicates that the seekdir routine is
-?C: available. You may have to include <dirent.h>. See I_DIRENT.
-?C:.
-?H:#$d_seekdir HAS_SEEKDIR /**/
-?H:.
-?S:d_telldir:
-?S: This variable conditionally defines HAS_TELLDIR if telldir() is
-?S: available.
-?S:.
-?C:HAS_TELLDIR:
-?C: This symbol, if defined, indicates that the telldir routine is
-?C: available. You may have to include <dirent.h>. See I_DIRENT.
-?C:.
-?H:#$d_telldir HAS_TELLDIR /**/
-?H:.
-?S:d_rewinddir:
-?S: This variable conditionally defines HAS_REWINDDIR if rewinddir() is
-?S: available.
-?S:.
-?C:HAS_REWINDDIR:
-?C: This symbol, if defined, indicates that the rewinddir routine is
-?C: available. You may have to include <dirent.h>. See I_DIRENT.
-?C:.
-?H:#$d_rewinddir HAS_REWINDDIR /**/
-?H:.
-?LINT:set d_readdir d_seekdir d_telldir d_rewinddir
-: see if readdir and friends exist
-set readdir d_readdir
-eval $inlibc
-set seekdir d_seekdir
-eval $inlibc
-set telldir d_telldir
-eval $inlibc
-set rewinddir d_rewinddir
-eval $inlibc
-
diff --git a/U/d_safebcpy.U b/U/d_safebcpy.U
deleted file mode 100644
index b7373a0791..0000000000
--- a/U/d_safebcpy.U
+++ /dev/null
@@ -1,81 +0,0 @@
-?RCS: $Id: d_safebcpy.U,v 3.0 1993/08/18 12:06:58 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_safebcpy.U,v $
-?RCS:
-?RCS: Copy "abcde..." string to char abc[] so that gcc doesn't
-?RCS: try to store the string in read-only memory.
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:06:58 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:d_safebcpy: cat d_bcopy +cc +ccflags +libs rm Oldconfig Setvar
-?MAKE: -pick add $@ %<
-?S:d_safebcpy:
-?S: This variable conditionally defines the HAS_SAFE_BCOPY symbol if
-?S: the bcopy() routine can do overlapping copies.
-?S:.
-?C:HAS_SAFE_BCOPY (SAFE_BCOPY):
-?C: This symbol, if defined, indicates that the bcopy routine is available
-?C: to copy potentially overlapping memory blocks. Otherwise you should
-?C: probably use memmove() or memcpy(). If neither is defined, roll your
-?C: own version.
-?C:.
-?H:#$d_safebcpy HAS_SAFE_BCOPY /**/
-?H:.
-?LINT: set d_safebcpy
-: can bcopy handle overlapping blocks?
-?X: assume the worst
-val="$undef"
-case "$d_bcopy" in
-"$define")
- echo " "
- echo "Checking to see if your bcopy() can do overlapping copies..." >&4
- $cat >foo.c <<'EOCP'
-main()
-{
-char buf[128], abc[128];
-char *b;
-int len;
-int off;
-int align;
-bcopy("abcdefghijklmnopqrstuvwxyz0123456789", abc, 36);
-
-for (align = 7; align >= 0; align--) {
- for (len = 36; len; len--) {
- b = buf+align;
- bcopy(abc, b, len);
- for (off = 1; off <= len; off++) {
- bcopy(b, b+off, len);
- bcopy(b+off, b, len);
- if (bcmp(b, abc, len))
- exit(1);
- }
- }
-}
-exit(0);
-}
-EOCP
- if $cc foo.c -o safebcpy $ccflags $libs >/dev/null 2>&1 ; then
- if ./safebcpy 2>/dev/null; then
- echo "Yes, it can."
- val="$define"
- else
- echo "It can't, sorry."
- fi
- else
- echo "(I can't compile the test program, so we'll assume not...)"
- fi
- ;;
-esac
-$rm -f foo.* safebcpy core
-set d_safebcpy
-eval $setvar
-
diff --git a/U/d_safemcpy.U b/U/d_safemcpy.U
deleted file mode 100644
index 2f32680709..0000000000
--- a/U/d_safemcpy.U
+++ /dev/null
@@ -1,82 +0,0 @@
-?RCS: $Id: d_safemcpy.U,v 3.0 1993/08/18 12:06:58 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_safemcpy.U,v $
-?RCS:
-?RCS: Copy "abcde..." string to char abc[] so that
-?RCS: gcc doesn't try to store the string in read-only memory.
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:06:58 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:d_safemcpy: cat d_memcpy +cc +ccflags +libs rm Oldconfig Setvar
-?MAKE: -pick add $@ %<
-?S:d_safemcpy:
-?S: This variable conditionally defines the HAS_SAFE_MEMCPY symbol if
-?S: the memcpy() routine can do overlapping copies.
-?S:.
-?C:HAS_SAFE_MEMCPY (SAFE_MEMCPY):
-?C: This symbol, if defined, indicates that the memcpy routine is available
-?C: to copy potentially overlapping memory blocks. Otherwise you should
-?C: probably use memmove() or memcpy(). If neither is defined, roll your
-?C: own version.
-?C:.
-?H:#$d_safemcpy HAS_SAFE_MEMCPY /**/
-?H:.
-?LINT: set d_safemcpy
-: can memcpy handle overlapping blocks?
-?X: assume the worst
-val="$undef"
-case "$d_memcpy" in
-"$define")
- echo " "
- echo "Checking to see if your memcpy() can do overlapping copies..." >&4
- $cat >foo.c <<'EOCP'
-main()
-{
-char buf[128], abc[128];
-char *b;
-int len;
-int off;
-int align;
-
-memcpy(abc, "abcdefghijklmnopqrstuvwxyz0123456789", 36);
-
-for (align = 7; align >= 0; align--) {
- for (len = 36; len; len--) {
- b = buf+align;
- memcpy(abc, b, len);
- for (off = 1; off <= len; off++) {
- memcpy(b, b+off, len);
- memcpy(b+off, b, len);
- if (memcmp(b, abc, len))
- exit(1);
- }
- }
-}
-exit(0);
-}
-EOCP
- if $cc foo.c -o safemcpy $ccflags $libs >/dev/null 2>&1 ; then
- if ./safemcpy 2>/dev/null; then
- echo "Yes, it can."
- val="$define"
- else
- echo "It can't, sorry."
- fi
- else
- echo "(I can't compile the test program, so we'll assume not...)"
- fi
- ;;
-esac
-$rm -f foo.* safemcpy core
-set d_safemcpy
-eval $setvar
-
diff --git a/U/d_setlocale.U b/U/d_setlocale.U
deleted file mode 100644
index 14ce63890e..0000000000
--- a/U/d_setlocale.U
+++ /dev/null
@@ -1,30 +0,0 @@
-?RCS: $Id: d_setlocale.U,v 3.0 1993/08/18 12:07:36 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_setlocale.U,v $
-?RCS: Revision 3.0 1993/08/18 12:07:36 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:d_setlocale: Inlibc
-?MAKE: -pick add $@ %<
-?S:d_setlocale:
-?S: This variable conditionally defines HAS_SETLOCALE if setlocale() is
-?S: available to handle locale-specific ctype implementations.
-?S:.
-?C:HAS_SETLOCALE:
-?C: This symbol, if defined, indicates that the setlocale routine is
-?C: available to handle locale-specific ctype implementations.
-?C:.
-?H:#$d_setlocale HAS_SETLOCALE /**/
-?H:.
-?LINT:set d_setlocale
-: see if setlocale exists
-set setlocale d_setlocale
-eval $inlibc
diff --git a/U/d_shmat.U b/U/d_shmat.U
deleted file mode 100644
index e3f8097a0d..0000000000
--- a/U/d_shmat.U
+++ /dev/null
@@ -1,54 +0,0 @@
-?RCS: $Id: d_shmat.U,v 3.0 1993/08/18 12:07:18 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_shmat.U,v $
-?RCS: Revision 3.0 1993/08/18 12:07:18 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:d_shmat d_voidshmat: Inlibc cppstdin cppflags cppminus usrinc \
- contains
-?MAKE: -pick add $@ %<
-?S:d_shmat:
-?S: This variable conditionally defines the HAS_SHMAT symbol, which
-?S: indicates to the C program that the shmat() routine is available.
-?S:.
-?S:d_voidshmat:
-?S: This symbol, if defined, indicates that the shmat() routine
-?S: returns a pointer of type void*. Otherwise, char* is assumed.
-?S:.
-?C:HAS_SHMAT:
-?C: This symbol, if defined, indicates that the shmat() routine is
-?C: available to attach a shared memory segment to the process space.
-?C:.
-?H:#$d_shmat HAS_SHMAT /**/
-?H:.
-?C:VOIDSHMAT:
-?C: This symbol, if defined, indicates that the shmat() routine
-?C: returns a pointer of type void*. Otherwise, char* is assumed.
-?C:.
-?H:#$d_voidshmat VOIDSHMAT /**/
-?H:.
-?LINT:set d_shmat d_voidshmat
-: see if shmat exists
-set shmat d_shmat
-eval $inlibc
-: see what shmat returns
-d_voidshmat="$undef"
-case "$d_shmat" in
-define)
- $cppstdin $cppflags $cppminus < $usrinc/sys/shm.h >voidshmat.txt 2>/dev/null
- if $contains "void.*shmat" voidshmat.txt >/dev/null 2>&1; then
- echo "and shmat returns (void*)"
- d_voidshmat="$define"
- else
- echo "and shmat returns (char*)"
- fi
- ;;
-esac
diff --git a/U/d_strerror.U b/U/d_strerror.U
deleted file mode 100644
index 252d9df296..0000000000
--- a/U/d_strerror.U
+++ /dev/null
@@ -1,113 +0,0 @@
-?RCS: $Id: d_strerror.U,v 3.0.1.1 1994/01/24 14:08:56 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_strerror.U,v $
-?RCS: Revision 3.0.1.1 1994/01/24 14:08:56 ram
-?RCS: patch16: protected code looking for sys_errnolist[] with @if
-?RCS: patch16: added default value for d_sysernlst
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:07:35 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:d_strerror d_syserrlst d_sysernlst d_strerrm: contains Csym Findhdr
-?MAKE: -pick add $@ %<
-?S:d_strerror:
-?S: This variable conditionally defines HAS_STRERROR if strerror() is
-?S: available to translate error numbers to strings.
-?S:.
-?S:d_syserrlst:
-?S: This variable conditionally defines HAS_SYS_ERRLIST if sys_errlist[] is
-?S: available to translate error numbers to strings.
-?S:.
-?S:d_sysernlst:
-?S: This variable conditionally defines HAS_SYS_ERRNOLIST if sys_errnolist[]
-?S: is available to translate error numbers to the symbolic name.
-?S:.
-?S:d_strerrm:
-?S: This variable conditionally defines strerrr as a macro if the
-?S: sys_errlist[] array is defined.
-?S:.
-?C:HAS_STRERROR (STRERROR):
-?C: This symbol, if defined, indicates that the strerror routine is
-?C: available to translate error numbers to strings. See the writeup
-?C: of Strerror() in this file before you try to define your own.
-?C:.
-?C:HAS_SYS_ERRLIST (SYSERRLIST):
-?C: This symbol, if defined, indicates that the sys_errlist array is
-?C: available to translate error numbers to strings. The extern int
-?C: sys_nerr gives the size of that table.
-?C:.
-?C:HAS_SYS_ERRNOLIST (SYSERRNOLIST):
-?C: This symbol, if defined, indicates that the sys_errnolist array is
-?C: available to translate an errno code into its symbolic name (e.g.
-?C: ENOENT). The extern int sys_nerrno gives the size of that table.
-?C:.
-?C:Strerror:
-?C: This preprocessor symbol is defined as a macro if strerror() is
-?C: not available to translate error numbers to strings but sys_errlist[]
-?C: array is there.
-?C:.
-?H:#$d_strerror HAS_STRERROR /**/
-?H:#$d_syserrlst HAS_SYS_ERRLIST /**/
-?H:#$d_sysernlst HAS_SYS_ERRNOLIST /**/
-?H:?%<:#ifdef HAS_STRERROR
-?H:?%<:# define Strerror strerror
-?H:?%<:#else
-?H:#$d_strerrm Strerror(e) ((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e]) /**/
-?H:?%<:#endif
-?H:.
-?D:d_sysernlst=''
-?T:xxx val
-: see if strerror and/or sys_errlist[] exist
-echo " "
-if set strerror val -f d_strerror; eval $csym; $val; then
- echo 'strerror() found.' >&4
- d_strerror="$define"
- d_strerrm="$undef"
- if set sys_errlist val -a d_syserrlst; eval $csym; $val; then
- echo "(You also have sys_errlist[], so we could roll our own strerror.)"
- d_syserrlst="$define"
- else
- echo "(Since you don't have sys_errlist[], sterror() is welcome.)"
- d_syserrlst="$undef"
- fi
-elif xxx=`./findhdr string.h`; test "$xxx" || xxx=`./findhdr strings.h`; \
- $contains '#[ ]*define.*strerror' "$xxx" >/dev/null 2>&1; then
- echo 'strerror() found in string header.' >&4
- d_strerror="$define"
- d_strerrm="$undef"
- if set sys_errlist val -a d_syserrlst; eval $csym; $val; then
- echo "(Most probably, strerror() uses sys_errlist[] for descriptions.)"
- d_syserrlst="$define"
- else
- echo "(You don't appear to have any sys_errlist[], how can this be?)"
- d_syserrlst="$undef"
- fi
-elif set sys_errlist val -a d_syserrlst; eval $csym; $val; then
-echo "strerror() not found, but you have sys_errlist[] so we'll use that." >&4
- d_strerror="$undef"
- d_syserrlst="$define"
- d_strerrm="$define"
-else
- echo 'strerror() and sys_errlist[] NOT found.' >&4
- d_strerror="$undef"
- d_syserrlst="$undef"
- d_strerrm="$undef"
-fi
-@if d_sysernlst || HAS_SYS_ERRNOLIST
-if set sys_errnolist val -a d_sysernlst; eval $csym; $val; then
- echo "(Symbolic error codes can be fetched via the sys_errnolist[] array.)"
- d_sysernlst="$define"
-else
- echo "(However, I can't extract the symbolic error code out of errno.)"
- d_sysernlst="$undef"
-fi
-@end
-
diff --git a/U/d_vfork.U b/U/d_vfork.U
deleted file mode 100644
index fb674340e2..0000000000
--- a/U/d_vfork.U
+++ /dev/null
@@ -1,56 +0,0 @@
-?RCS: $Id: d_vfork.U,v 3.0.1.2 1993/10/16 13:49:39 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: d_vfork.U,v $
-?RCS: Revision 3.0.1.2 1993/10/16 13:49:39 ram
-?RCS: patch12: added magic for vfork()
-?RCS:
-?RCS: Revision 3.0.1.1 1993/09/13 16:06:57 ram
-?RCS: patch10: removed automatic remapping of vfork on fork (WAD)
-?RCS: patch10: added compatibility code for older config.sh (WAD)
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:07:55 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:d_vfork: Inlibc
-?MAKE: -pick add $@ %<
-?S:d_vfork:
-?S: This variable conditionally defines the HAS_VFORK symbol, which
-?S: indicates the vfork() routine is available.
-?S:.
-?C:HAS_VFORK (VFORK):
-?C: This symbol, if defined, indicates that vfork() exists.
-?C:.
-?H:#$d_vfork HAS_VFORK /**/
-?H:.
-?M:vfork: HAS_VFORK
-?M:#ifndef HAS_VFORK
-?M:#define vfork fork
-?M:#endif
-?M:.
-?LINT:set d_vfork
-: see if there is a vfork
-set vfork d_vfork
-eval $inlibc
-: But do we want to use it. vfork is reportedly unreliable in
-: perl in Solaris 2.x, and probably elsewhere.
-case "$d_vfork" in
-define)
- dflt='n'
- rp="Some systems have problems with vork. Do you want to use it?"
- . ./myread
- case "$ans" in
- y|Y) ;;
- *) echo "Ok, we won't use vfork."
- d_vfork="$undef"
- ;;
- esac
- ;;
-esac
diff --git a/U/dlsrc.U b/U/dlsrc.U
deleted file mode 100644
index 616818d346..0000000000
--- a/U/dlsrc.U
+++ /dev/null
@@ -1,230 +0,0 @@
-?RCS: $Id: dlsrc.U,v$
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: dlsrc.U,v $
-?RCS:
-?X: hpux support thanks to Jeff Okamoto <okamoto@hpcc101.corp.hp.com>
-?X:
-?X: To create a shared library, you must compile ALL source files in the
-?X: library with +z (or possibly +Z if the library is whopping huge),
-?X: then link the library with -b. Example:
-?X: cc -c +z module_a.c
-?X: cc -c +z module_b.c
-?X: ld -b module_a.o module_b.o -o module.sl
-?X:
-?MAKE:usedl dlsrc dlobj dldir cccdlflags lddlflags ccdlflags \
- shlibsuffix: Getfile Myread test osname sed i_dlfcn Findhdr cc
-?MAKE: -pick add $@ %<
-?S:usedl:
-?S: This variable contains indicates if the the system supports dynamic
-?S: loading of some sort. See also dlsrc and dlobj.
-?S:.
-?S:dlsrc:
-?S: This variable contains the name of the dynamic loading file that
-?S: will be used with the package.
-?S:.
-?S:dlobj:
-?S: This variable contains the name of the dynamic loading object
-?S: file that will be used with the package. This is used in Makefile.
-?S:.
-?S:dldir:
-?S: This variable contains the directory from which to fetch dlsrc.
-?S: It is up to the makefile to use it.
-?S:.
-?S:cccdlflags:
-?S: This variable contains any special flags that might need to be
-?S: passed with cc -c to compile modules to be used to create a shared
-?S: library that will be used for dynamic loading. For hpux, this
-?S: should be +z. It is up to the makefile to use it.
-?S:.
-?S:lddlflags:
-?S: This variable contains any special flags that might need to be
-?S: passed to ld to create a shared library suitable for dynamic
-?S: loading. It is up to the makefile to use it. For hpux, it
-?S: should be -b. For sunos 4.1, it is empty.
-?S:.
-?S:ccdlflags:
-?S: This variable contains any special flags that might need to be
-?S: passed to cc to link with a shared library for dynamic loading.
-?S: It is up to the makefile to use it. For sunos 4.1, it should
-?S: be empty.
-?S:.
-?S:shlibsuffix:
-?S: Shared libraries are built by Makefile in the form
-?S: lib/auto/xxx/xxx${shsuffix}, where xxx is
-?S: the name of the library, e.g. /lib/auto/POSIX/POSIX.so
-?S:.
-?C:USE_DYNAMIC_LOADING ~ %<:
-?C: This symbol, if defined, indicates that dynamic loading of
-?C: some sort is available.
-?C:.
-?H:?%<:#$usedl USE_DYNAMIC_LOADING /**/
-?H:.
-?W:%<:dlopen
-?INIT:: File to use for dynamic loading
-?INIT:usedl=''
-?T:xxx
-?X:
-?X: We select a default of 'define' for usedl if either dl_$osname.c
-?X: exists or if i_dlfcn is defined (which probably means dl_sunos.c
-?X: will work.)
-?X:
-: determine which dynamic loading, if any, to compile in
-echo " "
-case "$usedl" in
-'') case "$i_dlfcn" in
- define) dflt='y' ;;
- *) dflt='n' ;;
- esac
- : Does a dl.c file exist for this operating system
- $test -f ../ext/dl/dl_${osname}.c && dflt='y'
- ;;
-define|y|true) dflt='y'
- usedl="$define"
- ;;
-*) dflt='n'
- ;;
-esac
-rp="Do you wish to attempt to use dynamic loading?"
-. ./myread
-usedl="$ans"
-case "$ans" in
-y*) usedl="$define"
- if $test -f ../ext/dl/dl_${osname}.c ; then
- dflt="ext/dl/dl_${osname}.c"
- else
- dflt='ext/dl/dl.c'
- fi
- echo "The following dynamic loading files are available:"
- cd ..; ls -C ext/dl/dl*.c; cd UU
- rp="Source file to use for dynamic loading"
- fn="fne~"
- . ./getfile
- : emulate basename and dirname
- xxx=`echo $ans | $sed -e 's@.*/\([^/]*\)$@\1@' -e 's@\.c$@@'`
- dlobj=$xxx.o
- dlsrc=$xxx.c
- dldir=`echo $ans | $sed 's@\(.*\)/[^/]*$@\1@'`
- case "$dldir" in
- '') dldir="." ;;
- *) ;;
- esac
- if $test -f ../$dldir/$dlsrc; then
- usedl="$define"
- else
- echo "File $dlsrc does not exist -- ignored"
- usedl="$undef"
- fi
-
- cat << EOM
-
-Some systems may require passing special flags to $cc -c to
-compile modules that will be used to create a shared library.
-To use no flags, say "none".
-EOM
- case "$cccdlflags" in
- ''|' ') case "$osname" in
- hpux) dflt='+z' ;;
- next) dflt='none' ;;
- sunos) dflt='none' ;;
- *) dflt='none' ;;
- esac
- ;;
- *) dflt="$cccdlflags" ;;
- esac
- rp="Any special flags to pass to $cc -c to compile shared library modules?"
- . ./myread
- case "$ans" in
- none) cccdlflags='' ;;
- *) cccdlflags="$ans" ;;
- esac
-
- cat << 'EOM'
-
-Some systems may require passing special flags to ld to
-create a shared library. To use no flags, say "none".
-EOM
-?X: I have received one report that NeXT requires -r here.
-?X: On SunOS 4.1.3, that makes the library no longer shared.
- case "$lddlflags" in
- ''|' ') case "$osname" in
- hpux) dflt='-b' ;;
- next) dflt='none' ;;
- sunos) dflt='none' ;;
- *) dflt='none' ;;
- esac
- ;;
- *) dflt="$lddlflags" ;;
- esac
- rp="Any special flags to pass to ld to create a shared library?"
- . ./myread
- case "$ans" in
- none) lddlflags='' ;;
- *) lddlflags="$ans" ;;
- esac
-
- cat <<EOM
-
-Some systems may require passing special flags to $cc to indicate that
-dynamic linking will be used. To use no flags, say "none".
-EOM
- case "$ccdlflags" in
- ''|' ')
- case "$osname" in
- hpux) dflt='none' ;;
- next) dflt='none' ;;
- sunos) dflt='none' ;;
- *) dflt='none' ;;
- esac
- ;;
- *) dflt="$ccdlflags"
- ;;
- esac
- rp="Any special flags to pass to $cc to use dynamic loading?"
- . ./myread
- case "$ans" in
- none) ccdlflags='' ;;
- *) ccdlflags="$ans" ;;
- esac
- cat <<EOM
-
-Some systems may require using a special suffix for shared libraries.
-To create the shared library for POSIX, for example, you may need to
-actually build the file POSIX.so.
-
-EOM
- case "$shlibsuffix" in
- '')
- case "$osname" in
- hpux) dflt='.sl' ;;
- next) dflt='.so' ;;
- sunos) dflt='.so' ;;
- *) dflt='.so' ;;
- esac
- ;;
- *) dflt="$shlibsuffix"
- ;;
- esac
- rp="What is the suffix used for shared libraries?"
- . ./myread
- case "$ans" in
- none) shlibsuffix='' ;;
- *) shlibsuffix="$ans" ;;
- esac
- ;;
-?X: End of usedl=y section
-*) usedl="$undef"
- : These are currently not used.
- dlsrc=''
- dlobj=''
- dldir=''
- lddlflags=''
- ccdlflags=''
- shlibsuffix='.o'
- ;;
-esac
diff --git a/U/gidtype.U b/U/gidtype.U
deleted file mode 100644
index 962f3d8a6b..0000000000
--- a/U/gidtype.U
+++ /dev/null
@@ -1,54 +0,0 @@
-?RCS: $Id: gidtype.U,v 3.0 1993/08/18 12:08:11 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: gidtype.U,v $
-?RCS: Revision 3.0 1993/08/18 12:08:11 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:gidtype: Myread Oldconfig contains Findhdr Setvar
-?MAKE: -pick add $@ %<
-?S:gidtype:
-?S: This variable defines Gid_t to be something like gid_t, int,
-?S: ushort, or whatever type is used to declare the return type
-?S: of getgid(). Typically, it is the type of group ids in the kernel.
-?S:.
-?C:Gid_t (GIDTYPE):
-?C: This symbol holds the return type of getgid() and the type of
-?C: argument to setrgid() and related functions. Typically,
-?C: it is the type of group ids in the kernel.
-?C: It can be int, ushort, uid_t, etc... It may be necessary to include
-?C: <sys/types.h> to get any typedef'ed information.
-?C:.
-?H:#define Gid_t $gidtype /* Type for getgid(), etc... */
-?H:.
-?T:xxx
-?INIT:gidtype=''
-: see what type gids are declared as in the kernel
-case "$gidtype" in
-'')
- if $contains 'gid_t;' `./findhdr sys/types.h` >/dev/null 2>&1 ; then
- dflt='gid_t';
- else
- xxx=`./findhdr sys/user.h`
- set `grep 'groups\[NGROUPS\];' "$xxx" 2>/dev/null` unsigned short
- case $1 in
- unsigned) dflt="$1 $2" ;;
- *) dflt="$1" ;;
- esac
- fi
- ;;
-*) dflt="$gidtype";;
-esac
-echo " "
-rp="What is the type for group ids returned by getgid()?"
-. ./myread
-val="$ans"
-set gidtype
-eval $setvar
diff --git a/U/groupstype.U b/U/groupstype.U
deleted file mode 100644
index 355ea14980..0000000000
--- a/U/groupstype.U
+++ /dev/null
@@ -1,51 +0,0 @@
-?RCS: $Id: groupstype.U,v$
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: groupstype.U,v $
-?RCS:
-?MAKE:groupstype: gidtype d_getgrps Myread Oldconfig Findhdr cat Setvar
-?MAKE: -pick add $@ %<
-?INIT:groupstype=''
-?S:groupstype:
-?S: This variable defines GROUPSTYPE to be something like gid_t, int,
-?S: ushort, or whatever type is used for the second argument to
-?S: getgroups(). Usually, this is the same of gidtype, but
-?S: sometimes it isn't.
-?S:.
-?C:GROUPSTYPE:
-?C: This symbol holds the type used for the second argument to
-?C: getgroups(). Usually, this is the same of gidtype, but
-?C: sometimes it isn't. It can be int, ushort, uid_t, etc...
-?C: It may be necessary to include <sys/types.h> to get any
-?C: typedef'ed information. This is only required if you have
-?C: getgroups().
-?C:.
-?H:?%<:#ifdef HAS_GETGROUPS
-?H:?%<:#define GROUPSTYPE $groupstype /* Type for 2nd arg to getgroups() */
-?H:?%<:#endif
-?H:.
-?W:%<:getgroups HAS_GETGROUPS
-case "$d_getgrps" in
-'define')
- case "$groupstype" in
- '') dflt="$gidtype" ;;
- *) dflt="$groupstype" ;;
- esac
- echo " "
- $cat <<EOM
-What is the type of the second argument to getgroups()? Usually this
-is the same as group ids, $gidtype, but not always.
-EOM
- rp="What type is the second arguement to getgroups()?"
- . ./myread
- val="$ans"
- ;;
-*) val="$gidtype";;
-esac
-set groupstype
-eval $setvar
diff --git a/U/i_dlfcn.U b/U/i_dlfcn.U
deleted file mode 100644
index dcffe126bf..0000000000
--- a/U/i_dlfcn.U
+++ /dev/null
@@ -1,27 +0,0 @@
-?RCS: $Id: i_dlfcn.U,v $
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: i_dlfcn.U,v $
-?RCS:
-?MAKE:i_dlfcn: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_dlfcn:
-?S: This variable conditionally defines the I_DLFCN symbol, which
-?S: indicates to the C program that <dlfcn.h> exists and should
-?S: be included.
-?S:.
-?C:I_DLFCN:
-?C: This symbol, if defined, indicates that <dlfcn.h> exists and should
-?C: be included.
-?C:.
-?H:#$i_dlfcn I_DLFCN /**/
-?H:.
-?LINT:set i_dlfcn
-: see if dlfcn is available
-set dlfcn.h i_dlfcn
-eval $inhdr
diff --git a/U/i_net_errno.U b/U/i_net_errno.U
deleted file mode 100644
index c5fb9116a0..0000000000
--- a/U/i_net_errno.U
+++ /dev/null
@@ -1,50 +0,0 @@
-?RCS: $Id: i_net_errno.U,v $
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: i_net_errno.U,v $
-?RCS:
-?MAKE:i_neterrno: Inhdr cc ccflags rm
-?MAKE: -pick add $@ %<
-?S:i_neterrno:
-?S: This variable conditionally defines the I_NET_ERRNO symbol, which
-?S: indicates to the C program that <net/errno.h> exists and should
-?S: be included.
-?S:.
-?C:I_NET_ERRNO:
-?C: This symbol, if defined, indicates that <net/errno.h> exists and
-?C: should be included.
-?C:.
-?H:#$i_neterrno I_NET_ERRNO /**/
-?H:.
-?LINT:set i_neterrno
-: see if net/errno.h is available
-set net/errno.h i_neterrno
-eval $inhdr
-: Unfortunately, it causes problems on some systems. Arrgh.
-case '$i_neterrno' in
-'define') echo "<net/errno.h> found."
- cat > try.c <<'EOM'
-#include <stdio.h>
-#include <errno.h>
-#include <net/errno.h>
-int func()
-{
-int x;
-x = ENOTSOCK;
-return x;
-}
-EOM
- if $cc $ccflags -c try.c >/dev/null 2>&1; then
- i_neterrno="$define"
- else
- echo "But it causes problems, so we won't include it"
- i_neterrno="$undef"
- fi
- $rm -f try.* try
- ;;
-esac
diff --git a/U/i_pwd.U b/U/i_pwd.U
deleted file mode 100644
index 69aa030706..0000000000
--- a/U/i_pwd.U
+++ /dev/null
@@ -1,134 +0,0 @@
-?RCS: $Id: i_pwd.U,v 3.0 1993/08/18 12:08:25 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: i_pwd.U,v $
-?RCS: Revision 3.0 1993/08/18 12:08:25 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?X:
-?X: This unit looks wether there is a pwd system or not
-?X:
-?MAKE:i_pwd d_pwquota d_pwage d_pwchange d_pwclass d_pwexpire d_pwcomment: \
- test contains rm cppstdin cppflags cppminus Findhdr
-?MAKE: -pick add $@ %<
-?S:i_pwd:
-?S: This variable conditionally defines I_PWD, which indicates
-?S: to the C program that it should include <pwd.h>.
-?S:.
-?S:d_pwquota:
-?S: This varaible conditionally defines PWQUOTA, which indicates
-?S: that struct passwd contains pw_quota.
-?S:.
-?S:d_pwage:
-?S: This varaible conditionally defines PWAGE, which indicates
-?S: that struct passwd contains pw_age.
-?S:.
-?S:d_pwchange:
-?S: This varaible conditionally defines PWCHANGE, which indicates
-?S: that struct passwd contains pw_change.
-?S:.
-?S:d_pwclass:
-?S: This varaible conditionally defines PWCLASS, which indicates
-?S: that struct passwd contains pw_class.
-?S:.
-?S:d_pwexpire:
-?S: This varaible conditionally defines PWEXPIRE, which indicates
-?S: that struct passwd contains pw_expire.
-?S:.
-?S:d_pwcomment:
-?S: This varaible conditionally defines PWCOMMENT, which indicates
-?S: that struct passwd contains pw_comment.
-?S:.
-?C:I_PWD:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <pwd.h>.
-?C:.
-?C:PWQUOTA:
-?C: This symbol, if defined, indicates to the C program that struct passwd
-?C: contains pw_quota.
-?C:.
-?C:PWAGE:
-?C: This symbol, if defined, indicates to the C program that struct passwd
-?C: contains pw_age.
-?C:.
-?C:PWCHANGE:
-?C: This symbol, if defined, indicates to the C program that struct passwd
-?C: contains pw_change.
-?C:.
-?C:PWCLASS:
-?C: This symbol, if defined, indicates to the C program that struct passwd
-?C: contains pw_class.
-?C:.
-?C:PWEXPIRE:
-?C: This symbol, if defined, indicates to the C program that struct passwd
-?C: contains pw_expire.
-?C:.
-?C:PWCOMMENT:
-?C: This symbol, if defined, indicates to the C program that struct passwd
-?C: contains pw_comment.
-?C:.
-?H:#$i_pwd I_PWD /**/
-?H:#$d_pwquota PWQUOTA /**/
-?H:#$d_pwage PWAGE /**/
-?H:#$d_pwchange PWCHANGE /**/
-?H:#$d_pwclass PWCLASS /**/
-?H:#$d_pwexpire PWEXPIRE /**/
-?H:#$d_pwcomment PWCOMMENT /**/
-?H:.
-?T:xxx
-: see if this is a pwd system
-echo " "
-xxx=`./findhdr pwd.h`
-if $test "$xxx"; then
- i_pwd="$define"
- echo "<pwd.h> found." >&4
- $cppstdin $cppflags $cppminus < $xxx >$$.h
- if $contains 'pw_quota' $$.h >/dev/null 2>&1; then
- d_pwquota="$define"
- else
- d_pwquota="$undef"
- fi
- if $contains 'pw_age' $$.h >/dev/null 2>&1; then
- d_pwage="$define"
- else
- d_pwage="$undef"
- fi
- if $contains 'pw_change' $$.h >/dev/null 2>&1; then
- d_pwchange="$define"
- else
- d_pwchange="$undef"
- fi
- if $contains 'pw_class' $$.h >/dev/null 2>&1; then
- d_pwclass="$define"
- else
- d_pwclass="$undef"
- fi
- if $contains 'pw_expire' $$.h >/dev/null 2>&1; then
- d_pwexpire="$define"
- else
- d_pwexpire="$undef"
- fi
- if $contains 'pw_comment' $$.h >/dev/null 2>&1; then
- d_pwcomment="$define"
- else
- d_pwcomment="$undef"
- fi
- $rm -f $$.h
-else
- i_pwd="$undef"
- d_pwquota="$undef"
- d_pwage="$undef"
- d_pwchange="$undef"
- d_pwclass="$undef"
- d_pwexpire="$undef"
- d_pwcomment="$undef"
- echo "<pwd.h> NOT found." >&4
-fi
-
diff --git a/U/i_sdbm.U b/U/i_sdbm.U
deleted file mode 100644
index 3e01615670..0000000000
--- a/U/i_sdbm.U
+++ /dev/null
@@ -1,37 +0,0 @@
-?RCS: $Id: i_sdbm.U,v $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: i_sdbm.U,v $
-?RCS:
-?MAKE:i_sdbm: Inhdr package Setvar
-?MAKE: -pick add $@ %<
-?S:i_sdbm:
-?S: This variable conditionally defines the I_SDBM symbol, which
-?S: indicates to the C program that sdbm.h exists and should
-?S: be included.
-?S:.
-?C:I_SDBM (HAS_SDBM):
-?C: This symbol, if defined, indicates that sdbm.h exists and should
-?C: be included.
-?C:.
-?H:#$i_sdbm I_SDBM /**/
-?H:.
-?LINT:set i_sdbm
-: see if sdbm.h is wanted
-?X: Since perl includes sdbm, don't ask here. Always include it.
-?X: But, we'll allow a hints file to over-rule us.
-echo " "
-echo "$package includes an implementation of sdbm in ext/dbm/sdbm."
-case "$i_sdbm" in
- ''|' ') val="$define" ;;
- *) val="$i_sdbm" ;;
-esac
-set i_sdbm
-eval $setvar
diff --git a/U/i_sgtty.U b/U/i_sgtty.U
deleted file mode 100644
index b890d78811..0000000000
--- a/U/i_sgtty.U
+++ /dev/null
@@ -1,128 +0,0 @@
-?MAKE:i_sgtty: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_sgtty:
-?S: This variable conditionally defines the I_SGTTY symbol, and
-?S: indicates whether a C program should include <sgtty.h>.
-?S:.
-?C:I_SGTTY:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <sgtty.h>.
-?C:.
-?H:#$i_sgtty I_SGTTY /**/
-?H:.
-?LINT:set i_sgtty
-: see if this is a sgtty.h system
-set sgtty.h i_sgtty
-eval $inhdr
-?MAKE:i_sgtty: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_sgtty:
-?S: This variable conditionally defines the I_SGTTY symbol, and
-?S: indicates whether a C program should include <sgtty.h>.
-?S:.
-?C:I_SGTTY:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <sgtty.h>.
-?C:.
-?H:#$i_sgtty I_SGTTY /**/
-?H:.
-?LINT:set i_sgtty
-: see if this is a sgtty.h system
-set sgtty.h i_sgtty
-eval $inhdr
-?MAKE:i_sgtty: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_sgtty:
-?S: This variable conditionally defines the I_SGTTY symbol, and
-?S: indicates whether a C program should include <sgtty.h>.
-?S:.
-?C:I_SGTTY:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <sgtty.h>.
-?C:.
-?H:#$i_sgtty I_SGTTY /**/
-?H:.
-?LINT:set i_sgtty
-: see if this is a sgtty.h system
-set sgtty.h i_sgtty
-eval $inhdr
-?MAKE:i_sgtty: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_sgtty:
-?S: This variable conditionally defines the I_SGTTY symbol, and
-?S: indicates whether a C program should include <sgtty.h>.
-?S:.
-?C:I_SGTTY:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <sgtty.h>.
-?C:.
-?H:#$i_sgtty I_SGTTY /**/
-?H:.
-?LINT:set i_sgtty
-: see if this is a sgtty.h system
-set sgtty.h i_sgtty
-eval $inhdr
-?MAKE:i_sgtty: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_sgtty:
-?S: This variable conditionally defines the I_SGTTY symbol, and
-?S: indicates whether a C program should include <sgtty.h>.
-?S:.
-?C:I_SGTTY:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <sgtty.h>.
-?C:.
-?H:#$i_sgtty I_SGTTY /**/
-?H:.
-?LINT:set i_sgtty
-: see if this is a sgtty.h system
-set sgtty.h i_sgtty
-eval $inhdr
-?MAKE:i_sgtty: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_sgtty:
-?S: This variable conditionally defines the I_SGTTY symbol, and
-?S: indicates whether a C program should include <sgtty.h>.
-?S:.
-?C:I_SGTTY:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <sgtty.h>.
-?C:.
-?H:#$i_sgtty I_SGTTY /**/
-?H:.
-?LINT:set i_sgtty
-: see if this is a sgtty.h system
-set sgtty.h i_sgtty
-eval $inhdr
-?MAKE:i_sgtty: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_sgtty:
-?S: This variable conditionally defines the I_SGTTY symbol, and
-?S: indicates whether a C program should include <sgtty.h>.
-?S:.
-?C:I_SGTTY:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <sgtty.h>.
-?C:.
-?H:#$i_sgtty I_SGTTY /**/
-?H:.
-?LINT:set i_sgtty
-: see if this is a sgtty.h system
-set sgtty.h i_sgtty
-eval $inhdr
-?MAKE:i_sgtty: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_sgtty:
-?S: This variable conditionally defines the I_SGTTY symbol, and
-?S: indicates whether a C program should include <sgtty.h>.
-?S:.
-?C:I_SGTTY:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <sgtty.h>.
-?C:.
-?H:#$i_sgtty I_SGTTY /**/
-?H:.
-?LINT:set i_sgtty
-: see if this is a sgtty.h system
-set sgtty.h i_sgtty
-eval $inhdr
diff --git a/U/i_termio.U b/U/i_termio.U
deleted file mode 100644
index f1eb947503..0000000000
--- a/U/i_termio.U
+++ /dev/null
@@ -1,117 +0,0 @@
-?RCS: $Id: i_termio.U,v 3.0 1993/08/18 12:08:44 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: i_termio.U,v $
-?RCS: Revision 3.0 1993/08/18 12:08:44 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?X:
-?X: Include all three (possible) definitions in config_h.SH.
-?X: There are enough implementations of posix termios.h out there
-?X: that do not work well with other system headers or are
-?X: incomplete. This makes it easier for the user to back off
-?X: and try sgtty.h or i_termio.h instead.
-?X:
-?MAKE:i_termio i_sgtty i_termios: test Inlibc Cppsym Guess Setvar Findhdr
-?MAKE: -pick add $@ %<
-?S:i_termio:
-?S: This variable conditionally defines the I_TERMIO symbol, which
-?S: indicates to the C program that it should include <termio.h> rather
-?S: than <sgtty.h>.
-?S:.
-?S:i_termios:
-?S: This variable conditionally defines the I_TERMIOS symbol, which
-?S: indicates to the C program that the POSIX <termios.h> file is
-?S: to be included.
-?S:.
-?S:i_sgtty:
-?S: This variable conditionally defines the I_SGTTY symbol, which
-?S: indicates to the C program that it should include <sgtty.h> rather
-?S: than <termio.h>.
-?S:.
-?C:I_TERMIO ~ %<:
-?C: This symbol, if defined, indicates that the program should include
-?C: <termio.h> rather than <sgtty.h>. There are also differences in
-?C: the ioctl() calls that depend on the value of this symbol.
-?C:.
-?C:I_TERMIOS ~ %<:
-?C: This symbol, if defined, indicates that the program should include
-?C: the POSIX termios.h rather than sgtty.h or termio.h.
-?C: There are also differences in the ioctl() calls that depend on the
-?C: value of this symbol.
-?C:.
-?C:I_SGTTY ~ %<:
-?C: This symbol, if defined, indicates that the program should include
-?C: <sgtty.h> rather than <termio.h>. There are also differences in
-?C: the ioctl() calls that depend on the value of this symbol.
-?C:.
-?H:?%<:#$i_termio I_TERMIO /**/
-?H:?%<:#$i_termios I_TERMIOS /**/
-?H:?%<:#$i_sgtty I_SGTTY /**/
-?H:.
-?T:val2 val3
-?LINT:set i_termio i_sgtty i_termios
-: see if this is a termio system
-val="$undef"
-val2="$undef"
-val3="$undef"
-?X: Prefer POSIX-approved termios.h over all else
-if $test `./findhdr termios.h`; then
- set tcsetattr i_termios
- eval $inlibc
- val3="$i_termios"
-fi
-echo " "
-case "$val3" in
-"$define") echo "You have POSIX termios.h... good!" >&4;;
-*) if Cppsym pyr; then
- case "`/bin/universe`" in
- ucb) if $test `./findhdr sgtty.h`; then
- val2="$define"
- echo "<sgtty.h> found." >&4
- else
- echo "System is pyramid with BSD universe."
- echo "<sgtty.h> not found--you could have problems." >&4
- fi;;
- *) if $test `./findhdr termio.h`; then
- val="$define"
- echo "<termio.h> found." >&4
- else
- echo "System is pyramid with USG universe."
- echo "<termio.h> not found--you could have problems." >&4
- fi;;
- esac
-?X: Start with USG to avoid problems if both usg/bsd was guessed
- elif usg; then
- if $test `./findhdr termio.h`; then
- echo "<termio.h> found." >&4
- val="$define"
- elif $test `./findhdr sgtty.h`; then
- echo "<sgtty.h> found." >&4
- val2="$define"
- else
-echo "Neither <termio.h> nor <sgtty.h> found--you could have problems." >&4
- fi
- else
- if $test `./findhdr sgtty.h`; then
- echo "<sgtty.h> found." >&4
- val2="$define"
- elif $test `./findhdr termio.h`; then
- echo "<termio.h> found." >&4
- val="$define"
- else
-echo "Neither <sgtty.h> nor <termio.h> found--you could have problems." >&4
- fi
- fi;;
-esac
-set i_termio; eval $setvar
-val=$val2; set i_sgtty; eval $setvar
-val=$val3; set i_termios; eval $setvar
-
diff --git a/U/i_termios.U b/U/i_termios.U
deleted file mode 100644
index f676710e40..0000000000
--- a/U/i_termios.U
+++ /dev/null
@@ -1,64 +0,0 @@
-?MAKE:i_termios: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_termios:
-?S: This variable conditionally defines the I_TERMIOS symbol, and
-?S: indicates whether a C program should include <sys/termios.h>.
-?S:.
-?C:I_TERMIOS:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <termios.h>.
-?C:.
-?H:#$i_termios I_TERMIOS /**/
-?H:.
-?LINT:set i_termios
-: see if this is a termios.h system
-set termios.h i_termios
-eval $inhdr
-?MAKE:i_termios: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_termios:
-?S: This variable conditionally defines the I_TERMIOS symbol, and
-?S: indicates whether a C program should include <sys/termios.h>.
-?S:.
-?C:I_TERMIOS:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <termios.h>.
-?C:.
-?H:#$i_termios I_TERMIOS /**/
-?H:.
-?LINT:set i_termios
-: see if this is a termios.h system
-set termios.h i_termios
-eval $inhdr
-?MAKE:i_termios: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_termios:
-?S: This variable conditionally defines the I_TERMIOS symbol, and
-?S: indicates whether a C program should include <sys/termios.h>.
-?S:.
-?C:I_TERMIOS:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <termios.h>.
-?C:.
-?H:#$i_termios I_TERMIOS /**/
-?H:.
-?LINT:set i_termios
-: see if this is a termios.h system
-set termios.h i_termios
-eval $inhdr
-?MAKE:i_termios: Inhdr
-?MAKE: -pick add $@ %<
-?S:i_termios:
-?S: This variable conditionally defines the I_TERMIOS symbol, and
-?S: indicates whether a C program should include <sys/termios.h>.
-?S:.
-?C:I_TERMIOS:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include <termios.h>.
-?C:.
-?H:#$i_termios I_TERMIOS /**/
-?H:.
-?LINT:set i_termios
-: see if this is a termios.h system
-set termios.h i_termios
-eval $inhdr
diff --git a/U/i_vfork.U b/U/i_vfork.U
deleted file mode 100644
index 19af424af1..0000000000
--- a/U/i_vfork.U
+++ /dev/null
@@ -1,34 +0,0 @@
-?RCS: $Id: i_vfork.U,v 3.0 1993/08/18 12:08:50 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: i_vfork.U,v $
-?RCS: Revision 3.0 1993/08/18 12:08:50 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:i_vfork: Inhdr d_vfork
-?MAKE: -pick add $@ %<
-?S:i_vfork:
-?S: This variable conditionally defines the I_VFORK symbol, and indicates
-?S: whether a C program should include vfork.h.
-?S:.
-?C:I_VFORK:
-?C: This symbol, if defined, indicates to the C program that it should
-?C: include vfork.h.
-?C:.
-?H:#$i_vfork I_VFORK /**/
-?H:.
-?LINT:set i_vfork
-: see if this is a vfork system
-case "$d_vfork" in
-define) set vfork.h i_vfork
- eval $inhdr
- ;;
-*) i_vfork="$undef";;
-esac
diff --git a/U/libc.U b/U/libc.U
deleted file mode 100644
index 9f497f1ba0..0000000000
--- a/U/libc.U
+++ /dev/null
@@ -1,288 +0,0 @@
-?RCS: $Id: libc.U,v 3.0.1.3 1994/01/24 14:12:17 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: libc.U,v $
-?RCS: Revision 3.0.1.3 1994/01/24 14:12:17 ram
-?RCS: patch16: can now export nm_extract as an internal-use only variable
-?RCS:
-?RCS: Revision 3.0.1.2 1993/09/13 16:09:03 ram
-?RCS: patch10: added special handling for Apollo systems (WAD)
-?RCS:
-?RCS: Revision 3.0.1.1 1993/08/27 14:40:03 ram
-?RCS: patch7: added entry for /usr/shlib/libc.so (OSF/1 machines)
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:08:57 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:libc +nm_extract: echo n c rm test grep Getfile Myread Oldconfig Loc \
- sed libs incpath libpth runnm nm_opt contains plibpth xlibpth
-?MAKE: -pick add $@ %<
-?S:libc:
-?S: This variable contains the location of the C library.
-?S:.
-?S:nm_extract:
-?S: This variable holds the name of the extraction command used to process
-?S: the output of nm and yield the list of defined symbols. It is used
-?S: internally by Configure.
-?S:.
-?T:thislib try libnames xxx xscan xrun thisname com tans
-?LINT:change libpth nm_opt
-case "$runnm" in
-true)
-?X: indentation is wrong on purpose--RAM
-: get list of predefined functions in a handy place
-echo " "
-case "$libc" in
-'') libc=unknown
- case "$libs" in
- *-lc_s*) libc=`./loc libc_s.a $libc $libpth`
- esac
- ;;
-esac
-libpth="$plibpth $libpth"
-libnames='';
-case "$libs" in
-'') ;;
-*) for thislib in $libs; do
- case "$thislib" in
- -l*)
- thislib=`expr X$thislib : 'X-l\(.*\)'`
- try=`./loc lib$thislib.a blurfl/dyick $libpth`
- if test ! -f $try; then
- try=`./loc lib$thislib blurfl/dyick $libpth`
- if test ! -f $try; then
- try=`./loc lib$thislib.so.'*' blurfl/dyick $libpth`
- if test ! -f $try; then
- try=`./loc $thislib blurfl/dyick $libpth`
- if test ! -f $try; then
- try=`./loc Slib$thislib.a blurfl/dyick $xlibpth`
- if test ! -f $try; then
- try=''
- fi
- fi
- fi
- fi
- fi
- libnames="$libnames $try"
- ;;
- *) libnames="$libnames $thislib" ;;
- esac
- done
- ;;
-esac
-?X:
-?X: Some systems (e.g. DG/UX) use "environmental" links, which make the test
-?X: -f fail. Ditto for symbolic links. So in order to reliably check the
-?X: existence of a file, we use test -r. It will still fail with DG/UX links
-?X: though, but at least it will detect symbolic links. At some strategic
-?X: points, we make use of (test -h), using a sub-shell in case builtin test
-?X: does not implement the -h check for symbolic links. This makes it
-?X: possible to preset libc in a hint file for instance and have it show up
-?X: as-is in the question.
-?X:
-xxx=normal
-case "$libc" in
-unknown)
- set /usr/ccs/lib/libc.so
- $test -r $1 || set /usr/lib/libc.so
- $test -r $1 || set /usr/shlib/libc.so
- $test -r $1 || set /usr/lib/libc.so.[0-9]*
- $test -r $1 || set /lib/libsys_s.a
- eval set \$$#
- ;;
-*)
-?X: ensure the test below for the (shared) C library will fail
- set blurfl
- ;;
-esac
-if $test -r "$1"; then
- echo "Your (shared) C library seems to be in $1."
- libc="$1"
-elif $test -r /lib/libc && $test -r /lib/clib; then
-?X:
-?X: Apollo has its C library in /lib/clib AND /lib/libc
-?X: not to mention its math library in /lib/syslib...
-?X:
- echo "Your C library seems to be in both /lib/clib and /lib/libc."
- xxx=apollo
- libc='/lib/clib /lib/libc'
- if $test -r /lib/syslib; then
- echo "(Your math library is in /lib/syslib.)"
-?X: Put syslib in libc -- not quite right, but won't hurt
- libc="$libc /lib/syslib"
- fi
-elif $test -r "$libc" || (test -h "$libc") >/dev/null 2>&1; then
- echo "Your C library seems to be in $libc, as you said before."
-?X: For mips, and...
-elif $test -r $incpath/usr/lib/libc.a; then
- libc=$incpath/usr/lib/libc.a;
- echo "Your C library seems to be in $libc. That's fine."
-elif $test -r /lib/libc.a; then
- libc=/lib/libc.a;
- echo "Your C library seems to be in $libc. You're normal."
-else
- if tans=`./loc libc.a blurfl/dyick $libpth`; $test -r "$tans"; then
- :
- elif tans=`./loc libc blurfl/dyick $libpth`; $test -r "$tans"; then
- libnames="$libnames "`./loc clib blurfl/dyick $libpth`
- elif tans=`./loc clib blurfl/dyick $libpth`; $test -r "$tans"; then
- :
- elif tans=`./loc Slibc.a blurfl/dyick $xlibpth`; $test -r "$tans"; then
- :
- elif tans=`./loc Mlibc.a blurfl/dyick $xlibpth`; $test -r "$tans"; then
- :
- else
- tans=`./loc Llibc.a blurfl/dyick $xlibpth`
- fi
- if $test -r "$tans"; then
- echo "Your C library seems to be in $tans, of all places."
- libc=$tans
- else
- libc='blurfl'
- fi
-fi
-if $test $xxx = apollo -o -r "$libc" || (test -h "$libc") >/dev/null 2>&1; then
- dflt="$libc"
- cat <<EOM
-
-If the guess above is wrong (which it might be if you're using a strange
-compiler, or your machine supports multiple models), you can override it here.
-
-EOM
-else
- dflt=''
- echo $libpth | tr ' ' '\012' | sort | uniq > libpath
- cat >&4 <<EOM
-I can't seem to find your C library. I've looked in the following places:
-
-EOM
- $sed 's/^/ /' libpath
- cat <<EOM
-
-None of these seems to contain your C library. I need to get its name...
-
-EOM
-fi
-fn=f
-rp='Where is your C library?'
-. ./getfile
-libc="$ans"
-
-echo " "
-echo $libc $libnames | tr ' ' '\012' | sort | uniq > libnames
-set X `cat libnames`
-shift
-xxx=files
-case $# in 1) xxx=file; esac
-echo "Extracting names from the following $xxx for later perusal:" >&4
-echo " "
-$sed 's/^/ /' libnames >&4
-echo " "
-$echo $n "This may take a while...$c" >&4
-
-nm $nm_opt $* 2>/dev/null >libc.tmp
-$echo $n ".$c"
-?X:
-?X: To accelerate processing, we look at the correct 'sed' command
-?X: by using a small subset of libc.tmp, i.e. fprintf function.
-?X: When we know which sed command to use, do the name extraction
-?X:
-$grep fprintf libc.tmp > libc.ptf
-?X:
-?X: In order to ehance readability and save some space, we define
-?X: some variables that will be "eval"ed.
-?X:
-xscan='eval "<libc.ptf $com >libc.list"; $echo $n ".$c" >&4'
-xrun='eval "<libc.tmp $com >libc.list"; echo "done" >&4'
-?X: BSD-like output
-if com="$sed -n -e 's/^.* [ADTS] *_[_.]*//p' -e 's/^.* [ADTS] //p'";\
- eval $xscan;\
- $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- eval $xrun
-?X: SYSV-like output
-elif com="$sed -n -e 's/^__*//' -e 's/^\([a-zA-Z_0-9$]*\).*xtern.*/\1/p'";\
- eval $xscan;\
- $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- eval $xrun
-elif com="$sed -n -e '/|UNDEF/d' -e '/FUNC..GL/s/^.*|__*//p'";\
- eval $xscan;\
- $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- eval $xrun
-elif com="$sed -n -e 's/^.* D __*//p' -e 's/^.* D //p'";\
- eval $xscan;\
- $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- eval $xrun
-elif com="$sed -n -e 's/^_//' -e 's/^\([a-zA-Z_0-9]*\).*xtern.*text.*/\1/p'";\
- eval $xscan;\
- $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- eval $xrun
-elif com="$sed -n -e 's/^.*|FUNC |GLOB .*|//p'";\
- eval $xscan;\
- $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- eval $xrun
-elif com="$grep '|' | $sed -n -e '/|COMMON/d' -e '/|DATA/d' \
- -e '/ file/d' -e 's/^\([^ ]*\).*/\1/p'";\
- eval $xscan;\
- $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- eval $xrun
-elif com="$sed -n -e 's/^.*|FUNC |GLOB .*|//p' -e 's/^.*|FUNC |WEAK .*|//p'";\
- eval $xscan;\
- $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- eval $xrun
-?X: mips nm output (sysV)
-elif com="$sed -n -e 's/^__//' -e '/|Undef/d' -e '/|Proc/s/ .*//p'";\
- eval $xscan;\
- $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- eval $xrun
-else
- nm -p $* 2>/dev/null >libc.tmp
- com="$sed -n -e 's/^.* [ADTS] *_[_.]*//p' -e 's/^.* [ADTS] //p'";\
- eval "<libc.tmp $com >libc.list"
- if $contains '^fprintf$' libc.list >/dev/null 2>&1; then
- nm_opt='-p'
- echo "done" >&4
- else
- echo " "
- echo "nm didn't seem to work right. Trying ar instead..." >&4
- com=''
- if ar t $libc > libc.tmp; then
- for thisname in $libnames; do
- ar t $thisname >>libc.tmp
- done
- $sed -e 's/\.o$//' < libc.tmp > libc.list
- echo "Ok." >&4
- else
- echo "ar didn't seem to work right." >&4
- echo "Maybe this is a Cray...trying bld instead..." >&4
- if bld t $libc | $sed -e 's/.*\///' -e 's/\.o:.*$//' > libc.list; then
- for thisname in $libnames; do
- bld t $libnames | \
- $sed -e 's/.*\///' -e 's/\.o:.*$//' >>libc.list
- ar t $thisname >>libc.tmp
- done
- echo "Ok." >&4
- else
- echo "That didn't work either. Giving up." >&4
- exit 1
- fi
- fi
- fi
-fi
-nm_extract="$com"
-if $test -f /lib/syscalls.exp; then
- echo " "
- echo "Also extracting names from /lib/syscalls.exp for good ole AIX..." >&4
- $sed -n 's/^\([^ ]*\)[ ]*syscall$/\1/p' /lib/syscalls.exp >>libc.list
-fi
-?X: remember, indentation is wrong on purpose--RAM
-;;
-esac
-$rm -f libnames libpath
-
diff --git a/U/libpth.U b/U/libpth.U
deleted file mode 100644
index 2c030c296c..0000000000
--- a/U/libpth.U
+++ /dev/null
@@ -1,74 +0,0 @@
-?RCS: $Id: libpth.U,v 3.0 1993/08/18 12:09:02 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: libpth.U,v $
-?RCS: Revision 3.0 1993/08/18 12:09:02 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?X:
-?X: This unit initializes the path for C library lookup.
-?X:
-?MAKE:libpth xlibpth plibpth: mips incpath test cat Myread
-?MAKE: -pick add $@ %<
-?S:libpth:
-?S: This variable holds the general path used to find libraries. It is
-?S: intended to be used by other units.
-?S:.
-?S:plibpth:
-?S: Holds the private path used by Configure to find out the libraries.
-?S: Its value is prepended to libpth. This variable takes care of special
-?S: machines, like the mips. Usually, it should be empty.
-?S:.
-?T: xxx yyy
-?INIT:: change the next line if compiling for Xenix/286 on Xenix/386
-?INIT:xlibpth='/usr/lib/386 /lib/386'
-?INIT:
-?INIT:: general looking path for locating libraries
-?INIT:libpth="/usr/lib/large /lib /usr/lib $xlibpth /lib/large"
-?INIT:libpth="$libpth /usr/lib/small /lib/small"
-?INIT:libpth="$libpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
-?INIT:
-?INIT:: Private path used by Configure to find libraries. Its value
-?INIT:: is prepend to libpth. This variable takes care of special
-?INIT:: machines, like the mips. Usually, it should be empty.
-?INIT:plibpth=''
-?INIT:
-?LINT:describe xlibpth
-?LINT:use mips
-: Set private lib path
-case "$plibpth" in
-'') if mips; then
-?X: on mips, we DO NOT want /lib, and we want $incpath/usr/lib
- plibpth="$incpath/usr/lib /usr/local/lib /usr/ccs/lib"
- fi;;
-esac
-libpth="$plibpth $libpth"
-: Now check and see which directories actually exist.
-xxx=''
-for yyy in $libpth
-do
- if $test -d $yyy; then
- xxx="$xxx $yyy"
- fi
-done
-libpth="$xxx"
-$cat <<EOM
-Some systems have incompatible or broken versions of libraries. Where
-should I look for libraries?
-EOM
-
-dflt="$libpth"
-echo " "
-rp="Directories to use for library searches?"
-. ./myread
-case "$ans" in
-none) libpth=' ';;
-*) libpth="$ans";;
-esac
diff --git a/U/libs.U b/U/libs.U
deleted file mode 100644
index 45625abc1b..0000000000
--- a/U/libs.U
+++ /dev/null
@@ -1,131 +0,0 @@
-?RCS: $Id: libs.U,v 3.0.1.1 1993/08/25 14:02:31 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: libs.U,v $
-?RCS: Revision 3.0.1.1 1993/08/25 14:02:31 ram
-?RCS: patch6: added default for libs
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:09:03 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:libs: test cat Myread Oldconfig Loc libpth package xlibpth
-?MAKE: -pick add $@ %<
-?S:libs:
-?S: This variable holds the additional libraries we want to use.
-?S: It is up to the Makefile to deal with it.
-?S:.
-?T:xxx yyy zzz thislib thatlib libswanted
-?D:libs=''
-?X:
-?X: This order is chosen so that libraries -lndir, -ldir, -lucb, -lbsd,
-?X: -lBSD, -lPW, and -lx only get used if there are unresolved
-?X: routines at link time. Usually, these are backwards compatability
-?X: libraries, and may not be as reliable as the standard c library.
-?X:
-?X: The -lsocket -linet -lnsl order has been reported to be necessary
-?X: for at least one SVR4 implementation.
-?X:
-?X: The ordering of c_s, posix, and cposix is a guess and almost
-?X: certainly wrong on about half of all systems.
-?X:
-?X: The extra space at the beginning and end is for some old hints
-?X: files which assumed there was always a space around each library.
-?X:
-?INIT:libswanted=" net socket inet nsl nm sdbm gdbm ndbm dbm malloc dl dld sun m c_s posix cposix ndir dir ucb bsd BSD PW x "
-?INIT:
-: Looking for optional libraries
-echo " "
-echo "Checking for optional libraries..." >&4
-case "$libs" in
-' '|'') dflt='';;
-*) dflt="$libs";;
-esac
-case "$libswanted" in
-'') libswanted='c_s';;
-esac
-for thislib in $libswanted; do
- case "$thislib" in
- dbm) thatlib=ndbm;;
- *_s) thatlib=NONE;;
- *) thatlib=${thislib}_s;;
- esac
- xxx=`./loc lib$thislib.a X $libpth`
- yyy=`./loc lib$thatlib.a X $libpth`
- zzz=`./loc lib$thislib.so.[0-9]'*' X $libpth`
- if $test -f $xxx; then
- echo "Found -l$thislib."
- case "$dflt" in
- *"-l$thislib "*|*-l$thislib|*"-l$thatlib "*|*-l$thatlib) ;;
- *) dflt="$dflt -l$thislib";;
- esac
- elif $test -f $yyy; then
- echo "Found -l$thatlib."
- case "$dflt" in
- *"-l$thatlib "*|*-l$thatlib) ;;
- *) dflt="$dflt -l$thatlib";;
- esac
- elif $test -f $zzz; then
- echo "Found -$thislib."
- case "$dflt" in
- *"-l$thislib "*|*-l$thislib) ;;
- *) dflt="$dflt -l$thislib";;
- esac
- else
- xxx=`./loc Slib$thislib.a X $xlibpth`
- yyy=`./loc Slib$thatlib.a X $xlibpth`
- if $test -f $xxx; then
- echo "Found -l$thislib."
- case "$dflt" in
- *"-l$thislib "*|*-l$thislib|*"-l$thatlib "*|*-l$thatlib) ;;
- *) dflt="$dflt -l$thislib";;
- esac
- elif $test -f $yyy; then
- echo "Found -l$thatlib."
- case "$dflt" in
- *"-l$thatlib "*|*-l$thatlib) ;;
- *) dflt="$dflt -l$thatlib";;
- esac
- else
- echo "No -l$thislib."
- fi
- fi
-done
-set X $dflt
-shift
-dflt="$*"
-case "$libs" in
-'') dflt="$dflt";;
-*) dflt="$libs";;
-esac
-case "$dflt" in
-' '|'') dflt='none';;
-esac
-
-$cat <<EOM
-
-Some versions of Unix support shared libraries, which make executables smaller
-but make load time slightly longer.
-
-On some systems, mostly newer Unix System V's, the shared library is included
-by putting the option "-lc_s" as the last thing on the cc command line when
-linking. Other systems use shared libraries by default. There may be other
-libraries needed to compile $package on your machine as well. If your system
-needs the "-lc_s" option, include it here. Include any other special libraries
-here as well. Say "none" for none.
-EOM
-
-echo " "
-rp="Any additional libraries?"
-. ./myread
-case "$ans" in
-none) libs=' ';;
-*) libs="$ans";;
-esac
-
diff --git a/U/libyacc.U b/U/libyacc.U
deleted file mode 100644
index c12e5a5ad1..0000000000
--- a/U/libyacc.U
+++ /dev/null
@@ -1,60 +0,0 @@
-?RCS: $Id: libyacc.U,v 3.0.1.1 1994/01/24 14:13:49 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: libyacc.U,v $
-?RCS: Revision 3.0.1.1 1994/01/24 14:13:49 ram
-?RCS: patch16: un-obsoleted this unit for smooth yacc compilations
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:09:04 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:libyacc: Loc yacc libpth test
-?MAKE: -pick add $@ %<
-?S:libyacc:
-?S: This variable contains the argument to pass to the loader in order
-?S: to get the yacc library routines. If there is no yacc or yacc
-?S: library, it is null.
-?S:.
-?T:xxx
-: see if we should include -ly
-echo " "
-case "$yacc" in
-*byacc*)
- echo "You are using byacc, so I won't look for a yacc library." >&4
- libyacc=''
- ;;
-*yacc)
- if $test -r /usr/lib/liby.a || $test -r /usr/local/lib/liby.a ; then
- echo "-ly found." >&4
- libyacc='-ly'
- else
- xxx=`./loc liby.a x $libpth`
- case "$xxx" in
- x)
- echo "No yacc library found." >&4
- libyacc=''
- ;;
- *)
- echo "yacc library found in $xxx." >&4
- libyacc="$xxx"
- ;;
- esac
- fi
- ;;
-*bison*)
- echo "You are using bison, so I won't look for a yacc library." >&4
- libyacc=''
- ;;
-*)
-echo "You don't seem to have yacc, so I won't look for the yacc library." >&4
- libyacc=''
- ;;
-esac
-
diff --git a/U/lns.U b/U/lns.U
deleted file mode 100644
index fcefb1fa32..0000000000
--- a/U/lns.U
+++ /dev/null
@@ -1,21 +0,0 @@
-?RCS: $Id: lns.U,v $
-?RCS:
-?RCS: $Log: lns.U,v $
-?RCS:
-?MAKE:lns: ln touch
-?MAKE: -pick add $@ %<
-?S:lns:
-?S: This variable holds the name of the command to make
-?S: symbolic links (if they are supported). It can be used
-?S: in the Makefile. It is either 'ln -s' or 'ln'
-?S:.
-?X: We can't rely on d_symlink because that may be listed in the
-?X: C library but unimplemented.
-: determine whether symbolic links are supported
-$touch blurfl
-if $ln -s blurfl sym > /dev/null 2>&1 ; then
- lns="$ln -s"
-else
- lns="$ln"
-fi
-rm -f blurfl sym
diff --git a/U/loc_sed.U b/U/loc_sed.U
deleted file mode 100644
index 9eb8b21e14..0000000000
--- a/U/loc_sed.U
+++ /dev/null
@@ -1,10 +0,0 @@
-?RCS: $Id: loc_sed.U,v $
-?RCS:
-?MAKE:: sed
-?MAKE: -pick add $@ %<
-?C:LOC_SED:
-?C: This symbol holds the complete pathname to the sed program.
-?C:.
-?H:#define LOC_SED "$sed" /**/
-?H:.
-?X: This is used in perl.c.
diff --git a/U/mallocsrc.U b/U/mallocsrc.U
deleted file mode 100644
index 9fd5382533..0000000000
--- a/U/mallocsrc.U
+++ /dev/null
@@ -1,108 +0,0 @@
-?RCS: $Id: mallocsrc.U,v 3.0 1993/08/18 12:09:12 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: mallocsrc.U,v $
-?RCS: Revision 3.0 1993/08/18 12:09:12 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:mallocsrc mallocobj usemymalloc malloctype d_mymalloc: Myread Oldconfig package \
- Guess Setvar test rm cat +cc +ccflags Findhdr
-?MAKE: -pick add $@ %<
-?S:usemymalloc:
-?S: This variable contains y if the malloc that comes with this package
-?S: is desired over the system's version of malloc. People often include
-?S: special versions of malloc for effiency, but such versions are often
-?S: less portable. See also mallocsrc and mallocobj.
-?S:.
-?S:mallocsrc:
-?S: This variable contains the name of the malloc.c that comes with
-?S: the package, if that malloc.c is preferred over the system malloc.
-?S: Otherwise the value is null. This variable is intended for generating
-?S: Makefiles.
-?S:.
-?S:d_mymalloc:
-?S: This variable conditionally defines MYMALLOC in case other parts
-?S: of the source want to take special action if MYMALLOC is used.
-?S: This may include different sorts of profiling or error detection.
-?S:.
-?S:mallocobj:
-?S: This variable contains the name of the malloc.o that this package
-?S: generates, if that malloc.o is preferred over the system malloc.
-?S: Otherwise the value is null. This variable is intended for generating
-?S: Makefiles. See mallocsrc.
-?S:.
-?S:malloctype:
-?S: This variable contains the kind of ptr returned by malloc and realloc.
-?S:.
-?C:Malloc_t (MALLOCPTRTYPE):
-?C: This symbol is the type of pointer returned by malloc and realloc.
-?C:.
-?H:#define Malloc_t $malloctype /**/
-?H:.
-?C:MYMALLOC:
-?C: This symbol, if defined, indicates that we're using our own malloc.
-?C:.
-?H:#$d_mymalloc MYMALLOC /**/
-?H:.
-?X: Cannot test for mallocsrc; it is the unit's name and there is a bug in
-?X: the interpreter which defines all the names, even though they are not used.
-@if mallocobj
-: determine which malloc to compile in
-: Old versions had dflt='y' only for bsd or v7.
-echo " "
-case "$usemymalloc" in
-'')
- if bsd || v7; then
- dflt='y'
- else
- dflt='y'
- fi
- ;;
-*) dflt="$usemymalloc"
- ;;
-esac
-rp="Do you wish to attempt to use the malloc that comes with $package?"
-. ./myread
-usemymalloc="$ans"
-case "$ans" in
-y*) mallocsrc='malloc.c'
- mallocobj='malloc.o'
- d_mymalloc="$define"
- ;;
-*) mallocsrc=''
- mallocobj=''
- d_mymalloc="$undef"
- ;;
-esac
-@end
-
-@if MALLOCPTRTYPE || Malloc_t
-: compute the type returned by malloc
-echo " "
-case "$malloctype" in
-'')
- if $test `./findhdr malloc.h`; then
- echo "#include <malloc.h>" > malloc.c
- fi
-#include <malloc.h>
- $cat >>malloc.c <<'END'
-void *malloc();
-END
- if $cc $ccflags -c malloc.c >/dev/null 2>&1; then
- malloctype='void *'
- else
- malloctype='char *'
- fi
- $rm -f malloc.[co]
- ;;
-esac
-echo "Your system wants malloc to return '$malloctype', it would seem." >&4
-
-@end
diff --git a/U/prototype.U b/U/prototype.U
deleted file mode 100644
index b0332f5655..0000000000
--- a/U/prototype.U
+++ /dev/null
@@ -1,115 +0,0 @@
-?RCS: $Id: prototype.U,v 3.0.1.2 1994/01/24 14:15:36 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: prototype.U,v $
-?RCS: Revision 3.0.1.2 1994/01/24 14:15:36 ram
-?RCS: patch16: prototype handling macros now appear only when needed
-?RCS:
-?RCS: Revision 3.0.1.1 1993/08/25 14:03:12 ram
-?RCS: patch6: defines were referring to non-existent VOID symbol
-?RCS:
-?RCS: Revision 3.0 1993/08/18 12:09:36 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:prototype: Myread Oldconfig cat +cc rm Setvar
-?MAKE: -pick add $@ %<
-?S:prototype:
-?S: This variable holds the eventual value of CAN_PROTOTYPE, which
-?S: indicates the C compiler can handle funciton prototypes.
-?S:.
-?C:CAN_PROTOTYPE ~ %<:
-?C: If defined, this macro indicates that the C compiler can handle
-?C: function prototypes.
-?C:.
-?C:DOTS:
-?C: This macro is used to specify the ... in function prototypes which
-?C: have arbitrary additional arguments.
-?C:.
-?C:NXT_ARG:
-?C: This macro is used to separate arguments in the declared argument list.
-?C:.
-?C:P_FUNC:
-?C: This macro is used to declare "private" (static) functions.
-?C: It takes three arguments: the function type and name, a parenthesized
-?C: traditional (comma separated) argument list, and the declared argument
-?C: list (in which arguments are separated with NXT_ARG, and additional
-?C: arbitrary arguments are specified with DOTS). For example:
-?C:
-?C: P_FUNC(int foo, (bar, baz), int bar NXT_ARG char *baz[])
-?C:.
-?C:P_FUNC_VOID:
-?C: This macro is used to declare "private" (static) functions that have
-?C: no arguments. The macro takes one argument: the function type and name.
-?C: For example:
-?C:
-?C: P_FUNC_VOID(int subr)
-?C:.
-?C:V_FUNC:
-?C: This macro is used to declare "public" (non-static) functions.
-?C: It takes three arguments: the function type and name, a parenthesized
-?C: traditional (comma separated) argument list, and the declared argument
-?C: list (in which arguments are separated with NXT_ARG, and additional
-?C: arbitrary arguments are specified with DOTS). For example:
-?C:
-?C: V_FUNC(int main, (argc, argv), int argc NXT_ARG char *argv[])
-?C:.
-?C:V_FUNC_VOID:
-?C: This macro is used to declare "public" (non-static) functions that have
-?C: no arguments. The macro takes one argument: the function type and name.
-?C: For example:
-?C:
-?C: V_FUNC_VOID(int fork)
-?C:.
-?C:P:
-?C: This macro is used to declare function parameters for folks who want
-?C: to make declarations with prototypes using a different style than
-?C: the above macros. Use double parentheses. For example:
-?C:
-?C: int main P((int argc, char *argv[]));
-?C:.
-?H:?%<:#$prototype CAN_PROTOTYPE /**/
-?H:?%<:#ifdef CAN_PROTOTYPE
-?H:?NXT_ARG:#define NXT_ARG ,
-?H:?DOTS:#define DOTS , ...
-?H:?V_FUNC:#define V_FUNC(name, arglist, args)name(args)
-?H:?P_FUNC:#define P_FUNC(name, arglist, args)static name(args)
-?H:?V_FUNC_VOID:#define V_FUNC_VOID(name)name(void)
-?H:?P_FUNC_VOID:#define P_FUNC_VOID(name)static name(void)
-?H:?P:#define P(args) args
-?H:?%<:#else
-?H:?NXT_ARG:#define NXT_ARG ;
-?H:?DOTS:#define DOTS
-?H:?V_FUNC:#define V_FUNC(name, arglist, args)name arglist args;
-?H:?P_FUNC:#define P_FUNC(name, arglist, args)static name arglist args;
-?H:?V_FUNC_VOID:#define V_FUNC_VOID(name)name()
-?H:?P_FUNC_VOID:#define P_FUNC_VOID(name)static name()
-?H:?P:#define P(args) ()
-?H:?%<:#endif
-?H:.
-?W:%<:NXT_ARG DOTS V_FUNC P_FUNC V_FUNC_VOID P_FUNC_VOID _
-?LINT:set prototype
-: Cruising for prototypes
-echo " "
-echo "Checking out function prototypes..." >&4
-$cat >prototype.c <<'EOCP'
-main(int argc, char *argv[]) {
- exit(0);}
-EOCP
-if $cc -c prototype.c >prototype.out 2>&1 ; then
- echo "Your C compiler appears to support function prototypes."
- val="$define"
-else
- echo "Your C compiler doesn't seem to understand function prototypes."
- val="$undef"
-fi
-set prototype
-eval $setvar
-$rm -f prototype*
-
diff --git a/U/sig_name.U b/U/sig_name.U
deleted file mode 100644
index 9b3f9e3440..0000000000
--- a/U/sig_name.U
+++ /dev/null
@@ -1,86 +0,0 @@
-?RCS: $Id: sig_name.U,v 3.0 1993/08/18 12:09:47 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: sig_name.U,v $
-?RCS: Revision 3.0 1993/08/18 12:09:47 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:sig_name: awk rm Findhdr
-?MAKE: -pick add $@ %<
-?S:sig_name:
-?S: This variable holds the signal names, space separated. The leading
-?S: SIG in signals name is removed.
-?S:.
-?C:SIG_NAME:
-?C: This symbol contains a list of signal names in order. This is intended
-?C: to be used as a static array initialization, like this:
-?C: char *sig_name[] = { SIG_NAME };
-?C: The signals in the list are separated with commas, and each signal
-?C: is surrounded by double quotes. There is no leading SIG in the signal
-?C: name, i.e. SIGQUIT is known as "QUIT".
-?C:.
-?H:#define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
-?H:.
-?T:xxx
-: generate list of signal names
-echo " "
-case "$sig_name" in
-'')
- echo "Generating a list of signal names..." >&4
- xxx=`./findhdr signal.h`" "`./findhdr sys/signal.h`
- set X `cat $xxx 2>&1 | $awk '
-$1 ~ /^#define$/ && $2 ~ /^SIG[A-Z0-9]*$/ && $3 ~ /^[1-9][0-9]*$/ {
- sig[$3] = substr($2,4,20)
- if (max < $3 && $3 < 60) {
- max = $3
- }
-}
-
-END {
- for (i = 1; i <= max; i++) {
- if (sig[i] == "")
- printf "%d", i
- else
- printf "%s", sig[i]
- if (i < max)
- printf " "
- }
- printf "\n"
-}
-'`
- shift
- case $# in
- 0)
- echo 'kill -l' >/tmp/foo$$
- set X `csh -f </tmp/foo$$`
- $rm -f /tmp/foo$$
- shift
- case $# in
- 0)set HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM
- ;;
- esac
- ;;
- esac
- sig_name="ZERO $*"
- ;;
-esac
-echo "The following signals are available:"
-echo $sig_name |
- $awk 'BEGIN { linelen = 0 }
- { for (i = 1; i < NF; i++)
- {
- name = "SIG" $i " "
- linelen = linelen + length(name)
- if (linelen > 70)
- {
- printf "\n"
- linelen = length(name)
- }
- printf "%s", name } }'
diff --git a/U/voidflags.U b/U/voidflags.U
deleted file mode 100644
index 7d9a0d06ba..0000000000
--- a/U/voidflags.U
+++ /dev/null
@@ -1,148 +0,0 @@
-?RCS: $Id: voidflags.U,v 3.0 1993/08/18 12:10:01 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: voidflags.U,v $
-?RCS: Revision 3.0 1993/08/18 12:10:01 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:voidflags defvoidused: cat rm contains cc package Oldconfig Myread
-?MAKE: -pick add $@ %<
-?S:voidflags:
-?S: This variable contains the eventual value of the VOIDFLAGS symbol,
-?S: which indicates how much support of the void type is given by this
-?S: compiler. See VOIDFLAGS for more info.
-?S:.
-?X: Exceptionally, we have to explicitely alias the symbol name for
-?X: config_h.SH, otherwise the comment would not appear.
-?C:VOIDFLAGS ~ %<:
-?C: This symbol indicates how much support of the void type is given by this
-?C: compiler. What various bits mean:
-?C:
-?C: 1 = supports declaration of void
-?C: 2 = supports arrays of pointers to functions returning void
-?C: 4 = supports comparisons between pointers to void functions and
-?C: addresses of void functions
-?C: 8 = suports declaration of generic void pointers
-?C:
-?C: The package designer should define VOIDUSED to indicate the requirements
-?C: of the package. This can be done either by #defining VOIDUSED before
-?C: including config.h, or by defining defvoidused in Myinit.U. If the
-?C: latter approach is taken, only those flags will be tested. If the
-?C: level of void support necessary is not present, defines void to int.
-?C:.
-?H:?%<:#ifndef VOIDUSED
-?H:?%<:# define VOIDUSED $defvoidused
-?H:?%<:#endif
-?H:?%<:#define VOIDFLAGS $voidflags
-?H:?%<:#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
-?H:?%<:# define void int /* is void to be avoided? */
-?H:?%<:# define M_VOID /* Xenix strikes again */
-?H:?%<:# define VOID
-?H:?%<:#else
-?H:?%<:# define VOID void
-?H:?%<:#endif
-?H:.
-?W:%<:void VOID VOIDUSED
-?INIT:: full support for void wanted by default
-?INIT:defvoidused=15
-?INIT:
-?LINT:describe defvoidused
-?LINT:known void M_VOID VOIDUSED
-: check for void type
-echo " "
-$cat >&4 <<EOM
-Checking to see how well your C compiler groks the void type...
-
- Support flag bits are:
- 1: basic void declarations.
- 2: arrays of pointers to functions returning void.
- 4: operations between pointers to and addresses of void functions.
- 8: generic void pointers.
-
-EOM
-case "$voidflags" in
-'')
- $cat >try.c <<'EOCP'
-#if TRY & 1
-void main() {
-#else
-main() {
-#endif
- extern void moo(); /* function returning void */
- void (*goo)(); /* ptr to func returning void */
-#if TRY & 8
- void *hue; /* generic ptr */
-#endif
-#if TRY & 2
- void (*foo[10])();
-#endif
-
-#if TRY & 4
- if(goo == moo) {
- exit(0);
- }
-#endif
- exit(0);
-}
-EOCP
-?X: This unit used to use cc -S in those tests to try to speed up things, but
-?X: unfortunately, AIX 3.2 does not support this option.
- if $cc -c -DTRY=$defvoidused try.c >.out 2>&1 ; then
- voidflags=$defvoidused
- echo "It appears to support void to the level $package wants ($defvoidused)."
- if $contains warning .out >/dev/null 2>&1; then
- echo "However, you might get some warnings that look like this:"
- $cat .out
- fi
- else
-echo "Hmm, your compiler has some difficulty with void. Checking further..." >&4
- if $cc -c -DTRY=1 try.c >/dev/null 2>&1 ; then
- echo "It supports 1..."
- if $cc -c -DTRY=3 try.c >/dev/null 2>&1 ; then
- echo "It also supports 2..."
- if $cc -c -DTRY=7 try.c >/dev/null 2>&1 ; then
- voidflags=7
- echo "And it supports 4 but not 8 definitely."
- else
- echo "It doesn't support 4..."
- if $cc -c -DTRY=11 try.c >/dev/null 2>&1 ; then
- voidflags=11
- echo "But it supports 8."
- else
- voidflags=3
- echo "Neither does it support 8."
- fi
- fi
- else
- echo "It does not support 2..."
- if $cc -c -DTRY=13 try.c >/dev/null 2>&1 ; then
- voidflags=13
- echo "But it supports 4 and 8."
- else
- if $cc -c -DTRY=5 try.c >/dev/null 2>&1 ; then
- voidflags=5
- echo "And it supports 4 but has not heard about 8."
- else
- echo "However it supports 8 but not 4."
- fi
- fi
- fi
- else
- echo "There is no support at all for void."
- voidflags=0
- fi
- fi
-esac
-dflt="$voidflags";
-rp="Your void support flags add up to what?"
-. ./myread
-voidflags="$ans"
-$rm -f try.* .out
-
diff --git a/U/yacc.U b/U/yacc.U
deleted file mode 100644
index 679970c34e..0000000000
--- a/U/yacc.U
+++ /dev/null
@@ -1,81 +0,0 @@
-?RCS: $Id: yacc.U,v 3.0 1993/08/18 12:10:03 ram Exp $
-?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
-?RCS:
-?RCS: $Log: yacc.U,v $
-?RCS: Revision 3.0 1993/08/18 12:10:03 ram
-?RCS: Baseline for dist 3.0 netwide release.
-?RCS:
-?MAKE:yacc yaccflags: Guess Myread Oldconfig byacc bison cat test package
-?MAKE: -pick add $@ %<
-?S:yacc:
-?S: This variable holds the name of the compiler compiler we
-?S: want to use in the Makefile. It can be yacc, byacc, or bison -y.
-?S:.
-?S:yaccflags:
-?S: This variable contains any additional yacc flags desired by the
-?S: user. It is up to the Makefile to use this.
-?S:.
-: determine compiler compiler
-case "$yacc" in
-'')
- dflt=yacc;;
-*)
- dflt="$yacc";;
-esac
-echo " "
-rp="yacc"
-if $test -f "$byacc"; then
- dflt="$byacc"
- rp="byacc or $rp"
-fi
-if $test -f "$bison"; then
- rp="$rp or bison -y"
-fi
-$cat <<EOM
-$package no longer requires a compiler compiler, so the following is optional.
-EOM
-rp="Which compiler compiler ($rp) shall I use?"
-. ./myread
-yacc="$ans"
-case "$yacc" in
-*bis*)
- case "$yacc" in
- *-y*) ;;
- *)
- yacc="$yacc -y"
- echo "(Adding -y option to bison to get yacc-compatible behaviour.)"
- ;;
- esac
- ;;
-esac
-
-@if yaccflags
-: see if we need extra yacc flags
-dflt="$yaccflags"
-case "$dflt" in
-'') dflt=none;;
-esac
-$cat <<EOH
-
-Your yacc program may need extra flags to normally process the parser sources.
-Do NOT specify any -d or -v flags here, since those are explicitely known
-by the various Makefiles. However, if your machine has strange/undocumented
-options (like -Sr# on SCO to specify the maximum number of grammar rules), then
-please add them here. To use no flags, specify the word "none".
-
-EOH
-rp="Any additional yacc flags?"
-. ./myread
-case "$ans" in
-none) yaccflags='';;
-*) yaccflags="$ans";;
-esac
-
-@end