[Top][All Lists]
[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: |
R. Bernstein |
Subject: |
Re: [Libcdio-devel] How to handle getopt.c for those systems that don't have... |
Date: |
Wed, 5 Oct 2005 05:36:00 -0400 |
Steven M. Schultz writes:
>
> AC_CHECK_HEADER(unistd.h,getopt.h)
>
> #ifdef HAVE_UNISTD_H
> #include <unistd.h>
> #endif
> #ifdef HAVE_GETOPT_H
> #include <getopt.h>
> #endif
Shouldn't this be
AC_CHECK_HEADER(unistd.h getopt.h)
?
On systems that have both (e.g. GNU/Linux) HAVE_GETOPT_H will not get
defined in the former. Does including getopt.h on FreeBSD 4 after
unistd.h cause a problem?