Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12 лет назад
12 лет назад
12 лет назад
12 лет назад
13 лет назад
13 лет назад
12 лет назад
12 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. dnl configure script for Lol Engine
  2. AC_INIT(lolengine, 0.0)
  3. AC_PREREQ(2.50)
  4. AC_CONFIG_AUX_DIR(.auto)
  5. AC_CANONICAL_SYSTEM
  6. AM_INIT_AUTOMAKE([subdir-objects no-define tar-ustar silent-rules])
  7. dnl AM_MAINTAINER_MODE
  8. AM_DEFAULT_VERBOSITY=0
  9. dnl Versioning of the separate software we ship
  10. LOLUNIT_VERSION=0.1
  11. AC_SUBST(LOLUNIT_VERSION)
  12. LOLREMEZ_VERSION=0.2
  13. AC_SUBST(LOLREMEZ_VERSION)
  14. AC_CONFIG_HEADER(config.h)
  15. AM_PROG_CC_C_O
  16. AC_PROG_CPP
  17. AC_PROG_CXX
  18. AC_PROG_CXXCPP
  19. AC_PROG_RANLIB
  20. AC_LIBTOOL_WIN32_DLL
  21. AM_PROG_LIBTOOL
  22. AC_LIBTOOL_CXX
  23. AC_C_CONST
  24. AC_C_INLINE
  25. dnl Ensure an error is thrown if pkg-config M4 files are not found.
  26. m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
  27. m4_pattern_forbid([^PKG_CHECK_MODULES$])
  28. m4_pattern_forbid([^PKG_PROG_PKG_CONFIG$])
  29. dnl Same for Lol Engine M4 files.
  30. m4_pattern_forbid([^LOL_])
  31. dnl Do not use PKG_CONFIG_LIBDIR when cross-compiling.
  32. if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then
  33. export PKG_CONFIG_LIBDIR=/dev/null
  34. fi
  35. dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
  36. dnl now otherwise it might be set in an obscure if statement. Same thing for
  37. dnl PKG_PROG_PKG_CONFIG which needs to be called first.
  38. AC_EGREP_CPP(yes, foo)
  39. PKG_PROG_PKG_CONFIG()
  40. dnl Check for a working implementation of sed
  41. AC_PROG_SED
  42. AC_MSG_CHECKING(for a sed that understands \t)
  43. if test "$(echo 'x\x' | "${SED}" 's/.*@<:@^x\t@:>@//')" != x; then
  44. AC_MSG_RESULT(no)
  45. AC_MSG_ERROR([[consider installing GNU sed]])
  46. else
  47. AC_MSG_RESULT(yes)
  48. fi
  49. dnl conditional builds
  50. AC_ARG_ENABLE(debug,
  51. [ --enable-debug build debug versions of the game (default no)])
  52. AC_ARG_ENABLE(release,
  53. [ --enable-release build final release of the game (default no)])
  54. AC_ARG_ENABLE(experimental,
  55. [ --enable-experimental experimental build (default no)])
  56. AC_ARG_ENABLE(doc,
  57. [ --enable-doc build documentation (needs doxygen and LaTeX)])
  58. dnl Common C headers
  59. AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
  60. AC_CHECK_HEADERS(fastmath.h pthread.h libutil.h util.h pty.h glob.h unistd.h)
  61. AC_CHECK_HEADERS(execinfo.h)
  62. AC_CHECK_HEADERS(sys/ioctl.h sys/ptrace.h sys/stat.h sys/syscall.h sys/user.h)
  63. AC_CHECK_HEADERS(sys/wait.h)
  64. AC_CHECK_HEADERS(linux/kdev_t.h linux/major.h)
  65. AC_CHECK_HEADERS(security/pam_appl.h security/pam_misc.h)
  66. AC_CHECK_HEADERS(pam/pam_appl.h pam/pam_misc.h)
  67. dnl Common C++ headers
  68. AC_LANG_PUSH(C++)
  69. AC_CHECK_HEADERS(cxxabi.h)
  70. AC_LANG_POP(C++)
  71. dnl Common C functions
  72. AC_CHECK_FUNCS(getenv system tmpfile tmpnam getcwd _getcwd backtrace_symbols)
  73. if test "${enable_debug}" = "yes"; then
  74. AC_DEFINE(LOL_DEBUG, 1, Define to 1 to activate debug)
  75. OPT_CXXFLAGS="-O"
  76. else
  77. OPT_CXXFLAGS="-O3 -ffast-math -fomit-frame-pointer"
  78. OPT_LDFLAGS="-fno-strength-reduce"
  79. fi
  80. if test "${enable_release}" = "yes"; then
  81. AC_DEFINE(LOL_RELEASE, 1, Define to 1 to activate final release)
  82. REL_CXXFLAGS=""
  83. else
  84. REL_CXXFLAGS="-g"
  85. fi
  86. if test "${enable_experimental}" = "yes"; then
  87. AC_DEFINE(LOL_EXPERIMENTAL, 1, Define to 1 to activate experimental build)
  88. fi
  89. # Build documentation?
  90. DOXYGEN="no"
  91. LATEX="no"
  92. if test "${enable_doc}" != "no"; then
  93. AC_PATH_PROG(DOXYGEN, doxygen, no)
  94. if test "${DOXYGEN}" != "no"; then
  95. # Build LaTeX documentation?
  96. AC_PATH_PROG(LATEX, pdflatex, no)
  97. AC_PATH_PROG(KPSEWHICH, kpsewhich, no)
  98. AC_PATH_PROG(DVIPS, dvips, no)
  99. if test "${DVIPS}" = "no" -o "${KPSEWHICH}" = "no"; then
  100. LATEX="no"
  101. fi
  102. if test "${LATEX}" != "no"; then
  103. AC_MSG_CHECKING(for a4.sty and a4wide.sty)
  104. if "${KPSEWHICH}" a4.sty >/dev/null 2>&1; then
  105. if "${KPSEWHICH}" a4wide.sty >/dev/null 2>&1; then
  106. AC_MSG_RESULT(yes)
  107. else
  108. LATEX="no"
  109. AC_MSG_RESULT(no)
  110. fi
  111. else
  112. LATEX="no"
  113. AC_MSG_RESULT(no)
  114. fi
  115. fi
  116. AC_PATH_PROG(DOT, dot, no)
  117. if test "${DOT}" != "no"; then
  118. USE_DOT="YES"
  119. else
  120. USE_DOT="NO"
  121. fi
  122. fi
  123. fi
  124. AM_CONDITIONAL(BUILD_DOCUMENTATION, test "${DOXYGEN}" != "no")
  125. AM_CONDITIONAL(USE_LATEX, test "${LATEX}" != "no")
  126. AM_CONDITIONAL(USE_DOT, test "${DOT}" != "no")
  127. dnl No exceptions
  128. LOL_TRY_CXXFLAGS(-fno-exceptions, [AM_CXXFLAGS="${AM_CXXFLAGS} -fno-exceptions"])
  129. LOL_TRY_CXXFLAGS(-fno-rtti, [AM_CXXFLAGS="${AM_CXXFLAGS} -fno-rtti"])
  130. dnl Optimizations
  131. AM_CXXFLAGS="${AM_CXXFLAGS} ${REL_CXXFLAGS} ${OPT_CXXFLAGS}"
  132. AM_LDFLAGS="${AM_LDFLAGS} ${REL_LDFLAGS} ${OPT_LDFLAGS}"
  133. dnl Debug symbols
  134. LOL_TRY_LDFLAGS(-rdynamic, [AM_LDFLAGS="${AM_LDFLAGS} -rdynamic"])
  135. dnl Code qui fait des warnings == code de porc == deux baffes dans ta gueule
  136. LOL_TRY_CXXFLAGS(-Wall, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wall"])
  137. LOL_TRY_CXXFLAGS(-Wextra, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wextra"])
  138. LOL_TRY_CXXFLAGS(-Wpointer-arith, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wpointer-arith"])
  139. LOL_TRY_CXXFLAGS(-Wcast-align, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wcast-align"])
  140. LOL_TRY_CXXFLAGS(-Wcast-qual, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wcast-qual"])
  141. LOL_TRY_CXXFLAGS(-Wshadow, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wshadow"])
  142. LOL_TRY_CXXFLAGS(-Wsign-compare, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wsign-compare"])
  143. dnl Add these even though they're implicitly set, so that we can safely
  144. dnl remove them from within a Makefile.
  145. LOL_TRY_CXXFLAGS(-Wmaybe-uninitialized, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wmaybe-uninitialized"])
  146. LOL_TRY_CXXFLAGS(-Wnarrowing, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wnarrowing"])
  147. LOL_TRY_CXXFLAGS(-Wunused, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wunused"])
  148. LOL_TRY_CXXFLAGS(-Wstrict-aliasing, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wstrict-aliasing"])
  149. LOL_TRY_CXXFLAGS(-Wparentheses, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wparentheses"])
  150. LOL_TRY_CXXFLAGS(-Wreorder, [AM_CXXFLAGS="${AM_CXXFLAGS} -Wreorder"])
  151. AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")
  152. AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
  153. dnl Unix-specific libutil
  154. AC_CHECK_LIB(util, forkpty,
  155. [UTIL_LIBS="${UTIL_LIBS} -lutil"
  156. dnl Override future forkpty detection
  157. ac_cv_func_forkpty="yes"])
  158. AC_CHECK_FUNCS(forkpty)
  159. dnl GCC-specific symbol demangling
  160. AC_LANG_PUSH(C++)
  161. AC_TRY_LINK(
  162. [#include <cxxabi.h>],
  163. [abi::__cxa_demangle(NULL, 0, 0, NULL);],
  164. [AC_DEFINE(HAVE_CXA_DEMANGLE, 1, Define to 1 if abi::__cxa_demangle is available)])
  165. AC_LANG_POP(C++)
  166. dnl Are we on the PS3?
  167. ac_cv_my_have_ps3="no"
  168. AC_CHECK_LIB(sysmodule_stub, cellSysmoduleLoadModule,
  169. [ac_cv_my_have_ps3="yes"
  170. LOL_LIBS="${LOL_LIBS} -lsysmodule_stub -lsysutil_stub -lresc_stub"
  171. dnl For PSGL
  172. AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available) # FIXME: hack
  173. GL_LIBS="${GL_LIBS} -lPSGL -lgcm_cmd -lgcm_sys_stub"
  174. dnl This is the old way; we now use CELL_SDK instead of CELLSDK
  175. if test "x${CELLSDK}" != x -a "x${CELL_SDK}" = x; then
  176. CELL_SDK="${CELLSDK}"
  177. fi
  178. if test "x${enable_debug}" = xyes; then
  179. GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/debug"
  180. elif test "x${enable_release}" = xyes; then
  181. GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/ultra-opt"
  182. else
  183. GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/opt"
  184. fi
  185. dnl For the runtime Cg compiler
  186. GL_LIBS="${GL_LIBS} -lcgc -lPSGLcgc"
  187. dnl For the PNG decoder
  188. LOL_LIBS="${LOL_LIBS} -lpngdec_stub"
  189. dnl For the pad library
  190. LOL_LIBS="${LOL_LIBS} -lio_stub -lusbd_stub -lpadfilter"
  191. dnl For the audio library
  192. LOL_LIBS="${LOL_LIBS} -laudio_stub -lspurs_stub -lmstreamSPURSMP3"
  193. dnl For the filesystem support
  194. LOL_LIBS="${LOL_LIBS} -lfs_stub"
  195. dnl Disable this warning, it's too verbose with vector.h
  196. AM_CXXFLAGS="${AM_CXXFLAGS} -Wno-sign-compare"
  197. AC_PATH_PROG(MAKE_FSELF, make_fself, no)
  198. if test "${MAKE_FSELF}" = "no"; then
  199. AC_MSG_ERROR([[Building for PS3 but make_fself not found]])
  200. fi],
  201. [MAKE_FSELF=no])
  202. AM_CONDITIONAL(USE_PS3, test "${ac_cv_my_have_ps3}" != "no")
  203. dnl Are we building using MinGW?
  204. LOL_TRY_CXXFLAGS(-mwindows -mwin32,
  205. [AM_CXXFLAGS="${AM_CXXFLAGS} -mwindows -mwin32"
  206. LOL_LIBS="${LOL_LIBS} -uWinMain -u_WinMain@16"])
  207. dnl Are we on the Xbox 360?
  208. dnl Answer: NO! we don't know how to build for it anyway
  209. AM_CONDITIONAL(USE_X360, false)
  210. dnl Are we on an OS X or iOS platform?
  211. LOL_TRY_LDFLAGS(-framework Foundation,
  212. [LOL_LIBS="${LOL_LIBS} -framework Foundation"])
  213. LOL_TRY_LDFLAGS(-framework CoreGraphics,
  214. [LOL_LIBS="${LOL_LIBS} -framework CoreGraphics"])
  215. LOL_TRY_LDFLAGS(-framework CoreData,
  216. [LOL_LIBS="${LOL_LIBS} -framework CoreData"])
  217. LOL_TRY_LDFLAGS(-framework UIKit,
  218. [LOL_LIBS="${LOL_LIBS} -framework UIKit"])
  219. dnl Are we on a Direct3D 9 platform?
  220. #ac_cv_my_have_d3d9="no"
  221. #AC_CHECK_HEADERS(d3d9.h, [ac_cv_my_have_d3d9="yes"])
  222. #if test "${ac_cv_my_have_d3d9}" != "no"; then
  223. # D3D_LIBS="${D3D_LIBS} -ld3d9 -ld3dx9 -lxinput"
  224. # AC_DEFINE(USE_D3D9, 1, Define to 1 to use DirectX 9)
  225. #fi
  226. #AM_CONDITIONAL(USE_D3D9, test "${ac_cv_my_have_d3d9}" != "no")
  227. LOL_CHECK_OPENGL
  228. LOL_CHECK_SDL
  229. dnl Use Flex's FlexLexer.h or ours?
  230. ac_cv_my_have_flexlexer_h="no"
  231. AC_LANG_PUSH(C++)
  232. AC_CHECK_HEADERS(FlexLexer.h,
  233. dnl Ensure that FlexLexer::yleng is of type int, and not size_t like
  234. dnl on recent Apple systems. It would break all our existing code.
  235. [AC_MSG_CHECKING(for FlexLexer.h validity)
  236. AC_COMPILE_IFELSE(
  237. [AC_LANG_PROGRAM([#include <FlexLexer.h>
  238. class Foo : public FlexLexer
  239. {
  240. Foo() { int &test = yyleng; }
  241. }],
  242. [])],
  243. [AC_MSG_RESULT(yes)
  244. ac_cv_my_have_flexlexer_h="yes"],
  245. [AC_MSG_RESULT(no)])])
  246. AC_LANG_POP(C++)
  247. if test "x${ac_cv_my_have_flexlexer_h}" = "xno"; then
  248. LOL_CFLAGS="$LOL_CFLAGS -I\$(top_srcdir)/external/flex-2.5.35/include"
  249. fi
  250. dnl Use NativeClient?
  251. ac_cv_my_have_nacl="no"
  252. AC_LANG_PUSH(C++)
  253. AC_CHECK_HEADERS(ppapi/cpp/instance.h,
  254. [ac_cv_my_have_nacl="yes"
  255. LOL_LIBS="${LOL_LIBS} -lnosys"])
  256. AC_LANG_POP(C++)
  257. AM_CONDITIONAL(USE_NACL, test "${ac_cv_my_have_nacl}" != "no")
  258. dnl Use Android? FIXME: super hacks!
  259. ac_cv_my_have_android="no"
  260. AC_CHECK_LIB(log, __android_log_vprint,
  261. [ac_cv_my_have_android="yes"
  262. LOL_LIBS="${LOL_LIBS} -llog -landroid -module -lEGL -lGLESv2"])
  263. AM_CONDITIONAL(USE_ANDROID, test "${ac_cv_my_have_android}" != "no")
  264. dnl Use EGL?
  265. ac_cv_my_have_egl="no"
  266. PKG_CHECK_MODULES(EGL, egl, [ac_cv_my_have_egl="yes"], [:])
  267. if test "${ac_cv_my_have_egl}" != "no"; then
  268. AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
  269. EGL_LIBS="${EGL_LIBS} -lX11"
  270. fi
  271. AC_CHECK_LIB(EGL, main,
  272. [ac_cv_my_have_egl="yes"
  273. AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
  274. EGL_LIBS="-lEGL"])
  275. dnl Raspberry Pi is different, check for it with extra libs; also we
  276. dnl look for a different function to bypass autoconf caching
  277. AC_CHECK_LIB(EGL, eglGetDisplay,
  278. [ac_cv_my_have_egl="yes"
  279. AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
  280. EGL_LIBS="-lEGL -lvcos -lvchiq_arm -lbcm_host -lGLESv2"],
  281. [:],
  282. [-lvcos -lvchiq_arm -lbcm_host -lGLESv2])
  283. AM_CONDITIONAL(USE_EGL, test "${ac_cv_my_have_egl}" != "no")
  284. dnl Use libpng? (replacement for SDL_image)
  285. ac_cv_my_have_libpng="no"
  286. PKG_CHECK_MODULES(LIBPNG, libpng, [ac_cv_my_have_libpng="yes"], [:])
  287. if test "${ac_cv_my_have_libpng}" != "no"; then
  288. AC_DEFINE(USE_LIBPNG, 1, Define to 1 to use libpng)
  289. fi
  290. AM_CONDITIONAL(USE_LIBPNG, test "${ac_cv_my_have_libpng}" != "no")
  291. dnl Use Windows GDI+?
  292. ac_cv_my_have_gdiplus="no"
  293. AC_LANG_PUSH(C++)
  294. AC_CHECK_HEADERS(gdiplus.h,
  295. [ac_cv_my_have_gdiplus="yes"
  296. LOL_LIBS="${LOL_LIBS} -lgdiplus"],
  297. [ac_cv_my_have_gdiplus="no"],
  298. [#include <algorithm>
  299. using std::min;
  300. using std::max;
  301. #include <windows.h>])
  302. AC_LANG_POP(C++)
  303. if test "${ac_cv_my_have_gdiplus}" != "no"; then
  304. AC_DEFINE(USE_GDIPLUS, 1, Define to 1 to use GDI+)
  305. fi
  306. AM_CONDITIONAL(USE_GDIPLUS, test "${ac_cv_my_have_gdiplus}" = "yes")
  307. dnl Use libcaca? (required for font generation)
  308. ac_cv_my_have_caca="no"
  309. PKG_CHECK_MODULES(CACA, caca >= 0.99.beta17, [ac_cv_my_have_caca="yes"], [:])
  310. if test "${ac_cv_my_have_caca}" != "no"; then
  311. AC_DEFINE(USE_CACA, 1, Define to 1 to use libcaca)
  312. fi
  313. AM_CONDITIONAL(USE_CACA, test "${ac_cv_my_have_caca}" != "no")
  314. dnl Use libpipi? (required for video recording)
  315. ac_cv_my_have_pipi="no"
  316. PKG_CHECK_MODULES(PIPI, pipi, [ac_cv_my_have_pipi="yes"], [:])
  317. if test "${ac_cv_my_have_pipi}" != "no"; then
  318. AC_DEFINE(USE_PIPI, 1, Define to 1 to use libpipi)
  319. LOL_CFLAGS="${LOL_CFLAGS} ${PIPI_CFLAGS}"
  320. LOL_LIBS="${LOL_LIBS} ${PIPI_LIBS}"
  321. fi
  322. AM_CONDITIONAL(USE_PIPI, test "${ac_cv_my_have_pipi}" != "no")
  323. dnl Use GTK+? (required for the deushax editor)
  324. ac_cv_my_have_gtkgl="no"
  325. PKG_CHECK_MODULES(GTK, gtk+-2.0, [ac_cv_my_have_gtkgl="yes"], [:])
  326. PKG_CHECK_MODULES(GTKGL, gtkgl-2.0, [:], [ac_cv_my_have_gtkgl="no"])
  327. if test "${ac_cv_my_have_gtkgl}" != "no"; then
  328. AC_DEFINE(USE_GTKGL, 1, Define to 1 to use GtkGl)
  329. fi
  330. AM_CONDITIONAL(USE_GTKGL, test "${ac_cv_my_have_gtkgl}" != "no")
  331. dnl Can we build neercs?
  332. AM_CONDITIONAL(BUILD_NEERCS, test "${ac_cv_my_have_caca}" != "no")
  333. dnl Extra libraries we may need
  334. AC_SUBST(MATH_LIBS)
  335. AC_SUBST(PAM_LIBS)
  336. AC_SUBST(UTIL_LIBS)
  337. dnl How to use the Lol Engine outside this tree
  338. LOL_CFLAGS="$LOL_CFLAGS $SDL_CFLAGS $GL_CFLAGS $EGL_CFLAGS $LIBPNG_CFLAGS"
  339. LOL_LIBS="$LOL_LIBS $SDL_LIBS $GL_LIBS $EGL_LIBS $LIBPNG_LIBS $D3D_LIBS"
  340. LOL_DEPS="${LOL_DEPS} \$(top_builddir)/src/liblolcore.a"
  341. LOL_DEPS="${LOL_DEPS} \$(top_builddir)/src/bullet/liblolbullet.a"
  342. LOL_DEPS="${LOL_DEPS} \$(top_builddir)/src/lua/liblollua.a"
  343. dnl How to use the Lol Engine inside this tree
  344. AM_CPPFLAGS="${AM_CPPFLAGS} -I\$(top_srcdir)/src"
  345. AM_CPPFLAGS="${AM_CPPFLAGS} -DLOL_CONFIG_SOURCESUBDIR=\\\"\$(subdir)\\\""
  346. AM_CPPFLAGS="${AM_CPPFLAGS} ${LOL_CFLAGS}"
  347. AM_LDFLAGS="${AM_LDFLAGS} ${LOL_DEPS}"
  348. AM_LDFLAGS="${AM_LDFLAGS} ${LOL_LIBS}"
  349. dnl Extra flags
  350. AC_SUBST(LOL_CFLAGS)
  351. AC_SUBST(LOL_LIBS)
  352. AC_SUBST(LOL_DEPS)
  353. AC_SUBST(AM_CFLAGS)
  354. AC_SUBST(AM_CPPFLAGS)
  355. AC_SUBST(AM_CXXFLAGS)
  356. AC_SUBST(AM_LDFLAGS)
  357. AC_SUBST(USE_DOT)
  358. AC_CONFIG_FILES(
  359. [Makefile
  360. src/Makefile
  361. src/bullet/Makefile
  362. src/lua/Makefile
  363. src/data/Makefile
  364. src/data/font/Makefile
  365. tutorial/Makefile
  366. test/Makefile
  367. test/math/Makefile
  368. test/sandbox/Makefile
  369. test/xolotl/Makefile
  370. build/Makefile
  371. binaries/Makefile
  372. people/Makefile
  373. games/Makefile
  374. tools/Makefile
  375. tools/vimlol/Makefile
  376. tools/vslol/Makefile
  377. doc/Makefile
  378. doc/doxygen.cfg
  379. ])
  380. AC_CONFIG_FILES(
  381. [games/monsterz/Makefile
  382. ])
  383. AC_CONFIG_FILES(
  384. [games/deushax/Makefile
  385. games/deushax/art/Makefile
  386. games/deushax/art/test/Makefile
  387. games/deushax/gfx/Makefile
  388. games/deushax/maps/Makefile
  389. ])
  390. AC_CONFIG_FILES(
  391. [games/mrpigeon/Makefile
  392. ])
  393. AC_CONFIG_FILES(
  394. [games/orbital/Makefile
  395. ])
  396. AC_CONFIG_FILES(
  397. [tools/neercs/Makefile
  398. ])
  399. AC_CONFIG_FILES(
  400. [people/jnat/Makefile
  401. people/jnat/TestProject/Makefile
  402. people/peeweek/Makefile
  403. people/peeweek/private/Makefile
  404. people/touky/Makefile
  405. people/touky/private/Makefile
  406. people/touky/private/tactics/Makefile
  407. people/touky/private/the_unfortunate_voronoid/Makefile
  408. people/jylam/Makefile
  409. people/jylam/private/Makefile
  410. people/jylam/private/chat/Makefile
  411. ])
  412. AC_OUTPUT