configure: mips: Support both-endian compilers
[libav.git] / configure
index d776d0e..4c14163 100755 (executable)
--- a/configure
+++ b/configure
@@ -3320,6 +3320,16 @@ case "$arch" in
         arch="arm"
     ;;
     mips*|IP*)
+        case "$arch" in
+        *el)
+            add_cppflags -EL
+            add_ldflags -EL
+        ;;
+        *eb)
+            add_cppflags -EB
+            add_ldflags -EB
+        ;;
+        esac
         arch="mips"
     ;;
     parisc*|hppa*)