* libm4.m4 (m4_ifvanl): Don't output a newline for empty

arguments
This commit is contained in:
Pavel Roskin 2000-09-20 10:45:10 +00:00
parent c550ac5ae5
commit 5eda671dae
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2000-09-20 Pavel Roskin <proski@gnu.org>
* libm4.m4 (m4_ifvanl): Don't output a newline for empty
arguments
2000-09-19 Akim Demaille <akim@epita.fr>
* tests/atspecific.m4 (AT_TEST_MACRO): Rename as...

View File

@ -184,12 +184,13 @@ define([ifval], [ifelse([$1], [], [$3], [$2])])
# m4_ifvanl(COND, [IF-TRUE], [IF-FALSE])
# --------------------------------------
# Same as `ifval', but add an extra newline to IF-TRUE or IF-FALSE.
# Same as `ifval', but add an extra newline to IF-TRUE or IF-FALSE
# unless that argument is empty.
define([m4_ifvanl], [ifelse([$1], [],
[$3
],
[$2
])])
[ifelse([$3], [], [], [$3
])],
[ifelse([$2], [], [], [$2
])])])
# ifset(MACRO, [IF-TRUE], [IF-FALSE])