Re: [PATCH] Configure test for FREAD_READS_DIRECTORIES
- From
- Michal Rokos <michal.rokos@nextsoft.cz>
- Date
- Mar 4, 2008, 11:17 UTC
- Message-ID
- <200803041217.37027.michal.rokos@nextsoft.cz>
- In-Reply-To
- <7vod9u92fj.fsf@gitster.siamese.dyndns.org>
Hello,
On Tuesday 04 March 2008 12:03:12 Junio C Hamano wrote:
Show 12 quoted lines
> > +#
> > +# Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
> > +# when attempting to read from an fopen'ed directory.
> > +AC_CACHE_CHECK([whether system succeeds to read fopen'ed directory],
> > + [ac_cv_fread_reads_directories],
> > +[
> > +AC_RUN_IFELSE(
> > + [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
> > + [[char c;
> > + FILE *f = fopen("/etc", "r");
>
> Why "/etc" and not "." I have to wonder...I think "." is brilliant - ie no reason for "/etc" apart that I'm dumb.
> On how many different platforms was this configure check tested on?
Test works on Linux (no FREAD_READS_DIRECTORIES) and HPUXes (FREAD_READS_DIRECTORIES): HP-UX B.11.23 ia64 (Itanium) and HP-UX B.11.11 9000/800 (PaRisc)
Do you want me to resend with "."?
MR
-- Michal Rokos NextSoft s.r.o. Vyskočilova 1/1410 140 21 Praha 4 phone: +420 267 224 311 fax: +420 267 224 307 mobile: +420 736 646 591 e-mail: michal.rokos@nextsoft.cz