Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

configure.ac 15 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  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 sys/time.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. AC_CHECK_FUNCS(gettimeofday usleep)
  74. if test "${enable_debug}" = "yes"; then
  75. AC_DEFINE(LOL_DEBUG, 1, Define to 1 to activate debug)
  76. OPT_CXXFLAGS="-O"
  77. else
  78. OPT_CXXFLAGS="-O3 -ffast-math -fomit-frame-pointer"
  79. OPT_LDFLAGS="-fno-strength-reduce"
  80. fi
  81. if test "${enable_release}" = "yes"; then
  82. AC_DEFINE(LOL_RELEASE, 1, Define to 1 to activate final release)
  83. REL_CXXFLAGS=""
  84. else
  85. REL_CXXFLAGS="-g"
  86. fi
  87. if test "${enable_experimental}" = "yes"; then
  88. AC_DEFINE(LOL_EXPERIMENTAL, 1, Define to 1 to activate experimental build)
  89. fi
  90. # Build documentation?
  91. DOXYGEN="no"
  92. LATEX="no"
  93. if test "${enable_doc}" != "no"; then
  94. AC_PATH_PROG(DOXYGEN, doxygen, no)
  95. if test "${DOXYGEN}" != "no"; then
  96. # Build LaTeX documentation?
  97. AC_PATH_PROG(LATEX, pdflatex, no)
  98. AC_PATH_PROG(KPSEWHICH, kpsewhich, no)
  99. AC_PATH_PROG(DVIPS, dvips, no)
  100. if test "${DVIPS}" = "no" -o "${KPSEWHICH}" = "no"; then
  101. LATEX="no"
  102. fi
  103. if test "${LATEX}" != "no"; then
  104. AC_MSG_CHECKING(for a4.sty and a4wide.sty)
  105. if "${KPSEWHICH}" a4.sty >/dev/null 2>&1; then
  106. if "${KPSEWHICH}" a4wide.sty >/dev/null 2>&1; then
  107. AC_MSG_RESULT(yes)
  108. else
  109. LATEX="no"
  110. AC_MSG_RESULT(no)
  111. fi
  112. else
  113. LATEX="no"
  114. AC_MSG_RESULT(no)
  115. fi
  116. fi
  117. AC_PATH_PROG(DOT, dot, no)
  118. if test "${DOT}" != "no"; then
  119. USE_DOT="YES"
  120. else
  121. USE_DOT="NO"
  122. fi
  123. fi
  124. fi
  125. AM_CONDITIONAL(BUILD_DOCUMENTATION, test "${DOXYGEN}" != "no")
  126. AM_CONDITIONAL(USE_LATEX, test "${LATEX}" != "no")
  127. AM_CONDITIONAL(USE_DOT, test "${DOT}" != "no")
  128. dnl No exceptions
  129. LOL_TRY_CXXFLAGS(-fno-exceptions, [AM_CXXFLAGS="${AM_CXXFLAGS} -fno-exceptions"])
  130. LOL_TRY_CXXFLAGS(-fno-rtti, [AM_CXXFLAGS="${AM_CXXFLAGS} -fno-rtti"])
  131. dnl Optimizations
  132. AM_CXXFLAGS="${AM_CXXFLAGS} ${REL_CXXFLAGS} ${OPT_CXXFLAGS}"
  133. AM_LDFLAGS="${AM_LDFLAGS} ${REL_LDFLAGS} ${OPT_LDFLAGS}"
  134. dnl Debug symbols
  135. LOL_TRY_LDFLAGS(-rdynamic, [AM_LDFLAGS="${AM_LDFLAGS} -rdynamic"])
  136. dnl Code qui fait des warnings == code de porc == deux baffes dans ta gueule
  137. LOL_TRY_CXXFLAGS(-Wall, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wall"])
  138. LOL_TRY_CXXFLAGS(-Wextra, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wextra"])
  139. LOL_TRY_CXXFLAGS(-Wpointer-arith, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wpointer-arith"])
  140. LOL_TRY_CXXFLAGS(-Wcast-align, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wcast-align"])
  141. LOL_TRY_CXXFLAGS(-Wcast-qual, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wcast-qual"])
  142. LOL_TRY_CXXFLAGS(-Wshadow, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wshadow"])
  143. LOL_TRY_CXXFLAGS(-Wsign-compare, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wsign-compare"])
  144. dnl Add these even though they're implicitly set, so that we can safely
  145. dnl remove them from within a Makefile.
  146. LOL_TRY_CXXFLAGS(-Wmaybe-uninitialized, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wmaybe-uninitialized"])
  147. LOL_TRY_CXXFLAGS(-Wnarrowing, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wnarrowing"])
  148. LOL_TRY_CXXFLAGS(-Wunused, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wunused"])
  149. LOL_TRY_CXXFLAGS(-Wstrict-aliasing, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wstrict-aliasing"])
  150. LOL_TRY_CXXFLAGS(-Wparentheses, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wparentheses"])
  151. LOL_TRY_CXXFLAGS(-Wreorder, [AM_CXXFLAGS="${AM_CXXFLAGS} -Wreorder"])
  152. AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")
  153. AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
  154. dnl Unix-specific libutil
  155. AC_CHECK_LIB(util, forkpty,
  156. [UTIL_LIBS="${UTIL_LIBS} -lutil"
  157. dnl Override future forkpty detection
  158. ac_cv_func_forkpty="yes"])
  159. AC_CHECK_FUNCS(forkpty)
  160. dnl GCC-specific symbol demangling
  161. AC_LANG_PUSH(C++)
  162. AC_TRY_LINK(
  163. [#include <cxxabi.h>],
  164. [abi::__cxa_demangle(NULL, 0, 0, NULL);],
  165. [AC_DEFINE(HAVE_CXA_DEMANGLE, 1, Define to 1 if abi::__cxa_demangle is available)])
  166. AC_LANG_POP(C++)
  167. dnl Are we on the PS3?
  168. ac_cv_my_have_ps3="no"
  169. AC_CHECK_LIB(sysmodule_stub, cellSysmoduleLoadModule,
  170. [ac_cv_my_have_ps3="yes"
  171. LOL_LIBS="${LOL_LIBS} -lsysmodule_stub -lsysutil_stub -lresc_stub"
  172. dnl For PSGL
  173. AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available) # FIXME: hack
  174. GL_LIBS="${GL_LIBS} -lPSGL -lgcm_cmd -lgcm_sys_stub"
  175. dnl This is the old way; we now use CELL_SDK instead of CELLSDK
  176. if test "x${CELLSDK}" != x -a "x${CELL_SDK}" = x; then
  177. CELL_SDK="${CELLSDK}"
  178. fi
  179. if test "x${enable_debug}" = xyes; then
  180. GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/debug"
  181. elif test "x${enable_release}" = xyes; then
  182. GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/ultra-opt"
  183. else
  184. GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/opt"
  185. fi
  186. dnl For the runtime Cg compiler
  187. GL_LIBS="${GL_LIBS} -lcgc -lPSGLcgc"
  188. dnl For the PNG decoder
  189. LOL_LIBS="${LOL_LIBS} -lpngdec_stub"
  190. dnl For the pad library
  191. LOL_LIBS="${LOL_LIBS} -lio_stub -lusbd_stub -lpadfilter"
  192. dnl For the audio library
  193. LOL_LIBS="${LOL_LIBS} -laudio_stub -lspurs_stub -lmstreamSPURSMP3"
  194. dnl For the filesystem support
  195. LOL_LIBS="${LOL_LIBS} -lfs_stub"
  196. dnl Disable this warning, it's too verbose with vector.h
  197. AM_CXXFLAGS="${AM_CXXFLAGS} -Wno-sign-compare"
  198. AC_PATH_PROG(MAKE_FSELF, make_fself, no)
  199. if test "${MAKE_FSELF}" = "no"; then
  200. AC_MSG_ERROR([[Building for PS3 but make_fself not found]])
  201. fi],
  202. [MAKE_FSELF=no])
  203. AM_CONDITIONAL(USE_PS3, test "${ac_cv_my_have_ps3}" != "no")
  204. dnl Are we building using MinGW?
  205. LOL_TRY_CXXFLAGS(-mwindows -mwin32,
  206. [AM_CXXFLAGS="${AM_CXXFLAGS} -mwindows -mwin32"
  207. LOL_LIBS="${LOL_LIBS} -uWinMain -u_WinMain@16"])
  208. dnl Are we on the Xbox 360?
  209. dnl Answer: NO! we don't know how to build for it anyway
  210. AM_CONDITIONAL(USE_X360, false)
  211. dnl Are we on an OS X or iOS platform?
  212. LOL_TRY_LDFLAGS(-framework Foundation,
  213. [LOL_LIBS="${LOL_LIBS} -framework Foundation"])
  214. LOL_TRY_LDFLAGS(-framework CoreGraphics,
  215. [LOL_LIBS="${LOL_LIBS} -framework CoreGraphics"])
  216. LOL_TRY_LDFLAGS(-framework CoreData,
  217. [LOL_LIBS="${LOL_LIBS} -framework CoreData"])
  218. LOL_TRY_LDFLAGS(-framework UIKit,
  219. [LOL_LIBS="${LOL_LIBS} -framework UIKit"])
  220. dnl Are we on a Direct3D 9 platform?
  221. #ac_cv_my_have_d3d9="no"
  222. #AC_CHECK_HEADERS(d3d9.h, [ac_cv_my_have_d3d9="yes"])
  223. #if test "${ac_cv_my_have_d3d9}" != "no"; then
  224. # D3D_LIBS="${D3D_LIBS} -ld3d9 -ld3dx9 -lxinput"
  225. # AC_DEFINE(USE_D3D9, 1, Define to 1 to use DirectX 9)
  226. #fi
  227. #AM_CONDITIONAL(USE_D3D9, test "${ac_cv_my_have_d3d9}" != "no")
  228. LOL_CHECK_OPENGL
  229. LOL_CHECK_SDL
  230. dnl Use Flex's FlexLexer.h or ours?
  231. ac_cv_my_have_flexlexer_h="no"
  232. AC_LANG_PUSH(C++)
  233. AC_CHECK_HEADERS(FlexLexer.h,
  234. dnl Ensure that FlexLexer::yleng is of type int, and not size_t like
  235. dnl on recent Apple systems. It would break all our existing code.
  236. [AC_MSG_CHECKING(for FlexLexer.h validity)
  237. AC_COMPILE_IFELSE(
  238. [AC_LANG_PROGRAM([#include <FlexLexer.h>
  239. class Foo : public FlexLexer
  240. {
  241. Foo() { int &test = yyleng; }
  242. }],
  243. [])],
  244. [AC_MSG_RESULT(yes)
  245. ac_cv_my_have_flexlexer_h="yes"],
  246. [AC_MSG_RESULT(no)])])
  247. AC_LANG_POP(C++)
  248. if test "x${ac_cv_my_have_flexlexer_h}" = "xno"; then
  249. LOL_CFLAGS="$LOL_CFLAGS -I\$(top_srcdir)/external/flex-2.5.35/include"
  250. fi
  251. dnl Use NativeClient?
  252. ac_cv_my_have_nacl="no"
  253. AC_LANG_PUSH(C++)
  254. AC_CHECK_HEADERS(ppapi/cpp/instance.h,
  255. [ac_cv_my_have_nacl="yes"
  256. LOL_LIBS="${LOL_LIBS} -lnosys"])
  257. AC_LANG_POP(C++)
  258. AM_CONDITIONAL(USE_NACL, test "${ac_cv_my_have_nacl}" != "no")
  259. dnl Use Emscripten?
  260. ac_cv_my_have_emscripten="no"
  261. AC_CHECK_HEADERS(emscripten.h,
  262. [ac_cv_my_have_emscripten="yes"])
  263. AM_CONDITIONAL(USE_EMSCRIPTEN, test "${ac_cv_my_have_emscripten}" != "no")
  264. dnl Use Android? FIXME: super hacks!
  265. ac_cv_my_have_android="no"
  266. AC_CHECK_LIB(log, __android_log_vprint,
  267. [ac_cv_my_have_android="yes"
  268. LOL_LIBS="${LOL_LIBS} -llog -landroid -module -lEGL -lGLESv2"])
  269. AM_CONDITIONAL(USE_ANDROID, test "${ac_cv_my_have_android}" != "no")
  270. dnl Use EGL?
  271. ac_cv_my_have_egl="no"
  272. PKG_CHECK_MODULES(EGL, egl, [ac_cv_my_have_egl="yes"], [:])
  273. if test "${ac_cv_my_have_egl}" != "no"; then
  274. AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
  275. EGL_LIBS="${EGL_LIBS} -lX11"
  276. fi
  277. AC_CHECK_LIB(EGL, main,
  278. [ac_cv_my_have_egl="yes"
  279. AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
  280. EGL_LIBS="-lEGL"])
  281. dnl Raspberry Pi is different, check for it with extra libs; also we
  282. dnl look for a different function to bypass autoconf caching
  283. AC_CHECK_LIB(EGL, eglGetDisplay,
  284. [ac_cv_my_have_egl="yes"
  285. AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
  286. EGL_LIBS="-lEGL -lvcos -lvchiq_arm -lbcm_host -lGLESv2"],
  287. [:],
  288. [-lvcos -lvchiq_arm -lbcm_host -lGLESv2])
  289. AM_CONDITIONAL(USE_EGL, test "${ac_cv_my_have_egl}" != "no")
  290. dnl Use libpng? (replacement for SDL_image)
  291. ac_cv_my_have_libpng="no"
  292. PKG_CHECK_MODULES(LIBPNG, libpng, [ac_cv_my_have_libpng="yes"], [:])
  293. if test "${ac_cv_my_have_libpng}" != "no"; then
  294. AC_DEFINE(USE_LIBPNG, 1, Define to 1 to use libpng)
  295. fi
  296. AM_CONDITIONAL(USE_LIBPNG, test "${ac_cv_my_have_libpng}" != "no")
  297. dnl Use Windows GDI+?
  298. ac_cv_my_have_gdiplus="no"
  299. AC_LANG_PUSH(C++)
  300. AC_CHECK_HEADERS(gdiplus.h,
  301. [ac_cv_my_have_gdiplus="yes"
  302. LOL_LIBS="${LOL_LIBS} -lgdiplus"],
  303. [ac_cv_my_have_gdiplus="no"],
  304. [#include <algorithm>
  305. using std::min;
  306. using std::max;
  307. #include <windows.h>])
  308. AC_LANG_POP(C++)
  309. if test "${ac_cv_my_have_gdiplus}" != "no"; then
  310. AC_DEFINE(USE_GDIPLUS, 1, Define to 1 to use GDI+)
  311. fi
  312. AM_CONDITIONAL(USE_GDIPLUS, test "${ac_cv_my_have_gdiplus}" = "yes")
  313. dnl Use libcaca? (required for font generation)
  314. ac_cv_my_have_caca="no"
  315. PKG_CHECK_MODULES(CACA, caca >= 0.99.beta17, [ac_cv_my_have_caca="yes"], [:])
  316. if test "${ac_cv_my_have_caca}" != "no"; then
  317. AC_DEFINE(USE_CACA, 1, Define to 1 to use libcaca)
  318. fi
  319. AM_CONDITIONAL(USE_CACA, test "${ac_cv_my_have_caca}" != "no")
  320. dnl Use libpipi? (required for video recording)
  321. ac_cv_my_have_pipi="no"
  322. PKG_CHECK_MODULES(PIPI, pipi, [ac_cv_my_have_pipi="yes"], [:])
  323. if test "${ac_cv_my_have_pipi}" != "no"; then
  324. AC_DEFINE(USE_PIPI, 1, Define to 1 to use libpipi)
  325. LOL_CFLAGS="${LOL_CFLAGS} ${PIPI_CFLAGS}"
  326. LOL_LIBS="${LOL_LIBS} ${PIPI_LIBS}"
  327. fi
  328. AM_CONDITIONAL(USE_PIPI, test "${ac_cv_my_have_pipi}" != "no")
  329. dnl Use GTK+? (required for the deushax editor)
  330. ac_cv_my_have_gtkgl="no"
  331. PKG_CHECK_MODULES(GTK, gtk+-2.0, [ac_cv_my_have_gtkgl="yes"], [:])
  332. PKG_CHECK_MODULES(GTKGL, gtkgl-2.0, [:], [ac_cv_my_have_gtkgl="no"])
  333. if test "${ac_cv_my_have_gtkgl}" != "no"; then
  334. AC_DEFINE(USE_GTKGL, 1, Define to 1 to use GtkGl)
  335. fi
  336. AM_CONDITIONAL(USE_GTKGL, test "${ac_cv_my_have_gtkgl}" != "no")
  337. dnl Can we build neercs?
  338. AM_CONDITIONAL(BUILD_NEERCS, test "${ac_cv_my_have_caca}" != "no")
  339. dnl Extra libraries we may need
  340. AC_SUBST(MATH_LIBS)
  341. AC_SUBST(PAM_LIBS)
  342. AC_SUBST(UTIL_LIBS)
  343. dnl How to use the Lol Engine outside this tree
  344. LOL_CFLAGS="$LOL_CFLAGS $SDL_CFLAGS $GL_CFLAGS $EGL_CFLAGS $LIBPNG_CFLAGS"
  345. LOL_LIBS="$LOL_LIBS $SDL_LIBS $GL_LIBS $EGL_LIBS $LIBPNG_LIBS $D3D_LIBS"
  346. LOL_DEPS="${LOL_DEPS} \$(top_builddir)/src/liblolcore.a"
  347. LOL_DEPS="${LOL_DEPS} \$(top_builddir)/src/bullet/liblolbullet.a"
  348. LOL_DEPS="${LOL_DEPS} \$(top_builddir)/src/lua/liblollua.a"
  349. dnl How to use the Lol Engine inside this tree
  350. AM_CPPFLAGS="${AM_CPPFLAGS} -I\$(top_srcdir)/src"
  351. AM_CPPFLAGS="${AM_CPPFLAGS} -DLOL_CONFIG_SOURCESUBDIR=\\\"\$(subdir)\\\""
  352. AM_CPPFLAGS="${AM_CPPFLAGS} ${LOL_CFLAGS}"
  353. AM_LDFLAGS="${AM_LDFLAGS} ${LOL_DEPS}"
  354. AM_LDFLAGS="${AM_LDFLAGS} ${LOL_LIBS}"
  355. dnl Extra flags
  356. AC_SUBST(LOL_CFLAGS)
  357. AC_SUBST(LOL_LIBS)
  358. AC_SUBST(LOL_DEPS)
  359. AC_SUBST(AM_CFLAGS)
  360. AC_SUBST(AM_CPPFLAGS)
  361. AC_SUBST(AM_CXXFLAGS)
  362. AC_SUBST(AM_LDFLAGS)
  363. AC_SUBST(USE_DOT)
  364. AC_CONFIG_FILES(
  365. [Makefile
  366. src/Makefile
  367. src/bullet/Makefile
  368. src/lua/Makefile
  369. src/data/Makefile
  370. src/data/font/Makefile
  371. tutorial/Makefile
  372. test/Makefile
  373. test/math/Makefile
  374. test/sandbox/Makefile
  375. test/xolotl/Makefile
  376. build/Makefile
  377. binaries/Makefile
  378. people/Makefile
  379. games/Makefile
  380. tools/Makefile
  381. tools/vimlol/Makefile
  382. tools/vslol/Makefile
  383. doc/Makefile
  384. doc/doxygen.cfg
  385. ])
  386. AC_CONFIG_FILES(
  387. [games/monsterz/Makefile
  388. ])
  389. AC_CONFIG_FILES(
  390. [games/deushax/Makefile
  391. games/deushax/art/Makefile
  392. games/deushax/art/test/Makefile
  393. games/deushax/gfx/Makefile
  394. games/deushax/maps/Makefile
  395. ])
  396. AC_CONFIG_FILES(
  397. [games/mrpigeon/Makefile
  398. ])
  399. AC_CONFIG_FILES(
  400. [games/orbital/Makefile
  401. ])
  402. AC_CONFIG_FILES(
  403. [tools/neercs/Makefile
  404. ])
  405. AC_CONFIG_FILES(
  406. [people/jnat/Makefile
  407. people/jnat/TestProject/Makefile
  408. people/peeweek/Makefile
  409. people/peeweek/private/Makefile
  410. people/touky/Makefile
  411. people/touky/private/Makefile
  412. people/touky/private/tactics/Makefile
  413. people/touky/private/the_unfortunate_voronoid/Makefile
  414. people/jylam/Makefile
  415. people/jylam/private/Makefile
  416. people/jylam/private/chat/Makefile
  417. ])
  418. AC_OUTPUT