From: Jarkko Hietaniemi Date: Wed, 30 Aug 2000 00:57:22 +0000 (+0000) Subject: Introduce ccname to keep track of what compiler kind of we have. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e723fc210bf7b2ed9b8950c6c95284222cd1cfe2;p=p5sagit%2Fp5-mst-13.2.git Introduce ccname to keep track of what compiler kind of we have. p4raw-id: //depot/perl@6907 --- diff --git a/Configure b/Configure index 0133b6c..d4b6dba 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $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$$ < -# Based on input from lots of folks, especially -# Dean Roehrich - -# 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 -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 '') @@ -45,8 +11,7 @@ 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 @@ -70,8 +35,8 @@ case "$workshoplibpth_done" in esac EOCBU -case "$ccisworkshop" in -"$define") +case "$ccname" in +workshop) cat >try.c < int main() { return(0); } @@ -478,18 +443,19 @@ cat > UU/uselongdouble.cbu <<'EOCBU' # 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 <&4 < /dev/null <<'End_of_Solaris_Notes'