Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

457 lignes
15 KiB

  1. # $Id$
  2. AC_INIT(caca/caca.c)
  3. AC_PREREQ(2.50)
  4. AC_CONFIG_AUX_DIR(autotools)
  5. AC_CANONICAL_SYSTEM
  6. AM_INIT_AUTOMAKE(libcaca, 0.99.beta12)
  7. LT_MAJOR="0"
  8. LT_MINOR="99"
  9. LT_MICRO="12"
  10. AC_SUBST(LT_MAJOR)
  11. AC_SUBST(LT_MINOR)
  12. AC_SUBST(LT_MICRO)
  13. LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO"
  14. AC_SUBST(LT_VERSION)
  15. AM_CONFIG_HEADER(config.h)
  16. AM_PROG_CC_C_O
  17. AC_PROG_CPP
  18. AC_PROG_CXX
  19. AC_PROG_CXXCPP
  20. _AM_DEPENDENCIES([OBJC])
  21. OBJC="${CC}"
  22. AC_SUBST(OBJC)
  23. AC_SUBST(OBJCFLAGS)
  24. AM_PROG_AS
  25. AC_LIBTOOL_WIN32_DLL
  26. AM_PROG_LIBTOOL
  27. AC_LIBTOOL_CXX
  28. AC_C_CONST
  29. AC_C_INLINE
  30. AC_TYPE_SIGNAL
  31. dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
  32. dnl now otherwise it might be set in an obscure if statement. Same thing for
  33. dnl PKG_PROG_PKG_CONFIG which needs to be called first.
  34. AC_EGREP_CPP(yes, foo)
  35. PKG_PROG_PKG_CONFIG()
  36. m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
  37. if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then
  38. export PKG_CONFIG_LIBDIR=/dev/null
  39. fi
  40. dnl output driver features
  41. AC_ARG_ENABLE(slang,
  42. [ --enable-slang slang graphics support (autodetected)])
  43. AC_ARG_ENABLE(ncurses,
  44. [ --enable-ncurses ncurses graphics support (autodetected)])
  45. AC_ARG_ENABLE(win32,
  46. [ --enable-win32 Windows console support (autodetected)])
  47. AC_ARG_ENABLE(conio,
  48. [ --enable-conio DOS conio.h graphics support (autodetected)])
  49. AC_ARG_ENABLE(x11,
  50. [ --enable-x11 X11 support (autodetected)])
  51. AC_ARG_ENABLE(gl,
  52. [ --enable-gl OpenGL support (autodetected)])
  53. AC_ARG_ENABLE(cocoa,
  54. [ --enable-cocoa Cocoa support (autodetected)])
  55. AC_ARG_ENABLE(network,
  56. [ --enable-network Network support (autodetected)])
  57. AC_ARG_ENABLE(vga,
  58. [ --enable-vga VGA support (default disabled)])
  59. dnl language bindings
  60. AC_ARG_ENABLE(csharp,
  61. [ --enable-csharp C# bindings (autodetected)])
  62. AC_ARG_ENABLE(cxx,
  63. [ --enable-cxx C++ bindings (autodetected)])
  64. AC_ARG_ENABLE(ruby,
  65. [ --enable-ruby Ruby bindings (autodetected)])
  66. dnl example programs features
  67. AC_ARG_ENABLE(imlib2,
  68. [ --enable-imlib2 Imlib2 graphics support (autodetected)])
  69. dnl conditional builds
  70. AC_ARG_ENABLE(debug,
  71. [ --enable-debug build debug versions of the library])
  72. AC_ARG_ENABLE(plugins,
  73. [ --enable-plugins build X11 and GL drivers as plugins])
  74. AC_ARG_ENABLE(doc,
  75. [ --enable-doc build documentation (needs doxygen and LaTeX)])
  76. AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h arpa/inet.h netinet/in.h winsock2.h errno.h locale.h getopt.h dlfcn.h termios.h)
  77. AC_CHECK_FUNCS(signal ioctl vsnprintf getenv putenv strcasecmp htons)
  78. AC_CHECK_FUNCS(usleep gettimeofday)
  79. AC_CHECK_FUNCS(getopt_long,
  80. [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)],
  81. [AC_CHECK_LIB(gnugetopt, getopt_long,
  82. [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
  83. GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
  84. AC_SUBST(GETOPT_LIBS)
  85. AC_MSG_CHECKING(for Sleep)
  86. AC_TRY_COMPILE([#include <windows.h>],[Sleep(42);],
  87. [AC_MSG_RESULT(yes)
  88. AC_DEFINE(HAVE_SLEEP, 1, [Define to 1 if you have the `Sleep' function.])],
  89. [AC_MSG_RESULT(no)])
  90. AC_MSG_CHECKING(for fsin/fcos)
  91. AC_TRY_COMPILE([],[asm("fsin\n\tfcos");],
  92. [AC_MSG_RESULT(yes)
  93. AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the `fsin' and `fcos' operands.])],
  94. [AC_MSG_RESULT(no)])
  95. AC_MSG_CHECKING(for fldln2/fxch/fyl2x)
  96. AC_TRY_COMPILE([],[asm("fldln2; fldln2; fxch; fyl2x");],
  97. [AC_MSG_RESULT(yes)
  98. AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating points operands.])],
  99. [AC_MSG_RESULT(no)])
  100. AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")
  101. CACA_DRIVERS=""
  102. if test "${enable_conio}" != "no"; then
  103. ac_cv_my_have_conio="no"
  104. AC_CHECK_HEADERS(conio.h,
  105. [AC_MSG_CHECKING(for ScreenUpdate in pc.h)
  106. AC_EGREP_HEADER(ScreenUpdate, pc.h,
  107. [ac_cv_my_have_conio="yes"
  108. AC_MSG_RESULT(yes)
  109. AC_DEFINE(SCREENUPDATE_IN_PC_H, 1,
  110. Define to 1 if <pc.h> defines ScreenUpdate.)
  111. AC_DEFINE(USE_CONIO, 1, Define to 1 to activate the conio.h backend driver)
  112. CACA_DRIVERS="${CACA_DRIVERS} conio"],
  113. [AC_MSG_RESULT(no)])])
  114. if test "${ac_cv_my_have_conio}" = "no" -a "${enable_conio}" = "yes"; then
  115. AC_MSG_ERROR([cannot find conio.h])
  116. fi
  117. fi
  118. if test "${enable_win32}" != "no"; then
  119. ac_cv_my_have_win32="no"
  120. AC_CHECK_HEADERS(windows.h,
  121. [AC_MSG_CHECKING(for AllocConsole in windows.h)
  122. AC_EGREP_HEADER(AllocConsole, windows.h,
  123. [ac_cv_my_have_win32="yes"
  124. AC_MSG_RESULT(yes)
  125. AC_DEFINE(ALLOCCONSOLE_IN_WINDOWS_H, 1,
  126. Define to 1 if <windows.h> defines AllocConsole.)
  127. AC_DEFINE(USE_WIN32, 1, Define to 1 to activate the win32 backend driver)
  128. CACA_DRIVERS="${CACA_DRIVERS} win32"],
  129. [AC_MSG_RESULT(no)])])
  130. if test "${ac_cv_my_have_win32}" = "no" -a "${enable_win32}" = "yes"; then
  131. AC_MSG_ERROR([cannot find win32 console development files])
  132. fi
  133. fi
  134. if test "${enable_slang}" != "no"; then
  135. ac_cv_my_have_slang="no"
  136. AC_CHECK_HEADERS(slang.h slang/slang.h,
  137. [ac_cv_my_have_slang="yes"
  138. AC_DEFINE(USE_SLANG, 1, Define to 1 to activate the slang backend driver)
  139. AC_CHECK_LIB(slang, SLsmg_utf8_enable,
  140. [AC_DEFINE(HAVE_SLSMG_UTF8_ENABLE, 1, Define to 1 if you have the `SLsmg_utf8_enable' function.)])
  141. CPPFLAGS="${CPPFLAGS} -DOPTIMISE_SLANG_PALETTE=1"
  142. CACA_LIBS="${CACA_LIBS} -lslang"
  143. CACA_DRIVERS="${CACA_DRIVERS} slang"
  144. break])
  145. if test "${ac_cv_my_have_slang}" = "no" -a "${enable_slang}" = "yes"; then
  146. AC_MSG_ERROR([cannot find slang development files])
  147. fi
  148. fi
  149. if test "${enable_x11}" != "no"; then
  150. AC_PATH_X
  151. AC_CHECK_LIB(X11, XOpenDisplay,
  152. [ac_cv_my_have_x11="yes"
  153. if test -n "${x_includes}"; then X_CFLAGS="-I${x_includes}"; fi
  154. if test -n "${x_libraries}"; then X_LIBS="-L${x_libraries}"; fi
  155. AC_DEFINE(USE_X11, 1, Define to 1 to activate the X11 backend driver)
  156. CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
  157. X11_LIBS="${X11_LIBS} -lX11 ${X_LIBS}"
  158. CACA_DRIVERS="${CACA_DRIVERS} x11"],
  159. [ac_cv_my_have_x11="no"],
  160. [[`if test -n "${x_libraries}"; then echo -L${x_libraries}; fi`]])
  161. AC_CHECK_HEADERS(X11/XKBlib.h)
  162. if test "${ac_cv_my_have_x11}" != "yes" -a "${enable_x11}" = "yes"; then
  163. AC_MSG_ERROR([cannot find X11 development files])
  164. fi
  165. fi
  166. if test "${enable_gl}" != "no"; then
  167. ac_cv_my_have_gl="no"
  168. AC_CHECK_HEADERS(GL/gl.h OpenGL/gl.h,
  169. [AC_CHECK_HEADERS(GL/glut.h,
  170. [AC_CHECK_LIB(glut, glutCloseFunc,
  171. [AC_DEFINE(HAVE_GLUTCLOSEFUNC, 1, Define to 1 if you have the `glutCloseFunc' function.)])
  172. AC_CHECK_LIB(glut, glutMainLoopEvent,
  173. [ac_cv_my_have_gl="yes"])
  174. AC_CHECK_LIB(glut, glutCheckLoop,
  175. [ac_cv_my_have_gl="yes"
  176. AC_DEFINE(HAVE_GLUTCHECKLOOP, 1, Define to 1 if you have the `glutCheckLoop' function.)])])
  177. break])
  178. if test "${ac_cv_my_have_gl}" = "yes"; then
  179. AC_DEFINE(USE_GL, 1, Define to 1 to activate the OpenGL backend driver)
  180. GL_LIBS="${GL_LIBS} -lGL -lglut"
  181. CACA_DRIVERS="${CACA_DRIVERS} gl"
  182. elif test "${enable_gl}" = "yes"; then
  183. AC_MSG_ERROR([cannot find OpenGL+FreeGLUT development files])
  184. fi
  185. fi
  186. if test "${enable_cocoa}" != "no"; then
  187. ac_cv_my_have_cocoa="no"
  188. AC_CHECK_HEADERS(Cocoa/Cocoa.h,
  189. [ac_cv_my_have_cocoa="yes"])
  190. if test "${ac_cv_my_have_cocoa}" = "yes"; then
  191. case x${target} in
  192. xpowerpc*darwin*)
  193. # 10.3 needed to link with X11
  194. MACOSX_SDK=/Developer/SDKs/MacOSX10.3.9.sdk
  195. GCC_VERSION=3.3
  196. ARCH="-arch ppc"
  197. MACOSX_SDK_CFLAGS="-nostdinc -isystem ${MACOSX_SDK}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOSX_SDK}/usr/include"
  198. MACOSX_SDK_CXXFLAGS="-nostdinc++ -I${MACOSX_SDK}/usr/include/gcc/darwin/${GCC_VERSION}/c++ -I${MACOSX_SDK}/usr/include/gcc/darwin/${GCC_VERSION}/c++/ppc-darwin -I${MACOSX_SDK}/usr/include/gcc/darwin/${GCC_VERSION}/c++/backward"
  199. MACOSX_SDK_LDFLAGS="-L${MACOSX_SDK}/usr/lib/gcc/darwin -L${MACOSX_SDK}/usr/lib/gcc/darwin/${GCC_VERSION} -L${MACOSX_SDK}/usr/lib"
  200. ;;
  201. x*86*darwin*)
  202. MACOSX_SDK=/Developer/SDKs/MacOSX10.4u.sdk
  203. GCC_VERSION=4.0
  204. ARCH="-arch i386"
  205. MACOSX_SDK_CFLAGS="-isysroot ${MACOSX_SDK}"
  206. MACOSX_SDK_CXXFLAGS="${MACOSX_SDK_CFLAGS}"
  207. ;;
  208. esac
  209. CC=gcc-${GCC_VERSION}
  210. CXX=g++-${GCC_VERSION}
  211. MACOSX_SDK_FRAMEWORKS="-F${MACOSX_SDK}/System/Library/Frameworks"
  212. CPPFLAGS="${CPPFLAGS} ${ARCH} ${MACOSX_SDK_FRAMEWORKS}"
  213. CFLAGS="${CFLAGS} ${MACOSX_SDK_CFLAGS}"
  214. CXXFLAGS="${CXXFLAGS} ${MACOSX_SDK_CXXFLAGS}"
  215. OBJCFLAGS="${OBJCFLAGS} ${MACOSX_SDK_CFLAGS}"
  216. LDFLAGS="${ARCH} ${MACOSX_SDK_LDFLAGS} ${LDFLAGS}"
  217. AC_DEFINE(USE_COCOA, 1, Define to 1 to activate the Cocoa backend driver)
  218. CACA_LIBS="${CACA_LIBS} -Wl,-syslibroot,${MACOSX_SDK},-framework,Cocoa"
  219. CACA_DRIVERS="${CACA_DRIVERS} cocoa"
  220. elif test "${enable_cocoa}" = "yes"; then
  221. AC_MSG_ERROR([cannot find Cocoa development files])
  222. fi
  223. fi
  224. AM_CONDITIONAL(USE_COCOA, test "${ac_cv_my_have_cocoa}" = "yes")
  225. if test "${enable_ncurses}" != "no"; then
  226. ac_cv_my_have_ncurses="no"
  227. AC_CHECK_HEADERS(ncursesw/ncurses.h ncurses/ncurses.h ncurses.h curses.h,
  228. [ncurses="no"
  229. AC_CHECK_LIB(ncursesw, initscr,
  230. [ncurses="-lncursesw"],
  231. [AC_CHECK_LIB(ncurses, initscr,
  232. [ncurses="-lncurses"])])
  233. if test "${ncurses}" = "no"; then
  234. continue
  235. fi
  236. ac_cv_my_have_ncurses="yes"
  237. AC_DEFINE(USE_NCURSES, 1, Define to 1 to activate the ncurses backend driver)
  238. CACA_LIBS="${CACA_LIBS} ${ncurses}"
  239. CACA_DRIVERS="${CACA_DRIVERS} ncurses"
  240. dnl Check for resizeterm or resize_term
  241. SAVED_LIBS="${LIBS}"
  242. LIBS="${LIBS} ${ncurses}"
  243. AC_CHECK_FUNCS(resizeterm resize_term)
  244. LIBS="${SAVED_LIBS}"
  245. break])
  246. if test "${ac_cv_my_have_ncurses}" = "no" -a "${enable_ncurses}" = "yes"; then
  247. AC_MSG_ERROR([cannot find ncurses development files])
  248. fi
  249. fi
  250. if test "${enable_vga}" = "yes"; then
  251. ac_cv_my_have_vga="yes"
  252. CPPFLAGS="${CPPFLAGS} -I. -D__KERNEL__ -nostdinc -include kernel/kernel.h"
  253. CFLAGS="${CFLAGS} -fno-builtin -O2 -Wall"
  254. CCASFLAGS="${CCASFLAGS} -I."
  255. LDFLAGS="${LDFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,100000"
  256. AC_DEFINE(USE_VGA, 1, Define to 1 to activate the VGA backend driver)
  257. CACA_DRIVERS="${CACA_DRIVERS} vga"
  258. fi
  259. AM_CONDITIONAL(USE_KERNEL, test "${ac_cv_my_have_vga}" = "yes")
  260. if test "${enable_debug}" = "yes"; then
  261. AC_DEFINE(DEBUG, 1, Define to 1 to activate debug)
  262. fi
  263. if test "${enable_plugins}" = "yes"; then
  264. ac_cv_my_have_plugins="yes"
  265. AC_DEFINE(USE_PLUGINS, 1, Define to 1 to activate plugins)
  266. CACA_LIBS="${CACA_LIBS} -ldl"
  267. else
  268. CACA_LIBS="${CACA_LIBS} ${X11_LIBS} ${GL_LIBS}"
  269. fi
  270. AM_CONDITIONAL(USE_PLUGINS, test "${ac_cv_my_have_plugins}" = "yes")
  271. AC_MSG_CHECKING(valid output drivers)
  272. if test -z "${CACA_DRIVERS}"; then
  273. AC_MSG_RESULT(no)
  274. AC_MSG_ERROR([no output drivers were selected!])
  275. else
  276. CACA_DRIVERS="${CACA_DRIVERS# *}"
  277. AC_MSG_RESULT([${CACA_DRIVERS}])
  278. fi
  279. AC_SUBST(MATH_LIBS)
  280. AC_SUBST(GETOPT_LIBS)
  281. AC_SUBST(CACA_LIBS)
  282. AC_SUBST(X11_LIBS)
  283. AC_SUBST(GL_LIBS)
  284. # Optimizations
  285. CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
  286. # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
  287. # [Jylam] Removed -Wshadow in order to avoid ncurses/gl conflict
  288. # (Comme quoi on n'est pas les seuls porcs)
  289. CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
  290. CACA_BINDINGS=""
  291. # Build the C++ bindings?
  292. ac_cv_my_have_cxx="no"
  293. if test "${enable_cxx}" != "no"; then
  294. AC_MSG_CHECKING([working <iostream>])
  295. AC_LANG_PUSH(C++)
  296. AC_TRY_COMPILE(
  297. [#include <iostream>],
  298. [],
  299. [ac_cv_my_have_cxx="yes"
  300. CACA_BINDINGS="${CACA_BINDINGS} C++"])
  301. AC_LANG_POP(C++)
  302. AC_MSG_RESULT([$ac_cv_my_have_cxx])
  303. fi
  304. AM_CONDITIONAL(USE_CXX, test "${ac_cv_my_have_cxx}" = "yes")
  305. # Build the .NET bindings?
  306. ac_cv_my_have_csharp="no"
  307. if test "${enable_csharp}" != "no"; then
  308. AC_PATH_PROG(GMCS, gmcs, no)
  309. AC_PATH_PROG(GACUTIL, gacutil, no)
  310. if test "${GMCS}" != "no" -a "${GACUTIL}" != "no"; then
  311. ac_cv_my_have_csharp="yes"
  312. CACA_BINDINGS="${CACA_BINDINGS} C#"
  313. fi
  314. fi
  315. AM_CONDITIONAL(USE_CSHARP, test "${ac_cv_my_have_csharp}" = "yes")
  316. # Build the Ruby bindings?
  317. ac_cv_my_have_ruby="no"
  318. if test "${enable_ruby}" != "no"; then
  319. AC_PATH_PROG(RUBY, ruby, no)
  320. if test "${RUBY}" != "no"; then
  321. RUBY_CFLAGS="-I$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"archdir"@:>@')"
  322. RUBY_LIBS="-L$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"libdir"@:>@') -l$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"RUBY_SO_NAME"@:>@')"
  323. RUBY_SITEARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"sitearchdir"@:>@'`
  324. RUBY_SITELIBDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"sitelibdir"@:>@'`
  325. AC_SUBST(RUBY_CFLAGS)
  326. AC_SUBST(RUBY_LIBS)
  327. AC_SUBST(RUBY_SITEARCHDIR)
  328. AC_SUBST(RUBY_SITELIBDIR)
  329. CPPFLAGS="${CPPFLAGS} ${RUBY_CFLAGS}"
  330. AC_CHECK_HEADERS([ruby.h],
  331. [ac_cv_my_have_ruby="yes"
  332. CACA_BINDINGS="${CACA_BINDINGS} Ruby"])
  333. fi
  334. fi
  335. AM_CONDITIONAL(USE_RUBY, test "${ac_cv_my_have_ruby}" = "yes")
  336. AC_MSG_CHECKING(available language bindings)
  337. if test -z "${CACA_BINDINGS}"; then
  338. AC_MSG_RESULT(no)
  339. else
  340. CACA_BINDINGS="${CACA_BINDINGS# *}"
  341. AC_MSG_RESULT([${CACA_BINDINGS}])
  342. fi
  343. # Build cacaserver?
  344. ac_cv_my_have_network="no"
  345. AC_CHECK_HEADERS(sys/socket.h,
  346. [ac_cv_my_have_network="yes"])
  347. AM_CONDITIONAL(USE_NETWORK, test "${ac_cv_my_have_network}" = "yes")
  348. # Use Imlib2?
  349. if test "${enable_imlib2}" != "no"; then
  350. IMLIB2="no"
  351. PKG_CHECK_MODULES(IMLIB2, imlib2, [IMLIB2="yes"], [AC_MSG_RESULT(no)])
  352. if test "${IMLIB2}" != "no"; then
  353. AC_DEFINE(USE_IMLIB2, 1, Define to 1 to use Imlib2)
  354. fi
  355. fi
  356. # Build development tools?
  357. PANGOFT2="no"
  358. PKG_CHECK_MODULES(PANGOFT2, pangoft2, [PANGOFT2="yes"], [AC_MSG_RESULT(no)])
  359. AM_CONDITIONAL(USE_PANGO, test "${PANGOFT2}" != "no")
  360. # Build documentation?
  361. DOXYGEN="no"
  362. LATEX="no"
  363. if test "${enable_doc}" != "no"; then
  364. AC_PATH_PROG(DOXYGEN, doxygen, no)
  365. if test "${DOXYGEN}" != "no"; then
  366. # Build LaTeX documentation?
  367. AC_PATH_PROG(LATEX, pdflatex, no)
  368. AC_PATH_PROG(KPSEWHICH, kpsewhich, no)
  369. AC_PATH_PROG(DVIPS, dvips, no)
  370. if test "${DVIPS}" = "no" -o "${KPSEWHICH}" = "no"; then
  371. LATEX="no"
  372. fi
  373. if test "${LATEX}" != "no"; then
  374. AC_MSG_CHECKING(for a4.sty and a4wide.sty)
  375. if "${KPSEWHICH}" a4.sty >/dev/null 2>&1; then
  376. if "${KPSEWHICH}" a4wide.sty >/dev/null 2>&1; then
  377. AC_MSG_RESULT(yes)
  378. else
  379. LATEX="no"
  380. AC_MSG_RESULT(no)
  381. fi
  382. else
  383. LATEX="no"
  384. AC_MSG_RESULT(no)
  385. fi
  386. fi
  387. fi
  388. fi
  389. AM_CONDITIONAL(BUILD_DOCUMENTATION, test "${DOXYGEN}" != "no")
  390. AM_CONDITIONAL(USE_LATEX, test "${LATEX}" != "no")
  391. AC_CONFIG_FILES([
  392. Makefile
  393. kernel/Makefile
  394. cucul/Makefile
  395. caca/Makefile
  396. src/Makefile
  397. test/Makefile
  398. tools/Makefile
  399. csharp/Makefile
  400. cxx/Makefile
  401. python/Makefile
  402. ruby/Makefile
  403. doc/Makefile
  404. msvc/Makefile
  405. ])
  406. AC_CONFIG_FILES([
  407. cucul/cucul.pc
  408. caca/caca.pc
  409. csharp/cucul-sharp.dll.config
  410. csharp/caca-sharp.dll.config
  411. doc/doxygen.cfg
  412. ])
  413. AC_CONFIG_FILES([caca-config], [chmod 0755 caca-config])
  414. AC_OUTPUT