This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch for IA64 HP-UX build
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: wilson at specifixinc dot com
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 5 May 2005 09:12:40 -0700 (PDT)
- Subject: Re: Patch for IA64 HP-UX build
> 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 <sje@cup.hp.com>
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 <string.h>
+ #include <strings.h>
+ #else
#ifdef HAVE_STRING_H
#include <string.h>
#else
*************** extern int errno;
*** 47,52 ****
--- 51,57 ----
#else
extern char *strchr ();
extern char *strrchr ();
+ #endif
#endif
#endif