0N/A# The contents of this file are subject to the terms of the 0N/A# Common Development and Distribution License (the "License"). 0N/A# You may not use this file except in compliance with the License. 0N/A# See the License for the specific language governing permissions 0N/A# and limitations under the License. 0N/A# When distributing Covered Code, include this CDDL HEADER in each 0N/A# If applicable, add the following below this CDDL HEADER, with the 0N/A# fields enclosed by brackets "[]" replaced with your own identifying 0N/A# information: Portions Copyright [yyyy] [name of copyright owner] 0N/A# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. 0N/Aexport LD=
"${CXX} ${CXXFLAGS} ${LDFLAGS}" 0N/A while [ "$#" -gt 0 ] ; do 0N/A echo "$1: Invalid argument" 0N/A echo "BUILDTYPE: ${BUILDTYPE}" 0N/A echo "TOPLEVELDIR: ${TOPLEVELDIR}" 0N/A echo "BUILDDIR: ${BUILDDIR}" 0N/A if [ "x${BUILDTYPE}" = "x" ] || [ "x${TOPLEVELDIR}" = "x" ] ; then 0N/A echo "Usage: `basename $0` [ -m32 | -m64 ] --topdir=[ \$(top_srcdir) ]" 0N/A echo "Expected directory Solaris not found." 0N/A echo "Make sure this directory exists in the stdcxx toplevel." 0N/A if [ "x${BUILDTYPE}" = "x" ] ; then 0N/A echo "\$BUILDTYPE [ 8d | 8D ] is not set." 0N/A echo "BUILDTYPE: ${BUILDTYPE}." 0N/A echo "BUILDMODE: ${BUILDMODE}." 0N/A if [ "x${CC}" = "x" ] ; then 0N/A echo "\$CC is not set." 0N/A if [ "x${CXX}" = "x" ] ; then 0N/A echo "\$CXX is not set." 0N/A if [ "x${CFLAGS}" = "x" ] ; then 0N/A echo "\$CFLAGS is not set." 0N/A echo "CFLAGS: ${CFLAGS}." 0N/A if [ "x${CPPFLAGS}" = "x" ] ; then 0N/A echo "\$CPPFLAGS is not set." 0N/A echo "CPPFLAGS: ${CPPFLAGS}." 0N/A if [ "x${CXXFLAGS}" = "x" ] ; then 0N/A echo "\$CXXFLAGS is not set. Make sure you have set -library=no%Cstd." 0N/A echo "CXXFLAGS: ${CXXFLAGS}." 0N/A if [ "x${LDFLAGS}" = "x" ] ; then 0N/A echo "\$LDFLAGS is not set." 0N/A echo "LDFLAGS: ${LDFLAGS}." 0N/A if [ "x${MAKE}" = "x" ] ; then 0N/A echo "\$MAKE is not set. Please use GNU make to build stdcxx." 0N/A if [ "x${gnumake}" = "x" ] ; then 0N/A echo "\$MAKE is not GNU make. stdcxx requires GNU make." 0N/A echo "MAKE: ${MAKE}." echo "Configuring ..." `pwd` echo "MAKEFLAGS: ${MAKEFLAGS}" echo "MAKELEVEL: ${MAKELEVEL}" export LIBDIR="${TOPLEVELDIR}/lib" echo "${CXX} ${CPPFLAGS} ${CXXFLAGS} -c ${TOPLEVELDIR}/etc/config/src/${file}.cpp -o ${LIBDIR}/${file}.o" echo "${CXX} ${CXXFLAGS} ${LDFLAGS} -G -hlib${file}.so ${LIBDIR}/${file}.o -o ${LIBDIR}/lib${file}.so" export LD_OPTIONS="-L${TOPLEVELDIR}/lib -R${TOPLEVELDIR}/lib" export LD_OPTIONS="${LD_OPTIONS} -L${BUILDDIR}/include -R${BUILDDIR}/include" echo "Configuration finished." echo "Performing post-configuration updates ... " echo "Post-configuration FAILED!!!" if [ "x${unamep}" = "xsparc" ] ; then if [ "x${is64bit}" = "x" ] ; then if [ "x${is64bit}" = "x" ] ; then echo "Required configuration header file ${HEADER_FILE} not found!" echo "Using configuration header file ${HEADER_FILE}" echo "Removing configuration phase core files [expected]." find . -type f -name "core" -exec rm -f {} \; -print echo "Post-configuration succeeded." echo "Post-configuration FAILED!!!" echo "Initial configuration file 'config.h' has not been created." echo "Post-configuration FAILED!!!" echo "stdcxx has been configured. You can now type '$MAKE' to build."