From e92379d03cf73827983fe2862d56f0087408065c Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Mon, 3 Sep 2001 01:22:13 +0000 Subject: [PATCH] * ltdl.m4 (AC_CHECK_TYPES): This macro was introduced in Autoconf 2.5x. Backported a fallback implementation (directly to ltdl.m4) from Autoconf 2.50, so that we can still bootstrap with Autoconf 2.13. --- ChangeLog | 5 +++++ ltdl.m4 | 24 +++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 584735355..7599f56b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2001-09-03 Gary V. Vaughan + * ltdl.m4 (AC_CHECK_TYPES): This macro was introduced in Autoconf + 2.5x. Backported a fallback implementation (directly to ltdl.m4) + from Autoconf 2.50, so that we can still bootstrap with Autoconf + 2.13. + From Marius Vollmer : * libltdl/ltdl.c (tryall_dlopen_module): Don't forget to propogate errors over recurse levels. diff --git a/ltdl.m4 b/ltdl.m4 index 0038be241..75be47258 100644 --- a/ltdl.m4 +++ b/ltdl.m4 @@ -285,6 +285,28 @@ fi ])# AC_LTDL_DLSYM_USCORE +# AC_CHECK_TYPES(TYPES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], +# [INCLUDES]) +# --------------------------------------------------------------- +# This macro did not exist in Autoconf 2.13, which we do still support +ifdef([AC_CHECK_TYPES], [], +[define([AC_CHECK_TYPES], + [AC_CACHE_CHECK([for $1], ac_Type, + [AC_TRY_LINK([$4], + [if (($1 *) 0) + return 0; + if (sizeof ($1)) + return 0;], + [ac_Type=yes], + [ac_Type=no])]) + if test "x$ac_Type" = xyes; then + ifelse([$2], [], [:], [$2]) + else + ifelse([$3], [], [:], [$3]) + fi]) +])# AC_CHECK_TYPES + + # AC_LTDL_FUNC_ARGZ # ----------------- AC_DEFUN([AC_LTDL_FUNC_ARGZ], @@ -293,7 +315,7 @@ AC_DEFUN([AC_LTDL_FUNC_ARGZ], AC_CHECK_TYPES([error_t], [], [AC_DEFINE([error_t], [int], - [Define to a type to use for `error_t' if it is not otherwise available.])], + [Define to a type to use for \`error_t' if it is not otherwise available.])], [#if HAVE_ARGZ_H # include #endif]) -- 2.47.2