diff options
Diffstat (limited to 'm4/ax_append_compile_flags.m4')
-rw-r--r-- | m4/ax_append_compile_flags.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/m4/ax_append_compile_flags.m4 b/m4/ax_append_compile_flags.m4 index dc7b8660..2bb27ef2 100644 --- a/m4/ax_append_compile_flags.m4 +++ b/m4/ax_append_compile_flags.m4 | |||
@@ -4,7 +4,7 @@ | |||
4 | # | 4 | # |
5 | # SYNOPSIS | 5 | # SYNOPSIS |
6 | # | 6 | # |
7 | # AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS]) | 7 | # AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) |
8 | # | 8 | # |
9 | # DESCRIPTION | 9 | # DESCRIPTION |
10 | # | 10 | # |
@@ -20,6 +20,8 @@ | |||
20 | # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to | 20 | # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to |
21 | # force the compiler to issue an error when a bad flag is given. | 21 | # force the compiler to issue an error when a bad flag is given. |
22 | # | 22 | # |
23 | # INPUT gives an alternative input source to AC_COMPILE_IFELSE. | ||
24 | # | ||
23 | # NOTE: This macro depends on the AX_APPEND_FLAG and | 25 | # NOTE: This macro depends on the AX_APPEND_FLAG and |
24 | # AX_CHECK_COMPILE_FLAG. Please keep this macro in sync with | 26 | # AX_CHECK_COMPILE_FLAG. Please keep this macro in sync with |
25 | # AX_APPEND_LINK_FLAGS. | 27 | # AX_APPEND_LINK_FLAGS. |
@@ -54,12 +56,12 @@ | |||
54 | # modified version of the Autoconf Macro, you may extend this special | 56 | # modified version of the Autoconf Macro, you may extend this special |
55 | # exception to the GPL to apply to your modified version as well. | 57 | # exception to the GPL to apply to your modified version as well. |
56 | 58 | ||
57 | #serial 4 | 59 | #serial 5 |
58 | 60 | ||
59 | AC_DEFUN([AX_APPEND_COMPILE_FLAGS], | 61 | AC_DEFUN([AX_APPEND_COMPILE_FLAGS], |
60 | [AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) | 62 | [AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) |
61 | AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) | 63 | AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) |
62 | for flag in $1; do | 64 | for flag in $1; do |
63 | AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3]) | 65 | AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3], [$4]) |
64 | done | 66 | done |
65 | ])dnl AX_APPEND_COMPILE_FLAGS | 67 | ])dnl AX_APPEND_COMPILE_FLAGS |