This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libiberty and getopt and getopt_long


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]