aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-10-26 07:28:25 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-10-26 07:28:25 +0000
commitbe5aeb60d6119dc21c991751fb47dfdcd657f3c0 (patch)
tree404ab9777c883f211f32a764fa3b7d9c9df52940 /gcc
parent5f9cd837907a3c3cc5158b688e68f37227974a8d (diff)
downloadgcc-be5aeb60d6119dc21c991751fb47dfdcd657f3c0.zip
gcc-be5aeb60d6119dc21c991751fb47dfdcd657f3c0.tar.gz
gcc-be5aeb60d6119dc21c991751fb47dfdcd657f3c0.tar.bz2
Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
* Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3. * configure.in (enable-libstdcxx-v3): Arrange to have HAVE_LIBSTDCXX_V3 substituted into the output files. * lib/g++.exp (g++_include_flags): Trust HAVE_LIBSTDCXX_V3 to tell us whether or not we are using V3. * Makefile.in (check): Don't make mkcheck executable. (check-install): Likewise. * configure.in (AC_OUTPUT): Make mkcheck executable. * mkcheck.in (top_srcdir): New variable. (INC_PATH): Set the path to the backward and ext directories correctly. From-SVN: r37068
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/Makefile.in1
-rwxr-xr-xgcc/configure8
-rw-r--r--gcc/configure.in3
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/g++.exp27
6 files changed, 34 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 588ac13..25f5973 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-25 Mark Mitchell <mark@codesourcery.com>
+
+ * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
+ * configure.in (enable-libstdcxx-v3): Arrange to have
+ HAVE_LIBSTDCXX_V3 substituted into the output files.
+
2000-10-25 Richard Henderson <rth@redhat.com>
* recog.c (constrain_operands): Initialize which_alternative
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index c7cab3c..380cfdf 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2593,6 +2593,7 @@ site.exp: ./config.status Makefile
# CFLAGS is set even though it's empty to show we reserve the right to set it.
@echo "set CFLAGS \"\"" >> ./tmp0
@echo "set CXXFLAGS \"-I$(objdir)/../$(target_subdir)libio -I\$$srcdir/../libg++/src -I\$$srcdir/../libio -I\$$srcdir/../libstdc++ -I\$$srcdir/../libstdc++/stl -L$(objdir)/../$(target_subdir)libg++ -L$(objdir)/../$(target_subdir)libstdc++\"" >> ./tmp0
+ @echo "set HAVE_LIBSTDCXX_V3 @HAVE_LIBSTDCXX_V3@" >> ./tmp0
# If newlib has been configured, we need to pass -B to gcc so it can find
# newlib's crt0.o if it exists. This will cause a "path prefix not used"
# message if it doesn't, but the testsuite is supposed to ignore the message -
diff --git a/gcc/configure b/gcc/configure
index f66d511..95ae6fb 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -1575,7 +1575,7 @@ esac
# Find some useful tools
-for ac_prog in mawk gawk nawk awk
+for ac_prog in gawk mawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -9522,9 +9522,11 @@ fi
if test x$enable_libstdcxx_v3 = xyes; then
echo "$ac_t""v3" 1>&6
+ HAVE_LIBSTDCXX_V3=1
ac_esn=1
else
echo "$ac_t""v2" 1>&6
+ HAVE_LIBSTDCXX_V3=0
ac_esn=0
fi
cat >> confdefs.h <<EOF
@@ -9533,8 +9535,9 @@ EOF
+
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
-echo "configure:9538: checking whether to enable maintainer-specific portions of Makefiles" >&5
+echo "configure:9541: checking whether to enable maintainer-specific portions of Makefiles" >&5
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
enableval="$enable_maintainer_mode"
@@ -10033,6 +10036,7 @@ s%@GGC@%$GGC%g
s%@zlibdir@%$zlibdir%g
s%@zlibinc@%$zlibinc%g
s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
+s%@HAVE_LIBSTDCXX_V3@%$HAVE_LIBSTDCXX_V3%g
s%@MAINT@%$MAINT%g
s%@build_canonical@%$build_canonical%g
s%@host_canonical@%$host_canonical%g
diff --git a/gcc/configure.in b/gcc/configure.in
index ef1524a..b05d5b5 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -4907,13 +4907,16 @@ AC_ARG_ENABLE(libstdcxx-v3,
if test x$enable_libstdcxx_v3 = xyes; then
AC_MSG_RESULT(v3)
+ HAVE_LIBSTDCXX_V3=1
ac_esn=1
else
AC_MSG_RESULT(v2)
+ HAVE_LIBSTDCXX_V3=0
ac_esn=0
fi
AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
[Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
+AC_SUBST(HAVE_LIBSTDCXX_V3)
dnl Very limited version of automake's enable-maintainer-mode
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 72755e7..0790ff2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-25 Mark Mitchell <mark@codesourcery.com>
+
+ * lib/g++.exp (g++_include_flags): Trust HAVE_LIBSTDCXX_V3
+ to tell us whether or not we are using V3.
+
2000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
* g++.old-deja/g++.pt/memtemp77.C (main): Adjust comparaison
diff --git a/gcc/testsuite/lib/g++.exp b/gcc/testsuite/lib/g++.exp
index fde4577..8fe1f2a 100644
--- a/gcc/testsuite/lib/g++.exp
+++ b/gcc/testsuite/lib/g++.exp
@@ -68,30 +68,29 @@ proc g++_version { } {
#
proc g++_include_flags { args } {
global srcdir
+ global HAVE_LIBSTDCXX_V3
+
+ set flags ""
if [is_remote host] {
- return ""
+ return "${flags}"
}
- set gccpath [get_multilibs]
- set libio_dir ""
- set flags ""
-
set dir [lookfor_file ${srcdir} libg++]
if { ${dir} != "" } {
append flags "-I${dir} -I${dir}/src "
}
- set odir_v2 [lookfor_file ${gccpath} libstdc++]
- set sdir_v2 [lookfor_file ${srcdir} libstdc++]
- if { ${odir_v2} != "" } {
- append flags "-I${sdir_v2} -I${sdir_v2}/stl "
- } else {
+
+ set gccpath [get_multilibs]
+
+ if { ${HAVE_LIBSTDCXX_V3} } {
set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
set sdir_v3 [lookfor_file ${srcdir} libstdc++-v3]
- if { ${odir_v3} != "" } {
- append flags [exec ${odir_v3}/mkcheck 2 ${odir_v3} ${sdir_v3}]
- }
- # else we're probably testing an already-installed GCC.
+ append flags [exec ${odir_v3}/mkcheck 2 ${odir_v3} ${sdir_v3}]
+ } else {
+ set odir_v2 [lookfor_file ${gccpath} libstdc++]
+ set sdir_v2 [lookfor_file ${srcdir} libstdc++]
+ append flags "-I${sdir_v2} -I${sdir_v2}/stl "
}
return "$flags"