The problem is spaces in the path names. What's more, there is no easy fix until you delete them.
The problem is in the log file - it appears only in the middle of it ...
configure:4112: checking for C compiler version configure:4121: /Developer 4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.0.1 --version >&5 ./configure: line 4123: /Developer: is a directory configure:4132: $? = 126 configure:4121: /Developer 4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.0.1 -v >&5 ./configure: line 4123: /Developer: is a directory configure:4132: $? = 126 configure:4121: /Developer 4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.0.1 -V >&5 ./configure: line 4123: /Developer: is a directory configure:4132: $? = 126 configure:4121: /Developer 4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.0.1 -qversion >&5 ./configure: line 4123: /Developer: is a directory configure:4132: $? = 126 configure:4151: checking whether the C compiler works configure:4173: /Developer 4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.0.1 -isysroot /Developer\ 4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -isysroot /Developer\ 4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -Wl,-syslibroot /Developer\ 4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk conftest.c >&5 ./configure: line 4175: /Developer: is a directory configure:4177: $? = 126 configure:4215: result: no
To get paths with spaces for work, you need to be sure that whenever CC used, the path is enclosed in double quotes. You will also need to specify the CFLAGS value so that the path is not split, but -isysroot is separated from the path leading to -isysroot .
If you want adventure, you can try:
export CC="\"/Developer 4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.0.1\"" export CFLAGS="-isysroot \"/Developer 4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk\""
There is a chance that it will work, but I do not want to rely on him. Basically, it adds double quotes at reasonably selected points in the values ββof the environment variables, in the hope that the shell will be able to save them in the right places. I don't think this will work, but it might be worth a try.
I recommend renaming the path where you installed the software without a space, possibly as:
/Developer-4.2/Platforms/...
(I briefly described the $HOME/External Source Repositories directory with areas for git and svn and hg (Mercurial) copies of external source repositories, including the mentioned VCS. VCS was ok with spaces in the names, but the build processes for loaded repositories (including native systems VCS assemblies) were not ( git enabled, IIRC). Instead, the directory is now called $HOME/External-Source-Repositories .)