This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libiberty and getopt and getopt_long
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 6 Jun 2004 20:57:45 +0000 (UTC)
- Subject: Re: libiberty and getopt and getopt_long
- References: <200406062052.i56KqhN27369@tin.geop.uc.edu>
On Sun, 6 Jun 2004, Andrew Pinski wrote:
> I am having problems compiling gcj on an OS which includes
> getopt and getopt_long already. Is there a reason why libiberty
> does not check if the OS includes getopt_long?
getopt.c and getopt1.c elide the code if compiling with GNU libc.
Traditionally this would have been enough, but the existence of other
libcs which also implement the getopt_long interface means such configure
checks might make sense, unless the argument is that the GNU version
should always be used in preference to a non-GNU version in another libc.
--
Joseph S. Myers
jsm@polyomino.org.uk