forked from clach04/eech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
212 lines (200 loc) · 7.71 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
210
211
212
dnl Process this file with autoconf to produce a configure script.
AC_INIT(aphavoc/source/init.c)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE("eech", "0.0.1")
dnl Use this language for tests
AC_LANG_C
dnl Checks for programs.
AC_PROG_CC
AC_ISC_POSIX
AC_PROG_LIBTOOL
dnl Checks for libraries.
AC_CHECK_LIB(GL, glBegin)
AM_PATH_SDL(1.2.0,
CFLAGS="$CFLAGS $SDL_CFLAGS";
LIBS="$LIBS $SDL_LIBS";
AC_DEFINE(USE_SDL),
AC_MSG_ERROR(SDL is not installed))
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(stdio.h)
AC_CHECK_HEADERS(time.h)
AC_PATH_TOOL(SYSTEM_TIME_H_PATH, time.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_C_INLINE
dnl Checks for library functions.
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(open close)
AC_CHECK_FUNCS(time gmtime)
dnl Misc stuff.
STATIC_LIB="-all-static"
AC_SUBST(STATIC_LIB)
dnl --enable-debug
AC_MSG_CHECKING("whether debug is enabled")
AC_ARG_ENABLE(debug,
[ --enable-debug Build a DEBUG version.],[
AC_DEFINE(DEBUG)
ARG_ENABLE_VALUE="yes"
],[
ARG_ENABLE_VALUE="no"
])
AC_MSG_RESULT($ARG_ENABLE_VALUE)
dnl Define LINUX for few OS-specific sections (eg memory reporting)
if test `uname -o | grep -c Linux` -gt 0; then
AC_DEFINE(LINUX)
fi
AC_OUTPUT( Makefile
modules/Makefile
modules/2d/Makefile
modules/3d/Makefile
modules/3d/clouds/Makefile
modules/3d/terrain/Makefile
modules/3d/terrain/external/Makefile
modules/graphics/Makefile
modules/graphics/SDL/Makefile
modules/graphics/external/Makefile
modules/maths/Makefile
modules/misc/Makefile
modules/multi/Makefile
modules/sound/Makefile
modules/sound/external/Makefile
modules/system/Makefile
modules/system/unix/Makefile
modules/system/external/Makefile
modules/userint2/Makefile
modules/userint2/ui_draw/Makefile
modules/userint2/ui_obj/Makefile
modules/userint2/ui_obj/area/Makefile
modules/userint2/ui_obj/button/Makefile
modules/userint2/ui_obj/close/Makefile
modules/userint2/ui_obj/list/Makefile
modules/userint2/ui_obj/menu/Makefile
modules/userint2/ui_obj/number/Makefile
modules/userint2/ui_obj/radio/Makefile
modules/userint2/ui_obj/screen/Makefile
modules/userint2/ui_obj/text/Makefile
modules/userint2/ui_obj/toggle/Makefile
modules/userint2/ui_obj/slider/Makefile
modules/userint2/ui_obj/input/Makefile
modules/userint2/ui_sys/Makefile
modules/userint2/ui_sys/ui_attrs/Makefile
modules/userint2/ui_sys/ui_funcs/Makefile
modules/userint2/ui_sys/ui_types/Makefile
aphavoc/Makefile
aphavoc/source/Makefile
aphavoc/source/ai/Makefile
aphavoc/source/ai/ai_misc/Makefile
aphavoc/source/ai/faction/Makefile
aphavoc/source/ai/highlevl/Makefile
aphavoc/source/ai/parser/Makefile
aphavoc/source/ai/taskgen/Makefile
aphavoc/source/app3d/Makefile
aphavoc/source/appsound/Makefile
aphavoc/source/comms/Makefile
aphavoc/source/entity/Makefile
aphavoc/source/entity/en_misc/Makefile
aphavoc/source/entity/en_misc/en_anim/Makefile
aphavoc/source/entity/en_misc/en_maths/Makefile
aphavoc/source/entity/fixed/Makefile
aphavoc/source/entity/fixed/city/Makefile
aphavoc/source/entity/fixed/crater/Makefile
aphavoc/source/entity/fixed/cbuild/Makefile
aphavoc/source/entity/fixed/object/Makefile
aphavoc/source/entity/fixed/pylon/Makefile
aphavoc/source/entity/fixed/scenic/Makefile
aphavoc/source/entity/fixed/site/Makefile
aphavoc/source/entity/fixed/siteupdt/Makefile
aphavoc/source/entity/fixed/segment/Makefile
aphavoc/source/entity/mobile/Makefile
aphavoc/source/entity/mobile/aircraft/Makefile
aphavoc/source/entity/mobile/aircraft/fixwing/Makefile
aphavoc/source/entity/mobile/aircraft/helicop/Makefile
aphavoc/source/entity/mobile/cargo/Makefile
aphavoc/source/entity/mobile/vehicle/Makefile
aphavoc/source/entity/mobile/vehicle/anti_air/Makefile
aphavoc/source/entity/mobile/vehicle/person/Makefile
aphavoc/source/entity/mobile/vehicle/ship/Makefile
aphavoc/source/entity/mobile/vehicle/routed/Makefile
aphavoc/source/entity/mobile/weapon/Makefile
aphavoc/source/entity/mobile/weapon/configs/Makefile
aphavoc/source/entity/special/Makefile
aphavoc/source/entity/special/bridge/Makefile
aphavoc/source/entity/special/camera/Makefile
aphavoc/source/entity/special/division/Makefile
aphavoc/source/entity/special/effect/Makefile
aphavoc/source/entity/special/effect/explosn/Makefile
aphavoc/source/entity/special/effect/particle/Makefile
aphavoc/source/entity/special/effect/smokelst/Makefile
aphavoc/source/entity/special/effect/soundeff/Makefile
aphavoc/source/entity/special/effect/sprite/Makefile
aphavoc/source/entity/special/force/Makefile
aphavoc/source/entity/special/group/Makefile
aphavoc/source/entity/special/guide/Makefile
aphavoc/source/entity/special/keysite/Makefile
aphavoc/source/entity/special/landing/Makefile
aphavoc/source/entity/special/pilot/Makefile
aphavoc/source/entity/special/regen/Makefile
aphavoc/source/entity/special/sector/Makefile
aphavoc/source/entity/special/session/Makefile
aphavoc/source/entity/special/task/Makefile
aphavoc/source/entity/special/update/Makefile
aphavoc/source/entity/special/waypoint/Makefile
aphavoc/source/entity/system/Makefile
aphavoc/source/entity/system/en_attrs/Makefile
aphavoc/source/entity/system/en_comms/Makefile
aphavoc/source/entity/system/en_debug/Makefile
aphavoc/source/entity/system/en_funcs/Makefile
aphavoc/source/entity/system/en_funcs/en_list/Makefile
aphavoc/source/entity/system/en_main/Makefile
aphavoc/source/entity/system/en_msgs/Makefile
aphavoc/source/entity/system/en_types/Makefile
aphavoc/source/events/Makefile
aphavoc/source/gameflow/Makefile
aphavoc/source/gunships/Makefile
aphavoc/source/gunships/avionics/Makefile
aphavoc/source/gunships/avionics/apache/Makefile
aphavoc/source/gunships/avionics/comanche/Makefile
aphavoc/source/gunships/avionics/common/Makefile
aphavoc/source/gunships/avionics/havoc/Makefile
aphavoc/source/gunships/avionics/hokum/Makefile
aphavoc/source/gunships/cockpits/Makefile
aphavoc/source/gunships/cockpits/apache/Makefile
aphavoc/source/gunships/cockpits/comanche/Makefile
aphavoc/source/gunships/cockpits/common/Makefile
aphavoc/source/gunships/cockpits/havoc/Makefile
aphavoc/source/gunships/cockpits/hokum/Makefile
aphavoc/source/gunships/dynamics/Makefile
aphavoc/source/gunships/dynamics/apache/Makefile
aphavoc/source/gunships/dynamics/comanche/Makefile
aphavoc/source/gunships/dynamics/common/Makefile
aphavoc/source/gunships/dynamics/havoc/Makefile
aphavoc/source/gunships/dynamics/hokum/Makefile
aphavoc/source/gunships/views/Makefile
aphavoc/source/misc/Makefile
aphavoc/source/ui_menu/Makefile
aphavoc/source/ui_menu/advert/Makefile
aphavoc/source/ui_menu/credits/Makefile
aphavoc/source/ui_menu/czone/Makefile
aphavoc/source/ui_menu/exit/Makefile
aphavoc/source/ui_menu/gametype/Makefile
aphavoc/source/ui_menu/gunships/Makefile
aphavoc/source/ui_menu/ingame/Makefile
aphavoc/source/ui_menu/ingame/campaign/Makefile
aphavoc/source/ui_menu/ingame/common/Makefile
aphavoc/source/ui_menu/ingame/fflight/Makefile
aphavoc/source/ui_menu/initsc/Makefile
aphavoc/source/ui_menu/main/Makefile
aphavoc/source/ui_menu/multiop/Makefile
aphavoc/source/ui_menu/options/Makefile
aphavoc/source/ui_menu/player/Makefile
aphavoc/source/ui_menu/session/Makefile
aphavoc/source/ui_menu/sessparm/Makefile
aphavoc/source/ui_menu/title/Makefile
aphavoc/source/ui_menu/loading/Makefile
aphavoc/source/ui_menu/dedicate/Makefile )
rm -f aphavoc/makefile
echo I'm using LIBTOOL because I couldn't link all the different libs.la otherwise.
echo The drawback is that you have to type "libtool --mode=execute gvd <prog_name>"
echo in order to run the program in a debugger, like gvd.