diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-12-02 10:35:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-12-02 11:44:37 -0500 |
commit | 11fdaff16105f1030a1bc8785bc2bcdcef57fee0 (patch) | |
tree | f48e583e6e47e2b42947f22895c79cbee219b50f /gdbserver | |
parent | 4de92ce8b239061fd896e1082af2023024ff3218 (diff) | |
download | gdb-11fdaff16105f1030a1bc8785bc2bcdcef57fee0.zip gdb-11fdaff16105f1030a1bc8785bc2bcdcef57fee0.tar.gz gdb-11fdaff16105f1030a1bc8785bc2bcdcef57fee0.tar.bz2 |
gdb, gdbserver, gdbsupport: flatten and sort some list in configure files
This makes the lists easier sort read and modify. There are no changes
in the generated config.h files, so I'm confident this brings no
functional changes.
Change-Id: Ib6b7fc532bcd662af7dbb230070fb1f4fc75f86b
Diffstat (limited to 'gdbserver')
-rwxr-xr-x | gdbserver/configure | 67 | ||||
-rw-r--r-- | gdbserver/configure.ac | 29 |
2 files changed, 84 insertions, 12 deletions
diff --git a/gdbserver/configure b/gdbserver/configure index 09cb3c5..32980e5 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -8274,7 +8274,25 @@ $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi - for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h +for ac_header in \ + dlfcn.h \ + linux/elf.h \ + linux/perf_event.h \ + locale.h \ + memory.h \ + poll.h \ + proc_service.h \ + signal.h \ + sys/poll.h \ + sys/resource.h \ + sys/select.h \ + sys/socket.h \ + sys/un.h \ + sys/wait.h \ + termios.h \ + thread_db.h \ + wait.h \ + do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -8736,9 +8754,25 @@ if test "$ac_res" != no; then : fi - for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \ - ptrace64 sbrk setns sigaltstack sigprocmask \ - setpgid setpgrp getrusage getauxval sigtimedwait + for ac_func in \ + fdwalk \ + getauxval \ + getrlimit \ + getrusage \ + pipe \ + pipe2 \ + poll \ + ptrace64 \ + sbrk \ + setns \ + setpgid \ + setpgrp \ + sigaction \ + sigaltstack \ + sigprocmask \ + sigtimedwait \ + socketpair \ + do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -13119,7 +13153,23 @@ else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type fi -for ac_header in termios.h sys/reg.h string.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h ws2tcpip.h +for ac_header in \ + arpa/inet.h \ + fcntl.h \ + linux/elf.h \ + netdb.h \ + netinet/in.h \ + netinet/tcp.h \ + signal.h \ + string.h \ + sys/file.h \ + sys/ioctl.h \ + sys/procfs.h \ + sys/reg.h \ + sys/socket.h \ + termios.h \ + ws2tcpip.h \ + do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -13132,6 +13182,7 @@ fi done + for ac_header in vfork.h do : ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" @@ -13345,7 +13396,11 @@ $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h fi -for ac_func in pread pwrite pread64 +for ac_func in \ + pread \ + pread64 \ + pwrite \ + do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac index ee0de9d..6e3a73a 100644 --- a/gdbserver/configure.ac +++ b/gdbserver/configure.ac @@ -80,13 +80,30 @@ AC_CONFIG_COMMANDS([gdbdepdir],[ ZW_PROG_COMPILER_DEPENDENCIES([CC]) -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 - sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl - netinet/tcp.h arpa/inet.h ws2tcpip.h) +AC_CHECK_HEADERS([ \ + arpa/inet.h \ + fcntl.h \ + linux/elf.h \ + netdb.h \ + netinet/in.h \ + netinet/tcp.h \ + signal.h \ + string.h \ + sys/file.h \ + sys/ioctl.h \ + sys/procfs.h \ + sys/reg.h \ + sys/socket.h \ + termios.h \ + ws2tcpip.h \ +]) + AC_FUNC_FORK -AC_CHECK_FUNCS(pread pwrite pread64) +AC_CHECK_FUNCS([ \ + pread \ + pread64 \ + pwrite \ +]) # Check the return and argument types of ptrace. GDB_AC_PTRACE |