gst-arch.m4: fix unaligned detection for x86-64 when cross compiling
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 18 Jan 2010 15:22:01 +0000 (16:22 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 19 Jan 2010 08:20:54 +0000 (09:20 +0100)
Commit 4221e9dc (amd64/x86_64 allows unaligned memory access too) added
x86-64 to the unaligned access whitelist, but missed the trailing
wildcards, so the test never succeeds (host is something like
x86_64-unknown-linux-gnu).

When building natively, this isn't a big deal as the AC_TRY_RUN test
correctly detects it, but that doesn't work when cross compiling so
the build dies with:

configure: error: cannot run test program while cross compiling
See `config.log' for more details.

Fix it by adding the trailing wildcards.

Fixes bug #607317.

m4/gst-arch.m4

index f40db1d6528c8a917d0dd242c0013f411d1e52ca..c136c955c7ca4f5468ed9466ebaf06ee0f0b4a69 100644 (file)
@@ -91,7 +91,7 @@ AC_DEFUN([AG_GST_UNALIGNED_ACCESS], [
         _AS_ECHO_N([(blacklisted) ])
         as_cv_unaligned_access=no
        ;;
-      i?86*|x86_64|amd64|powerpc*|m68k*|cris*)
+      i?86*|x86_64*|amd64*|powerpc*|m68k*|cris*)
         _AS_ECHO_N([(whitelisted) ])
         as_cv_unaligned_access=yes
        ;;