[SCM] libav/experimental: compiler sanity check

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:48:26 UTC 2013


The following commit has been merged in the experimental branch:
commit 1a268accb58b7cdcd3a309161fe6a0be2aa3c2a8
Author: Måns Rullgård <mans at mansr.com>
Date:   Thu Jun 29 23:47:50 2006 +0000

    compiler sanity check
    
    Originally committed as revision 5551 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/configure b/configure
index 3b73f9d..db94c14 100755
--- a/configure
+++ b/configure
@@ -1033,6 +1033,20 @@ if test $tune != "generic"; then
     esac
 fi
 
+# compiler sanity check
+check_exec <<EOF
+int main(){
+    return 0;
+}
+EOF
+if test "$?" != 0; then
+    echo "$cc is unable to create an executable file."
+    if test -z "$cross_prefix" -a "$cross_compile" = no; then
+        echo "If $cc is a cross-compiler, use the --cross-compile option."
+    fi
+    die "C compiler test failed."
+fi
+
 # check for SIMD availability
 
 # AltiVec flags: The FSF version of GCC differs from the Apple version

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list