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.
6 prefix="/boot/home/config"
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'
14 libc='/boot/beos/system/lib/libroot.so'
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.
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.
30 # Hopefully, Be's malloc knows better than perl's.
33 dont_use_nlink='define'
34 # no posix (aka hard) links for us!
37 # the array syserrlst[] is useless for the most part.
38 # large negative numbers really kind of suck in arrays.
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
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
56 ldflags="$ldflags -L/boot/home/config/lib"
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
74 export PATH="$PATH:$PWD/beos"
76 case "$ldlibpthname" in
77 '') ldlibpthname=LIBRARY_PATH ;;
80 # the waitpid() wrapper (among other things)
82 test -f beos.c || cp beos/beos.c .