[vlc-devel] commit: Fix SSE compilation when you Crosscompile, and fix O3 flags. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Sep 3 01:01:41 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Tue Sep  2 16:01:39 2008 -0700| [82c07fb1b695c26cbafacd40f4a45201daed4100] | committer: Jean-Baptiste Kempf 

Fix SSE compilation when you Crosscompile, and fix O3 flags.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82c07fb1b695c26cbafacd40f4a45201daed4100
---

 configure.ac |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5a0d0ec..e1fcbb8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -945,6 +945,17 @@ CFLAGS="${CFLAGS_save}"
 RDC_PROG_CC_WFLAGS([all extra sign-compare undef pointer-arith bad-function-cast cast-align write-strings missing-prototypes volatile-register-var])
 RDC_PROG_CC_FLAGS_IFELSE([-pipe])
 
+dnl
+dnl  Debugging mode
+dnl
+AC_ARG_ENABLE(debug,
+[  --enable-debug          debug mode (default disabled)])
+test "${enable_debug}" != "yes" && enable_debug="no"
+AH_TEMPLATE(NDEBUG,
+            [Define to 1 if debug code should NOT be compiled])
+AS_IF([test "x${enable_debug}" = "xno"], [AC_DEFINE(NDEBUG)])
+
+
 dnl Check for various optimization flags
 AC_CACHE_CHECK([if \$CC accepts -Os],
     [ac_cv_c_os],
@@ -1335,7 +1346,7 @@ AC_ARG_ENABLE(sse,
 [  --disable-sse           disable SSE (1 and 2) optimizations (default auto)]
 ,, [
   case "${host_cpu}" in
-    i686|x86_64)
+    i*86|x86_64)
       enable_sse=yes
       ;;
     *)
@@ -1570,16 +1581,6 @@ if test "${enable_optimizations}" != "no"; then
 fi
 
 dnl
-dnl  Debugging mode
-dnl
-AC_ARG_ENABLE(debug,
-[  --enable-debug          debug mode (default disabled)])
-test "${enable_debug}" != "yes" && enable_debug="no"
-AH_TEMPLATE(NDEBUG,
-            [Define to 1 if debug code should NOT be compiled])
-AS_IF([test "x${enable_debug}" = "xno"], [AC_DEFINE(NDEBUG)])
-
-dnl
 dnl  Test coverage
 dnl
 AC_ARG_ENABLE(coverage,




More information about the vlc-devel mailing list