aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-17 08:47:23 +0000
committerChristian Grothoff <christian@grothoff.org>2015-06-17 08:47:23 +0000
commitfe4a45e34281094cbdb725e149396710d5f50e8d (patch)
tree286dae4038da4d9a0331a11f264308ac972231a7 /m4
parent729b7467e3b75c60c4f5256c08f0682997f9ae12 (diff)
downloadgnunet-fe4a45e34281094cbdb725e149396710d5f50e8d.tar.gz
gnunet-fe4a45e34281094cbdb725e149396710d5f50e8d.zip
-fix align.m4 macro based on Daniel Golle's report
Diffstat (limited to 'm4')
-rw-r--r--m4/align.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/m4/align.m4 b/m4/align.m4
index 25e1ee2d4..7bcbae8fa 100644
--- a/m4/align.m4
+++ b/m4/align.m4
@@ -11,18 +11,18 @@ dnl the same distribution terms as the rest of that program.
11# see some message along those lines on the console). 11# see some message along those lines on the console).
12AC_DEFUN([AC_UNALIGNED_64_ACCESS], 12AC_DEFUN([AC_UNALIGNED_64_ACCESS],
13[AC_CACHE_CHECK([whether unaligned 64-bit access works], 13[AC_CACHE_CHECK([whether unaligned 64-bit access works],
14 ac_cv_unaligned_64_access, 14 ac_cv_unaligned_64_access,
15 [ 15 [
16 AC_RUN_IFELSE([AC_LANG_PROGRAM([[struct S { int a,b,c;};]], 16 AC_RUN_IFELSE([AC_LANG_PROGRAM([[struct S { int a,b,c;};]],
17 [[struct S s = {0,0,0}; long long * p = (long long *) &s.b; 17 [[struct S s = {0,0,0}; long long * p = (long long *) &s.b;
18 void *bp = malloc (50); 18 void *bp = malloc (50);
19 long long x = *p; 19 long long x = *p;
20 long long *be = (long long*) &bp[1]; 20 long long *be = (long long*) &bp[1];
21 long long y = *be; 21 long long y = *be;
22 return (int) x*y;]]), 22 return (int) x*y;]])],
23 ac_cv_unaligned_64_access=yes, 23 ac_cv_unaligned_64_access=yes,
24 ac_cv_unaligned_64_access=no, 24 ac_cv_unaligned_64_access=no,
25 ac_cv_unaligned_64_access=no]) 25 ac_cv_unaligned_64_access=no)
26 ]) 26 ])
27 case "$ac_cv_unaligned_64_access" in 27 case "$ac_cv_unaligned_64_access" in
28 *yes) value=1;; 28 *yes) value=1;;