From 376e46cbf14730ac8fa18cf416ef0eeb9a7cb95a Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 20 May 2002 00:01:14 +0000 Subject: [PATCH] catching SIGILL instead of dumping core - patch by Steven M. Schultz git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6130 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 3542d31fbf..50928615f3 100755 --- a/configure +++ b/configure @@ -722,7 +722,12 @@ if x86 && test "$_runtime_cpudetection" = no ; then if test "$1" = yes ; then echocheck "kernel support of $2" cat > $TMPC < +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