* configure.in: Check for st_blocks member in struct stat and

define HAVE_STRUCT_STAT_ST_BLOCKS accordingly.

	* acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): New undef.

	* configure, config.in: Regenerated.
This commit is contained in:
Eli Zaretskii 2003-12-30 10:33:37 +00:00
parent b0f0a30e29
commit 40a7debcab
5 changed files with 428 additions and 371 deletions

View File

@ -1,5 +1,12 @@
2003-12-30 Eli Zaretskii <eliz@elta.co.il>
* configure.in: Check for st_blocks member in struct stat and
define HAVE_STRUCT_STAT_ST_BLOCKS accordingly.
* acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): New undef.
* configure, config.in: Regenerated.
* remote-fileio.c (remote_fileio_to_fio_stat)
(remote_fileio_func_fstat) [HAVE_STRUCT_STAT_ST_BLOCKS]: Support
systems that don't have `st_blocks' member in `struct stat'.

View File

@ -6,6 +6,9 @@
/* Define if your struct reg has r_fs. */
#undef HAVE_STRUCT_REG_R_FS
/* Define if your struct stat has st_blocks. */
#undef HAVE_STRUCT_STAT_ST_BLOCKS
/* Define if your struct reg has r_gs. */
#undef HAVE_STRUCT_REG_R_GS

View File

@ -79,6 +79,9 @@
/* Define if your struct reg has r_fs. */
#undef HAVE_STRUCT_REG_R_FS
/* Define if your struct stat has st_blocks. */
#undef HAVE_STRUCT_STAT_ST_BLOCKS
/* Define if your struct reg has r_gs. */
#undef HAVE_STRUCT_REG_R_GS

774
gdb/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -383,6 +383,18 @@ AC_CHECK_HEADERS(curses.h ncurses.h term.h)
# unconditionally, so what's the point in checking these?
AC_CHECK_HEADERS(ctype.h time.h)
dnl Check for struct stat with an st_blocks member
AC_MSG_CHECKING(for member st_blocks in struct stat)
AC_CACHE_VAL(gdb_cv_have_struct_stat_with_st_blocks_member,
[AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/stat.h>],
[struct stat st; (void) st.st_blocks;],
gdb_cv_have_struct_stat_with_st_blocks_member=yes,
gdb_cv_have_struct_stat_with_st_blocks_member=no)])
AC_MSG_RESULT($gdb_cv_have_struct_stat_with_st_blocks_member)
if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
AC_DEFINE(HAVE_STRUCT_STAT_ST_BLOCKS)
fi
# ------------------------- #
# Checks for declarations. #
# ------------------------- #