From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10964 invoked by alias); 15 Aug 2009 11:33:14 -0000 Received: (qmail 10922 invoked by uid 22791); 15 Aug 2009 11:33:13 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 15 Aug 2009 11:33:07 +0000 Received: (qmail invoked by alias); 15 Aug 2009 11:33:04 -0000 Received: from xdsl-87-78-133-82.netcologne.de (EHLO localhost.localdomain) [87.78.133.82] by mail.gmx.net (mp056) with SMTP; 15 Aug 2009 13:33:04 +0200 Received: from ralf by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1McHVP-0005G9-GK; Sat, 15 Aug 2009 13:33:03 +0200 Date: Sat, 15 Aug 2009 11:33:00 -0000 From: Ralf Wildenhues To: binutils@sourceware.org, gdb@sourceware.org Subject: [PATCH 3/N] some minor fixes in sim, gold, gdb Message-ID: <20090815113302.GC20172@gmx.de> References: <20090815112928.GB5396@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090815112928.GB5396@gmx.de> X-Mutt-Fcc: =binutils User-Agent: Mutt/1.5.20 (2009-08-09) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00101.txt.bz2 > - some minor fixes in sim, gold, gdb (src only) These are: - use the 'foreign' Automake option for gold. Currently, gold is updated with "automake --foreign" manually, this just avoids the need to remember that option. - gdb: replace obsolete macros with AC_USE_SYSTEM_EXTENSIONS. This change needs to come at the same time as the Autoconf update, as it assumes newer Autoconf semantics to properly replace the other macros. - sim/common/aclocal.m4: SIM_CHECK_MEMBER is alias for AC_CHECK_MEMBER now. This also needs to happen at the same time as the Autoconf update, to avoid exposing whatever bugs 2.59's AC_CHECK_MEMBER had. Is this ok or would you rather I replace every use of SIM_CHECK_MEMBER with AC_CHECK_MEMBER? Thanks, Ralf gold/ChangeLog: 2009-08-15 Ralf Wildenhues * Makefile.am (AUTOMAKE_OPTIONS): Add foreign. gdb/ChangeLog: 2009-08-15 Ralf Wildenhues * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE, AC_AIX, AC_ISC_POSIX. sim/common/ChangeLog: 2009-08-15 Ralf Wildenhues * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with definition of AC_CHECK_MEMBER. diff --git a/gold/Makefile.am b/gold/Makefile.am index 14173c1..448a3b8 100644 --- a/gold/Makefile.am +++ b/gold/Makefile.am @@ -1,6 +1,6 @@ # Process this file with automake to generate Makefile.in -AUTOMAKE_OPTIONS = +AUTOMAKE_OPTIONS = foreign SUBDIRS = po testsuite diff --git a/gdb/configure.ac b/gdb/configure.ac index 77f8436..9dc736c 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -26,9 +26,7 @@ AC_CONFIG_HEADER(config.h:config.in) AM_MAINTAINER_MODE AC_PROG_CC -AC_GNU_SOURCE -AC_AIX -AC_ISC_POSIX +AC_USE_SYSTEM_EXTENSIONS gl_EARLY AM_PROG_CC_STDC diff --git a/sim/common/aclocal.m4 b/sim/common/aclocal.m4 index e8fd147..25ed460 100644 --- a/sim/common/aclocal.m4 +++ b/sim/common/aclocal.m4 @@ -942,28 +942,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, ...])