aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-08-22 15:59:24 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-08-22 15:59:24 +0000
commitc462b41bcd55e63fea8e1ea59b454d5d56c751dc (patch)
treea73afb943c94f2903c7809b5cafe41bc3f9a9dd3 /sim
parent75086676098339eb1bbe2ffa7c9380c3cd7887e5 (diff)
downloadgdb-c462b41bcd55e63fea8e1ea59b454d5d56c751dc.zip
gdb-c462b41bcd55e63fea8e1ea59b454d5d56c751dc.tar.gz
gdb-c462b41bcd55e63fea8e1ea59b454d5d56c751dc.tar.bz2
Minor fixes in sim, gold, gdb for Autoconf 2.64, Automake 1.11.
gold/: * Makefile.am (AUTOMAKE_OPTIONS): Add foreign. * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Add foreign. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. gdb/: * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE, AC_AIX, AC_ISC_POSIX. sim/common/: * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with definition of AC_CHECK_MEMBER.
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog3
-rw-r--r--sim/common/aclocal.m423
2 files changed, 4 insertions, 22 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index d6ac0ae..e16f4c9 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,8 @@
2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
+ definition of AC_CHECK_MEMBER.
+
* aclocal.m4: m4_include toplevel config/override.m4.
* configure: Regenerate.
diff --git a/sim/common/aclocal.m4 b/sim/common/aclocal.m4
index 1177b7c..24b1aa2 100644
--- a/sim/common/aclocal.m4
+++ b/sim/common/aclocal.m4
@@ -945,28 +945,7 @@ dnl
dnl ---------------------------------------------------------
dnl AGGREGATE.MEMBER is for instance `struct passwd.pw_gecos', shell
dnl variables are not a valid argument.
-AC_DEFUN([SIM_CHECK_MEMBER],
-dnl Extract the aggregate name, and the member name
-[AC_CACHE_CHECK([for $1], [ac_]patsubst([$1], [[\. ]], [_]),
-[ac_]patsubst([$1], [[\. ]], [_])[=no;]
-AC_TRY_COMPILE([$4],[
-dnl AGGREGATE ac_aggr;
-static ]patsubst([$1], [\..*])[ ac_aggr;
-dnl ac_aggr.MEMBER;
-if (ac_aggr.]patsubst([$1], [^[^.]*\.])[)
-return 0;],[ac_]patsubst([$1], [[\. ]], [_])[=yes;],
-AC_TRY_COMPILE([$4],[
-dnl AGGREGATE ac_aggr;
-static ]patsubst([$1], [\..*])[ ac_aggr;
-dnl ac_aggr.MEMBER;
-if (sizeof ac_aggr.]patsubst([$1], [^[^.]*\.])[)
-return 0;],
-[ac_]patsubst([$1], [[\. ]], [_])[=yes;],
-[ac_]patsubst([$1], [[\. ]], [_])[=no;]))
-[if test [$]ac_]patsubst([$1], [[\. ]], [_])[ = yes; then :; [$2]
-else :; [$3]
-fi])
-])dnl SIM_CHECK_MEMBER
+AC_DEFUN([SIM_CHECK_MEMBER], defn([AC_CHECK_MEMBER]))
dnl
dnl Translated from a FC2 autoconf-2.59-3 installation.
dnl SIM_CHECK_MEMBERS([AGGREGATE.MEMBER, ...])