# hints/dcosx.sh # Last modified: Thu Jan 16 11:38:12 EST 1996 # Stephen Zander # hints for DC/OSx (Pyramid) & SINIX (Seimens: dc/osx rebadged) # Based on the hints/solaris_2.sh file # See man vfork. usevfork=false d_suidsafe=define # Avoid all libraries in /usr/ucblib. set `echo $glibpth | sed -e 's@/usr/ucblib@@'` glibpth="$*" # Remove bad libraries. # -lucb contains incompatible routines. set `echo " $libswanted " | sed -e 's@ ucb @ @'` libswanted="$*" # Here's another draft of the perl5/solaris/gcc sanity-checker. case $PATH in */usr/ucb*:/usr/bin:*|*/usr/ucb*:/usr/bin) cat <&1 > /dev/null case $? in 0) ;; *) cat </dev/null 2>&1 case $? in 0) cat < make.vers 2>&1 if grep GNU make.vers > /dev/null 2>&1; then tmp=`/usr/bin/ksh -c "whence make"` case "`/usr/bin/ls -l $tmp`" in ??????s*) cat <&1`" in *gcc*) # # Using gcc. # #echo Using gcc # Get gcc to share its secrets. echo 'main() { return 0; }' > try.c verbose=`${cc:-cc} -v -o try try.c 2>&1` rm -f try try.c tmp=`echo "$verbose" | grep '^Reading' | awk '{print $NF}' | sed 's/specs$/include/'` # Determine if the fixed-includes look like they'll work. # Doesn't work anymore for gcc-2.7.2. # See if as(1) is GNU as(1). GNU as(1) won't work for this job. case $verbose in */usr/ccs/bin/as*) ;; *) cat <&1` in *GNU*) cat <&1` in *GNU*) cat <