Mercurial > sdl-ios-xcode
comparison sdl.m4 @ 168:e92aa316c517
Added Max's patches for building MacOS X apps on command line
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 04 Sep 2001 23:18:45 +0000 |
parents | cf2af46e9e2a |
children | 37e3ca9254c7 |
comparison
equal
deleted
inserted
replaced
167:cb384ef627f6 | 168:e92aa316c517 |
---|---|
56 dnl | 56 dnl |
57 dnl Now check if the installed SDL is sufficiently new. (Also sanity | 57 dnl Now check if the installed SDL is sufficiently new. (Also sanity |
58 dnl checks the results of sdl-config to some extent | 58 dnl checks the results of sdl-config to some extent |
59 dnl | 59 dnl |
60 rm -f conf.sdltest | 60 rm -f conf.sdltest |
61 case "$target" in | |
62 *-*-darwin*) | |
63 cp -r `$SDL_CONFIG --nib` . | |
64 dnl create an Info.plist file, unless one exists | |
65 if test -f Info.plist ; then | |
66 : | |
67 else | |
68 cp `$SDL_CONFIG --plist` . | |
69 fi | |
70 ;; | |
71 esac | |
61 AC_TRY_RUN([ | 72 AC_TRY_RUN([ |
62 #include <stdio.h> | 73 #include <stdio.h> |
63 #include <stdlib.h> | 74 #include <stdlib.h> |
64 #include <string.h> | 75 #include <string.h> |
65 #include "SDL.h" | 76 #include "SDL.h" |
167 SDL_LIBS="" | 178 SDL_LIBS="" |
168 ifelse([$3], , :, [$3]) | 179 ifelse([$3], , :, [$3]) |
169 fi | 180 fi |
170 AC_SUBST(SDL_CFLAGS) | 181 AC_SUBST(SDL_CFLAGS) |
171 AC_SUBST(SDL_LIBS) | 182 AC_SUBST(SDL_LIBS) |
183 case "$target" in | |
184 *-*-darwin*) | |
185 SDL_APPLE_CREATOR="????" | |
186 AC_SUBST(SDL_APPLE_CREATOR) | |
187 ;; | |
188 esac | |
172 rm -f conf.sdltest | 189 rm -f conf.sdltest |
173 ]) | 190 ]) |