3991
# Check for various supplementary target information (beyond the
3992
# triplet) which might affect the choices in configure.srv.
3994
i[34567]86-*-linux*)
3995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
3996
$as_echo_n "checking if building for x86-64... " >&6; }
3997
if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
3998
$as_echo_n "(cached) " >&6
4000
save_CPPFLAGS="$CPPFLAGS"
4001
CPPFLAGS="$CPPFLAGS $CFLAGS"
4002
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003
/* end confdefs.h. */
4010
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4011
$EGREP "got it" >/dev/null 2>&1; then :
4012
gdb_cv_i386_is_x86_64=yes
4014
gdb_cv_i386_is_x86_64=no
4018
CPPFLAGS="$save_CPPFLAGS"
4020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
4021
$as_echo "$gdb_cv_i386_is_x86_64" >&6; }
4024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
4025
$as_echo_n "checking if building for Coldfire... " >&6; }
4026
if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
4027
$as_echo_n "(cached) " >&6
4029
save_CPPFLAGS="$CPPFLAGS"
4030
CPPFLAGS="$CPPFLAGS $CFLAGS"
4031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032
/* end confdefs.h. */
4034
#ifdef __mcoldfire__
4039
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040
$EGREP "got it" >/dev/null 2>&1; then :
4041
gdb_cv_m68k_is_coldfire=yes
4043
gdb_cv_m68k_is_coldfire=no
4047
CPPFLAGS="$save_CPPFLAGS"
4049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
4050
$as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
3973
4054
. ${srcdir}/configure.srv
3975
4056
if test "${srv_mingwce}" = "yes"; then
4212
4293
if test "$srv_linux_thread_db" = "yes"; then
4213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libthread_db" >&5
4214
$as_echo_n "checking for libthread_db... " >&6; }
4215
if test "${srv_cv_thread_db+set}" = set; then :
4216
$as_echo_n "(cached) " >&6
4219
LIBS="$LIBS -lthread_db"
4220
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221
/* end confdefs.h. */
4222
void ps_pglobal_lookup() {}
4224
void ps_pdwrite() {}
4225
void ps_lgetregs() {}
4226
void ps_lsetregs() {}
4227
void ps_lgetfpregs() {}
4228
void ps_lsetfpregs() {}
4229
void ps_get_thread_area() {}
4239
if ac_fn_c_try_link "$LINENO"; then :
4240
srv_cv_thread_db="-lthread_db"
4244
if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
4245
thread_db="/lib/libthread_db.so.1"
4247
thread_db='$prefix/lib/libthread_db.so.1'
4249
LIBS="$old_LIBS `eval echo "$thread_db"`"
4250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251
/* end confdefs.h. */
4252
void ps_pglobal_lookup() {}
4254
void ps_pdwrite() {}
4255
void ps_lgetregs() {}
4256
void ps_lsetregs() {}
4257
void ps_lgetfpregs() {}
4258
void ps_lsetfpregs() {}
4259
void ps_get_thread_area() {}
4269
if ac_fn_c_try_link "$LINENO"; then :
4270
srv_cv_thread_db="$thread_db"
4274
rm -f core conftest.err conftest.$ac_objext \
4275
conftest$ac_exeext conftest.$ac_ext
4278
rm -f core conftest.err conftest.$ac_objext \
4279
conftest$ac_exeext conftest.$ac_ext
4283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $srv_cv_thread_db" >&5
4284
$as_echo "$srv_cv_thread_db" >&6; }
4285
if test "$srv_cv_thread_db" = no; then
4286
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libthread_db." >&5
4287
$as_echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4288
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling thread support in gdbserver." >&5
4289
$as_echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
4290
srv_linux_thread_db=no
4292
srv_libs="$srv_cv_thread_db"
4293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_db_tls_get_addr" >&5
4294
$as_echo_n "checking for thread_db_tls_get_addr... " >&6; }
4295
if test "${srv_cv_tls_get_addr+set}" = set; then :
4296
$as_echo_n "(cached) " >&6
4299
LIBS="$LIBS $srv_cv_thread_db"
4300
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301
/* end confdefs.h. */
4302
void ps_pglobal_lookup() {}
4304
void ps_pdwrite() {}
4305
void ps_lgetregs() {}
4306
void ps_lsetregs() {}
4307
void ps_lgetfpregs() {}
4308
void ps_lsetfpregs() {}
4309
void ps_get_thread_area() {}
4314
td_thr_tls_get_addr();
4319
if ac_fn_c_try_link "$LINENO"; then :
4320
srv_cv_tls_get_addr=yes
4322
srv_cv_tls_get_addr=no
4324
rm -f core conftest.err conftest.$ac_objext \
4325
conftest$ac_exeext conftest.$ac_ext
4329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $srv_cv_tls_get_addr" >&5
4330
$as_echo "$srv_cv_tls_get_addr" >&6; }
4332
4295
old_LDFLAGS="$LDFLAGS"
4333
4296
LDFLAGS="$LDFLAGS -rdynamic"
4334
4297
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386
4347
$as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
4390
if test "$srv_cv_tls_get_addr" = yes; then
4392
$as_echo "#define HAVE_TD_THR_TLS_GET_ADDR 1" >>confdefs.h
4353
# Check whether --with-libthread-db was given.
4354
if test "${with_libthread_db+set}" = set; then :
4355
withval=$with_libthread_db; srv_libthread_db_path="${withval}"
4357
$as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
4359
srv_libs="$srv_libthread_db_path"
4397
4364
if test "$srv_xmlfiles" != ""; then
4398
4365
srv_xmlbuiltin="xml-builtin.o"