選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

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