From c5790126e216058d4adbe2001fd2c93f447db9c5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 9 Jun 2014 11:28:25 +0200 Subject: [PATCH] m4/ax_append*: update to serial 4 --- m4/ax_append_compile_flags.m4 | 6 ++++-- m4/ax_append_link_flags.m4 | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/m4/ax_append_compile_flags.m4 b/m4/ax_append_compile_flags.m4 index 4254170..dc7b866 100644 --- a/m4/ax_append_compile_flags.m4 +++ b/m4/ax_append_compile_flags.m4 @@ -54,10 +54,12 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 2 +#serial 4 AC_DEFUN([AX_APPEND_COMPILE_FLAGS], -[for flag in $1; do +[AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) +AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) +for flag in $1; do AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3]) done ])dnl AX_APPEND_COMPILE_FLAGS diff --git a/m4/ax_append_link_flags.m4 b/m4/ax_append_link_flags.m4 index 4fc4337..c73ddaf 100644 --- a/m4/ax_append_link_flags.m4 +++ b/m4/ax_append_link_flags.m4 @@ -52,10 +52,12 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 2 +#serial 4 AC_DEFUN([AX_APPEND_LINK_FLAGS], -[for flag in $1; do +[AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) +AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) +for flag in $1; do AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3]) done ])dnl AX_APPEND_LINK_FLAGS -- 2.30.2