From: Steve Ellcey <sje@cup.hp.com>
To: wilson@specifixinc.com
Cc: binutils@sources.redhat.com
Subject: Re: Patch for IA64 HP-UX build
Date: Thu, 05 May 2005 16:37:00 -0000 [thread overview]
Message-ID: <200505051632.JAA17274@hpsje.cup.hp.com> (raw)
In-Reply-To: <1115253339.5426.180.camel@aretha.corp.specifixinc.com>
> 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
OK, Here is a new version of the patch using ACX_HEADER_STRING. In my
first attempt I forgot to put the undef of ACX_HEADER_STRING into
config.in. This one has been tested and all of bfd built on IA64 HP-UX.
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.
config.in: Add undef of STRING_WITH_STRINGS.
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/config.in Thu May 5 09:22:03 2005
--- src/bfd/config.in Thu May 5 09:21:53 2005
***************
*** 322,327 ****
--- 322,330 ----
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
+ /* Define if you can safely include both <string.h> and <strings.h>. */
+ #undef STRING_WITH_STRINGS
+
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
*** 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
next prev parent reply other threads:[~2005-05-05 16:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-04 23:59 Steve Ellcey
2005-05-05 1:58 ` James E Wilson
2005-05-05 16:18 ` Steve Ellcey
2005-05-05 16:32 ` Steve Ellcey
2005-05-05 16:37 ` Steve Ellcey [this message]
2005-05-05 16:48 ` Daniel Jacobowitz
2005-05-05 17:14 ` Steve Ellcey
2005-05-05 17:52 ` James E Wilson
2005-05-05 19:28 ` James E Wilson
2005-05-05 16:58 ` H. J. Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200505051632.JAA17274@hpsje.cup.hp.com \
--to=sje@cup.hp.com \
--cc=binutils@sources.redhat.com \
--cc=wilson@specifixinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).