Commit | Line | Data |
0e9bad51 |
1 | # hints/bsdos.sh |
25f94b33 |
2 | # |
0806a92f |
3 | # hints file for BSD/OS (adapted from bsd386.sh) |
4 | # Original by Neil Bowers <neilb@khoros.unm.edu>; Tue Oct 4 12:01:34 EDT 1994 |
5 | # Updated by Tony Sanders <sanders@bsdi.com>; Sat Aug 23 12:47:45 MDT 1997 |
6 | # Added 3.1 with ELF dynamic libraries |
7 | # SYSV IPC tested Ok so I re-enabled. |
25f94b33 |
8 | # |
0806a92f |
9 | # To override the compiler on the command line: |
10 | # ./Configure -Dcc=gcc2 |
11 | # |
12 | # The BSD/OS distribution is built with: |
13 | # ./Configure -des -Dbsdos_distribution=defined |
25f94b33 |
14 | |
25f94b33 |
15 | signal_t='void' |
0e9bad51 |
16 | d_voidsig='define' |
25f94b33 |
17 | |
0806a92f |
18 | usemymalloc='n' |
19 | |
20 | # setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions. |
21 | # See http://www.bsdi.com/bsdi-man?setuid(2) |
22 | d_setregid='undef' |
23 | d_setreuid='undef' |
24 | d_setrgid='undef' |
25 | d_setruid='undef' |
26 | |
0e9bad51 |
27 | # we don't want to use -lnm, since exp() is busted (in 1.1 anyway) |
25f94b33 |
28 | set `echo X "$libswanted "| sed -e 's/ nm / /'` |
29 | shift |
30 | libswanted="$*" |
31 | |
0806a92f |
32 | # X libraries are in their own tree |
0e9bad51 |
33 | glibpth="$glibpth /usr/X11/lib" |
34 | ldflags="$ldflags -L/usr/X11/lib" |
35 | |
36 | # Avoid telldir prototype conflict in pp_sys.c |
25f94b33 |
37 | pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"' |
38 | |
0806a92f |
39 | case "$optimize" in |
40 | '') optimize='-O2' ;; |
41 | esac |
42 | |
0e9bad51 |
43 | case "$bsdos_distribution" in |
0806a92f |
44 | ''|undef|false) ;; |
45 | *) |
46 | d_dosuid='define' |
47 | d_portable='undef' |
0e9bad51 |
48 | prefix='/usr/contrib' |
0806a92f |
49 | perlpath='/usr/bin/perl5' |
50 | startperl='#!/usr/bin/perl5' |
51 | scriptdir='/usr/contrib/bin' |
52 | privlib='/usr/libdata/perl5' |
53 | man1dir='/usr/contrib/man/man1' |
0e9bad51 |
54 | man3dir='/usr/contrib/man/man3' |
0806a92f |
55 | # phlib added by BSDI -- we share the *.ph include dir with perl4 |
56 | phlib="/usr/libdata/perl5/site_perl/$(arch)-$osname/include" |
57 | phlibexp="/usr/libdata/perl5/site_perl/$(arch)-$osname/include" |
0e9bad51 |
58 | ;; |
59 | esac |
60 | |
25f94b33 |
61 | case "$osvers" in |
62 | 1.0*) |
63 | # Avoid problems with HUGE_VAL in POSIX in 1.0's cc. |
64 | POSIX_cflags='ccflags="$ccflags -UHUGE_VAL"' |
65 | ;; |
66 | 1.1*) |
0e9bad51 |
67 | # Use gcc2 |
25f94b33 |
68 | case "$cc" in |
0e9bad51 |
69 | '') cc='gcc2' ;; |
25f94b33 |
70 | esac |
71 | ;; |
0806a92f |
72 | 2.0*|2.1*|3.0*) |
73 | so='o' |
d84bea6a |
74 | |
0806a92f |
75 | # default to GCC 2.X w/shared libraries |
d84bea6a |
76 | case "$cc" in |
77 | '') cc='shlicc2' |
78 | cccdlflags=' ' ;; # Avoid the dreaded -fpic |
79 | esac |
80 | |
0806a92f |
81 | # default ld to shared library linker |
d84bea6a |
82 | case "$ld" in |
83 | '') ld='shlicc2' |
84 | lddlflags='-r' ;; # this one is necessary |
85 | esac |
86 | |
0806a92f |
87 | # Must preload the static shared libraries. |
c20f90ab |
88 | libswanted="Xpm Xaw Xmu Xt SM ICE Xext X11 $libswanted" |
89 | libswanted="rpc curses termcap $libswanted" |
d84bea6a |
90 | ;; |
0806a92f |
91 | 3.1*) |
92 | # ELF dynamic link libraries starting in 3.1 |
93 | useshrplib='true' |
94 | so='so' |
95 | dlext='so' |
d51761ab |
96 | |
97 | case "$cc" in |
0806a92f |
98 | '') cc='cc' # cc is gcc2 in 3.1 |
99 | cccdlflags="-fPIC" |
100 | ccdlflags=" " ;; |
d51761ab |
101 | esac |
102 | |
d51761ab |
103 | case "$ld" in |
0806a92f |
104 | '') ld='ld' |
105 | lddlflags="-shared -x $lddlflags" ;; |
d51761ab |
106 | esac |
d51761ab |
107 | ;; |
25f94b33 |
108 | esac |
0806a92f |
109 | |