# Hints for the PowerUX operating system running on Concurrent (formerly # Harris) NightHawk machines. Written by Tom.Horsley@mail.ccur.com # # Note: The OS is fated to change names again to PowerMAX OS, but this # PowerUX file should still work (I wish marketing would make up their mind # about the name :-). # # This config uses dynamic linking and the Concurrent C compiler. It has # been tested on Power PC based 6000 series machines running PowerUX. # Internally at Concurrent, we use a source management tool which winds up # giving us read-only copies of source trees that are mostly symbolic links. # That upsets the perl build process when it tries to edit opcode.h and # embed.h or touch perly.c or perly.h, so turn those files into "real" files # when Configure runs. (If you already have "real" source files, this won't # do anything). # if [ -x /usr/local/mkreal ] then for i in '.' '..' do for j in embed.h opcode.h perly.h perly.c do if [ -h $i/$j ] then ( cd $i ; /usr/local/mkreal $j ; chmod 666 $j ) fi done done fi # We DO NOT want -lmalloc or -lPW, we DO need -lgen to follow -lnsl, so # fixup libswanted to reflect that desire (also need -lresolv if you want # DNS name lookup to work, which seems desirable :-). # libswanted=`echo ' '$libswanted' ' | sed -e 's/ malloc / /' -e 's/ PW / /' -e 's/ nsl / nsl gen resolv /'` # We DO NOT want /usr/ucblib in glibpth # glibpth=`echo ' '$glibpth' ' | sed -e 's@ /usr/ucblib @ @'` # Yes, csh exists, but doesn't work worth beans, if perl tries to use it, # the glob test fails, so just pretend it isn't there... # d_csh='undef' # Need to use Concurrent cc for most of these options to be meaningful (if you # want to get this to work with gcc, you're on your own :-). Passing # -Bexport to the linker when linking perl is important because it leaves # the interpreter internal symbols visible to the shared libs that will be # loaded on demand (and will try to reference those symbols). # cc='/bin/cc' cccdlflags='-Zpic' ccdlflags='-Zlink=dynamic -Wl,-usys_nerr -Wl,-Bexport' lddlflags='-Zlink=so' # Configure sometime finds what it believes to be ndbm header files on the # system and imagines that we have the NDBM library, but we really don't. # There is something there that once resembled ndbm, but it is purely # for internal use in some tool and has been hacked beyond recognition # (or even function :-) # i_ndbm='undef' # I have no clue what perl thinks it wants for, but if # you include it in a program in PowerMAX without first including # the code don't compile... # i_sysmode='undef' # There is a bug in memcmp (which I hope will be fixed soon) which sometimes # fails to provide the correct compare status (it is data dependant), so just # pretend there is no memcmp... # d_memcmp='undef' # Due to problems with dynamic linking (which I also hope will be fixed soon) # you can't build a libperl.so, the core has to be in the static part of the # perl executable. # useshrplib='false' # PowerMAX OS has support for a few different kinds of filesystems. The # newer "xfs" filesystem does *not* report a reasonable value in the # 'nlinks' field of stat() info for directories (in fact, it is always 1). # Since xfs is the only filesystem which supports partitions bigger than # 2gig and you can't hardly buy a disk that small anymore, xfs is coming in # to greater and greater use, so we pretty much have no choice but to # abandon all hope that number of links will mean anything. # dont_use_nlink=define # Configure comes up with the wrong type for these for some reason. The # pointers shouldn't have const in them. (And it looks like I have to # provide netdb_hlen_type as well becuase when I predefine the others it # comes up empty :-). # netdb_host_type='char *' netdb_name_type='char *' netdb_hlen_type='int' # Misc other flags that might be able to change, but I know these work right. # d_suidsafe='define' d_isascii='define' d_mymalloc='undef' usemymalloc='n' ssizetype='ssize_t' usevfork='false'