summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-06-29 23:47:50 +0000
committerMåns Rullgård <mans@mansr.com>2006-06-29 23:47:50 +0000
commit1a268accb58b7cdcd3a309161fe6a0be2aa3c2a8 (patch)
tree355dd767fdefacccd2e320b9c6f88ff82f763309 /configure
parentfac252f95b7522813d03a62709e7a351bbeb1785 (diff)
compiler sanity check
Originally committed as revision 5551 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index 3b73f9ddc4..db94c14dd4 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