On Thursday, January 20, 2011 18:45:28 Karel Zak wrote: > On Tue, Jan 18, 2011 at 05:47:01PM +0100, Fabian Groffen wrote: > > +have_dirfd= > > +AC_MSG_CHECKING([for dirfd]) > > +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ > > +#include <dirent.h> > > +]],[[ > > + DIR *dir = 0; > > + if (dirfd(dir)) ; > > +]])], [have_dirfd=yes], [have_dirfd=no]) > > +AC_MSG_RESULT([$have_dirfd]) > > What about: > > AC_CHECK_FUNCS(dirfd) > AC_CHECK_DECLS([dirfd], , , > [#include <sys/types.h> > #include <dirent.h>]) i think macros would confuse these checks ? -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.