This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[patch] -Wall
[perl5.git] / hints / next_4.sh
CommitLineData
760ac839
LW
1# Posix support has been removed from NextStep
2#
25b26da3 3useposix='undef'
4
38d592ac 5libpth='/lib /usr/lib /usr/local/lib'
25b26da3 6libswanted=' '
7libc='/NextLibrary/Frameworks/System.framework/System'
8
c22e42be
AD
9ldflags="$ldflags -dynamic -prebind"
10lddlflags="$lddlflags -dynamic -bundle -undefined suppress"
11ccflags="$ccflags -dynamic -fno-common -DUSE_NEXT_CTYPE -DUSE_PERL_SBRK"
25b26da3 12cccdlflags='none'
13ld='cc'
760ac839 14#optimize='-g -O'
25b26da3 15
7bac28a0 16######################################################################
17# MAB support
18######################################################################
19# By default we will build for all architectures your development
20# environment supports. If you only want to build for the platform
21# you are on, simply comment or remove the line below.
22#
23# If you want to build for specific architectures, change the line
24# below to something like
bf5a71f0 25#
77172323 26# archs='m68k i386'
bf5a71f0 27#
38d592ac
GW
28
29# On m68k machines, toke.c cannot be compiled at all for i386 and it can
30# only be compiled for m68k itself without optimization (this is under
31# OPENSTEP 4.2).
32#
33if [ `hostinfo | grep 'NeXT Mach.*:' | sed 's/.*RELEASE_//'` = M68K ]
34then
35 echo "Cross compilation is impossible on m68k hardware under OS 4"
36 echo "Forcing architecture to m68k only"
37 toke_cflags='optimize=""'
38 archs='m68k'
39else
40 archs=`/bin/lipo -info /usr/lib/libm.a | sed -n 's/^[^:]*:[^:]*: //p'`
41fi
bf5a71f0 42
3c321fdc 43#
7bac28a0 44# leave the following part alone
45#
46archcount=`echo $archs |wc -w`
47if [ $archcount -gt 1 ]
48then
49 for d in $archs
50 do
51 mabflags="$mabflags -arch $d"
52 done
53 ccflags="$ccflags $mabflags"
54 ldflags="$ldflags $mabflags"
55 lddlflags="$lddlflags $mabflags"
56fi
57######################################################################
58# END MAB support
59######################################################################
bf5a71f0 60
61useshprlib='true'
25b26da3 62dlext='bundle'
63so='dylib'
64
760ac839
LW
65#
66# The default prefix would be '/usr/local'. But since many people are
67# likely to have still 3.3 machines on their network, we do not want
68# to overwrite possibly existing 3.3 binaries.
7bac28a0 69# You can use Configure -Dprefix=/foo/bar to override this, or simply
70# remove the lines below.
760ac839 71#
bf5a71f0 72case "$prefix" in
73'') prefix='/usr/local/OPENSTEP' ;;
74esac
75
25b26da3 76archname='OPENSTEP-Mach'
77
7bac28a0 78#
79# At least on m68k there are situations when memcmp doesn't behave
80# as expected. So we'll use perl's memcmp.
81#
82d_sanemcmp='undef'
83
25b26da3 84d_strcoll='undef'
85i_dbm='define'
86i_utime='undef'
87groupstype='int'
88direntrytype='struct direct'
89
760ac839 90usemymalloc='y'
25b26da3 91clocktype='int'
92
93#
94# On some NeXT machines, the timestamp put by ranlib is not correct, and
95# this may cause useless recompiles. Fix that by adding a sleep before
96# running ranlib. The '5' is an empirical number that's "long enough."
97# (Thanks to Andreas Koenig <k@franz.ww.tu-berlin.de>)
98ranlib='sleep 5; /bin/ranlib'
5cf1d1f1
JH
99
100case "$ldlibpthname" in
101'') ldlibpthname=DYLD_LIBRARY_PATH ;;
102esac