1# Posix support has been removed from NextStep 2# 3useposix='undef' 4 5libpth='/lib /usr/lib /usr/local/lib' 6libswanted=' ' 7libc='/NextLibrary/Frameworks/System.framework/System' 8 9ldflags="$ldflags -dynamic -prebind" 10lddlflags="$lddlflags -dynamic -bundle -undefined suppress" 11ccflags="$ccflags -dynamic -fno-common -DUSE_NEXT_CTYPE -DUSE_PERL_SBRK" 12cccdlflags='none' 13ld='cc' 14#optimize='-g -O' 15 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 25# 26# archs='m68k i386' 27# 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 42 43# 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###################################################################### 60 61useshprlib='true' 62dlext='bundle' 63so='dylib' 64 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. 69# You can use Configure -Dprefix=/foo/bar to override this, or simply 70# remove the lines below. 71# 72case "$prefix" in 73'') prefix='/usr/local/OPENSTEP' ;; 74esac 75 76archname='OPENSTEP-Mach' 77 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 84d_strcoll='undef' 85i_dbm='define' 86i_utime='undef' 87groupstype='int' 88direntrytype='struct direct' 89 90usemymalloc='y' 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' 99 100case "$ldlibpthname" in 101'') ldlibpthname=DYLD_LIBRARY_PATH ;; 102esac 103