Commit | Line | Data |
---|---|---|
c4f23d77 | 1 | # BeOS hints file |
c4f23d77 | 2 | |
46193409 JH |
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. | |
c4f23d77 AD |
5 | |
6 | prefix="/boot/home/config" | |
7 | ||
46193409 | 8 | #cpp="mwcc -e" |
c4f23d77 AD |
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 | ||
4804698d | 40 | # Sockets didn't use to be real sockets but BONE changes this. |
dbc1d986 | 41 | if [ ! -f /boot/develop/headers/be/bone/sys/socket.h ]; then |
4804698d JH |
42 | d_socket='undef' |
43 | d_gethbyaddr='undef' | |
44 | d_gethbyname='undef' | |
45 | d_getsbyname='undef' | |
dbc1d986 IW |
46 | |
47 | libs='-lnet' | |
4804698d | 48 | fi |
46193409 | 49 | |
e56d2c04 IW |
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 | |
dbc1d986 | 71 | |
46193409 JH |
72 | ld='gcc' |
73 | ||
c4f23d77 | 74 | export PATH="$PATH:$PWD/beos" |
5cf1d1f1 JH |
75 | |
76 | case "$ldlibpthname" in | |
77 | '') ldlibpthname=LIBRARY_PATH ;; | |
78 | esac | |
ddeecc1f | 79 | |
dbc1d986 | 80 | # the waitpid() wrapper (among other things) |
8c747ec4 JH |
81 | archobjs="beos.o" |
82 | test -f beos.c || cp beos/beos.c . |