fix FP_CHECK_ALIGNMENT for autoconf 2.66 (fixes #4252)
authorRoss Paterson <ross@soi.city.ac.uk>
Mon, 16 Aug 2010 14:24:42 +0000 (14:24 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Mon, 16 Aug 2010 14:24:42 +0000 (14:24 +0000)
Recent versions of AS_LITERAL_IF don't like *'s.  Fix from

http://blog.gmane.org/gmane.comp.sysutils.autoconf.general/month=20100701

aclocal.m4

index 5358cc2..747d064 100644 (file)
@@ -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