summaryrefslogtreecommitdiff
path: root/hints/svr4.sh
blob: 922736aa487177d69a1af88ade8711c1499a6b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# svr4 hints, System V Release 4.x
# Last modified 1995/01/28 by Tye McQueen, tye@metronet.com
# Use Configure -Dcc=gcc to use gcc.
case "$cc" in
'') cc='/bin/cc'
    test -f $cc || cc='/usr/ccs/bin/cc'
    ;;
esac
# We include support for using libraries in /usr/ucblib, but the setting
# of libswanted excludes some libraries found there.  You may want to
# prevent "ucb" from being removed from libswanted and see if perl will
# build on your system.
ldflags='-L/usr/ccs/lib -L/usr/ucblib'
ccflags='-I/usr/include -I/usr/ucbinclude'
# Don't use problematic libraries:
libswanted=`echo " $libswanted " | sed -e 's/ malloc / /'` # -e 's/ ucb / /'`
# libmalloc.a - Probably using Perl's malloc() anyway.
# libucb.a - Remove it if you have problems ld'ing.  We include it because
#   it is needed for ODBM_File and NDBM_File extensions.
if [ -r /usr/ucblib/libucb.a ]; then	# If using BSD-compat. library:
    d_gconvert='undef'	# Unusuable under UnixWare 1.1 [use gcvt() instead]
    # Use the "native" counterparts, not the BSD emulation stuff:
    d_bcmp='undef' d_bcopy='undef' d_bzero='undef' d_safebcpy='undef'
    d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef'
    d_setlinebuf='undef' d_setregid='undef' d_setreuid='undef'
fi
d_suidsafe='define'	# "./Configure -d" can't figure this out easilly
usevfork='false'

# Configure may fail to find lstat() since it's a static/inline
# function in <sys/stat.h> on Unisys U6000 SVR4, and possibly
# other SVR4 derivatives.
d_lstat=define

# UnixWare has a broken csh.  The undocumented -X argument to uname is probably
# a reasonable way of detecting UnixWare.  Also in 2.1.1 the fields in
# FILE* got renamed!
uw_ver=`uname -v`
uw_isuw=`uname -X 2>&1 | grep Release`
if [ "$uw_isuw" = "Release = 4.2MP" ]; then
   case $uw_ver in
   2.1)
      d_csh='undef'
      ;;
   2.1.*)
      d_csh='undef'
      stdio_cnt='((fp)->__cnt)'
      d_stdio_cnt_lval='define'
      stdio_ptr='((fp)->__ptr)'
      d_stdio_ptr_lval='define'
      ;;
   esac
fi

# DDE SMES Supermax Enterprise Server
case "`uname -sm`" in
"UNIX_SV SMES")
	if test "$cc" = '/bin/cc' -o "$gccversion" = ""
	then
		# for cc we need -K PIC (not -K pic)
 		cccdlflags="$cccdlflags -K PIC"
	fi
	# the *grent functions are in libgen.
	libswanted="$libswanted gen"
	# csh is broken (also) in SMES
	d_csh='undef'
	;;
esac

cat <<'EOM' >&4

If you wish to use dynamic linking, you must use 
	LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH
or
	setenv LD_LIBRARY_PATH `pwd`
before running make.

EOM