From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30874 invoked by alias); 10 Mar 2006 00:29:07 -0000 Received: (qmail 30863 invoked by uid 22791); 10 Mar 2006 00:29:06 -0000 X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Mar 2006 00:29:06 +0000 Received: from hiauly1.hia.nrc.ca (hiauly1.hia.nrc.ca [127.0.0.1] (may be forged)) by hiauly1.hia.nrc.ca (8.12.9-20030917/8.12.9) with ESMTP id k2A0T2il029341; Thu, 9 Mar 2006 19:29:02 -0500 (EST) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.9-20030917/8.12.9/Submit) id k2A0T1Dp029339; Thu, 9 Mar 2006 19:29:01 -0500 (EST) Message-Id: <200603100029.k2A0T1Dp029339@hiauly1.hia.nrc.ca> Subject: Re: [hpux] Fix build problem on hpux To: randolph@tausq.org (Randolph Chung) Date: Fri, 10 Mar 2006 01:48:00 -0000 From: "John David Anglin" Cc: mark.kettenis@xs4all.nl, gdb-patches@sources.redhat.com In-Reply-To: <4410C609.5090207@tausq.org> from "Randolph Chung" at Mar 10, 2006 08:19:21 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00152.txt.bz2 > Index: acinclude.m4 > =================================================================== > RCS file: /cvs/src/src/gdb/acinclude.m4,v > retrieving revision 1.13 > diff -u -p -r1.13 acinclude.m4 > --- acinclude.m4 17 Dec 2005 22:33:59 -0000 1.13 > +++ acinclude.m4 10 Mar 2006 00:16:44 -0000 > @@ -987,3 +987,14 @@ if test x = y ; then > fi > ]) > > +AC_DEFUN(gdb_AC_HPUX, > +[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl > +AC_BEFORE([$0], [AC_TRY_RUN])dnl > +AC_MSG_CHECKING(for HPUX) > +AC_EGREP_CPP(yes, > +[#ifdef _HPUX_SOURCE > + yes > +#endif > +], [AC_MSG_RESULT(yes); AC_DEFINE(_XOPEN_SOURCE_EXTENDED)], AC_MSG_RESULT(no)) > +]) Did you try this with GCC 4.0.0 or later? These automatically define _XOPEN_SOURCE_EXTENDED (libstdc++ needed it for wchar support). I'm afraid that you might get warnings. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)