Commit | Line | Data |
---|---|---|
760ac839 LW |
1 | # Posix support has been removed from NextStep |
2 | # | |
25b26da3 | 3 | useposix='undef' |
4 | ||
38d592ac | 5 | libpth='/lib /usr/lib /usr/local/lib' |
25b26da3 | 6 | libswanted=' ' |
7 | libc='/NextLibrary/Frameworks/System.framework/System' | |
8 | ||
c22e42be AD |
9 | ldflags="$ldflags -dynamic -prebind" |
10 | lddlflags="$lddlflags -dynamic -bundle -undefined suppress" | |
11 | ccflags="$ccflags -dynamic -fno-common -DUSE_NEXT_CTYPE -DUSE_PERL_SBRK" | |
25b26da3 | 12 | cccdlflags='none' |
13 | ld='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 | # | |
33 | if [ `hostinfo | grep 'NeXT Mach.*:' | sed 's/.*RELEASE_//'` = M68K ] | |
34 | then | |
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' | |
39 | else | |
40 | archs=`/bin/lipo -info /usr/lib/libm.a | sed -n 's/^[^:]*:[^:]*: //p'` | |
41 | fi | |
bf5a71f0 | 42 | |
3c321fdc | 43 | # |
7bac28a0 | 44 | # leave the following part alone |
45 | # | |
46 | archcount=`echo $archs |wc -w` | |
47 | if [ $archcount -gt 1 ] | |
48 | then | |
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" | |
56 | fi | |
57 | ###################################################################### | |
58 | # END MAB support | |
59 | ###################################################################### | |
bf5a71f0 | 60 | |
61 | useshprlib='true' | |
25b26da3 | 62 | dlext='bundle' |
63 | so='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 | 72 | case "$prefix" in |
73 | '') prefix='/usr/local/OPENSTEP' ;; | |
74 | esac | |
75 | ||
25b26da3 | 76 | archname='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 | # | |
82 | d_sanemcmp='undef' | |
83 | ||
25b26da3 | 84 | d_strcoll='undef' |
85 | i_dbm='define' | |
86 | i_utime='undef' | |
87 | groupstype='int' | |
88 | direntrytype='struct direct' | |
89 | ||
760ac839 | 90 | usemymalloc='y' |
25b26da3 | 91 | clocktype='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>) | |
98 | ranlib='sleep 5; /bin/ranlib' | |
5cf1d1f1 JH |
99 | |
100 | case "$ldlibpthname" in | |
101 | '') ldlibpthname=DYLD_LIBRARY_PATH ;; | |
102 | esac |