This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using HAVE_FOO_H and HAVE_FOO


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]