blob: a1ba113f7a1839fa1c1f242e060ac01d41956ae1 (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
# hints/bsdos.sh
#
# hints file for BSD/OS (adapted from bsd386.sh)
# Original by Neil Bowers <neilb@khoros.unm.edu>; Tue Oct 4 12:01:34 EDT 1994
# Updated by Tony Sanders <sanders@bsdi.com>; Sat Aug 23 12:47:45 MDT 1997
# Added 3.1 with ELF dynamic libraries (NOT in 3.1 yet.
# Estimated for 4.0) SYSV IPC tested Ok so I re-enabled.
#
# Updated to work in post-4.0 by Todd C. Miller <millert@openbsd.org>
#
# Updated for threads by "Timur I. Bakeyev" <bsdi@listserv.bat.ru>
#
# To override the compiler on the command line:
# ./Configure -Dcc=gcc2
#
# The BSD/OS distribution is built with:
# ./Configure -des -Dbsdos_distribution=defined
signal_t='void'
d_voidsig='define'
usemymalloc='n'
# malloc wrap works
case "$usemallocwrap" in
'') usemallocwrap='define' ;;
esac
# setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions.
# See man 2 setuid
d_setregid='undef'
d_setreuid='undef'
d_setrgid='undef'
d_setruid='undef'
# we don't want to use -lnm, since exp() is busted (in 1.1 anyway)
set `echo X "$libswanted "| sed -e 's/ nm / /'`
shift
libswanted="$*"
# X libraries are in their own tree
glibpth="$glibpth /usr/X11/lib"
ldflags="$ldflags -L/usr/X11/lib"
case "$optimize" in
'') optimize='-O2' ;;
esac
case "$bsdos_distribution" in
''|undef|false) ;;
*)
d_dosuid='define'
d_portable='undef'
prefix='/usr/contrib'
perlpath='/usr/bin/perl5'
startperl='#!/usr/bin/perl5'
scriptdir='/usr/contrib/bin'
privlib='/usr/libdata/perl5'
man1dir='/usr/contrib/man/man1'
man3dir='/usr/contrib/man/man3'
# phlib added by BSDI -- we share the *.ph include dir with perl4
phlib="/usr/libdata/perl5/site_perl/$(arch)-$osname/include"
phlibexp="/usr/libdata/perl5/site_perl/$(arch)-$osname/include"
;;
esac
case "$osvers" in
1.0*)
# Avoid problems with HUGE_VAL in POSIX in 1.0's cc.
POSIX_cflags='ccflags="$ccflags -UHUGE_VAL"'
;;
1.1*)
# Use gcc2
case "$cc" in
'') cc='gcc2' ;;
esac
;;
2.0*|2.1*|3.0*|3.1*)
so='o'
# default to GCC 2.X w/shared libraries
case "$cc" in
'') cc='shlicc2'
cccdlflags=' ' ;; # Avoid the dreaded -fpic
esac
# default ld to shared library linker
case "$ld" in
'') ld='shlicc2'
lddlflags='-r' ;; # this one is necessary
esac
# Must preload the static shared libraries.
libswanted="Xpm Xaw Xmu Xt SM ICE Xext X11 $libswanted"
libswanted="rpc curses termcap $libswanted"
;;
4.*)
# ELF dynamic link libraries starting in 4.0
useshrplib='true'
so='so'
dlext='so'
case "$cc" in
'') cc='cc' # cc is gcc2 in 4.0
cccdlflags="-fPIC"
;;
esac
case "$ld" in
'') ld='ld'
lddlflags="-shared -x $lddlflags" ;;
esac
# Due usage of static pointer from crt.o
libswanted="util $libswanted" ;;
esac
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
cat > UU/usethreads.cbu <<'EOCBU'
case "$usethreads" in
$define|true|[yY]*)
case "$osvers" in
3.*|4.*) ccflags="-D_REENTRANT -D_THREAD_SAFE -pthread $ccflags"
;;
*) cat <<EOM >&4
I did not know that BSD/OS $osvers supports POSIX threads.
Feel free report that at https://github.com/Perl/perl5/issues otherwise.
EOM
exit 1
;;
esac
;;
esac
EOCBU
|