`
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
do
if test -f "$i"; then
cc=$i
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"*)
;;
esac
+# Oracle/Sun builds their Perl shared since 5.6.1, and they also
+# strongly recommend using shared libraries in general.
+#
+# Furthermore, OpenIndiana seems to effectively require building perl
+# shared, or otherwise perl scripts won't even find the Perl library.
+useshrplib='true'