summaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-11-19 14:40:04 +0000
committerPedro Alves <palves@redhat.com>2015-11-19 15:05:54 +0000
commitb60a477edf5b58a950a9ddf2d1520f95874a1089 (patch)
tree0317bfd46584a6979232cd871cb9a119d561bfc6 /gdb/configure
parent9a0847060d5823ec520ebf0c3e307e26442e5b8c (diff)
downloadbinutils-gdb-b60a477edf5b58a950a9ddf2d1520f95874a1089.tar.gz
Default to building in C++ modeusers/palves/cxx-conversion
... except on hosts/targets that haven't been converted yet. gdb/ChangeLog: 2015-11-19 Pedro Alves <palves@redhat.com> * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes unless building on some hosts. * configure: Renegerate. gdb/gdbserver/ChangeLog: 2015-11-19 Pedro Alves <palves@redhat.com> * configure: Renegerate.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure17
1 files changed, 15 insertions, 2 deletions
diff --git a/gdb/configure b/gdb/configure
index 249a39975b0..fce21548fea 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -5001,6 +5001,21 @@ program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
# See if we are building with C++, and substitute COMPILER.
+ # The "doesn't support C++ yet" hall of shame.
+ case $host in
+ *-*aix* | \
+ *-*go32* | \
+ *-*darwin* | \
+ *-*solaris* | \
+ *-*nto* | \
+ *-*bsd* | \
+ xtensa*-*-linux* | \
+ null)
+ enable_build_with_cxx=no ;;
+ *)
+ enable_build_with_cxx=yes ;;
+ esac
+
# Check whether --enable-build-with-cxx was given.
if test "${enable_build_with_cxx+set}" = set; then :
enableval=$enable_build_with_cxx; case $enableval in
@@ -5009,8 +5024,6 @@ if test "${enable_build_with_cxx+set}" = set; then :
*)
as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
esac
-else
- enable_build_with_cxx=no
fi