?RCS: Revision 3.0 1993/08/18 12:04:48 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
-?X:
+?X:
?X: This unit ends up producing the config.sh script, which contains all the
?X: definitions figured out by Configure. The add.Config_sh command knows
?X: which variables need to be remembered. It also adds the EOT (ends the
?X: here document redirection with variable substitution).
-?X:
+?X:
?MAKE:Config_sh: cf_time cf_by test spitshell startsh myuname Myread \
End Obsol_sh Loc +d_portable package src cat sed
?MAKE: -pick add.Config_sh $@ %<
?LINT:extern loclibpth
?LINT:change locincpth
?LINT:change loclibpth
+?LINT:extern TMPDIR
: setup for possible cross-compilation
run=''
to=:
from=$from-$targetfrom
case "$targetdir" in
'')
- targetdir=/tmp
+ targetdir="${TMPDIR:-/tmp}"
echo "Guessing targetdir $targetdir." >&4
;;
esac
?X:
?X: Turn silent mode off from now on (we want a verbose file extraction).
-?X: This means we have to explicitly test for '$silent' from now on to
+?X: This means we have to explicitely test for '$silent' from now on to
?X: strip off any verbose messages.
?X:
echo " "
?RCS: patch61: created
?RCS:
?X:
-?X: The purpose of this unit is to define things that are common accross all
+?X: The purpose of this unit is to define things that are common across all
?X: known UNIX platforms. If Configure is ported/used on a non-UNIX
?X: environment, then some of the following variables can be redefined in hint
?X: files.
for signal in SIGIOT SIGILL SIGABRT; do
case "$abortsig" in
'') $cat >abort.c <<EOP
+/* FIXME: Missing #include <stdlib.h>*/
#include <signal.h>
-caught() { exit(0); }
+caught() { exit(0); } /* FIXME: Use _exit() or _Exit() in signal handler */
int main()
{
#ifdef $signal
?S:.
?S:installbin:
?S: This variable is the same as binexp unless AFS is running in which case
-?S: the user is explicitly prompted for it. This variable should always
+?S: the user is explicitely prompted for it. This variable should always
?S: be used in your makefiles for maximum portability.
?S:.
?C:BIN:
?C: This symbol, if defined, contains the full pathname of csh.
?C:.
?X: Previously, I just did $d_csh CSH "$full_csh", but that caused
-?X: problems on VMS where the config.sh extraction program changes
+?X: problems on VMS where the config.sh extraction program changes
?X: $undef to a real cpp undef, and they then had #undef CSH ""
?X: which the compiler didn't like. It's easy to work around this,
?X: so I did. --AD 3/1998.
case "$d_suidsafe" in
"$define")
val="$undef"
- echo "No need to emulate SUID scripts since they are secure here." >&4
+ echo "No need to emulate SUID scripts since they are secure here." >& 4
;;
*)
$cat <<EOM
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?MAKE:d_fd_set d_fd_macros d_fds_bits: cat +cc +ccflags rm Oldconfig \
- d_socket i_systime i_sysselct
+ d_socket i_systime i_sysselct i_syssock
?MAKE: -pick add $@ %<
?S:d_fd_set:
?S: This variable contains the eventual value of the HAS_FD_SET symbol,
#$i_systime I_SYS_TIME
#$i_sysselct I_SYS_SELECT
#$d_socket HAS_SOCKET
+#$i_syssock I_SYS_SOCKET
#include <sys/types.h>
#ifdef HAS_SOCKET
+#ifdef I_SYS_SOCKET
#include <sys/socket.h> /* Might include <sys/bsdtypes.h> */
#endif
+#endif
#ifdef I_SYS_TIME
#include <sys/time.h>
#endif
?RCS: Revision 3.0.1.1 1994/10/29 16:12:51 ram
?RCS: patch36: created by ADO
?RCS:
-?MAKE:d_Gconvert: cat cc ccflags ldflags libs Inlibc rm _o
+?MAKE:d_Gconvert: cat cc ccflags ldflags libs rm _o
?MAKE: -pick add $@ %<
?S:d_Gconvert:
?S: This variable holds what Gconvert is defined as to convert
*define*)
dflt=n
cat <<EOM
-
+
Every now and then someone has a $call() that lies about the hostname
but can't be fixed for political or economic reasons. If you wish, I can
@if MYHOSTNAME && PHOSTNAME
1) You can have your host name ($myhostname) compiled into $package, which
lets $package start up faster, but makes your binaries non-portable, or
2) you can have $package use a
-
+
popen("$aphostname","r")
which will start slower but be more portable.
"$define")
dflt=y
$cat <<EOM
-
+
No hostname function--you can either use the whoami.h file, which has this line:
`grep sysname $usrinc/whoami.h`
"$define")
dflt=y
$cat <<EOM
-
+
No hostname function--you can either use the whoami.h file, which has this line:
`grep sysname $usrinc/whoami.h`
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?X:
-?X: Does the scanf routine read "\n" corretly ? This is was not
+?X: Does the scanf routine read "\n" correctly ? This is was not
?X: the case on AIX...
?X:
?MAKE:d_scannl: cat +cc +ccflags rm Setvar
: does scanf handle "\n" correctly ?
echo " "
val="$define"
-?X: I really want to say "\n" instead of '\n', becasue I am refering
+?X: I really want to say "\n" instead of '\n', because I am referring
?X: to the string given as argument to scanf().
echo 'Let'"'"'s see if scanf() handles "\\n" correctly...' >&4
$cat >try.c <<'EOCP'
?MAKE: -pick add $@ %<
?S:d_times:
?S: This variable conditionally defines the HAS_TIMES symbol, which indicates
-?S: that the times() routine exists. The times() routine is normaly
+?S: that the times() routine exists. The times() routine is normally
?S: provided on UNIX systems. You may have to include <sys/times.h>.
?S:.
?S:clocktype:
?X:
$grep fprintf libc.tmp > libc.ptf
?X:
-?X: In order to ehance readability and save some space, we define
+?X: In order to enhance 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, I and W types added for Linux
?X: Some versions of Linux include a leading __IO in the symbol name.
-?X: HPUX10 reportedly has trailing spaces, though I'm suprised it has
+?X: HPUX10 reportedly has trailing spaces, though I'm surprised it has
?X: BSD-like output. (AD).
xxx='[ADTSIW]'
if com="$sed -n -e 's/__IO//' -e 's/^.* $xxx *_[_.]*//p' -e 's/^.* $xxx *//p'";\
?S:.
: determine whether symbolic links are supported
echo " "
+$rm -f blurfl sym
$touch blurfl
-$rm -f sym
if $ln -s blurfl sym > /dev/null 2>&1 && $test -f sym; then
echo "Symbolic links are supported." >&4
lns="$ln -s"
?Y:TOP
?S:perlpath:
?S: This variable contains the eventual value of the PERLPATH symbol,
-?S: which contains the absolute location of the perl interpeter.
+?S: which contains the absolute location of the perl interpreter.
?S:.
?C:PERLPATH:
-?C: This symbol contains the absolute location of the perl interpeter.
+?C: This symbol contains the absolute location of the perl interpreter.
?C:.
?H:#define PERLPATH "$perlpath" /**/
?H:.
case "$d_sbrk" in
"$define")
echo "Let's see if your sbrk() is smart enough to release core..." >&4
- $cat > sbrk.c <<'EOC'
+ $cat > sbrk.c <<EOC
#define INC 256 /* Small enough to be less than a page size */
int main()
?T:xxx
: determine where site specific architecture-dependent libraries go.
xxx=`echo $sitelib/$archname | sed 's!^$prefix!!'`
-: xxx is usuually lib/site_perl/archname.
+: xxx is usually lib/site_perl/archname.
set sitearch sitearch none
eval $prefixit
case "$sitearch" in
eval $prefixit
case "$sitelib" in
'')
-?X: remove any trailing -3.0 or other version indification
+?X: remove any trailing -3.0 or other version indentification
prog=`echo $package | $sed 's/-*[0-9.]*$//'`
dflt="$privlib/site_$prog" ;;
*) dflt="$sitelib" ;;
?S: eval 'exec perl -S $0 ${1+"$@"}'
?S: if $running_under_some_shell;
?S: to guarantee perl startup should the shell execute the script. Note
-?S: that this magic incatation is not understood by csh.
+?S: that this magic incantation is not understood by csh.
?S:.
?C:STARTPERL:
?C: This symbol is the string that should be put on the front of a
?S: Maybe Linux should just always set usenm=false.
?S:.
: see if nm is to be used to determine whether a symbol is defined or not
-?X: If there is enough enquiries, it might be worth to wait for the nm
+?X: If there is enough inquiries, it might be worth to wait for the nm
?X: extraction. Otherwise, the C compilations might be a better deal.
?X:
?X: Don't bother if we're using GNU libc -- skimo