[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
Re: [Libcdio-devel] How to handle getopt.c for those systems that don't have...
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>
> #ifdef HAVE_GETOPT_H
> #include <getopt.h>
> 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.