# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Tue Aug 29 23:38:50 EET DST 2000 [metaconfig 3.0 PL70]
+# Generated on Wed Aug 30 03:53:15 EET DST 2000 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >/tmp/c1$$ <<EOF
fflushall=''
fpossize=''
fpostype=''
+ccname=''
gccosandvers=''
gccversion=''
gidformat=''
fi
fi
case "$ans" in
- [yY]*) cc=gcc; ccflags=''; despair=no ;;
+ [yY]*) cc=gcc; ccname=gcc; ccflags=''; despair=no ;;
esac
fi
fi
case "$gccversion" in
'') echo "You are not using GNU cc." ;;
*) echo "You are using GNU cc $gccversion."
+ ccname=gcc
;;
esac
else
esac
;;
esac
-
-
-
+case "$ccname" in
+'') ccname="$cc" ;;
+esac
: see how we invoke the C preprocessor
echo " "
ccdlflags='$ccdlflags'
ccflags='$ccflags'
ccflags_uselargefiles='$ccflags_uselargefiles'
+ccname='$ccname'
ccsymbols='$ccsymbols'
cf_by='$cf_by'
cf_email='$cf_email'
-# hints/solaris_2.sh
-# Last modified: Tue Apr 13 13:12:49 EDT 1999
-# Andy Dougherty <doughera@lafayette.edu>
-# Based on input from lots of folks, especially
-# Dean Roehrich <roehrich@ironwood-fddi.cray.com>
-
-# If perl fails tests that involve dynamic loading of extensions, and
-# you are using gcc, be sure that you are NOT using GNU as and ld. One
-# way to do that is to invoke Configure with
-#
-# sh Configure -Dcc='gcc -B/usr/ccs/bin/'
-#
-# (Note that the trailing slash is *required*.)
-# gcc will occasionally emit warnings about "unused prefix", but
-# these ought to be harmless. See below for more details.
-
-# 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.
-# -lld doesn't do anything useful.
-# -lmalloc can cause a problem with GNU CC & Solaris. Specifically,
-# libmalloc.a may allocate memory that is only 4 byte aligned, but
-# GNU CC on the Sparc assumes that doubles are 8 byte aligned.
-# Thanks to Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>
-set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @'`
-libswanted="$*"
-
# Look for architecture name. We want to suggest a useful default.
case "$archname" in
'')
;;
esac
-test -z "`${cc:-cc} -V 2>&1|grep -i workshop`" || ccisworkshop="$define"
-test -z "`${cc:-cc} -v 2>&1|grep -i gcc`" || ccisgcc="$define"
+test -z "`${cc:-cc} -V 2>&1|grep -i workshop`" || ccname=workshop
cat >UU/workshoplibpth.cbu<<'EOCBU'
case "$workshoplibpth_done" in
esac
EOCBU
-case "$ccisworkshop" in
-"$define")
+case "$ccname" in
+workshop)
cat >try.c <<EOF
#include <sunmath.h>
int main() { return(0); }
# after it has prompted the user for whether to use long doubles.
case "$uselongdouble-$uselongdouble_done" in
"$define-"|true-|[yY]*-)
- case "$ccisworkshop" in
- '') cat >&4 <<EOM
+ case "$ccname" in
+ workshop)
+ libswanted="$libswanted sunmath"
+ loclibpth="$loclibpth /opt/SUNWspro/lib"
+ ;;
+ *) cat >&4 <<EOM
-I do not see the Sun Workshop compiler; therefore I do not see
+The Sun Workshop compiler is not being used; therefore I do not see
the libsunmath; therefore I do not know how to do long doubles, sorry.
I'm disabling the use of long doubles.
EOM
uselongdouble="$undef"
;;
- *) libswanted="$libswanted sunmath"
- loclibpth="$loclibpth /opt/SUNWspro/lib"
- ;;
esac
uselongdouble_done=yes
;;
esac
rm -f try.c try.o try
-# keep that leading tab
- ccisworkshop=''
- ccisgcc=''
# This is just a trick to include some useful notes.
cat > /dev/null <<'End_of_Solaris_Notes'