Can't use [ as an alias for "test" in configure scripts, as [ and ] are
authorGuy Harris <guy@alum.mit.edu>
Sat, 24 Aug 2013 01:01:04 +0000 (01:01 -0000)
committerGuy Harris <guy@alum.mit.edu>
Sat, 24 Aug 2013 01:01:04 +0000 (01:01 -0000)
quoting characters; use test instead.

svn path=/trunk/; revision=51503

configure.ac

index 419cb9c0f8d328997741306969fc0ea2551d4976..4fc4cbe75f0d47a5af74541be0fc750ade814da9 100644 (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