On Tue, Sep 12, 2000 at 01:02:48PM +0000, Andy Boden wrote:
> My fundamental automake/autoconf issue is how to conditionally
> link-in the private GNU getopt if I'm not on linux.  If anyone
> has a clever solution to this problem (say by using the $target
> variable) I'd appreciate hearing it.

I have never actually come across the AC_REPLACE_GNU_GETOPT macro...
the files getopt.c, getopt.h and getopt1.c have their own magic to
#define away the body of their own code if the compilation environment
provides an implementation of its own.

In short, the solution is to add the three files mentioned above to
your project and compile them in unconditionally.  They will take care
of themselves.

Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: [EMAIL PROTECTED]
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       [EMAIL PROTECTED] 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc

Reply via email to