Compiling ATS2 in Mac OS X

Using the instructions found at www.ats-lang.org/DOWNLOAD you can compile
ATS2 on Mac OS X 10.7+. You’ll need to do the following before you can
compile.

  1. Install the latest XCode from the App Store (Currently 4.6.3)

  2. Using a package manager (MacPorts http://www.macports.org/), HomeBrewhttp://www.brew.sh)
    install GMP.

  3. Find where GMP is installed, MacPorts puts it in a non-standard
    location. Add the lib folder to your ld search path and the include folder
    to your include search path.

    export C_INCLUDE_PATH=/opt/local/include
    export DYLD_LIBRARY_PATH=/opt/local/lib

  4. Follow the regular instructions. When you run “make”, make sure you
    disable garbage collection.

    make GCFLAG=-D_ATS_NGC all

  5. (Optional) If you want garbage collection, you can use libgc, available
    in MacPorts under “boehmgc”. After installing, you can compile ATS2 with

    make GCFLAG=-D_ATS_GCBDW all

You also need to install ‘aclocal’ for make to work.