* Re: configure: error: ERROR MACROS NOT FOUND: please report to developers [PATCH]
[not found] <m31wudg8rw.fsf@jin.myrkraverk.com>
@ 2006-05-29 15:55 ` Peter Stephenson
2006-05-29 17:12 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Peter Stephenson @ 2006-05-29 15:55 UTC (permalink / raw)
To: Johann 'Myrkraverk' Oskarsson, Zsh hackers list
"Johann 'Myrkraverk' Oskarsson" wrote:
> Peter Stephenson <p.w.stephenson@ntlworld.com> writes:
>
> > The following covers both cases, but may be too general:
> >
> > '#[ ]*define[ ][ ]*E[0-9A-Z]*[ ]*(_HURD_ERRNO )?\(?[_A
> -Z0-9]'
> >
>
> I haven't tried compiling 4.3 (yet) but that RE seems to work on Zeta.
(I've moved this to zsh-workers.)
The generality problem should be fixed if we keep the header with the most
matches.
> P.S. The sources on http://zsh.sunsite.dk/Arc/cvs.html are *way* too
> old, afaik -- from 2006/06/15.
This is probably to do with the changes at Sourceforge. I'm not sure
whose keeping the Sunsite stuff up to date at the moment.
Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.51
diff -u -r1.51 configure.ac
--- configure.ac 2 Mar 2006 17:56:49 -0000 1.51
+++ configure.ac 29 May 2006 15:53:08 -0000
@@ -1312,16 +1312,25 @@
$AWK '{ if ($1 ~ /err/) files[[$1]] = $1 }
END { for (var in files) print var }'`"
rm -f nametmp.c
-for ERRNO_H in $errfile_list /dev/null
+lnerrs=0
+for ERRNO_TRY_H in $errfile_list /dev/null
do
dnl Try to make sure it doesn't get confused by files that don't
dnl have real error definitions in. Count definitions to make sure.
- nerrs=`test -f $ERRNO_H && \
- $EGREP '#[ ]*define[ ][ ]*E[0-9A-Z]*[ ]*(_HURD_ERRNO \()?[0-9]+\)?' $ERRNO_H | \
+ dnl Definitions of error numbers have become more and more general, so
+ dnl pick the file with the most matches, which must be at least 7.
+ dnl Careful with cut and paste in the pattern: the square brackets
+ dnl must contain a space and a tab.
+ nerrs=`test -f $ERRNO_TRY_H && \
+ $EGREP '#[ ]*define[ ][ ]*E[0-9A-Z]*[ ]*(_HURD_ERRNO )?\(?[_A-Z0-9]' $ERRNO_TRY_H | \
wc -l | sed 's/[ ]//g'`
- test "x$nerrs" != x && test "$nerrs" -ge 7 && break
+ if test "x$nerrs" != x && test "$nerrs" -ge 7 && test "$nerrs" -gt "$lnerrs"
+ then
+ lnerrs=$nerrs
+ ERRNO_H=$ERRNO_TRY_H
+ fi
done
-if test x$ERRNO_H = x"/dev/null"; then
+if test x$ERRNO_H = x; then
AC_MSG_ERROR(ERROR MACROS NOT FOUND: please report to developers)
fi
zsh_cv_path_errno_h=$ERRNO_H
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: configure: error: ERROR MACROS NOT FOUND: please report to developers [PATCH]
2006-05-29 15:55 ` configure: error: ERROR MACROS NOT FOUND: please report to developers [PATCH] Peter Stephenson
@ 2006-05-29 17:12 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2006-05-29 17:12 UTC (permalink / raw)
To: Zsh hackers list
On 2006/05/29, 4:55pm, Peter Stephenson wrote:
}
} > P.S. The sources on http://zsh.sunsite.dk/Arc/cvs.html are *way* too
} > old, afaik -- from 2006/06/15.
}
} This is probably to do with the changes at Sourceforge.
In case anyone is reading this in the zsh-workers archives some years from
now: No, SourceForge has not invented time travel. They mean 2005/06.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-29 17:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <m31wudg8rw.fsf@jin.myrkraverk.com>
2006-05-29 15:55 ` configure: error: ERROR MACROS NOT FOUND: please report to developers [PATCH] Peter Stephenson
2006-05-29 17:12 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).