configure.in
changeset 807 674df5617bba
parent 802 3c609d54f100
child 814 5a417d2a8603
     1.1 --- a/configure.in	Tue Feb 10 17:34:38 2004 +0000
     1.2 +++ b/configure.in	Wed Feb 11 07:09:11 2004 +0000
     1.3 @@ -2592,6 +2592,17 @@
     1.4      ;;
     1.5  esac
     1.6  
     1.7 +case "$ARCH" in
     1.8 +  macosx)
     1.9 +    # Evil hack to allow static linking on Mac OS X
    1.10 +    SDL_STATIC_LIBS="\${exec_prefix}/lib/libSDLmain.a \${exec_prefix}/lib/libSDL.a"
    1.11 +    ;;
    1.12 +  *)
    1.13 +    SDL_STATIC_LIBS="$SDL_LIBS"
    1.14 +    ;;
    1.15 +esac
    1.16 +
    1.17 +
    1.18  STATIC_SYSTEM_LIBS="$SYSTEM_LIBS"
    1.19  
    1.20  dnl Output the video drivers we use
    1.21 @@ -2614,6 +2625,7 @@
    1.22  dnl Expand the cflags and libraries needed by apps using SDL
    1.23  AC_SUBST(SDL_CFLAGS)
    1.24  AC_SUBST(SDL_LIBS)
    1.25 +AC_SUBST(SDL_STATIC_LIBS)
    1.26  AC_SUBST(SDL_RLD_FLAGS)
    1.27  
    1.28  dnl Expand the libraries needed for static and dynamic linking