version: 3.10
source: http://heasarc.gsfc.nasa.gov/fitsio/
parallel: OK
CFITSIO is slowly catching up to OSX Intel, but it still makes a couple assumptions about Macs that need to be fixed. Edit fitsio2.h.
First, find the bit that says defined(__powerpc64__) and change it to defined(__ppc64__).
Then, find the line:
/* generic 32-bit IBM PC */
(it should be right after a bunch of defined() tests for various intel processors). Replace the #define MACHINE IBMPC line after that with:
#if defined(__APPLE__) #define MACHINE OTHERTYPE /* Mac Intel is not NATIVE and not IBMPC */ #else #define MACHINE IBMPC #endif
Save, and you're ready to compile.
In the cfitsio source:
export MACOSX_DEPLOYMENT_TARGET=10.6 ./configure CFLAGS="-Os -arch i386 -arch x86_64" make sudo make install
In the cfitsio source:
export MACOSX_DEPLOYMENT_TARGET=10.5 ./configure CFLAGS="-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64" make sudo make install
In the cfitsio source:
export MACOSX_DEPLOYMENT_TARGET=10.4 ./configure CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" make sudo make install