From e6050ef2f4d0d536e49d5779b307d53d3ebb7e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 3 Jul 2012 08:27:18 -0400 Subject: [PATCH] Bug 769772 - Print compiler version being used and drop checks for llvm-gcc and old versions of clang. r=khuey. --- config/autoconf.mk.in | 1 - configure.in | 40 ++++----------------------------- media/libtheora/lib/Makefile.in | 4 ---- 3 files changed, 4 insertions(+), 41 deletions(-) diff --git a/config/autoconf.mk.in b/config/autoconf.mk.in index 4bbd06e241a..a995be6a968 100644 --- a/config/autoconf.mk.in +++ b/config/autoconf.mk.in @@ -131,7 +131,6 @@ MOZ_WAVE = @MOZ_WAVE@ MOZ_MEDIA = @MOZ_MEDIA@ MOZ_VORBIS = @MOZ_VORBIS@ MOZ_TREMOR = @MOZ_TREMOR@ -MOZ_NO_THEORA_ASM = @MOZ_NO_THEORA_ASM@ MOZ_OPUS = @MOZ_OPUS@ MOZ_WEBM = @MOZ_WEBM@ MOZ_MEDIA_PLUGINS = @MOZ_MEDIA_PLUGINS@ diff --git a/configure.in b/configure.in index 9015ca9e512..d177943ce2a 100644 --- a/configure.in +++ b/configure.in @@ -1026,42 +1026,10 @@ fi fi # COMPILE_ENVIRONMENT -dnl clang prior to 2.9 (including Xcode 4) does not support all the -dnl constructs required by the libtheora inline asm. This is used to -dnl detect and disable it -AC_MSG_CHECKING([whether the C compiler is clang older than version 2.9]) -AC_LANG_SAVE -AC_LANG_C -AC_TRY_COMPILE([ -#if defined(__clang__) -# if __clang_major__<2 || (__clang_major__==2 && __clang_minor__<9) -# error "clang older than 2.9 detected" -# endif -#endif - ], - [], - result="no", - result="yes") -AC_LANG_RESTORE -AC_MSG_RESULT([$result]) -if test "$result" = "yes"; then - MOZ_NO_THEORA_ASM=1 -fi -dnl XCode 4.2 also shipped an llvm-gcc which couldn't compile -dnl the libtheora inline asm. -AC_MSG_CHECKING([bad gcc versions]) -if `$CC --version | grep -q "Apple Inc. build 5658"`; then - AC_MSG_RESULT([Apple build 5658]) - MOZ_NO_THEORA_ASM=1 -else - AC_MSG_RESULT([we're ok]) -fi - -AC_SUBST(MOZ_NO_THEORA_ASM) - -if test "x$MOZ_NO_THEORA_ASM" = x1; then - AC_MSG_WARN([Disabling libtheora inline assembly]) -fi +AC_MSG_CHECKING([compiler version]) +# Just print it so it shows up in the logs. +cc_version=$($CC --version) +AC_MSG_RESULT([$cc_version]) if test -n "$MAKE"; then if test `echo $MAKE | grep -c make.py` != 1; then diff --git a/media/libtheora/lib/Makefile.in b/media/libtheora/lib/Makefile.in index a6d35f4abe6..def93415f6a 100644 --- a/media/libtheora/lib/Makefile.in +++ b/media/libtheora/lib/Makefile.in @@ -21,7 +21,6 @@ DEFINES += -DTHEORA_DISABLE_ENCODE ifeq ($(findstring 86,$(OS_TEST)), 86) ifneq ($(OS_ARCH),SunOS) ifneq ($(OS_ARCH)$(OS_TEST),WINNTx86_64) -ifndef MOZ_NO_THEORA_ASM DEFINES += -DOC_X86_ASM ifeq (64,$(findstring 64,$(OS_TEST))) DEFINES += -DOC_X86_64_ASM @@ -29,7 +28,6 @@ endif endif endif endif -endif VPATH := $(srcdir) @@ -63,7 +61,6 @@ CSRCS += \ $(NULL) endif else -ifndef MOZ_NO_THEORA_ASM VPATH += $(srcdir)/x86 CSRCS += \ @@ -76,7 +73,6 @@ CSRCS += \ $(NULL) endif endif -endif ifdef GNU_AS ifeq ($(findstring arm,$(OS_TEST)), arm)