[next] telepathy-glib: configure.ac: don't rely on test -a

Jonny Lamb jonny at kemper.freedesktop.org
Fri Aug 31 03:18:53 PDT 2012


Module: telepathy-glib
Branch: next
Commit: facbaeaa87dcfbe4af811af4bac344225bc855e8
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=facbaeaa87dcfbe4af811af4bac344225bc855e8

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Mon Aug 13 11:20:29 2012 +0100

configure.ac: don't rely on test -a

test EXPR -a EXPR is a common extension (present in bash, dash etc.), but
is not guaranteed by POSIX.

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 43b1271..d1abd97 100644
--- a/configure.ac
+++ b/configure.ac
@@ -194,7 +194,7 @@ AC_ARG_ENABLE([installed-examples],
     [enable_installed_examples=$installed_tests])
 AM_CONDITIONAL([INSTALL_EXAMPLES], [test "$enable_installed_examples" = yes])
 
-if test x$installed_tests = xyes -a x$enable_installed_examples != xyes; then
+if test x$installed_tests = xyes && test x$enable_installed_examples != xyes; then
   AC_MSG_ERROR([examples must be installed when tests are installed.])
 fi
 



More information about the telepathy-commits mailing list