From e46f178f9cea21958d176d29a7b984ae4ad4d44d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 26 May 2007 20:23:33 +0000 Subject: fix error name searching on Linux --- ChangeLog | 5 +++++ configure.ac | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 363a8324e..397646cb5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-26 Peter Stephenson + + * 23471: configure.ac: error names not found properly + on Linux owing to restrictive test when searching files. + 2007-05-23 Peter Stephenson * John Buddery: 23461 plus comment and test: fix race diff --git a/configure.ac b/configure.ac index e2d34cade..a3556d103 100644 --- a/configure.ac +++ b/configure.ac @@ -1325,7 +1325,6 @@ sed 's/\\\\\\\\/\//g' | $AWK '{ if ($1 ~ /err/) files[[$1]] = $1 } END { for (var in files) print var }'`" rm -f nametmp.c -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 @@ -1337,9 +1336,8 @@ do 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'` - if test "x$nerrs" != x && test "$nerrs" -ge 1 && test "$nerrs" -gt "$lnerrs" + if test "x$nerrs" != x && test "$nerrs" -ge 1 then - lnerrs=$nerrs ERRNO_H="$ERRNO_H $ERRNO_TRY_H" fi done -- cgit 1.4.1