ff66d28f7c
2003-08-04 Phil Edwards <pme@gcc.gnu.org> Convert to new autotools. * acconfig.h: Update with correct names. * configure.host (ATOMICITYH): Rename to atomicity_include_dir. (qnx6.[12]*): 'q' comes before 's', not after 'w'. * configure.in: Update. Split hardcoded cross-configury settings out to... * crossconfig.m4: ...here. New file. Contents untouched. * acinclude.m4: Reorganize and rewrite as needed. Split large chunks out to... * linkage.m4: ...here. New file. Math and stdlib linkage tests. Contents untouched. * scripts/testsuite_flags.in: Update. * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other variables (already generated by automake). * include/Makefile.am: Ditto. * libmath/Makefile.am: Ditto. * libsupc++/Makefile.am: Ditto. * po/Makefile.am: Ditto. * src/Makefile.am: Ditto. * aclocal.m4: Regenerate using new versions. * config.h.in: Ditto. * configure: Ditto. * Makefile.in: Ditto. * include/Makefile.in: Ditto. * libmath/Makefile.in: Ditto. * libsupc++/Makefile.in: Ditto. * po/Makefile.in: Ditto. * src/Makefile.in: Ditto. * testsuite/Makefile.in: Ditto. From-SVN: r70167
61 lines
1.4 KiB
Bash
Executable File
61 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# This script computes the various flags needed to run GNU C++ testsuites
|
|
# (compiler specific as well as library specific).
|
|
#
|
|
# Written by Benjamin Kosnik <bkoz@redhat.com>
|
|
# Gabriel Dos Reis <gdr@codesourcery.com>
|
|
#
|
|
|
|
# Print a message saying how this script is intended to be invoked
|
|
print_usage() {
|
|
cat <<EOF
|
|
Usage:
|
|
testsuite_flags --install-includes
|
|
--build-includes
|
|
--build-cxx
|
|
--install-cxx
|
|
--cxxflags
|
|
EOF
|
|
}
|
|
|
|
# Establish configure-generated directory structure.
|
|
BUILD_DIR=@glibcxx_builddir@
|
|
SRC_DIR=@glibcxx_srcdir@
|
|
PREFIX_DIR=@glibcxx_prefixdir@
|
|
query=$1
|
|
|
|
case ${query} in
|
|
--install-includes)
|
|
INCLUDES="-I${SRC_DIR}/testsuite"
|
|
echo ${INCLUDES}
|
|
;;
|
|
--build-includes)
|
|
INCLUDES="-nostdinc++ @GLIBCXX_INCLUDES@ -I${SRC_DIR}/libsupc++
|
|
-I${SRC_DIR}/include/backward -I${SRC_DIR}/testsuite"
|
|
echo ${INCLUDES}
|
|
;;
|
|
--install-cxx)
|
|
CXX=${PREFIX_DIR}/bin/g++
|
|
echo ${CXX}
|
|
;;
|
|
--build-cxx)
|
|
PCHFLAGS="@glibcxx_PCHFLAGS@"
|
|
CXX_build="@CXX@ ${PCHFLAGS}"
|
|
CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
|
|
echo ${CXX}
|
|
;;
|
|
--cxxflags)
|
|
CXXFLAGS_save="-g -O2"
|
|
CXXFLAGS_config='@SECTION_FLAGS@ @SECTION_LDFLAGS@ -fmessage-length=0
|
|
@EXTRA_CXX_FLAGS@ -DLOCALEDIR="@glibcxx_localedir@" '
|
|
echo ${CXXFLAGS_save} ${CXXFLAGS_config}
|
|
;;
|
|
*)
|
|
print_usage
|
|
;;
|
|
esac
|
|
|
|
exit 0
|