summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorRoss Paterson <ross@soi.city.ac.uk>2010-08-16 14:24:42 +0000
committerRoss Paterson <ross@soi.city.ac.uk>2010-08-16 14:24:42 +0000
commit593790400ecb8e6dbbef1ade3da56b1070ba155e (patch)
tree62d5aa38fe57fae6699e80ca145fe6d060d868a4 /aclocal.m4
parent0cb74388d80c12f0804db61744a041be7fcfa10b (diff)
downloadhaskell-593790400ecb8e6dbbef1ade3da56b1070ba155e.tar.gz
fix FP_CHECK_ALIGNMENT for autoconf 2.66 (fixes #4252)
Recent versions of AS_LITERAL_IF don't like *'s. Fix from http://blog.gmane.org/gmane.comp.sysutils.autoconf.general/month=20100701
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 5358cc2727..747d064f2a 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -141,7 +141,7 @@ AC_DEFUN([FP_COMPUTE_INT],
# A variation of AC_CHECK_SIZEOF for computing the alignment restrictions of a
# given type. Defines ALIGNMENT_TYPE.
AC_DEFUN([FP_CHECK_ALIGNMENT],
-[AS_LITERAL_IF([$1], [],
+[AS_LITERAL_IF(m4_translit([[$1]], [*], [p]), [],
[AC_FATAL([$0: requires literal arguments])])[]dnl
AC_CHECK_TYPE([$1], [], [], [$3])[]dnl
m4_pushdef([fp_Cache], [AS_TR_SH([fp_cv_alignment_$1])])[]dnl