aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorİsmail Dönmez <ismail@namtrac.org>2008-03-28 11:53:37 +0000
committerDiego Biurrun <diego@biurrun.de>2008-03-28 11:53:37 +0000
commit38a05ab6efd39954bb759cbc34a410b7e5ce2c33 (patch)
tree559260c5f488480a08cfa053e2a5ad37b82a51a5
parentc023bfe9935308b6c925970cab9c0520ad364404 (diff)
downloadffmpeg-38a05ab6efd39954bb759cbc34a410b7e5ce2c33.tar.gz
Replace hackish CFLAGS 64 bit test by a proper compilation check.
patch by İsmail Dönmez, ismail namtrac org Originally committed as revision 12620 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure10
1 files changed, 3 insertions, 7 deletions
diff --git a/configure b/configure
index 8d4be56760..e78537c49d 100755
--- a/configure
+++ b/configure
@@ -1233,13 +1233,9 @@ case "$arch" in
x86_64|amd64)
arch="x86_32"
enable fast_unaligned
- canon_arch="`$cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`"
- if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
- if ! echo $CFLAGS | grep -q -- -m32; then
- arch="x86_64"
- enable fast_64bit
- fi
- fi
+ check_cc <<EOF && enable fast_64bit && arch="x86_64"
+ int test[sizeof(char*) - 7];
+EOF
;;
# armv4l is a subset of armv[567]*l
arm|armv[4567]*l)