search: move reductions
[owl.git] / configure.ac
blob475f14207d11951eea3b8fbda436cc59f99e0558
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT(OWL chess engine, 0.08, andrey.sofronov@gmail.com)
6 AM_INIT_AUTOMAKE([-Wall])
7 AC_CONFIG_SRCDIR([attacks.h])
8 AC_CONFIG_HEADER([config.h])
10 # Checks for programs.
11 AC_PROG_CC
13 # Checks for libraries.
14 AC_CHECK_LIB([pthread],[pthread_create])
15 AC_CHECK_LIB([m],[floor])
17 # Checks for header files.
18 AC_HEADER_STDC
19 AC_CHECK_HEADERS([inttypes.h stdlib.h string.h sys/time.h unistd.h])
21 # Checks for typedefs, structures, and compiler characteristics.
22 AC_C_CONST
23 AC_C_INLINE
24 AC_TYPE_INT16_T
25 AC_HEADER_TIME
26 AC_TYPE_UINT16_T
27 AC_TYPE_UINT32_T
28 AC_TYPE_UINT64_T
30 # Checks for library functions.
31 AC_FUNC_MALLOC
32 AC_CHECK_FUNCS([floor getopt gettimeofday memset strchr strerror])
34 AC_ARG_ENABLE(console-debug, 
35                 [AS_HELP_STRING([--enable-console-debug], [additional debug information after each move.])],
36                 [AC_DEFINE([CONSOLE_DEBUG], [1], [enable console debug])
37                  AC_DEFINE([STATISTIC_COUNTERS], [1], [calculate statistics])], [])
39 AC_CONFIG_FILES([Makefile])
40 AC_OUTPUT