configure.in
changeset 6833 c34a64af7751
parent 6774 ad8522052ce6
child 6849 b9dcf6242476
     1.1 --- a/configure.in	Sun Jan 06 19:04:53 2013 +0300
     1.2 +++ b/configure.in	Sun Feb 03 14:03:49 2013 -0800
     1.3 @@ -32,6 +32,16 @@
     1.4  AC_SUBST(SDL_BINARY_AGE)
     1.5  AC_SUBST(SDL_VERSION)
     1.6  
     1.7 +dnl On Mac OS X we need to build with clang
     1.8 +dnl We can't use $host or reorder AC_CANONICAL_HOST because of autoconf magic.
     1.9 +case "`/bin/sh $ac_aux_dir/config.guess`" in
    1.10 +    *-*-darwin*)
    1.11 +        if test "x$CC" = "x"; then
    1.12 +            CC=clang
    1.13 +        fi
    1.14 +        ;;
    1.15 +esac
    1.16 +
    1.17  # libtool versioning
    1.18  LT_INIT([win32-dll])
    1.19