summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/configure
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2009-11-03 09:33:18 +0000
committerNathan Sidwell <nathan@codesourcery.com>2009-11-03 09:33:18 +0000
commit046d8e1ac7df336d7ed1aaff54cc1e2ac52d717d (patch)
treef83c3f012998545ff931684fe788ac9ab1f6f701 /gdb/gdbserver/configure
parent45a49373ec683ba89b81cd3de33ba264476286a8 (diff)
downloadgdb-046d8e1ac7df336d7ed1aaff54cc1e2ac52d717d.tar.gz
* configure.ac (i[34567]86-*): Check if we're targetting x86-64
with an i686 compiler. * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if needed. * configure: Rebuilt.
Diffstat (limited to 'gdb/gdbserver/configure')
-rwxr-xr-xgdb/gdbserver/configure34
1 files changed, 34 insertions, 0 deletions
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 687105a5c85..955f7165670 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -3973,6 +3973,40 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+# Check for various supplementary target information (beyond the
+# triplet) which might affect the choices in configure.srv.
+case "${target}" in
+ i[34567]86-*-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
+$as_echo_n "checking if building for x86-64... " >&6; }
+if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $CFLAGS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if __x86_64__
+got it
+#endif
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "got it" >/dev/null 2>&1; then :
+ gdb_cv_i386_is_x86_64=yes
+else
+ gdb_cv_i386_is_x86_64=no
+fi
+rm -f conftest*
+
+ CPPFLAGS="$save_CPPFLAGS"
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
+$as_echo "$gdb_cv_i386_is_x86_64" >&6; }
+ ;;
+esac
+
. ${srcdir}/configure.srv
if test "${srv_mingwce}" = "yes"; then