summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-01-17 20:54:23 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-01-17 20:54:23 -0800
commit7cae64b4eed192a49ea258089639ec44da6095e2 (patch)
treeb985de2a995674ad01ead7920526e80b9b4798b6 /configure
parent9cc3a0c79c5a6af2691b2b566f8e3eb3654b806f (diff)
downloademacs-7cae64b4eed192a49ea258089639ec44da6095e2.tar.gz
emacs-7cae64b4eed192a49ea258089639ec44da6095e2.tar.bz2
emacs-7cae64b4eed192a49ea258089639ec44da6095e2.zip
Improve performance on non-GCC hosts with __aligned__.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure32
1 files changed, 31 insertions, 1 deletions
diff --git a/configure b/configure
index a15a9ea56a3..56701c27f5b 100755
--- a/configure
+++ b/configure
@@ -8278,6 +8278,37 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
+$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
+if ${emacs_cv_attribute_aligned+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+char __attribute__ ((__aligned__ (1 << 3))) c;
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ emacs_cv_attribute_aligned=yes
+else
+ emacs_cv_attribute_aligned=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
+$as_echo "$emacs_cv_attribute_aligned" >&6; }
+if test $emacs_cv_attribute_aligned = yes; then
+
+$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
+
+fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
@@ -18959,4 +18990,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
-