This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 5.002_01: hints/bsdos.sh
[perl5.git] / hints / bsdos.sh
CommitLineData
0e9bad51 1# hints/bsdos.sh
25f94b33
AD
2#
3# hints file for BSD/OS 2.x (adapted from bsd386.sh)
4# Original by Neil Bowers <neilb@khoros.unm.edu>
5# Tue Oct 4 12:01:34 EDT 1994
6# Updated by Tony Sanders <sanders@bsdi.com>
0e9bad51 7# Mon Nov 27 17:25:51 CST 1995
25f94b33
AD
8#
9# You can override the compiler and loader on the Configure command line:
0e9bad51 10# ./Configure -Dcc=shlicc2 -Dld=shlicc2
25f94b33
AD
11
12# filename extension for shared library objects
13so='o'
14
0e9bad51 15# Don't use this for Perl 5.002, which needs parallel sig_name and sig_num lists
16#sig_name='ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2 '
25f94b33 17signal_t='void'
0e9bad51 18d_voidsig='define'
25f94b33
AD
19d_dosuid='define'
20
0e9bad51 21# we don't want to use -lnm, since exp() is busted (in 1.1 anyway)
25f94b33
AD
22set `echo X "$libswanted "| sed -e 's/ nm / /'`
23shift
24libswanted="$*"
25
0e9bad51 26# BSD/OS X libraries are in their own tree
27glibpth="$glibpth /usr/X11/lib"
28ldflags="$ldflags -L/usr/X11/lib"
29
30# Avoid telldir prototype conflict in pp_sys.c
25f94b33
AD
31pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
32
0e9bad51 33case "$bsdos_distribution" in
34defined)
35 d_portable='no'
36 prefix='/usr/contrib'
37 man3dir='/usr/contrib/man/man3'
38 ;;
39esac
40
25f94b33
AD
41case "$osvers" in
421.0*)
43 # Avoid problems with HUGE_VAL in POSIX in 1.0's cc.
44 POSIX_cflags='ccflags="$ccflags -UHUGE_VAL"'
45 ;;
461.1*)
0e9bad51 47 # Use gcc2
25f94b33 48 case "$cc" in
0e9bad51 49 '') cc='gcc2' ;;
25f94b33
AD
50 esac
51 ;;
522.*)
0e9bad51 53 case "$osvers" in
54 2.1*) # dlopen() is supported in 2.1
55 usedl='true'
56 d_dlopen='define'
57 cccdlflags='none'
58 # pre-link against the shared C library
59 lddlflags='-r -lc_s.2.1.0'
60
61 # BSD/OS 2.1 doesn't (yet) support `true' dynamic linking
62 # so we `preload' the shared libraries by linking
63 # against them; even though we don't pull in any symbols.
64 libswanted="Xpm Xaw Xmu Xt SM ICE Xext X11 $libswanted"
65 libswanted="rpc curses termcap $libswanted"
66
67 # Use the system malloc or else you'll have dualing mallocs!
68 d_mymalloc='undef'
69 usemymalloc='n'
70 ;;
71 esac
72
73 # default to GCC 2.X w/shared libraries
25f94b33 74 case "$cc" in
0e9bad51 75 '') cc='shlicc2' ;;
25f94b33
AD
76 esac
77
0e9bad51 78 # default ld to shared library linker
25f94b33 79 case "$ld" in
0e9bad51 80 '') ld='shlicc2' ;;
25f94b33
AD
81 esac
82
83 # setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS stuff
84 # in 4.4BSD-based systems (including BSD/OS 2.0 and later).
85 # See http://www.bsdi.com/bsdi-man?setuid(2)
86 d_setregid='undef'
87 d_setreuid='undef'
88 d_setrgid='undef'
89 d_setruid='undef'
90 ;;
91esac