This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using HAVE_FOO_H and HAVE_FOO
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: François-Xavier Coudert <Francois-Xavier dot Couder at lcp dot u-psud dot fr>
- Date: Mon, 31 Jan 2005 21:04:14 +0000
- Subject: Re: Using HAVE_FOO_H and HAVE_FOO
- Organization: CodeSourcery
- References: <41FE9AD8.1090707@lcp.u-psud.fr>
On Monday 31 January 2005 20:53, François-Xavier Coudert wrote:
> Hi,
>
> I have written some code for inclusion into libgfortran (the gfortran
> runtime library), parts of which use Unix-only headers and functions,
> such as the <sys/types.h> and <signal.h> headers or the kill function.
>
> In current code I could look at, such headers and functions are
> protected by ad hoc #ifdef (like HAVE_SYS_TYPES_H). However, I found no
> occurence of things such as HAVE_SIGNAL_H or HAVE_KILL (for <signal.h>
> and the kill library call). How can I add them to configure.ac (if I
> worked out the place correctly)?
AC_CHECK_HEADERS and/or AC_CHECK_FUNCS
Paul