source: trunk/configure.ac @ 1981

Last change on this file since 1981 was 1981, checked in by sam, 7 years ago

ps3: refactor elf → self build logic and make make_fself mandatory
when building for the PS3 on a Unix system.

File size: 15.3 KB
Line 
1dnl configure script for Lol Engine
2
3AC_INIT(lolengine, 0.0)
4AC_PREREQ(2.50)
5AC_CONFIG_AUX_DIR(.auto)
6AC_CANONICAL_SYSTEM
7AM_INIT_AUTOMAKE([subdir-objects no-define tar-ustar silent-rules])
8dnl AM_MAINTAINER_MODE
9AM_DEFAULT_VERBOSITY=0
10
11dnl Versioning of the separate software we ship
12LOLUNIT_VERSION=0.1
13AC_SUBST(LOLUNIT_VERSION)
14LOLREMEZ_VERSION=0.2
15AC_SUBST(LOLREMEZ_VERSION)
16
17AM_CONFIG_HEADER(config.h)
18
19AM_PROG_CC_C_O
20AC_PROG_CPP
21AC_PROG_CXX
22AC_PROG_CXXCPP
23AC_PROG_RANLIB
24
25AC_LIBTOOL_WIN32_DLL
26AM_PROG_LIBTOOL
27AC_LIBTOOL_CXX
28
29AC_C_CONST
30AC_C_INLINE
31
32dnl Ensure an error is thrown if pkg-config M4 files are not found.
33m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
34m4_pattern_forbid([^PKG_CHECK_MODULES$])
35m4_pattern_forbid([^PKG_PROG_PKG_CONFIG$])
36
37dnl Do not use PKG_CONFIG_LIBDIR when cross-compiling.
38if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then
39  export PKG_CONFIG_LIBDIR=/dev/null
40fi
41
42dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
43dnl now otherwise it might be set in an obscure if statement. Same thing for
44dnl PKG_PROG_PKG_CONFIG which needs to be called first.
45AC_EGREP_CPP(yes, foo)
46PKG_PROG_PKG_CONFIG()
47
48AM_CONDITIONAL(USE_GLEW, test "${ac_cv_my_have_glew}" != "no")
49dnl conditional builds
50AC_ARG_ENABLE(debug,
51  [  --enable-debug          build debug versions of the game (default no)])
52AC_ARG_ENABLE(release,
53  [  --enable-release        build final release of the game (default no)])
54AC_ARG_ENABLE(experimental,
55  [  --enable-experimental   experimental build (default no)])
56
57AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
58AC_CHECK_HEADERS(fastmath.h pthread.h libutil.h util.h pty.h glob.h)
59AC_CHECK_HEADERS(sys/ioctl.h sys/ptrace.h sys/stat.h sys/syscall.h sys/user.h)
60AC_CHECK_HEADERS(sys/wait.h)
61AC_CHECK_HEADERS(linux/kdev_t.h linux/major.h)
62AC_CHECK_HEADERS(security/pam_appl.h security/pam_misc.h)
63AC_CHECK_HEADERS(pam/pam_appl.h pam/pam_misc.h)
64
65if test "${enable_debug}" = "yes"; then
66  AC_DEFINE(LOL_DEBUG, 1, Define to 1 to activate debug)
67  OPT="-O"
68else
69  OPT="-O3 -ffast-math -fno-strength-reduce -fomit-frame-pointer"
70fi
71
72if test "${enable_release}" = "yes"; then
73  AC_DEFINE(LOL_RELEASE, 1, Define to 1 to activate final release)
74  REL=""
75else
76  REL="-g"
77fi
78
79if test "${enable_experimental}" = "yes"; then
80  AC_DEFINE(LOL_EXPERIMENTAL, 1, Define to 1 to activate experimental build)
81fi
82
83dnl No exceptions
84CXXFLAGS="${CXXFLAGS} -fno-exceptions -fno-rtti"
85dnl Optimizations
86CXXFLAGS="${CXXFLAGS} ${REL} ${OPT}"
87dnl Code qui fait des warnings == code de porc == deux baffes dans ta gueule
88CXXFLAGS="${CXXFLAGS} -Wall -Wextra -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wsign-compare"
89
90AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")
91AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
92AC_CHECK_LIB(util, forkpty, UTIL_LIBS="${UTIL_LIBS} -lutil")
93
94dnl Are we on the PS3?
95ac_cv_my_have_ps3="no"
96AC_CHECK_LIB(sysmodule_stub, cellSysmoduleLoadModule,
97 [ac_cv_my_have_ps3="yes"
98  LOL_LIBS="${LOL_LIBS} -lsysmodule_stub -lsysutil_stub -lresc_stub"
99  dnl  For PSGL
100  AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available) # FIXME: hack
101  GL_LIBS="${GL_LIBS} -lPSGL -lgcm_cmd -lgcm_sys_stub"
102  dnl  This is the old way; we now use CELL_SDK instead of CELLSDK
103  if test "x${CELLSDK}" != x -a "x${CELL_SDK}" = x; then
104    CELL_SDK="${CELLSDK}"
105  fi
106  if test "x${enable_debug}" = xyes; then
107    GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/debug"
108  elif test "x${enable_release}" = xyes; then
109    GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/ultra-opt"
110  else
111    GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/opt"
112  fi
113  dnl  For the runtime Cg compiler
114  GL_LIBS="${GL_LIBS} -lcgc -lPSGLcgc"
115  dnl  For the PNG decoder
116  LOL_LIBS="${LOL_LIBS} -lpngdec_stub"
117  dnl  For the pad library
118  LOL_LIBS="${LOL_LIBS} -lio_stub -lusbd_stub -lpadfilter"
119  dnl  Disable this warning, it's too verbose with vector.h
120  CXXFLAGS="${CXXFLAGS} -Wno-sign-compare"
121  AC_PATH_PROG(MAKE_FSELF, make_fself, no)
122  if test "${MAKE_FSELF}" = "no"; then
123    AC_MSG_ERROR([[Building for PS3 but make_fself not found]])
124  fi],
125 [MAKE_FSELF=no])
126AM_CONDITIONAL(USE_PS3, test "${ac_cv_my_have_ps3}" != "no")
127
128
129dnl  Are we building using MinGW?
130LIBS_save="$LIBS"
131LIBS="$LIBS -mwindows -mwin32"
132AC_MSG_CHECKING(for -mwindows -mwin32)
133AC_TRY_LINK([], [],
134 [AC_MSG_RESULT(yes)
135  CXXFLAGS="${CXXFLAGS} -mwindows -mwin32"
136  LOL_LIBS="${LOL_LIBS} -uWinMain -u_WinMain@16"],
137 [AC_MSG_RESULT(no)])
138LIBS="$LIBS_save"
139
140
141dnl  Are we on the Xbox 360?
142dnl  Answer: NO! we don't know how to build for it anyway
143AM_CONDITIONAL(USE_X360, false)
144
145
146dnl Are we on a Direct3D 9 platform?
147#ac_cv_my_have_d3d9="no"
148#AC_CHECK_HEADERS(d3d9.h, [ac_cv_my_have_d3d9="yes"])
149#if test "${ac_cv_my_have_d3d9}" != "no"; then
150#  D3D_LIBS="${D3D_LIBS} -ld3d9 -ld3dx9 -lxinput"
151#  AC_DEFINE(USE_D3D9, 1, Define to 1 to use DirectX 9)
152#fi
153#AM_CONDITIONAL(USE_D3D9, test "${ac_cv_my_have_d3d9}" != "no")
154
155
156dnl  Find which version of OpenGL to use
157ac_cv_my_have_gl="no"
158ac_cv_my_stop_looking_for_gl="no"
159
160if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
161  LIBS_save="$LIBS"
162  LIBS="$LIBS -Wl,-framework -Wl,OpenGL"
163  AC_MSG_CHECKING(for -framework OpenGL)
164  AC_TRY_LINK([], [],
165   [AC_MSG_RESULT(yes)
166    GL_LIBS="${GL_LIBS} -framework OpenGL"
167    CXXFLAGS="${CXXFLAGS} -ObjC++"],
168   [AC_MSG_RESULT(no)])
169  LIBS="$LIBS_save"
170fi
171
172dnl  Use the Raspberry Pi libraries?
173if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
174  AC_CHECK_HEADERS(bcm_host.h,
175   [AC_CHECK_LIB(vcos, main,
176     [ac_cv_my_have_gl="yes"
177      ac_cv_my_stop_looking_for_gl="yes"
178      AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available)
179      dnl  FIXME: -lEGL does not belong here but the configure test fails
180      dnl  when cross-compiling, so we add it manually here.
181      GL_LIBS="${GL_LIBS} -lGLESv2 -lEGL -lvcos -lvchiq_arm -lbcm_host"])])
182fi
183
184dnl  Use the PS3 PSGL?
185if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
186  AC_CHECK_HEADERS(PSGL/psgl.h,
187   [ac_cv_my_have_gl="yes"
188    ac_cv_my_stop_looking_for_gl="yes"])
189fi
190
191if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
192  PKG_CHECK_MODULES(GLES2, glesv2,
193   [ac_cv_my_have_gl="yes"
194    AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available)
195    GL_CFLAGS="${GL_CFLAGS} ${GLES2_CFLAGS}"
196    GL_LIBS="${GL_LIBS} ${GLES2_LIBS}"],
197   [:])
198fi
199
200if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
201  AC_CHECK_HEADER(GLES2/gl2.h,
202   [ac_cv_my_have_gl="yes"
203    AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available)
204    AC_CHECK_LIB(GLESv2, glEnable,
205     [GL_LIBS="${GL_LIBS} -lGLESv2"])])
206fi
207
208if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
209  PKG_CHECK_MODULES(GL, gl,
210   [ac_cv_my_have_gl="yes"
211    AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available)],
212   [:])
213fi
214
215if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
216  AC_CHECK_LIB(GL, glEnable,
217   [ac_cv_my_have_gl="yes"
218    AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available) # FIXME: hackish
219    GL_LIBS="-lGL"])
220fi
221
222if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
223  AC_CHECK_HEADER(GL/gl.h,
224   [LIBS_save="$LIBS"
225    LIBS="$LIBS -lopengl32"
226    AC_MSG_CHECKING(for glLoadIdentity in -lopengl32)
227    AC_TRY_LINK([#include <GL/gl.h>],
228     [glLoadIdentity();],
229     [ac_cv_my_have_gl="yes"
230      AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available) # FIXME: hack
231      AC_MSG_RESULT(yes)
232      GL_LIBS="-lopengl32"],
233     [AC_MSG_RESULT(no)])
234    LIBS="$LIBS_save"])
235fi
236
237if test "${ac_cv_my_have_gl}" = "no"; then
238  AC_MSG_ERROR([[No OpenGL or OpenGL ES implementation found]])
239fi
240
241
242dnl Use Glew?
243ac_cv_my_have_glew="no"
244PKG_CHECK_MODULES(GLEW, glew,
245 [ac_cv_my_have_glew="yes"
246  GL_CFLAGS="${GLEW_CFLAGS} ${GL_CFLAGS}"
247  GL_LIBS="${GLEW_LIBS} ${GL_LIBS}"],
248 [:])
249AC_CHECK_HEADER(glew.h,
250 [LIBS_save="${LIBS}"
251  LIBS="${LIBS} -lglew32 ${GL_LIBS}"
252  AC_MSG_CHECKING(for glewInit in -lglew32)
253  AC_TRY_LINK(
254   [#include <glew.h>],
255   [glewInit();],
256   [ac_cv_my_have_glew="yes"
257    GL_LIBS="-lglew32 ${GL_LIBS}"
258    AC_MSG_RESULT(yes)],
259   [AC_MSG_RESULT(no)])
260  LIBS="${LIBS_save}"])
261if test "${ac_cv_my_have_glew}" != "no"; then
262  AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available)
263  AC_DEFINE(USE_GLEW, 1, Define to 1 to use libglew)
264fi
265AM_CONDITIONAL(USE_GLEW, test "${ac_cv_my_have_glew}" != "no")
266
267dnl Poor man's GL feature detection if all else failed.
268save_LIBS="${LIBS}"
269LIBS="${LIBS} ${GL_LIBS} ${GLES2_LIBS}"
270AC_CHECK_FUNCS(glBegin)
271LIBS="${save_LIBS}"
272
273
274dnl Use SDL? (always required on Linux or Win32)
275ac_cv_my_have_sdl="no"
276ac_cv_my_have_sdl_image="no"
277ac_cv_my_have_sdl_mixer="no"
278dnl
279dnl  First, try the proper pkg-config check
280PKG_CHECK_MODULES(SDL, sdl, [ac_cv_my_have_sdl="yes"], [:])
281PKG_CHECK_MODULES(SDLMIXER, SDL_mixer, [ac_cv_my_have_sdl_mixer="yes"], [:])
282PKG_CHECK_MODULES(SDLIMAGE, SDL_image, [ac_cv_my_have_sdl_image="yes"], [:])
283dnl
284dnl  Then the old sdl-config method
285if test "x${cross_compiling}" != xyes -a "${ac_cv_my_have_sdl}" != yes; then
286  AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
287  if test "${SDL_CONFIG}" != "no"; then
288    SDL_CFLAGS="${SDL_CFLAGS} `${SDL_CONFIG} --cflags`"
289    SDL_LIBS="${SDL_LIBS} `${SDL_CONFIG} --libs`"
290    ac_cv_my_have_sdl="yes"
291  fi
292fi
293dnl
294dnl  Maybe all this has failed, try direct inclusion
295save_CPPFLAGS="${CPPFLAGS}"
296save_LIBS="${LIBS}"
297CPPFLAGS="${CPPFLAGS} ${SDL_CFLAGS} ${SDLMIXER_CFLAGS} ${SDLIMAGE_CFLAGS}"
298LIBS="${LIBS} ${SDL_LIBS} ${SDLMIXER_LIBS} ${SDLIMAGE_LIBS}"
299AC_CHECK_HEADERS(SDL.h SDL/SDL.h, [ac_cv_my_have_sdl="yes"])
300AC_CHECK_HEADERS(SDL_mixer.h SDL/SDL_mixer.h, [ac_cv_my_have_sdl_mixer="yes"])
301AC_CHECK_HEADERS(SDL_image.h SDL/SDL_image.h, [ac_cv_my_have_sdl_image="yes"])
302AC_CHECK_LIB(SDL, main,
303 [SDL_LIBS="${SDL_LIBS} -lSDL"],
304 [ac_cv_my_have_sdl="no"])
305AC_CHECK_LIB(SDLmain, main,
306 [SDL_LIBS="${SDL_LIBS} -lSDLmain -lSDL"])
307AC_CHECK_LIB(SDL_mixer, main,
308 [SDLMIXER_LIBS="${SDLMIXER_LIBS} -lSDL_mixer"],
309 [ac_cv_my_have_sdl_mixer="no"])
310AC_CHECK_LIB(SDL_image, main,
311 [SDLIMAGE_LIBS="${SDLIMAGE_LIBS} -lSDL_image"],
312 [ac_cv_my_have_sdl_image="no"])
313SDL_CFLAGS="${SDL_CFLAGS} ${SDLMIXER_CFLAGS} ${SDLIMAGE_CFLAGS}"
314SDL_LIBS="${SDL_LIBS} ${SDLMIXER_LIBS} ${SDLIMAGE_LIBS}"
315CPPFLAGS="${save_CPPFLAGS}"
316LIBS="${save_LIBS}"
317if test "${ac_cv_my_have_sdl}" = "no"; then
318  AC_MSG_WARN([SDL not found])
319else
320  AC_DEFINE(USE_SDL, 1, Define to 1 to use SDL)
321fi
322if test "${ac_cv_my_have_sdl_mixer}" = "no"; then
323  AC_MSG_WARN([SDL_mixer not found])
324else
325  AC_DEFINE(USE_SDL_MIXER, 1, Define to 1 to use SDL_mixer)
326fi
327if test "${ac_cv_my_have_sdl_image}" = "no"; then
328  AC_MSG_WARN([SDL_image not found])
329else
330  AC_DEFINE(USE_SDL_IMAGE, 1, Define to 1 to use SDL_image)
331fi
332AM_CONDITIONAL(USE_SDL, test "${ac_cv_my_have_sdl}" = "yes")
333AM_CONDITIONAL(USE_SDL_MIXER, test "${ac_cv_my_have_sdl_mixer}" = "yes")
334AM_CONDITIONAL(USE_SDL_IMAGE, test "${ac_cv_my_have_sdl_image}" = "yes")
335
336
337dnl  Use Flex's FlexLexer.h or ours?
338ac_cv_my_have_flexlexer_h="no"
339AC_LANG_PUSH(C++)
340AC_CHECK_HEADERS(FlexLexer.h, [ac_cv_my_have_flexlexer_h="yes"])
341AC_LANG_POP(C++)
342if test "x${ac_cv_my_have_flexlexer_h}" = "xno"; then
343  LOL_CFLAGS="$LOL_CFLAGS -I\$(top_srcdir)/contrib/flex-2.5.35/include"
344fi
345
346
347dnl  Use NativeClient?
348ac_cv_my_have_nacl="no"
349AC_LANG_PUSH(C++)
350AC_CHECK_HEADERS(ppapi/cpp/instance.h,
351 [ac_cv_my_have_nacl="yes"
352  dnl  Disable this warning, it's too verbose with vector.h
353  CXXFLAGS="${CXXFLAGS} -Wno-sign-compare"])
354AC_LANG_POP(C++)
355AM_CONDITIONAL(USE_NACL, test "${ac_cv_my_have_nacl}" != "no")
356
357
358dnl  Use Android? FIXME: super hacks!
359ac_cv_my_have_android="no"
360AC_CHECK_LIB(log, __android_log_vprint,
361 [ac_cv_my_have_android="yes"
362  LOL_LIBS="${LOL_LIBS} -llog -module"])
363AM_CONDITIONAL(USE_ANDROID, test "${ac_cv_my_have_android}" != "no")
364
365
366dnl  Use EGL?
367ac_cv_my_have_egl="no"
368PKG_CHECK_MODULES(EGL, egl, [ac_cv_my_have_egl="yes"], [:])
369if test "${ac_cv_my_have_egl}" != "no"; then
370  AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
371  EGL_LIBS="${EGL_LIBS} -lX11"
372fi
373AC_CHECK_LIB(EGL, main,
374 [ac_cv_my_have_egl="yes"
375  AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
376  EGL_LIBS="-lEGL"])
377dnl  Raspberry Pi is different, check for it with extra libs; also we
378dnl  look for a different function to bypass autoconf caching
379AC_CHECK_LIB(EGL, eglGetDisplay,
380 [ac_cv_my_have_egl="yes"
381  AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
382  EGL_LIBS="-lEGL -lvcos -lvchiq_arm -lbcm_host -lGLESv2"],
383 [:],
384 [-lvcos -lvchiq_arm -lbcm_host -lGLESv2])
385AM_CONDITIONAL(USE_EGL, test "${ac_cv_my_have_egl}" != "no")
386
387
388dnl Use libpng? (replacement for SDL_image)
389ac_cv_my_have_libpng="no"
390PKG_CHECK_MODULES(LIBPNG, libpng, [ac_cv_my_have_libpng="yes"], [:])
391if test "${ac_cv_my_have_libpng}" != "no"; then
392  AC_DEFINE(USE_LIBPNG, 1, Define to 1 to use libpng)
393fi
394AM_CONDITIONAL(USE_LIBPNG, test "${ac_cv_my_have_libpng}" != "no")
395
396
397dnl Use Windows GDI+?
398ac_cv_my_have_gdiplus="no"
399AC_LANG_PUSH(C++)
400AC_CHECK_HEADERS(gdiplus.h,
401 [ac_cv_my_have_gdiplus="yes"
402  LOL_LIBS="${LOL_LIBS} -lgdiplus"],
403 [ac_cv_my_have_gdiplus="no"],
404 [#include <algorithm>
405  using std::min;
406  using std::max;
407  #include <windows.h>])
408AC_LANG_POP(C++)
409if test "${ac_cv_my_have_gdiplus}" != "no"; then
410  AC_DEFINE(USE_GDIPLUS, 1, Define to 1 to use GDI+)
411fi
412AM_CONDITIONAL(USE_GDIPLUS, test "${ac_cv_my_have_gdiplus}" = "yes")
413
414
415dnl Use libcaca? (required for font generation)
416ac_cv_my_have_caca="no"
417PKG_CHECK_MODULES(CACA, caca >= 0.99.beta17, [ac_cv_my_have_caca="yes"], [:])
418if test "${ac_cv_my_have_caca}" != "no"; then
419  AC_DEFINE(USE_CACA, 1, Define to 1 to use libcaca)
420fi
421AM_CONDITIONAL(USE_CACA, test "${ac_cv_my_have_caca}" != "no")
422
423
424dnl Use libpipi? (required for video recording)
425ac_cv_my_have_pipi="no"
426PKG_CHECK_MODULES(PIPI, pipi, [ac_cv_my_have_pipi="yes"], [:])
427if test "${ac_cv_my_have_pipi}" != "no"; then
428  AC_DEFINE(USE_PIPI, 1, Define to 1 to use libpipi)
429fi
430AM_CONDITIONAL(USE_PIPI, test "${ac_cv_my_have_pipi}" != "no")
431
432
433dnl Use GTK+? (required for the deushax editor)
434ac_cv_my_have_gtkgl="no"
435PKG_CHECK_MODULES(GTK, gtk+-2.0, [ac_cv_my_have_gtkgl="yes"], [:])
436PKG_CHECK_MODULES(GTKGL, gtkgl-2.0, [:], [ac_cv_my_have_gtkgl="no"])
437if test "${ac_cv_my_have_gtkgl}" != "no"; then
438  AC_DEFINE(USE_GTKGL, 1, Define to 1 to use GtkGl)
439fi
440AM_CONDITIONAL(USE_GTKGL, test "${ac_cv_my_have_gtkgl}" != "no")
441
442
443dnl  Can we build neercs?
444AM_CONDITIONAL(BUILD_NEERCS, test "${ac_cv_my_have_caca}" != "no" -a "${ac_cv_header_glob_h}" = "yes")
445
446
447dnl Extra libraries we may need
448AC_SUBST(MATH_LIBS)
449AC_SUBST(PAM_LIBS)
450AC_SUBST(UTIL_LIBS)
451
452dnl How to use the Lol Engine inside this tree
453LOL_CFLAGS="$LOL_CFLAGS -I \$(top_srcdir)/src"
454LOL_CFLAGS="$LOL_CFLAGS $SDL_CFLAGS $GL_CFLAGS $EGL_CFLAGS $LIBPNG_CFLAGS"
455LOL_LIBS="$LOL_LIBS $SDL_LIBS $GL_LIBS $EGL_LIBS $LIBPNG_LIBS $D3D_LIBS"
456
457AC_SUBST(LOL_CFLAGS)
458AC_SUBST(LOL_LIBS)
459
460
461AC_CONFIG_FILES(
462 [Makefile
463  src/Makefile
464  src/data/Makefile
465  src/data/font/Makefile
466  tutorial/Makefile
467  test/Makefile
468  test/math/Makefile
469  test/sandbox/Makefile
470  test/xolotl/Makefile
471  build/Makefile
472  binaries/Makefile
473  people/Makefile
474  games/Makefile
475  tools/Makefile
476  tools/vslol/Makefile
477])
478AC_CONFIG_FILES(
479 [games/monsterz/Makefile
480])
481AC_CONFIG_FILES(
482 [games/deushax/Makefile
483  games/deushax/art/Makefile
484  games/deushax/art/test/Makefile
485  games/deushax/gfx/Makefile
486  games/deushax/maps/Makefile
487])
488AC_CONFIG_FILES(
489 [games/mrpigeon/Makefile
490])
491AC_CONFIG_FILES(
492 [games/orbital/Makefile
493])
494AC_CONFIG_FILES(
495 [tools/neercs/Makefile
496])
497AC_CONFIG_FILES(
498 [people/jnat/Makefile
499  people/jnat/TestProject/Makefile
500  people/peeweek/Makefile
501  people/touky/Makefile
502])
503
504AC_OUTPUT
505
Note: See TracBrowser for help on using the repository browser.