forked from anarsoul/gmenu2x-zipit
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.in
77 lines (66 loc) · 1.53 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
AC_INIT(configure.in)
AM_INIT_AUTOMAKE(gmenu2x, 0.1)
AC_ISC_POSIX
AC_PROG_CC
AC_HEADER_STDC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CXXCPP
AC_LANG_CPLUSPLUS
# Check for SDL
SDL_VERSION=1.2.8
AM_PATH_SDL($SDL_VERSION, :,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
AC_ARG_WITH(sdl-gfx-prefix,
[ --with-sdl-gfx-prefix=DIR specify where SDL_gfx library is installed],
[SDL_GFX_PREFIX="$withval"])
AC_CHECK_LIB(SDL_gfx, rotozoomSurfaceXY,,check_sdl_gfx="no")
# Check for libpng
AC_CHECK_LIB(png, png_read_image,,check_png="no")
AC_ARG_ENABLE(platform,
[ --enable-platform=X specify the targeted platform],
[GMENU2X_PLATFORM="$enableval"], [GMENU2X_PLATFORM="default"])
case "$GMENU2X_PLATFORM" in
gp2x)
AC_DEFINE(PLATFORM_GP2X)
PLATFORM="gp2x"
SCREEN_RES="320x240"
;;
dingux)
AC_DEFINE(PLATFORM_DINGUX)
PLATFORM="dingux"
SCREEN_RES="320x240"
;;
nanonote)
AC_DEFINE(PLATFORM_NANONOTE)
PLATFORM="nanonote"
SCREEN_RES="320x240"
;;
zipitz2)
AC_DEFINE(PLATFORM_ZIPITZ2)
PLATFORM="zipitz2"
SCREEN_RES="320x240"
;;
pandora)
AC_DEFINE(PLATFORM_PANDORA)
PLATFORM="pandora"
SCREEN_RES="800x480"
;;
default)
AC_MSG_WARN([*** No --enable-platform specified. Defaulting to "pc".])
AC_DEFINE(PLATFORM_PC)
PLATFORM="pc"
SCREEN_RES="800x480"
;;
pc)
AC_DEFINE(PLATFORM_PC)
PLATFORM="pc"
SCREEN_RES="800x480"
;;
*)
AC_MSG_ERROR([*** Unknown platform.])
;;
esac
AC_SUBST(PLATFORM)
AC_SUBST(SCREEN_RES)
AC_OUTPUT(Makefile src/Makefile data/Makefile)