[folks] Use the M4Sugar conditional statements instead of plain m4 ones
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Use the M4Sugar conditional statements instead of plain m4 ones
- Date: Fri, 10 Sep 2010 13:25:25 +0000 (UTC)
commit 13aee0e2eca151cb25564447177b166e260ed0b4
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Sep 9 18:51:14 2010 +0100
Use the M4Sugar conditional statements instead of plain m4 ones
configure.ac | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4dcd51c..79fdd90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,7 +24,8 @@ m4_define([folks_full_version],
folks_base_version.folks_nano_version)])
m4_define([folks_maybe_datestamp],
- m4_esyscmd([if test x]folks_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
+ m4_if(folks_released, [1], [],
+ [m4_esyscmd([date +.%Y%m%d | tr -d '\n\r'])]))
m4_define([folks_version], folks_full_version[]folks_maybe_datestamp)
@@ -179,7 +180,7 @@ AS_COMPILER_FLAG([-Wno-unused-parameter],
[wno_unused_parameter=yes],
[wno_unused_parameter=no])
-ifelse(folks_released, [1], [],
+m4_if(folks_released, [1], [],
[
if test x$werror = xyes; then
ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]