diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2009-11-03 09:33:18 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2009-11-03 09:33:18 +0000 |
commit | 8838b45ede3169a840916bbe0234f1f9f451c9b3 (patch) | |
tree | 751c59c90d6c5b5dc39dc551194ccf14c134a3ed /gdb/gdbserver/configure.ac | |
parent | adcc1315490f7685a8cfbc8593cf746b465490e9 (diff) | |
download | gdb-8838b45ede3169a840916bbe0234f1f9f451c9b3.zip gdb-8838b45ede3169a840916bbe0234f1f9f451c9b3.tar.gz gdb-8838b45ede3169a840916bbe0234f1f9f451c9b3.tar.bz2 |
* 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.ac')
-rw-r--r-- | gdb/gdbserver/configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index 2f2b2a3..57eaf21 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -73,6 +73,25 @@ ACX_BUGURL([http://www.gnu.org/software/gdb/bugs/]) AC_DEFINE_UNQUOTED([PKGVERSION], ["$PKGVERSION"], [Additional package description]) AC_DEFINE_UNQUOTED([REPORT_BUGS_TO], ["$REPORT_BUGS_TO"], [Bug reporting address]) +# Check for various supplementary target information (beyond the +# triplet) which might affect the choices in configure.srv. +case "${target}" in +changequote(,)dnl + i[34567]86-*-linux*) +changequote([,])dnl + AC_CACHE_CHECK([if building for x86-64], [gdb_cv_i386_is_x86_64], + [save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $CFLAGS" + AC_EGREP_CPP([got it], [ +#if __x86_64__ +got it +#endif + ], [gdb_cv_i386_is_x86_64=yes], + [gdb_cv_i386_is_x86_64=no]) + CPPFLAGS="$save_CPPFLAGS"]) + ;; +esac + . ${srcdir}/configure.srv if test "${srv_mingwce}" = "yes"; then |