From: Bernd Eggink <eggink@uni-hamburg.de>
To: Peter Stephenson <pws@ibmth.df.unipi.it>
Cc: Zsh hackers list <zsh-workers@sunsite.auc.dk>
Subject: Re: signames problem
Date: Wed, 24 Feb 1999 15:41:44 +0100 [thread overview]
Message-ID: <36D40FA8.8679495C@uni-hamburg.de> (raw)
In-Reply-To: <9902241301.AA16501@ibmth.df.unipi.it>
Peter Stephenson wrote:
>
> > In SuSE Linux 6.0, zsh-3.1.5-pws-9 doesn't know any signames.
> >
> > Possibly because the former /usr/include/asm/signal.h has moved to
> > /usr/include/signum.h !?
>
> configure has changed so it's now supposed to work it out from the files
> that `#include <signal.h>' actually includes. Anything with `sig' in it is
> tested. Is zsh_cv_path_signal_h set to /dev/null in config.cache? What
> does the new code (I've replaced $CPP with gcc -E, $AWK with awk assuming
> that's what's used):
>
> echo "#include <signal.h>" > nametmp.c
> sigfile_list="`gcc -E nametmp.c |
> sed -n 's/^#[ ].*\"\(.*\)\"/\1/p' |
> sed 's/\\\\\\\\/\//g' |
> awk '{ if (\$1 ~ \"sig\") files[\$1] = \$1 }
> END { for (var in files) print var }'`"
>
> produce for $sigfile_list? (There's a space and a tab in the empty [ ]
> which does funny things if you paste it into zsh.)
The result is
/usr/include/sigstack.h
... 5 more files ...
/usr/include/signum.h
which is OK so far, but unfortunately /usr/include/sigstack.h contains a
line
#define SIGSTKSZ 8192
which causes configure to take /usr/include/sigstack.h as the result.
The test in configure:4024 is too weak. I guess it would be better to
test for a minimum number (e.g., 7) of "#define SIG..."s in each file.
This works for me:
for SIGNAL_H in $sigfile_list
do
n=0
test -f $SIGNAL_H && \
grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*'
$SIGNAL_H | \
wc -l | read n dummy && [ $n -ge 7 ] && break
done
Regards,
Bernd
--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@rrz.uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
next prev parent reply other threads:[~1999-02-24 14:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-24 11:37 Bernd Eggink
1999-02-24 13:00 ` Peter Stephenson
1999-02-24 14:41 ` Bernd Eggink [this message]
1999-02-24 15:01 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36D40FA8.8679495C@uni-hamburg.de \
--to=eggink@uni-hamburg.de \
--cc=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).