[FFmpeg-cvslog] configure: move code out of main of check_exec_crash()
Michael Niedermayer
git at videolan.org
Sat Oct 22 01:52:55 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 22 00:10:29 2011 +0200| [d000c5ae7e375ddf45215c550e9b2b815d3677af] | committer: Michael Niedermayer
configure: move code out of main of check_exec_crash()
Tested-by: Hendrik Leppkes <h.leppkes at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d000c5ae7e375ddf45215c550e9b2b815d3677af
---
configure | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 454554b..55738d1 100755
--- a/configure
+++ b/configure
@@ -845,6 +845,9 @@ check_exec_crash(){
static void sighandler(int sig){
raise(SIGTERM);
}
+int func(void){
+ $code
+}
int main(void){
signal(SIGILL, sighandler);
signal(SIGFPE, sighandler);
@@ -852,7 +855,7 @@ int main(void){
#ifdef SIGBUS
signal(SIGBUS, sighandler);
#endif
- { $code }
+ return func();
}
EOF
}
More information about the ffmpeg-cvslog
mailing list