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 (NOT in 3.1 yet.
7 # Estimated for 4.0) SYSV IPC tested Ok so I re-enabled.
9 # Updated to work in post-4.0 by Todd C. Miller <millert@openbsd.org>
11 # Updated for threads by "Timur I. Bakeyev" <bsdi@listserv.bat.ru>
13 # To override the compiler on the command line:
14 # ./Configure -Dcc=gcc2
16 # The BSD/OS distribution is built with:
17 # ./Configure -des -Dbsdos_distribution=defined
25 case "$usemallocwrap" in
26 '') usemallocwrap='define' ;;
29 # setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions.
30 # See <A HREF="http://www.bsdi.com/bsdi-man?setuid">http://www.bsdi.com/bsdi-man?setuid</A>(2)
36 # we don't want to use -lnm, since exp() is busted (in 1.1 anyway)
37 set `echo X "$libswanted "| sed -e 's/ nm / /'`
41 # X libraries are in their own tree
42 glibpth="$glibpth /usr/X11/lib"
43 ldflags="$ldflags -L/usr/X11/lib"
49 case "$bsdos_distribution" in
55 perlpath='/usr/bin/perl5'
56 startperl='#!/usr/bin/perl5'
57 scriptdir='/usr/contrib/bin'
58 privlib='/usr/libdata/perl5'
59 man1dir='/usr/contrib/man/man1'
60 man3dir='/usr/contrib/man/man3'
61 # phlib added by BSDI -- we share the *.ph include dir with perl4
62 phlib="/usr/libdata/perl5/site_perl/$(arch)-$osname/include"
63 phlibexp="/usr/libdata/perl5/site_perl/$(arch)-$osname/include"
69 # Avoid problems with HUGE_VAL in POSIX in 1.0's cc.
70 POSIX_cflags='ccflags="$ccflags -UHUGE_VAL"'
81 # default to GCC 2.X w/shared libraries
84 cccdlflags=' ' ;; # Avoid the dreaded -fpic
87 # default ld to shared library linker
90 lddlflags='-r' ;; # this one is necessary
93 # Must preload the static shared libraries.
94 libswanted="Xpm Xaw Xmu Xt SM ICE Xext X11 $libswanted"
95 libswanted="rpc curses termcap $libswanted"
98 # ELF dynamic link libraries starting in 4.0
104 '') cc='cc' # cc is gcc2 in 4.0
111 lddlflags="-shared -x $lddlflags" ;;
113 # Due usage of static pointer from crt.o
114 libswanted="util $libswanted" ;;
117 # This script UU/usethreads.cbu will get 'called-back' by Configure
118 # after it has prompted the user for whether to use threads.
119 cat > UU/usethreads.cbu <<'EOCBU'
120 case "$usethreads" in
123 3.*|4.*) ccflags="-D_REENTRANT $ccflags"
126 I did not know that BSD/OS $osvers supports POSIX threads.
128 Feel free to tell perlbug@perl.org otherwise.