gdb/
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure.ac
index a952af5d83cac8be6c086fff3aab2917311b3d0d..e43b28a02205c7663c8b8cbbf3f5eba875241f57 100644 (file)
@@ -38,7 +38,9 @@ AC_HEADER_STDC
 
 AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl
                 proc_service.h sys/procfs.h thread_db.h linux/elf.h dnl
-                stdlib.h unistd.h)
+                stdlib.h unistd.h dnl
+                terminal.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl
+                netinet/tcp.h arpa/inet.h sys/wait.h)
 
 AC_CHECK_DECLS(strerror)
 
@@ -48,6 +50,15 @@ AC_CHECK_TYPES(socklen_t, [], [],
 ])
 . ${srcdir}/configure.srv
 
+if test "${srv_mingw}" = "yes"; then
+  LIBS="$LIBS -lwsock32"
+  AC_DEFINE(USE_WIN32API, 1,
+           [Define if we should use the Windows API, instead of the
+            POSIX API.  On Windows, we use the Windows API when
+            building for MinGW, but the POSIX API when building
+            for Cygwin.])
+fi
+
 if test "${srv_linux_usrregs}" = "yes"; then
   AC_DEFINE(HAVE_LINUX_USRREGS, 1,
            [Define if the target supports PTRACE_PEEKUSR for register ]
This page took 0.024102 seconds and 4 git commands to generate.