summaryrefslogtreecommitdiff
path: root/hints/next_4.sh
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-08-23 01:09:02 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-08-23 01:09:02 +0000
commitbf5a71f00df2acecbeaf55869d887fde1b87d410 (patch)
tree9901149c3662222e6a157d84ce03428e327dd50b /hints/next_4.sh
parent40ea335528d29db69bd60cfcbac6f29171db0bac (diff)
downloadperl-bf5a71f00df2acecbeaf55869d887fde1b87d410.tar.gz
perl 5.003_03: hints/next_4.sh
Get rid of extraneous isnext_4 variable. Configure and Makefile.SH will use $osname and $osvers instead. Build up $mab dynamically based on available architectures. Absorb $mab into ccflags and ccdlflags. I hope that will cover everything. (Configure should automatically remove the -arch stuff from cppflags.) Configure now knows next4 needs to use a shared libperl.5.so. Allow users to use -Dprefix.
Diffstat (limited to 'hints/next_4.sh')
-rw-r--r--hints/next_4.sh30
1 files changed, 20 insertions, 10 deletions
diff --git a/hints/next_4.sh b/hints/next_4.sh
index 70438dd4a2..bd6a38734c 100644
--- a/hints/next_4.sh
+++ b/hints/next_4.sh
@@ -12,18 +12,10 @@
#
useposix='undef'
-altmake='gnumake'
libpth='/lib /usr/lib'
libswanted=' '
libc='/NextLibrary/Frameworks/System.framework/System'
-isnext_4='define'
-
-#
-# Change the line below if you do not want to build 'quad-fat'
-# binaries
-#
-mab='-arch m68k -arch i386 -arch sparc'
ldflags='-dynamic -prebind'
lddlflags='-dynamic -bundle -undefined suppress'
ccflags='-dynamic -fno-common -DUSE_NEXT_CTYPE -DUSE_PERL_SBRK -DHIDEMYMALLOC'
@@ -31,7 +23,21 @@ cccdlflags='none'
ld='cc'
#optimize='-g -O'
-d_shrplib='define'
+#
+# Change the lines below if you do not want to build 'quad-fat'
+# binaries
+#
+archs=`/bin/lipo -info /usr/lib/libm.a | sed 's/^[^:]*:[^:]*: //'`
+for d in $archs
+do
+ mab="$mab -arch $d"
+done
+
+ccflags="$ccflags $mab"
+ccdlflags="$mab"
+# Can we also set ld='libtool -xxx' ?
+
+useshprlib='true'
dlext='bundle'
so='dylib'
@@ -39,8 +45,12 @@ so='dylib'
# The default prefix would be '/usr/local'. But since many people are
# likely to have still 3.3 machines on their network, we do not want
# to overwrite possibly existing 3.3 binaries.
+# Allow a Configure -Dprefix=/foo/bar override.
#
-prefix='/usr/local/OPENSTEP'
+case "$prefix" in
+'') prefix='/usr/local/OPENSTEP' ;;
+esac
+
#archlib='/usr/lib/perl5'
#archlibexp='/usr/lib/perl5'
archname='OPENSTEP-Mach'