First, you're right: lipo -info reports that the architecture is 'x86_64'.
Here are the steps I follow, written here as I performed them. For this test, by the way, I don't change anything in the makefiles, as I do when trying to compile statically.
(Following your advice, I installed svnX and used it to make a local copy of the latest source in ~/DOSBox\ SVN\ Copy)
1. Open a terminal, cd to ~/DOSBox\ SVN\ Copy/dosbox/trunk.
2. Enter the command: make clean (only if I have built from the same source previously, and I built from this source yesterday).
3. Paste in to the terminal the following commands (which are copied directly from your post in Buidling CVS on OS X 10.6.1, with line breaks added as needed):
CFLAGS='-O2 -arch i386'
CPPFLAGS='-I/opt/local/include'
CXXFLAGS='-O2 -mdynamic-no-pic -arch i386'
MACOSX_DEPLOYMENT_TARGET=' […]
Show full quote
CFLAGS='-O2 -arch i386'
CPPFLAGS='-I/opt/local/include'
CXXFLAGS='-O2 -mdynamic-no-pic -arch i386'
MACOSX_DEPLOYMENT_TARGET='10.6'
CXX='/usr/bin/g++-4.2'
F90FLAGS='-O2 -m32'
LDFLAGS='-L/opt/local/lib'
OBJC='/usr/bin/gcc-4.2'
FCFLAGS='-O2 -m32'
INSTALL='/usr/bin/install -c'
OBJCFLAGS='-O2 -arch i386'
FFLAGS='-O2 -m32'
CC='/usr/bin/gcc-4.2'
I leave the same terminal open, enter "set" and check the output. (I've posted the output of set here: http://dl.dropbox.com/u/271144/envvars.txt)
4. Still leaving the same terminal open, I enter:
./autogen.sh
./configure
make
When i ran lipo -info on src/dosbox, it reported:
Non-fat file: dosbox is architecture: x86_64
So obviously I'm doing something wrong. 🙁 But I've studied your posts extremely closely, and I can't see what I'm leaving out.
(I thought a workaround MIGHT be to change the MACOSX_DEPLOYMENT_TARGET= variable to 10.4, but that also produced an x86_64-architectured build.)