mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-23 14:09:51 +08:00
* libm4.m4 (m4_ifvanl): Don't output a newline for empty
arguments
This commit is contained in:
parent
c550ac5ae5
commit
5eda671dae
@ -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...
|
||||
|
11
libm4.m4
11
libm4.m4
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user