diff options
Diffstat (limited to 'gnu/usr.bin/perl/hints')
-rw-r--r-- | gnu/usr.bin/perl/hints/README.hints | 2 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/bsdos.sh | 2 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/catamount.sh | 4 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/darwin.sh | 13 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/freebsd.sh | 4 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/hpux.sh | 8 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/linux-android.sh | 72 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/linux.sh | 5 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/netbsd.sh | 35 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/openbsd.sh | 52 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/os390.sh | 25 | ||||
-rw-r--r-- | gnu/usr.bin/perl/hints/solaris_2.sh | 5 |
12 files changed, 138 insertions, 89 deletions
diff --git a/gnu/usr.bin/perl/hints/README.hints b/gnu/usr.bin/perl/hints/README.hints index 4745c7cb8e8..e8ff5eee44b 100644 --- a/gnu/usr.bin/perl/hints/README.hints +++ b/gnu/usr.bin/perl/hints/README.hints @@ -9,7 +9,7 @@ can't or doesn't guess properly. Most of these hint files have been tested with at least some version of perl5, but some are still left over from perl4. -Please send any problems or suggested changes to +Please report any problems or suggested changes at L<https://github.com/Perl/perl5/issues>. =head1 Hint file naming convention. diff --git a/gnu/usr.bin/perl/hints/bsdos.sh b/gnu/usr.bin/perl/hints/bsdos.sh index 95950b787eb..a1ba113f7a1 100644 --- a/gnu/usr.bin/perl/hints/bsdos.sh +++ b/gnu/usr.bin/perl/hints/bsdos.sh @@ -125,7 +125,7 @@ $define|true|[yY]*) *) cat <<EOM >&4 I did not know that BSD/OS $osvers supports POSIX threads. -Feel free to tell https://github.com/Perl/perl5/issues otherwise. +Feel free report that at https://github.com/Perl/perl5/issues otherwise. EOM exit 1 ;; diff --git a/gnu/usr.bin/perl/hints/catamount.sh b/gnu/usr.bin/perl/hints/catamount.sh index 976e6ba9058..fd9538fdf2b 100644 --- a/gnu/usr.bin/perl/hints/catamount.sh +++ b/gnu/usr.bin/perl/hints/catamount.sh @@ -31,11 +31,11 @@ # mkdir -p /opt/perl-catamount # mkdir -p /opt/perl-catamount/include # mkdir -p /opt/perl-catamount/lib -# mkdir -p /opt/perl-catamount/lib/perl5/5.30.3 +# mkdir -p /opt/perl-catamount/lib/perl5/5.32.1 # mkdir -p /opt/perl-catamount/bin # cp *.h /opt/perl-catamount/include # cp libperl.a /opt/perl-catamount/lib -# cp -pr lib/* /opt/perl-catamount/lib/perl5/5.30.3 +# cp -pr lib/* /opt/perl-catamount/lib/perl5/5.32.1 # cp miniperl perl run.sh cc.sh /opt/perl-catamount/lib # # With the headers and the libperl.a you can embed Perl to your Catamount diff --git a/gnu/usr.bin/perl/hints/darwin.sh b/gnu/usr.bin/perl/hints/darwin.sh index 0a91bc083c0..fdfbdd4a3b9 100644 --- a/gnu/usr.bin/perl/hints/darwin.sh +++ b/gnu/usr.bin/perl/hints/darwin.sh @@ -301,7 +301,7 @@ case "$osvers" in # Note: osvers is the kernel version, not the 10.x # We now use MACOSX_DEPLOYMENT_TARGET, if set, as an override by # capturing its value and adding it to the flags. case "$MACOSX_DEPLOYMENT_TARGET" in - 10.*) + [1-9][0-9].*) add_macosx_version_min ccflags $MACOSX_DEPLOYMENT_TARGET add_macosx_version_min ldflags $MACOSX_DEPLOYMENT_TARGET ;; @@ -313,7 +313,7 @@ case "$osvers" in # Note: osvers is the kernel version, not the 10.x *** Unexpected MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET *** -*** Please either set it to 10.something, or to empty. +*** Please either set it to a valid macOS version number (e.g., 10.15) or to empty. EOM exit 1 @@ -327,7 +327,7 @@ EOM # "ProductVersion: 10.11" "10.11" prodvers=`sw_vers|awk '/^ProductVersion:/{print $2}'|awk -F. '{print $1"."$2}'` case "$prodvers" in - 10.*) + [1-9][0-9].*) add_macosx_version_min ccflags $prodvers add_macosx_version_min ldflags $prodvers ;; @@ -342,11 +342,10 @@ EOM exit 1 esac - # The X in 10.X - prodvers_minor=$(echo $prodvers|awk -F. '{print $2}') + darwin_major=$(echo $osvers|awk -F. '{print $1}') - # macOS (10.12) deprecated syscall(). - if [ "$prodvers_minor" -ge 12 ]; then + # macOS 10.12 (darwin 16.0.0) deprecated syscall(). + if [ "$darwin_major" -ge 16 ]; then d_syscall='undef' # If deploying to pre-10.12, suppress Time::HiRes's detection of the system clock_gettime() case "$MACOSX_DEPLOYMENT_TARGET" in diff --git a/gnu/usr.bin/perl/hints/freebsd.sh b/gnu/usr.bin/perl/hints/freebsd.sh index 791290c4745..72db521ef75 100644 --- a/gnu/usr.bin/perl/hints/freebsd.sh +++ b/gnu/usr.bin/perl/hints/freebsd.sh @@ -207,7 +207,7 @@ $define|true|[yY]*) 0.*|1.*|2.0*|2.1*) cat <<EOM >&4 I did not know that FreeBSD $osvers supports POSIX threads. -Feel free to tell https://github.com/Perl/perl5/issues otherwise. +Feel free to report that at https://github.com/Perl/perl5/issues otherwise. EOM exit 1 ;; @@ -335,7 +335,7 @@ then d_uselocale='undef' fi -# https://rt.perl.org/Ticket/Display.html?id=131337 +# https://github.com/Perl/perl5/issues/15984 # Reported in 11.0-CURRENT with g++-4.8.5: # If using g++, the Configure scan for dlopen() fails. # Easier for now to just to forcibly set it. diff --git a/gnu/usr.bin/perl/hints/hpux.sh b/gnu/usr.bin/perl/hints/hpux.sh index d224ceef1d1..da5f81dfe12 100644 --- a/gnu/usr.bin/perl/hints/hpux.sh +++ b/gnu/usr.bin/perl/hints/hpux.sh @@ -160,7 +160,7 @@ case `$cc -v 2>&1`"" in ccversion=`what $cc_found | awk '/Compiler/{print $2}/Itanium/{print $6,$7}/for Integrity/{print $6,$7}'` case "$ccflags" in "-Ae "*) ;; - *) ccflags="-Ae $cc_cppflags" + *) ccflags="-Ae -Wp,-H150000 $cc_cppflags" # +vnocompatwarnings not known in 10.10 and older if [ $xxOsRev -ge 1020 ]; then ccflags="$ccflags -Wl,+vnocompatwarnings" @@ -486,7 +486,7 @@ case "$ccisgcc" in # > cc --version # cc: HP C/aC++ B3910B A.06.15 [May 16 2007] # Has optimizing problems with +O2 for blead (5.17.4), - # see https://rt.perl.org:443/rt3/Ticket/Display.html?id=103668. + # see https://github.com/Perl/perl5/issues/11748. # # +O2 +Onolimit +Onoprocelim +Ostore_ordering \ # +Onolibcalls=strcmp @@ -826,3 +826,7 @@ esac # needed, but for now simply undefine them d_mbrlen='undef' d_mbrtowc='undef' +# And this one is not know on 11.11 (with HP C-ANSI-C) +if [ "$xxOsRevMajor" -lt 11 ] || [ "$xxOsRevMinor" -lt 12 ]; then +d_wcrtomb='undef' +fi diff --git a/gnu/usr.bin/perl/hints/linux-android.sh b/gnu/usr.bin/perl/hints/linux-android.sh index 6a59cb726ef..cd228766628 100644 --- a/gnu/usr.bin/perl/hints/linux-android.sh +++ b/gnu/usr.bin/perl/hints/linux-android.sh @@ -28,40 +28,52 @@ define) ;; esac # Make sure that we look for libm -libswanted="$libswanted m" +libswanted="$libswanted m log" -# Down with locales! +# Older Androids lack locale support and may need the following undefs +# uncommenting. This isn't necessary from at least Android 8.1 (Oreo) # https://github.com/android/platform_bionic/blob/master/libc/CAVEATS -d_locconv='undef' -d_setlocale='undef' -d_setlocale_r='undef' -d_lc_monetary_2008='undef' -i_locale='undef' +#d_locconv='undef' +#d_setlocale='undef' +#d_setlocale_r='undef' +#d_lc_monetary_2008='undef' +#i_locale='undef' +#d_newlocale='undef' # https://code.google.com/p/android-source-browsing/source/browse/libc/netbsd/net/getservent_r.c?repo=platform--bionic&r=ca6fe7bebe3cc6ed7e2db5a3ede2de0fcddf411d#95 d_getservent_r='undef' -# Bionic defines several stubs that just warn and return NULL +# Bionic defines several stubs that warn (in older releases) and return NULL # https://gitorious.org/0xdroid/bionic/blobs/70b2ef0ec89a9c9d4c2d4bcab728a0e72bafb18e/libc/bionic/stubs.c # https://android.googlesource.com/platform/bionic/+/master/libc/bionic/stubs.cpp -# If they warn with 'FIX' or 'Android', assume they are the stubs -# we want to avoid. +# These tests originally looked for 'FIX' or 'Android' warnings, as they +# indicated stubs to avoid. At some point, Android stopped emitting +# those warnings; the tests were adapted to check function return values +# and hopefully now detect stubs on both older and newer Androids. # These are all stubs as well, but the core doesn't use them: # getusershell setusershell endusershell # This script UU/archname.cbu will get 'called-back' by Configure. $cat > UU/archname.cbu <<'EOCBU' -# egrep pattern to detect a stub warning on Android. +# original egrep pattern to detect a stub warning on Android. # Right now we're checking for: # Android 2.x: FIX ME! implement FUNC # Android 4.x: FUNC is not implemented on Android +# Android 8.x: <no warnings; tests now printf a compatible warning> android_stub='FIX|Android' $cat > try.c << 'EOM' #include <netdb.h> -int main() { (void) getnetbyname("foo"); return(0); } +#include <stdio.h> +int main() { + struct netent* test = getnetbyname("loopback"); + if (test == NULL) { + printf("getnetbyname is still a stub function on Android"); + } + return(0); +} EOM $cc $ccflags try.c -o try android_warn=`$run ./try 2>&1 | $egrep "$android_stub"` @@ -71,7 +83,14 @@ fi $cat > try.c << 'EOM' #include <netdb.h> -int main() { (void) getnetbyaddr((uint32_t)1, AF_INET); return(0); } +#include <stdio.h> +int main() { + struct netent* test = getnetbyaddr(127, AF_INET); + if (test == NULL) { + printf("getnetbyaddr is still a stub function on Android"); + } + return(0); +} EOM $cc $ccflags try.c -o try android_warn=`$run ./try 2>&1 | $egrep "$android_stub"` @@ -93,7 +112,14 @@ fi $cat > try.c << 'EOM' #include <netdb.h> -int main() { (void) getprotobyname("foo"); return(0); } +#include <stdio.h> +int main() { + struct protoent* test = getprotobyname("tcp"); + if (test == NULL) { + printf("getprotobyname is still a stub function on Android"); + } + return(0); +} EOM $cc $ccflags try.c -o try android_warn=`$run ./try 2>&1 | $egrep "$android_stub"` @@ -103,7 +129,14 @@ fi $cat > try.c << 'EOM' #include <netdb.h> -int main() { (void) getprotobynumber(1); return(0); } +#include <stdio.h> +int main() { + struct protoent* test = getprotobynumber(1); + if (test == NULL) { + printf("getprotobynumber is still a stub function on Android"); + } + return(0); +} EOM $cc $ccflags try.c -o try android_warn=`$run ./try 2>&1 | $egrep "$android_stub"` @@ -124,7 +157,14 @@ fi $cat > try.c << 'EOM' #include <unistd.h> -int main() { (void) ttyname(STDIN_FILENO); return(0); } +#include <stdio.h> +int main() { + char *tty = ttyname(STDIN_FILENO); + if (tty == NULL) { + printf("ttyname is still a stub function on Android"); + } + return(0); +} EOM $cc $ccflags try.c -o try android_warn=`$run ./try 2>&1 | $egrep "$android_stub"` diff --git a/gnu/usr.bin/perl/hints/linux.sh b/gnu/usr.bin/perl/hints/linux.sh index a985a8ee1b3..c749f0f64a8 100644 --- a/gnu/usr.bin/perl/hints/linux.sh +++ b/gnu/usr.bin/perl/hints/linux.sh @@ -85,7 +85,7 @@ uname_minus_m="${uname_minus_m:-"$targetarch"}" # Check if we're about to use Intel's ICC compiler case "`${cc:-cc} -V 2>&1`" in -*"Intel(R) C++ Compiler"*|*"Intel(R) C Compiler"*) +*"Intel(R) C"*" Compiler"*) # record the version, formats: # icc (ICC) 10.1 20080801 # icpc (ICC) 10.1 20080801 @@ -165,6 +165,9 @@ esac # plibpth to bypass this check. if [ -x /usr/bin/gcc ] ; then gcc=/usr/bin/gcc +# clang also provides -print-search-dirs +elif ${cc:-cc} --version 2>/dev/null | grep -q '^clang ' ; then + gcc=${cc:-cc} else gcc=gcc fi diff --git a/gnu/usr.bin/perl/hints/netbsd.sh b/gnu/usr.bin/perl/hints/netbsd.sh index 445680d8bad..5c9f5bcbd50 100644 --- a/gnu/usr.bin/perl/hints/netbsd.sh +++ b/gnu/usr.bin/perl/hints/netbsd.sh @@ -265,3 +265,38 @@ case "$osver" in d_fchmodat="$undef" ;; esac + +cat >UU/uselongdouble.cbu <<'EOCBU' +# This script UU/uselongdouble.cbu will get 'called-back' by Configure +# after it has prompted the user for whether to use long doubles. +# +# See https://github.com/Perl/perl5/issues/17853 and https://github.com/Perl/perl5/issues/17854 +case "$uselongdouble" in +$define|true|[yY]*) + cat >try.c <<\TRY +#include <stdio.h> +#include <math.h> + +long double x = 1.0; + +int main(int argc, char **argv) { + double e1 = exp(1.0); + /* as of NetBSD 9.0 expl() just calls exp(), + Fail here if they're equal. */ + return expl(x) == (long double)e1; +} +TRY + if $cc -o try $ccflags $ldflags try.c -lm && $run ./try; then + echo "NetBSD seem to have fixed expl (and hopefully more)" >&4 + else + cat <<EOM >&4 + +Warning! NetBSD's long double support is limited enough that it will cause +test failures, and possibly build failures, and this doesn't appear to have +been fixed in the release you're running. + +EOM + fi +;; +esac +EOCBU diff --git a/gnu/usr.bin/perl/hints/openbsd.sh b/gnu/usr.bin/perl/hints/openbsd.sh index 5f96a4d5a7d..66db8e2ce1e 100644 --- a/gnu/usr.bin/perl/hints/openbsd.sh +++ b/gnu/usr.bin/perl/hints/openbsd.sh @@ -31,14 +31,6 @@ case "$osvers" in d_setruid=$undef esac -# OpenBSD 5.5 on has 64 bit time_t -case "$osvers" in -[0-4].*|5.[0-4]) ;; -*) - cppflags="$cppflags -DBIG_TIME" - ;; -esac - # # Not all platforms support dynamic loading... # For the case of "$openbsd_distribution", the hints file @@ -55,11 +47,7 @@ alpha-2.[0-8]|mips-2.[0-8]|powerpc-2.[0-7]|m88k-[2-4].*|m88k-5.[0-2]|hppa-3.[0-5 test -z "$usedl" && usedl=$define # We use -fPIC here because -fpic is *NOT* enough for some of the # extensions like Tk on some OpenBSD platforms (ie: sparc) - PICFLAG=-fPIC - if [ -e /usr/share/mk/bsd.own.mk ]; then - PICFLAG=`make -f /usr/share/mk/bsd.own.mk -V PICFLAG` - fi - cccdlflags="-DPIC ${PICFLAG} $cccdlflags" + cccdlflags="-DPIC -fPIC $cccdlflags" case "$osvers" in [01].*|2.[0-7]|2.[0-7].*) lddlflags="-Bshareable $lddlflags" @@ -70,7 +58,7 @@ alpha-2.[0-8]|mips-2.[0-8]|powerpc-2.[0-7]|m88k-[2-4].*|m88k-5.[0-2]|hppa-3.[0-5 ;; *) # from 3.1 onwards ld=${cc:-cc} - lddlflags="-shared ${PICFLAG} $lddlflags" + lddlflags="-shared -fPIC $lddlflags" libswanted=`echo $libswanted | sed 's/ dl / /'` ;; esac @@ -96,9 +84,6 @@ esac # around for old NetBSD binaries. libswanted=`echo $libswanted | sed 's/ crypt / /'` -# OpenBSD hasn't ever needed linking to libutil -libswanted=`echo $libswanted | sed 's/ util / /'` - # Configure can't figure this out non-interactively d_suidsafe=$define @@ -116,25 +101,6 @@ m88k-3.4) ;; esac -# -# Unaligned access on alpha with -ftree-ter -# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59679 -# More details -# https://rt.perl.org/Public/Bug/Display.html?id=120888 -# -case "${ARCH}-${osvers}" in - alpha-*) - ccflags="-fno-tree-ter $ccflags" - ;; -esac - -# Special per-arch specific ccflags -case "${ARCH}-${osvers}" in - vax-*) - ccflags="-DUSE_PERL_ATOF=0 $ccflags" - ;; -esac - # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. cat > UU/usethreads.cbu <<'EOCBU' @@ -156,9 +122,6 @@ $define|true|[yY]*) # Broken up to OpenBSD 3.6, fixed in OpenBSD 3.7 d_getservbyname_r=$undef ;; esac - ;; -*) - libswanted=`echo $libswanted | sed 's/ pthread / /'` esac EOCBU @@ -177,12 +140,12 @@ case "$openbsd_distribution" in siteprefix='/usr/local' siteprefixexp='/usr/local' # Ports installs non-std libs in /usr/local/lib so look there too - locincpth='' - loclibpth='' + locincpth='/usr/local/include' + loclibpth='/usr/local/lib' # Link perl with shared libperl - if [ "$usedl" = "$define" -a -r $src/shlib_version ]; then + if [ "$usedl" = "$define" -a -r shlib_version ]; then useshrplib=true - libperl=`. $src/shlib_version; echo libperl.so.${major}.${minor}` + libperl=`. ./shlib_version; echo libperl.so.${major}.${minor}` fi ;; esac @@ -192,7 +155,4 @@ esac # which is being fixed. In the meantime, forbid POSIX 2008 locales d_newlocale="$undef" -# OpenBSD's locale support is not that complete yet -ccflags="-DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE $ccflags" - # end diff --git a/gnu/usr.bin/perl/hints/os390.sh b/gnu/usr.bin/perl/hints/os390.sh index 8fe573e48f2..56703033ae4 100644 --- a/gnu/usr.bin/perl/hints/os390.sh +++ b/gnu/usr.bin/perl/hints/os390.sh @@ -32,21 +32,24 @@ esac # YYDYNAMIC ensures that the OS/390 yacc generated parser is reentrant. # -DEBCDIC should come from Configure and need not be mentioned here. # Prepend your favorites with Configure -Dccflags=your_favorites + def_os390_cflags='-qlanglvl=extended:extc89:extc99 -qlongname -qxplink -qdll -qfloat=ieee -qexportall -qhaltonmsg=3296:4108' + def_os390_cflags="$def_os390_cflags -Wc,XPLINK,dll,EXPORTALL -Wl,XPLINK,dll" + def_os390_defs='-DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC -D_POSIX_SOURCE=1' case "$ccflags" in -'') ccflags='-qlanglvl=extended:extc89:extc99 -qlongname -qxplink -qdll -qfloat=ieee -qhaltonmsg=3296:4108 -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC -D_POSIX_SOURCE=1' ;; -*) ccflags='$ccflags -qlanglvl=extended:extc89:extc99 -qlongname -qxplink -qdll -qfloat=ieee -qhaltonmsg=3296:4108 -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC -D_POSIX_SOURCE=1' ;; +'') ccflags="$def_os390_cflags $def_os390_defs" ;; +*) ccflags="$ccflags $def_os390_cflags $def_os390_defs" ;; esac # Turning on optimization breaks perl. # You can override this with Configure -Doptimize='-O' or somesuch. case "$optimize" in -'') optimize='none' ;; +'') optimize=' ' ;; esac # To link via definition side decks we need the dll option # You can override this with Configure -Ucccdlflags or somesuch. case "$cccdlflags" in -'') cccdlflags='-qxplink -qdll' ;; +'') cccdlflags='-qxplink -qdll -qexportall -Wc,XPLINK,dll,EXPORTALL -Wl,XPLINK,dll' ;; esac case "$so" in @@ -72,7 +75,11 @@ esac # information at the end of the executable (=> smaller binaries). # Override this option with -Dldflags='whatever else you wanted'. case "$ldflags" in -'') ldflags='-qxplink -qdll' ;; +'') ldflags='-qxplink -qdll -Wl,XPLINK,dll' ;; +esac +case "$optimize" in +*-g*) ;; +*) ldflags="$ldflags -Wl,EDIT=NO" esac # In order to build with dynamic be sure to specify: @@ -111,11 +118,11 @@ define) esac libperl="libperl.$so" ccflags="$ccflags -D_SHR_ENVIRON -DPERL_EXTERNAL_GLOB -qexportall -qdll -qxplink" - cccdlflags='-c -qexportall -qxplink -qdll' + cccdlflags='-c -qexportall -qxplink -qdll -Wc,XPLINK,dll,EXPORTALL -Wl,XPLINK,dll' # The following will need to be modified for the installed libperl.x. # The modification to Config.pm is done by the installperl script after the build and test. - ccdlflags="-qxplink -qdll `pwd`/libperl.x" - lddlflags="-qxplink -qdll `pwd`/libperl.x" + ccdlflags="-qxplink -qdll -Wl,XPLINK,dll `pwd`/libperl.x" + lddlflags="-qxplink -qdll -Wl,XPLINK,dll `pwd`/libperl.x" ;; esac # even on static builds using LIBPATH should be OK. @@ -224,7 +231,7 @@ d_gethostbyaddr_r='undef' d_gethostbyname_r='undef' d_gethostent_r='undef' -# The z/OS C compiler compiler supports the attribute keyword, but in a +# The z/OS C compiler supports the attribute keyword, but in a # limited manner. # # Ideally, Configure's tests should test the attributes as they are expected diff --git a/gnu/usr.bin/perl/hints/solaris_2.sh b/gnu/usr.bin/perl/hints/solaris_2.sh index ba368e6f3bb..e50d9d83237 100644 --- a/gnu/usr.bin/perl/hints/solaris_2.sh +++ b/gnu/usr.bin/perl/hints/solaris_2.sh @@ -90,7 +90,8 @@ END ` case "$cc" in -'') for i in `ls -r /opt/sol*studio*/bin/cc` /opt/SUNWspro/bin/cc +'') for i in `ls -r /opt/*studio*/bin/cc` /opt/SUNWspro/bin/cc \ + `which gcc` do if test -f "$i"; then cc=$i @@ -585,7 +586,7 @@ EOM fi fi case "${cc:-cc} -v 2>/dev/null" in - *gcc*) + *gcc*|*g++*) echo 'int main() { return 0; }' > try.c case "`${cc:-cc} $ccflags -mcpu=v9 -m64 -S try.c 2>&1 | grep 'm64 is not supported by this configuration'`" in *"m64 is not supported"*) |