From: Ross Paterson Date: Mon, 16 Aug 2010 14:24:42 +0000 (+0000) Subject: fix FP_CHECK_ALIGNMENT for autoconf 2.66 (fixes #4252) X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=593790400ecb8e6dbbef1ade3da56b1070ba155e 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 --- diff --git a/aclocal.m4 b/aclocal.m4 index 5358cc2..747d064 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