* configure.ac (targ_archs): Use standard autoconf check for
"struct stat.st_blocks" instead of rolling our own. * configure: Regenerated. * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef. * config.in: Regenerated.
This commit is contained in:
parent
0794d25a98
commit
666ec76f41
5 changed files with 132 additions and 81 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-01-21 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* configure.ac (targ_archs): Use standard autoconf check for
|
||||||
|
"struct stat.st_blocks" instead of rolling our own.
|
||||||
|
* configure: Regenerated.
|
||||||
|
* acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
|
||||||
|
* config.in: Regenerated.
|
||||||
|
|
||||||
2005-01-21 Mark Kettenis <kettenis@gnu.org>
|
2005-01-21 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* configure.ac: Modernize checks for `long long' and `long double'
|
* configure.ac: Modernize checks for `long long' and `long double'
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
/* Define if your struct reg has r_fs. */
|
/* Define if your struct reg has r_fs. */
|
||||||
#undef HAVE_STRUCT_REG_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. */
|
/* Define if your struct reg has r_gs. */
|
||||||
#undef HAVE_STRUCT_REG_R_GS
|
#undef HAVE_STRUCT_REG_R_GS
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,6 @@
|
||||||
/* Define if your struct reg has r_fs. */
|
/* Define if your struct reg has r_fs. */
|
||||||
#undef HAVE_STRUCT_REG_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. */
|
/* Define if your struct reg has r_gs. */
|
||||||
#undef HAVE_STRUCT_REG_R_GS
|
#undef HAVE_STRUCT_REG_R_GS
|
||||||
|
|
||||||
|
@ -438,6 +435,9 @@
|
||||||
/* Define to 1 if your system has struct reg in <machine/reg.h>. */
|
/* Define to 1 if your system has struct reg in <machine/reg.h>. */
|
||||||
#undef HAVE_STRUCT_REG
|
#undef HAVE_STRUCT_REG
|
||||||
|
|
||||||
|
/* Define to 1 if `st_blocks' is member of `struct stat'. */
|
||||||
|
#undef HAVE_STRUCT_STAT_ST_BLOCKS
|
||||||
|
|
||||||
/* Define to 1 if your system has td_pcb in struct thread. */
|
/* Define to 1 if your system has td_pcb in struct thread. */
|
||||||
#undef HAVE_STRUCT_THREAD_TD_PCB
|
#undef HAVE_STRUCT_THREAD_TD_PCB
|
||||||
|
|
||||||
|
|
177
gdb/configure
vendored
177
gdb/configure
vendored
|
@ -13010,68 +13010,6 @@ fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking for member st_blocks in struct stat" >&5
|
|
||||||
echo $ECHO_N "checking for member st_blocks in struct stat... $ECHO_C" >&6
|
|
||||||
if test "${gdb_cv_have_struct_stat_with_st_blocks_member+set}" = set; then
|
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
||||||
else
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
struct stat st; (void) st.st_blocks;
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.$ac_objext
|
|
||||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
||||||
(eval $ac_compile) 2>conftest.er1
|
|
||||||
ac_status=$?
|
|
||||||
grep -v '^ *+' conftest.er1 >conftest.err
|
|
||||||
rm -f conftest.er1
|
|
||||||
cat conftest.err >&5
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); } &&
|
|
||||||
{ ac_try='test -z "$ac_c_werror_flag"
|
|
||||||
|| test ! -s conftest.err'
|
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
||||||
(eval $ac_try) 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; } &&
|
|
||||||
{ ac_try='test -s conftest.$ac_objext'
|
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
||||||
(eval $ac_try) 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; }; then
|
|
||||||
gdb_cv_have_struct_stat_with_st_blocks_member=yes
|
|
||||||
else
|
|
||||||
echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
gdb_cv_have_struct_stat_with_st_blocks_member=no
|
|
||||||
fi
|
|
||||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "$as_me:$LINENO: result: $gdb_cv_have_struct_stat_with_st_blocks_member" >&5
|
|
||||||
echo "${ECHO_T}$gdb_cv_have_struct_stat_with_st_blocks_member" >&6
|
|
||||||
if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ------------------------- #
|
# ------------------------- #
|
||||||
# Checks for declarations. #
|
# Checks for declarations. #
|
||||||
# ------------------------- #
|
# ------------------------- #
|
||||||
|
@ -13159,6 +13097,121 @@ _ACEOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# ----------------------- #
|
||||||
|
# Checks for structures. #
|
||||||
|
# ----------------------- #
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
|
||||||
|
echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
|
||||||
|
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
$ac_includes_default
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
static struct stat ac_aggr;
|
||||||
|
if (ac_aggr.st_blocks)
|
||||||
|
return 0;
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_c_werror_flag"
|
||||||
|
|| test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
ac_cv_member_struct_stat_st_blocks=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
$ac_includes_default
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
static struct stat ac_aggr;
|
||||||
|
if (sizeof ac_aggr.st_blocks)
|
||||||
|
return 0;
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_c_werror_flag"
|
||||||
|
|| test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
ac_cv_member_struct_stat_st_blocks=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
ac_cv_member_struct_stat_st_blocks=no
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
|
||||||
|
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
|
||||||
|
if test $ac_cv_member_struct_stat_st_blocks = yes; then
|
||||||
|
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# ------------------ #
|
# ------------------ #
|
||||||
# Checks for types. #
|
# Checks for types. #
|
||||||
# ------------------ #
|
# ------------------ #
|
||||||
|
|
|
@ -420,25 +420,18 @@ AC_CHECK_HEADERS(term.h, [], [],
|
||||||
# unconditionally, so what's the point in checking these?
|
# unconditionally, so what's the point in checking these?
|
||||||
AC_CHECK_HEADERS(ctype.h time.h)
|
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. #
|
# Checks for declarations. #
|
||||||
# ------------------------- #
|
# ------------------------- #
|
||||||
|
|
||||||
gcc_AC_CHECK_DECLS(getopt)
|
gcc_AC_CHECK_DECLS(getopt)
|
||||||
|
|
||||||
|
# ----------------------- #
|
||||||
|
# Checks for structures. #
|
||||||
|
# ----------------------- #
|
||||||
|
|
||||||
|
AC_CHECK_MEMBERS([struct stat.st_blocks])
|
||||||
|
|
||||||
# ------------------ #
|
# ------------------ #
|
||||||
# Checks for types. #
|
# Checks for types. #
|
||||||
# ------------------ #
|
# ------------------ #
|
||||||
|
|
Loading…
Add table
Reference in a new issue