[banshee] [build] replace obvious bashism with cryptic junk



commit 92116f0a685b0bff383057440e80e14bdf23f25b
Author: Romain Tartière <romain blogreen org>
Date:   Thu Jan 28 15:12:02 2010 -0500

    [build] replace obvious bashism with cryptic junk
    
    Detect Darwin (or not) even when /bin/sh is not bash.
    
    Signed-off-by: Aaron Bockover <abockover novell com>

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 13065a4..304788e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -194,7 +194,7 @@ AC_SUBST(BUILD_HOST_OS)
 AC_SUBST(BUILD_HOST_CPU)
 AC_SUBST(BUILD_TIME)
 
-AM_CONDITIONAL(PLATFORM_DARWIN, test "x${host_os:0:6}" = "xdarwin")
+AM_CONDITIONAL([PLATFORM_DARWIN], [test "x${host_os%${host_os#??????}}" = "xdarwin"])
 
 SHAVE_INIT([build/m4/shave], [enable])
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]