libcdio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-devel] How to handle getopt.c for those systems that don't


From: Peter Creath
Subject: Re: [Libcdio-devel] How to handle getopt.c for those systems that don't have...
Date: Wed, 5 Oct 2005 10:06:21 -0400

On 10/4/05, Steven M. Schultz <address@hidden> wrote:
>         AC_CHECK_HEADERS(unistd.h getopt.h)
>
> #ifdef HAVE_UNISTD_H
> #include <unistd.h>
> #endif
> #ifdef HAVE_GETOPT_H
> #include <getopt.h>
> #endif
>
>         and avoid specific  version checking.

Ah, a much cleaner alternative.  (I'm still new to this autoconf
mess.)  I like it, unless of course it causes FreeBSD 5 to barf.  I
suspect it won't, though, since darwin has both unistd.h and getopt.h,
and unistd.h has nothing to say about getopt.

    -P




reply via email to

[Prev in Thread] Current Thread [Next in Thread]