Shame on me. ;)
I'll try to make up for it by posting an example of how I've integrated building for Universal Binaries into my configure.ac script:
AC_ARG_ENABLE(universal-binary,
AS_HELP_STRING([--enable-universal-binary],
[build as Universal Binary (Mac OS X Only)]),
[],
[enabled_universal_binary="no"])
----------------------------------------------------------------
Then, in the darwin-specific section:
----------------------------------------------------------------
*darwin*)
framer="darwin"
platform="darwin"
AC_DEFINE(DARWIN)
DARWINLIBS=" -framework CoreFoundation -lresolv"
AS_IF([test "$enable_universal_binary" = "yes"],[
# Check to see if the system has xcode-select (Mac OS X 10.5 "Leopard" or later).
# This is necessary if the user has installed their development SDKs somewhere
# other than the default location (/Developer)
# if xcode-select doesn't exist, assume the tools are in /Developer
AC_CHECK_FILE([/usr/bin/xcode-select],[
sysroot=`/usr/bin/xcode-select -print-path`
],[
sysroot="/Developer"
])
AC_MSG_CHECKING([For Mac OS X SDK Path])
AC_MSG_RESULT([$sysroot])
CFLAGS="$CFLAGS -isysroot $sysroot/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
], [])
;;
And of course, following technote 2137's advice about disabling dependency tracking:
checking for /usr/bin/xcode-select... yes
checking For Mac OS X SDK Path... /Developer
Hope it helps someone. :)
- Terry