summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
Diffstat (limited to 'hints')
-rw-r--r--hints/aix.sh14
-rw-r--r--hints/dgux.sh133
-rw-r--r--hints/dynix.sh4
-rw-r--r--hints/irix_5.sh16
-rw-r--r--hints/linux.sh30
-rw-r--r--hints/machten.sh23
-rw-r--r--hints/powerux.sh (renamed from hints/powerunix.sh)5
7 files changed, 183 insertions, 42 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index 35fbb5ec39..6a4c585eb6 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -30,7 +30,7 @@ case "$osvers" in
*) # These hints at least work for 4.x, possibly other systems too.
d_setregid='undef'
d_setreuid='undef'
- ccflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE'
+ ccflags='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE'
nm_opt='-B'
;;
esac
@@ -38,7 +38,8 @@ esac
# The optimizer in 4.1.1 apparently generates bad code for scope.c.
# Configure doesn't offer an easy way to propagate extra variables
# only for certain cases, so the following contortion is required:
-scope_cflags='case "$osvers" in 4.1*) optimize=" ";; esac'
+# This is probably not needed in 5.002 and later.
+# scope_cflags='case "$osvers" in 4.1*) optimize=" ";; esac'
# Changes for dynamic linking by Wayne Scott <wscott@ichips.intel.com>
#
@@ -53,7 +54,12 @@ esac
# -bI:$(PERL_INC)/perl.exp Read the exported symbols from the perl binary
# -bE:$(BASEEXT).exp Export these symbols. This file contains only one
# symbol: boot_$(EXP) can it be auto-generated?
+case "$osvers" in
+3*)
lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc'
+ ;;
+*)
+lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc'
-# The '-e _nostart' might not be needed on AIX 4.1, but appears to be
-# harmless.
+;;
+esac
diff --git a/hints/dgux.sh b/hints/dgux.sh
index 733570b02b..bc54c945bd 100644
--- a/hints/dgux.sh
+++ b/hints/dgux.sh
@@ -1,26 +1,123 @@
+# $Id: dgux.sh,v 1.4 1996/01/18 03:40:38 roderick Exp $
+
+# This is a hints file for DGUX, which is Data General's Unix. It was
+# developed using version 5.4.3.10 of the OS. I think the gross
+# features should work with versions 5.4.2 through 5.4.4.11 with perhaps
+# minor tweaking, but I don't have any older or newer versions installed
+# at the moment with which to test it.
#
-# hints file for Data General DG/UX
-# these hints tweaked for perl5 on an AViiON mc88100, running DG/UX 5.4R2.01
+# DGUX is a SVR4 derivative. It ships with gcc as the standard
+# compiler. Since version 5.4.3.0 it has shipped with Perl 4.036
+# installed in /usr/bin, which is kind of neat. Be careful when you
+# install that you don't overwrite the system version, though (by
+# answering yes to the question about installing perl as /usr/bin/perl),
+# as it would suck to try to get support if the vendor learned that you
+# were physically replacing the system binaries.
#
+# Be aware that if you opt to use dynamic loading you'll need to set
+# your $LD_LIBRARY_PATH to include the source directory when you build,
+# test and install the software.
+#
+# -Roderick Schertler <roderick@gate.net>
-gidtype='gid_t'
-groupstype='gid_t'
-libswanted="dgc $libswanted"
-uidtype='uid_t'
-d_index='define'
-ccflags='-D_POSIX_SOURCE -D_DGUX_SOURCE'
-
-# this hasn't been tried with dynamic loading at all
-usedl='false'
+# Here are the things from some old DGUX hints files which are different
+# from what's in here now. I don't know the exact reasons that most of
+# these settings were in the hints files, presumably they can be chalked
+# up to old Configure inadequacies and changes in the OS headers and the
+# like. These settings might make a good place to start looking if you
+# have problems.
#
-# an ugly hack, since the Configure test for "gcc -P -" hangs.
-# can't just use 'cppstdin', since our DG has a broken cppstdin :-(
+# This was specified the the 4.036 hints file. That hints file didn't
+# say what version of the OS it was developed using.
#
-cppstdin=`cd ..; pwd`/cppstdin
-cpprun=`cd ..; pwd`/cppstdin
-
+# cppstdin='/lib/cpp'
+#
+# The 4.036 and 5.001 hints files both contained these. The 5.001 hints
+# file said it was developed with version 5.4.2.01 of DGUX.
+#
+# gidtype='gid_t'
+# groupstype='gid_t'
+# uidtype='uid_t'
+# d_index='define'
+# cc='gcc'
+#
+# These were peculiar to the 5.001 hints file.
+#
+# ccflags='-D_POSIX_SOURCE -D_DGUX_SOURCE'
#
-# you don't want to use /usr/ucb/cc
+# # an ugly hack, since the Configure test for "gcc -P -" hangs.
+# # can't just use 'cppstdin', since our DG has a broken cppstdin :-(
+# cppstdin=`cd ..; pwd`/cppstdin
+# cpprun=`cd ..; pwd`/cppstdin
#
-cc='gcc'
+# One last note: The 5.001 hints file said "you don't want to use
+# /usr/ucb/cc" in the place at which it set cc to gcc. That in
+# particular baffles me, as I used to have 5.4.2.01 loaded and my memory
+# is telling me that even then /usr/ucb was a symlink to /usr/bin.
+
+
+# The standard system compiler is gcc, but invoking it as cc changes its
+# behavior. I have to pick one name or the other so I can get the
+# dynamic loading switches right (they vary depending on this). I'm
+# picking gcc because there's no way to get at the optimization options
+# and so on when you call it cc.
+case $cc in
+ '')
+ cc=gcc
+ case $optimize in
+ '') optimize=-O2;;
+ esac
+ ;;
+esac
+
+usevfork=true
+
+# DG has this thing set up with symlinks which point to different places
+# depending on environment variables (see elink(5)) and the compiler and
+# related tools use them to access different development environments
+# (COFF, ELF, m88k BCS and so on), see sde(5). The upshot, however, is
+# that when a normal program tries to access one of these elinks it sees
+# no such file (like stat()ting a mis-directed symlink). Setting
+# $plibpth to explicitly include the place to which the elinks point
+# allows Configure to find libraries which vary based on the development
+# environment.
+plibpth="$plibpth \
+ ${SDE_PATH:-/usr}/sde/${TARGET_BINARY_INTERFACE:-m88kdgux}/usr/lib"
+
+# Many functions (eg, gethostent(), killpg(), getpriority(), setruid()
+# dbm_*(), and plenty more) are defined in -ldgc. Usually you don't
+# need to know this (it seems that libdgc.so is searched automatically
+# by ld), but Configure needs to check it otherwise it will report all
+# those functions as missing.
+libswanted="dgc $libswanted"
+
+# Dynamic loading works using the dlopen() functions. Note that dlfcn.h
+# is broken, it declares _dl*() rather than dl*(). (This is in my
+# I'd-open-a-ticket-about-this-if-it-weren't-going-to-be-such-a-hassle
+# file.) You can ignore the warnings caused by the missing
+# declarations, they're harmless.
+usedl=true
+# For cc rather than gcc the flags would be `-K PIC' for compiling and
+# -G for loading. I haven't tested this.
+cccdlflags=-fpic
+lddlflags=-shared
+# The Perl library has to be built as a shared library so that dynamic
+# loading will work (otherwise code loaded with dlopen() won't be able
+# to reference symbols in the main part of perl). Note that since
+# Configure doesn't normally prompt about $d_shrplib this will cause a
+# `Whoa there!'. This is normal, just keep the recommended value. A
+# consequence of all this is that you've got to include the source
+# directory in your LD_LIBRARY_PATH when you're building and testing
+# perl.
+d_shrplib=define
+
+# The system has a function called dg_flock() which is an flock()
+# emulation built using fcntl() locking. Perl currently comes with an
+# flock() emulation which uses lockf(), it should eventually also
+# include an fcntl() emulation of its own. Until that happens I
+# recommend using DG's emulation (and ignoring the `WHOA THERE!' this
+# causes), it provides semantics closer to the original than the lockf()
+# emulation.
+ccflags="$ccflags -Dflock=dg_flock"
+d_flock=define
diff --git a/hints/dynix.sh b/hints/dynix.sh
index 3b759cba25..4bdb804f53 100644
--- a/hints/dynix.sh
+++ b/hints/dynix.sh
@@ -1,3 +1,7 @@
# If this doesn't work, try specifying 'none' for hints.
d_castneg=undef
libswanted=`echo $libswanted | sed -e 's/socket /socket seq /'`
+
+# Reported by Craig Milo Rogers <Rogers@ISI.EDU>
+# Date: Tue, 30 Jan 96 15:29:26 PST
+d_casti32=undef
diff --git a/hints/irix_5.sh b/hints/irix_5.sh
index 5b92cacd84..5027b1574f 100644
--- a/hints/irix_5.sh
+++ b/hints/irix_5.sh
@@ -1,5 +1,8 @@
# irix_5.sh
-# Last modified Tue Jan 2 14:52:36 EST 1996
+# Tue Jan 9 16:04:38 EST 1996
+# Add note about socket patch.
+#
+# Tue Jan 2 14:52:36 EST 1996
# Apparently, there's a stdio bug that can lead to memory
# corruption using perl's malloc, but not SGI's malloc.
usemymalloc='n'
@@ -18,3 +21,14 @@ lddlflags="-shared"
set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
shift
libswanted="$*"
+
+# Date: Fri, 22 Dec 1995 11:49:17 -0800
+# From: Matthew Black <black@csulb.edu>
+# Subject: sockets broken under IRIX 5.3? YES...how to fix
+# Anyone attempting to use perl4 or perl5 with SGI IRIX 5.3 may discover
+# that sockets are essentially broken. The syslog interface for perl also
+# fails because it uses the broken socket interface. This problem was
+# reported to SGI as bug #255347 and it can be fixed by installing
+# patchSG0000596. The patch can be downloaded from Advantage OnLine (SGI's
+# WWW server) or from the Support Advantage 9/95 Patch CDROM. Thanks to Tom
+# Christiansen and others who provided assistance.
diff --git a/hints/linux.sh b/hints/linux.sh
index b8dbc25698..abe8bbcad1 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -8,12 +8,8 @@
#
# Consolidated by Andy Dougherty <doughera@lafcol.lafayette.edu>
#
-# Last updated Tue May 30 14:25:02 EDT 1995
-#
-# If you wish to use something other than 'gcc' for your compiler,
-# you should specify it on the Configure command line. To use
-# gcc-elf, for exmample, type
-# ./Configure -Dcc=gcc-elf
+# Updated Tue May 30 14:25:02 EDT 1995
+# Add ability to use command-line overrides for optinal settings.
# perl goes into the /usr tree. See the Filesystem Standard
# available via anonymous FTP at tsx-11.mit.edu in
@@ -23,28 +19,27 @@ case "$prefix" in
'') prefix='/usr' ;;
esac
-# Perl expects BSD style signal handling.
+# Perl users typically expect BSD style signal handling.
+# This may not be needed in 5.002 since sigaction is used.
# gcc-2.6.3 defines _G_HAVE_BOOL to 1, but doesn't actually supply bool.
ccflags="-D__USE_BSD_SIGNAL -Dbool=char -DHAS_BOOL $ccflags"
-# The following functions are gcc built-ins, but the Configure tests
-# may fail because they don't supply proper prototypes.
-# This should be fixed as of 5.001f. I'd appreciate reports.
-d_memcmp=define
-d_memcpy=define
-
# Configure may fail to find lstat() since it's a static/inline
# function in <sys/stat.h>.
d_lstat=define
# Explanation?
-d_dosuid='define'
+case "$d_dosuid" in
+'') d_dosuid='define' ;;
+esac
# I think Configure gets this right now, but I'd appreciate reports.
malloctype='void *'
# Explanation?
-usemymalloc='n'
+case "$usemymalloc" in
+'') usemymalloc='n' ;;
+esac
case "$optimize" in
'') optimize='-O2' ;;
@@ -89,6 +84,7 @@ EOM
# Linux ELF values.
ccdlflags=' '
cccdlflags=' '
+ ccflags="-DOVR_DBL_DIG=14 $ccflags"
so='sa'
dlext='o'
## If you are using DLD 3.2.4 which does not support shared libs,
@@ -119,5 +115,7 @@ fi
# This will generate a harmless message:
# Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
# Propagating recommended variable d_dbm_open
-d_dbm_open=undef
+case "$d_dbm_open" in
+'') d_dbm_open=undef ;;
+esac
diff --git a/hints/machten.sh b/hints/machten.sh
index cbf634ab67..d937128b0f 100644
--- a/hints/machten.sh
+++ b/hints/machten.sh
@@ -25,3 +25,26 @@ useposix=false
#MachTen might have an incomplete Berkeley DB implementation.
i_db=$undef
+
+#MachTen versions 2.X have no hard links. This variable is used
+# by File::Find.
+# This will generate a harmless message:
+# Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
+# Propagating recommended variable dont_use_nlink
+case "$osver" in
+2*) dont_use_nlink=define ;;
+*) ;;
+esac
+
+case "$osvers" in
+2*)
+ cat <<'EOM' >&4
+
+Tests
+ io/fs test 4 and
+ op/stat test 3
+may fail since MachTen versions 2.X have no hard links.
+
+EOM
+ ;;
+esac
diff --git a/hints/powerunix.sh b/hints/powerux.sh
index 0878e748b7..b1c082651f 100644
--- a/hints/powerunix.sh
+++ b/hints/powerux.sh
@@ -1,9 +1,8 @@
-# Hints for the Power UNIX operating system running on Harris NightHawk
+# Hints for the PowerUX operating system running on Harris NightHawk
# machines. Written by Tom.Horsley@mail.hcsc.com
#
# This config uses dynamic linking and the Harris C compiler. It has been
-# tested on a Harris 5800 running Power UNIX as well as a (prototype) Harris
-# 6800 running Power UNIX.
+# tested on a Harris 6800 running PowerUX.
# Internally at Harris, we use a source management tool which winds up
# giving us read-only copies of source trees that are mostly symbolic links.