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