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: autoconf help needed



----- Original Message ----- From: "Steve Kargl" <sgk@troutmask.apl.washington.edu>
Newsgroups: gmane.comp.gcc.devel
Sent: Wednesday, November 17, 2004 7:58 PM
Subject: autoconf help needed



I'm currently writing gfortran intrinsic procedures to
achieve backwards compatibility with g77.  I know very
little about autoconf (and friends), so I'm seeking advice.

I need to test that struct stat has the 3 members
st_blksize, st_rdev, and st_blocks.  I know my
code needs for example

#if HAVE_ST_BLKSIZE
 sarray[11] = buf.st_blksize;
#else
 sarray[11] = -1;
#endif

but I don't know how to make configure properly set
HAVE_ST_BLKSIZE.

Try: AC_CHECK_MEMBERS([struct stat.st_blksize])

which will define HAVE_STRUCT_STAT_ST_BLKSIZE

Regards,



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