telepathy-glib: configure.ac: use AS_CASE instead of case/esac
Simon McVittie
smcv at kemper.freedesktop.org
Mon Aug 27 02:41:51 PDT 2012
Module: telepathy-glib
Branch: master
Commit: f2089116f3e01d4797d2eaf96e35b67312330084
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=f2089116f3e01d4797d2eaf96e35b67312330084
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Mon Aug 13 11:26:40 2012 +0100
configure.ac: use AS_CASE instead of case/esac
This is the same as AS_IF, but for "case". It's safer for the same
reasons.
Signed-off-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
Reviewed-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=53445
---
configure.ac | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
index 75fa543..ac1ea09 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,13 +127,11 @@ AS_IF([test "x$enable_fatal_warnings" = xyes],
# --no-copy-dt-needed-entries is the new name for --no-add-needed which
# is much more widely supported
- case "$ERROR_LDFLAGS" in
- (*-Wl,--no-copy-dt-needed-entries*)
- ;;
- (*)
- TP_ADD_LINKER_FLAG([ERROR_LDFLAGS], [-Wl,--no-add-needed])
- ;;
- esac
+ AS_CASE(["$ERROR_LDFLAGS"],
+ [*-Wl,--no-copy-dt-needed-entries*],
+ [],
+ [*],
+ [TP_ADD_LINKER_FLAG([ERROR_LDFLAGS], [-Wl,--no-add-needed])])
])
AS_IF([test "x$enable_fatal_warnings" = xyes],
More information about the telepathy-commits
mailing list