Bug 528131 - build config should check whether __force_align_arg_pointer__ is valid. r=ted

This commit is contained in:
Makoto Kato 2010-03-01 13:24:42 +09:00
Родитель 0d5d4908a0
Коммит 8842c606aa
2 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -641,6 +641,7 @@ WRAP_SYSTEM_INCLUDES = @WRAP_SYSTEM_INCLUDES@
HAVE_ARM_SIMD = @HAVE_ARM_SIMD@
HAVE_ARM_NEON = @HAVE_ARM_NEON@
HAVE_GCC_ALIGN_ARG_POINTER = @HAVE_GCC_ALIGN_ARG_POINTER@
MOZ_SPLASHSCREEN = @MOZ_SPLASHSCREEN@

Просмотреть файл

@ -3128,6 +3128,26 @@ fi # Sun Studio on Solaris
AC_SUBST(WRAP_SYSTEM_INCLUDES)
AC_SUBST(VISIBILITY_FLAGS)
dnl Check for __force_align_arg_pointer__ for SSE2 on gcc
dnl ========================================================
if test "$GNU_CC"; then
CFLAGS_save="${CFLAGS}"
CFLAGS="${CFLAGS} -Werror"
AC_CACHE_CHECK(for __force_align_arg_pointer__ attribute,
ac_cv_force_align_arg_pointer,
[AC_TRY_COMPILE([__attribute__ ((__force_align_arg_pointer__)) void test() {}],
[],
ac_cv_force_align_arg_pointer="yes",
ac_cv_force_align_arg_pointer="no")])
CFLAGS="${CFLAGS_save}"
if test "$ac_cv_force_align_arg_pointer" = "yes"; then
HAVE_GCC_ALIGN_ARG_POINTER=1
else
HAVE_GCC_ALIGN_ARG_POINTER=
fi
fi
AC_SUBST(HAVE_GCC_ALIGN_ARG_POINTER)
dnl Checks for header files.
dnl ========================================================
AC_HEADER_DIRENT