X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdbserver%2Fconfigure.ac;h=090a6dcdb6e92ae6d4a13fa6f68a6dc8ba0ab83a;hb=7ab967941150b2f79fc089893bf51e6bb53d245b;hp=285a297a1c6c1707f768cc1ccec9667fd4198fdc;hpb=919adfe8409211c726c1d05b47ca59890ee648f1;p=deliverable%2Fbinutils-gdb.git
diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac
index 285a297a1c..090a6dcdb6 100644
--- a/gdbserver/configure.ac
+++ b/gdbserver/configure.ac
@@ -18,7 +18,7 @@ dnl along with this program. If not, see .
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(server.c)
+AC_INIT(server.cc)
AC_CONFIG_HEADERS(config.h:config.in, [echo > stamp-h])
AM_MAINTAINER_MODE
@@ -43,12 +43,11 @@ AX_CXX_COMPILE_STDCXX(11, , mandatory)
AC_HEADER_STDC
-# Set the 'development' global.
-. $srcdir/../bfd/development.sh
+GDB_AC_COMMON
+# This is set by GDB_AC_COMMON.
+AC_SUBST(WIN32APILIBS)
-GDB_AC_SELFTEST([
- srv_selftest_objs="gdbsupport/selftest.o"
-])
+GDB_AC_SELFTEST
ACX_NONCANONICAL_TARGET
ACX_NONCANONICAL_HOST
@@ -56,6 +55,9 @@ ACX_NONCANONICAL_HOST
# Dependency checking.
ZW_CREATE_DEPDIR
+dnl Set up for gettext.
+ZW_GNU_GETTEXT_SISTER_DIR
+
# Create sub-directories for objects and dependencies.
CONFIG_SRC_SUBDIR="arch gdbsupport nat target"
AC_SUBST(CONFIG_SRC_SUBDIR)
@@ -69,22 +71,6 @@ AC_CONFIG_COMMANDS([gdbdepdir],[
ZW_PROG_COMPILER_DEPENDENCIES([CC])
-gnulib_extra_configure_args=
-# If large-file support is disabled, make sure gnulib does the same.
-if test "$enable_largefile" = no; then
-gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
-fi
-
-# Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
-# to find the the source subdir to be configured directly under
-# gdbserver/. We need to build gnulib under some other directory not
-# "gnulib", to avoid the problem of both GDB and GDBserver wanting to
-# build it in the same directory, when building in the source dir.
-ACX_CONFIGURE_DIR(["../gnulib"], ["build-gnulib-gdbserver"],
- ["$gnulib_extra_configure_args"])
-
-ACX_CONFIGURE_DIR(["../libiberty"], ["build-libiberty-gdbserver"])
-
AC_CHECK_HEADERS(termios.h sys/reg.h string.h dnl
sys/procfs.h linux/elf.h dnl
fcntl.h signal.h sys/file.h dnl
@@ -93,8 +79,6 @@ AC_CHECK_HEADERS(termios.h sys/reg.h string.h dnl
AC_FUNC_FORK
AC_CHECK_FUNCS(pread pwrite pread64)
-GDB_AC_COMMON
-
# Check the return and argument types of ptrace.
GDB_AC_PTRACE
@@ -161,14 +145,6 @@ libiberty_INIT
AC_CHECK_DECLS([perror, vasprintf, vsnprintf])
-# See if supports the %fs_base and %gs_bas amd64 segment registers.
-# Older amd64 Linux's don't have the fs_base and gs_base members of
-# `struct user_regs_struct'.
-AC_CHECK_MEMBERS([struct user_regs_struct.fs_base, struct user_regs_struct.gs_base],
- [], [], [#include
-#include ])
-
-
AC_CHECK_TYPES(socklen_t, [], [],
[#include
#include
@@ -373,7 +349,7 @@ if test "$srv_xmlfiles" != ""; then
done
fi
-GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
+GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
GDBSERVER_LIBS="$srv_libs"
dnl Check whether the target supports __sync_*_compare_and_swap.
@@ -432,7 +408,7 @@ AC_SUBST(srv_xmlfiles)
AC_SUBST(IPA_DEPFILES)
AC_SUBST(extra_libraries)
-GNULIB=build-gnulib-gdbserver/import
+GNULIB=../gnulib/import
GNULIB_STDINT_H=
if test x"$STDINT_H" != x; then