-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
209 lines (161 loc) · 5.18 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
AC_INIT
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(beebem,0.0.13)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AC_PROG_INSTALL
#AC_PROG_LIBTOOL
# dnl Checks for GTK libraries.
# AM_PATH_GTK_2_0(2.2.0,,AC_MSG_ERROR(mypkgname 0.1 needs GTK+ 2.2.0))
dnl Check for SDL
SDL_VERSION=1.2.0
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
#==============================================================================
AC_CHECK_HEADERS(zlib.h)
AC_CHECK_LIB(z, zlibVersion)
#==============================================================================
# EXAMPLE:
#
#AC_ARG_WITH(debugger,
# [ --with-debugger compile with additional logging],
# , withval="yes"
#)
#
#AC_ARG_WITH(debugger,
# [ --without-debugger compile without additional logging],
# , withval="no"
#)
#
#if test "$withval" = "yes"; then
# AC_DEFINE(WITH_DEBUG_OUTPUT, 1, "with additional debugging")
# echo "compile with debugger (--with-debugger)"
#else
# echo "compile without debugger (--without-debugger)"
#fi
echo "--------------------------------------------------------------------"
echo "BeebEm will:"
echo ""
AC_ARG_ENABLE(debugging,
[ --enable-debugging (BeebEm) Enable extra debugging output],
enableval="yes", enableval="no"
)
#AC_ARG_ENABLE(debugging,
# [ --disable-debugging Disable debug],
# , enableval="no"
#)
if test "$enableval" = "yes"; then
AC_DEFINE(WITH_DEBUG_OUTPUT, 1, "with additional debugging")
AC_DEFINE(EG_DEBUG, 1, "GUI debugging code")
echo "compile with debugging output"
else
AC_DEFINE(WITHOUT_LEVEL_INDICATOR, 1, "Disable level indicator")
AC_DEFINE(WITHOUT_SHENANIGANS, 1, "Disable all __LINE__ shenanigans")
echo "compile without debugging output"
fi
AC_ARG_ENABLE(econet,
[ --enable-econet (BeebEm) Enable econet support (UNIX only)],
enableval="yes", enableval="no"
)
if test "$enableval" = "yes"; then
AC_DEFINE(WITH_ECONET, 1, "with econet support (UNIX only)")
echo "compile with econet support"
else
echo "compile without econet support"
fi
AC_ARG_ENABLE(realtime_slider,
[ --disable-realtime-slider (BeebEm) Disable realtime slider],
enableval="no", enableval="yes"
)
if test "$enableval" = "yes"; then
echo "compile with realtime slider on slide bar"
else
AC_DEFINE(WITHOUT_REALTIME_SLIDER, 1, "without realtime slider")
echo "compile without realtime slider on slide bar"
fi
AC_ARG_ENABLE(welcome_message,
[ --disable-welcome_message (BeebEm) Disable welcome message],
enableval="no", enableval="yes"
)
if test "$enableval" = "yes"; then
echo "compile with welcome message"
else
AC_DEFINE(WITHOUT_WELCOME_MESSAGE, 1, "without annoying welcome message")
echo "compile without welcome message"
fi
AC_ARG_ENABLE(fs-fps,
[ --disable-fs-fps (BeebEm) Disable FPS indicator when fullscreen],
enableval="no", enableval="yes"
)
if test "$enableval" = "yes"; then
AC_DEFINE(WITH_FS_FPS, 1, "With Fullscreen FPS")
echo "compile with fullscreen FPS indicator"
else
echo "compile without fullscreen FPS indicator"
fi
AC_ARG_ENABLE(system-cp,
[ --disable-system-cp (BeebEm) Use slower C file copy instead of 'cp'],
enableval="no", enableval="yes"
)
if test "$enableval" = "yes"; then
AC_DEFINE(WITH_SYSTEM_CP, 1, "With system 'cp' command")
echo "compile with call to system 'cp' command when copying files"
else
echo "compile with internal (slow) C code when copying files"
fi
AC_ARG_ENABLE(force-colormap,
[ --disable-force-colormap (BeebEm) Do not force colormap for 8 bit color],
enableval="no", enableval="yes"
)
if test "$enableval" = "yes"; then
AC_DEFINE(WITH_FORCED_CM, 1, "With forced colormap for 8 bit displays")
echo "compile with a forced colormap for 8 bit displays"
else
echo "compile without a forced colormap for 8 bit displays (may distort colors)."
fi
#==============================================================================
AC_DEFINE(WITH_UNIX_EXTRAS, 1, "Enable UNIX extras")
AC_DEFINE(REG_FILENAME, "beebem.registry", "Fake windows registry filename")
#AC_ARG_ENABLE(shenanigans,
# [ --enable-shenanigans Enable debug],
# , enableval="yes"
# )
#
#AC_ARG_ENABLE(shenanigans,
# [ --disable-shenanigans Disable debug],
# , enableval="no"
#)
#
##echo "shan=$enableval"
#if test "$enableval" = "yes"; then
# AC_DEFINE(WITHOUT_SHENANIGANS, 1, "Disable all __LINE__ shenanigans")
#fi
#==============================================================================
#AC_ARG_ENABLE(indicator,
# [ --enable-indicator Enable debug],
# , enableval="yes"
# )
#
#AC_ARG_ENABLE(indicator,
# [ --disable-indicator Disable debug],
# , enableval="no"
#)
#
##echo "ind=$enableval"
#if test "$enableval" = "yes"; then
# AC_DEFINE(WITHOUT_LEVEL_INDICATOR, 1, "Disable level indicator")
#fi
echo "--------------------------------------------------------------------"
#==============================================================================
AC_SUBST(CFLAGS)
AC_SUBST(LIBS)
AC_OUTPUT(Makefile doc/Makefile m4/Makefile src/Makefile src/gui/Makefile data/Makefile)
#echo ""; echo "(end)"