Can't use [ as an alias for "test" in configure scripts, as [ and ] are

quoting characters; use test instead.

svn path=/trunk/; revision=51503
This commit is contained in:
Guy Harris 2013-08-24 01:01:04 +00:00
parent c06e10baa4
commit e45f35d623
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ AC_ARG_ENABLE(osx-deploy-target,
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs \
/Library/Developer/CommandLineTools/SDKs
do
if [ -d "$i" ]
if test -d "$i"
then
[deploy_target=`sw_vers -productVersion | sed 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.[0-9]*/\1.\2/'`]
break