From e9084ab7c415dd9ee8b793488cb5b71422f8fbcb Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 3 Apr 2004 19:35:48 +0000 Subject: [PATCH] Previous commit broke build on non-CygWin. Fixed so it now works on both CygWin and non-CygWin machines. svn path=/trunk/yasm/; revision=1112 --- m4/ltdl.m4 | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/m4/ltdl.m4 b/m4/ltdl.m4 index 35deb0e9..ff6c8d7f 100644 --- a/m4/ltdl.m4 +++ b/m4/ltdl.m4 @@ -91,7 +91,7 @@ AC_REQUIRE([AC_LTDL_DLLIB]) AC_REQUIRE([AC_LTDL_SYMBOL_USCORE]) AC_REQUIRE([AC_LTDL_DLSYM_USCORE]) AC_REQUIRE([AC_LTDL_SYS_DLOPEN_DEPLIBS]) -#AC_REQUIRE([AC_LTDL_FUNC_ARGZ]) +AC_REQUIRE([AC_LTDL_FUNC_ARGZ]) AC_CHECK_HEADERS([assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ stdio.h unistd.h]) @@ -413,16 +413,16 @@ fi # AC_LTDL_FUNC_ARGZ # ----------------- -#AC_DEFUN([AC_LTDL_FUNC_ARGZ], -#[AC_CHECK_HEADERS([argz.h]) -# -#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.])], -# [#if HAVE_ARGZ_H -## include -##endif]) -# +AC_DEFUN([AC_LTDL_FUNC_ARGZ], +[AC_CHECK_HEADERS([argz.h]) + +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.])], + [#if HAVE_ARGZ_H +# include +#endif]) + #AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next argz_stringify]) -#])# AC_LTDL_FUNC_ARGZ +])# AC_LTDL_FUNC_ARGZ -- 2.40.0