From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25445 invoked by alias); 5 May 2005 16:12:52 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 24954 invoked from network); 5 May 2005 16:12:41 -0000 Received: from unknown (HELO palrel12.hp.com) (156.153.255.237) by sourceware.org with SMTP; 5 May 2005 16:12:41 -0000 Received: from smtp1.ptp.hp.com (smtp1.ptp.hp.com [15.1.28.250]) by palrel12.hp.com (Postfix) with ESMTP id 0515D4021CC; Thu, 5 May 2005 09:12:40 -0700 (PDT) Received: from hpsje.cup.hp.com (hpsje.cup.hp.com [15.244.96.221]) by smtp1.ptp.hp.com (Postfix) with ESMTP id D904815031D; Thu, 5 May 2005 16:12:40 +0000 (UTC) Received: (from sje@localhost) by hpsje.cup.hp.com (8.9.3 (PHNE_24419+JAGae58098)/8.7.3 TIS Messaging 5.0) id JAA17158; Thu, 5 May 2005 09:12:40 -0700 (PDT) Date: Thu, 05 May 2005 16:18:00 -0000 From: Steve Ellcey Message-Id: <200505051612.JAA17158@hpsje.cup.hp.com> To: wilson@specifixinc.com Cc: binutils@sources.redhat.com Subject: Re: Patch for IA64 HP-UX build In-Reply-To: <1115253339.5426.180.camel@aretha.corp.specifixinc.com> X-SW-Source: 2005-05/txt/msg00175.txt.bz2 > The configure test for this is ACX_HEADER_STRING which is in > config/acx.m4, which also happens to be in the binutils tree. So it > would be possible for us to use it here. > -- > Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com Yes, that seems to work fine. Here is a modified patch that I tested. Steve Ellcey sje@cup.hp.com bfd/ChangeLog: 2005-05-05 Steve Ellcey configure.in: Add ACX_HEADER_STRING check. configure: Regenerate. sysdep.h: Change ifdefs around include of string.h and strings.h. *** src.orig/bfd/configure.in Thu May 5 09:05:21 2005 --- src/bfd/configure.in Thu May 5 09:05:05 2005 *************** AC_CHECK_HEADERS(stddef.h string.h strin *** 124,129 **** --- 124,130 ---- AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h) AC_HEADER_TIME AC_HEADER_DIRENT + ACX_HEADER_STRING AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid) AC_CHECK_FUNCS(strtoull) *** src.orig/bfd/sysdep.h Wed May 4 16:31:48 2005 --- src/bfd/sysdep.h Thu May 5 09:00:10 2005 *************** Foundation, Inc., 51 Franklin Street - F *** 39,44 **** --- 39,48 ---- extern int errno; #endif + #ifdef STRING_WITH_STRINGS + #include + #include + #else #ifdef HAVE_STRING_H #include #else *************** extern int errno; *** 47,52 **** --- 51,57 ---- #else extern char *strchr (); extern char *strrchr (); + #endif #endif #endif