catching SIGILL instead of dumping core - patch by Steven M. Schultz <sms@2BSD.COM>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6130 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-05-20 00:01:14 +00:00
parent d900b93493
commit 376e46cbf1
1 changed files with 6 additions and 1 deletions

7
configure vendored
View File

@ -722,7 +722,12 @@ if x86 && test "$_runtime_cpudetection" = no ; then
if test "$1" = yes ; then
echocheck "kernel support of $2"
cat > $TMPC <<EOF
int main(void){__asm__ __volatile__ ("$3":::"memory");return(0);}
#include <signal.h>
void catch() { exit(1); }
int main(void){
signal(SIGILL, catch);
__asm__ __volatile__ ("$3":::"memory");return(0);
}
EOF
if ( cc_check && $TMPO ) > /dev/null 2>&1 ; then