From: Kathryn R. <kr...@cs...> - 2010-10-13 18:02:36
|
Hi all, I'm running Mac OSX 10.5.8. It seems to have come with a copy of swig 1.3.31 as a Universal Binary: $ file /usr/bin/swig-1.3.31 /usr/bin/swig-1.3.31: Mach-O universal binary with 2 architectures /usr/bin/swig-1.3.31 (for architecture i386): Mach-O executable i386 /usr/bin/swig-1.3.31 (for architecture ppc7400): Mach-O executable ppc I'd like to upgrade to swig 2.0+, but have been unable to figure out how to get ./configure to create a similarly dual-architecture executable. I would like to end up with a Universal Binary for i386 and x86_64, specifically so I can build a swig-dependent project (Lemur) to work with both Java 5 (i386) and Java 6 (only available as x86_64, unfortunately, and our Java version-of-choice due to other library dependencies). In the past I've modified simple projects to build universal binaries by adding an -arch argument for each architecture I want to include, but I haven't done it for an automake project before and I find it's a little hairier to locate the right flag definition. :) Google doesn't seem to know anything about swig and universal binaries, and I came up empty on the list archives. Does swig ./configure support a dual-architecture build in a straightforward way? If not, is there any guidance someone might give me as to how to modify the configuration files before building swig? Or, is this a lost cause, and I should either (a) pick an architecture, and woe betide if I need swig for a Java 5 project, or (b) do both, separately, and figure out how to tell dependent projects which to use later. Best, Katie |