build: Minor fixes in autogen.sh
authorJens Georg <jensg@openismus.com>
Thu, 31 Oct 2013 00:39:09 +0000 (01:39 +0100)
committerJens Georg <jensg@openismus.com>
Thu, 31 Oct 2013 13:48:27 +0000 (14:48 +0100)
Found by Mihai Moldovan <ionic@ionic.de>

autogen.sh

index ebb728a..274db38 100755 (executable)
@@ -33,15 +33,15 @@ DEFAULT_ARGS="--enable-vala --enable-valadoc --enable-maintainer-mode  --enable-
 
 mkdir -p m4
 
-if [ $1 = "devel" ]; then
+if [ "x$1" = "xdevel" ]; then
     DEFAULT_ARGS="$DEFAULT_ARGS --enable-uninstalled --enable-debug --disable-apidocs"
     shift
-elif [$1 = "release" ]; then
+elif [ "x$1" = "xrelease" ]; then
     DEFAULT_ARGS="$DEFAULT_ARGS --enable-apidocs --disable-debug"
     shift
 fi
 
-# require automak 1.11 for vala support
+# require automake 1.11 for vala support
 REQUIRED_AUTOMAKE_VERSION=1.11 \
 REQUIRED_AUTOCONF_VERSION=2.64 \
 REQUIRED_LIBTOOL_VERSION=2.2.6 \