This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Increase $XS::APItest::VERSION from 0.31 to 0.32
[perl5.git] / hints / beos.sh
1 # BeOS hints file
2
3 if [ ! -f beos/nm ]; then mwcc -w all -o beos/nm beos/nm.c 2>/dev/null; fi
4 # If this fails, that's all right - it's only for PPC.
5
6 prefix="/boot/home/config"
7
8 #cpp="mwcc -e"
9
10 libpth='/boot/beos/system/lib /boot/home/config/lib'
11 usrinc='/boot/develop/headers/posix'
12 locinc='/boot/develop/headers/ /boot/home/config/include'
13
14 libc='/boot/beos/system/lib/libroot.so'
15 libs=' '
16
17 d_bcmp='define'
18 d_bcopy='define'
19 d_bzero='define'
20 d_index='define'
21 #d_htonl='define' # It exists, but much hackery would be required to support.
22 # a bunch of extra includes would have to be added, and it's only used at
23 # one place in the non-socket perl code.
24
25 #these are all in libdll.a, which my version of nm doesn't know how to parse.
26 #if I can get it to both do that, and scan multiple library files, perhaps
27 #these can be gotten rid of.
28
29 usemymalloc='n'
30 # Hopefully, Be's malloc knows better than perl's.
31
32 d_link='undef'
33 dont_use_nlink='define'
34 # no posix (aka hard) links for us!
35
36 d_syserrlst='undef'
37 # the array syserrlst[] is useless for the most part.
38 # large negative numbers really kind of suck in arrays.
39
40 # Sockets didn't use to be real sockets but BONE changes this.
41 if [ ! -f /boot/develop/headers/be/bone/sys/socket.h ]; then
42     d_socket='undef'
43     d_gethbyaddr='undef'
44     d_gethbyname='undef'
45     d_getsbyname='undef'
46
47         libs='-lnet'
48 fi
49
50 # There's a third party flock() emulation. Check, if it is available.
51 echo "#include <flock.h>" > try.c
52 if cc -E $CFLAGS try.c 2> /dev/null | grep "flock.*("; then
53     d_flock='define'
54     d_flockproto='define'
55     libs="$libs -lflock"
56     ldflags="$ldflags -L/boot/home/config/lib"
57 else
58         cat << 'EOM' >&4
59
60 I couldn't find a <flock.h> header defining a flock() prototype. That header
61 comes with the flock server package (available on BeBits). You have to add
62 the path to the directory containing the header via the environment variable
63 CFLAGS (should contain -I</path/to/dir/of/flock/header>). Perl will be compiled
64 without flock() support, if the flock server package is not installed or the
65 header not found.
66
67 EOM
68
69 fi
70 rm try.c
71
72 ld='gcc'
73
74 export PATH="$PATH:$PWD/beos"
75
76 case "$ldlibpthname" in
77 '') ldlibpthname=LIBRARY_PATH ;;
78 esac
79
80 # the waitpid() wrapper (among other things)
81 archobjs="beos.o"
82 test -f beos.c || cp beos/beos.c .